/* CreatorsForge · Midnight (redesign, Nov 2026). System: brand/web-system.md.
   The page is built in layers, back to front:
     0 ground   deep blue with a fine grain
     1 stage    the 3D bench (js/forge/stage): real-looking objects on the page's clear side, seen in "windows" (.win)
     2 sheets   opaque slabs (.sheet) and plain bands (.band) that pass over the stage and cast a shadow on it
     3 objects  paper (.paper), the one dark card (.panel), screens (.screen): each has grain, an edge and a shadow
   Rules held: flat fills (no gradient anywhere), no glass, no glow (shadows are dark, never coloured), one corner
   family (20px outside, 12px inside, pills and circles), sentence-case labels, one main button per view.
   Legal and campaign pages still use css/forge.css.
   Colour tokens carry the prefix --m- because the film engine's own stylesheet (assets/motion, loaded when a film
   starts) sets --bg, --surface, --ink and others on :root for its films. Unprefixed, it repainted the page. */

/* The two faces, served from this site (SIL Open Font License; latin and latin-ext). Nothing is asked of a font host. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url('/assets/fonts/midnight/bricolage-grotesque-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url('/assets/fonts/midnight/bricolage-grotesque-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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url('/assets/fonts/midnight/instrument-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url('/assets/fonts/midnight/instrument-sans-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; }

:root {
  --m-bg: #0C1228; --m-lift: #121B45; --m-sheet: #101737; --m-surface: #18224A; --m-surface-2: #1E2A58;
  --m-ink: #EEF1F8; --m-ink2: #C8CEE0; --m-muted: #9AA4C0; --m-line: rgba(238, 241, 248, 0.14); --m-line-2: rgba(238, 241, 248, 0.24);
  --m-accent: #F2843C; --m-on-accent: #0C1228; --m-heat: #F79A5C;
  --m-paper: #F3EEE3; --m-paper-2: #DDD5C4; --m-paper-ink: #141B33; --m-paper-mute: #4D5673; --m-paper-line: rgba(20, 27, 51, 0.16); --m-paper-mark: #B34A10;
  --m-device: #060916; --m-screen: #0A1022; --dark: 1;
  --display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif; --dw: 600; --dls: -0.035em;
  --body: 'Instrument Sans', 'DM Sans', system-ui, sans-serif;
  --wrap: 1240px; --gutter: clamp(18px, 4vw, 40px); --sec: clamp(72px, 11vh, 132px);
  --r: 20px; --ri: 12px; --nav-h: 64px;
  --shadow: 0 1px 1px rgba(2, 5, 16, 0.35), 0 28px 46px -24px rgba(2, 5, 16, 0.9);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  /* one grain, two strengths: light specks for dark grounds, dark specks for paper */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.2 0 0 0 -.9'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
}
@media (max-width: 767px) { :root { --nav-h: 56px; } }

/* ── base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--m-bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--m-bg); color: var(--m-ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* layer 0: the grain of the ground, behind the stage */
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain-dark); opacity: 0.055; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--m-heat); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--m-accent); color: var(--m-on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px; border-radius: var(--ri); background: var(--m-accent); color: var(--m-on-accent); font-weight: 600; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* layer 1: the stage */
/* The 3D bench (js/forge/stage: stage.js the engine, bench3.js the scene). Wide screens: one canvas over the clear
   side of the page, leaving with the hero and held through the story chapter. Narrow screens: laid in each window's slot. */
.stage3d { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; pointer-events: none; display: none; }
html[data-stage="on"] .stage3d { display: block; }
/* Objects that move (bench3) are drawn in front of the cards on a wide screen, so a card never cuts a moving object in
   half; the scene itself takes them away before a card arrives. Narrow screens keep it behind the bands of copy. */
@media (min-width: 1024px) { .stage3d.stage3d--front { z-index: 30; } }
/* After the story chapter the page carries no 3D: a window marked plain is its copy alone, in one column. */
html[data-slot] .win--plain .winslot { display: none; }
html[data-slot] .win--plain .win__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
@media (max-width: 1023px) { .stage3d.stage3d--front { z-index: 3; --fade3d: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%); -webkit-mask-image: var(--fade3d); mask-image: var(--fade3d); } } /* in the slot, over the page, soft at its top and bottom; it takes no clicks */
/* gone before it reaches the copy, and gone again before the right edge, so nothing moves in the strip beside a sheet */
.stage3d.stage--wide { --fade3d: linear-gradient(to right, transparent 47%, #000 55%, #000 calc(100% - 44px), transparent calc(100% - 18px)); -webkit-mask-image: var(--fade3d); mask-image: var(--fade3d); }
.win > .wrap { position: relative; z-index: 1; }
main, .foot { position: relative; z-index: 2; }

/* ── type ─────────────────────────────────────────────── */
.display, .h2, .h3, h3 { font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-wrap: balance; }
.display { font-size: clamp(2.5rem, 5.2vw, 4.8rem); line-height: 1.01; font-weight: 560; letter-spacing: -0.028em; }
.h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.03; }
.h3, h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.5; color: var(--m-ink2); max-width: 36ch; text-wrap: pretty; }
.copy { color: var(--m-ink2); max-width: 54ch; text-wrap: pretty; }
.eyebrow, .label { display: block; font: 600 0.92rem/1.3 var(--body); color: var(--m-muted); }
.label { font-size: 0.86rem; }
.example { font: 500 0.8rem/1.2 var(--body); color: var(--m-muted); }
.fine { margin-top: 14px; font-size: 0.86rem; color: var(--m-muted); max-width: 60ch; }
.heat { color: var(--m-heat); }
.tlink { font-weight: 600; text-decoration-thickness: 1.5px; }
[data-reveal] { opacity: 1; transform: none; } /* nothing waits to fade in: the stage is the motion */

