/* ============================================
   RDA — RAINBOW DESIGNER & ASSOCIATES
   Global Stylesheet
   ============================================ */

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- CSS Variables (Inspatia / Montoya palette) ---- */
:root {
  --color-black: #0c0c0c;
  --color-dark: #0c0c0c;
  --color-cream: #ffffff;
  --color-white: #ffffff;
  --color-muted: #999999;
  --color-body: #444444;
  --color-rule: rgba(0, 0, 0, 0.12);
  --color-gold: #8c6144;
  --color-accent: #8c6144;
  --preloader-beige: #f9f7f4;
  --color-ink: #0c0c0c;
  --color-ink-soft: #666666;
  --color-line: rgba(255, 255, 255, 0.16);
  --color-line-muted: rgba(255, 255, 255, 0.08);
  --color-line-dark: rgba(0, 0, 0, 0.12);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  --nav-height: 120px;

  /* Liquid glass tokens */
  --glass-blur: 28px;
  --glass-saturate: 180%;
  --glass-bg-light: rgba(255, 255, 255, 0.42);
  --glass-bg-dark: rgba(12, 12, 12, 0.38);
  --glass-bg-accent: rgba(140, 97, 68, 0.28);
  --glass-border-light: rgba(255, 255, 255, 0.62);
  --glass-border-dark: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  --glass-radius: 999px;
}

.display-title {
  font-family: var(--font-display);
  text-transform: lowercase;
  font-weight: 500;
}

/* Light surfaces */
.intro-statement,
.page-header,
.projects-intro,
.studio-about,
.team-section,
.process-intro,
.project-meta-bar,
.project-narrative,
.project-nav-bar {
  --color-line: rgba(0, 0, 0, 0.12);
  --color-line-muted: rgba(0, 0, 0, 0.06);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  color-scheme: light only;
  height: -webkit-fill-available;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
}

body {
  background-color: var(--color-cream);
  color: var(--color-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

body.page-home {
  background-color: var(--color-cream);
}

.dark-section {
  background-color: var(--color-black);
  color: var(--color-cream);
}

/* ---- Liquid Glass ---- */
.liquid-glass,
.liquid-glass-inline {
  --lg-x: 50%;
  --lg-y: 30%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.liquid-glass::before,
.liquid-glass-inline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.1) 22%,
    transparent 48%,
    rgba(255, 255, 255, 0.06) 72%,
    rgba(255, 255, 255, 0.18) 100%
  );
  opacity: 0.75;
}

.liquid-glass::after,
.liquid-glass-inline::after {
  content: '';
  position: absolute;
  inset: -60%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 55% 45% at var(--lg-x) var(--lg-y),
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    transparent 65%
  );
  animation: liquidGlassFlow 10s ease-in-out infinite;
}

@keyframes liquidGlassFlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  33% { transform: translate(2%, 3%) scale(1.04); opacity: 1; }
  66% { transform: translate(-2%, 1%) scale(0.98); opacity: 0.9; }
}

.liquid-glass > *,
.liquid-glass-inline > * {
  position: relative;
  z-index: 1;
}

.liquid-glass--light {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.liquid-glass--dark {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.liquid-glass--dark::before {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 100%
  );
  opacity: 1;
}

.liquid-glass--accent {
  background: var(--glass-bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 36px rgba(140, 97, 68, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 8%, rgba(140, 97, 68, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 92%, rgba(140, 97, 68, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 72% 18%, rgba(255, 255, 255, 0.9), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .liquid-glass::after,
  .liquid-glass-inline::after,
  #ball::after {
    animation: none;
  }
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  cursor: none;
}

/* ---- Magic Cursor (Montoya / Inspatia) ---- */
#magic-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

body.is-preloading #magic-cursor {
  opacity: 0 !important;
  visibility: hidden;
}

/* Light pages — dark ring so the glass cursor stays visible on white */
.page-home #ball:not(.is-on-dark),
body:not(.has-dark-hero):not(.page-contact) #ball {
  background: rgba(12, 12, 12, 0.05);
  border-color: rgba(12, 12, 12, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.page-home #ball-loader:not(.is-on-dark),
body:not(.has-dark-hero):not(.page-contact) #ball-loader {
  border-bottom-color: rgba(12, 12, 12, 0.35);
}

#ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform, backdrop-filter, background-color, border-color;
  --ball-blur: 16px;
  --ball-saturate: 180%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(var(--ball-blur)) saturate(var(--ball-saturate));
  -webkit-backdrop-filter: blur(var(--ball-blur)) saturate(var(--ball-saturate));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

#ball::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.35) 0%, transparent 45%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

#ball::after {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  background: radial-gradient(circle at var(--lg-x, 50%) var(--lg-y, 40%), rgba(255,255,255,0.35) 0%, transparent 55%);
  pointer-events: none;
  animation: liquidGlassFlow 8s ease-in-out infinite;
}

#ball-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-bottom-color: #999999;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform;
}

#ball.with-blur {
  --ball-blur: 44px;
  --ball-saturate: 210%;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    backdrop-filter 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.55s ease,
    border-color 0.55s ease,
    box-shadow 0.55s ease;
}

#ball.with-blur.is-clear {
  --ball-blur: 0px;
  --ball-saturate: 105%;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

#ball p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease 0.2s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

#ball.with-blur.is-clear p {
  opacity: 1;
}

#ball.is-pressed {
  transform: translate(-50%, -50%) scale(0.42);
}

/* ---- Page Transition ---- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 8999;
  pointer-events: none;
  opacity: 0;
}

/* ---- Genie transition (projects → detail) ---- */
body.is-genie-active {
  overflow: hidden !important;
}

.genie-transition {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: all;
}

.genie-handoff {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
}

/* Curve-swipe transition — a single quadratic-bezier path anchored to the
   bottom edge that rushes up through a domed arc and flattens to cover
   the viewport, then reverses to reveal the next page.
   Ref: https://demos.gsap.com/demo/curve-swipe/ */
