/* ==========================================================================
   Metaverse Stage — site.css
   Hand-authored design system. Sibling of spatial.film (same type family,
   same charcoal / bone / tally-red palette), with a studio voice:
   condensed "billing block" caps for headlines, Instrument Serif for the
   editorial voice, end-credit layouts, and an off-centre key light.
   Read DESIGN.md before adding anything here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — first four are spatial.film's exact values */
  --ink: #0A0A0B;            /* base (spatial: deep-charcoal) */
  --ink-2: #141416;          /* elevated (spatial: surface-low) */
  --ink-3: #1C1C1F;          /* floating (spatial: surface-high) */
  --ink-4: #26262A;          /* controls on floating surfaces */
  --bone: #EDE9E3;           /* text (spatial: off-white) */
  --bone-rgb: 237 233 227;
  /* Accent: Metaverse Stage gold (Hugh, 2026-10-21: gold, not spatial.film's red). The token keeps
     the name "tally" so every component that used the red now picks up the emblem gold. */
  --tally: #D4A646;          /* emblem gold, tuned for text + fills on ink */
  --tally-hot: #F2D27A;      /* highlight half of the gold gradient */
  --tally-rgb: 212 166 70;
  --on-tally: #1A1206;       /* text on gold fills */
  --tungsten: #FF8A5C;       /* warm fill light — gradients + image grade only, never text */
  --tungsten-rgb: 255 138 92;
  --gilt: #C9993A;           /* studio accent, from the 元 lotus emblem: credits, seals, laurels */
  --gilt-hi: #F2D27A;
  --gilt-rgb: 201 153 58;
  --gilt-gradient: linear-gradient(100deg, #C9993A 0%, #F2D27A 48%, #C9993A 100%);
  --paper: #EDE9E3;          /* light-table sections (bone used as a surface) */
  --paper-ink: #141416;

  /* Text ramps (AA on --ink: 74% ≈ 10:1, 60% ≈ 6.6:1, 50% ≈ 5:1) */
  --text: var(--bone);
  --text-2: rgb(var(--bone-rgb) / 0.74);
  --text-3: rgb(var(--bone-rgb) / 0.6);
  --text-4: rgb(var(--bone-rgb) / 0.5);   /* small meta only, never body */
  --hairline: rgb(255 255 255 / 0.07);
  --hairline-2: rgb(255 255 255 / 0.14);
  --hairline-3: rgb(255 255 255 / 0.24);

  /* Type families */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Archivo width axis (62–125). Three voices from one family. */
  --wdth-billing: 66%;       /* role labels, credits, small caps */
  --wdth-headline: 74%;      /* studio headlines (our voice) */
  --wdth-title: 125%;        /* title card / wordmark (spatial.film's voice) */

  /* Fluid type scale — ~1.2 at 360px rising to ~1.333 at 1440px */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.82rem + 0.12vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.42rem, 1.24rem + 0.85vw, 1.9rem);
  --step-3: clamp(1.7rem, 1.38rem + 1.55vw, 2.6rem);
  --step-4: clamp(2.05rem, 1.5rem + 2.7vw, 3.6rem);
  --step-5: clamp(2.45rem, 1.55rem + 4.4vw, 5.1rem);
  --step-6: clamp(2.95rem, 1.4rem + 7.4vw, 7.6rem);
  --step-7: clamp(3.4rem, 0.9rem + 11.5vw, 11.5rem);

  /* Spacing scale (use these, never ad-hoc values) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;
  --section: clamp(4.5rem, 2.8rem + 7.5vw, 9.5rem);
  --section-tight: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Layout */
  /* Page side margin: 16px on phones, and never less than the notch / home-indicator
     safe area when an iPhone is held landscape (viewport-fit=cover is on). */
  --gutter: max(clamp(1rem, 0.4rem + 3vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --container: 82.5rem;                                 /* 1320px */
  --container-wide: 100rem;
  --container-narrow: 46rem;
  --measure: 62ch;
  --safe-top: env(safe-area-inset-top, 0px);           /* 0 in a Safari tab; status bar in a home-screen web app */
  --header-h: calc(4rem + var(--safe-top));             /* phones: slimmer bar so it doesn't eat the screen */

  /* Hit areas (Vision Pro look-and-pinch, touch). Text links grow their
     tappable box with padding and take it back with a negative margin, so
     nothing moves; the radius gives visionOS a rounded gaze highlight. */
  --hit-x: 0.5rem;
  --r-hit: 0.5rem;
  --tap-min: 2.75rem;    /* 44px */

  /* Radii — hierarchy, not one value everywhere */
  --r-frame: 4px;        /* film frames, posters, stills */
  --r-control: 12px;     /* inputs, small panels */
  --r-panel: 22px;       /* floating panels, dialogs */
  --r-pill: 999px;       /* buttons, chips */

  /* Depth — base → elevated → floating. Shadows are layered + tinted. */
  --shadow-elevated:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    0 1px 2px rgb(0 0 0 / 0.4),
    0 12px 28px -14px rgb(0 0 0 / 0.7);
  --shadow-floating:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 2px 6px rgb(0 0 0 / 0.35),
    0 24px 60px -18px rgb(0 0 0 / 0.75),
    0 30px 90px -40px rgb(var(--tally-rgb) / 0.22);
  --shadow-tally:
    0 10px 40px rgb(var(--tally-rgb) / 0.3),
    inset 0 1px 0 rgb(255 240 200 / 0.35);
  --shadow-tally-hover:
    0 16px 60px rgb(var(--tally-rgb) / 0.5),
    0 0 30px rgb(var(--tally-rgb) / 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* reveals, panels */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* presses, small lifts */
  --ease-std: cubic-bezier(0.25, 0.1, 0.25, 1);     /* fades */
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 700ms;
  --dur-reveal: 900ms;

  /* Stacking */
  --z-header: 50;
  --z-menu: 60;
  --z-grain: 90;
  --z-skip: 100;

  color-scheme: dark;
}

@media (min-width: 56.25em) {
  :root { --header-h: calc(5.25rem + var(--safe-top)); }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  scroll-padding-top: calc(var(--header-h) + var(--space-m));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

main { flex: 1 0 auto; display: block; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

img, picture, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; } /* component display rules (.form{display:grid} etc.) must never beat the attribute */

/* Every interactive element gets a rounded box, so the visionOS gaze highlight
   (drawn from the element's own shape) never shows as a hard rectangle. */
a, button, summary, label[for], [role="button"] { border-radius: var(--r-hit); }
summary { cursor: pointer; }

::selection { background: rgb(var(--tally-rgb) / 0.85); color: var(--on-tally); }

:focus-visible {
  outline: 2px solid var(--tally-hot);
  outline-offset: 3px; /* the ring follows each element's own radius */
}
:focus:not(:focus-visible) { outline: none; }

/* Film grain — fixed overlay, no markup needed (spatial.film uses the same recipe) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

/* Studio headline — condensed heavy caps, like a one-sheet billing title */
.t-headline {
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Title card — spatial.film's expanded caps. One per page, max. */
.t-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-title);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* Editorial serif — statements, pull quotes, section openers */
.t-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-serif em, .t-serif i, .t-italic { font-style: italic; }

/* Size helpers (pair with a voice above) */
.s-7 { font-size: var(--step-7); }
.s-6 { font-size: var(--step-6); }
.s-5 { font-size: var(--step-5); }
.s-4 { font-size: var(--step-4); }
.s-3 { font-size: var(--step-3); }
.s-2 { font-size: var(--step-2); }
.s-1 { font-size: var(--step-1); }
.s-0 { font-size: var(--step-0); }
.s--1 { font-size: var(--step--1); }

/* Kicker — spatial.film's serif-italic red line. Sentence case. Use sparingly:
   at most one per section, never above every heading. */
.kicker {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--tally);
}

/* Gold variant: studio-only moments (production credit lines, awards). */
.kicker--gilt { color: var(--gilt); }

/* Gold-foil text — for one short line per page at most (e.g. an award name) */
.t-gilt {
  background: var(--gilt-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Billing label + value — the movie-poster credit block */
.billing-role {
  display: block;
  font-family: var(--font-display);
  font-stretch: var(--wdth-billing);
  font-size: var(--step--2);
  font-weight: 600;            /* condensed caps at 12px need the extra weight to survive distance + headset scaling */
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.3;
  color: var(--text-3);
}
.billing-name {
  display: block;
  font-family: var(--font-display);
  font-stretch: var(--wdth-billing);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.12;
  color: rgb(var(--bone-rgb) / 0.94);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 40ch;
  text-wrap: pretty;
}

.prose { max-width: var(--measure); color: var(--text-2); text-wrap: pretty; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--text);
  text-decoration-color: rgb(var(--tally-rgb) / 0.6);
}
.prose a:hover { text-decoration-color: var(--tally); }
.prose h2, .prose h3 {
  margin-top: 2em;
  color: var(--text);
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--tally); }

.meta {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-3);
}

.text-tally { color: var(--tally); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

/* Full-bleed child inside a .container */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* Bleed off the right edge only (editorial image hang) */
@media (min-width: 56.25em) {
  .bleed-right { margin-right: calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / -2); }
  .bleed-left { margin-left: calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / -2); }
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: var(--section-tight); }
.section--flush-top { padding-top: 0; }
.section--surface {
  background: var(--ink-2);
  border-block: 1px solid var(--hairline);
}
/* Light-table section — bone as surface. Max one per page. */
.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
  --text: var(--paper-ink);
  --text-2: rgb(20 20 22 / 0.78);
  --text-3: rgb(20 20 22 / 0.64);
  --text-4: rgb(20 20 22 / 0.56);
  --hairline: rgb(20 20 22 / 0.1);
  --hairline-2: rgb(20 20 22 / 0.18);
  --hairline-3: rgb(20 20 22 / 0.3);
  color-scheme: light;
}
.section--paper .kicker { color: #7A571B; } /* deeper gold keeps AA on bone */
.section--paper { --tally: #7A571B; --tally-hot: #9A7428; }
.section--paper .billing-name { color: var(--paper-ink); }
.section--paper { --gilt: #8A6420; } /* deeper gold keeps AA on bone */

/* 12-column editorial grid. Children span full width on phones. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--space-xl);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 56.25em) {
  .span-3 { grid-column: auto / span 3; }
  .span-4 { grid-column: auto / span 4; }
  .span-5 { grid-column: auto / span 5; }
  .span-6 { grid-column: auto / span 6; }
  .span-7 { grid-column: auto / span 7; }
  .span-8 { grid-column: auto / span 8; }
  .span-9 { grid-column: auto / span 9; }
  .span-12 { grid-column: 1 / -1; }
  .start-1 { grid-column-start: 1; }
  .start-2 { grid-column-start: 2; }
  .start-3 { grid-column-start: 3; }
  .start-5 { grid-column-start: 5; }
  .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; }
  .start-8 { grid-column-start: 8; }
  .start-9 { grid-column-start: 9; }
  .row-1 { grid-row: 1; }
  .self-end { align-self: end; }
  .self-center { align-self: center; }
}

/* Editorial presets */
@media (min-width: 56.25em) {
  /* Heading hangs in cols 1–4, body reads in cols 6–12 */
  .split-hang > :first-child { grid-column: 1 / span 4; }
  .split-hang > :not(:first-child) { grid-column: 6 / -1; }
  /* Lead 7 / aside 4 with a one-column breath */
  .split-7-4 > :first-child { grid-column: 1 / span 7; }
  .split-7-4 > :not(:first-child) { grid-column: 9 / -1; }
  /* Aside 4 / lead 7 (mirror) */
  .split-4-7 > :first-child { grid-column: 1 / span 4; }
  .split-4-7 > :not(:first-child) { grid-column: 6 / -1; }
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-m)); }
.stack--s { --stack-gap: var(--space-s); }
.stack--l { --stack-gap: var(--space-xl); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-s));
}