/* ── the one button ───────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 54px; padding: 0 1.6em; border: 0; border-radius: 999px; font: 600 1.02rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--out); -webkit-tap-highlight-color: transparent; }
.btn--ember { background: var(--m-accent); color: var(--m-on-accent); box-shadow: 0 2px 0 #B85A1E; } /* a pressable edge, not a glow */
.btn--ember:hover { transform: translateY(-2px); }
.btn--ember:active { transform: translateY(1px); box-shadow: 0 1px 0 #B85A1E; }
.btn--ghost { background: var(--m-surface); color: var(--m-ink); box-shadow: inset 0 0 0 1px var(--m-line-2); }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: 0.94rem; }
.btn .arr { transition: transform 0.2s var(--out); }
.btn:hover .arr { transform: translateX(3px); }

/* ── nav ───────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: var(--m-bg); border-bottom: 1px solid var(--m-line); }
.nav .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--m-ink2); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--m-ink); }
.nav__links a[aria-current='page']::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--m-accent); }
.nav .btn { flex: none; }
@media (max-width: 767px) {
  .nav__links { position: fixed; top: var(--nav-h); left: 0; right: 0; margin: 0; padding: 6px var(--gutter); gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--m-bg); border-bottom: 1px solid var(--m-line); transform: translateY(calc(-100% - var(--nav-h) - 2px)); transition: transform 0.35s var(--out); }
  .nav.scrolled .nav__links, .nav__links:focus-within { transform: none; }
  .nav__links a { white-space: nowrap; font-size: 0.9rem; padding: 8px 12px; }
  .nav .btn { margin-left: auto; }
}
/* how far down the page: a thin bar on phones, a chapter chip on wide screens */
.heatbar { position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 49; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: var(--m-accent); pointer-events: none; }
.temp { position: fixed; left: var(--gutter); bottom: 22px; z-index: 40; display: none; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--shadow); font: 500 0.82rem/1 var(--body); color: var(--m-ink2); pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.temp.on { opacity: 1; } .temp.off { opacity: 0; }
.temp__deg { color: var(--m-heat); min-width: 5.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.temp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-accent); }
@media (min-width: 1024px) { .temp { display: inline-flex; } .heatbar { display: none; } }

/* ── layer 2: windows, sheets, bands ───────────────────── */
.sec { position: relative; padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * 0.7); }
/* a window: copy on one side, the other side left clear so the stage shows through */
.win { position: relative; padding-block: var(--sec); }
.win__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: min(76svh, 740px); }
.win__copy > * + * { margin-top: 22px; }
.win__copy > .eyebrow + .h2, .win__copy > .eyebrow + .display { margin-top: 12px; }
.win__copy .h2, .win__copy .display { max-width: 9.6em; }
.winslot { position: relative; min-height: 46svh; display: grid; place-items: center; }
/* a sheet: an opaque slab lying over the stage. It has an edge, a grain and it casts a shadow on what is under it */
.sheet, .band { position: relative; background: var(--m-sheet); isolation: isolate; }
.sheet { margin-inline: clamp(0px, 1.2vw, 16px); border-radius: var(--r); box-shadow: 0 0 0 1px var(--m-line), 0 -28px 46px -24px rgba(2, 5, 16, 0.9), var(--shadow); padding-block: var(--sec); }
.band { background: var(--m-bg); padding-block: var(--sec); }
.sheet::before, .band::before, .panel::before, .foot::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background-image: var(--grain-dark); opacity: 0.065; } /* light specks, strong enough to see: measured, not assumed (a grain at 0.5 levels of variation read as a flat fill) */
/* Sheets that follow one another are one slab: no gap between them for the bench to show through (Duy, 23 Nov:
   "There's a gap between the cards, so you can see behind the hero section moving"; asked, he said "close it").
   A hairline marks where one ends and the next begins. */
.sheet + .sheet { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 0 0 1px var(--m-line), var(--shadow); }
.sheet:has(+ .sheet) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.head { max-width: 760px; }
.head--c { margin-inline: auto; text-align: center; }
.head--c .copy, .head--c .lede { margin-inline: auto; }
.head > * + * { margin-top: 16px; }
.head > .eyebrow + * { margin-top: 12px; }

/* ── layer 3: objects ──────────────────────────────────── */
/* the one dark card */
.panel { position: relative; isolation: isolate; border-radius: var(--r); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--shadow); }
/* paper: a real sheet. Cream stock, a grain, a soft shadow, a slight tilt; --stack shows a second sheet under it */
.paper { position: relative; isolation: isolate; border-radius: var(--ri); background: var(--m-paper); color: var(--m-paper-ink); box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg)); transition: transform 0.45s var(--out); }
/* paper can be picked up: it straightens and lifts under the pointer */
@media (hover: hover) { .paper:hover { transform: rotate(calc(var(--tilt, 0deg) * 0.25)) translateY(-5px); } }
.paper::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background-image: var(--grain-paper); mix-blend-mode: multiply; }
.paper--stack::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--m-paper-2); box-shadow: var(--shadow); transform: translate(10px, 9px) rotate(2.2deg); }
/* the under-sheet is drawn after the paper's own background, so on a stack the top sheet's face is drawn again above it, with its grain */
.paper--stack::after { background-color: var(--m-paper); mix-blend-mode: normal; }
.paper .label, .paper .example, .paper .eyebrow { color: var(--m-paper-mute); }
.paper .heat, .paper b.mark { color: var(--m-paper-mark); }
.paper h3, .paper .h3 { color: var(--m-paper-ink); }
/* a screen: a device frame around something that plays or scrolls */
.screen { position: relative; border-radius: var(--r); background: var(--m-device); box-shadow: 0 0 0 1px var(--m-line-2), 0 0 0 7px var(--m-device), 0 0 0 8px var(--m-line), var(--shadow); overflow: hidden; }
/* an ink stamp */
.stampmark { display: inline-block; padding: 7px 11px; border-radius: var(--ri); border: 2px solid currentColor; font: 700 0.82rem/1 var(--body); color: var(--m-paper-mark); transform: rotate(-6deg); }
/* a divided run of short facts: one line, not pills */
.facts, .chips { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 0.92rem; color: var(--m-ink2); }
.facts { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--m-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; font-size: 0.88rem; line-height: 1.35; }
.facts li { padding: 0 16px; border-left: 1px solid var(--m-line); text-wrap: balance; }
.facts li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .facts li:nth-child(odd) { padding-left: 0; border-left: 0; } }
.facts b, .chips b { color: var(--m-ink); font-weight: 700; }
.chip { display: inline-flex; align-items: baseline; gap: 0.4em; }
.chip i { display: none; }
/* stations: order shown by position on a line */
.stations { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; padding-top: 22px; }
.stations::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--m-line-2); }
.stations > * { position: relative; }
.stations > *::before { content: ''; position: absolute; left: 0; top: -22px; width: 14px; height: 14px; border-radius: 50%; background: var(--m-sheet); box-shadow: inset 0 0 0 2px var(--m-muted); }
.stations > .on::before, .stations > .done::before, .stations > .lit::before { background: var(--m-accent); box-shadow: none; }