.swipe-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.swipe-overlay__path {
  stroke: var(--color-gold);
  stroke-width: 0.4;
  stroke-opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.genie-handoff img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.is-genie-handoff .site-nav,
body.is-genie-handoff .detail-hero,
body.is-genie-handoff .detail-hero-content,
body.is-genie-handoff .project-meta-bar,
body.is-genie-handoff .project-about,
body.is-genie-handoff .project-gallery-full,
body.is-genie-handoff .project-nav-bar,
body.is-genie-handoff .proj-nav,
body.is-genie-handoff .site-footer {
  visibility: hidden;
}

/* ---- Project swap transition (project prev/next) ---- */
body.is-proj-swap-active {
  overflow: hidden !important;
}

body.is-proj-swap-active .project-meta-bar,
body.is-proj-swap-active .project-narrative,
body.is-proj-swap-active .project-gallery-full,
body.is-proj-swap-active .project-nav-bar,
body.is-proj-swap-active .site-footer {
  visibility: hidden;
}

body.is-proj-swap-active .detail-hero {
  visibility: visible;
}

.proj-swap-wipe {
  z-index: 9002;
  pointer-events: all;
}

/* ---- Oscar Pico wipe (projects section nav) ---- */
body.is-oscar-wipe-active {
  overflow: hidden !important;
}

.oscar-wipe {
  position: fixed;
  inset: 0;
  z-index: 9002;
  pointer-events: all;
  overflow: hidden;
}

.oscar-wipe__svg {
  display: block;
  width: 100vw;
  height: 140vh;
  will-change: transform;
}

.oscar-wipe__path {
  vector-effect: non-scaling-stroke;
}

body.is-oscar-wipe-handoff .page-transition {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .oscar-wipe {
    height: 100svh;
    background: #efeeee;
    pointer-events: none;
  }

  .oscar-wipe__svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oscar-wipe {
    display: none !important;
  }
}

/* ---- Preloader · RDA Loader v3 ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: all;
  background: transparent;
}

body.is-preloading {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

#preloader .loader {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 120% 90% at 50% 42%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 60%),
    #F6F4EF;
  transition: transform 1.15s cubic-bezier(0.83, 0, 0.17, 1);
  will-change: transform;
}

#preloader .loader.lift {
  transform: translateY(-101%);
}

#preloader .mark {
  width: min(28vh, 40vw, 200px);
  aspect-ratio: 51.13 / 83.12;
  position: relative;
}

#preloader .mark-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#preloader .st {
  fill: none;
  stroke: #181716;
  stroke-width: 0.42;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

#preloader .fillpath {
  opacity: 0;
}

#preloader .fillpath path {
  fill: #181716;
}

@keyframes rda-preloader-inkfade {
  to { opacity: 0; }
}

#preloader .loader.playing .fillpath {
  animation: rda-preloader-fillin 1s cubic-bezier(0.4, 0, 0.2, 1) 2.15s forwards;
}

@keyframes rda-preloader-fillin {
  to { opacity: 1; }
}

#preloader .sheenband {
  opacity: 0;
  transform: translateX(-140px);
}

#preloader .loader.playing .sheenband {
  animation: rda-preloader-sheen 3.2s cubic-bezier(0.35, 0.05, 0.25, 1) 3.35s infinite;
}

@keyframes rda-preloader-sheen {
  0% { transform: translateX(-140px); opacity: 0; }
  8% { opacity: 1; }
  46% { transform: translateX(140px); opacity: 1; }
  54% { opacity: 0; }
  100% { transform: translateX(140px); opacity: 0; }
}

#preloader .wordmark {
  margin-top: 4.4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6vh;
}

#preloader .maskline {
  overflow: hidden;
}

#preloader .maskline > span {
  display: block;
  transform: translateY(110%);
}

#preloader .loader.playing .maskline > span {
  animation: rda-preloader-maskup 1.05s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes rda-preloader-maskup {
  to { transform: translateY(0); }
}

#preloader .name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(13px, 2.1vw, 19px);
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: #181716;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

#preloader .loader.playing .name.maskline > span {
  animation-delay: 2.75s;
}

#preloader .loader.playing .name span {
  background: linear-gradient(100deg, #181716 42%, #6d6353 50%, #181716 58%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    rda-preloader-maskup 1.05s cubic-bezier(0.19, 1, 0.22, 1) 2.75s forwards,
    rda-preloader-textsheen 3.2s cubic-bezier(0.35, 0.05, 0.25, 1) 3.55s infinite;
}

@keyframes rda-preloader-textsheen {
  0% { background-position: 120% 0; }
  46% { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

#preloader .rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #AE9159, transparent);
}

#preloader .loader.playing .rule {
  animation: rda-preloader-rulegrow 1.2s cubic-bezier(0.6, 0, 0.2, 1) 3.35s forwards;
}

@keyframes rda-preloader-rulegrow {
  to { width: min(46vw, 340px); }
}

#preloader .tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 1.5vw, 14px);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #181716;
  text-transform: uppercase;
  white-space: nowrap;
}

#preloader .loader.playing .tagline.maskline > span {
  animation-delay: 3.55s;
}

#preloader .loader.playing .tagline span {
  background: linear-gradient(100deg, #181716 38%, #AE9159 50%, #181716 62%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    rda-preloader-maskup 1.05s cubic-bezier(0.19, 1, 0.22, 1) 3.55s forwards,
    rda-preloader-textsheen 3.2s cubic-bezier(0.35, 0.05, 0.25, 1) 3.75s infinite;
}

@media (prefers-reduced-motion: reduce) {
  #preloader .logo-draw {
    display: none;
  }

  #preloader .fillpath {
    opacity: 1;
    animation: none !important;
  }

  #preloader .sheenband {
    display: none;
  }

  #preloader .maskline > span {
    transform: none;
    animation: none !important;
  }

  #preloader .loader.playing .name span {
    animation: none !important;
    background: none;
    -webkit-text-fill-color: #181716;
    color: #181716;
  }

  #preloader .loader.playing .tagline span {
    animation: none !important;
    background: none;
    -webkit-text-fill-color: #181716;
    color: #181716;
  }

  #preloader .rule {
    width: min(46vw, 340px);
  }

  #preloader .loader.lift {
    transform: none;
    opacity: 0;
    transition: opacity 0.5s;
  }
}

#preloader.is-done {
  display: none !important;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 80px 0;
  z-index: 500;
  overflow: visible;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

body.is-menu-open .site-nav {
  z-index: 650;
}

.site-nav.scrolled {
  background: rgba(12, 12, 12, 0.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav.scrolled .nav-links a {
  color: var(--color-cream);
}

.site-nav.scrolled .hamburger span {
  background: var(--color-cream);
}

.site-nav {
  --logo-tone: dark;
}

.site-nav.scrolled,
.has-dark-hero .site-nav:not(.scrolled),
.page-contact .site-nav,
.site-footer {
  --logo-tone: light;
}

.page-home .site-nav:not(.scrolled) .nav-mark-img,
body:not(.page-home):not(.has-dark-hero) .site-nav:not(.scrolled) .nav-mark-img,
.site-nav.scrolled .nav-mark-img,
.has-dark-hero .site-nav:not(.scrolled) .nav-mark-img,
.site-footer .nav-mark-img,
body:not(.page-home):not(.has-dark-hero) .site-nav:not(.scrolled) .nav-mark-img {
  filter: none;
}

.nav-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 104px;
  height: 100%;
  flex-shrink: 0;
  overflow: visible;
}

.nav-mark-img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 126px;
  display: block;
  object-fit: contain;
  object-position: center center;
  transition: opacity 0.35s ease;
}

.site-footer .nav-mark {
  width: 104px;
  height: 104px;
}

.site-footer .nav-mark-img {
  width: 96px;
  height: 126px;
}

.nav-mark--black {
  opacity: 1;
}

.nav-mark--white {
  opacity: 0;
}

.site-nav[style*="--logo-tone: light"],
.site-nav.scrolled .nav-mark--black,
.has-dark-hero .site-nav:not(.scrolled) .nav-mark--black,
.site-footer .nav-mark--black {
  opacity: 0;
}

.site-nav.scrolled .nav-mark--white,
.has-dark-hero .site-nav:not(.scrolled) .nav-mark--white,
.site-footer .nav-mark--white {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

body:not(.page-home):not(.has-dark-hero) .site-nav:not(.scrolled) .nav-links a {
  color: var(--color-ink);
}

body:not(.page-home):not(.has-dark-hero) .site-nav:not(.scrolled) .hamburger span {
  background: var(--color-ink);
}

.has-dark-hero .site-nav:not(.scrolled) .nav-links a {
  color: var(--color-cream);
}

.has-dark-hero .site-nav:not(.scrolled) .hamburger span {
  background: var(--color-cream);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream);
  position: relative;
  padding: 0 0 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cream);
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  padding: 12px;
  margin-right: -12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-cream);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.page-contact .site-nav:not(.scrolled) .nav-links a,
.has-dark-hero .site-nav:not(.scrolled) .nav-links a {
  color: var(--color-cream);
}

.page-contact .site-nav:not(.scrolled) .hamburger span,
.has-dark-hero .site-nav:not(.scrolled) .hamburger span {
  background: var(--color-cream);
}

.page-contact .site-nav:not(.scrolled) .nav-mark--black,
.has-dark-hero .site-nav:not(.scrolled) .nav-mark--black {
  opacity: 0;
}

.page-contact .site-nav:not(.scrolled) .nav-mark--white,
.has-dark-hero .site-nav:not(.scrolled) .nav-mark--white {
  opacity: 1;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-close {
  position: absolute;
  top: calc(28px + env(safe-area-inset-top, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 999px;
  padding: 10px 20px;
  transition: color 0.3s ease, background 0.3s ease;
}

.mobile-close:hover {
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.14);
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links li {
  overflow: hidden;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(56px, 14vw, 120px);
  font-weight: 500;
  text-transform: capitalize;
  color: var(--color-cream);
  display: inline-block;
  transform: translateY(100%);
  padding: 6px 0;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.mobile-menu-links a:hover {
  color: var(--color-gold);
}

.mobile-menu-footer {
  position: absolute;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-muted);
}

/* ---- Section Label ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
}

/* ---- Horizontal Rule ---- */
.h-rule {
  width: 100%;
  height: 1px;
  background: var(--color-rule);
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================
   HOME — HERO (Inspatia text hero)
   ============================================ */

/* ============================================
   HOME — HERO
   ============================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 12, 12, 0.48);
}

.hero-caption {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 80px 120px;
}

.hero-caption-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(72px, 10.5vw, 140px);
  line-height: 1.12;
  letter-spacing: 0.015em;
  color: var(--color-cream);
  text-align: center;
  width: 100%;
  margin: 0;
}

.hero-title-line {
  display: block;
  overflow: hidden;
  text-align: center;
  margin-bottom: 0.04em;
  padding: 0.08em 0 0.16em;
  line-height: 1.14;
}

.hero-title-line:last-child {
  margin-bottom: 0;
}

.hero-title span,
.hero-subtitle span {
  opacity: 0;
  display: inline-block;
  transform: translateY(160px);
  will-change: transform, opacity;
}

.height-title .hero-title-line div,
.height-title .next-hero-title div {
  display: inline-block;
}

.height-title .title-word + .title-word-space {
  width: 0.22em;
}

.height-title .title-word-space span {
  display: inline-block;
  width: 0.22em;
}

.height-title .hero-title-line span,
.height-title .next-hero-title span {
  display: inline-block;
  transform-origin: bottom center;
  vertical-align: bottom;
  line-height: 1.1;
}

.hero-footer {
  position: absolute;
  bottom: 40px;
  left: 80px;
  right: 80px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
}

.hero-scroll-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.5);
}

.hero-scroll-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-cream);
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.scroll-indicator {
  position: absolute;
  bottom: 44px;
  right: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(245, 242, 234, 0.5));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7) translateY(-8px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ============================================
   HOME — INTRO STATEMENT
   ============================================ */

.intro-statement {
  background: var(--color-cream);
  color: var(--color-black);
  padding: 140px 52px 128px;
}

.intro-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.intro-left {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  align-self: start;
  width: 100%;
  z-index: 2;
}

.intro-header {
  width: 100%;
}

.intro-header .section-label {
  color: var(--color-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.intro-rule {
  width: 32px;
  height: 1px;
  background: var(--color-rule);
  transform-origin: left;
  transform: scaleX(0);
}

.intro-visual {
  position: relative;
  margin: 28px 0 0;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #1a1a1a;
  aspect-ratio: 2000 / 1332;
  opacity: 0;
  transform: translateY(24px);
}

.intro-visual-media {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-visual:hover .intro-visual-media,
.intro-visual:focus-within .intro-visual-media {
  transform: scale(1.03);
}

.intro-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: filter 0.5s ease;
  filter: grayscale(25%) contrast(1.02);
}

.intro-visual:hover .intro-visual-img,
.intro-visual:focus-within .intro-visual-img {
  filter: grayscale(0%) contrast(1);
}

.intro-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.intro-hotspot-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.55);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.intro-visual:hover .intro-hotspot-hint,
.intro-visual:focus-within .intro-hotspot-hint {
  opacity: 0;
}

.intro-hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}

.intro-hotspot-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.intro-hotspot-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  animation: introHotspotPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.intro-hotspot-disc {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.intro-hotspot:hover .intro-hotspot-disc,
.intro-hotspot:focus-visible .intro-hotspot-disc {
  transform: scale(1.08);
  background: rgba(12, 12, 12, 0.95);
  border-color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), 0 0 0 6px rgba(255, 255, 255, 0.14);
}

.intro-hotspot:hover .intro-hotspot-pulse,
.intro-hotspot:focus-visible .intro-hotspot-pulse {
  animation: none;
  opacity: 0;
}

.intro-hotspot-label {
  position: absolute;
  left: 50%;
  top: calc(100% - 4px);
  transform: translateX(-50%) translateY(8px);
  min-width: max-content;
  max-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.9);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.intro-hotspot-label span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.intro-hotspot:hover .intro-hotspot-label,
.intro-hotspot:focus-visible .intro-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.intro-visual-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.78);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.intro-visual-cta::after {
  content: '→';
  font-size: 13px;
  transition: transform 0.3s ease;
}

.intro-visual-cta:hover,
.intro-visual-cta:focus-visible {
  background: rgba(12, 12, 12, 0.92);
  transform: translateY(-1px);
}

.intro-visual-cta:hover::after,
.intro-visual-cta:focus-visible::after {
  transform: translateX(3px);
}

@keyframes introHotspotPulse {
  0% {
    transform: scale(0.82);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(0.82);
    opacity: 0;
  }
}

.intro-quote {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  text-transform: lowercase;
  color: var(--color-black);
  opacity: 0;
  transform: translateY(30px);
  letter-spacing: 0;
  max-width: 820px;
}

.intro-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-ink-soft);
  margin-top: 44px;
  opacity: 0;
  transform: translateY(30px);
  max-width: 560px;
}

/* ============================================
   HOME — OVERLAPPING GALLERY (Inspatia)
   ============================================ */

.overlapping-section {
  background: var(--color-black);
}

.overlapping-gallery {
  position: relative;
}

.overlapping-image {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-right {
  border-radius: 28px;
  padding: 52px 56px;
  width: 100%;
  box-sizing: border-box;
  align-self: start;
  height: fit-content;
}

.intro-right.liquid-glass--light {
  margin-top: 8px;
}

.overlapping-image-inner {
  width: 100%;
  height: calc(100% - 120px);
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.overlapping-image:first-child .overlapping-image-inner {
  align-self: flex-start;
}

.overlapping-image:last-child {
  z-index: 10;
}

.overlap-img-wrap {
  position: absolute;
  inset: 0;
}

.overlap-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlapping-image .slide-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(24px, 4vw, 52px);
  color: #fff;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    transparent 72%
  );
}

.overlapping-image .slide-glass {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(560px, calc(100vw - 48px));
  box-sizing: border-box;
  border-radius: 999px;
  padding: 14px 22px;
}

.overlapping-image .slide-glass--name {
  justify-self: start;
  justify-content: flex-start;
  padding: 15px 24px;
}

.overlapping-image .slide-glass--location {
  justify-self: end;
  justify-content: center;
  padding: 13px 20px;
  max-width: min(360px, calc(100vw - 48px));
}

.overlapping-image .slide-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.75vw, 38px);
  line-height: 1.12;
  font-weight: 500;
  text-transform: none;
  text-align: left;
  width: auto;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}

.overlapping-image .slide-title span {
  display: block;
}

@media (min-width: 721px) {
  .overlapping-image .slide-title span {
    white-space: nowrap;
  }
}

.overlapping-image .slide-location {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  margin: 0;
}

.overlapping-image .slide-location span {
  display: block;
}

/* ============================================
   HOME — LIST ROTATOR (Inspatia)
   ============================================ */

.list-rotator-wrapper {
  position: relative;
  display: block;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 1000%;
  width: 100vw;
  overflow: hidden;
  background: var(--color-black);
}

/* Pin needs visible overflow or ScrollTrigger pin-spacer breaks */
.list-rotator-wrapper:has(.skills-split-flap-pin) {
  overflow: visible;
}

