/* Design tokens. The ONLY file that holds raw colour values (plans/CONTRACT.md section 1). */
:root {
  --ink: #13100d;
  --cream: #e9e2d6;
  --white: #ffffff;
  --black: #000000;
  --paper-2: #1d1915;
  --paper-3: #d8d0c2;
  --text-2: #d9d1c3;
  --text-3: #b9b0a2;
  --text-4: #8a8275;
  --ink-2: #4a443c;
  --ink-3: #3a342d;
  --error-on-cream: #9b2c1f;
  --accent: oklch(0.72 0.06 235);
  --accent-dark: oklch(0.5 0.06 235);
  --accent-deep: oklch(0.45 0.06 235);
  --nav-glass: rgba(28, 34, 36, 0.62);
  --modal-scrim: rgba(10, 8, 6, 0.86);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(80px, 12vh, 140px);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --pill: 999px;
  --ease-out: cubic-bezier(0.77, 0, 0.18, 1);
}

/* Self-hosted fonts (SIL Open Font License). Paths are relative to assets/css/main.css. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-300-900-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-300-900-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/space-mono-400-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/space-mono-400-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-mono-700-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-mono-700-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/spectral-400-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/spectral-400-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/spectral-500-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/spectral-500-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/spectral-300-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/spectral-400-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/spectral-400-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

/* Base, shared atoms. Alpha tints are derived from tokens with color-mix. */
:root {
  --line: color-mix(in srgb, var(--cream) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--cream) 10%, transparent);
  --line-ink: color-mix(in srgb, var(--ink) 15%, transparent);
  --hover-tint: color-mix(in srgb, var(--cream) 8%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }
button { font: inherit; color: inherit; }
::selection { background: var(--cream); color: var(--ink); }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 18px;
  background: var(--cream); color: var(--ink); border-radius: var(--pill);
  font: 700 14px var(--font-display); transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* Film grain. The export's version was broken (mangled SVG attributes rendered no noise). */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.12em; }
.accent { color: var(--accent); }

.section-title { display: flex; align-items: baseline; gap: 20px; }
.section-title h2 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(44px, 7vw, 112px); line-height: .9; letter-spacing: -.04em;
}
.section-title--sm { gap: 16px; }
.section-title--sm h2 { font-size: clamp(40px, 4vw, 64px); }
.section-title--md h2 { font-size: clamp(44px, 6vw, 96px); }
.section-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-4);
}
.meta--ink { color: var(--ink-3); }
.meta--light { color: var(--text-3); letter-spacing: .2em; }

/* Buttons */
.btn {
  position: relative; /* keeps screen-reader text inside the button (see .rail) */
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 18px; border-radius: var(--pill); border: 1px solid transparent; background: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--cream); color: var(--ink); }
.btn--solid:hover { background: var(--white); color: var(--ink); }
.btn--ghost, .btn--ghost-light { border-color: color-mix(in srgb, var(--cream) 30%, transparent); }
.btn--ghost:hover, .btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); padding: 16px 26px; font-size: 12px; }
.btn--ink:hover { background: var(--ink-3); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent);
  font-size: 18px; transition: background .2s, color .2s;
}
.round-btn:hover { background: var(--cream); color: var(--ink); }