/* ── home: hero ────────────────────────────────────────── */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px)); padding-bottom: clamp(36px, 6vh, 64px); }
.hero .win__grid { min-height: min(72svh, 700px); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.odo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 500 0.9rem/1.3 var(--body); color: var(--m-muted); }
.odo__num, .odo__zero { color: var(--m-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.odo__zero { color: var(--m-heat); }
/* the account line is what the window shows when the film is not running; the rendered phone carries it otherwise */
.winslot .odo { padding: 18px 22px; border-radius: var(--r); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--shadow); }
html[data-stage="on"] .winslot .odo { visibility: hidden; }

/* ── the film (home, /watch) ───────────────────────────── */
.film-band .vsl { max-width: 1000px; margin-inline: auto; }
.film-band .vsl__lbl { margin-bottom: 14px; }
.vsl { position: relative; width: 100%; }
.vsl__frame { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 9; background: var(--m-device); box-shadow: 0 0 0 1px var(--m-line-2), 0 0 0 7px var(--m-device), 0 0 0 8px var(--m-line), var(--shadow); }
.vsl__frame video, .vsl__frame img { width: 100%; height: 100%; object-fit: cover; }
.vsl__frame--tall { aspect-ratio: 9 / 14; max-height: 72svh; margin-inline: auto; }
.vsl__tap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; width: max-content; margin: 0 auto; gap: 10px; }
.vsl__lbl { display: block; }
.vsl.playing .vsl__lbl { visibility: hidden; }
.vsl__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 16px; }
.vsl__frame video:focus-visible { outline: 2px solid var(--m-heat); outline-offset: -4px; }
.vsl video::cue { background: rgba(6, 9, 22, 0.86); color: #EEF1F8; font-family: 'Instrument Sans', system-ui, sans-serif; }
.vsl__cc { position: absolute; left: 0; right: 0; z-index: 1; width: fit-content; max-width: 86%; margin: 0 auto; padding: 5px 10px; border-radius: 6px; background: rgba(6, 9, 22, 0.86); color: #EEF1F8; font: 500 15px/1.35 var(--body); text-align: center; white-space: pre-line; pointer-events: none; }
.vsl__cc[hidden] { display: none; }
.vsl__cc--prev { top: 58%; } .vsl__cc--full { bottom: 17%; }
.vsl__fail { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; background: var(--m-device); }
.vsl__fail[hidden] { display: none; }
.vsl__fail-t { max-width: 22ch; font: 600 1.15rem/1.3 var(--display); text-wrap: balance; }
.vsl__fail-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vsl__fail-c:empty { display: none; }
.vsl__cta { position: absolute; right: 16px; top: 16px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.5s var(--out); }
.vsl.offer .vsl__cta { opacity: 1; transform: none; pointer-events: auto; }
.who { display: inline-flex; align-items: center; gap: 12px; color: var(--m-ink2); font-size: 0.95rem; }
.who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--m-bg), 0 0 0 3px var(--m-line-2); }
.who b { color: var(--m-ink); font-weight: 600; }
.who--sm { gap: 8px; } .who--sm img { width: 28px; height: 28px; }

/* ── home: they keep asking ────────────────────────────── */
.asked { --tilt: -2deg; width: min(100%, 360px); padding: 18px 20px 16px; margin-top: 30px; }
.asked__q { margin-top: 6px; font: var(--dw) 1.3rem/1.2 var(--display); letter-spacing: -0.02em; }
.asked__n { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; color: var(--m-paper-mute); }
.asked__n b { font: var(--dw) 2rem/1 var(--display); color: var(--m-paper-mark); font-variant-numeric: tabular-nums; }
/* the drawn phone: what the window shows when the stage is not running */
.phone { position: relative; width: min(300px, 76vw); margin-inline: auto; padding: 18px 14px 16px; border-radius: var(--r); background: var(--m-screen); box-shadow: 0 0 0 1px var(--m-line-2), 0 0 0 7px var(--m-device), 0 0 0 8px var(--m-line), var(--shadow); }
.phone__head { display: flex; align-items: center; gap: 10px; }
.phone__av { width: 34px; height: 34px; border-radius: 50%; background: var(--m-accent); }
.phone__name { font-weight: 700; font-size: 0.95rem; }
.phone__sub { font-size: 0.78rem; color: var(--m-muted); }
.phone__feed { display: grid; gap: 8px; margin-top: 14px; }
.bub { max-width: 86%; padding: 9px 12px; border-radius: var(--ri); background: var(--m-surface); color: var(--m-ink); font-size: 0.86rem; line-height: 1.35; }
.bub:nth-child(even) { justify-self: end; }
.bub small { display: block; margin-bottom: 2px; font: 600 0.72rem/1.2 var(--body); color: var(--m-muted); }
html[data-stage="on"] .winslot > .phone { visibility: hidden; }

/* ── home: the gap (two papers on the bench) ───────────── */
.exits { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 36px; max-width: 620px; }
.exit { padding: 20px 22px 22px; }
.exit:first-child { --tilt: -2.2deg; z-index: 1; }
.exit:last-child { --tilt: 1.6deg; margin: 26px 0 0 -18px; padding-left: 40px; }
.exit > * + * { margin-top: 10px; }
.exit p { color: var(--m-paper-mute); font-size: 0.95rem; }
.draft { padding-top: 12px; border-top: 1px solid var(--m-paper-line); font-size: 0.9rem; color: var(--m-paper-mute); }
.draft__title { position: relative; display: inline-block; color: var(--m-paper-ink); font-weight: 700; }
.draft__strike { position: absolute; left: -4px; right: -4px; top: 55%; height: 2px; background: var(--m-paper-mark); }
.meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--m-paper-line); }
.meter__amt { font: var(--dw) 1.6rem/1 var(--display); color: var(--m-paper-ink); font-variant-numeric: tabular-nums; }
.meter__stamp { flex: none; }
.meter .label { display: inline; }