.skills-scroll-reveal {
  position: relative;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.skills-split-flap-pin,
.list-rotator-pin.skills-split-flap-pin {
  height: auto !important;
  min-height: 0 !important;
  padding: 16px 16px 12px;
  grid-template-rows: auto auto auto;
  overflow: visible;
  box-sizing: border-box;
}

.list-rotator-pin.skills-split-flap-pin .list-rotator-title {
  margin: 0 auto 10px;
}

.skills-split-flap-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding: 0 0 8px;
  box-sizing: border-box;
}

.skills-split-flap-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.skills-split-flap-host {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  cursor: pointer;
  touch-action: manipulation;
  /* Fallback label before/without SplitFlap mount (e.g. file:// blocked modules) */
  color: #f8fafc;
  font-family: 'SFMono-Regular', 'Roboto Mono', 'Cascadia Code', Menlo, monospace;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.skills-split-flap-host:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 8px;
  border-radius: 4px;
}

.skills-split-flap-host .split-flap-text {
  margin: 0 auto;
  max-width: 100%;
  justify-content: center;
  /* Fit longest phrase on typical desktop widths; JS fitBoardToHost may override */
  font-size: clamp(28px, 4.2vw, 56px);
  --split-flap-font-size: clamp(28px, 4.2vw, 56px);
  --split-flap-gap: clamp(2px, 0.45vw, 7px);
}

.skills-split-flap-host .split-flap-text__tile {
  width: 0.82em;
  height: 1.12em;
}

.scroll-reveal--skills {
  margin: 0;
  color: #fff;
}

.scroll-reveal-text--skills,
.scroll-reveal--skills .scroll-reveal-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  filter: none;
}

.list-rotator-title {
  position: relative;
  margin: 0 auto 20px;
  display: table;
  z-index: 100;
  line-height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 8px 20px;
  box-sizing: border-box;
  border-radius: 999px;
  /* Visible by default — Chrome + Lenis left opacity:0 stuck when ScrollTrigger missed */
  opacity: 1;
  visibility: visible;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.list-rotator-pin {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 28px 80px 24px;
  box-sizing: border-box;
}

.list-rotator-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.list-rotator-glass {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
}

.list-rotator-glass--top {
  top: 0;
  height: 14%;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.72) 0%,
    rgba(12, 12, 12, 0.28) 72%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.list-rotator-glass--bottom {
  bottom: 0;
  height: 14%;
  background: linear-gradient(
    0deg,
    rgba(12, 12, 12, 0.72) 0%,
    rgba(12, 12, 12, 0.28) 72%,
    transparent 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.list-rotator-focus {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(60%, 420px);
  height: clamp(40px, 6vh, 56px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  /* Outer capsule hidden — focused label keeps its own pill only */
  opacity: 0 !important;
  visibility: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.list-rotator-wrapper .page-nav-section {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  z-index: 2;
  width: 100%;
  padding: 12px 0 0;
  margin: 0;
  background: none;
}

.list-rotator {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
  text-transform: none;
}

.list-rotator li {
  color: #fff;
  list-style: none;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  margin: 0;
  padding: 0;
  --item-focus: 0;
}

.list-rotator-item {
  display: inline-block;
  position: relative;
  padding: 0.45em 1em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  filter: blur(14px);
  opacity: 0.28;
  transform: scale(0.96);
  will-change: filter, opacity, transform;
}

.list-rotator li.is-blurred .list-rotator-item {
  filter: blur(14px);
  opacity: 0.28;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.96);
}

.list-rotator li:not(.is-focused):not(.is-blurred) .list-rotator-item {
  filter: blur(calc(14px * (1 - var(--item-focus))));
  opacity: calc(0.28 + var(--item-focus) * 0.72);
  border-color: rgba(255, 255, 255, calc(0.08 + var(--item-focus) * 0.24));
  background: rgba(255, 255, 255, calc(0.04 * (1 - var(--item-focus) * 0.5)));
  transform: scale(calc(0.96 + var(--item-focus) * 0.04));
}

.list-rotator li.is-focused .list-rotator-item {
  filter: none;
  opacity: 1;
  transform: scale(1);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.1);
}

@media (max-width: 980px) {
  .list-rotator-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .skills-scroll-reveal {
    width: calc(100% - 40px);
    padding: 28px 0 56px;
  }

  .skills-split-flap-pin,
  .list-rotator-pin.skills-split-flap-pin {
    padding: 12px 10px 10px;
    min-height: 0 !important;
    height: auto !important;
    grid-template-rows: auto auto auto;
  }

  .list-rotator-pin.skills-split-flap-pin .list-rotator-title {
    margin: 0 auto 8px;
  }

  .skills-split-flap-stage {
    min-height: 0;
    gap: 6px;
    padding: 0 0 6px;
  }

  .list-rotator-wrapper .page-nav-section {
    padding-top: 12px;
  }

  .skills-split-flap-host .split-flap-text {
    /* No !important — fitBoardToHost sets inline size to fill host width */
    font-size: clamp(18px, 5.2vw, 36px);
    --split-flap-font-size: clamp(18px, 5.2vw, 36px);
    --split-flap-gap: 2.5px;
    letter-spacing: 0.01em;
  }

  .skills-split-flap-host .split-flap-text__tile {
    width: 0.78em;
    height: 1.1em;
  }

  .pin-spacer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  .pin-spacer > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .list-rotator-pin {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    min-height: 420px;
    padding: 20px 20px 16px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .list-rotator-viewport {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    isolation: isolate;
  }

  .list-rotator-glass,
  .list-rotator-focus {
    display: block;
  }

  .list-rotator-glass--top,
  .list-rotator-glass--bottom {
    height: 12%;
  }

  .list-rotator-focus {
    width: min(72%, 280px);
    height: clamp(40px, 6.5vh, 56px);
  }

  /* Keep blur outside the focus capsule; lighter blur for mobile cost */
  .list-rotator-glass {
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }

  .list-rotator-item {
    filter: blur(8px);
    will-change: filter, opacity, transform;
  }

  .list-rotator li.is-blurred .list-rotator-item {
    filter: blur(8px);
    opacity: 0.22;
  }

  .list-rotator li:not(.is-focused):not(.is-blurred) .list-rotator-item {
    filter: blur(calc(8px * (1 - var(--item-focus))));
    opacity: calc(0.22 + var(--item-focus) * 0.78);
    transform: scale(calc(0.97 + var(--item-focus) * 0.03));
  }

  .list-rotator li.is-focused .list-rotator-item {
    filter: none;
  }

  .list-rotator-wrapper .page-nav-section {
    position: relative;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  .list-rotator-title {
    margin: 0 auto 12px;
    justify-self: center;
    align-self: center;
    width: fit-content;
    max-width: calc(100% - 8px);
  }

  .list-rotator li {
    justify-content: center;
    text-align: center;
    font-size: clamp(13px, 3.2vw, 16px);
    line-height: 1.2;
  }

  .list-rotator li .list-rotator-item,
  .list-rotator li.is-focused .list-rotator-item,
  .list-rotator li.is-blurred .list-rotator-item {
    display: inline-block;
    width: fit-content;
    max-width: min(86vw, 240px);
    padding: 0.42em 0.95em;
    text-align: center;
  }

  .detail-hero-content {
    position: absolute;
    inset: auto 0 0 0;
    top: auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .detail-hero-glass {
    width: max-content;
    max-width: min(58%, calc(100% - 100px));
    justify-content: flex-start;
    padding: 10px 16px;
  }

  .detail-hero-glass--name {
    justify-self: auto;
    align-self: flex-end;
    flex: 0 1 auto;
  }

  .detail-hero-glass--location {
    align-self: flex-end;
    flex: 0 1 auto;
    width: max-content;
    max-width: min(42%, calc(100% - 120px));
    justify-content: center;
    padding: 8px 14px;
  }

  .detail-hero-name {
    font-size: clamp(16px, 4.4vw, 22px);
    line-height: 1.15;
  }

  .detail-hero-location {
    white-space: normal;
    text-align: center;
    letter-spacing: 0.1em;
    font-size: clamp(9px, 2.4vw, 11px);
  }

  .overlapping-section,
  .overlapping-gallery {
    width: 100%;
    overflow: hidden;
  }

  .overlapping-image {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    display: block;
  }

  .overlapping-image + .overlapping-image {
    margin-top: 3px;
  }

  .overlapping-image-inner {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .overlapping-image .slide-caption {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 16px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.34) 42%,
      transparent 72%
    );
  }

  .overlapping-gallery.is-mobile-stack .overlapping-image {
    opacity: 1;
    transform: none;
  }

  .overlapping-gallery.is-mobile-stack .overlapping-image-inner {
    transform: none;
    filter: none;
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .overlapping-gallery.is-mobile-stack .overlapping-image {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  .overlapping-image .slide-glass {
    width: fit-content;
    max-width: calc(50% - 8px);
    flex: 0 1 auto;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .overlapping-image .slide-glass--name {
    align-self: flex-end;
    justify-self: start;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .overlapping-image .slide-glass--location {
    align-self: flex-end;
    justify-self: end;
    width: fit-content;
    max-width: calc(50% - 8px);
    justify-content: center;
    padding: 7px 11px;
  }

  .overlapping-image .slide-title {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.15;
  }

  .overlapping-image .slide-title span {
    white-space: nowrap;
  }

  .overlapping-image .slide-location {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.3;
  }

  .careers-hero-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 24px;
    padding-right: 24px;
  }

  .careers-hero-content .section-label,
  .careers-hero-content h1,
  .careers-hero-tagline {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .careers-hero-content h1 {
    letter-spacing: 0;
  }

  .careers-hero-content .section-label {
    letter-spacing: 0.22em;
  }
}

/* ============================================
   HOME — PAGE NAV CTA
   ============================================ */

.page-nav-section {
  padding: 24px 80px 32px;
  text-align: center;
}

.page-nav-section.is-page-nav-revealed .page-nav-sub,
.page-nav-section.is-page-nav-revealed .next-hero-title,
.page-nav-section.is-page-nav-revealed .next-hero-title span {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Credo under Our Studio — after scrub finishes, keep every word fully readable */
.skills-scroll-reveal.is-credo-revealed,
.skills-scroll-reveal.is-credo-revealed .scroll-reveal-text,
.skills-scroll-reveal.is-credo-revealed .word {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.page-nav-sub,
.list-rotator-wrapper .page-nav-caption .next-hero-title {
  opacity: 1;
  visibility: visible;
}

.page-nav-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.page-nav-caption .next-hero-title {
  font-size: calc(1rem + 5vw);
  line-height: 1.2;
  margin-top: 8px;
  /* Letter stagger used to animate y inside this box; overflow:hidden clipped
     mid-letters (looked like "O    Studio") and cut glyph bottoms. */
  overflow: visible;
}

.next-hero-title {
  font-family: var(--font-display);
  font-size: calc(1rem + 12vw);
  line-height: calc(1rem + 11vw);
  font-weight: 500;
  text-transform: none;
  color: var(--color-cream);
  overflow: hidden;
}

.page-nav-link {
  display: inline-block;
}

.page-nav-link:hover .next-hero-title {
  color: var(--color-accent);
}

/* ============================================
   HOME — SELECTED WORK (projects page strip)
   ============================================ */

.selected-work {
  background: var(--color-dark);
  padding: 108px 0 116px;
  overflow: hidden;
}

.selected-work-header {
  padding: 0 52px;
  margin-bottom: 52px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.view-all-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 3px;
}

.view-all-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-muted);
  transition: background 0.3s ease;
}

.view-all-link:hover {
  color: var(--color-cream);
}

.view-all-link:hover::after {
  background: var(--color-cream);
}

.projects-strip {
  display: flex;
  gap: 20px;
  padding: 0 52px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.projects-strip::-webkit-scrollbar {
  display: none;
}

.projects-strip.dragging {
  cursor: grabbing;
}

.project-card {
  flex: 0 0 400px;
  height: 560px;
  position: relative;
  overflow: hidden;
  display: block;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card-img {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 0.88;
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 32px;
  z-index: 2;
}

.project-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card-type {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.meta-sep {
  width: 1px;
  height: 10px;
  background: rgba(115, 115, 115, 0.45);
}

.project-card-year {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-muted);
}

/* ============================================
   HOME — DISCIPLINE SPLIT
   ============================================ */

.discipline-split {
  background: var(--color-black);
}

.discipline-panel {
  height: 65vh;
  position: relative;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  display: block;
}

.discipline-panel-img {
  position: absolute;
  inset: -4%;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discipline-panel:hover .discipline-panel-img {
  transform: scale(1.04);
}

.discipline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.18) 100%
  );
  transition: opacity 0.6s ease;
  z-index: 1;
}

.discipline-panel:hover .discipline-overlay {
  opacity: 0.7;
}

.discipline-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  gap: 14px;
  padding: 0 52px 52px;
  align-items: flex-start;
}

.discipline-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
}

.discipline-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 900;
  color: var(--color-cream);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.discipline-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.discipline-panel:hover .discipline-sub {
  opacity: 1;
  transform: translateX(0);
}

.discipline-arrow {
  position: absolute;
  right: 52px;
  bottom: 52px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.discipline-panel:hover .discipline-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   HOME — NUMBERS STRIP
   ============================================ */

.numbers-strip {
  position: relative;
  background: var(--color-dark);
  padding: 64px 80px 96px;
  overflow: hidden;
}

.numbers-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 90% at 12% 50%, rgba(140, 97, 68, 0.14), transparent 62%),
    radial-gradient(ellipse 45% 70% at 88% 40%, rgba(255, 255, 255, 0.06), transparent 58%);
}

.numbers-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
}

.number-item {
  --glass-reveal: 0;
  display: block;
  border-radius: 32px;
  filter: blur(calc(12px * (1 - var(--glass-reveal))));
  opacity: calc(0.32 + var(--glass-reveal) * 0.68);
  transform: translateY(calc(20px * (1 - var(--glass-reveal))));
  will-change: filter, opacity, transform;
}

.number-item.is-revealed {
  filter: none;
  opacity: 1;
  transform: none;
}

.number-item-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 36px 44px;
}

.number-accent {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
  margin: 0 auto 4px;
}

.number-value {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 104px);
  font-weight: 500;
  text-transform: lowercase;
  color: var(--color-cream);
  line-height: 0.9;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.number-suffix {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
}

.number-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-black);
  padding: 0 80px 64px;
  --color-line: rgba(255, 255, 255, 0.12);
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  margin-bottom: 56px;
  transform-origin: left;
  transform: scaleX(0);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 72px;
}

.footer-top .nav-mark {
  justify-self: start;
}

.footer-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  justify-self: center;
  margin: 0;
  padding: 0;
}

.footer-social {
  justify-self: end;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-cream);
}