.link-line {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--cream);
}
.link-line:hover { border-color: var(--white); }
.link-line--muted { color: var(--text-3); border-color: color-mix(in srgb, var(--cream) 30%, transparent); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: none; border: 0; padding: 4px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.link-quiet:hover { color: var(--white); }

.pill {
  position: absolute; top: 16px; left: 16px; pointer-events: none; padding: 7px 11px; border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.pill--glass {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.chip {
  cursor: pointer; padding: 10px 14px; border-radius: var(--pill); background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Header pill nav + hero + marquee */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 40px);
  padding: 8px; border-radius: var(--pill); max-width: calc(100vw - 24px); white-space: nowrap;
  background: var(--nav-glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
}
.nav__brand { display: flex; align-items: center; gap: 12px; padding-right: 6px; flex-shrink: 0; }
.nav__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav__wordmark { font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--white); }
.nav__links { display: flex; gap: 4px; }
.nav__link { padding: 10px 14px; border-radius: var(--pill); color: var(--cream); transition: background .2s, color .2s; }
.nav__link:hover { color: var(--white); background: var(--hover-tint); }
.nav__end { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__cta {
  flex-shrink: 0; padding: 12px 24px; border-radius: var(--pill); font-weight: 700; color: var(--white);
  border: 1px solid color-mix(in srgb, var(--cream) 70%, transparent); transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--cream); color: var(--ink); }

/* Menu sheet: pure CSS (checkbox) so navigation never depends on JavaScript. */
.nav__toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav__menu-btn, .nav__sheet { display: none; }

@media (max-width: 979px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: block; cursor: pointer; padding: 10px 14px; border-radius: var(--pill); color: var(--cream);
  }
  .nav__menu-btn:hover { background: var(--hover-tint); color: var(--white); }
  .nav__toggle:focus-visible + .nav__menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav__toggle:checked + .nav__menu-btn { background: var(--hover-tint); color: var(--white); }
  .nav__toggle:checked ~ .nav__sheet {
    display: grid; position: absolute; right: 0; top: calc(100% + 18px); min-width: 220px; padding: 8px;
    border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--black) 50%, transparent);
  }
  .nav__sheet .nav__link { padding: 14px 16px; }
}
@media (max-width: 400px) {
  .nav { gap: 8px; }
  .nav__wordmark { font-size: 18px; }
  .nav__cta { padding: 12px 16px; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
}
.hero__media { position: absolute; inset: 0; background: var(--paper-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 45%, transparent) 0%, transparent 28%,
      color-mix(in srgb, var(--ink) 35%, transparent) 58%, color-mix(in srgb, var(--ink) 92%, transparent) 88%, var(--ink) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 55%);
}
.hero__content { position: relative; display: grid; gap: clamp(18px, 3vh, 32px); padding-top: 140px; animation: rise 1s ease both; }
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero__lead { font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; color: var(--text-2); }
.hero__bars { display: flex; gap: 6px; }
.hero__bar { width: 28px; height: 2px; background: color-mix(in srgb, var(--cream) 22%, transparent); transition: background .6s; }
.hero__bar.is-active { background: var(--cream); }
.hero__title {
  display: grid; overflow: hidden; padding-bottom: .08em;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 8vw, 168px);
  line-height: .95; letter-spacing: -.045em; color: var(--cream);
}
.hero__words { display: grid; }
.hero__word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(105%);
  transition: transform .9s var(--ease-out), opacity .9s; text-wrap: balance;
}
.hero__word.is-active { opacity: 1; transform: translateY(0); }
.hero__word.is-leaving { opacity: 0; transform: translateY(-105%); }
.hero__foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 48px;
  align-items: end; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
}
.hero__aka { font-style: italic; font-size: 19px; color: var(--text-3); }
.hero__intro { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 420px; text-wrap: pretty; }
.hero__ctas {
  display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
@media (max-width: 620px) { .hero__ctas { justify-content: flex-start; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line-soft); overflow: hidden; padding: 22px 0; }
.marquee__track {
  display: flex; width: max-content; white-space: nowrap; animation: marq 40s linear infinite;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.02em;
}
.marquee__group { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
.marquee__dot { width: .28em; height: .28em; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Selected Work rail + Studio Collection index */
.work { padding: var(--section-y) 0 clamp(60px, 10vh, 120px); }
.work__head {
  padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.rail-controls { display: flex; gap: 10px; }
/* position:relative is load-bearing. Absolutely positioned descendants of a
   NON-positioned scroller escape its clip: the screen-reader text in each Watch
   button widened the whole page to 1093px on a 390px phone, pushing the header
   and menu half off-screen. tests/mobile.test.mjs guards this in a real browser. */
.rail {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 980px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 12px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 620px) { .rail { grid-auto-columns: 86%; gap: 16px; } }

.work-card { scroll-snap-align: start; display: grid; gap: 20px; align-content: start; }
.work-card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__body { display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap; }
.work-card__text { display: grid; gap: 8px; max-width: 640px; }
.work-card__title { font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; }
.work-card__summary { font-size: 18px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.work-card__side { display: grid; gap: 12px; justify-items: end; }
.work-card__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 620px) { .work-card__side, .work-card__actions { justify-items: start; justify-content: flex-start; } }

.index { background: var(--cream); color: var(--ink); padding: var(--section-y) var(--gutter); }
.index .section-num { color: var(--accent-dark); }
.index-head {
  display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-ink);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.idx-row {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 280px);
  gap: clamp(16px, 3vw, 48px); align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line-ink);
  transition: background .2s;
}
.idx-row:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.idx-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-dark); align-self: start; padding-top: 10px; }
.idx-row__text { display: grid; gap: 12px; min-width: 0; }
.idx-row__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.idx-row__title { font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -.03em; line-height: 1; }
/* The whole row is clickable through the heading's button (stretched target). */
.idx-row__open { all: unset; cursor: pointer; }
.idx-row__open::after { content: ''; position: absolute; inset: 0; }
.idx-row__open:focus-visible { outline: none; }
.idx-row:has(.idx-row__open:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--accent-dark); color: var(--accent-deep);
}
.idx-row__summary { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 760px; text-wrap: pretty; }
.idx-row__media { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.idx-row__media img { width: 100%; height: 100%; object-fit: cover; }
.idx-empty { padding: 48px 0; font-size: 19px; color: var(--ink-2); }

@media (max-width: 759px) {
  .idx-row { grid-template-columns: 32px minmax(0, 1fr); align-items: start; padding: 28px 0; }
  .idx-row__media { grid-column: 2; }
}

/* Stills, Writing, About */
.stills { padding: var(--section-y) var(--gutter); display: grid; gap: 40px; }
@media (min-width: 760px) {
  .stills { grid-template-columns: minmax(200px, 1fr) 3fr; }
  .stills__aside { position: sticky; top: 110px; align-self: start; }
}
.stills__aside { display: grid; gap: 28px; align-content: start; }
.stills__intro { font-size: 17px; line-height: 1.55; color: var(--text-3); max-width: 280px; }
.stills__filters { display: grid; gap: 4px; }
.stills__filters .chip {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-4);
}
.stills__filters .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stills__filters .chip[aria-pressed="true"] { color: var(--cream); }
.stills__filters .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.stills__filters .chip[aria-pressed="true"] .dot { background: currentColor; }
@media (max-width: 759px) {
  .stills__filters { display: flex; flex-wrap: wrap; gap: 4px 18px; }
}
.stills__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; min-width: 0; }
@media (max-width: 559px) { .stills__grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.still { display: grid; gap: 10px; }
.still__frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.still__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.still:hover .still__frame img { transform: scale(1.03); }
.still__caption {
  display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-4);
}

