/* ═══ TT RAMILLAS FONT FAMILY ═════════════════════════════════════════════ */

/* Variable — Roman (covers all weights 200–900 upright) */
@font-face {
  font-family: 'TT Ramillas';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Variable Roman.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Variable — Italic (covers all weights 200–900 italic) */
@font-face {
  font-family: 'TT Ramillas';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Variable Italic.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Initials — decorative drop-cap / display variant */
@font-face {
  font-family: 'TT Ramillas Initials';
  src: url('fonts/tt-ramillas/TT Ramillas Initials Trial Variable.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Decor — outline / ornamental variant */
@font-face {
  font-family: 'TT Ramillas Decor';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Black Decor.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Ramillas Decor';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Black Decor Italic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Outline — another ornamental variant */
@font-face {
  font-family: 'TT Ramillas Outline';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Black Outline.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Ramillas Outline';
  src: url('fonts/tt-ramillas/TT Ramillas Trial Black Outline Italic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ═══ TT INTERPHASES PRO FONT FAMILY ══════════════════════════════════════ */

/* Variable — Roman (covers all weights upright) */
@font-face {
  font-family: 'TT Interphases Pro';
  src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Condensed — static weights (no variable available) */
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Thin Italic.ttf') format('truetype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed ExtraLight Italic.ttf') format('truetype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Light Italic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Medium Italic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed DemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed DemiBold Italic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Bold Italic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed ExtraBold Italic.ttf') format('truetype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Interphases Pro Condensed'; src: url('fonts/tt-interphases-pro/TT Interphases Pro Trial Condensed Black Italic.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }

/* Mono — variable */
@font-face {
  font-family: 'TT Interphases Pro Mono';
  src: url('fonts/tt-interphases-pro/TT Interphases Pro Mono Trial Var Roman.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Interphases Pro Mono';
  src: url('fonts/tt-interphases-pro/TT Interphases Pro Mono Trial Var Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ═══ RESET & BASE ════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--olive-deep);
  color: #F0EFE9;
  font-family: var(--ff-sans);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ═══ TOKENS ══════════════════════════════════════════════════════════════ */
:root {
  --cream:        #F0EFE9;
  --cream-soft:   #F1F0EA;
  --olive:        #3A4A16;
  --olive-deep:   #212E02;
  --muted:        #8F8F8E;
  --ff-display:   'Instrument Serif', Georgia, serif;
  --ff-serif:     'TT Ramillas', 'Instrument Serif', Georgia, serif;
  --ff-sans:      'TT Interphases Pro', 'Jost', system-ui, sans-serif;
  --ease-out:     cubic-bezier(.4,0,.2,1);
  --ease-expo:    cubic-bezier(.16,1,.3,1);
  --page-gutter:  4rem;   /* 64px — matches homepage work cards */
}

/* ═══ COLUMN HAIRLINES ════════════════════════════════════════════════════ */
.col-lines { position: relative; }
.col-lines::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(58,74,22,.08) 1px, transparent 1px) 25% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(58,74,22,.08) 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(58,74,22,.08) 1px, transparent 1px) 75% 0 / 1px 100% no-repeat;
  z-index: 0;
}
.col-lines-dark::before {
  background:
    linear-gradient(90deg, rgba(240,239,233,.055) 1px, transparent 1px) 25% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(240,239,233,.055) 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(240,239,233,.055) 1px, transparent 1px) 75% 0 / 1px 100% no-repeat;
}

/* ═══ TYPE SCALES ═════════════════════════════════════════════════════════ */
.hero-display {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 11rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
/* FOUT prevention: hide the hero text while fonts are loading so users
   don't see Georgia → Instrument Serif swap. Auto-reveals once fonts
   ready, or after a 1.2s safety timeout. */
html.fonts-loading .hero-display { visibility: hidden; }
.body-ed {
  font-family: var(--ff-sans);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}
.body-ed-light {
  color: rgba(240,239,233,.65);
  max-width: 36ch;
}
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .5;
}
.eyebrow-light { color: rgba(240,239,233,.42); margin-bottom: .7rem; }
.eyebrow-dark  { color: var(--muted); margin-bottom: .8rem; opacity: 1; }

/* ═══ PILL BUTTON ═════════════════════════════════════════════════════════ */
.pill {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: .65rem 1.65rem;
  cursor: pointer;
  border: 1px solid;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.pill-light {
  color: var(--cream);
  border-color: rgba(240,239,233,.35);
  background: transparent;
}
.pill-light:hover {
  background: var(--cream);
  color: var(--olive-deep);
  border-color: var(--cream);
}
.pill-dark {
  color: #4D4B45;
  border-color: #8B8A80;
  background: transparent;
}
.pill-dark:hover {
  background: #4D4B45;
  color: var(--cream);
  border-color: #4D4B45;
}

/* ═══ PAGE TRANSITION OVERLAY ═════════════════════════════════════════════ */
#pageOverlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--olive-deep);
  transform: translateY(100%);
  transition: transform .95s cubic-bezier(.7,0,.2,1);
  will-change: transform;
}
#pageOverlay.active { transform: translateY(0); }
#pageOverlayLabel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: var(--cream);
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .6s var(--ease-expo);
}
#pageOverlay.active #pageOverlayLabel {
  transition-delay: .35s;
  opacity: 1;
  transform: translateY(0);
}

/* ═══ PERSISTENT UI ═══════════════════════════════════════════════════════ */
.persist {
  position: fixed;
  z-index: 9999;
  mix-blend-mode: difference;
  color: #F0EFE9;
}
#logo {
  top: 2rem; left: 2rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--cream);
  text-align: right;
}
#logo span.indent { padding-left: .55em; }
#sidenav {
  right: 2rem;
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .75rem;
  mix-blend-mode: normal;
}
.nav-item {
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A7A297;
  opacity: .55;
  transition: opacity 220ms var(--ease-out), color 220ms var(--ease-out);
  display: flex; align-items: center; gap: .3em; justify-content: flex-end;
}
.nav-item.active { opacity: 1; }
.nav-dot { font-size: .45rem; }
#location {
  bottom: 2rem; left: 2rem;
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .45;
}
@media (max-width: 639px) {
  #sidenav, #location { display: none !important; }
}