.footer-social a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--color-cream);
}

.footer-brand {
  text-align: center;
  margin-bottom: 72px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 52px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  line-height: 1.2;
}

.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

.footer-bottom-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.footer-credit {
  margin-top: 24px;
  text-align: center;
}

.footer-credit-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.footer-credit-text a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease;
}

.footer-credit-text a:hover {
  color: var(--color-gold);
}

/* Tablet / narrow desktop — stack footer before nav links overflow */
@media (max-width: 980px) {
  .site-footer {
    padding: 0 24px 48px;
    overflow-x: clip;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }

  .footer-top .nav-mark,
  .footer-nav,
  .footer-social {
    justify-self: start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 28px;
    max-width: 100%;
  }

  .footer-brand {
    margin-bottom: 48px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

.page-header {
  background: var(--color-cream);
  color: var(--color-black);
  padding: 148px 52px 64px;
}

.page-header .section-label {
  color: var(--color-muted);
  margin-bottom: 24px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  margin-bottom: 0;
  text-transform: lowercase;
}

.projects-intro {
  max-width: 760px;
  padding: 0 52px 72px;
}

.projects-intro p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}

.projects-intro p:last-child {
  margin-bottom: 0;
}

.studio-hero-tagline {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--color-cream);
  max-width: 520px;
  line-height: 1.55;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(28px);
}

.studio-philosophy {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 120px 52px 100px;
}

.studio-philosophy-header {
  max-width: 1240px;
  margin: 0 auto 72px;
}

.studio-philosophy-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 0.88;
  display: block;
}

.belief-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 80px;
}

.belief-item {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.belief-item h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.15;
  padding-block: 0.12em;
  margin: 0;
  overflow: visible;
}

.belief-item p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.stage-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Brighter than --color-gold so meta stays readable on dark glass */
  color: #d4b896;
  margin-top: 28px;
}

.narrative-credit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.filter-bar {
  background: var(--color-cream);
  padding: 0 52px;
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  align-items: center;
  gap: 4px;
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 20px 18px;
  background: none;
  border: none;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-black);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.filter-btn.active {
  color: var(--color-black);
}

.filter-btn.active::after {
  transform: scaleX(1);
}

.filter-btn:hover {
  color: var(--color-black);
}

.projects-grid {
  background: var(--color-cream);
  padding: 40px 52px 72px;
  columns: 3;
  column-gap: 12px;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid-item-img-wrap,
.grid-item-media {
  overflow: hidden;
  position: relative;
  aspect-ratio: var(--item-ratio, 3 / 4);
  background: rgba(20, 16, 12, 0.05);
}

.grid-item-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.95);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.grid-item:hover .grid-item-img-wrap img {
  transform: scale(1.04);
}

.grid-item-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(20, 16, 12, 0.88) 0%,
    rgba(20, 16, 12, 0.18) 42%,
    transparent 100%
  );
  opacity: 0.82;
  transition: opacity 0.7s ease;
}

.grid-item:hover .grid-item-shade {
  opacity: 1;
}

.grid-item-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 3;
  border-color: transparent;
  transition: border-color 0.5s ease;
}

.grid-item-corner--tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.grid-item-corner--tr {
  top: 12px;
  right: 12px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.grid-item:hover .grid-item-corner {
  border-color: rgba(255, 255, 255, 0.6);
}

.grid-item-img-wrap--placeholder {
  aspect-ratio: var(--item-ratio, 3 / 4);
  background: #e8e4df;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item-img-wrap--placeholder .grid-item-shade {
  display: none;
}

.grid-item-placeholder-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 2;
}

.detail-hero-img--placeholder {
  background: #e8e4df;
}

.detail-hero-img--placeholder img {
  display: none;
}

.grid-item-info,
.grid-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: none;
  padding: 20px 22px 22px;
  border: none;
}

.grid-item-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: #fff;
  line-height: 0.95;
  display: block;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.grid-item-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  display: block;
  margin: 0;
}

.grid-item--placeholder .grid-item-name {
  color: var(--color-black);
}

.grid-item--placeholder .grid-item-meta {
  color: var(--color-muted);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.detail-hero {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.detail-hero-img {
  position: absolute;
  inset: -15%;
  will-change: transform;
  cursor: none;
}

.detail-halftone {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: none;
}

.detail-halftone.halftone-reveal {
  cursor: none;
}

.detail-hero-img img,
.detail-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.detail-hero-img.is-halftone-ready .detail-hero-fallback {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-hero-img:not(.is-halftone-ready) .detail-halftone {
  opacity: 0;
  pointer-events: none;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  pointer-events: none;
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  padding: 0 clamp(24px, 4vw, 52px) clamp(32px, 4vw, 52px);
  pointer-events: none;
}

.detail-hero-glass {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(560px, calc(100vw - 48px));
  box-sizing: border-box;
  border-radius: 999px;
  padding: 14px 22px;
  opacity: 0;
  transform: translateY(28px);
}

.detail-hero-glass--name {
  justify-self: start;
  justify-content: flex-start;
  padding: 15px 24px;
}

.detail-hero-glass--location {
  justify-self: end;
  justify-content: center;
  padding: 13px 20px;
  max-width: min(360px, calc(100vw - 48px));
}

.detail-hero-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.75vw, 38px);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.12;
  margin: 0;
  padding: 0;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  text-transform: none;
}

@media (min-width: 721px) {
  .detail-hero-name {
    white-space: nowrap;
  }
}

.detail-hero-location {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .detail-hero-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .detail-hero-glass {
    width: max-content;
    max-width: min(56%, calc(100% - 96px));
    padding: 9px 14px;
  }

  .detail-hero-glass--name {
    justify-content: flex-start;
    align-self: flex-end;
  }

  .detail-hero-glass--location {
    align-self: flex-end;
    width: max-content;
    max-width: min(44%, calc(100% - 110px));
    justify-content: center;
    padding: 7px 12px;
  }

  .detail-hero-name {
    font-size: clamp(15px, 4.2vw, 20px);
    line-height: 1.15;
  }

  .detail-hero-location {
    white-space: normal;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

.project-meta-bar {
  background: var(--color-dark);
  padding: 44px 52px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--color-line-muted);
}

.meta-col {
  padding: 0 24px 0 0;
}

.meta-col + .meta-col {
  padding-left: 24px;
  border-left: 1px solid var(--color-line-muted);
}

.meta-col label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 10px;
}

.meta-col span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-cream);
  line-height: 1.3;
}

.project-narrative {
  background: var(--color-white);
  color: var(--color-black);
  padding: 108px 52px;
}

.narrative-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 88px;
}

.narrative-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  height: fit-content;
}

.narrative-sidebar h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 32px;
}

.narrative-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.narrative-sidebar nav a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s ease;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-rule);
}

.narrative-sidebar nav a:hover {
  color: var(--color-black);
}

.narrative-sections {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.narrative-section h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-rule);
}

.narrative-section p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-ink-soft);
}

.project-gallery-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  background: var(--color-black);
}

.project-gallery-full .gallery-full {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.project-gallery-full .gallery-full img {
  width: 100%;
  height: min(72vh, 820px);
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-gallery-full .gallery-full:first-child img {
  min-height: 420px;
}

.project-gallery-full .gallery-full--compact img {
  width: 100%;
  height: min(56vh, 640px);
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.project-gallery-full .gallery-2col {
  display: contents;
}

.project-gallery-full .gallery-item {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.project-gallery-full .gallery-full,
.project-gallery-full .gallery-item {
  cursor: none;
  content-visibility: auto;
  contain-intrinsic-size: 1000px 720px;
}

.project-gallery-full .gallery-item img {
  display: block;
  width: 100%;
  height: min(56vh, 640px);
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-gallery-full .gallery-item:hover img {
    transform: scale(1.03);
  }
}

.project-gallery {
  background: var(--color-black);
}

.gallery-full {
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.gallery-full img {
  width: 100%;
  height: 82vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-full:first-child img {
  min-height: 52vh;
}

.gallery-full--compact {
  max-height: 72vh;
}

.gallery-full--compact img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
}

.gallery-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.gallery-full,
.gallery-item {
  cursor: none;
}

.gallery-item {
  min-height: 0;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.project-nav-bar {
  background: var(--color-dark);
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  --color-line-muted: rgba(255, 255, 255, 0.1);
}

.proj-nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 48px 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.proj-nav-link.prev {
  padding-right: 48px;
}

.proj-nav-link:hover {
  opacity: 0.7;
}

.proj-nav-link.next {
  text-align: right;
  border-left: 1px solid var(--color-line-muted);
  padding-left: 48px;
}

.proj-nav-dir {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.proj-nav-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-cream);
}

/* ============================================
   STUDIO PAGE
   ============================================ */

.studio-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.studio-hero-img {
  position: absolute;
  inset: 0;
}

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

.studio-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.68) 45%,
    rgba(0, 0, 0, 0.74) 100%
  );
  z-index: 1;
}

.studio-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
}

.studio-hero-content .section-label {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.studio-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 500;
  text-transform: none;
  color: var(--color-cream);
  line-height: 0.95;
  opacity: 0;
  transform: translateY(36px);
}

.studio-about {
  background: var(--color-white);
  color: var(--color-black);
  padding: 108px 52px;
}

.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 88px;
  align-items: start;
}