/* ── the operator: a film and its seven stations ───────── */
.story__grid { display: grid; grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.story__grid > * { min-width: 0; }
.story__side > * + * { margin-top: 16px; }
.story__rail { position: relative; display: grid; gap: 2px; margin-top: 26px; padding-left: 26px; }
.story__rail::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; background: var(--m-line-2); }
.story__rail li { position: relative; color: var(--m-muted); }
.story__rail li::before { content: ''; position: absolute; left: -26px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--m-sheet); box-shadow: inset 0 0 0 2px var(--m-muted); transition: background 0.3s ease; }
.story__rail li.on, .story__rail li.done { color: var(--m-ink); }
.story__rail li.on::before, .story__rail li.done::before { background: var(--m-accent); box-shadow: none; }
.story__rail li.on > button { background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line); }
.story__rail li b { display: none; } /* order is shown by the line; the film names its own step */
.story__rail li > button { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--ri); background: transparent; font: 600 0.98rem/1.2 var(--body); text-align: left; cursor: pointer; }
.story__rail li > button:hover { color: var(--m-ink); }
.story__now { min-height: 6.6em; padding: 16px 18px; --tilt: -1deg; }
.story__now p { margin-top: 10px; color: var(--m-paper-mute); font-size: 0.95rem; }
.film, .loop { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--m-device); box-shadow: 0 0 0 1px var(--m-line-2), 0 0 0 7px var(--m-device), 0 0 0 8px var(--m-line), var(--shadow); }
.film__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.film__pause { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-content: center; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line-2); color: var(--m-ink); cursor: pointer; }
.film__bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--m-line); overflow: hidden; }
.film__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--m-accent); }
.film__ctrl .label { flex: none; min-width: 9ch; text-align: right; color: var(--m-ink2); }
.story__mobilecopy { display: none; }
.film-sound { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line-2); color: var(--m-ink); font: 600 14px/1 var(--body); white-space: nowrap; cursor: pointer; }
.film-sound svg { flex: none; color: var(--m-accent); }
.film-sound small { font: 500 12px/1 var(--body); color: var(--m-ink2); }
.film-sound.on { background: var(--m-accent); color: var(--m-on-accent); box-shadow: none; }
.film-sound.on svg, .film-sound.on small { color: var(--m-on-accent); }
.film-sound[hidden] { display: none; }
.film__ctrl .film-sound { flex: none; }
.chap__media { position: relative; }
.film-sound--over { position: absolute; right: 14px; bottom: 14px; z-index: 3; }
.film-sound--reel { position: absolute; right: 12px; bottom: 10px; z-index: 2; height: 38px; padding: 0 14px 0 12px; font-size: 13px; }
.mk-narrated { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; }
.narrating > .mk-stage { visibility: hidden; }
.film-cc { position: absolute; left: 0; right: 0; bottom: 4.5%; z-index: 2; width: fit-content; max-width: 86%; margin: 0 auto; padding: 6px 12px; border-radius: 8px; background: rgba(6, 9, 22, 0.86); color: var(--m-ink); font: 600 clamp(13px, 1.5vw, 17px)/1.35 var(--body); text-align: center; text-wrap: balance; opacity: 0; transition: opacity 0.12s; pointer-events: none; }
.film-cc.on { opacity: 1; }
.film-ai { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(6, 9, 22, 0.82); color: var(--m-ink2); font-size: 11px; pointer-events: none; }

/* ── who does what: a small note on a big board ────────── */
.whodoes { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "ops" "line" "cta"; }
.whodoes > .head { grid-area: head; }
.whodoes > .ops { grid-area: ops; }
.whodoes > .copy { grid-area: line; }
.whodoes > .btn { grid-area: cta; justify-self: start; }
@media (min-width: 1024px) {
  .whodoes { grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); grid-template-rows: 1fr auto 1fr; grid-template-areas: "ops head" "ops line" "ops cta"; column-gap: clamp(40px, 7vw, 110px); }
  .whodoes > .head { align-self: end; }
  .whodoes > .ops { margin-top: 0; align-self: center; }
  .whodoes > .btn { align-self: start; }
}
.ops { position: relative; display: grid; grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr); align-items: start; margin-top: 44px; }
.ops__col { padding: 24px 26px 26px; }
.ops__col:first-child { --tilt: -2.5deg; z-index: 1; margin: 34px -34px 0 0; } /* yours: a small paper note laid over the edge of ours */
.ops__col ul { display: grid; margin-top: 12px; }
.ops__col li { padding: 11px 0; border-top: 1px solid var(--m-line); font-weight: 500; }
.ops__col.paper li { border-top-color: var(--m-paper-line); }
.ops__col--ours { padding-left: clamp(26px, 6vw, 72px); }
.ops__col li span b { font-weight: 700; }
.anvil { display: none; }
.ops ~ .copy { margin-top: 30px; }
.ops ~ .btn { margin-top: 22px; }

/* ── formats: the question picks the object ────────────── */
.formats__picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.formats__picker button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line-2); color: var(--m-ink2); font: 500 0.95rem/1 var(--body); cursor: pointer; }
.formats__picker button[aria-pressed='true'] { background: var(--m-paper); color: var(--m-paper-ink); box-shadow: var(--shadow); font-weight: 600; }
.formats__grid { display: grid; margin-top: 22px; max-width: 460px; }
.fmt { display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--m-line); }
.fmt h3, .fmt p { color: var(--m-muted); transition: color 0.3s ease; }
.fmt.on h3 { color: var(--m-heat); }
.fmt.on p { color: var(--m-ink2); }
.fmt p { margin-top: 4px; font-size: 0.95rem; }
.fmt svg { display: none; }

