@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Source+Sans+3:wght@300;400&display=swap');

@font-face {
  font-family: 'Instagram Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instagram-sans/InstagramSans-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Instagram Sans Headline';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instagram-sans/InstagramSans-Headline.woff') format('woff');
}

@font-face {
  font-family: 'Adobe Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/adobe-arabic/AdobeArabic-Regular.otf') format('opentype');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #000;
  color: #eee;
}

a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}

a:active,
a:focus,
a:hover {
  outline: 0;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-wrap {
  min-height: 100vh;
}

.site-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

.sidebar-content {
  width: 280px;
  flex-shrink: 0;
  padding: 40px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 280px;
}

.logo-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 30px;
}

.logo-image {
  text-align: center;
}

.logo-image img,
.logo-lottie {
  width: 180px;
  height: 180px;
  max-width: 100%;
  margin: 0 auto;
}

.logo-lottie {
  pointer-events: none;
}

.logo-image a {
  display: block;
}

.responsive-nav .logo-wrap {
  padding-bottom: 24px;
}

nav {
  width: 80.5%;
  margin: 0 auto;
  flex: 1;
}

nav .page-title,
nav .gallery-title {
  display: block;
  text-align: center;
  padding: 0 0 14px;
}

nav .page-title a,
nav .gallery-title a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  color: #888;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav .page-title a:hover,
nav .gallery-title a:hover,
nav .page-title a.active,
nav .gallery-title a.active {
  color: #fff;
}

.social {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
}

.social ul {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.social li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: #eee;
}

.social li:first-child svg,
.social li:last-child svg {
  width: 24px;
  height: 24px;
}

.social-under-construction-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100001;
  margin: 0;
  padding: 12px 20px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.92);
  color: #eee;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.social-under-construction-toast[hidden] {
  display: none;
}

.site-container {
  flex: 1;
  min-width: 0;
  padding: 40px 60px 80px;
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header .title {
  font-family: 'DM Sans', sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  color: #eee;
  text-transform: uppercase;
  margin: 0;
  padding: 0 0 20px;
}

.page-header .title--instagram {
  font-family: 'Instagram Sans Headline', 'Instagram Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-transform: none;
  letter-spacing: -0.04em;
  padding-bottom: 16px;
  font-synthesis: none;
}

.page-content {
  clear: both;
}

/* About Me */
.about-image-wrap {
  width: 43%;
  margin: 0 auto 20px;
}

.about-photo-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

.about-photo-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  visibility: hidden;
}

.about-photo-rotator img.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.image-placeholder {
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-quote {
  font-family: 'Adobe Arabic', 'Traditional Arabic', serif;
  font-size: 28px;
  line-height: 1.35;
  color: #eee;
  text-align: center;
  margin: 0 0 30px;
  letter-spacing: 0.01em;
}

.about-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
  color: #fff;
}

.about-text p {
  margin: 0 0 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Welcome / Splash */
.splash-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
}