.about-img {
  height: 640px;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(100%);
}

.about-text-block {
  padding-top: 12px;
}

.about-text-block .section-label {
  color: var(--color-muted);
  margin-bottom: 32px;
}

.about-text-block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 36px;
  color: var(--color-black);
  opacity: 0;
  transform: translateY(24px);
}

.about-text-block p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.team-section {
  background: var(--color-cream);
  color: var(--color-black);
  padding: 100px 52px 88px;
}

.team-section-header {
  max-width: 1240px;
  margin: 0 auto 64px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.team-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--color-black);
  line-height: 0.88;
  display: block;
  opacity: 0;
  transform: translateY(24px);
}

.team-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 64px;
}

.team-card {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(28px);
  scroll-margin-top: calc(var(--nav-height) + 28px);
}

.team-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  background: #141414;
  position: relative;
  overflow: hidden;
  filter: grayscale(60%) contrast(0.9);
  transition: filter 0.5s ease;
  margin-bottom: 28px;
}

.team-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}

.team-card:hover .team-portrait {
  filter: grayscale(0%) contrast(1);
}

.team-initials {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.team-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.05;
  margin-bottom: 10px;
}

.team-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-rule);
}

.team-bio {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-ink-soft);
}

.extended-team-section {
  padding-top: 64px;
  padding-bottom: 100px;
  border-top: 1px solid var(--color-rule);
}

.extended-team-section .team-section-header {
  margin-bottom: 56px;
}

.extended-team-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
}

.extended-team-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.extended-team-photo {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #141414;
  margin-bottom: 18px;
  filter: grayscale(55%) contrast(0.92);
  transition: filter 0.5s ease;
}

.extended-team-card:hover .extended-team-photo {
  filter: grayscale(0%) contrast(1);
}

.extended-team-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.extended-team-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-black);
  margin: 0 0 8px;
}

.extended-team-role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

.recognition-section {
  background: var(--color-black);
  color: var(--color-cream);
}

.recognition-title {
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow: visible;
  padding-bottom: 0.06em;
}

.recognition-grid .belief-item {
  will-change: transform, opacity;
}

.recognition-section .belief-item p {
  color: rgba(255, 255, 255, 0.72);
}

.recognition-copy {
  margin-bottom: 0;
}

.recognition-press {
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 0 52px;
}

.recognition-press-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 32px;
  text-align: center;
}

.recognition-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recognition-feature {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  will-change: transform, opacity;
}

.recognition-feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.recognition-feature figcaption {
  padding: 12px 14px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-section {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 96px 0 104px;
}

.timeline-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 52px;
}

.timeline-header {
  margin-bottom: 56px;
}

.timeline-header .section-label {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.42);
}

.timeline-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 0.88;
  opacity: 0;
  transform: translateY(28px);
}

.timeline-list {
  position: relative;
  padding-left: 28px;
}

.timeline-rail {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  pointer-events: none;
}

.timeline-rail-bg,
.timeline-rail-fill {
  position: absolute;
  inset: 0;
  transform-origin: top center;
}

.timeline-rail-bg {
  background: var(--color-line);
}

.timeline-rail-fill {
  background: var(--color-gold);
  transform: scaleY(0);
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 36px;
  padding: 0 0 40px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 0;
  flex-shrink: 0;
  transform: scale(0);
  transform-origin: center;
  will-change: transform;
}

.timeline-item.is-active .timeline-dot {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.timeline-content {
  display: grid;
  grid-template-columns: minmax(88px, 132px) 1fr;
  gap: 16px 40px;
  align-items: start;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 0.85;
  padding-block: 0.08em;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}

.timeline-item.is-active .timeline-year {
  color: var(--color-cream);
}

.timeline-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0;
  padding-top: 4px;
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}

.timeline-item.is-active .timeline-label {
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================
   PROCESS PAGE
   ============================================ */

.process-intro {
  background: var(--color-cream);
  color: var(--color-black);
  padding: 152px 52px 96px;
}

.process-intro .section-label {
  color: var(--color-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.process-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.04;
  max-width: 760px;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
}

.process-intro p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.85;
  max-width: 520px;
  color: var(--color-ink-soft);
  opacity: 0;
  transform: translateY(20px);
}

.process-stages-wrap {
  position: relative;
}

.stage-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stage-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: saturate(0.9) brightness(0.75);
}

.process-stage[data-stage="2"] .stage-photo-bg img {
  object-position: center 42%;
}

.process-stage[data-stage="3"] .stage-photo-bg img {
  object-position: center center;
  filter: saturate(0.9) brightness(0.6);
}

.stage-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0.55) 0%, rgba(4, 4, 5, 0.3) 40%, rgba(4, 4, 5, 0.7) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(3, 3, 4, 0.55) 100%);
}

.process-progress {
  position: fixed;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.process-progress.visible {
  opacity: 1;
}

.progress-track {
  width: 1px;
  height: 220px;
  background: var(--color-line);
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-gold);
  transition: height 0.1s ease;
}

.progress-dot {
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.3s ease;
}

.process-stage {
  height: 100vh;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line-muted);
}

.stage-bg-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: 42vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.022);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.stage-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 52px;
}

.stage-content--glass {
  padding: 64px 60px;
  border-radius: 20px;
}

.stage-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* Brighter than --color-gold (#8c6144 ~2.9:1 on glass) for WCAG AA */
  color: #d4b896;
  margin-bottom: 28px;
  display: block;
}

.stage-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  color: var(--color-cream);
  margin-bottom: 36px;
  line-height: 1.08;
}

.stage-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-wrap {
  min-height: 100vh;
  background: var(--color-black);
  padding: 168px 80px 100px;
}

.contact-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 88px;
  align-items: start;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  color: var(--color-cream);
  line-height: 0.92;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(28px);
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.95;
  margin-bottom: 0;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
}

.contact-sub + .contact-sub {
  margin-top: 24px;
}

.contact-form-col .contact-sub:last-of-type {
  margin-bottom: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-group {
  position: relative;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 0 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-cream);
  outline: none;
  transition: border-color 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

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

.form-group select option {
  background: var(--color-dark);
  color: var(--color-cream);
}

.form-group textarea {
  resize: none;
  min-height: 128px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(115, 115, 115, 0.55);
}

.form-submit-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.form-submit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.form-submit:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.form-success {
  display: none;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 18px;
  color: var(--color-cream);
  padding: 28px 0;
  opacity: 0;
}

.contact-info-block {
  padding-top: 4px;
}

.contact-info-item {
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-established {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--color-line);
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 16px;
}

.contact-info-value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.95;
}

.contact-info-value--plain {
  color: var(--color-muted);
}

.contact-info-value a {
  transition: color 0.3s ease;
}

.contact-info-value a:hover {
  color: var(--color-muted);
}

/* ============================================
   CAREERS PAGE
   ============================================ */

.careers-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-black);
}

.careers-hero-img {
  position: absolute;
  inset: 0;
}

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

.careers-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 52%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.careers-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 52px 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  text-align: left;
}

.careers-hero-content .section-label {
  color: var(--color-gold);
  margin: 0 0 20px;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
}

.careers-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-cream);
  margin: 0 0 20px -0.06em;
  padding: 0;
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(28px);
}

.careers-hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0;
  padding: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
}

.careers-wrap {
  background: var(--color-cream);
  color: var(--color-black);
}

.careers-teams {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 52px 72px;
}

.careers-teams-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.careers-teams-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.careers-teams-header p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-ink-soft);
  margin: 0;
}

.careers-teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 80px;
}

.careers-team-col h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 24px;
}

.careers-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.careers-role-list li {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line-muted);
}

.careers-apply--dark {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 96px 52px 100px;
}

.careers-apply-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.careers-apply-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  color: var(--color-cream);
  margin: 0 0 24px;
}

.careers-apply-copy p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  max-width: 420px;
}