.measure { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   5. Atmosphere — key light + image treatment
   -------------------------------------------------------------------------- */

/* Off-centre key light (upper left) with a warm fill from the right.
   Spatial.film centres its glow; the studio lights from the side. */
.keylight { position: relative; isolation: isolate; }
.keylight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% -8%, rgb(var(--tally-rgb) / 0.13), transparent 62%),
    radial-gradient(ellipse 45% 40% at 22% 0%, rgb(var(--tungsten-rgb) / 0.07), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 35%, rgb(var(--tungsten-rgb) / 0.045), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 120%, rgb(28 28 31 / 0.9), transparent 70%);
}

/* Image frame — every photo sits in one. Gradient overlay + colour grade layer. */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--ink-3);
  isolation: isolate;
}
/* <picture> has no height of its own: pin it to frames whose shape is set by an
   aspect-ratio class (a frame sized by its image keeps the natural flow) */
.frame > picture { display: block; height: 100%; } /* no inline gap under the image */
:is(.frame--16x9, .frame--2x3, .frame--4x5, .frame--21x9, .frame--scope, .frame--fill) > picture {
  position: absolute;
  inset: 0;
}
.frame > img, .frame > picture > img, .frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame::before { /* colour treatment: warm highlights, cool-ink shadows */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(155deg, rgb(var(--tungsten-rgb) / 0.10) 0%, rgb(22 20 30 / 0.26) 100%);
}
.frame::after { /* legibility gradient */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgb(10 10 11 / 0.62) 0%, rgb(10 10 11 / 0.12) 38%, transparent 62%);
}
.frame--clean::after { background: linear-gradient(to top, rgb(10 10 11 / 0.28), transparent 30%); }
.frame--none::before, .frame--none::after { display: none; } /* posters with baked-in titles */
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--2x3 { aspect-ratio: 2 / 3; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--scope { aspect-ratio: 2.39 / 1; }

.frame__caption {
  position: absolute;
  left: var(--space-m);
  right: var(--space-m);
  bottom: var(--space-s);
  z-index: 2;
  font-size: var(--step--1);
  color: rgb(var(--bone-rgb) / 0.82); /* sits on a photo, so stays light even inside paper sections */
}

/* --------------------------------------------------------------------------
   6. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: var(--space-s);
  left: var(--space-s);
  z-index: var(--z-skip);
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--r-pill);
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--tally); }

/* --------------------------------------------------------------------------
   7. Site header + nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  padding-top: var(--safe-top);
  isolation: isolate;
}
/* Backdrop fades in once the page scrolls (opacity only) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(10 10 11 / 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-std);
}
.site-header.is-scrolled::before,
.site-header.is-open::before { opacity: 1; }

/* Pages whose hero sits under the transparent header */
.under-header { margin-top: calc(-1 * var(--header-h)); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
}

/* Wordmark lockup: gold 元 lotus emblem + name set in the site's own type.
   Expanded Archivo caps = spatial.film's title voice, so the two brands read as siblings. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
  /* hit area: 44px tall, rounded gaze highlight, no layout shift */
  padding: 0.375rem var(--hit-x);
  margin: -0.375rem calc(-1 * var(--hit-x));
  border-radius: var(--r-control);
  transition: transform var(--dur-2) var(--ease-spring);
}
.wordmark picture { display: contents; } /* emblem <picture>: keep the img as the flex item */
.wordmark__emblem {
  width: 2rem;
  height: 2rem;
  flex: none;
  filter: drop-shadow(0 0 10px rgb(var(--gilt-rgb) / 0.25));
}
.wordmark__text {
  display: flex;
  flex-direction: column;
  gap: 0.32em;
  font-family: var(--font-display);
  font-stretch: var(--wdth-title);
  font-weight: 800;
  font-size: clamp(0.8rem, 0.74rem + 0.25vw, 0.92rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wordmark__small {
  font-family: var(--font-serif);
  font-stretch: 100%;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gilt);
}
.wordmark:hover { transform: translateY(-1px); }
.wordmark:active { transform: scale(0.97); }
.wordmark:focus-visible { outline-offset: 6px; }

.site-nav { display: none; }
@media (min-width: 56.25em) {
  .site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
}
/* Gap between hit areas = list gap minus 2 × --hit-x, so 8px+ even at 900px */
.site-nav__list { display: flex; align-items: center; gap: clamp(1.75rem, 2.8vw, 2.5rem); }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.75rem var(--hit-x);         /* ≥ 44px pinch / tap target */
  margin-inline: calc(-1 * var(--hit-x));
  border-radius: var(--r-pill);          /* gaze highlight reads as a pill, like the Contact button */
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
  text-decoration: none;
  transition: opacity var(--dur-1) var(--ease-std);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: var(--hit-x);
  right: var(--hit-x);
  bottom: 0.45rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-link:active { opacity: 0.7; }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { background: var(--tally); transform: scaleX(1); }

/* Sister-brand link — serif italic, a nod to spatial.film's kicker */
.sister-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.8rem var(--hit-x);
  margin: -0.35rem calc(-1 * var(--hit-x));
  border-radius: var(--r-hit);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1;
  color: var(--text-2);
  text-decoration: none;
  transition: opacity var(--dur-1) var(--ease-std);
}
.sister-link svg { width: 0.8em; height: 0.8em; transition: transform var(--dur-2) var(--ease-spring); }
.sister-link:hover { color: var(--tally-hot); }
.sister-link:hover svg { transform: translate(2px, -2px); }
.sister-link:active { opacity: 0.7; }