.splash-stack {
  width: 77%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.canvas-video-container {
  display: grid;
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  min-height: 0;
  cursor: pointer;
}

.canvas-video-container--landscape {
  aspect-ratio: 16 / 9;
}

.canvas-video-container--portrait {
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin: 0 auto;
}

.canvas-video-container > * {
  grid-area: 1 / 1;
}

.canvas-video-display {
  display: none;
}

.canvas-video-source {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  z-index: 1;
}

.canvas-video-poster {
  width: 100%;
  height: 100%;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.canvas-video-poster[hidden] {
  display: none;
}

.canvas-video-buffer-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 5;
  pointer-events: none;
}

.canvas-video-buffer-logo[hidden] {
  display: none;
}

.canvas-video-buffer-logo-lottie {
  width: min(42vw, 180px);
  height: min(42vw, 180px);
}

.canvas-video-timer {
  place-self: start;
  justify-self: start;
  z-index: 3;
  margin: 10px 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.canvas-video-footer {
  place-self: end;
  justify-self: stretch;
  z-index: 4;
  width: 100%;
  padding: 28px 12px 10px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.canvas-video-footer > * {
  pointer-events: auto;
}

.canvas-video-seek-wrap {
  width: 100%;
}

.canvas-video-seek {
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
}

.canvas-video-seek:disabled {
  opacity: 0.45;
  cursor: default;
}

.canvas-video-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.canvas-video-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.canvas-video-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
}

.canvas-video-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.canvas-video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.canvas-video-restart-btn {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.canvas-video-restart-btn:hover {
  opacity: 1;
}

.canvas-video-restart-icon {
  width: auto;
  height: 28px;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.canvas-video-fullscreen-btn {
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.canvas-video-fullscreen-btn:hover {
  opacity: 1;
}

.canvas-video-fullscreen-icon {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.canvas-video-fullscreen-btn .canvas-fs-icon--shrink {
  display: none;
}

.canvas-video-fullscreen-btn.is-fullscreen .canvas-fs-icon--expand {
  display: none;
}

.canvas-video-fullscreen-btn.is-fullscreen .canvas-fs-icon--shrink {
  display: block;
}

.canvas-video-container:fullscreen {
  max-width: none;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.canvas-video-container:-webkit-full-screen {
  max-width: none;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.canvas-video-play-btn {
  place-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.canvas-video-play-btn.is-hidden {
  display: none;
}

.canvas-video-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.canvas-video-play-btn:hover .canvas-video-play-icon {
  transform: scale(1.05);
}

.canvas-video-play-icon:not(:empty)::after {
  content: none;
}

.canvas-video-play-icon:empty::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #000;
  margin-left: 5px;
}

.video-placeholder {
  width: 77%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder .play-icon::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}

.splash-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #999;
  text-align: center;
  margin: 12px 0 24px;
  width: 100%;
}

.button-module {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 14px 32px;
  background: #fff;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: opacity 0.2s ease;
  margin-bottom: 30px;
}

.button-module:hover {
  opacity: 0.85;
}

.splash-social {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 10px;
}

/* Gallery / Featured */
.project-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding-top: 20px;
}

.project-cover {
  position: relative;
}

.project-cover .cover-image {
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.project-cover:hover .cover-image {
  background: rgba(255, 255, 255, 0.08);
}

.project-cover .details {
  text-align: left;
}

.project-cover .year {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.project-cover .project-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #eee;
  text-transform: uppercase;
}

.cover-image--photo {
  padding: 0;
  border: none;
  background: #111;
  overflow: hidden;
  display: block;
  position: relative;
}

.cover-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cover-image--portrait {
  aspect-ratio: 9 / 16;
}

.project-covers--horizontal {
  grid-template-columns: 1fr;
  gap: 36px;
}

.project-covers--horizontal .project-cover .cover-image {
  aspect-ratio: 16 / 9;
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  border: none;
  background: #111;
}

.project-cover .cover-image.cover-image--photo {
  border: none;
  background: #111;
}

.project-covers--horizontal .project-cover .details {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-covers--horizontal .project-cover:hover .details,
.project-covers--horizontal .project-cover:focus-visible .details {
  opacity: 1;
}

.project-covers--horizontal .project-cover .year {
  margin-bottom: 0;
  color: #aaa;
}

.project-covers--horizontal .project-cover .project-title {
  color: #fff;
}

.project-covers--horizontal .cover-image--crop-top img {
  object-position: 70% 28%;
}

.project-covers--horizontal .cover-image--trim-right {
  background: #1a100e;
}

.project-covers--horizontal .cover-image--trim-right img {
  object-position: 58% center;
  width: 103%;
  max-width: none;
  margin-left: -1%;
}

.project-covers--horizontal .cover-image--inset {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-covers--horizontal .cover-image--inset img {
  width: 62%;
  height: auto;
  max-height: 68%;
  object-fit: contain;
  object-position: center center;
}

/* Brand identity case study */
.project-case-study-main {
  padding-left: 40px;
  padding-right: 40px;
}

.project-case-study {
  max-width: 840px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.project-intro {
  text-align: center;
  padding: 60px 24px 56px;
  margin: 0 auto;
  max-width: 100%;
}

.project-intro-title,
.project-intro-tagline,
.project-intro-services {
  text-align: center;
}

.project-intro-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #eee;
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.project-intro-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #eee;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.project-intro-services {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
  margin: 0;
}

.project-motion-video {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 48px;
}

.motion-project-feature {
  margin-bottom: 48px;
}

.motion-project-feature-meta {
  margin-bottom: 16px;
}

.motion-project-feature-meta .year {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.motion-project-feature-meta .project-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #eee;
  text-transform: uppercase;
}

.motion-project-feature-player {
  width: 100%;
  max-width: 420px;
}

.motion-project-feature-player--landscape {
  max-width: min(100%, 720px);
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-stack img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.project-stack__frame--trim-edge {
  overflow: hidden;
  background: #1a100e;
  line-height: 0;
}

.project-stack__frame--trim-edge img {
  width: calc(100% + 10px);
  max-width: none;
}

.project-nav {
  padding: 40px 0 0;
  text-align: center;
}

.project-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  transition: color 0.2s ease;
}

.project-nav-link:hover {
  color: #fff;
}

@media (max-width: 932px) {
  .project-case-study-main {
    padding-left: 5%;
    padding-right: 5%;
  }

  .project-intro-title {
    font-size: 32px;
  }
}

/* Generic page content */
.page-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
  color: #fff;
}

.page-text p {
  margin: 0 0 20px;
}

.placeholder-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 40px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0;
}

/* Carousels */
.carousel-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  padding-top: 20px;
}

.carousel-index__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.carousel-index__thumb {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.carousel-index__link:hover .carousel-index__thumb,
.carousel-index__link:focus-visible .carousel-index__thumb {
  background: rgba(255, 255, 255, 0.08);
}

.carousel-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  padding-top: 12px;
}

.carousel-slides__cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.carousel-slides__cell:has(img) {
  border: none;
  background: #050808;
}

.carousel-slides__cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #050808;
}

.carousel-index__thumb--photo {
  padding: 0;
  border: none;
  background: #050808;
  overflow: hidden;
}

.carousel-index__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #050808;
}

.carousel-back {
  margin: 36px 0 0;
  text-align: center;
}

.carousel-back a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  transition: color 0.2s ease;
}

.carousel-back a:hover {
  color: #fff;
}

.carousel-slides__cell--interactive {
  cursor: pointer;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease;
}

.carousel-slides__cell--interactive:hover,
.carousel-slides__cell--interactive:focus-visible {
  transform: scale(1.015);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -1px;
}

body.carousel-preview-open {
  overflow: auto;
}

body.carousel-preview-open .carousel-slides__cell:focus,
body.carousel-preview-open .carousel-slides__cell:focus-visible {
  outline: none;
  transform: none;
}

.carousel-preview {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.carousel-preview.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-preview__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
}

.carousel-preview__close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-preview__close:hover,
.carousel-preview__close:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
}

.carousel-preview__close-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.carousel-preview__close-icon::before,
.carousel-preview__close-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 18px;
  background: #fff;
  border-radius: 1px;
}

.carousel-preview__close-icon::before {
  transform: translateX(-50%) rotate(45deg);
}

.carousel-preview__close-icon::after {
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 520px) {
  .carousel-preview__close {
    top: 20px;
    right: 16px;
    transform: none;
  }
}

.carousel-preview__glass {
  position: relative;
  width: min(100%, 400px);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  background: rgba(22, 22, 24, 0.55);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.carousel-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-preview__avatar-lottie {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-preview__username {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.carousel-preview__media-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.carousel-preview__media-frame {
  position: relative;
}

.carousel-preview__media {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
  outline: none;
}

.carousel-preview__media:focus,
.carousel-preview__media:focus-visible {
  outline: none;
  box-shadow: none;
}

.carousel-preview__media::-webkit-scrollbar {
  display: none;
}

.carousel-preview__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 1 / 1;
  line-height: 0;
  background: #000;
  outline: none;
}

.carousel-preview__slide:focus,
.carousel-preview__slide:focus-visible {
  outline: none;
}

.carousel-preview__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-preview__slide-bubble {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  padding: 5px 10px;
  min-width: 36px;
  text-align: center;
  border-radius: 999px;
  background: rgba(84, 84, 88, 0.94);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.carousel-preview__media-wrap.is-swiping .carousel-preview__slide-bubble,
.carousel-preview__slide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

.carousel-preview__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 8px;
  background: transparent;
}

.carousel-preview__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.carousel-preview__dot.is-active {
  background: #3897f0;
  transform: scale(1.15);
}

.carousel-preview__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 14px;
}

.carousel-preview__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.carousel-preview__action svg {
  width: 26px;
  height: 26px;
  display: block;
}

.carousel-preview__action--like.is-liked {
  color: #ff3040;
}

.carousel-preview__like-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.carousel-preview__action--like.is-pop .carousel-preview__like-icon {
  animation: ig-like-pop 0.55s cubic-bezier(0.17, 0.89, 0.32, 1.25);
}

.carousel-preview__action--like.is-unpop .carousel-preview__like-icon {
  animation: ig-like-unpop 0.35s ease-out;
}

@keyframes ig-like-pop {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(0.82);
  }
  45% {
    transform: scale(1.28);
  }
  65% {
    transform: scale(0.94);
  }
  85% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ig-like-unpop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

.carousel-preview__big-heart {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.carousel-preview__big-heart svg {
  width: 92px;
  height: 92px;
  color: #fff;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.45));
}

.carousel-preview__big-heart.is-active svg {
  animation: ig-big-heart 0.85s ease-out forwards;
}

@keyframes ig-big-heart {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  12% {
    opacity: 1;
    transform: scale(1.12);
  }
  28% {
    opacity: 1;
    transform: scale(0.92);
  }
  42% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 0.95;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.carousel-preview__action:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.carousel-preview__action:active {
  transform: scale(0.96);
}

.carousel-preview__share-toast {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  pointer-events: none;
}

/* Contact form */
.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-status {
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #eee;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-form-status.is-success {
  border-color: rgba(120, 220, 160, 0.35);
}

.contact-form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eee;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  display: inline-flex;
  padding: 12px 28px;
  background: #fff;
  color: #000;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 999px;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Resume */
.resume-section {
  margin-bottom: 40px;
}

.resume-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #eee;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.resume-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-item:last-child {
  border-bottom: none;
}

.resume-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #eee;
  margin: 0 0 4px;
}

.resume-education-line {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.resume-education-line em {
  font-style: italic;
  font-weight: 400;
}

.resume-item .meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.resume-item p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  color: #ccc;
  margin: 0;
}

.resume-details {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  color: #ccc;
  margin: 0;
  padding-left: 1.15em;
}

.resume-details li {
  margin-bottom: 8px;
}

.resume-details li:last-child {
  margin-bottom: 0;
}

.resume-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 36px 0 12px;
}

.resume-actions .button-module {
  margin-bottom: 0;
}

/* Back to top */
.back-to-top {
  text-align: center;
  padding: 40px 0 0;
}

.back-to-top a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #888;
  transition: color 0.2s ease;
}