.careers-apply-copy a {
  color: var(--color-cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.careers-apply-copy a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.careers-form .form-group input[type="file"] {
  padding: 10px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: none;
}

.careers-form .form-group input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 16px;
  margin-right: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.careers-form .form-group input[type="file"]::file-selector-button:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

@media (hover: none), (pointer: coarse) {
  body,
  a,
  button,
  .projects-cell,
  .gallery-full,
  .gallery-item,
  .detail-hero-img {
    cursor: auto;
  }

  body {
    cursor: auto;
  }

  a,
  button,
  .hamburger,
  .mobile-close,
  .proj-nav-link,
  .projects-cell {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #magic-cursor {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .extended-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 20px;
  }

  .intro-inner {
    gap: 60px;
  }

  .projects-grid {
    columns: 2;
    padding: 36px 40px 64px;
  }
}

@media (max-width: 1100px) {
  .project-meta-bar {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }
}

.intro-hotspot-hint-touch {
  display: none;
}

@media (hover: none) {
  .intro-hotspot-hint-desktop {
    display: none;
  }

  .intro-hotspot-hint-touch {
    display: inline;
  }

  .intro-hotspot:focus .intro-hotspot-label,
  .intro-hotspot:hover .intro-hotspot-label,
  .intro-hotspot:focus-visible .intro-hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .intro-hotspot-mark,
  .intro-hotspot-disc {
    width: 36px;
    height: 36px;
  }

  .intro-hotspot-disc {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img {
    height: 420px;
  }
  .narrative-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .narrative-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    cursor: auto;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .site-nav {
    padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  }

  .nav-mark {
    width: 88px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-mark-img {
    width: 78px;
    height: 102px;
  }

  .site-footer .nav-mark {
    width: 84px;
    height: 88px;
  }

  .site-footer .nav-mark-img {
    width: 74px;
    height: 96px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu {
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
  }

  .mobile-close {
    top: max(20px, calc(env(safe-area-inset-top, 0px) + 12px));
    right: max(24px, env(safe-area-inset-right, 0px));
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-footer {
    bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }

  .hero {
    height: 100svh;
    min-height: 520px;
  }

  .studio-hero,
  .careers-hero,
  .process-stage {
    height: 100svh;
    min-height: 480px;
  }

  .contact-wrap {
    min-height: 100svh;
  }

  #preloader .loader {
    min-height: 100svh;
    padding:
      env(safe-area-inset-top, 0px)
      16px
      env(safe-area-inset-bottom, 0px);
  }

  #preloader .mark {
    width: min(36vw, 148px);
  }

  #preloader .wordmark {
    margin-top: 3.2vh;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  #preloader .name {
    font-size: clamp(10px, 2.6vw, 15px);
    letter-spacing: 0.38em;
    text-indent: 0.38em;
    white-space: normal;
    text-align: center;
    max-width: 92vw;
    line-height: 1.35;
  }

  #preloader .tagline {
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    font-size: clamp(9px, 2.4vw, 12px);
    white-space: normal;
    text-align: center;
    max-width: 18em;
  }

  #preloader .loader.playing .rule {
    animation-name: rda-preloader-rulegrow-mobile;
  }

  @keyframes rda-preloader-rulegrow-mobile {
    to { width: min(72vw, 280px); }
  }

  .hero-video {
    object-position: center center;
  }

  .hero-video-overlay {
    background: rgba(12, 12, 12, 0.55);
  }

  .hero-title {
    font-size: clamp(34px, 10.5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0.01em;
  }

  .hero-title-line {
    margin-bottom: 0.02em;
    padding: 0.05em 0 0.1em;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 32px;
    max-width: 100%;
  }

  .hero-caption {
    padding: calc(var(--nav-height) + 12px) 20px 92px;
  }

  .hero-caption-inner {
    max-width: 100%;
  }

  .hero-footer {
    bottom: 24px;
    left: 20px;
    right: 20px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .hero-scroll-label {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-scroll-icon {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .overlapping-section,
  .overlapping-gallery {
    width: 100%;
    overflow: hidden;
  }

  .overlapping-image {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    display: block;
  }

  .overlapping-image + .overlapping-image {
    margin-top: 3px;
  }

  .overlapping-image-inner {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .overlapping-image:first-child .overlapping-image-inner {
    align-self: auto;
  }

  .overlapping-image .slide-caption {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 16px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.34) 42%,
      transparent 72%
    );
  }

  .overlapping-image .slide-glass {
    width: fit-content;
    max-width: calc(50% - 8px);
    flex: 0 1 auto;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .overlapping-image .slide-glass--name {
    align-self: flex-end;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .overlapping-image .slide-glass--location {
    align-self: flex-end;
    width: fit-content;
    max-width: calc(50% - 8px);
    justify-content: center;
    padding: 7px 11px;
  }

  .overlapping-image .slide-title {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.15;
  }

  .overlapping-image .slide-title span {
    white-space: nowrap;
  }

  .overlapping-image .slide-location {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.3;
  }

  .intro-right {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .page-nav-section {
    padding: 20px 24px 28px;
  }

  .page-nav-caption .next-hero-title {
    font-size: clamp(44px, 13vw, 72px);
    line-height: 0.95;
  }

  .list-rotator-pin {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    padding: 24px 16px 16px;
    overflow: hidden;
  }

  .list-rotator-pin.skills-split-flap-pin {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto auto auto;
    padding: 12px 10px 10px;
    overflow: visible;
  }

  .list-rotator-viewport {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
  }

  .list-rotator-glass,
  .list-rotator-focus {
    display: block;
  }

  .list-rotator-focus {
    width: min(78%, 240px);
    height: clamp(36px, 5.5vh, 48px);
  }

  .list-rotator-wrapper .page-nav-section {
    position: relative;
    bottom: auto;
    padding: 14px 0 0;
    margin-top: 0;
    background: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .page-nav-sub {
    margin-bottom: 16px;
  }

  .list-rotator {
    padding: 0;
  }

  .list-rotator-title {
    margin: 0 auto 10px;
    justify-self: center;
    width: fit-content;
    max-width: calc(100% - 8px);
  }

  .list-rotator li {
    font-size: clamp(12px, 3vw, 15px);
    line-height: 1.2;
    justify-content: center;
    text-align: center;
  }

  .list-rotator li .list-rotator-item,
  .list-rotator li.is-focused .list-rotator-item,
  .list-rotator li.is-blurred .list-rotator-item {
    display: inline-block;
    width: fit-content;
    max-width: min(88vw, 220px);
    padding: 0.4em 0.9em;
    text-align: center;
  }

  .intro-statement {
    padding: 80px 24px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-left {
    position: static;
    top: auto;
  }

  .intro-visual {
    margin-top: 20px;
    border-radius: 14px;
  }

  .intro-hotspot-hint {
    font-size: 9px;
    left: 12px;
    bottom: 12px;
  }

  .intro-hotspot {
    width: 64px;
    height: 64px;
  }

  .intro-hotspot-label {
    font-size: 11px;
    padding: 8px 10px;
  }

  .intro-visual-cta {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .intro-quote {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.1;
  }

  .intro-body {
    margin-top: 28px;
    line-height: 1.75;
  }

  .selected-work {
    padding: 80px 0;
  }

  .selected-work-header {
    padding: 0 24px;
  }

  .projects-strip {
    padding: 0 24px;
  }

  .project-card {
    flex: 0 0 300px;
    height: 420px;
  }

  .discipline-content {
    padding: 0 28px 40px;
  }

  .discipline-arrow {
    right: 28px;
    bottom: 40px;
  }

  .discipline-name {
    font-size: clamp(36px, 10vw, 60px);
  }

  .numbers-strip {
    padding: 64px 24px 72px;
  }

  .numbers-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .number-item-inner {
    padding: 40px 28px 36px;
  }

  .number-item {
    border-radius: 24px;
  }

  .site-footer {
    padding: 0 24px 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }

  .footer-top .nav-mark,
  .footer-nav,
  .footer-social {
    justify-self: start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }

  .footer-brand-name {
    font-size: clamp(22px, 7vw, 36px);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .page-header {
    padding: 120px 24px 48px;
  }

  .filter-bar {
    padding: 0 24px;
  }

  .projects-grid {
    columns: 1;
    padding: 24px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .contact-wrap {
    padding: 128px 24px 72px;
  }

  .contact-form-col .contact-sub:last-of-type {
    margin-bottom: 48px;
  }

  .contact-info-established {
    margin-top: 48px;
    padding-top: 36px;
  }

  .careers-hero {
    min-height: 72svh;
  }

  .careers-hero-content {
    padding: calc(var(--nav-height) + 32px) 24px 56px;
    align-items: flex-start;
  }

  .careers-hero-content .section-label,
  .careers-hero-content h1,
  .careers-hero-tagline {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
    width: 100%;
    max-width: 100%;
  }

  .careers-hero-content h1 {
    margin-left: 0 !important;
    letter-spacing: 0;
  }

  .careers-teams {
    padding: 72px 24px 56px;
  }

  .careers-teams-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .careers-apply--dark {
    padding: 72px 24px 80px;
  }

  .careers-apply-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-intro {
    padding: 120px 24px 60px;
  }

  .process-progress {
    display: none;
  }

  .stage-content {
    padding: 0 24px;
  }

  .stage-content--glass {
    padding: 40px 28px;
    margin: 0 20px;
    border-radius: 16px;
  }

  .detail-hero-content {
    inset: auto 0 0 0;
    top: auto;
    height: auto;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
    align-items: flex-end;
  }

  .project-meta-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 24px;
  }

  .meta-col {
    padding: 0;
  }

  .meta-col + .meta-col {
    padding-left: 0;
    border-left: none;
  }

  .meta-col:nth-child(odd) {
    padding-right: 12px;
    border-right: 1px solid var(--color-line-muted);
  }

  .meta-col:nth-child(even) {
    padding-left: 12px;
  }

  .meta-col:nth-child(n + 3) {
    padding-top: 20px;
    border-top: 1px solid var(--color-line-muted);
  }

  .meta-col:nth-child(5) {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-left: 0;
    border-right: none;
    border-top: 1px solid var(--color-line-muted);
  }

  .project-narrative {
    padding: 72px 24px;
  }

  .project-nav-bar {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .proj-nav-link {
    padding-top: 28px;
    padding-bottom: 28px;
    min-height: 44px;
  }

  .proj-nav-link.prev {
    padding-right: 0;
    min-height: 72px;
    justify-content: center;
  }

  .proj-nav-link.next {
    border-left: none;
    border-top: 1px solid var(--color-line-muted);
    padding-left: 0;
    text-align: left;
    min-height: 72px;
    justify-content: center;
  }

  .proj-nav-name {
    font-size: clamp(18px, 5.5vw, 22px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .form-submit {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .studio-about {
    padding: 72px 24px;
  }

  .studio-philosophy {
    padding: 88px 24px 72px;
  }

  .studio-philosophy-header {
    margin-bottom: 48px;
  }

  .team-section {
    padding: 72px 24px 64px;
  }

  .team-section-header {
    margin-bottom: 40px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .extended-team-section {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .extended-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .timeline-inner {
    padding: 0 24px;
  }

  .timeline-header {
    margin-bottom: 40px;
  }

  .timeline-content {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 32px;
  }

  .timeline-item {
    grid-template-columns: 24px 1fr;
    gap: 0 20px;
    padding-bottom: 8px;
  }

  .timeline-list {
    padding-left: 22px;
  }

  .belief-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .belief-item {
    gap: 24px;
  }

  .belief-item h3 {
    padding-block: 0.08em;
  }

  .recognition-press {
    margin-top: 56px;
    padding: 0 24px;
  }

  .recognition-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .recognition-feature figcaption {
    font-size: 10px;
    padding: 10px 12px 12px;
  }

  .studio-philosophy,
  .projects-intro {
    padding-left: 24px;
    padding-right: 24px;
  }

  .gallery-2col {
    grid-template-columns: 1fr;
  }

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

  .project-gallery-full .gallery-full,
  .project-gallery-full .gallery-item {
    grid-column: 1 / -1;
  }

  /* Disable parallax on mobile */
  .detail-hero-img {
    inset: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 68px;
  }

  .nav-mark {
    width: 82px;
  }

  .nav-mark-img {
    width: 72px;
    height: 94px;
  }

  .hero-title {
    font-size: clamp(28px, 9.5vw, 44px);
  }

  .hero-caption {
    padding: calc(var(--nav-height) + 8px) 16px 84px;
  }

  .hero-footer {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .overlapping-image-inner {
    aspect-ratio: 3 / 4;
  }

  .recognition-features {
    grid-template-columns: 1fr;
  }

  .mobile-menu-links a {
    font-size: clamp(44px, 12vw, 72px);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 12px;
  }
}

/* ============================================
   PROJECTS PAGE — Aparna Kaushik style
   ============================================ */

.page-projects {
  overflow-x: hidden;
}

.seo-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-projects .site-nav--projects {
  transition: transform 0.5s ease, background 0.5s ease;
}

.page-projects .site-nav--projects:not(.scrolled) .nav-links a {
  color: var(--color-black);
}

.page-projects .site-nav--projects:not(.scrolled) .nav-links a::after {
  background: var(--color-black);
}

.page-projects .site-nav--projects:not(.scrolled) .nav-mark--black {
  opacity: 1;
}

.page-projects .site-nav--projects:not(.scrolled) .nav-mark--white {
  opacity: 0;
}

.page-projects .site-nav--projects:not(.scrolled) .hamburger span {
  background: var(--color-black);
}

.page-projects .site-nav--projects.scrolled .nav-links a,
.page-projects .site-nav--projects.scrolled .nav-links a.active {
  color: var(--color-cream);
}

.page-projects .site-nav--projects.scrolled .nav-links a::after {
  background: var(--color-cream);
}

.page-projects .site-nav--projects.scrolled .nav-mark--black {
  opacity: 0;
}

.page-projects .site-nav--projects.scrolled .nav-mark--white {
  opacity: 1;
}

.page-projects .site-nav--projects.scrolled .hamburger span {
  background: var(--color-cream);
}

.page-projects .site-nav--projects.is-hidden {
  transform: translateY(calc(-1 * var(--nav-height)));
}

.page-projects .site-nav--projects.scrolled {
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.projects-outer {
  position: relative;
  left: 0;
  width: 100%;
}

.projects-outer.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.projects-showcase {
  background: var(--color-cream);
}

.projects-intro-block {
  min-height: 20vw;
  padding: calc(var(--nav-height) + 8vw) 52px 3.5vw;
  text-align: center;
}

.projects-intro-label {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1vw;
}

.projects-intro-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1.05;
  margin: 0 0 1vw;
}

.projects-intro-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.projects-row {
  display: flex;
  gap: 0.3vw;
  margin-bottom: 0.3vw;
  height: 92vh;
  min-height: 520px;
}

.projects-row--hero {
  height: auto;
}

.projects-row--full .projects-cell-wrap {
  width: 100%;
}

.projects-row--split .projects-cell-wrap {
  width: 50%;
}

.projects-cell-wrap,
.projects-cell {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.projects-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.projects-row--hero .projects-cell {
  height: auto;
}

.projects-pc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projects-row--hero .projects-pc {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: auto;
  overflow: visible;
}

.projects-row--hero .projects-cell-wrap {
  width: 100%;
}

.projects-pc-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projects-row--full .projects-pc-inner {
  width: 100%;
  height: 100%;
}

.projects-row--hero .projects-pc-inner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: auto;
}

.projects-pc-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects-pc-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  --pc-blur: 48px;
  --pc-saturate: 210%;
  --pc-glass-opacity: 1;
  opacity: var(--pc-glass-opacity);
  backdrop-filter: blur(var(--pc-blur)) saturate(var(--pc-saturate));
  -webkit-backdrop-filter: blur(var(--pc-blur)) saturate(var(--pc-saturate));
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 36px rgba(0, 0, 0, 0.1);
}

.projects-pc-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.38) 0%,
    transparent 48%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

.projects-pc-glass.is-clear {
  --pc-blur: 0px;
  --pc-glass-opacity: 0;
}

.projects-pc-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(20px, 3vw, 40px);
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.16) 38%,
    transparent 72%
  );
}

.projects-pc-glass-pill {
  pointer-events: auto;
  width: fit-content;
  border-radius: 999px;
  padding: clamp(8px, 1vw, 12px) clamp(14px, 1.6vw, 20px);
  max-width: min(420px, 46vw);
}

.projects-pc-glass-pill--location {
  margin-left: auto;
  text-align: right;
}

.projects-pc-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-cream);
  text-transform: none;
}

.projects-pc-location {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.projects-row--hero .projects-pc-glass {
  display: none;
}

.projects-row--hero .projects-pc-inner img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  /* The box is sized from the width/height attributes, which come from
     cover.jpg while the srcset candidates are re-derived from the higher-res
     master — a ~0.1% aspect disagreement. `fill` would stretch to close it;
     `contain` absorbs it instead. */
  object-fit: contain;
}

.projects-pc-inner--placeholder {
  background: #e8e4df;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-row--hero .projects-pc-inner--placeholder {
  min-height: 50vh;
}

.projects-placeholder-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
}

.projects-cta {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-black);
}

.projects-cta-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 115vh;
  margin-top: 0;
  transform: translate(-50%, -50%);
  transform-origin: center;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0.2) 45%, rgba(20, 16, 12, 0.05) 70%),
    url('../assets/projects/the-mansion-residential/cover.jpg') 62% center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  will-change: margin-top;
}

.projects-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.15);
  pointer-events: none;
}

.projects-cta-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(40px, 6vw, 100px);
}

.projects-cta-copy {
  width: min(38vw, 480px);
  max-width: 100%;
  color: #fff;
  text-align: left;
  will-change: margin-top;
}

.projects-cta-copy .projects-cta-label,
.projects-cta-copy .projects-cta-title,
.projects-cta-copy .projects-cta-btn {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-cta-copy .projects-cta-title {
  clip-path: inset(100% 0 0 0);
  transform: translate3d(0, 18px, 0);
}

.projects-cta-copy .projects-cta-btn {
  transform: translate3d(0, 24px, 0) scale(0.96);
}

.projects-cta-copy.is-revealed .projects-cta-label {
  opacity: 0.92;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.08s;
}

.projects-cta-copy.is-revealed .projects-cta-title {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  transition-delay: 0.22s;
}

.projects-cta-copy.is-revealed .projects-cta-btn {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.42s;
}

@media (prefers-reduced-motion: reduce) {
  .projects-cta-copy .projects-cta-label,
  .projects-cta-copy .projects-cta-title,
  .projects-cta-copy .projects-cta-btn {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

.projects-cta-label {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.projects-cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 2rem;
  max-width: 14ch;
}

.projects-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.5s ease, color 0.5s ease;
}

.projects-cta-btn:hover {
  background: #fff;
  color: var(--color-black);
}

.projects-footer {
  position: relative;
  padding-top: 0;
}

.footer-wordmark-wrap {
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(20px, 2.5vw, 36px);
}

.footer-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 0.28em;
  row-gap: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(34px, 7.8vw, 108px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
  user-select: none;
}

.footer-wordmark-word {
  display: inline-block;
  transform: translateY(16vw);
  transition: transform 1s cubic-bezier(0.81, 0, 0.22, 0.99);
}

.footer-wordmark-word--amp {
  font-size: 0.72em;
  letter-spacing: 0;
  padding-inline: 0.06em;
}

.footer-wordmark.is-animated .footer-wordmark-word:nth-child(1) {
  transform: translateY(0);
  transition-delay: 0.06s;
}

.footer-wordmark.is-animated .footer-wordmark-word:nth-child(2) {
  transform: translateY(0);
  transition-delay: 0.18s;
}

.footer-wordmark.is-animated .footer-wordmark-word:nth-child(3) {
  transform: translateY(0);
  transition-delay: 0.3s;
}

.footer-wordmark.is-animated .footer-wordmark-word:nth-child(4) {
  transform: translateY(0);
  transition-delay: 0.42s;
}

.projects-footer .footer-rule {
  transform: scaleX(1);
  transform-origin: left;
  margin-bottom: 56px;
}

@media (min-width: 981px) {
  .projects-row:not(.projects-row--hero) .projects-pc {
    width: 0;
    height: 0;
  }

  .projects-row:not(.projects-row--hero) .projects-pc-inner {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 980px) {
  .projects-outer.is-fixed {
    position: relative;
    top: auto !important;
  }

  .page-projects {
    overflow-x: hidden;
  }

  .projects-intro-block {
    min-height: auto;
    padding: calc(var(--nav-height) + 48px) 24px 40px;
  }

  .projects-row {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    gap: 0;
    margin-bottom: 0;
  }

  .projects-row--hero {
    min-height: 0 !important;
  }

  .projects-row--split .projects-cell-wrap,
  .projects-row--full .projects-cell-wrap {
    width: 100%;
  }

  .projects-cell-wrap,
  .projects-cell {
    height: auto !important;
  }

  .projects-cell {
    display: block;
    position: relative;
    margin-bottom: 0;
  }

  .projects-pc {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .projects-pc-inner {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }

  .projects-row--hero .projects-pc-inner {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }

  .projects-pc-inner.is-visible,
  .projects-pc-inner:has(.projects-img.is-visible),
  .projects-img.is-visible {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }

  .projects-pc-glass.is-scroll-clear {
    animation: projectsGlassScrollClear 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes projectsGlassScrollClear {
    0% {
      opacity: 1;
      backdrop-filter: blur(48px) saturate(210%);
      -webkit-backdrop-filter: blur(48px) saturate(210%);
    }
    100% {
      opacity: 0;
      backdrop-filter: blur(0px) saturate(110%);
      -webkit-backdrop-filter: blur(0px) saturate(110%);
    }
  }

  .projects-pc-inner img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Keep captions overlaid on the image (no black spacer bars between projects). */
  .projects-pc-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: clamp(16px, 3.5vw, 28px);
    gap: 12px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      transparent 72%
    );
    order: 0;
  }

  .projects-pc {
    order: 0;
  }

  .projects-pc-glass-pill {
    max-width: min(420px, 48%);
    width: fit-content;
    padding: 9px 14px;
  }

  .projects-pc-glass-pill--name {
    align-self: auto;
  }

  .projects-pc-glass-pill--location {
    align-self: auto;
    margin-left: auto;
    text-align: right;
    padding: 8px 12px;
  }

  .projects-pc-name {
    font-size: clamp(16px, 4.2vw, 22px);
  }

  .projects-pc-location {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .projects-cta {
    height: 85svh;
    min-height: 480px;
  }

  .projects-cta-panel {
    height: 100%;
    transform: none;
    top: 0;
    left: 0;
    margin-top: 0 !important;
    background:
      linear-gradient(rgba(20, 16, 12, 0.45), rgba(20, 16, 12, 0.45)),
      url('../assets/projects/the-mansion-residential/cover.jpg') center / cover no-repeat;
  }

  .projects-cta-inner {
    align-items: flex-end;
    padding: 0 24px 48px;
  }

  .projects-cta-copy {
    width: 100%;
    text-align: left;
    margin-top: 0 !important;
  }

  .projects-cta-title {
    max-width: none;
  }

  .footer-wordmark-wrap {
    padding: 32px 0 24px;
  }

  .footer-wordmark {
    font-size: clamp(28px, 11vw, 48px);
    column-gap: 0.24em;
  }

  .footer-wordmark-word {
    transform: translateY(64px);
  }

  .projects-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ============================================
   EXPERIENCE HUB (name forthcoming)
   ============================================ */

.page-experience {
  background: var(--color-black);
  color: var(--color-cream);
}

.exp-hero-sequence {
  position: relative;
  isolation: isolate;
  z-index: 2;
  min-height: 100svh;
  overflow: hidden;
}

.exp-hero-sequence.is-sequence-complete .exp-hero-media {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.85s ease;
}

.exp-hero-pin {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.exp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-black);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.7s ease;
}

.exp-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.exp-hero-media-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(140, 97, 68, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(140, 97, 68, 0.1), transparent 55%),
    var(--color-black);
}

.exp-hero-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 42%, transparent 68%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 28%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 0, 0, 0.35), transparent 70%);
}

.exp-hero-sequence.is-video-loading .exp-hero-video {
  opacity: 0;
}

.exp-hero-sequence.is-video-ready .exp-hero-video {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.exp-hero-sequence.is-video-fallback .exp-hero-video {
  display: none;
}

.exp-hero-sequence.is-reduced-motion .exp-hero-video {
  display: none;
}

.exp-hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(var(--nav-height) + 32px)
    clamp(24px, 5vw, 80px)
    clamp(48px, 8vh, 96px);
  background: transparent;
}

.exp-hero-inner {
  max-width: 820px;
}

.exp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}

.exp-hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 0 16px;
}

.exp-hero-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.exp-hero-scroll {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(32px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.exp-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: expScrollPulse 2.4s ease-in-out infinite;
}

@keyframes expScrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.exp-viewer-section {
  position: relative;
  z-index: 3;
  padding: 0 clamp(16px, 3vw, 48px) clamp(48px, 8vh, 96px);
  background: var(--color-black);
}

.exp-viewer-section.is-pending-salon .exp-viewer-wrap {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

body.exp-salon-ready .exp-viewer-section.is-pending-salon .exp-viewer-wrap {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-viewer-wrap {
  position: relative;
  height: min(78svh, 820px);
  min-height: 420px;
  border-radius: clamp(16px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: #050505;
}

#expCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.exp-viewer-wrap--photos #expCanvas[hidden] {
  display: none !important;
}

.exp-photo-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.exp-photo-stage.is-dragging {
  cursor: grabbing;
}

.exp-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Fallback cover before JS sets exact px — keeps landscape sides pannable. */
  width: auto;
  height: 100%;
  min-width: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
  opacity: 0;
  --pan-x: 0px;
  --pan-y: 0px;
  --look-scale: 1.2;
  transform: translate(-50%, -50%) translate3d(var(--pan-x), var(--pan-y), 0) scale(var(--look-scale));
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.9s ease;
  filter: none;
  will-change: transform, opacity;
  pointer-events: none;
  backface-visibility: hidden;
}

.exp-photo.is-active {
  opacity: 1;
  z-index: 1;
}

.exp-photo.is-settling {
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.9s ease;
}

.exp-photo-stage[data-tod="dusk"] .exp-photo {
  filter: brightness(0.88) saturate(1.12) sepia(0.18) contrast(1.05);
}

.exp-photo-stage[data-tod="day"] .exp-photo {
  filter: none;
}

.exp-photo-stage[data-story="cool"] .exp-photo.is-active {
  filter: brightness(1.02) saturate(0.88) hue-rotate(8deg) contrast(1.04);
}

.exp-photo-stage[data-tod="dusk"][data-story="cool"] .exp-photo.is-active {
  filter: brightness(0.9) saturate(0.95) hue-rotate(12deg) sepia(0.08) contrast(1.06);
}

.exp-photo-stage[data-tod="dusk"][data-story="warm"] .exp-photo.is-active {
  filter: brightness(0.88) saturate(1.12) sepia(0.18) contrast(1.05);
}

.exp-viewer-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(7, 7, 10, 0.55) 0%, rgba(7, 7, 10, 0.18) 55%, transparent 78%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.exp-salon-ready .exp-viewer-wrap::before {
  opacity: 1;
}

.exp-viewer-flash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 45%, rgba(255, 248, 235, 0.55), rgba(255, 240, 220, 0.08) 55%, transparent 78%);
  mix-blend-mode: screen;
  will-change: opacity;
}

.exp-viewer-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

.exp-viewer-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.exp-viewer-ui {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 28px);
}