.nav-divider { width: 1px; height: 1.1rem; background: var(--hairline-2); }

/* Menu toggle (phones/tablets) */
.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  padding: 0 0.25rem 0 0.9rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: transform var(--dur-2) var(--ease-spring);
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle__bars {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid var(--hairline-2);
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.95rem;
  height: 1.5px;
  margin-left: -0.475rem;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.menu-toggle__bars::before { transform: translateY(-3px); }
.menu-toggle__bars::after { transform: translateY(3px); }
.menu-toggle:hover .menu-toggle__bars::before { transform: translateY(-4px); }
.menu-toggle:hover .menu-toggle__bars::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }
@media (min-width: 56.25em) { .menu-toggle { display: none; } }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  /* Links sit in the lower half of the panel, where a thumb reaches one-handed.
     (margin-top:auto on the nav, not justify-content:flex-end, so a short
     landscape screen still scrolls from the top instead of clipping.) */
  justify-content: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--gutter) calc(var(--space-xl) + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  background: var(--ink);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition:
    opacity var(--dur-2) var(--ease-std),
    transform var(--dur-3) var(--ease-out),
    visibility 0s linear var(--dur-3);
}
.mobile-menu::before { /* key light inside the panel */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 50% at 0% 0%, rgb(var(--tally-rgb) / 0.12), transparent 65%);
}
.site-header.is-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
@media (min-width: 56.25em) { .mobile-menu { display: none; } }