/* ── the split: a receipt ──────────────────────────────── */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-grid__copy > * + * { margin-top: 18px; }
.plates { --tilt: 2deg; width: min(100%, 400px); margin-inline: auto; padding: 8px 24px 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.plate { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--m-paper-line); transition: transform 0.5s var(--out); }
.plate:first-child { border-top: 0; }
.plate__big { order: 2; font: var(--dw) clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: -0.03em; color: var(--m-paper-ink); }
.plate p:not(.plate__big) { color: var(--m-paper-mute); font-size: 0.95rem; }
.plate:nth-child(2) .plate__big { color: var(--m-paper-mark); }
/* the tear: your share lifts off the slip */
.plates.torn .plate:nth-child(2) { transform: translate(18px, -4px) rotate(-2.5deg); }

/* ── lineage: three teachers on one line ───────────────── */
.lineage__row { margin-top: 56px; }
.lineage__svg { display: none; }
.lineage__row { gap: clamp(14px, 2vw, 26px); }
.teacher img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--ri); box-shadow: 0 0 0 1px var(--m-line-2), var(--shadow); margin-bottom: 18px; }
.teacher.panel { background: none; box-shadow: none; border-radius: 0; }
.teacher.panel::before { background-image: none; }
.teacher h3 { margin-top: 8px; }
.teacher p { margin-top: 8px; color: var(--m-ink2); font-size: 0.95rem; }
.forgemark { display: grid; align-content: start; }
.forgemark img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; padding: 0 17%; border-radius: var(--ri); background: var(--m-lift); box-shadow: inset 0 0 0 1px rgba(242, 132, 60, 0.6), var(--shadow); } /* where the line lands: a plate the size of a portrait */
.cert { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: 72px; }
.cert__card { position: relative; display: block; width: 100%; padding: 10px; border: 0; border-radius: var(--ri); background: var(--m-paper); box-shadow: var(--shadow); cursor: zoom-in; transform: rotate(-2deg); transition: transform 0.4s var(--out); }
.cert__card:hover { transform: rotate(-0.5deg) translateY(-4px); }
.cert__card img { width: 100%; height: auto; }
.cert > div > * + * { margin-top: 14px; }
dialog.lightbox { padding: 0; border: 0; border-radius: var(--r); background: transparent; max-width: min(1100px, 94vw); }
dialog.lightbox::backdrop { background: rgba(4, 7, 18, 0.92); }
dialog.lightbox img { width: 100%; height: auto; border-radius: var(--r); }
dialog.lightbox form { position: absolute; top: 10px; right: 10px; }

/* ── the call: a call sheet and the numbers you bring ──── */
.call { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.call .head .who { margin-top: 20px; }
.agenda-wrap { position: relative; padding: 10px 24px 12px; --tilt: -1.2deg; }
.agenda__fill { display: none; }
.agenda { position: relative; display: grid; padding-left: 26px; }
.agenda::before { content: ''; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 2px; background: var(--m-paper-line); }
.agenda li { position: relative; padding: 12px 0; border-top: 1px solid var(--m-paper-line); }
.agenda li:first-child { border-top: 0; }
.agenda li::before { content: ''; position: absolute; left: -26px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--m-paper); box-shadow: inset 0 0 0 2px var(--m-paper-mute); }
.agenda li i { display: none; } /* the times carry the order */
.agenda li div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.agenda li b { font: 600 1.02rem/1.3 var(--body); }
.agenda li span { color: var(--m-paper-mute); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.call .chips { margin-top: 24px; }
.call .btn { margin-top: 28px; }
.call__side { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; padding-bottom: 40px; }
.call__side .agenda-wrap { z-index: 1; }
.insights { padding: 22px 22px 22px 46px; margin: 70px 0 0 -26px; }
.insights > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.insights__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--m-line); font-size: 0.95rem; color: var(--m-ink2); }
.insights__row b { font: 600 1.05rem/1 var(--display); color: var(--m-ink); font-variant-numeric: tabular-nums; }
.insights > .label { margin-top: 16px; }
.insights__q { --tilt: 1.6deg; margin: 12px -14px -40px 6px; padding: 14px 16px; font-weight: 600; } /* a note laid over the corner of the screen */

/* ── the promise ───────────────────────────────────────── */
.promise .win__copy { position: relative; }
.seal { width: clamp(170px, 46vw, 220px); aspect-ratio: 1; margin-top: 30px; padding: 16px; border-radius: 50%; --tilt: -8deg; }
@media (min-width: 1024px) {
  .promise .win__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .promise .winslot { display: none; }
  .promise .win__copy { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(28px, 5vw, 72px); }
  .promise .win__copy > * { grid-column: 1; }
  .promise .win__copy > .seal { grid-column: 2; grid-row: 1 / span 4; place-self: center; width: clamp(240px, 24vw, 330px); margin-top: 0; padding: 22px; }
  .promise .win__copy > .typed { align-self: start; }
}
.seal svg { width: 100%; height: 100%; }
.seal circle { stroke: var(--m-paper-mark); }
.seal text { fill: var(--m-paper-mark); font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 700; }
.typed { font: 600 1rem/1.5 var(--body); color: var(--m-ink); }

/* ── questions: one panel ──────────────────────────────── */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--m-line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 18px 24px; cursor: pointer; font: 600 1.06rem/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--m-heat); border-bottom: 2px solid var(--m-heat); transform: rotate(45deg); transition: transform 0.3s var(--out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 24px 22px; color: var(--m-ink2); max-width: 68ch; }