/* ═══ REVEAL SYSTEM ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity .9s var(--ease-expo),
    transform .9s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-group > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .85s var(--ease-expo),
    transform .85s var(--ease-expo);
}
.stagger-group.visible > *:nth-child(1) { transition-delay: 0s;   opacity: 1; transform: none; }
.stagger-group.visible > *:nth-child(2) { transition-delay: .12s; opacity: 1; transform: none; }
.stagger-group.visible > *:nth-child(3) { transition-delay: .22s; opacity: 1; transform: none; }
.stagger-group.visible > *:nth-child(4) { transition-delay: .32s; opacity: 1; transform: none; }
.stagger-group.visible > *:nth-child(5) { transition-delay: .40s; opacity: 1; transform: none; }

.reveal-heading {
  overflow: hidden;
  display: block;
  margin-bottom: 1.5rem;
}
.reveal-heading-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-expo);
}
.reveal-heading.visible .reveal-heading-inner { transform: translateY(0); }

.reveal-eyebrow {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .7s ease, transform .7s var(--ease-expo);
}
.reveal-eyebrow.visible { opacity: 1; transform: translateX(0); }

.reveal-pill {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .6s ease, transform .6s var(--ease-expo);
}
.reveal-pill.visible { opacity: 1; transform: scale(1); }

.reveal-d1 { transition-delay: .1s !important; }
.reveal-d2 { transition-delay: .22s !important; }
.reveal-d3 { transition-delay: .36s !important; }
.reveal-d4 { transition-delay: .5s !important; }

/* ═══ HERO LETTER REVEAL ══════════════════════════════════════════════════ */
.hero-letter {
  display: inline-block;
  color: #3A4A16;
  transition: color 0.4s var(--ease-out);
}
.hero-letter.lit { color: var(--cream); }

/* ═══ SECTIONS ════════════════════════════════════════════════════════════ */
section { position: relative; }
.inner { position: relative; z-index: 1; }
.decor-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ═══ HERO ════════════════════════════════════════════════════════════════ */
#home {
  height: 100vh;
  background: var(--olive-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Padding-trick keeps olive bg full-width while hero content centres
     within a 1800px max on ultra-wide screens. */
  padding: 0 max(4rem, calc((100% - 1800px) / 2)) 6rem;
  overflow: hidden;
}
.hero-sub {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) .7s forwards;
}
.hero-sub-label {
  font-family: var(--ff-sans);
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .65;
}
.hero-sub-line {
  height: 1px; width: 72px;
  background: rgba(240,239,233,.22);
  transform-origin: left;
  animation: scaleX 1.2s var(--ease-expo) .85s both;
}
@keyframes scaleX {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; right: 4rem;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-family: var(--ff-sans);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.scroll-bar {
  width: 1px; height: 28px;
  background: rgba(240,239,233,.38);
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100% { transform: scaleY(1) translateY(0); }
  50%     { transform: scaleY(1) translateY(5px); }
}

/* ═══ DISCIPLINES MARQUEE ═════════════════════════════════════════════════ */
#disciplines {
  background: var(--cream);
  padding: 2.8rem 0;
  border-bottom: 1px solid rgba(58,74,22,.1);
  overflow: hidden;
}
.disc-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
  align-items: baseline;
}
.disc-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .disc-marquee-track { animation-play-state: paused; }
}
.disc-marquee-item {
  display: flex;
  align-items: baseline;
  gap: 1.8rem;
  padding-right: 1.8rem;
  white-space: nowrap;
}
.disc-marquee-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(58,74,22,.22);
  flex-shrink: 0;
  align-self: center;
}
.disc-item {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 3rem);
  color: var(--olive);
  letter-spacing: -0.015em;
  line-height: 1;
}