.mobile-menu > nav { margin-top: auto; }
.mobile-menu__list { position: relative; display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu__link {
  display: inline-block;
  padding: 0.2rem var(--hit-x);
  margin-inline: calc(-1 * var(--hit-x));
  border-radius: var(--r-control);
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-std);
}
.mobile-menu__link:hover { transform: translateX(0.4rem); }
.mobile-menu__link:active { opacity: 0.7; }
.mobile-menu__link[aria-current="page"] { color: var(--tally); }
.mobile-menu__foot { position: relative; display: flex; flex-direction: column; gap: var(--space-m); }

html.menu-open, html.menu-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.85em 1.75em;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-2) var(--ease-spring);
}
.btn svg { width: 1em; height: 1em; flex: none; transition: transform var(--dur-2) var(--ease-spring); }
.btn::after { /* hover light layer — animated with opacity only */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-std);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: var(--dur-1); }
.btn:focus-visible { outline-offset: 3px; }

.btn--primary {
  color: var(--on-tally);
  background: radial-gradient(ellipse at 50% 0%, var(--tally-hot), var(--tally) 70%);
  box-shadow: var(--shadow-tally);
}
.btn--primary::after { box-shadow: var(--shadow-tally-hover); }
.btn--primary:focus-visible { outline-color: rgb(var(--bone-rgb) / 0.9); }
.btn--primary svg { color: var(--on-tally); }