/* ── close ─────────────────────────────────────────────── */
.win.close { padding-block: clamp(56px, 10vh, 128px); }
.close .win__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.close .winslot { display: none; }
.close .win__copy { --tilt: 0deg; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100%, 940px); max-width: none; margin-inline: auto; padding: clamp(36px, 6vw, 64px) clamp(20px, 6vw, 84px) clamp(40px, 6vw, 70px); border-radius: var(--r); background: var(--m-paper); }
.ticket.paper--stack::before { transform: translate(9px, 11px) rotate(0.8deg); }
@media (hover: hover) { .ticket.paper:hover { transform: none; } } /* the card stays put; its button is the thing to press */
.close .win__copy > * { margin-top: 0; }
.close .win__copy > .close__logo { order: 0; width: 132px; height: auto; filter: brightness(0); opacity: 0.84; } /* printed in the card's one ink */
.close .win__copy > .eyebrow { order: 1; margin-top: 22px; }
.close .win__copy > .slots { order: 2; margin-top: 12px; gap: 12px; }
.close .win__copy > .h2 { order: 3; width: 100%; max-width: none; margin-top: 30px; padding-top: 34px; border-top: 1px dashed var(--m-paper-line); font-size: clamp(2.2rem, 4.8vw, 4.1rem); }
.close .win__copy > .copy { order: 4; margin-top: 20px; color: var(--m-paper-mute); }
.close .win__copy > .btn { order: 5; margin-top: 30px; }
.close .win__copy > .label { order: 6; margin-top: 16px; }
.close__tag { position: relative; display: inline-block; max-width: 13em; }
.close .slots > .slot { width: 20px; height: 20px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px var(--m-paper-mark); } /* an open slot: a printed ring */
.close .slots > .slot.full { background: var(--m-bg); box-shadow: inset 0 2px 3px rgba(2, 5, 16, 0.7); } /* a taken slot: punched through to the page */
.close .glow, .sparks-cv { display: none; }
.slots { display: flex; gap: 10px; }
.slots > .slot { display: block; width: 46px; height: 12px; border-radius: 999px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line-2); }
.slots > .slot.full { background: var(--m-accent); box-shadow: none; }
.win__copy > .btn { margin-top: 28px; }
.spark-dot { position: fixed; left: 0; top: 0; z-index: 91; width: 4px; height: 4px; border-radius: 50%; background: var(--m-heat); pointer-events: none; }

/* ── sticky phone bar and footer ───────────────────────── */
.ctabar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line-2), var(--shadow); transform: translateY(140%); visibility: hidden; transition: transform 0.45s var(--out), visibility 0s 0.45s; }
.ctabar.on { transform: none; visibility: visible; transition-delay: 0s; }
.ctabar__slots { font: 500 0.86rem/1.2 var(--body); color: var(--m-ink2); }
.ctabar__slots b { color: var(--m-heat); }
@media (max-width: 767px) { .ctabar { display: flex; } html { scroll-padding-top: calc(var(--nav-h) + 68px); scroll-padding-bottom: 96px; } }
.foot { isolation: isolate; margin-top: 16px; padding: 64px 0 0; background: var(--m-sheet); border-top: 1px solid var(--m-line); box-shadow: 0 -28px 46px -24px rgba(2, 5, 16, 0.9); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot__logo { display: inline-block; }
.foot__logo img { height: 26px; width: auto; }
.foot__tag { margin-top: 14px; color: var(--m-muted); max-width: 30ch; }
.foot__nav { display: grid; gap: 8px; align-content: start; }
.foot__nav a { color: var(--m-ink2); text-decoration: none; padding: 4px 0; }
.foot__nav a:hover { color: var(--m-ink); }
.foot__social { margin-top: 20px; display: flex; gap: 10px; }
.foot__social a { display: grid; place-content: center; width: 44px; height: 44px; border-radius: var(--ri); color: var(--m-ink2); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line); }
.foot__social a:hover { color: var(--m-heat); }
.foot__social svg { width: 24px; height: 24px; }
.foot__disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-top: 44px; padding: 16px 18px; border-radius: var(--ri); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line); font-size: 0.86rem; line-height: 1.55; color: var(--m-muted); }
.foot__disclaimer svg { flex: none; width: 24px; height: 24px; color: var(--m-muted); }
.foot__bar { margin-top: 40px; border-top: 1px solid var(--m-line); }
.foot__bar-in { padding-block: 22px; font-size: 0.86rem; color: var(--m-muted); }
.foot__bar a { color: var(--m-ink2); }
@media (max-width: 767px) { .foot__bar-in { padding-bottom: 96px; } }

/* ── /how-it-works ─────────────────────────────────────── */
.page-hero { padding-top: calc(var(--nav-h) + clamp(32px, 7vh, 88px)); padding-bottom: clamp(48px, 8vh, 96px); }
.page-hero .glow, .apply-hero .glow, .glow { display: none; }
.doors { margin-top: 56px; }
.door { display: block; padding: 4px 8px 4px 0; text-decoration: none; color: var(--m-ink2); font: 600 1rem/1.25 var(--body); }
.door b { display: none; }
.door:hover { color: var(--m-heat); }
.chap { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(24px, 4.5vw, 72px); align-items: center; }
.chap--flip .chap__media { order: -1; }
.chap > div:not(.chap__media) > * + * { margin-top: 14px; }
.chap .chip { font-weight: 600; color: var(--m-muted); }
.chap .chip b { display: none; }
.ticks { --tilt: -1.2deg; position: relative; z-index: 1; display: grid; margin: 24px -44px 0 0; padding: 6px 20px; } /* the notes overlap the edge of the screen beside them */
.chap--flip .ticks { --tilt: 1.2deg; margin: 24px 0 0 -44px; }
.ticks li { padding: 12px 0; border-top: 1px solid var(--m-paper-line); font-size: 0.98rem; }
.ticks li:first-child { border-top: 0; }
.strip14 { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.strip14 i { height: 22px; border-radius: 4px; background: var(--m-surface-2); }
.strip14 i.v { background: var(--m-muted); }
.strip14 i.c { background: var(--m-accent); }
.strip14__legend { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ── /about ────────────────────────────────────────────── */
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-hero__grid > div:first-child > * + * { margin-top: 20px; }
.reelcard { position: relative; width: min(100%, 320px); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--m-device); box-shadow: 0 0 0 1px var(--m-line-2), 0 0 0 7px var(--m-device), 0 0 0 8px var(--m-line), var(--shadow); transform: rotate(2deg); }
.reelcard video { width: 100%; height: 100%; object-fit: cover; }
.reelcard .label { position: absolute; left: 14px; bottom: 14px; color: var(--m-ink); }
.founder { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.portrait { position: relative; padding: 12px 12px 44px; border-radius: var(--ri); background: var(--m-paper); box-shadow: var(--shadow); transform: rotate(-2.5deg); } /* a print with a white border */
.portrait img { width: 100%; height: auto; }
.founder__story > * + * { margin-top: 18px; }
.founder__story p { color: var(--m-ink2); max-width: 56ch; }
.founder__story .sig { font: 600 1rem/1 var(--display); color: var(--m-ink); }
.decade__bar { position: relative; height: 4px; border-radius: 4px; background: var(--m-line); overflow: hidden; }
.decade__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--m-accent); }
.decade__labels { display: flex; justify-content: space-between; margin-top: 8px; }
.shaped { margin-top: 14px; max-width: 880px; }
.shaped div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 20px; padding: 16px 24px; border-top: 1px solid var(--m-line); }
.shaped div:first-child { border-top: 0; }
.shaped b { font: 600 1.02rem/1.3 var(--display); }
.shaped span { color: var(--m-ink2); font-size: 0.96rem; }
.gates { margin-top: 44px; max-width: 880px; }
.gate { display: grid; grid-template-columns: 7ch minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--m-line); }
.gate.panel { background: none; box-shadow: none; border-radius: 0; isolation: auto; }
.gate.panel::before { display: none; }
.gate:first-child { border-top: 0; }
.gate__n { font: 600 0.9rem/1 var(--body); color: var(--m-heat); }
.gate__door { display: none; }