/* ═══ PINNED SCROLL SCENES ════════════════════════════════════════════════ */
.pin-wrap {
  position: relative;
  height: 170vh;
}
.pin-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scene 1 — Statement */
#statement-wrap { background: #F1F0EA; height: 220vh; }
#statement      { background: #F1F0EA; z-index: 1; }
.statement-fade {
  opacity: 0;
  position: relative; z-index: 2; text-align: center;
  will-change: opacity, transform, filter;
}
.statement-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--olive);
  max-width: 22ch;
  margin: 0 auto;
}

/* Scene 2 — Process */
#process-wrap { background: var(--olive-deep); height: 290vh; margin-top: -100vh; }
#process {
  background: var(--olive-deep);
  padding: 0;
  z-index: 2;
  will-change: transform;
  overflow: hidden;
}
.process-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proc-orbit-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240,239,233,0.13);
  pointer-events: none;
}
.proc-center {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.process-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -.015em;
  margin: 0;
}
.proc-circle-slot {
  position: absolute;
  will-change: transform, opacity;
  pointer-events: none;
}
.proc-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.proc-circle-orb {
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.orb-content {
  position: absolute;
  inset: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.78rem, 1.15vw, 0.94rem);
  color: rgba(8, 12, 0, 0.6);
  text-align: center;
  line-height: 1.3;
  padding: 0 0.6em;
}

/* Decorative star spin */
@keyframes starSpin        { to { transform: rotate(360deg);  } }
@keyframes starSpinReverse { to { transform: rotate(-360deg); } }
.star-spin        { animation: starSpin        45s linear infinite; transform-origin: center; }
.star-spin-slow   { animation: starSpin        80s linear infinite; transform-origin: center; }
.star-spin-reverse{ animation: starSpinReverse 60s linear infinite; transform-origin: center; }

/* ═══ FEATURED WORK — pinned card-swap ════════════════════════════════════ */
#work-pin-wrap {
  position: relative;
  height: 800vh;
  z-index: 1;
}
#work {
  background: var(--cream);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#workProgress {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.work-header {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
}
.work-header-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--olive-deep);
  margin: 0.6rem 0 0;
}
.work-cards-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}
.work-visual-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  border-radius: 0 1.5rem 1.5rem 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.work-visual-item {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.work-visual-item .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
}
.work-visual-item .thumb-image {
  overflow: hidden;
}
.work-visual-item .thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.work-card-meta {
  margin-left: 58%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 4rem 64px;
}
.work-card-counter {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.work-card-cta {
  align-self: flex-start;
  margin-top: 2rem;
}
.project-eyebrow {
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.project-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.022em;
  color: var(--olive-deep);
  margin-bottom: 1.4rem;
}
.project-desc {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: #5C5A54;
  max-width: 38ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.thumb-glow {
  position: absolute;
  width: 55%; height: 65%;
  border-radius: 50%;
  opacity: .11;
  filter: blur(55px);
  top: 18%; left: 18%;
}
.thumb-label {
  position: absolute;
  bottom: 1.1rem; left: 1.3rem;
  font-family: var(--ff-sans);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
}

/* ═══ ABOUT TEASER ════════════════════════════════════════════════════════ */
#about-wrap {
  background: var(--olive-deep);
  margin-top: -100vh;
  position: relative;
  z-index: 2;
  height: 200vh;
}
.about-scene {
  background: var(--olive-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
}
#about {
  background: var(--olive-deep);
  padding: 9rem 4rem;
  width: 100%;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo);
  will-change: opacity, transform, filter;
}
.about-grid.visible { opacity: 1; transform: translateY(0); }
.about-grid > div:first-child { padding-top: 0.5rem; }
.about-bio { color: var(--cream); margin-bottom: 2.5rem; opacity: .88; line-height: 1.6; max-width: none; }
.testimonial-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.testimonial-block {
  border-left: 1px solid rgba(240,239,233,.2);
  padding-left: 2.5rem;
}
.testimonial-text {
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  opacity: .82;
}
.testimonial-attr {
  font-family: var(--ff-sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,239,233,.42);
}