.btn--ghost {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--hairline-2), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.btn--ghost::after { background: rgb(255 255 255 / 0.08); }

.section--paper .btn--ghost {
  background: rgb(20 20 22 / 0.04);
  box-shadow: inset 0 0 0 1px var(--hairline-3);
}
.section--paper .btn--ghost::after { background: rgb(20 20 22 / 0.06); }

.btn--sm { min-height: var(--tap-min); padding: 0.6em 1.25em; font-size: 0.84rem; } /* 44px: still a comfortable pinch */
.btn--lg { min-height: 3.5rem; padding: 1em 2.1em; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn[disabled]::after, .btn[aria-disabled="true"]::after { opacity: 0; }

/* Text link with a drawn underline */
.link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5em;
  /* 44px hit area with a rounded gaze highlight; the negative margin keeps
     the text exactly where it was (net 0.25rem below, as before). */
  padding: 0.625rem var(--hit-x);
  margin: -0.375rem calc(-1 * var(--hit-x));
  border-radius: var(--r-hit);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--dur-1) var(--ease-std);
}
.link::after {
  content: "";
  position: absolute;
  left: var(--hit-x);
  right: var(--hit-x);
  bottom: 0.375rem;
  height: 1px;
  background: var(--hairline-3);
}
.link::before {
  content: "";
  position: absolute;
  left: var(--hit-x);
  right: var(--hit-x);
  bottom: 0.375rem;
  height: 1px;
  z-index: 1;
  background: var(--tally);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-3) var(--ease-out);
}
.link svg { width: 0.95em; height: 0.95em; flex: none; transition: transform var(--dur-2) var(--ease-spring); }
.link:hover::before { transform: scaleX(1); transform-origin: left center; }
.link:hover svg { transform: translateX(3px); }
.link--external:hover svg { transform: translate(2px, -2px); }
.link:active { opacity: 0.7; }
.link--quiet { color: var(--text-3); font-weight: 500; }
.link--quiet:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   9. Chips (formats, platforms)
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Dividers
   -------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  border: 0;
  margin: 0;
}
.divider::after {
  content: "";
  order: 2;
  flex: 1;
  height: 1px;
  align-self: center;
  background: var(--hairline-2);
}
hr.divider { height: 1px; background: var(--hairline-2); }
hr.divider::after { display: none; }
.divider__title {
  order: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1;
  color: var(--text);
}
.divider__count {
  order: 3;
  font-size: var(--step--1);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Credits — the studio's signature component
   -------------------------------------------------------------------------- */

/* End-credit roll: role right-aligned, name left-aligned, on a centre gutter */
.credits {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}
.credits__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(0.9rem, 2.5vw, 2rem);
  align-items: baseline;
}
.credits dt {
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--gilt);
}
.credits dd {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-billing);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.credits dd a {
  display: inline-block;
  padding: 0.625rem var(--hit-x);        /* pinch-sized, rounded highlight, text doesn't move */
  margin: -0.625rem calc(-1 * var(--hit-x));
  border-radius: var(--r-hit);
  text-decoration: underline;
  text-decoration-color: rgb(var(--gilt-rgb) / 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: opacity var(--dur-1) var(--ease-std);
}
.credits dd a:hover { text-decoration-color: currentColor; }
.credits dd a:hover { color: var(--tally-hot); }
.credits dd a:active { opacity: 0.7; }
.credits dt { grid-column: 1; }
.credits dd { grid-column: 2; }
.credits dd + dd { margin-top: 0.2rem; } /* several names under one role stack in col 2 */
.credits__group + .credits__group { margin-top: var(--space-l); }
.credits__row--gap { margin-top: var(--space-l); }

/* Stacked variant — role above name, left aligned (sidebars, narrow columns) */
.credits--stacked { gap: var(--space-m); }
.credits--stacked .credits__row { grid-template-columns: 1fr; row-gap: 0.15rem; }
.credits--stacked dt { text-align: left; font-size: var(--step-0); }
.credits--stacked dt, .credits--stacked dd { grid-column: 1; }

/* Billing block — spatial.film's one-sheet credit line, centred and wrapping */
.billing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.4em;
  row-gap: 1.6em;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.billing > li { display: inline-flex; flex-direction: column; align-items: center; gap: 0.4em; }
.billing .billing-name { font-size: var(--step-0); }

/* Index list — editorial rows (services, chapters). Not a card grid. */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-2); }
.index-list__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs) var(--col-gap);
  padding-block: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  border-bottom: 1px solid var(--hairline-2);
}
@media (min-width: 56.25em) {
  .index-list__item { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .index-list__title { grid-column: 1 / span 6; }
  .index-list__body { grid-column: 7 / span 4; }
  .index-list__aside { grid-column: 11 / -1; justify-self: end; text-align: right; }
}
.index-list__title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform var(--dur-3) var(--ease-out);
}
.index-list__body { color: var(--text-2); max-width: 46ch; }
.index-list__aside { color: var(--text-3); font-size: var(--step--1); }
.index-list__item > a { color: inherit; text-decoration: none; }
.index-list__item > a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-control); } /* whole row clickable */
.index-list__item:has(a):hover .index-list__title { transform: translateX(0.5rem); }
.index-list__item:has(a:focus-visible) { outline: 2px solid var(--tally-hot); outline-offset: 4px; }
.index-list__item > a:focus-visible { outline: none; }