.back-to-top a:hover {
  color: #fff;
}

/* Hamburger / Mobile nav */
.hamburger-click-area {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background-color 0.25s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, top 0.25s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.show-responsive-nav .hamburger {
  background: transparent;
}

.show-responsive-nav .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.show-responsive-nav .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.responsive-nav {
  display: none;
}

@media (max-width: 932px) {
  .site-content {
    flex-direction: column;
  }

  .sidebar-content {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px 0;
  }

  .site-header {
    width: 100%;
  }

  nav {
    display: none;
  }

  .sidebar-content .social {
    display: none;
  }

  .splash-social .social {
    display: block;
    margin-top: 0;
    padding-top: 0;
  }

  .site-container {
    padding: 20px 5% 60px;
  }

  .splash-page {
    padding: 32px 10px 40px;
    align-items: stretch;
  }

  .splash-stack {
    width: 100%;
    max-width: none;
  }

  .hamburger-click-area {
    display: block;
  }

  .responsive-nav {
    display: flex;
    background-color: #000;
    position: fixed;
    inset: 0;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 72px 5% 100px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .responsive-nav nav {
    display: block;
    width: 100%;
    flex-shrink: 0;
  }

  .responsive-nav .page-title,
  .responsive-nav .gallery-title {
    padding: 0 0 18px;
  }

  .responsive-nav .page-title a,
  .responsive-nav .gallery-title a {
    font-size: 22px;
    line-height: 32px;
  }

  .responsive-nav .social {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .show-responsive-nav .responsive-nav {
    opacity: 1;
    visibility: visible;
  }

  .show-responsive-nav {
    overflow: hidden;
  }

  body.mobile-nav-page-leave::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100002;
    pointer-events: none;
  }

  body.mobile-nav-page-leave .responsive-nav {
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  body.mobile-nav-page-leave .site-wrap {
    visibility: hidden;
  }

  .about-image-wrap {
    width: 70%;
  }

  .project-covers {
    grid-template-columns: 1fr;
  }

  .carousel-index {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 540px) {
  .page-header .title {
    font-size: 36px;
    line-height: 40px;
  }

  .page-header .title--instagram {
    font-size: 28px;
  }

  .about-image-wrap {
    width: 100%;
  }
}