.exp-enter-card {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, calc(100% - 48px));
  max-width: min(420px, calc(100% - 48px));
  padding: clamp(22px, 3.5vw, 34px) clamp(24px, 3.8vw, 40px);
  border-radius: 22px;
  text-decoration: none;
  color: var(--color-cream);
  background: rgba(12, 12, 12, 0.52);
  transition:
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.65s ease,
    border-color 0.45s ease,
    background 0.45s ease;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.exp-enter-card:hover,
.exp-enter-card:focus-visible {
  transform: translate(-50%, calc(-50% - 3px));
  outline: none;
}

.exp-enter-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e0c4a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.exp-enter-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 14ch;
  color: var(--color-cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.exp-enter-cta {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

.exp-enter-card:hover .exp-enter-cta,
.exp-enter-card:focus-visible .exp-enter-cta {
  color: var(--color-cream);
}

.exp-viewer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.exp-viewer-toggles {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.exp-toggle-group {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}

.exp-toggle-btn {
  pointer-events: auto;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.exp-toggle-btn.is-active {
  background: rgba(140, 97, 68, 0.4);
  color: var(--color-cream);
}

.exp-viewer-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
}

.exp-viewer-badge-logo {
  display: block;
  width: auto;
  height: 46px;
  opacity: 0.95;
}

.exp-viewer-hint {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 10px 0 0;
}

.exp-mode-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.2vw, 22px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  max-width: min(420px, calc(100% - 32px));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.exp-mode-btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.5s ease, box-shadow 0.5s ease;
  font-family: var(--font-body);
  text-align: left;
}

.exp-mode-btn.is-active {
  background: rgba(140, 97, 68, 0.35);
  color: var(--color-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.exp-mode-num {
  font-size: 8px;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

.exp-mode-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
}

.exp-mode-desc {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.exp-viewer-caption {
  pointer-events: none;
  position: absolute;
  left: clamp(16px, 2.5vw, 28px);
  bottom: clamp(72px, 9vw, 96px);
  max-width: min(360px, 55%);
}

.exp-viewer-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.1;
}

.exp-viewer-caption p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.exp-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(5, 5, 5, 0.92);
}

.exp-loader-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: expSpin 0.9s linear infinite;
}

@keyframes expSpin {
  to { transform: rotate(360deg); }
}

.exp-loader-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.exp-loader.is-error .exp-loader-ring {
  display: none;
}

.exp-loader.is-error .exp-loader-text {
  color: rgba(255, 200, 180, 0.75);
}

.exp-features {
  position: relative;
  z-index: 3;
  padding: clamp(64px, 10vh, 108px) clamp(24px, 5vw, 80px);
  background: var(--color-black);
}

.exp-features-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.exp-features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.exp-features-lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.exp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.exp-feature-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
}

.exp-feature-index {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.exp-feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.2;
}

.exp-feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.exp-cta {
  position: relative;
  z-index: 3;
  padding: clamp(72px, 12vh, 120px) clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-black);
}

