/* Previs to Picture: dusk palette, previs colours as accents. Fonts: Instrument Serif and IBM Plex Mono (SIL OFL 1.1, see fonts/). */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-italic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-normal-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-normal-500.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink: #0f0c13;
  --ink-2: #17131d;
  --ink-3: #221c29;
  --paper: #f4ebe0;
  --body: #d7cabc;
  --muted: #a89a8c;
  --glow: #ff9d6c;
  --glow-2: #ffc59a;
  --red: #e0493c;
  --gorse: #e2b43c;
  --line: rgba(244, 235, 224, .14);
  --line-2: rgba(244, 235, 224, .26);
  --line-ctl: rgba(244, 235, 224, .42);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bar-h: 72px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --exploration-footer-bg: #0b0910;
  --exploration-footer-ink: #f4ebe0;
  --exploration-footer-border: rgba(244, 235, 224, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--body); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--glow-2); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--paper); font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 em, h1 em, h3 em { color: var(--glow); font-style: italic; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.kicker { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); margin: 0; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); background: rgba(15, 12, 19, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.bar-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bar-home { display: flex; align-items: center; min-height: 44px; gap: 8px; color: var(--paper); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding: 8px 0; }
.bar-logo { width: 20px; height: 20px; fill: var(--paper); stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; }
.bar-slash, .bar-section { color: var(--muted); }
.bar-home:hover .bar-section { color: var(--paper); }
.bar-title { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; font: 400 26px/1 var(--serif); white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--line-2); }
.bar-title em { color: var(--glow); }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.bar-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--paper); text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .06em; border: 1px solid transparent; white-space: nowrap; }
.bar-action svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar-action:hover { border-color: var(--line-2); background: rgba(244, 235, 224, .06); }
.bar-how { border-color: var(--line-2); }
.bar-make { background: var(--glow); color: #1a0f0a; font-weight: 500; margin-left: 6px; }
.bar-make:hover { background: var(--glow-2); border-color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 500 14px/1 var(--mono); letter-spacing: .04em; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-solid { background: var(--glow); color: #1a0f0a; }
.btn-solid:hover { background: var(--glow-2); }
.btn-line { border-color: rgba(244, 235, 224, .5); color: var(--paper); background: rgba(15, 12, 19, .3); }
.btn-line:hover { background: rgba(244, 235, 224, .1); }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-ctl); background: var(--ink-2); cursor: pointer; flex: none; }
.btn-icon:hover { border-color: var(--glow); }
.btn-icon svg { width: 18px; height: 18px; stroke: var(--paper); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.i-play, .i-pause { display: inline-block; width: 14px; height: 14px; position: relative; }
.i-play { clip-path: polygon(15% 5%, 95% 50%, 15% 95%); background: currentColor; }
.i-pause::before, .i-pause::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 4px; background: currentColor; border-radius: 1px; }
.i-pause::before { left: 2px; } .i-pause::after { right: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; padding: calc(var(--bar-h) + 40px) var(--gut) clamp(40px, 8vh, 88px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #2a1d24 url("media/hero.webp") center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 12, 19, .86) 0%, rgba(15, 12, 19, .55) 38%, rgba(15, 12, 19, 0) 70%), linear-gradient(0deg, rgba(15, 12, 19, .92) 0%, rgba(15, 12, 19, 0) 42%); }
.hero-copy { max-width: 660px; }
.slate { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.slate span { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(15, 12, 19, .4); }
.slate span:first-child { color: var(--glow); border-color: rgba(255, 157, 108, .5); }
.hero h1 { font-size: clamp(64px, 11vw, 148px); line-height: .88; letter-spacing: -.025em; }
.hero h1 em { display: block; }
.hero-lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--paper); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-toggle { position: absolute; right: var(--gut); bottom: clamp(40px, 8vh, 88px); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(15, 12, 19, .55); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .08em; cursor: pointer; }
.hero-toggle .i-play, .hero-toggle .i-pause { width: 12px; height: 12px; }
.hero-credit { position: absolute; right: var(--gut); top: calc(var(--bar-h) + 20px); font: 400 12px/1.4 var(--mono); color: var(--paper); background: rgba(15, 12, 19, .5); padding: 8px 12px; border-radius: 4px; border: 1px solid var(--line); }
.hero-credit span { color: var(--glow); text-transform: uppercase; letter-spacing: .12em; margin-right: 6px; }

/* ---------- brief ---------- */
.brief { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) 0; }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.brief-grid h2 { margin-bottom: 12px; }
.brief-grid p { font-size: 17px; }
.chapters { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.chapters a { display: inline-flex; gap: 8px; align-items: baseline; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--body); font: 400 14px/1 var(--sans); border: 1px solid var(--line-ctl); }
.chapters a:hover { color: var(--paper); border-color: var(--line-2); }
.chapters b { font: 500 11px/1 var(--mono); color: var(--glow); letter-spacing: .1em; }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gut) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .kicker { grid-column: 1 / -1; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: .98; }
.sec-head h2 em { display: block; }
.sec-head > p:last-child { font-size: 17px; max-width: 520px; }
.models { font: 400 13px/1.8 var(--mono); color: var(--paper); margin-top: 14px; }
.models .m { display: inline-block; white-space: nowrap; margin-right: 14px; }
.models span.k { color: var(--glow); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin: 0 6px 0 0; }
.models span.k { margin-left: 0; }
.status { font: 400 13px/1.4 var(--mono); color: var(--muted); min-height: 1.4em; margin-top: 10px; }
.aside { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 820px; }

/* 01 shot */
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.beats button { text-align: left; display: grid; gap: 4px; padding: 16px 18px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-ctl); background: var(--ink-2); cursor: pointer; }
.beats button:hover, .beats button[aria-current="true"] { border-color: var(--glow); }
.beats small { font: 500 12px/1 var(--mono); color: var(--glow); letter-spacing: .08em; }
.beats b { font: 400 24px/1.1 var(--serif); color: var(--paper); font-weight: 400; }
.beats span { font-size: 14px; color: var(--muted); }