/* ── /apply ────────────────────────────────────────────── */
.apply-hero { padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px)); padding-bottom: clamp(40px, 7vh, 80px); }
.apply-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: 30px; }
.apply-head__main > * + * { margin-top: 14px; }
.apply__points { display: grid; gap: 10px; }
.apply__points li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--m-ink2); }
.apply__points li b { color: var(--m-ink); font-weight: 600; }
.apply__points svg { width: 24px; height: 24px; color: var(--m-heat); stroke-width: 1.8; }
.calbox { position: relative; max-width: 1120px; margin-inline: auto; padding: 8px; border-radius: var(--r); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--shadow); overflow: hidden; }
.calbox [data-cal] { width: 100%; min-height: 500px; }
.calbox__load { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--m-muted); pointer-events: none; }
.calbox [data-cal]:not(:empty) + .calbox__load { display: none; }
.calbox__fallback { position: absolute; inset: auto 16px 16px 16px; padding: 16px; border-radius: var(--ri); background: var(--m-surface-2); text-align: center; }
.booked { min-height: 500px; display: grid; place-content: center; gap: 16px; padding: 40px 28px; text-align: center; }
.booked[hidden], .calbox__fallback[hidden] { display: none; }
.booked__mark { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-content: center; background: var(--m-accent); color: var(--m-on-accent); }
.booked ol { text-align: left; max-width: 36ch; margin: 8px auto 0; padding-left: 20px; list-style: decimal; color: var(--m-ink2); }
.booked ol li + li { margin-top: 6px; }
.apply-hero .fine { margin-inline: auto; }
.apply-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin-top: 22px; border-radius: var(--r); background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-line), var(--shadow); }
.bring { padding: 20px 24px; }
.bring.panel { background: none; box-shadow: none; border-radius: 0; isolation: auto; }
.bring.panel::before { display: none; }
.bring + .bring { border-left: 1px solid var(--m-line); }
.bring ul { margin-top: 10px; display: grid; gap: 6px; color: var(--m-ink2); font-size: 0.96rem; }
.apply-slots .slots { margin-top: 14px; }
.steps4 { margin-top: 56px; }
.steps4 li.panel { background: none; box-shadow: none; border-radius: 0; isolation: auto; padding-right: 12px; }
.steps4 li.panel::before { background-image: none; }
.steps4 li p { margin-top: 6px; color: var(--m-ink2); font-size: 0.95rem; }

/* ── /watch ────────────────────────────────────────────── */
.theatre { padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 56px)); padding-bottom: 56px; }
.theatre .vsl { max-width: 1060px; margin: 32px auto 0; }
.ai-credit { margin-top: 18px; text-align: center; }
.chapters12 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; max-width: 1060px; margin: 26px auto 0; }
.chapters12 button { display: flex; align-items: baseline; gap: 14px; min-height: 48px; padding: 12px 4px; border: 0; border-top: 1px solid var(--m-line); background: none; color: var(--m-ink2); font: 500 0.98rem/1.3 var(--body); text-align: left; cursor: pointer; }
.chapters12 button b { flex: none; min-width: 2.4ch; font: 600 0.86rem/1 var(--body); color: var(--m-muted); font-variant-numeric: tabular-nums; }
.chapters12 button:hover, .chapters12 button.on { color: var(--m-ink); }
.chapters12 button.on b { color: var(--m-heat); }

/* ── 404 ───────────────────────────────────────────────── */
.cold { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }
.cold section > * + * { margin-top: 18px; }
.anvil-cold { width: min(280px, 64vw); margin: 0 auto 26px; }
.anvil-cold .heatfill { fill: var(--m-surface-2); transition: fill 0.6s ease; }
.anvil-cold .heatglow { display: none; }
.cold:has(.btn:hover) .anvil-cold .heatfill, .cold:has(.btn:focus-visible) .anvil-cold .heatfill { fill: var(--m-accent); }
.cold .copy { margin-inline: auto; }