/* --------------------------------------------------------------------------
   12. Client wall
   -------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 40em) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .logo-wall { grid-template-columns: repeat(var(--logo-cols, 5), minmax(0, 1fr)); } }
.logo-wall__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(5.5rem, 4rem + 4vw, 7.5rem);
  padding: var(--space-m);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.logo-wall__cell img {
  width: auto;
  height: auto;
  max-width: min(8.5rem, 80%);
  max-height: 1.9rem;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--dur-2) var(--ease-std);
}
/* Typeset client name when no licensed logo file exists */
.logo-wall__name {
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 650;
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-2);
  transition: opacity var(--dur-2) var(--ease-std);
}
.logo-wall__name small {
  display: block;
  margin-top: 0.4em;
  font-family: var(--font-serif);
  font-style: italic;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}
.logo-wall__cell:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   13. Media card + lite YouTube
   -------------------------------------------------------------------------- */
.media-card { display: flex; flex-direction: column; gap: var(--space-s); margin: 0; }

.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--ink-3);
  isolation: isolate;
  box-shadow: var(--shadow-elevated);
  color: #fff;
}
.yt::before { /* colour grade */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(155deg, rgb(var(--tungsten-rgb) / 0.1), rgb(22 20 30 / 0.3));
}
.yt::after { /* legibility + darken, lifts on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgb(10 10 11 / 0.7), rgb(10 10 11 / 0.15) 55%, rgb(10 10 11 / 0.05));
  transition: opacity var(--dur-2) var(--ease-std);
}
.yt__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out);
}
.yt__play {
  position: absolute;
  left: var(--space-m);
  bottom: var(--space-m);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.yt__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  transition: transform var(--dur-2) var(--ease-spring);
}
.yt__icon::before { /* tally fill fades in on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, var(--tally-hot), var(--tally) 70%);
  box-shadow: var(--shadow-tally);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-std);
}
.yt__icon svg { position: relative; width: 1.1rem; height: 1.1rem; margin-left: 3px; fill: currentColor; }
.yt__duration {
  position: absolute;
  right: var(--space-m);
  bottom: var(--space-m);
  z-index: 2;
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.8);
}
.yt:hover .yt__thumb { transform: scale(1.045); }
.yt:hover::after { opacity: 0.75; }
.yt:hover .yt__icon { transform: scale(1.08); }
.yt:hover .yt__icon::before { opacity: 1; }
.yt:hover .yt__icon svg, .yt:focus-visible .yt__icon svg { color: var(--on-tally); }
.yt:active .yt__icon { transform: scale(0.94); }
.yt:focus-visible { outline: 2px solid var(--tally-hot); outline-offset: 4px; }

.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-floating);
}
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-frame:focus { outline: none; }
/* While the player loads, the thumbnail stays put so nothing jumps */
.yt-frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.yt-frame__poster img { width: 100%; height: 100%; object-fit: cover; }

.media-card__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem var(--space-s); }
.media-card__title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.media-card__client { font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--text-3); }
.media-card__meta { flex-basis: 100%; font-size: var(--step--1); color: var(--text-3); }

/* --------------------------------------------------------------------------
   14. Poster card (2:3)
   -------------------------------------------------------------------------- */
.poster {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  /* the whole poster + title is one link: give the visionOS gaze highlight a
     rounded box with a little air around the frame (no layout shift) */
  padding: var(--hit-x);
  margin: calc(-1 * var(--hit-x));
  border-radius: var(--r-control);
  color: inherit;
  text-decoration: none;
}
.poster__frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--shadow-elevated);
  transition: transform var(--dur-3) var(--ease-out);
}
.poster__frame::after { /* floating shadow layer, fades in on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  pointer-events: none;
}
.poster__frame picture { display: block; height: 100%; }
.poster__frame img { width: 100%; height: 100%; object-fit: cover; }
.poster__shadow {
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: var(--r-panel);
  box-shadow: 0 30px 70px -10px rgb(var(--tally-rgb) / 0.28), 0 30px 60px -20px rgb(0 0 0 / 0.8);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-std);
}
.poster__wrap { position: relative; isolation: isolate; }
.poster__title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-headline);
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.poster__meta { font-size: var(--step--1); color: var(--text-3); line-height: 1.5; }
.poster:hover .poster__frame { transform: translateY(-6px); }
.poster:hover .poster__shadow { opacity: 1; }
.poster:active .poster__frame { transform: translateY(-2px) scale(0.99); }
.poster:focus-visible { outline: none; }
.poster:focus-visible .poster__frame { outline: 2px solid var(--tally-hot); outline-offset: 4px; }

.poster-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--col-gap);
}
@media (min-width: 56.25em) { .poster-row { grid-template-columns: repeat(var(--poster-cols, 4), minmax(0, 1fr)); } }

/* Festival laurels — use the *-white.png files on dark, *-black.png on paper */
.laurels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l) var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
.laurels img { width: auto; height: clamp(3.5rem, 3rem + 2vw, 5rem); opacity: 0.82; }