/* 02 wipe */
.wipe { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wipe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-previs { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.wipe-label { position: absolute; top: 14px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); background: rgba(15, 12, 19, .7); padding: 8px 10px; border-radius: 4px; pointer-events: none; }
.wipe-label-l { left: 14px; color: var(--gorse); }
.wipe-label-r { right: 14px; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: clamp(22px, var(--reveal), calc(100% - 22px)); width: 44px; margin-left: -22px; background: none; border: 0; padding: 0; cursor: ew-resize; touch-action: none; }
.wipe-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.wipe-handle svg { width: 26px; height: 14px; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wipe-label .short { display: none; }
.wipe-stage:fullscreen { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; background: #000; }
/* The comparison and its play bar fit on screen together under the fixed bar (laptops, short landscape phones). */
.wipe { width: min(100%, calc((100svh - var(--bar-h) - 74px) * 16 / 9)); margin-inline: auto; }
.wipe-stage:fullscreen .wipe { flex: 1 1 auto; width: 100%; aspect-ratio: auto; border-radius: 0; }
.wipe-stage:fullscreen .wipe video { object-fit: contain; }
.wipe-stage:fullscreen .frames { justify-content: center; }
.wipe-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.wipe-bar .i-play, .wipe-bar .i-pause { color: var(--paper); }
.wipe-bar input[type="range"] { flex: 1 1 auto; min-width: 0; width: 100%; accent-color: var(--glow); min-height: 44px; }
.wipe-bar output { font: 500 13px/1 var(--mono); color: var(--paper); min-width: 56px; text-align: right; }
.frames { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.frames button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-ctl); background: none; font: 500 13px/1 var(--mono); color: var(--body); cursor: pointer; }
.frames button:hover, .frames button[aria-pressed="true"] { border-color: var(--glow); color: var(--paper); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 400 44px/1 var(--serif); color: var(--paper); margin-bottom: 12px; }
.facts small { font-size: 22px; color: var(--muted); }
.facts p { font-size: 15px; }
.depth { margin: 44px 0 0; }
.depth img { width: 100%; height: auto; border-radius: 8px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
figcaption > span:first-child { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-right: 8px; }
figure { margin: 0; }

/* 03 colour code */
.code-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 28px minmax(130px, .8fr) 1.4fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legend i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25); }
.legend i.cone { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.legend i.bands { border-radius: 4px; background: repeating-linear-gradient(0deg, var(--c) 0 4px, #f4ebe0 4px 8px); }
.legend b { font: 500 13px/1.3 var(--mono); color: var(--paper); font-weight: 500; }
.legend span { font: italic 400 21px/1.2 var(--serif); color: var(--glow-2); }
.quote { padding: 28px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font: 400 16px/1.65 var(--mono); color: var(--paper); }
.quote figcaption { margin-top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.sub { font-size: clamp(30px, 3.4vw, 44px); margin: clamp(64px, 8vw, 96px) 0 12px; }
.sub-lede { max-width: 760px; margin-bottom: 28px; }
.styles { display: grid; gap: 28px; }
.sf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.beam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-top: clamp(56px, 7vw, 88px); padding: clamp(22px, 3vw, 36px); border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.beam h3 { font-size: 34px; margin: 10px 0 12px; }
.beam p:not(.kicker) { font-size: 15px; }
.beam img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 30%; border-radius: 8px; }
.prompt { margin-top: 32px; border: 1px solid var(--line-2); border-radius: 12px; }
.prompt summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 22px; min-height: 44px; color: var(--paper); font: 400 22px/1.2 var(--serif); }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--glow); }
.prompt[open] summary::after { content: "−"; }
.prompt summary span { font: 500 11px/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: auto; margin-right: 18px; }
.prompt-body { padding: 0 22px 22px; }
.prompt-body p:first-child { font: 400 14px/1.7 var(--mono); color: var(--paper); }
.prompt-inputs { margin-top: 16px; font: 400 13px/1.9 var(--mono); color: var(--body); }
.prompt-inputs span { color: var(--glow); margin: 0 6px 0 14px; }
.prompt-inputs span:first-child { margin-left: 0; }

/* 04 what Scenario made */
.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.asset { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.asset > img, .mats { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #1c1a1f; }
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mats img { width: 100%; height: 100%; object-fit: cover; }
.asset > div:last-child { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.asset h3 { font-size: 26px; }
.asset p { font-size: 15px; }
.model { font: 500 12px/1.4 var(--mono); color: var(--glow); letter-spacing: .04em; }
.cu { margin-top: auto !important; padding-top: 8px; font: 400 13px/1 var(--mono) !important; color: var(--muted); }
.asset-hero { border-color: rgba(255, 157, 108, .45); }
.ledger { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.ledger .note { padding-top: 52px; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger caption { text-align: left; font: 400 28px/1.2 var(--serif); color: var(--paper); padding-bottom: 14px; }
.ledger th, .ledger td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger tbody td:nth-child(2) { color: var(--muted); font-size: 14px; }
.ledger .n { text-align: right; font-family: var(--mono); color: var(--paper); white-space: nowrap; padding-right: 0; }
.ledger tfoot th, .ledger tfoot td { border-bottom: 0; padding-top: 16px; color: var(--glow); font: 500 15px/1.2 var(--mono); }
.note { font-size: 15px; color: var(--muted); }

/* 05 shoot-out */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-col { border-radius: 12px; padding: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.vs-win { border-color: rgba(255, 157, 108, .55); }
.vs-imgs { display: grid; gap: 8px; }
.vs-imgs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.vs-col figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 14px 8px 6px; margin: 0; }
.vs-model { font: 500 13px/1.3 var(--mono); color: var(--paper); }
.vs-score { grid-row: span 2; font: 400 56px/1 var(--serif); color: var(--paper); }
.vs-lose .vs-score { color: var(--muted); }
.vs-win .vs-score { color: var(--glow); }
.vs-score small { font-size: 24px; color: var(--muted); }
.vs-col figcaption p:last-child { font-size: 15px; color: var(--body); }
.tag { display: inline-block; margin-left: 8px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--glow); color: #1a0f0a; padding: 5px 7px; border-radius: 3px; vertical-align: 2px; }

/* 06 sound */
.stems { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stem { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(180px, .9fr) minmax(200px, 1.4fr) minmax(0, 1.4fr); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stem-play { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; font: 400 22px/1 var(--serif); color: var(--paper); text-align: left; justify-self: start; }
.stem-play .i-play, .stem-play .i-pause { width: 32px; height: 32px; border-radius: 50%; background: var(--glow); color: #1a0f0a; flex: none; }
.stem-play .i-play { clip-path: none; }
.stem-play .i-play::after { content: ""; position: absolute; inset: 10px 9px 10px 12px; background: #1a0f0a; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.stem-play .i-pause::before, .stem-play .i-pause::after { background: #1a0f0a; top: 10px; bottom: 10px; width: 3px; }
.stem-play .i-pause::before { left: 11px; } .stem-play .i-pause::after { right: 11px; }
.stem-play[aria-pressed="true"] { border-color: var(--glow); }
.stem .model { margin: 0; }
.stem-track { position: relative; height: 10px; border-radius: 5px; background: rgba(244, 235, 224, .12); overflow: hidden; }
.stem-track span { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); right: calc(100% - var(--b) * 1%); background: var(--glow); border-radius: 5px; }
.stem-track .fade-out { background: linear-gradient(90deg, var(--glow) 0 42%, rgba(255, 157, 108, .15) 100%); }
.stem-track .fade-in { background: linear-gradient(90deg, rgba(255, 157, 108, .2) 0 40%, var(--glow) 90%); }
.stem > p:last-child { font-size: 15px; }

/* 07 make yours */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink-2); text-decoration: none; color: var(--body); min-height: 44px; }
.card:hover { border-color: var(--glow); background: var(--ink-3); }
.card-type { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.card h3 { font-size: 30px; line-height: 1.05; word-break: break-word; }
.card p:not(.card-type) { font-size: 15px; }
.card b { margin-top: auto; padding-top: 10px; font: 500 14px/1 var(--mono); color: var(--paper); }
.card-make { background: var(--glow); border-color: var(--glow); }
.card-make .card-type, .card-make h3, .card-make b { color: #1a0f0a; }
.card-make:hover { background: var(--glow-2); }
.cta { margin: 48px 0 0; padding: clamp(28px, 4vw, 48px); border-radius: 16px; background: linear-gradient(120deg, rgba(255, 157, 108, .22), rgba(214, 58, 47, .12) 50%, rgba(23, 19, 29, .6)), url("media/film-poster.webp") center 60% / cover; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); }
.cta > p { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); color: var(--paper); max-width: 560px; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-line { background: rgba(15, 12, 19, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.end { padding-bottom: clamp(80px, 10vw, 120px); }

/* ---------- modals ---------- */
.modal { max-width: none; width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink); color: var(--body); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(6, 5, 8, .82); backdrop-filter: blur(6px); }
.modal-inner { padding: clamp(18px, 3vw, 36px); }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: calc(-1 * clamp(18px, 3vw, 36px)) 0 18px; position: sticky; top: 0; z-index: 2; background: var(--ink); padding: clamp(18px, 3vw, 36px) 0 10px; }
.modal-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; font: 500 13px/1 var(--mono); color: var(--paper); }
.modal-close:hover { border-color: var(--glow); }
.modal-film video { width: 100%; max-height: calc(100dvh - 150px); margin-inline: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 10px; }
html.modal-open { overflow: hidden; }
.how-title { font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.how-title em { color: var(--glow); }
.how-lede { margin: 16px 0 28px; max-width: 820px; font-size: 17px; }
.how-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.how-chapters { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.how-chapters::-webkit-scrollbar { display: none; }
.how-chapters button { flex: 0 0 auto; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-ctl); background: none; cursor: pointer; font-size: 13px; color: var(--body); }
.how-chapters button:hover, .how-chapters button[aria-current="true"] { border-color: var(--glow); color: var(--paper); }
.how-chapters small { font: 500 11px/1 var(--mono); color: var(--glow); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.step-n { font: 400 36px/1 var(--serif); color: var(--glow); }
.steps h3 { font-size: 25px; margin-bottom: 8px; }
.steps p { font-size: 15px; }
.with { margin-top: 10px !important; font: 400 12.5px/1.7 var(--mono) !important; color: var(--paper); }
.with span { color: var(--glow); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin-right: 6px; }
.with span + span, .with span:not(:first-child) { margin-left: 10px; }
.how-notes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-top: 28px; padding: 26px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.how-notes h3 { margin-bottom: 12px; }
.how-notes ul { margin: 0; padding-left: 18px; font-size: 15px; }
.how-notes li + li { margin-top: 6px; }
.how-notes p { font-size: 15px; }
.how-notes .big { font: 400 44px/1 var(--serif); color: var(--paper); margin-bottom: 8px; }
.how-downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.how-downloads .card { padding: 20px; }
.how-downloads .card h3 { font-size: 24px; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px var(--gut); border-top: 1px solid var(--line); background: var(--exploration-footer-bg); font: 400 12px/1.4 var(--mono); color: var(--muted); }
.foot-id { letter-spacing: .1em; text-transform: uppercase; }
.foot-pdf { color: var(--paper); min-height: 44px; display: inline-flex; align-items: center; }
.foot [data-exploration-controls] { flex: 1 1 320px; display: flex; justify-content: flex-end; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bar-brand, .bar-slash { display: none; }
  .bar-section { color: var(--paper); }
  .bar-how span { display: none; }
  .bar-how::after { content: "How"; }
  .assets { grid-template-columns: 1fr 1fr; }
  .stem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stem-track { grid-column: 1 / -1; order: 3; }
  .stem > p:last-child { grid-column: 1 / -1; order: 4; }
  .ledger { grid-template-columns: 1fr; }
  .how-notes { grid-template-columns: 1fr 1fr; }
  .how-notes > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --bar-h: 108px; }
  .bar { height: auto; min-height: var(--bar-h); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .bar-id { justify-content: space-between; gap: 12px; min-height: 40px; }
  .bar-home { padding: 0; }
  .bar-id { min-height: 44px; }
  .bar-title { font-size: 22px; border-left: 0; padding-left: 0; }
  .bar-actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, .85fr) minmax(0, 1.35fr); gap: 6px; }
  .bar-action { justify-content: center; text-align: center; white-space: normal; line-height: 1.15; padding: 0 6px; min-height: 44px; border-color: var(--line); font-size: 12px; letter-spacing: 0; gap: 6px; }
  .bar-action svg { width: 14px; height: 14px; flex: none; }
  .bar-make { margin-left: 0; }
  .bar-how span { display: inline; }
  .bar-how::after { content: none; }
  .hero-credit { display: none; }
  .brief-grid, .sec-head, .code-grid, .facts, .versus, .cards, .how-downloads, .steps { grid-template-columns: 1fr; }
  .beats { grid-template-columns: 1fr; }
  .beam { grid-template-columns: 1fr 1fr; }
  .beam-copy { grid-column: 1 / -1; }
  .how-notes { grid-template-columns: 1fr; }
  .how-notes > div:first-child { grid-column: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar-home .bar-brand { font-size: 11px; }
  .bar-action svg { display: none; }
  .bar-action { font-size: 12px; padding: 0 4px; white-space: nowrap; }
  .bar-how span { display: none; }
  .bar-how::after { content: "How it\2019s made"; }
  .hero { min-height: max(560px, 92svh); padding-bottom: 88px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(15, 12, 19, .95) 0%, rgba(15, 12, 19, .7) 45%, rgba(15, 12, 19, .15) 80%); }
  .hero-toggle { bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .assets { grid-template-columns: 1fr; }
  .sf-pair { grid-template-columns: 1fr; }
  .legend li { grid-template-columns: 28px 1fr; }
  .legend span { grid-column: 2; font-size: 19px; }
  .ledger tbody td:nth-child(2), .ledger thead th:nth-child(2) { display: none; }
  .ledger thead th:first-child { width: 70%; }
  .stem { grid-template-columns: 1fr; }
  .wipe-label { font-size: 11px; padding: 6px 7px; top: 8px; }
  .wipe-label-l { left: 8px; } .wipe-label-r { right: 8px; }
  .wipe-bar { gap: 8px; }
  .wipe-bar output { min-width: 46px; font-size: 12px; }
  .modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
}
@media (max-width: 400px) {
  .wipe-label .long { display: none; }
  .wipe-label .short { display: inline; }
}
@media (max-width: 380px) {
  .bar-how::after { content: "How"; }
  .bar-make .arrow { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --bar-h: 60px; }
  .bar { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
  /* Keep the way back to the gallery: the logo alone, with its accessible name. */
  .bar-home { min-width: 44px; justify-content: center; padding: 0; }
  .bar-home .bar-brand, .bar-home .bar-slash, .bar-home .bar-section { display: none; }
  .bar-actions { display: flex; }
  .bar-action { padding: 0 10px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