/* ── narrower screens ──────────────────────────────────── */
@media (max-width: 1023px) {
  .story__grid, .call, .cert, .split-grid, .chap, .about-hero__grid, .founder, .apply-head { grid-template-columns: minmax(0, 1fr); }
  .chap--flip .chap__media { order: 0; }
  .ticks, .chap--flip .ticks { margin: 24px 0 -18px 0; }
  .story__rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
  .story__rail::before, .story__rail li::before { display: none; }
  .story__rail li > button { white-space: nowrap; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--m-line); }
  .story__rail li.on > button { background: var(--m-paper); color: var(--m-paper-ink); box-shadow: none; }
  .story__now { display: none; }
  .story__mobilecopy { display: block; margin-top: 14px; color: var(--m-ink2); font-size: 0.96rem; }
  .story .film { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - 230px) * 9 / 16)); margin-inline: auto; }
  .film__ctrl { width: min(100%, calc((100svh - 230px) * 9 / 16)); margin-inline: auto; }
  .film__ctrl .film-sound small, .film__ctrl .label { display: none; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__brand { grid-column: 1 / -1; }
  .reelcard, .portrait { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 1023px) {
  /* phones and tablets: copy sits on solid bands; the gaps between them are the windows onto the stage */
  .win { padding-block: 0; }
  .win__grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero .win__grid { min-height: 0; }
  .win__copy { position: relative; isolation: isolate; background: var(--m-bg); margin-inline: calc(var(--gutter) * -1); padding: 40px var(--gutter) 44px; }
  .hero, .page-hero.win { padding-top: var(--nav-h); padding-bottom: 0; }
  /* the slot keeps its base height: the picture is framed by the slot's width, and a taller slot only adds empty floor.
     The drawn still a slot carries is hidden while the scene is on, and must not size the slot either */
  html[data-stage="on"] .winslot > .phone, html[data-stage="on"] .winslot .odo { position: absolute; }
  /* the hero shows its picture before its facts, so a phone's first screen has the product in it */
  html[data-stage="on"][data-slot] .hero .win__grid { display: flex; flex-direction: column; }
  html[data-stage="on"][data-slot] .hero .hero__copy { display: contents; }
  html[data-stage="on"][data-slot] .hero .hero__copy > * { order: 1; }
  html[data-stage="on"][data-slot] .hero .hero__copy > .display { margin-top: 30px; }
  html[data-stage="on"][data-slot] .hero .winslot { order: 2; min-height: 42svh; margin-top: 8px; }
  html[data-stage="on"][data-slot] .hero .hero__copy > .facts { order: 3; margin-top: 0; margin-bottom: 40px; }
  html:not([data-stage="on"]) .winslot { min-height: 0; padding-bottom: 44px; background: var(--m-bg); margin-inline: calc(var(--gutter) * -1); }
  html:not([data-stage="on"]) .winslot:empty { display: none; }
}
@media (max-width: 767px) {
  .sheet { margin-inline: 0; }
  .exits, .ops, .apply-strip { grid-template-columns: minmax(0, 1fr); }
  .exit:last-child { margin: -10px 0 0 22px; padding: 30px 22px 22px; }
  .ops__col:first-child { margin: 0 40px -22px 0; }
  .ops__col--ours { padding: 40px 22px 22px; }
  .stations { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; padding: 0 0 0 28px; }
  .stations::before { left: 6px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .stations > * { padding: 14px 0; }
  .stations > *::before { left: -28px; top: 20px; }
  .teacher { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: start; }
  .teacher img { grid-row: span 3; width: 72px; height: 72px; aspect-ratio: auto; border-radius: 50%; margin: 0; }
  .teacher__n { margin: 0; }
  .paper--stack { margin-right: 12px; }
  .forgemark img { width: 150px; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .call__side { grid-template-columns: minmax(0, 1fr); }
  .insights { width: min(90%, 380px); margin: -18px 0 0 auto; padding: 42px 22px 22px; }
  .insights__q { margin: 10px -8px -30px 24px; }
  .bring + .bring { border-left: 0; border-top: 1px solid var(--m-line); }
  .shaped div, .gate { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .chapters12 { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .calbox { padding: 4px; } .calbox [data-cal] { min-height: 560px; }
  .film-sound--over { position: static; margin-top: 14px; }
}

/* page turns between pages, where the browser supports it */
@view-transition { navigation: auto; }
@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; }
  .film__ctrl, .story__rail, .story__mobilecopy { display: none; }
  .decade__bar i { transform: none; }
}

/* ── inner pages: spacing that used to be inline ───────── */
.sheet--slim { padding-block: 30px 34px; }
.theatre .wrap > div:last-of-type { margin-top: 30px; text-align: center; }
.theatre .wrap > .copy { margin: 20px auto 0; text-align: center; }
.apply-hero .wrap > .fine { margin: 18px auto 0; text-align: center; }
.booked .eyebrow { text-align: center; }
.calbox__fallback .copy { margin-inline: auto; }
.calbox__fallback .btn { margin-top: 10px; }
.founder .decade { margin-top: 8px; }
#method-map .head + .label { margin-top: 34px; }
.sheet > .wrap > .fine, .band > .wrap > .fine { margin-top: 22px; }


/* ── the live films take the Midnight palette ──────────────
   The film engine reads its whole palette from these variables (its brand file says so: "swap this file to re-skin
   every scene"). Setting them on the film's own box re-skins the 7-step film and the How it works loops without
   touching a scene. The rendered videos (the 3-minute film, the intro reel) keep their original colour. */
/* The still picture inside a film's box fills it, whether or not the film player's own stylesheet ever loads (it does
   not on touch devices or under reduced motion; without this the picture took its full 720px height and stretched). */
.mk-embed { position: relative; overflow: hidden; }
.mk-embed > .mk-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-embed, .mk-narrated {
  --cf-forge: #0C1228; --cf-charcoal: #18224A; --cf-ember: #F2843C; --cf-bronze: #9AA4C0; --cf-warm-grey: #9AA4C0; --cf-ash: #6C7696; --cf-offwhite: #EEF1F8;
  --bg: #0C1228; --bg-2: #080D1F; --surface: #18224A; --surface-2: #1E2A58; --line: rgba(238, 241, 248, 0.12);
  --ink: #EEF1F8; --ink-2: #C8CEE0; --muted: #9AA4C0;
  --accent: #F2843C; --accent-rgb: 242, 132, 60; --accent-2: #9AA4C0; --accent-hot: #F79A5C; --accent-ink: #0C1228;
  --paper: #F3EEE3; --paper-ink: #141B33;
  --font-display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif; --font-ui: 'Instrument Sans', 'DM Sans', system-ui, sans-serif;
}

/* ── legal pages: the notice is a document, so it is set on paper ── */
.legal { max-width: 80ch; margin-inline: auto; padding: clamp(28px, 5vw, 64px); }
.legal h2 { margin-top: 36px; font: var(--dw) 1.35rem/1.25 var(--display); letter-spacing: -0.015em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-top: 12px; color: var(--m-paper-ink); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--m-paper-mark); }
.page-hero .label { margin-top: 20px; }