/* --------------------------------------------------------------------------
   15. Surfaces + pull quote
   -------------------------------------------------------------------------- */
.surface-elevated {
  background: var(--ink-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-elevated), inset 0 0 0 1px var(--hairline);
}
.surface-floating {
  background: rgb(28 28 31 / 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-floating), inset 0 0 0 1px var(--hairline-2);
}
.pad-l { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }

.quote { margin: 0; }
.quote__text {
  font-family: var(--font-serif);
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  quotes: "\201C" "\201D";
}
.quote__text::before { content: open-quote; margin-left: -0.42em; color: var(--tally); }
.quote__text::after { content: close-quote; }
.quote__cite { display: block; margin-top: var(--space-l); font-style: normal; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-m); }
.form__row { display: grid; gap: var(--space-m); }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; align-content: start; }
.field__label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-2);
}
.field__label .optional { color: var(--text-4); font-weight: 400; }
.field__hint { font-size: var(--step--2); color: var(--text-3); line-height: 1.5; }

.input, .textarea, .select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: var(--r-control);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  color: var(--text);
  font-size: 1rem; /* ≥16px stops iOS zoom */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EDE9E3' stroke-opacity='.6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .textarea:hover, .select:hover { box-shadow: inset 0 0 0 1px var(--hairline-3); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--tally), 0 0 0 4px rgb(var(--tally-rgb) / 0.2);
}
.input:active, .textarea:active, .select:active { box-shadow: inset 0 0 0 1px var(--hairline-3); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--tally-hot);
}
.input:disabled, .textarea:disabled, .select:disabled { opacity: 0.5; cursor: not-allowed; }

.field__error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--tally-hot);
}
.field__error svg { width: 1rem; height: 1rem; flex: none; }
.field__error:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--step--1); color: var(--text-2); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--tally); flex: none; cursor: pointer; }

.form-status {
  padding: var(--space-s) var(--space-m);
  border-radius: var(--r-control);
  font-size: var(--step--1);
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status--error { background: rgb(var(--tally-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--tally-rgb) / 0.4); color: #FFB3AD; }
.form-status--success { background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--hairline-2); color: var(--text); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: var(--section);
  padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgb(var(--tally-rgb) / 0.05), transparent 70%);
}
.site-footer__credits { margin-inline: auto; max-width: 44rem; }
.site-footer__credits .kicker { text-align: center; margin-bottom: var(--space-xl); }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--col-gap);
  margin-top: var(--section-tight);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--hairline);
}
/* Phones/tablets: about block full width, then the link columns two by two.
   Desktop: about block + however many link columns follow (4 today), each
   column sized to its content so "For filmmakers" never wraps. */
.site-footer__about { grid-column: 1 / -1; }
@media (min-width: 48em) {
  /* tablets and narrow Vision Pro windows: about on top, four columns in one row */
  .site-footer__grid { grid-template-columns: repeat(4, minmax(max-content, 1fr)); column-gap: var(--space-l); }
}
@media (min-width: 75em) {
  .site-footer__grid {
    grid-template-columns: minmax(18rem, 1.6fr) repeat(4, minmax(max-content, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3.5rem);
  }
  .site-footer__about { grid-column: auto; padding-right: var(--space-l); }
}
.site-footer__about { display: flex; flex-direction: column; gap: var(--space-m); align-items: flex-start; }
.site-footer__about p { max-width: 38ch; color: var(--text-3); font-size: var(--step--1); line-height: 1.7; }
.site-footer__heading {
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--text-3);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);            /* 44px rows: easy to pinch or tap, no neighbours touching */
  min-width: var(--tap-min);             /* short labels like "X" still get a full target */
  max-width: 100%;
  overflow-wrap: anywhere;               /* the revealed email address wraps instead of running off a 360px screen */
  padding-inline: var(--hit-x);
  margin-inline: calc(-1 * var(--hit-x));
  border-radius: var(--r-hit);
  font-size: var(--step--1);
  color: var(--text-2);
  text-decoration: none;
  transition: opacity var(--dur-1) var(--ease-std);
}
.site-footer__list a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--tally); }
.site-footer__list a:active { opacity: 0.7; }
/* The hit area hangs out by --hit-x each side, so let the box use that room too:
   at 100% the revealed email broke as "...stage.co / m" in a 205px desktop column */
