@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/Fraunces-normal-300-600.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("fonts/Fraunces-italic-300-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/Inter-normal-400-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/JetBrainsMono-normal-500.woff2") format("woff2"); }

/* One night palette: the film is a dusk forest lit only by its lamps, so the page is too. */
:root {
  color-scheme: dark;
  --bg: #07090b;
  --bg-2: #0d1014;
  --bg-3: #141920;
  --paper: #f3ead8;
  --body: #cdc6b8;
  --muted: #8f8a80;
  --amber: #ffb45e;
  --amber-2: #ffd8a1;
  --teal: #6fe0d2;
  --violet: #b49cff;
  --gold: #ffd8a1;
  --a1: #ffb45e;
  --a2: #6fe0d2;
  --a3: #b49cff;
  --a4: #ffe3b0;
  --line: rgba(243, 234, 216, .13);
  --line-2: rgba(243, 234, 216, .24);
  --line-ctl: rgba(243, 234, 216, .42);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bar-h: 68px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
  --col: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));   /* left edge of the content column on wide screens */
  --exploration-footer-bg: #050608;
  --exploration-footer-ink: #f3ead8;
  --exploration-footer-border: rgba(243, 234, 216, .14);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the handles set display: grid, which would otherwise beat the attribute */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); 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(--amber-2); }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--paper); font-weight: 400; margin: 0; text-wrap: balance; }
em { font-style: italic; }
h1 em, h2 em, .bar-title em { color: var(--amber); font-family: var(--serif); font-style: italic; }
:focus-visible { outline: 2px solid var(--amber); 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: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
.kicker { margin: 0 0 14px; font: 500 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
/* icons only (24 and 48 wide view boxes); the map and the score draw their own strokes */
svg[viewBox="0 0 24 24"], svg[viewBox="0 0 48 24"] { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
svg[viewBox="0 0 24 24"] path:not([fill="none"]), svg[viewBox="0 0 48 24"] path:not([fill="none"]) { fill: currentColor; stroke: none; }

/* ---------- 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(--col); background: linear-gradient(rgba(7, 9, 11, .88), rgba(7, 9, 11, .62)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 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; gap: 10px; text-decoration: none; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bar-home img { width: 92px; height: auto; }
.bar-slash { color: var(--line-ctl); }
.bar-title { font: 400 21px/1 var(--serif); color: var(--paper); text-decoration: none; white-space: nowrap; }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.bar-action { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px; color: var(--paper); text-decoration: none; font: 500 14px/1 var(--sans); white-space: nowrap; }
.bar-action svg { width: 17px; height: 17px; }
.bar-action:hover { background: rgba(243, 234, 216, .08); }
.bar-how { border: 1px solid var(--line-2); }
.bar-make { margin-left: 6px; background: var(--amber); color: #1a1006; font-weight: 600; }
.bar-make:hover { background: var(--amber-2); }

/* ---------- hero: the lantern lens ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: calc(var(--bar-h) + 40px) var(--col) clamp(40px, 7vh, 88px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000 url("media/hero-poster.webp") center / cover no-repeat; cursor: none; touch-action: pan-y; }
.hero-film { width: 100%; height: 100%; object-fit: cover; }
.lens { position: absolute; inset: 0; pointer-events: none; --x: 68%; --y: 46%; --r: clamp(121px, 16.5vw, 231px);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 72%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 72%, transparent 100%); }
.hero-clay { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.lens-ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 216, 161, .55), 0 0 60px 10px rgba(255, 180, 94, .18), inset 0 0 50px rgba(255, 180, 94, .16); }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 9, 11, .9) 0%, rgba(7, 9, 11, .55) 34%, rgba(7, 9, 11, 0) 62%), linear-gradient(0deg, rgba(7, 9, 11, .85) 0%, rgba(7, 9, 11, 0) 38%); }
.hero-copy { position: relative; max-width: 700px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.slate { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; font: 500 12px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber-2); }
.slate span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 18px; vertical-align: middle; background: var(--line-ctl); }
.hero h1 { font: 300 clamp(50px, 8.4vw, 112px)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero-sub { margin: 16px 0 0; max-width: 24em; font: 400 clamp(21px, 2.1vw, 28px)/1.25 var(--serif); color: var(--amber-2); text-wrap: balance; }
.hero h1 em { font-weight: 300; }
.hero-lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--paper); }
.hero-hint { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-2); }
.hero-hint .dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #fff3d6 0 25%, var(--amber) 60%); box-shadow: 0 0 12px 3px rgba(255, 180, 94, .6); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--amber); color: #1a1006; }
.btn-solid:hover { background: var(--amber-2); }
.btn-white { background: #fff; color: #0b0d10; }
.btn-white:hover { background: var(--paper); }
.btn-dark { background: rgba(7, 9, 11, .78); color: var(--paper); border-color: var(--line-ctl); }
.btn-dark:hover { border-color: var(--paper); }
.btn-line { border-color: var(--line-ctl); color: var(--paper); background: rgba(7, 9, 11, .35); }
.btn-line:hover { border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.hero-kit { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 761px) { .hero-kit { display: grid; grid-template-columns: repeat(3, max-content); } }
.hero-kit a { display: grid; gap: 3px; padding: 11px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7, 9, 11, .5); backdrop-filter: blur(8px); text-decoration: none; color: var(--body); font-size: 13px; line-height: 1.3; }
.hero-kit a:hover { border-color: var(--amber); }
.hero-kit b { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-weight: 600; font-size: 14px; }
.hero-kit b svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-kit-skill a { border-color: rgba(255, 180, 94, .65); background: linear-gradient(140deg, rgba(255, 180, 94, .26), rgba(7, 9, 11, .55) 75%); box-shadow: 0 0 28px rgba(255, 180, 94, .16); }
.hero-kit-skill b { color: var(--amber-2); }
.hero-toggle { position: absolute; right: var(--col); bottom: clamp(40px, 7vh, 88px); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7, 9, 11, .55); color: var(--paper); font: 500 13px/1 var(--sans); cursor: pointer; }
.hero-credit { position: absolute; right: var(--col); top: calc(var(--bar-h) + 18px); margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; color: rgba(243, 234, 216, .7); text-align: right; max-width: 44ch; }
.hero-credit span { color: var(--amber-2); text-transform: uppercase; letter-spacing: .16em; margin-right: 6px; }
.i-play, .i-pause { display: inline-block; width: 12px; height: 12px; position: relative; }
.i-play::before { content: ""; position: absolute; inset: 0; background: currentColor; clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.i-pause::before, .i-pause::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: currentColor; border-radius: 1px; }
.i-pause::before { left: 1px; } .i-pause::after { right: 1px; }

/* ---------- brief ---------- */
.brief { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gut) 0; }
.brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.brief-grid p { margin: 0; }
.chapters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding: 24px 0 0; list-style: none; }
.chapters a { display: flex; gap: 10px; padding: 8px 0; color: var(--body); text-decoration: none; font-size: 15px; border-top: 1px solid transparent; }
.chapters a:hover { color: var(--paper); }
.chapters b { font: 500 12px/1.9 var(--mono); color: var(--amber); }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gut) 0; }
.sec-head { max-width: 800px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font: 300 clamp(36px, 5.4vw, 66px)/1.02 var(--serif); letter-spacing: -.015em; }
.sec-head p:not(.kicker) { margin: 20px 0 0; font-size: 18px; max-width: 44em; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.models .m { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--paper); }
.models .k { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 60em; }