.writing { padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line-soft); }
.writing .section-title { margin-bottom: 56px; }
.writing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px 80px; }
.writing__intro { display: grid; gap: 32px; align-content: start; }
.writing__intro p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; text-wrap: pretty; }
.btn-box {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px;
  border: 1px solid color-mix(in srgb, var(--cream) 35%, transparent);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-box:hover { background: var(--cream); color: var(--ink); }
.posts { border-top: 1px solid var(--line); }
.post {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease-out), color .2s;
}
.post:hover { padding-left: 12px; }
.post__title { font-size: clamp(20px, 1.7vw, 26px); }
.post__date { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-4); white-space: nowrap; }

.about {
  padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 56px 80px;
}
.about__media { aspect-ratio: 4 / 5; max-height: 820px; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: 40px; align-content: center; }
.about__copy { display: grid; gap: 20px; max-width: 620px; }
.about__copy p { font-size: 19px; line-height: 1.6; color: var(--text-3); }
.about__copy .about__lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; color: var(--cream); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 40px; }
.facts > div { border-top: 1px solid var(--line); padding: 18px 0; }
.facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-4); margin-bottom: 8px; }
.facts dd { font-size: 19px; }

/* Footer / contact, project modal, 404 */
.contact {
  background: var(--cream); color: var(--ink);
  padding: clamp(80px, 14vh, 160px) var(--gutter) 36px; display: grid; gap: clamp(56px, 9vh, 110px);
}
.contact a:hover { color: var(--ink-3); }
.contact__lead { display: grid; gap: 28px; }
.contact__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-deep); }
.contact__headline {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(56px, 12vw, 210px); line-height: .85; letter-spacing: -.05em;
}
.contact__email { justify-self: start; font-size: clamp(20px, 2vw, 28px); text-decoration: underline; text-underline-offset: 6px; overflow-wrap: anywhere; }

.contact-form { display: grid; gap: 28px; max-width: 920px; }
.contact-form__title { font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.02em; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
@media (max-width: 640px) { .contact-form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 18px/1.5 var(--font-body); color: var(--ink);
  background: color-mix(in srgb, var(--white) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius-sm);
  padding: 14px 16px; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error-on-cream); }
.field__error { font-size: 15px; color: var(--error-on-cream); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-form__status { font-size: 17px; color: var(--ink-2); }
.contact-form__status.is-error { color: var(--error-on-cream); }
.contact-form__alt { font-size: 16px; color: var(--ink-2); }
.contact-form__alt a { text-decoration: underline; text-underline-offset: 4px; }

.contact__bar {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.contact__socials { display: flex; gap: 24px; flex-wrap: wrap; }
.credit { margin-top: -40px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* Project modal: native <dialog> gives focus trapping, Escape and an inert page. */
.modal {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow-y: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: var(--modal-scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal[open] .modal__inner { animation: rise .4s ease both; }
.modal__inner { max-width: 1280px; margin: 0 auto; padding: clamp(20px, 4vw, 48px); display: grid; gap: 36px; }
.modal__bar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; }
.modal__nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0 24px; }
body.has-modal { overflow: hidden; }

.case { display: grid; gap: 36px; }
.case__video { display: grid; gap: 14px; }
.case__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); }
.case__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case__play { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.case__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__play:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.case__play-icon {
  position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--cream) 92%, transparent); color: var(--ink); font-size: 30px; padding-left: 4px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--black) 40%, transparent); transition: transform .3s var(--ease-out);
}
.case__play:hover .case__play-icon { transform: scale(1.06); }
.case__video .link-quiet { justify-self: end; }
.case__hero { aspect-ratio: 2.39 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
.case__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 72px; }
.case__intro { display: grid; gap: 20px; align-content: start; }
.case__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 6vw, 92px); line-height: .9; letter-spacing: -.04em; }
.case__summary { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.case__facts { display: grid; align-content: start; }
.case__facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.case__facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-4); }
.case__facts dd { font-size: 18px; text-align: right; }
.case-frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.case-frames__item { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.case-frames__item img { width: 100%; height: 100%; object-fit: cover; }

.not-found { min-height: 80vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding: 160px var(--gutter) 80px; }
.not-found__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 7vw, 112px); line-height: .9; letter-spacing: -.04em; }
.not-found__body { font-size: 20px; color: var(--text-3); }