.site-footer__list a { max-width: calc(100% + 2 * var(--hit-x)); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--hairline);
  font-size: var(--step--2);
  color: var(--text-3);   /* small type read at arm's length or across a room in a headset: keep it at 60% */
}
.site-footer__base a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding-inline: var(--hit-x);
  margin: calc((var(--tap-min) - 1.5em) / -2) calc(-1 * var(--hit-x));
  border-radius: var(--r-hit);
  color: var(--text-2);
  text-decoration: none;
}
.site-footer__base a:active { opacity: 0.7; }
.site-footer__base a:hover { color: var(--text); text-decoration: underline; }
.site-footer__seal { display: flex; align-items: center; gap: var(--space-s); }
.site-footer__seal img { width: 1.5rem; height: 1.5rem; opacity: 0.85; }

/* --------------------------------------------------------------------------
   18. Reveal on scroll (only when JS is running — content is visible without it)
   -------------------------------------------------------------------------- */
/* Travel kept short: big slides read as the room moving when you're in a headset. */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-std),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="rise-lg"] { transform: translate3d(0, 2.25rem, 0); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18b. Apple Vision Pro (visionOS Safari)
   html.avp is set before first paint by the head one-liner in _partials.html
   (Mac UA + touch + navigator.xr + Apple vendor; ?avp=1 previews it in any
   browser, ?noavp turns it off). site.js sets it too, as a fallback for pages
   with the older head line. Desktop and phones never match.
   -------------------------------------------------------------------------- */

/* Full-viewport fixed grain with a blend mode is a known renderer-crash trigger
   in visionOS Safari, and at 5% it is invisible in the headset anyway. */
html.avp body::after { display: none; }

/* No live backdrop-filter on visionOS: near-opaque solids look the same on a
   dark page and keep the GPU process calm. */
html.avp .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(10 10 11 / 0.97); }
html.avp .surface-floating { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(28 28 31 / 0.97); }
html.avp .yt__icon { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(20 20 22 / 0.72); }

/* Reveals become a plain fade in the headset: no travel at all. */
html.avp.js [data-reveal], html.avp.js [data-reveal="rise-lg"] { transform: none; }

/* "Watch our films on this Vision Pro" card (built by site.js, AVP only).
   Solid background, floating depth, dismissible for the session. */
.avp-card {
  position: fixed;
  right: max(var(--space-m), env(safe-area-inset-right, 0px));
  bottom: max(var(--space-m), env(safe-area-inset-bottom, 0px));
  z-index: var(--z-menu);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xs) var(--space-s);
  width: min(22rem, calc(100vw - 2 * var(--space-m)));
  padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m);
  border-radius: var(--r-panel);
  background: rgb(28 28 31 / 0.98);
  box-shadow: var(--shadow-floating), inset 0 0 0 1px var(--hairline-2);
  animation: avp-card-in var(--dur-3) var(--ease-out) both;
}
.avp-card__icon { width: 3rem; height: 3rem; border-radius: var(--r-control); }
.avp-card__text { display: grid; gap: 0.15rem; min-width: 0; }
.avp-card__title { font-weight: 600; font-size: var(--step-0); line-height: 1.3; color: var(--text); text-wrap: balance; }
.avp-card__body { font-size: var(--step--1); line-height: 1.45; color: var(--text-2); }
.avp-card .btn { grid-column: 1 / -1; }
.avp-card__close {
  align-self: start;
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin: calc(-1 * var(--space-2xs)) calc(-1 * var(--space-2xs)) 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  transition: transform var(--dur-2) var(--ease-spring);
}
.avp-card__close svg { width: 1rem; height: 1rem; }
.avp-card__close:hover { color: var(--text); }
.avp-card__close:active { transform: scale(0.92); }
@keyframes avp-card-in { from { opacity: 0; transform: translate3d(0, 0.75rem, 0); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }
.mb-xl { margin-bottom: var(--space-xl); }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.max-20ch { max-width: 20ch; }
.max-28ch { max-width: 28ch; }
.nowrap { white-space: nowrap; }

/* 44px floor for two shared links that measured 43px on a 390px phone
   (the footer's "Now showing on" credit link and every .sister-link). */
.sister-link { min-height: var(--tap-min); }
.credits dd a { min-height: var(--tap-min); }

/* Studio signature: page titles (the one h1 per page) in the 元 emblem's gold.
   Metallic top-to-bottom gradient clipped to the letters; each hero line is a span,
   so every line gets the full gradient. Solid gilt-hi is the fallback. */
h1.t-headline { color: var(--gilt-hi); text-shadow: none; filter: drop-shadow(0 2px 22px rgb(10 10 11 / 0.5)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1.t-headline > span,
  h1.t-headline:not(:has(> span)) {
    background-image: linear-gradient(180deg, #F7DE93 0%, #E6BF62 42%, #C9993A 72%, #A87A28 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media print {
  body::after, .site-header, .mobile-menu, .skip-link, .avp-card { display: none !important; }
  body { background: #fff; color: #000; }
}