/* ---------- 01 film player with x-ray ---------- */
.player { margin: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); --reveal: 50%; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.xray { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.xray video { width: 100%; height: 100%; object-fit: cover; }
.xray-line { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 2px; margin-left: -1px; background: var(--amber-2); box-shadow: 0 0 18px 3px rgba(255, 180, 94, .5); pointer-events: none; }
.xray-handle, .pair-handle, .cmp-handle { position: absolute; top: 50%; left: var(--reveal); width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; border: 2px solid var(--amber-2);
  background: rgba(7, 9, 11, .6); color: var(--amber-2); display: grid; place-items: center; cursor: ew-resize; touch-action: none; padding: 0; }
.xray-handle svg, .pair-handle svg, .cmp-handle svg { width: 30px; height: 15px; stroke-width: 2.2; }
.xray-tag, .pair-tag, .cmp-tag { position: absolute; top: 14px; padding: 6px 10px; border-radius: 4px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.xray-tag-l, .pair-tag-l, .cmp-tag-l { left: 14px; background: rgba(243, 234, 216, .92); color: var(--bg); }
.xray-tag-r, .pair-tag-r, .cmp-tag-r { right: 14px; background: var(--amber); color: #1a1006; }
.screen-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; background: rgba(255, 180, 94, .92); color: #1a1006; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 60px 10px rgba(255, 180, 94, .3); }
.screen-play svg { width: 34px; height: 34px; margin-left: 4px; }
.screen.playing .screen-play { display: none; }
.screen.on-card [data-xray], .screen.on-card [data-xray-line], .screen.on-card [data-xray-handle], .screen.on-card [data-xray-tag] { visibility: hidden; }
.screen:fullscreen { border-radius: 0; border: 0; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.btn-icon { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--paper); cursor: pointer; padding: 0; }
.btn-icon:hover { border-color: var(--paper); }
.btn-icon svg { width: 19px; height: 19px; }
.btn-icon[data-mute].muted .wave { display: none; }
.clock { font: 500 13px/1 var(--mono); color: var(--body); font-variant-numeric: tabular-nums; margin-right: auto; white-space: nowrap; }
.chip-toggle { height: 38px; padding: 0 16px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.chip-toggle[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1a1006; }
.edl { position: relative; margin-top: 14px; }
.edl-track { display: flex; gap: 2px; height: 46px; }
.edl-track button { position: relative; flex: var(--w) 1 0; min-width: 0; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: var(--c); opacity: .38; overflow: hidden; transition: opacity .2s; }
.edl-track button:hover, .edl-track button.on { opacity: 1; }
.edl-track button span { position: absolute; left: 4px; bottom: 4px; font: 500 10px/1 var(--mono); color: #0b0d10; }
.edl-head { position: absolute; top: -4px; bottom: -4px; width: 2px; left: 0; background: var(--paper); box-shadow: 0 0 10px rgba(255, 255, 255, .6); pointer-events: none; }
.edl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.edl-legend i, .map-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.a1 { background: var(--a1); } .a2 { background: var(--a2); } .a3 { background: var(--a3); } .a4 { background: var(--a4); }
.nowcut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); min-height: 78px; }
.nowcut .n { grid-row: span 2; font: 300 40px/1 var(--serif); color: var(--amber); font-variant-numeric: tabular-nums; }
.nowcut .meta { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.nowcut .what { color: var(--paper); font-size: 16px; }

/* ---------- 02 layers ---------- */
.layers { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.layer-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.layer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.layer-stage img.L0 { opacity: 1; }
.layer-name { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 4px; background: rgba(7, 9, 11, .7); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); }
.layer-side { display: grid; gap: 16px; min-width: 0; }
.layer-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.layer-tabs button { display: grid; gap: 4px; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; cursor: pointer; min-width: 0; }
.layer-tabs b { font: 500 15px/1 var(--sans); color: var(--paper); }
.layer-tabs small { font-size: 11px; line-height: 1.25; color: var(--muted); }
.layer-tabs button[aria-selected="true"] { border-color: var(--amber); background: rgba(255, 180, 94, .12); }
.sweep { display: grid; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--amber); height: 28px; }
.cutinfo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.cutinfo dt { font: 500 11px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cutinfo dd { margin: 0; color: var(--paper); }
.prompt { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.prompt summary { padding: 12px 14px; cursor: pointer; font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-2); }
.prompt p { margin: 0; padding: 0 14px 14px; font: 400 13.5px/1.6 var(--mono); color: var(--body); max-height: 320px; overflow: auto; }
/* ---------- 03 a lens through every step: the frame at full width, the controls in one bar above it ---------- */
.sl { display: grid; gap: 12px; container-type: inline-size; }
.sl-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.sl-pick, .sl-size { display: grid; gap: 6px; min-width: 0; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sl-pick { flex: 1 1 230px; max-width: 330px; }
.sl-pick select { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; padding: 0 36px 0 14px; border-radius: 10px; border: 1px solid var(--line-ctl); background: var(--bg-2) CHEV no-repeat right 12px center / 15px; color: var(--paper); font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; text-overflow: ellipsis; cursor: pointer; }
.sl-pick select:hover { border-color: var(--paper); }
.sl-pick option { background: var(--bg-2); color: var(--paper); }
.sl-pick option:disabled { color: var(--muted); }
.sl-swap { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-ctl); background: transparent; color: var(--paper); font: 500 13.5px/1 var(--sans); cursor: pointer; }
.sl-swap svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sl-swap:hover { border-color: var(--paper); }
.sl-size { flex: 0 1 170px; }
.sl-size input { width: 100%; height: 22px; margin: 9px 0; accent-color: var(--amber); }
.sl-full { margin-left: auto; height: 40px; width: 40px; }
.sl-full svg { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sl-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; cursor: none; touch-action: pan-y; outline-offset: 3px;
  --x: 50%; --y: 50%; --r: calc(clamp(84px, 11vw, 170px) * var(--k, 1)); }
@supports (width: 1cqw) { .sl-stage { --r: calc(clamp(84px, 11cqw, 300px) * var(--k, 1)); } }
.sl-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-over { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 97%, transparent 100%); mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 97%, transparent 100%); }
.sl-ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 216, 161, .8), 0 0 40px 6px rgba(255, 180, 94, .22); }
.sl-ring-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); padding: 5px 9px; border-radius: 999px; background: rgba(7, 9, 11, .82); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); white-space: nowrap; }
.sl-tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(7, 9, 11, .78); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); pointer-events: none; }
.sl-now { margin: 0; max-width: 62em; font-size: 15px; line-height: 1.5; color: var(--body); min-height: 3em; }
.sl-now b { color: var(--paper); }
.sl-cuts { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-cuts button { position: relative; width: 132px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.sl-cuts button img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.sl-cuts button:hover img, .sl-cuts button[aria-pressed="true"] img { opacity: 1; }
.sl-cuts button[aria-pressed="true"] { border-color: var(--amber); }
.sl-cuts button span { position: absolute; left: 5px; top: 4px; font: 500 10.5px/1 var(--mono); color: var(--paper); text-shadow: 0 1px 3px #000; }
/* full screen: the bar, the frame as large as the screen allows at 16:9, the cut strip */
.sl:fullscreen { align-content: center; justify-items: center; padding: 16px clamp(16px, 3vw, 40px); background: var(--bg); overflow: auto; }
.sl:fullscreen .sl-bar, .sl:fullscreen .sl-cuts { width: min(100%, calc((100vh - 180px) * 16 / 9)); }
.sl:fullscreen .sl-stage { width: min(100%, calc((100vh - 180px) * 16 / 9)); }
.sl:fullscreen .sl-cuts button { width: 96px; }
.sl:fullscreen .sl-now { display: none; }
.strip { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-color: var(--line-2) transparent; }
.strip button { position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; scroll-snap-align: start; }
.strip button img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.strip button:hover img, .strip button[aria-selected="true"] img { opacity: 1; }
.strip button[aria-selected="true"] { border-color: var(--amber); }
.strip button span { position: absolute; left: 5px; top: 4px; font: 500 10.5px/1 var(--mono); color: var(--paper); text-shadow: 0 1px 3px #000; }
.strip button i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }

/* ---------- 03 grey-box ---------- */
.greybox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.quotes { display: grid; gap: 16px; }
blockquote { margin: 0; padding: 18px 20px; border-left: 2px solid var(--amber); background: var(--bg-2); border-radius: 0 12px 12px 0; }
blockquote p { margin: 0; font: italic 300 19px/1.45 var(--serif); color: var(--paper); }
.pair, .cmp { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); --reveal: 60%; touch-action: pan-y; }
.pair video, .cmp img { width: 100%; height: 100%; object-fit: cover; }
.pair-b, .cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--reveal)); }
.cmp-b { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.pair-b video, .cmp-b img { width: 100%; height: 100%; object-fit: cover; }
.pair-line, .cmp-line { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 2px; margin-left: -1px; background: var(--amber-2); box-shadow: 0 0 14px 2px rgba(255, 180, 94, .45); pointer-events: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 300 clamp(40px, 5vw, 60px)/1 var(--serif); color: var(--amber); }
.facts p { margin: 10px 0 0; font-size: 15px; }

/* ---------- 04 models ---------- */
.concepts { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0d1015; }
.turns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.turn { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; background: #0d1015; border: 1px solid var(--line); margin: 0; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.turn:hover, .turn:focus-visible { border-color: var(--line-ctl); }
.turn video, .turn img { width: 100%; height: 100%; object-fit: cover; }
.turn-name { position: absolute; left: 8px; bottom: 7px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; color: var(--paper); text-shadow: 0 1px 3px #000; }
.turn-zoom { position: absolute; right: 7px; top: 7px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(7, 9, 11, .7); color: var(--paper); opacity: 0; transition: opacity .2s; }
.turn-zoom svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.turn:hover .turn-zoom, .turn:focus-visible .turn-zoom { opacity: 1; }
@media (hover: none) { .turn-zoom { opacity: 1; } }
.swap { margin-top: clamp(28px, 4vw, 44px); }
.dome { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.dome h3 { font: 300 clamp(26px, 3vw, 36px)/1.1 var(--serif); }
.dome h3 em { color: var(--amber); font-style: italic; }
.dome > p { margin: 14px 0 0; font-size: 16px; max-width: 52em; }
.dome-pano { margin: 20px 0 0; position: relative; }
.dome-pano img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 12px; border: 1px solid var(--line); background: #0d1015; }
.dome-pano figcaption, .dome-pair figcaption { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 4px; background: rgba(7, 9, 11, .75); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.dome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.dome-actions span { flex: 1 1 18em; min-width: 0; font-size: 14px; color: var(--muted); }
.dome-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.dome-pair figure { margin: 0; position: relative; min-width: 0; }
.dome-pair img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #2c2f33; }
@media (max-width: 760px) { .dome-pair { grid-template-columns: minmax(0, 1fr); } }
.swap-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.swap-tabs button, .clause-legend button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--body); cursor: pointer; font-size: 14px; }
.swap-tabs button[aria-selected="true"] { border-color: var(--amber); color: var(--paper); background: rgba(255, 180, 94, .12); }

/* ---------- 05 cameras ---------- */
.cammap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0d1015; border: 1px solid var(--line); }
.map img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.4) saturate(.3) contrast(1.05); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .cam { cursor: pointer; }
.map .cam path.vis { fill: none; stroke-width: 3.2; transition: stroke-width .15s, opacity .15s; }
.map .cam path.hit { fill: none; stroke: transparent; stroke-width: 22; }
.map .cam circle { stroke: none; }
.map.picked .cam { opacity: .55; }
.map.picked .cam.on { opacity: 1; }
.map .cam.on path.vis { stroke-width: 6; }
.map .cam:focus { outline: none; }
.map .cam:focus-visible path.vis { stroke-width: 6; }
.map .frustum { fill: rgba(255, 216, 161, .14); stroke: var(--amber-2); stroke-width: 1.5; pointer-events: none; }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 10px; border-radius: 8px; background: rgba(7, 9, 11, .75); font-size: 12px; color: var(--paper); }
.map-legend i.her { background: none; border-top: 2px dotted var(--paper); height: 0; }
.camcard { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); min-width: 0; }
.camcard img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.camcard h3 { font: 400 26px/1.1 var(--serif); }
.camcard h3 small { display: block; margin-top: 6px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.camcard p { margin: 0; color: var(--paper); }
.camcard .hint { color: var(--muted); font-size: 14px; }

/* ---------- 06 sheets ---------- */
.sheets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sheets button { display: grid; gap: 8px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; min-width: 0; }
.sheets img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.sheets span { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rows { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.crow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.crow h3 { font: 400 24px/1.1 var(--serif); }
.crow h3 small { display: block; margin-top: 6px; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.crops { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.crop { position: relative; flex: 0 0 auto; width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000 no-repeat; border: 1px solid var(--line); }
.crop span { position: absolute; left: 6px; bottom: 5px; font: 500 10.5px/1 var(--mono); color: var(--paper); text-shadow: 0 1px 3px #000; }
.crop.sheet { border-color: rgba(255, 180, 94, .6); background-size: cover; background-position: center; }
.crop.sheet span { color: var(--amber-2); }

/* ---------- 07 anatomy ---------- */
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.twins { position: relative; display: grid; gap: 10px; }
.twins figure { margin: 0; position: relative; }
.twins video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.twins figcaption { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 4px; background: rgba(7, 9, 11, .75); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.twins-play { position: absolute; right: 10px; top: 10px; }
.clause-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.clause-legend button { height: 32px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.clause-legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.clause-legend button[aria-pressed="true"] { border-color: var(--c); color: var(--paper); }
.clause-text { margin: 0; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); font: 400 14px/1.75 var(--mono); color: var(--muted); }
.clause-text mark { background: none; color: var(--body); border-bottom: 2px solid var(--c); padding-bottom: 1px; transition: background .2s, color .2s; }
.clause-text.focus mark { color: var(--muted); border-bottom-color: transparent; }
.clause-text.focus mark.on { color: var(--paper); background: color-mix(in srgb, var(--c) 20%, transparent); border-bottom-color: var(--c); }

/* ---------- 08 review ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.notecard h3 { margin-top: 14px; font: 400 24px/1.15 var(--serif); }
.notecard h3 span { display: block; margin-bottom: 6px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.notecard p { margin: 8px 0 0; font-size: 15px; }
.notecard p b { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.notecard .cmp { --reveal: 50%; }
.picks { margin-bottom: clamp(24px, 3vw, 36px); }
.picks .notecard { padding-top: 16px; border-top: 1px solid var(--line); }
.picks .notecard h3 { margin-top: 0; }

/* ---------- 09 sound ---------- */
.lanes { position: relative; display: grid; gap: 8px; padding: 16px 16px 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.lane { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.lane-k { padding-left: 16px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lane-track { position: relative; height: 34px; }
.lane-cuts .lane-track { height: 18px; display: flex; gap: 1px; }
.lane-cuts .lane-track i { flex: var(--w) 1 0; background: var(--c); opacity: .55; border-radius: 2px; }
.lane-vo .lane-track { height: 44px; }
.lane-vo button { position: absolute; top: 4px; height: 36px; padding: 0 6px; border: 1px solid rgba(255, 216, 161, .45); border-radius: 6px; background: rgba(255, 180, 94, .16); color: var(--paper); font-size: 11.5px; line-height: 1.15; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.lane-vo button:hover, .lane-vo button.on { background: var(--amber); color: #1a1006; border-color: var(--amber); z-index: 2; }
.lane-score .lane-track { height: 40px; }
.lane-score svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lane-score .cue { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(180, 156, 255, .6); }
.lane-sfx .lane-track i { position: absolute; top: 9px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--teal); }
.lanes-head { position: absolute; top: 8px; bottom: 8px; width: 2px; left: 0; background: var(--paper); box-shadow: 0 0 10px rgba(255, 255, 255, .5); pointer-events: none; opacity: 0; }
.lane-now { min-height: 1.6em; margin: 12px 0 0; color: var(--paper); font: italic 300 20px/1.4 var(--serif); }

/* ---------- 10 make yours ---------- */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kit-card { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); text-decoration: none; color: var(--body); font-size: 15px; min-width: 0; }
.kit-card:hover { border-color: var(--amber); }
.kit-card b { font: 400 24px/1.15 var(--serif); color: var(--paper); }
.kit-k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.kit-main { grid-column: 1 / -1; padding: clamp(22px, 3vw, 34px); gap: 12px; background: linear-gradient(140deg, rgba(255, 180, 94, .24), rgba(255, 180, 94, .04) 60%), var(--bg-2); border-color: rgba(255, 180, 94, .6); box-shadow: 0 0 60px rgba(255, 180, 94, .08); }
.kit-main b { font-size: clamp(28px, 3.4vw, 42px); }
.kit-main > span:not([class]) { max-width: 46em; font-size: 16.5px; }
.kit-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kit-steps i { font: 500 11.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255, 180, 94, .35); color: var(--paper); }
.kit-dl { justify-self: start; display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--amber); color: #1a1006; font: 600 15px/1 var(--sans); }
.kit-dl svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kit-main:hover .kit-dl { background: var(--amber-2); }
.end-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.sec.end { padding-bottom: clamp(72px, 10vw, 120px); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px var(--col); border-top: 1px solid var(--line); background: var(--exploration-footer-bg); font: 400 12px/1.4 var(--mono); color: var(--muted); }
.foot a { color: var(--body); }
.foot a:hover { color: var(--amber); }
.foot [data-exploration-controls] { flex: 1 1 320px; display: flex; justify-content: flex-end; border-top: 0; background: none; } /* the footer draws the rule and background */

/* ---------- dialogs ---------- */
.modal, .zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 6, .86); backdrop-filter: blur(8px); }
.modal[hidden], .zoom[hidden] { display: none; }
.modal-box { width: min(1280px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: clamp(16px, 2.5vw, 28px); border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-head h2 { font: 300 clamp(28px, 3.4vw, 40px)/1.05 var(--serif); }
.modal-head .kicker { margin-bottom: 8px; }
.modal-watch .modal-box { width: min(1400px, 100%); padding: clamp(12px, 1.8vw, 22px); }
.modal-watch .modal-head { align-items: center; margin-bottom: 12px; }
.modal-watch .modal-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.modal-watch .modal-head .kicker { margin-bottom: 4px; }
.watch-slot .player { width: min(100%, max(360px, calc((100svh - 372px) * 16 / 9))); margin: 0 auto; }
.watch-slot .models { display: none; }
.watch-slot .nowcut { min-height: 0; margin-top: 12px; padding: 10px 14px; }
.watch-slot .nowcut .n { font-size: 30px; }
.modal-video video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 260px); object-fit: contain; border-radius: 12px; background: #000; }
.how-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.how-chapters button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--body); cursor: pointer; font-size: 13px; }
.how-chapters button.on { border-color: var(--amber); color: var(--paper); }
.how-chapters small { font: 500 10.5px/1 var(--mono); color: var(--muted); margin-right: 6px; }
.modal-kit { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 14px; }
.modal-model .modal-box { width: min(980px, 100%); }
.model-view { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 20px); }
.model-stage { justify-self: center; width: min(100%, calc(100svh - 250px)); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0d1015; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.model-stage:active { cursor: grabbing; }
.model-stage video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.model-view .btn-icon svg, .model-foot .btn-icon svg { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.model-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.model-foot p { margin: 0; font-size: 14px; color: var(--muted); }
.zoom img { max-width: min(1500px, 100%); max-height: calc(100svh - 40px); border-radius: 12px; }
.zoom .modal-x { position: absolute; top: 16px; right: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bar-action span { display: none; }
  .bar-action { padding: 0 10px; }
  .bar-make { padding: 0 14px; }
  .bar-make .arrow { display: none; }
  .layers, .cammap, .anatomy { grid-template-columns: minmax(0, 1fr); }
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .turns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  body { font-size: 16px; }
  .bar-home img { width: 74px; }
  .bar-slash, .bar-sec, .bar-title { display: none; }
  .bar-action { height: 36px; padding: 0 9px; }
  .hero { min-height: 92svh; align-items: flex-end; }
  .hero-scrim { background: linear-gradient(0deg, rgba(7, 9, 11, .95) 0%, rgba(7, 9, 11, .7) 45%, rgba(7, 9, 11, .1) 75%); }
  .hero-credit { display: none; }
  .hero-kit { gap: 8px; margin-top: 18px; }
  .hero-kit a { padding: 9px 12px; }
  .hero-kit a span { display: none; }
  .hero-actions { margin-top: 20px; }
  .hero { padding-bottom: 72px; }
  .hero-toggle { bottom: 18px; }
  .lens { --r: 101px; }
  .brief-grid, .facts, .notes { grid-template-columns: minmax(0, 1fr); }
  .greybox { grid-template-columns: minmax(0, 1fr); }
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .turns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .layer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .sl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }   /* picture | swap, lens | full screen, then the size */
  .sl-pick { max-width: none; }
  .sl-full { margin-left: 0; }
  .sl-size { order: 5; grid-column: 1 / -1; }
  .sl-cuts button { width: calc((100% - 18px) / 4); }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane-k { padding-left: 10px; font-size: 9.5px; letter-spacing: .06em; }
  .edl-track { height: 34px; }
  .edl-track button span { display: none; }
  .nowcut .n { font-size: 32px; }
  .xray-tag, .pair-tag, .cmp-tag { top: 8px; font-size: 9.5px; padding: 5px 7px; }
  .xray-tag-l, .pair-tag-l, .cmp-tag-l { left: 8px; } .xray-tag-r, .pair-tag-r, .cmp-tag-r { right: 8px; }
  .screen-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .modal-watch { padding: 0; place-items: stretch; }
  .modal-watch .modal-box { width: 100%; max-height: 100svh; min-height: 100svh; border: 0; border-radius: 0; padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .modal-watch .controls { gap: 8px; }
}
@media (max-width: 400px) {
  .bar-action[href="guide.html"] { display: none; }
  .bar-action { padding: 0 7px; }
  .bar-make { padding: 0 12px; font-size: 13px; margin-left: 2px; }
  .bar-home img { width: 66px; }
}
@media (max-width: 360px) {
  .clock { white-space: normal; }
  .chip-toggle { padding: 0 10px; letter-spacing: .1em; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100svh; padding-top: calc(var(--bar-h) + 16px); padding-bottom: 20px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 15px; margin-top: 10px; }
  .hero-kit, .hero-hint { display: none; }
  .hero-actions { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edl-track button, .map .cam path.vis, .clause-text mark { transition: none; }
}

/* ---------- added with the script: prompt notes, sound controls ---------- */
.clause-why { min-height: 1.6em; margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--c, transparent); color: var(--paper); font-size: 15px; }
.lane-ctl { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; }
.lane-ctl > div { min-width: 0; }
.lane-ctl .lane-now { margin: 0; }
.lane-cue { margin: 6px 0 0; font: 500 12px/1.5 var(--mono); color: var(--muted); max-width: 70em; }

/* ---------- guide page ---------- */
.doc { max-width: var(--max); margin: 0 auto; padding: calc(var(--bar-h) + clamp(40px, 7vw, 88px)) var(--gut) clamp(72px, 10vw, 120px); }
.doc-head { max-width: 860px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font: 300 clamp(44px, 7vw, 84px)/1 var(--serif); letter-spacing: -.015em; }
.doc-intro p { margin: 22px 0 0; font-size: 18px; color: var(--paper); max-width: 46em; }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 40px; }
.doc-toc { position: sticky; top: calc(var(--bar-h) + 24px); max-height: calc(100svh - var(--bar-h) - 48px); overflow: auto; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 6px 0; color: var(--body); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.doc-toc a:hover { color: var(--paper); }
.doc-kit { display: grid; gap: 8px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-body { max-width: 760px; min-width: 0; }
.doc-body h2 { margin: 56px 0 16px; font: 400 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); scroll-margin-top: calc(var(--bar-h) + 20px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 30px 0 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.doc-body p, .doc-body li { color: var(--body); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 1.2em; }
.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--amber); }
.doc-body strong { color: var(--paper); font-weight: 600; }
.doc-body code { font: 500 .86em/1 var(--mono); color: var(--amber-2); background: var(--bg-3); padding: 2px 5px; border-radius: 4px; }
.doc-table { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table th { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:last-child { font-variant-numeric: tabular-nums; }
.doc-end { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px !important; }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: none; }
  .doc-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 480px) { .doc-toc ol { grid-template-columns: minmax(0, 1fr); } }
/* ---------- guide illustrations (.gf-*, written by guide_figures.py) ---------- */
.doc-body .gf { margin: 26px 0 32px; }
.gf img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); }
.doc-body .gf figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gf .gf-k { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.gf-arrow { width: 28px; height: 18px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gf-cell { position: relative; min-width: 0; }
.gf-tag { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: 999px; background: rgba(7, 9, 11, .8); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.gf-flow, .gf-time, .gf-costs, .gf-col { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.gf-flow { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.gf-ins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.gf-in, .gf-out { display: grid; gap: 8px; align-content: start; min-width: 0; }
.doc-body .gf-in p, .doc-body .gf-out p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.gf-in b, .gf-out b { display: block; margin: 2px 0; font-size: 14.5px; }
.gf-textcard { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--line-ctl); border-radius: 10px; }
.gf-textcard svg { width: 42%; fill: none; stroke: var(--amber-2); stroke-width: 2; stroke-linecap: round; }
.gf-out img { border-color: rgba(255, 180, 94, .6); box-shadow: 0 0 30px rgba(255, 180, 94, .14); }
.gf-strip { display: flex; align-items: flex-start; gap: 6px; }
.gf-step { flex: 1 1 0; min-width: 0; }
.doc-body .gf-step p { margin: 8px 0 0; font-size: 14px; color: var(--paper); }
.gf-strip .gf-arrow { width: 20px; margin-top: calc(6.2% - 9px); }
.gf-recipe-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.gf-yes { border-color: rgba(255, 180, 94, .5); }
.doc-body .gf-col ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.doc-body .gf-col li { margin: 0; font-size: 14.5px; }
.gf-col li b { margin-right: 8px; font: 600 13.5px/1.3 var(--mono); }
.gf-no s { color: var(--muted); text-decoration-color: rgba(255, 130, 110, .85); text-decoration-thickness: 2px; }
.doc-body .gf-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: b; }
.doc-body .gf-blocks li { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border-top: 3px solid var(--c, var(--amber)); font-size: 13.5px; line-height: 1.4; counter-increment: b; }
.gf-blocks li::before { content: counter(b); margin-right: 6px; font: 500 11px/1 var(--mono); color: var(--muted); }
.gf-blocks span { display: block; margin-top: 4px; }
.gf-blocks li:nth-child(2) { --c: #ff8a7a; } .gf-blocks li:nth-child(3) { --c: var(--teal); } .gf-blocks li:nth-child(4) { --c: var(--violet); }
.gf-blocks li:nth-child(5) { --c: var(--gold); } .gf-blocks li:nth-child(6) { --c: var(--muted); }
.gf-lane { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.gf-lk { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gf-track { position: relative; height: 22px; }
.gf-track i { position: absolute; top: 0; bottom: 0; font-style: normal; }
.gf-cut { border-radius: 2px; opacity: .85; }
.gf-cut.a1 { background: var(--a1); } .gf-cut.a2 { background: var(--a2); } .gf-cut.a3 { background: var(--a3); } .gf-cut.a4 { background: var(--a4); }
.gf-track .gf-vo { top: 5px; bottom: 5px; border-radius: 3px; background: var(--paper); opacity: .85; }
.gf-mu { overflow: hidden; border: 1px solid rgba(180, 156, 255, .6); border-radius: 4px; background: rgba(180, 156, 255, .14); font: 500 10px/20px var(--mono); color: var(--violet); text-align: center; }
.gf-fx { width: 2px; margin-left: -1px; background: var(--amber-2); }
.gf-fx::after { content: ""; position: absolute; left: -3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--amber-2); }
.gf-axis { margin: 2px 0 0; }
.gf-axis .gf-track { height: 14px; }
.gf-axis .gf-track span { position: absolute; top: 0; transform: translateX(-50%); font: 500 10.5px/1 var(--mono); color: var(--muted); }
.gf-axis .gf-track span:first-child { transform: none; } .gf-axis .gf-track span:last-child { transform: translateX(-100%); }
.gf-costs { display: grid; gap: 9px; }
.gf-bar { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 5.5em; gap: 12px; align-items: center; font-size: 13.5px; }
.gf-bt { height: 12px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.gf-bt i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--amber); }
.gf-bv { text-align: right; font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--paper); }
@media (max-width: 760px) {
  .gf-flow { grid-template-columns: minmax(0, 1fr); }
  .gf-flow > .gf-arrow { justify-self: center; transform: rotate(90deg); }
  .gf-recipe-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-body .gf-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-lane { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .gf-lk { font-size: 9.5px; letter-spacing: .06em; }
  .gf-bar { grid-template-columns: minmax(0, 1fr) 5em; gap: 4px 10px; }
  .gf-bt { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .gf-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .gf-strip .gf-arrow { display: none; }
}
@media (max-width: 420px) { .doc-body .gf-blocks { grid-template-columns: minmax(0, 1fr); } }


/* guide: illustrations open enlarged (guide.js) */
img[data-enlarge] { cursor: zoom-in; }
img[data-enlarge]:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.zoom-fig { display: grid; gap: 10px; justify-items: center; margin: 0; }
.zoom-fig img { max-width: min(1600px, 100%); max-height: calc(100svh - 96px); border-radius: 12px; }
.zoom-fig figcaption { max-width: 80ch; color: var(--paper); font: 400 14px/1.5 var(--sans); text-align: center; }