.exp-cta-inner {
  max-width: 640px;
}

.exp-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  margin: 12px 0 20px;
}

.exp-cta-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 28px;
}

.exp-cta-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.exp-cta-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

@media (max-width: 980px) {
  .exp-hero-scroll {
    display: none;
  }

  .exp-hero-title {
    font-size: clamp(40px, 11vw, 72px);
  }

  .exp-viewer-section {
    padding: 0 14px clamp(40px, 8vh, 80px);
  }

  .exp-viewer-wrap {
    height: min(62svh, 560px);
    min-height: 360px;
    border-radius: 16px;
  }

  .exp-viewer-ui {
    padding: 12px;
    gap: 8px;
  }

  .exp-viewer-top {
    gap: 10px;
    align-items: center;
  }

  .exp-viewer-badge {
    flex: 0 0 auto;
    min-width: 0;
    padding: 5px 9px 5px 7px;
    font-size: 8px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    gap: 7px;
  }

  .exp-viewer-badge-logo {
    height: 38px;
  }

  /* Keep Day/Dusk + Warm/Cool on one row — 58% max-width forced a tall wrap */
  .exp-viewer-toggles {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
  }

  .exp-toggle-group {
    flex: 0 1 auto;
    min-width: 0;
    padding: 3px;
  }

  .exp-toggle-btn {
    padding: 6px 7px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  /* Explicit width — shrink-to-fit left the tab bar undersized and clipped labels. */
  .exp-mode-panel {
    align-self: center;
    left: 50%;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    border-radius: 999px;
    gap: 2px;
    padding: 4px;
    overflow-x: visible;
  }

  .exp-mode-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    align-items: center;
    text-align: center;
    gap: 2px;
    overflow: visible;
  }

  .exp-mode-desc {
    display: none;
  }

  .exp-mode-num {
    line-height: 1.2;
  }

  .exp-mode-name {
    font-size: 11px;
    line-height: 1.25;
    overflow: visible;
  }

  .exp-viewer-caption {
    display: none;
  }

  .exp-enter-card {
    top: 46%;
    width: min(300px, calc(100% - 40px));
    max-width: min(300px, calc(100% - 40px));
    padding: 14px 16px;
    border-radius: 16px;
    gap: 8px;
  }

  .exp-enter-eyebrow {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .exp-enter-title {
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.25;
    max-width: 14ch;
  }

  .exp-enter-cta {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-top: 2px;
  }

  .exp-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .exp-hero {
    padding:
      calc(var(--nav-height) + 24px)
      20px
      40px;
  }

  .exp-hero-title {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .exp-hero-tagline {
    font-size: 14px;
  }

  .exp-viewer-section {
    padding: 0 12px 40px;
  }

  .exp-viewer-wrap {
    height: min(58svh, 500px);
    min-height: 320px;
    border-radius: 14px;
  }

  .exp-viewer-ui {
    padding: 10px;
  }

  .exp-viewer-hint {
    display: none;
  }

  .exp-viewer-badge span {
    /* Logo + full label steals toggle space on small phones */
    max-width: 7.5ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .exp-mode-btn {
    padding: 9px 4px;
  }

  .exp-mode-name {
    font-size: 10px;
    line-height: 1.3;
  }

  .exp-enter-card {
    width: min(280px, calc(100% - 36px));
    max-width: min(280px, calc(100% - 36px));
    padding: 12px 14px;
    gap: 6px;
  }

  .exp-enter-title {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.25;
  }

  .exp-features {
    padding: 56px 20px 72px;
  }

  .exp-cta {
    padding: 64px 20px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-hero-scroll-line {
    animation: none;
  }

  .exp-loader-ring {
    animation: none;
  }
}

/* ============================================
   MOBILE REFINEMENTS
   Loaded last so it overrides the page-specific
   980px blocks above.
   ============================================ */

@media (max-width: 768px) {
  .projects-intro-block {
    padding: calc(var(--nav-height) + 44px) 28px 36px;
  }

  .projects-intro-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin: 0 0 12px;
  }

  .projects-intro-title {
    font-size: clamp(34px, 10vw, 52px);
    margin: 0 0 12px;
  }

  /* Sized to hold one line down to ~360px; balanced wrap below that. */
  .projects-intro-sub {
    font-size: clamp(11px, 3vw, 13px);
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-wrap: balance;
  }

  .projects-pc-caption {
    padding: clamp(14px, 4vw, 22px);
    gap: 10px;
  }

  .projects-pc-glass-pill {
    width: fit-content;
    max-width: min(280px, 52%);
    padding: 7px 13px;
  }

  .projects-pc-glass-pill--name,
  .projects-pc-glass-pill--location {
    align-self: auto;
  }

  .projects-pc-glass-pill--location {
    margin-left: auto;
    text-align: right;
    padding: 6px 11px;
  }

  .projects-pc-name {
    font-size: clamp(15px, 4vw, 19px);
  }

  .projects-pc-location {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .projects-intro-block {
    padding: calc(var(--nav-height) + 36px) 26px 30px;
  }

  .projects-pc-caption {
    padding: clamp(12px, 3.5vw, 18px);
  }
}

/* ============================================
   PROJECT DETAIL — MOBILE IMAGE PROPORTIONS
   The renders are 3:2 to 16:9. Pinning them to a viewport height (82vh/72vh)
   gave a portrait box, so object-fit dropped 45% of the frame width and blew up
   the remaining strip ~1.8x — buildings read as vertically stretched. Below the
   desktop breakpoint the box follows the file instead. Placed last so it also
   supersedes the 768px block above.
   ============================================ */

@media (max-width: 980px) {
  .project-gallery-full .gallery-full img,
  .project-gallery-full .gallery-full:first-child img,
  .project-gallery-full .gallery-full--compact img,
  .gallery-full img,
  .gallery-full:first-child img,
  .gallery-full--compact img {
    height: auto;
    min-height: 0;
    max-height: none;
    /* The box now matches the file, so this never letterboxes — it only means a
       stray height can no longer crop or stretch the render. */
    object-fit: contain;
  }

  /* 2-col pairs share a grid row. Fill the stretched cell so the shorter
     image doesn't leave a black void under itself. */
  .project-gallery-full .gallery-item {
    display: grid;
    align-self: stretch;
    min-height: 0;
  }

  .project-gallery-full .gallery-item img,
  .gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .gallery-full--compact {
    max-height: none;
  }

  /* Parallax is disabled under 981px in js/project-detail.js, so the -15% bleed
     was only enlarging the hero crop another 30% for no motion. */
  .detail-hero-img {
    inset: 0;
  }

  /* A fixed 4:5 frame rather than the full viewport height: still full-bleed,
     but the crop no longer grows with the height of the phone (390x844 was
     showing a 3.25x zoomed slice of a 3:2 render). */
  .detail-hero {
    /* width must stay definite, or max-height makes aspect-ratio shrink the
       section horizontally instead of just capping its height. */
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 88svh;
    min-height: 420px;
  }
}