/* ═══ SIDE PROJECTS ═══════════════════════════════════════════════════════ */
#side {
  background: var(--cream-soft);
  padding: 6rem 4rem;
}
.side-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.side-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 400;
  color: var(--olive);
  letter-spacing: -.014em;
  line-height: 1.06;
}

/* ═══ FOOTER / CONTACT ════════════════════════════════════════════════════ */
#contact {
  background: var(--olive-deep);
  padding: 9rem 4rem 5rem;
  overflow: hidden;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-bg-text {
  position: absolute;
  bottom: -2rem; right: -3rem;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(6rem, 16vw, 18rem);
  font-weight: 400;
  color: rgba(58,74,22,.32);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.contact-eyebrow { margin-bottom: 1.4rem; }
.contact-heading {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: .95;
  letter-spacing: -.025em;
  max-width: 14ch;
  margin: 0;
  padding-bottom: 0.18em;
}
.contact-sub {
  font-family: var(--ff-sans);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  color: rgba(240,239,233,.65);
  max-width: 46ch;
  margin-bottom: 3.5rem;
  line-height: 1.6;
}
.pill-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.footer-base {
  margin-top: 7rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,239,233,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(240,239,233,.28);
}
.footer-sig {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: .92rem;
  color: rgba(240,239,233,.28);
  letter-spacing: -.01em;
}

/* ═══ WORK→ABOUT TRANSITION STARS ═════════════════════════════════════════ */
#workExitStars {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 48;
  opacity: 0;
}

/* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
  #home, #disciplines, #statement, #process, #about, #side, #contact {
    padding-left: 1.5rem; padding-right: 1.5rem;
  }

  /* ── Work section: unpin and stack visual + card pairs ── */
  #work-pin-wrap { height: auto !important; }
  #work {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 5rem 1.5rem 4rem !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Header occupies row 1 */
  .work-header {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 0 1.5rem !important;
    height: auto !important;
    pointer-events: auto !important;
    grid-row: 1;
  }
  .work-header-title { font-size: clamp(2.5rem, 11vw, 4rem); }

  /* Decorative/utility children — hide or shrink so they don't add gaps */
  #workProgress,
  #workStarField,
  #workExitStars { display: none !important; }

  /* Flatten the visual + cards containers so their children become grid items of #work */
  #workVisual,
  #workCards {
    display: contents !important;
    position: static !important;
  }

  /* Each visual item shows inline as a card image */
  .work-visual-item {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    border-radius: 1.25rem;
    overflow: hidden;
  }
  .work-visual-item .thumb,
  .work-visual-item .thumb-image { border-radius: 0; }

  /* Each work-card sits below its matching visual */
  .work-card {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }
  .work-card-meta {
    margin-left: 0 !important;
    padding: 0 0 2rem !important;
    min-height: auto !important;
    justify-content: flex-start !important;
  }
  .work-card-cta { pointer-events: auto !important; }
  .project-title { font-size: clamp(2.25rem, 9vw, 3.25rem); }

  /* Pair visual N with card N. DOM order under #work:
     workHeader(row 1) → workProgress (hidden) → workStarField (hidden) →
     #workVisual (display:contents, 4 visuals) → #workCards (4 cards). */
  .work-visual-item:nth-child(1) { grid-row: 2; }
  .work-card:nth-child(1)        { grid-row: 3; }
  .work-visual-item:nth-child(2) { grid-row: 4; }
  .work-card:nth-child(2)        { grid-row: 5; }
  .work-visual-item:nth-child(3) { grid-row: 6; }
  .work-card:nth-child(3)        { grid-row: 7; }
  .work-visual-item:nth-child(4) { grid-row: 8; }
  .work-card:nth-child(4)        { grid-row: 9; }

  /* ── About section: undo the desktop -100vh overlap + sticky pin ── */
  #about-wrap {
    margin-top: 0 !important;
    height: auto !important;
    z-index: auto !important;
  }
  .about-scene {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }
  #about {
    padding: 5rem 1.5rem !important;
  }
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    opacity: 1 !important;
    transform: none !important;
    max-width: 100% !important;
  }
}

/* ═══ REDUCED MOTION ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-letter { color: var(--cream) !important; }
  .star-spin, .star-spin-slow, .star-spin-reverse { animation: none; }
  #process { clip-path: none !important; opacity: 1 !important; }
}

/* ═══ SCROLLBAR ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(240,239,233,.18); border-radius: 2px; }
