/* v8 · "The Reel"
   The master portfolio, cut as a two-minute film. Every section is a shot pinned to the screen; scrolling
   scrubs it like a playhead, and the play button rolls it on its own. Same identity as v7: cream paper,
   ink, one red sun, and colour that only ever comes from my art, photos and renders.
   Captions are set like reel subtitles: white Instrument Serif with a soft shadow. */

:root {
  --paper: #edeae4;
  --paper-hi: #f7f6f2;
  --paper-lo: #e2ddd4;
  --ink: #161412;
  --ink-2: #3c3732;
  --ink-3: #7a7268;
  --night: #0d0c0b;
  --rule: rgba(22, 20, 18, .14);
  --sun: #e2432a;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --edge: clamp(16px, 3.4vw, 48px);
  --hud-b: 84px;                    /* room the bottom player bar takes */
  --cap-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 28px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.hand { font-family: var(--hand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; background: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-play { background: var(--ink); color: var(--paper); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-line { border-color: currentColor; }

/* ---------- shots: a tall section with a sticky frame; scroll inside it is the playhead ---------- */
.shot { position: relative; height: calc(var(--len, 2) * 100vh); }
.frame { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.paper-frame { background: var(--paper); color: var(--ink); }
.credit { position: absolute; right: var(--edge); bottom: calc(var(--hud-b) + 8px); z-index: 3; font-size: 9.5px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* reel captions: one line at a time, words land one by one */
.caps { position: absolute; left: 50%; bottom: calc(var(--hud-b) + 7vh); z-index: 6; width: min(92vw, 1000px); translate: -50% 0; text-align: center; pointer-events: none; font-weight: 400; }
.cap { display: block; font: 400 clamp(30px, 4.4vw, 68px)/1.04 var(--serif); letter-spacing: -.015em; color: #fff; text-shadow: var(--cap-shadow); text-wrap: balance; }
.js .cap { position: absolute; inset: auto 0 0; opacity: 0; }
.js .cap.is-on { opacity: 1; }
.cap .w { display: inline-block; transition: opacity .25s, transform .35s var(--ease), filter .35s; }
.cap .w.is-off { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
.caps-big .cap { font-size: clamp(40px, 7.4vw, 124px); line-height: .98; }

/* ---------- player HUD ---------- */
.hud { position: fixed; z-index: 60; }
.hud-top { inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--edge); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-mark, .hud-ch, .hud-tc .tc, .hud-classic { color: #fff; mix-blend-mode: difference; }
.hud-mark { font: 400 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; view-transition-name: wordmark; }
.hud-ch { text-align: center; white-space: nowrap; }
.hud-ch-n { opacity: .6; margin-right: 6px; }
.hud-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.hud-tc { display: flex; align-items: center; gap: 8px; }
.hud-tc .tc { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(226, 67, 42, .5); }
.is-playing .rec { animation: rec 1.4s infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hud-classic { text-decoration: none; }
.hud-classic:hover { text-decoration: underline; text-underline-offset: 3px; }

.hud-bottom {
  left: 50%; bottom: 16px; translate: -50% 0; width: min(980px, calc(100vw - 2 * var(--edge)));
  display: flex; align-items: center; gap: 14px; padding: 7px 18px 7px 7px; border-radius: 999px;
  background: rgba(16, 14, 12, .58); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background-color .3s; }
.play:hover { transform: scale(1.06); }
.play svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: currentColor; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.timeline { flex: 1; display: flex; gap: 3px; align-items: center; min-width: 0; }
.timeline li { flex: var(--len) 1 0; min-width: 0; }
.tl-seg { position: relative; display: block; width: 100%; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.tl-seg::before, .tl-seg i { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height .25s var(--ease), margin .25s var(--ease); }
.tl-seg::before { background: rgba(255, 255, 255, .22); }
.tl-seg i { background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tl-seg.is-now i { background: var(--sun); }
.tl-seg:hover::before, .tl-seg:hover i, .tl-seg:focus-visible::before, .tl-seg:focus-visible i { height: 8px; margin-top: -4px; }
.tl-seg span { position: absolute; left: 50%; bottom: 30px; translate: -50% 4px; padding: 6px 9px; border-radius: 6px; background: rgba(16, 14, 12, .86); white-space: nowrap; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s var(--ease); }
.tl-seg:hover span, .tl-seg:focus-visible span { opacity: 1; translate: -50% 0; }
.timeline li:first-child .tl-seg span { left: 0; translate: 0 4px; }
.timeline li:first-child .tl-seg:hover span { translate: 0 0; }
.timeline li:last-child .tl-seg span { left: auto; right: 0; translate: 0 4px; }
.timeline li:last-child .tl-seg:hover span { translate: 0 0; }
.hud-total { flex: none; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- leader: 3 · 2 · 1 ---------- */
.leader { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--night); color: var(--paper); cursor: pointer; }
.leader.is-on { display: grid; }
.leader > * { grid-area: 1 / 1; }
.leader-dial { width: min(64vmin, 520px); fill: none; stroke: rgba(237, 234, 228, .3); stroke-width: 1; }
.leader-sweep { stroke: rgba(237, 234, 228, .12); stroke-width: 92; stroke-dasharray: 289.03; stroke-dashoffset: 289.03; transform: rotate(-90deg); transform-origin: 100px 100px; animation: sweep .7s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.leader-n { font: 400 min(34vmin, 280px)/1 var(--serif); }
.leader-tag { align-self: end; margin-bottom: 9vh; opacity: .6; }
.leader.is-out { animation: leader-out .5s var(--ease) forwards; }
@keyframes leader-out { to { clip-path: inset(0 0 100% 0); } }

/* ---------- 00 · opening ---------- */
.shot-open .frame { background: var(--paper); }
.open-stage { position: absolute; inset: 0; will-change: transform; }
.open-big {
  position: absolute; left: 50%; top: 9vh; translate: -50% 0; white-space: nowrap;
  font: 400 clamp(150px, 33vw, 640px)/.8 var(--serif); letter-spacing: -.05em; color: var(--ink);
}
.open-sun { position: absolute; left: calc(50% + min(19vh, 25vw)); top: 5vh; width: min(15vh, 24vw); aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.open-me { position: absolute; left: 50%; bottom: 0; height: 90vh; aspect-ratio: 1146 / 1500; translate: -50% 0; }
.open-photo { width: 100%; height: 100%; filter: grayscale(1) contrast(1.1) brightness(1.03); user-select: none; -webkit-user-drag: none; }
.open-mind { position: absolute; inset: 0; -webkit-mask: url(../assets/me/hair-mask.webp) 0 0 / 100% 100% no-repeat; mask: url(../assets/me/hair-mask.webp) 0 0 / 100% 100% no-repeat; }
.open-mind img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(1.2); }
.open-fill { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.open-fill img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.open-intro { position: absolute; left: var(--edge); bottom: calc(var(--hud-b) + 7vh); z-index: 7; display: grid; justify-items: start; gap: 16px; max-width: 26ch; color: var(--ink-2); }
.open-or { color: var(--ink-3); }
.shot-open .cap { color: var(--ink); text-shadow: 0 0 22px var(--paper), 0 0 8px var(--paper); }
.open-cred { position: absolute; right: var(--edge); bottom: calc(var(--hud-b) + 7vh); z-index: 7; color: var(--ink-3); writing-mode: vertical-rl; rotate: 180deg; font-size: 9.5px; }

/* ---------- 01 · in short: hard cuts ---------- */
.shot-cuts .frame { background: var(--night); }
.shot-cuts .frame::after, .shot-case:not(.paper) .frame::after, .shot-room .frame::after {
  content: ''; position: absolute; inset: 45% 0 0; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.shot-case:not(.paper) .frame::before { content: ''; position: absolute; inset: 0 0 62% 0; z-index: 2; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .62), transparent); }
.cut { position: absolute; inset: 0; opacity: 0; }
.cut.is-on, .no-js .cut:first-child { opacity: 1; }
.cut-media { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--kb, 1.04)); }
.cut-vert .cut-media { position: absolute; left: 50%; top: 0; width: auto; height: 100%; aspect-ratio: 9 / 16; translate: -50% 0; box-shadow: 0 0 80px rgba(0, 0, 0, .55); }
.cut-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(42px) saturate(1.35) brightness(.6); transform: scale(1.25); }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.flash.is-on { animation: flash .22s ease-out; }
@keyframes flash { from { opacity: .55; } to { opacity: 0; } }
.kicker { position: absolute; left: var(--edge); top: 72px; z-index: 6; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

/* ---------- 02 · numbers ---------- */
.shot-nums .frame { background: var(--night); color: var(--paper); }
.nums-lead { bottom: auto; top: 50%; translate: -50% -50%; width: min(90vw, 980px); }
.nums-lead .cap { font-size: clamp(30px, 4vw, 60px); color: var(--paper); text-shadow: none; }
.js .nums-lead .cap { inset: auto 0; top: 50%; translate: 0 -50%; }
.num { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; opacity: 0; }
.num.is-on { opacity: 1; }
.num img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) saturate(.9); transform: scale(var(--kb, 1.1)); }
.num dt { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 234, 228, .75); }
.num dd { font: 400 clamp(120px, 24vw, 400px)/.82 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.num-from { display: block; font: 400 clamp(24px, 3vw, 44px)/1 var(--serif); color: rgba(237, 234, 228, .55); letter-spacing: 0; }

/* ---------- case shots ---------- */
.shot-case .frame { background: var(--night); color: #fff; }
.shot-case.paper .frame { background: var(--paper); color: var(--ink); }
.case-info { position: absolute; left: var(--edge); top: 76px; z-index: 6; max-width: min(30ch, 24vw); display: grid; gap: 10px; }
.case-info .mono { opacity: .75; }
.case-t { font: 400 clamp(22px, 2.2vw, 32px)/1.05 var(--serif); letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; opacity: .8; }
.shot-case:not(.paper) .case-info { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.case-link { justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--sun); color: #fff; text-decoration: none; text-shadow: none; opacity: 1 !important; transition: transform .3s var(--ease); }
.case-link:hover { transform: translateY(-2px); }
.chap { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: var(--night); color: var(--paper); will-change: clip-path; }
.chap-n { color: var(--sun); letter-spacing: .2em; }
.chap-t { font: 400 clamp(68px, 12vw, 210px)/.86 var(--serif); letter-spacing: -.035em; }
.chap-s { opacity: .65; }
.chap-k { margin-top: 8px; font-size: clamp(15px, 1.3vw, 19px); color: rgba(237, 234, 228, .8); }
.chap-k b { color: var(--paper); font-weight: 600; }
.star .cap { font-size: clamp(24px, 2.9vw, 44px); line-height: 1.12; }
.star .cap .mono { display: block; margin-bottom: 12px; font-size: 11px; color: var(--sun); text-shadow: none; }
.paper .star .cap { color: var(--ink); text-shadow: 0 0 24px var(--paper), 0 0 12px var(--paper); }

/* case 01 · a search results page as a screen recording */
.seo-screen {
  position: absolute; left: 53%; top: 13vh; height: min(54vh, 560px); width: min(680px, 44vw); translate: -50% 0;
  display: grid; grid-template-rows: auto auto 1fr auto; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 50px 80px -40px rgba(40, 30, 10, .5);
}
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-lo); }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.scr-bar span { margin-left: auto; margin-right: auto; padding: 3px 60px; border-radius: 6px; background: rgba(255, 255, 255, .6); font-size: 9.5px; color: var(--ink-3); }
.scr-q { display: flex; align-items: center; gap: 10px; margin: 14px 18px 8px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; min-height: 42px; }
.scr-q svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.caret { width: 1.5px; height: 18px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.serp { position: relative; margin: 4px 18px; overflow: hidden; --row: calc((100% - 0px) / 20); }
.serp-list { height: 100%; display: grid; grid-template-rows: repeat(20, 1fr); }
.serp-list li { display: flex; align-items: center; gap: 10px; min-height: 0; }
.serp-list span { width: 18px; font: 500 9px var(--mono); color: var(--ink-3); text-align: right; }
.serp-list i { height: 5px; border-radius: 3px; background: var(--paper-lo); width: var(--w); }
.serp-page { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: space-between; padding-top: 2px; border-top: 1.5px dashed var(--ink-3); font-size: 9px; color: var(--ink-3); }
.serp-page span { padding: 0 6px; background: #fff; }
.serp-page span:first-child { translate: 0 -18px; }
.serp-me { position: absolute; left: -6px; right: -6px; top: 0; height: 5%; min-height: 20px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--sans); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); will-change: transform; }
.serp-me i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.serp-me b { margin-left: auto; font: 500 11px var(--mono); }
.chips { display: flex; gap: 6px; padding: 12px 18px 16px; }
.chips li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 9.5px; color: var(--ink-3); transition: background-color .3s, color .3s; }
.chips li.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.readout { position: absolute; right: var(--edge); top: 26vh; z-index: 5; display: grid; justify-items: end; gap: 6px; text-align: right; }
.readout-n { font: 400 clamp(90px, 11vw, 190px)/.85 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout .mono { color: var(--ink-3); }
.readout-note { font-size: 24px; color: var(--sun); rotate: -4deg; }

/* case 02 · a time-lapse through a viewfinder */
.lapse { position: absolute; inset: 0; }
.lapse img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(var(--kb, 1.06)); }
.lapse img.is-on { opacity: 1; }
.no-js .lapse img:first-child { opacity: 1; }
.finder { position: absolute; inset: 64px var(--edge) calc(var(--hud-b) + 4px); z-index: 4; pointer-events: none; color: #fff; }
.fc { position: absolute; width: 30px; height: 30px; border: 2px solid rgba(255, 255, 255, .85); }
.fc-tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.fc-tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.fc-bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.fc-br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.finder-rec { position: absolute; right: 18px; top: 16px; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.finder-rec .rec { animation: rec 1.4s infinite; }
.finder-n { position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; gap: 18px; text-align: right; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.finder-n dt { opacity: .75; }
.finder-n dd { font: 400 clamp(44px, 5.4vw, 88px)/.9 var(--serif); letter-spacing: -.02em; text-transform: none; font-variant-numeric: tabular-nums; }
.finder .credit { right: 18px; bottom: 14px; }

/* case 03 · the review belt */
.belt-scene { position: absolute; inset: 0; }
.belt { position: absolute; left: 0; top: 37vh; height: 0; }
.bcard { position: absolute; left: 0; top: 0; width: clamp(150px, 16vw, 240px); aspect-ratio: 3 / 2; translate: 0 -50%; padding: 6px; background: #fff; border-radius: 3px; box-shadow: 0 16px 30px -18px rgba(40, 30, 10, .6); will-change: transform; }
.bcard img, .bcard svg { width: 100%; height: 100%; object-fit: cover; }
.bcard svg { background: var(--paper-hi); }
.bcard .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -12deg; padding: 6px 10px 5px; border: 2.5px solid currentColor; border-radius: 4px; font: 600 15px/1 var(--mono); letter-spacing: .12em; background: rgba(255, 255, 255, .82); opacity: 0; scale: 1.6; transition: opacity .18s, scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.bcard.is-ok .stamp { color: var(--ink); }
.bcard.is-bad .stamp { color: var(--sun); }
.bcard.is-stamped .stamp { opacity: 1; scale: 1; }
.bcard .tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 6px; background: var(--sun); color: #fff; font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.belt-lens { position: absolute; left: 50%; top: 37vh; width: clamp(200px, 22vw, 330px); aspect-ratio: 1; translate: -50% -50%; z-index: 3; border-radius: 50%; border: 2px solid var(--ink); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .3), 0 0 0 9999px rgba(237, 234, 228, .0); pointer-events: none; }
.belt-lens::after { content: ''; position: absolute; right: -14%; bottom: -14%; width: 22%; height: 6%; background: var(--ink); border-radius: 4px; rotate: 45deg; transform-origin: 0 50%; }
.belt-lens span { position: absolute; left: 50%; top: -26px; translate: -50% 0; color: var(--ink-3); }
.belt-line { position: absolute; left: 0; right: 0; top: calc(37vh + clamp(60px, 6.4vw, 96px)); height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 14px, transparent 14px 24px); opacity: .5; }
.belt-n { position: absolute; right: var(--edge); top: 76px; display: flex; gap: clamp(16px, 3vw, 40px); text-align: right; }
.belt-n dt { color: var(--ink-3); }
.belt-n dd { font: 400 clamp(40px, 4.4vw, 72px)/.95 var(--serif); font-variant-numeric: tabular-nums; }
.belt-n .b-bad { color: var(--sun); }
.belt-scene .credit { color: var(--ink-3); text-shadow: none; }

/* case 04 · an AI output under review */
.scan { position: absolute; inset: 0; }
.scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--kb, 1.05)); }
.scan-raw { filter: grayscale(1) contrast(.9) brightness(.62); }
.scan-ok { clip-path: inset(0 0 calc(100% - var(--s, 0%)) 0); }
.scan-line { position: absolute; left: 0; right: 0; top: var(--s, 0%); z-index: 2; height: 2px; background: var(--sun); box-shadow: 0 0 24px 4px rgba(226, 67, 42, .55); }
.scan-line span { position: absolute; left: var(--edge); bottom: 8px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.checks { position: absolute; right: var(--edge); top: 76px; z-index: 3; display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: rgba(16, 14, 12, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .55); font-size: 10.5px; min-width: 250px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .3s; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ''; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s, border-color .3s; }
.checks li.is-ok { color: #fff; }
.checks li.is-ok::before { background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 L6 9.5 L10.5 4.5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--sun); }

/* ---------- 07 · catalogue flip-book ---------- */
.shot-cat .frame { background: var(--paper); }
.cat-style { position: absolute; left: 50%; top: 50%; translate: -50% -56%; white-space: nowrap; font: 400 clamp(110px, 21vw, 380px)/.8 var(--serif); letter-spacing: -.045em; color: var(--paper-lo); pointer-events: none; }
.flip { position: absolute; right: var(--edge); top: 50%; translate: 0 -54%; width: min(48vw, 720px); padding: 10px; background: #fff; border-radius: 4px; rotate: 1.2deg; box-shadow: 0 40px 70px -40px rgba(40, 30, 10, .55); }
.flip-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper-hi); }
.flip figcaption { display: flex; justify-content: space-between; padding: 10px 4px 2px; color: var(--ink-3); }
.cat-copy { position: absolute; left: var(--edge); top: 50%; translate: 0 -54%; z-index: 2; max-width: min(36ch, 38vw); display: grid; gap: 16px; justify-items: start; }
.cat-copy > .mono { color: var(--ink-3); }
.cat-h { font: 400 clamp(36px, 4.4vw, 72px)/.98 var(--serif); letter-spacing: -.02em; }
.cat-k { color: var(--ink-2); }
.cat-k b { color: var(--ink); }
.cat-why { color: var(--ink-2); font-size: 16px; }

/* ---------- 08 · 360° room ---------- */
.shot-room .frame { background: var(--night); }
.pano { position: absolute; inset: 0; background: var(--night) var(--pano, none) 0 50% / auto 100% repeat-x; cursor: grab; touch-action: pan-y; }
.pano:active { cursor: grabbing; }
.pano canvas { width: 100% !important; height: 100% !important; }
.shot-room .frame::before { content: ''; position: absolute; inset: 0 40% 0 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent); }
.room-copy { position: absolute; left: var(--edge); bottom: calc(var(--hud-b) + 8vh); z-index: 4; max-width: 34ch; display: grid; gap: 14px; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); pointer-events: none; }
.room-copy .mono { opacity: .8; }
.room-h { font: 400 clamp(44px, 6vw, 100px)/.92 var(--serif); letter-spacing: -.03em; }
.room-sub { font-size: 16px; color: rgba(255, 255, 255, .86); }
.room-hint { position: absolute; left: 50%; top: 76px; translate: -50% 0; z-index: 4; padding: 7px 12px; border-radius: 999px; background: rgba(16, 14, 12, .5); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.room-compass { position: absolute; right: var(--edge); bottom: calc(var(--hud-b) + 8vh); z-index: 4; width: 48px; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.room-compass .needle { fill: var(--sun); stroke: none; transform-origin: 20px 20px; }

/* ---------- 09 · recognition ---------- */
.shot-quote .frame { background: var(--night); color: var(--paper); display: grid; place-content: center; justify-items: center; gap: 28px; padding: 90px var(--edge) calc(var(--hud-b) + 20px); text-align: center; }
.quote-k { color: var(--sun); }
.quote-t { font: 400 clamp(24px, 2.4vw, 36px)/1.05 var(--serif); color: rgba(237, 234, 228, .7); }
.quote { display: grid; gap: 20px; max-width: min(1080px, 90vw); }
.quote p { font: 400 clamp(24px, 2.8vw, 46px)/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.quote .w { transition: opacity .2s; }
.js .quote .w { opacity: .14; }
.js .quote .w.is-lit { opacity: 1; }
.quote-src { color: rgba(237, 234, 228, .6); }

/* ---------- 10 · colour reel ---------- */
.shot-colour .frame { background: var(--night); color: #fff; }
.wash { position: absolute; inset: 0; z-index: -1; }
.wash img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.5) brightness(.5); transform: scale(1.3); transition: opacity .5s; }
.colour-head { position: absolute; left: var(--edge); top: 76px; z-index: 3; display: grid; gap: 10px; }
.colour-head .mono { opacity: .75; }
.colour-h { font: 400 clamp(36px, 4.6vw, 76px)/.95 var(--serif); letter-spacing: -.025em; max-width: 14ch; }
.strip-wrap {
  position: absolute; left: 0; right: 0; top: 55%; translate: 0 -50%; height: min(50vh, 600px); padding: 34px 0;
  background: rgba(10, 9, 8, .82);
  --holes: repeating-linear-gradient(90deg, transparent 0 14px, rgba(237, 234, 228, .5) 14px 26px, transparent 26px 40px);
}
.strip-wrap::before, .strip-wrap::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: var(--holes); -webkit-mask: linear-gradient(#000, #000); border-radius: 2px; }
.strip-wrap::before { top: 12px; }
.strip-wrap::after { bottom: 12px; }
.strip { display: flex; gap: 22px; height: 100%; padding: 0 50vw; width: max-content; will-change: transform; }
.strip li { position: relative; flex: none; height: 100%; aspect-ratio: var(--ar, .75); transition: opacity .35s, filter .35s; opacity: .45; filter: saturate(.6); }
.strip li.is-on { opacity: 1; filter: none; }
.strip img, .strip video { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.strip li b { position: absolute; left: 0; top: -24px; font: 500 9.5px var(--mono); letter-spacing: .1em; color: rgba(237, 234, 228, .6); }
.strip-cap { position: absolute; left: 50%; bottom: calc(var(--hud-b) + 6vh); translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: 6px; text-align: center; }
.strip-t { font: 400 clamp(26px, 2.6vw, 40px)/1 var(--serif); }
.strip-m { opacity: .7; }
.strip-ig { position: absolute; right: var(--edge); top: 84px; z-index: 3; text-decoration: none; opacity: .8; }
.strip-ig:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 11 · story as an edit timeline ---------- */
.shot-story .frame { background: var(--paper); }
.story-head { position: absolute; left: var(--edge); top: 76px; z-index: 3; display: grid; gap: 10px; }
.story-head .mono { color: var(--ink-3); }
.story-h { font: 400 clamp(36px, 4.6vw, 76px)/.95 var(--serif); letter-spacing: -.025em; max-width: 12ch; }
.monitor { position: absolute; right: var(--edge); top: 76px; width: min(720px, 56vw); height: min(46vh, 440px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; }
.mon-img { height: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--paper-lo); box-shadow: 0 30px 50px -30px rgba(40, 30, 10, .55); }
.mon-img img { width: 100%; height: 100%; object-fit: cover; }
.mon-copy { display: grid; gap: 8px; padding-bottom: 6px; }
.mon-when { color: var(--sun); }
.mon-t { font: 400 clamp(28px, 2.8vw, 46px)/1 var(--serif); letter-spacing: -.015em; }
.mon-org { color: var(--ink-3); }
.mon-d { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.edit { position: absolute; left: var(--edge); right: var(--edge); bottom: calc(var(--hud-b) + 18px); padding: 10px 14px 14px 46px; border-radius: 12px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule); }
.ruler { position: relative; height: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); color: var(--ink-3); font-size: 9.5px; }
.ruler span { position: absolute; bottom: 4px; translate: -50% 0; }
.ruler span::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 1px; height: 5px; background: var(--rule); }
.track { position: relative; height: 34px; margin-top: 6px; }
.track-l { position: absolute; left: -34px; top: 50%; translate: 0 -50%; color: var(--ink-3); font-size: 9.5px; }
.clip { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 10px; overflow: hidden; border-radius: 5px; border: 1px solid var(--ink-3); background: var(--paper-lo); white-space: nowrap; font: 500 11.5px/1 var(--sans); color: var(--ink-2); transition: background-color .25s, color .25s, border-color .25s; }
.clip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.playhead { position: absolute; top: 6px; bottom: 6px; left: 46px; width: 2px; margin-left: -1px; background: var(--sun); z-index: 2; pointer-events: none; will-change: transform; }
.playhead::before { content: ''; position: absolute; left: -5px; top: 0; border: 6px solid transparent; border-top-color: var(--sun); border-bottom: 0; }
.playhead b { position: absolute; left: 8px; top: -2px; padding: 2px 5px; border-radius: 3px; background: var(--sun); color: #fff; font-size: 9.5px; }

/* ---------- 12 · credits ---------- */
.shot-credits .frame { background: var(--night); color: var(--paper); }
.roll { position: absolute; left: 50%; top: 0; width: min(760px, 92vw); translate: -50% 0; display: grid; justify-items: center; gap: 18px; padding-bottom: 20vh; text-align: center; will-change: transform; }
.roll-k { color: rgba(237, 234, 228, .6); }
.roll-name { font: 400 clamp(56px, 8vw, 132px)/.9 var(--serif); letter-spacing: -.035em; margin-bottom: 4vh; }
.roll-list { display: grid; gap: 14px; width: 100%; }
.roll-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font: 400 clamp(17px, 1.6vw, 22px)/1.25 var(--sans); }
.roll-list dt { text-align: right; color: rgba(237, 234, 228, .62); }
.roll-list dd { text-align: left; }
.roll-list .roll-head { grid-template-columns: 1fr; margin-top: 5vh; }
.roll-list .roll-head dt { text-align: center; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.roll-list .roll-head dd { display: none; }
.roll-pics { display: flex; gap: 16px; margin-top: 7vh; }
.roll-pics li { width: clamp(110px, 13vw, 180px); padding: 7px 7px 26px; background: var(--paper-hi); rotate: var(--r, -3deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.roll-pics li:nth-child(2) { --r: 3deg; translate: 0 -12px; }
.roll-pics li:nth-child(3) { --r: -1.5deg; }
.roll-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.roll-loc { margin-top: 6vh; color: rgba(237, 234, 228, .6); }
.fin { position: absolute; inset: 0; z-index: 3; opacity: 0; visibility: hidden; background: var(--night); isolation: isolate; }
.fin.is-on { visibility: visible; }
.fin-me { position: absolute; right: max(var(--edge), 6vw); bottom: 0; height: 86vh; width: auto; filter: grayscale(1) contrast(1.08); }
.fin-sun { position: absolute; right: calc(max(var(--edge), 6vw) + 18vh); top: 16vh; z-index: -1; width: min(26vh, 30vw); aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.fin-copy { position: absolute; left: var(--edge); top: 50%; translate: 0 -54%; max-width: min(40ch, 52vw); display: grid; gap: 22px; justify-items: start; }
.fin-k { color: var(--sun); }
.fin-t { font: 400 clamp(52px, 7vw, 120px)/.9 var(--serif); letter-spacing: -.035em; }
.fin-sub { color: rgba(237, 234, 228, .78); font-size: 17px; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fin .btn-line { color: var(--paper); }
.fin-foot { color: rgba(237, 234, 228, .55); }
.fin-foot a { color: var(--paper); }

/* ---------- grain ---------- */
.grain { position: fixed; inset: -50%; z-index: 55; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --hud-b: 74px; }
  .hud-top { grid-template-columns: 1fr auto; padding: 14px var(--edge); }
  .hud-ch, .hud-classic, .hud-total { display: none; }
  .hud-mark { font-size: 19px; }
  .hud-bottom { bottom: 12px; padding-right: 14px; }
  .play { width: 40px; height: 40px; }
  .tl-seg span { display: none; }
  .caps { bottom: calc(var(--hud-b) + 5vh); }
  .cap { font-size: clamp(26px, 7.4vw, 40px); }
  .caps-big .cap { font-size: clamp(38px, 11vw, 60px); }

  .open-big { top: 17vh; font-size: 38vw; }
  .open-me { height: 72vh; }
  .open-sun { top: 23vh; left: calc(50% + 14vw); }
  .open-intro { left: 50%; bottom: auto; top: 66px; translate: -50% 0; justify-items: center; text-align: center; max-width: 90vw; gap: 10px; }
  .open-intro > .mono { display: none; }
  .open-intro .btn { padding: 11px 18px; font-size: 14px; }
  .open-or, .open-cred { display: none; }
  .shot-open .caps { bottom: calc(var(--hud-b) + 3vh); }

  .cut-vert .cut-media { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }

  .case-info { top: 64px; max-width: 70vw; gap: 6px; }
  .case-info .tags { display: none; }
  .case-t { font-size: 19px; }
  .star .cap { font-size: clamp(21px, 5.6vw, 28px); }
  .seo-screen { top: 22vh; width: 90vw; height: 40vh; }
  .readout { display: none; }
  .finder-n { top: 30%; gap: 12px; }
  .finder-n dd { font-size: 40px; }
  .belt, .belt-lens { top: 38vh; }
  .belt-line { top: calc(38vh + 60px); }
  .belt-n { top: auto; bottom: calc(var(--hud-b) + 24vh); right: auto; left: var(--edge); }
  .belt-n dd { font-size: 34px; }
  .checks { top: auto; bottom: calc(var(--hud-b) + 24vh); right: var(--edge); left: var(--edge); min-width: 0; padding: 8px 12px; font-size: 9.5px; }
  .checks li { padding: 5px 2px; }

  .cat-style { top: 26vh; font-size: 30vw; }
  .flip { left: 50%; right: auto; top: 15vh; translate: -50% 0; width: 86vw; }
  .cat-copy { top: auto; bottom: calc(var(--hud-b) + 16px); translate: none; max-width: none; right: var(--edge); gap: 10px; }
  .cat-why { display: none; }
  .cat-h { font-size: 34px; }

  .room-copy { bottom: calc(var(--hud-b) + 4vh); right: var(--edge); }
  .room-sub { font-size: 14.5px; }
  .room-compass { bottom: auto; top: 120px; width: 38px; }
  .shot-room .frame::before { inset: 30% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }

  .strip-wrap { height: 46vh; translate: 0 -50%; }
  .colour-h { font-size: 34px; }
  .strip-ig { display: none; }

  .monitor { left: var(--edge); right: var(--edge); top: 170px; width: auto; height: 30vh; gap: 14px; }
  .mon-t { font-size: 24px; }
  .mon-d { font-size: 13.5px; }
  .story-h { font-size: 34px; }
  .edit { padding-left: 34px; }
  .track-l { left: -26px; }
  .clip { font-size: 0; padding: 0; }
  .ruler span:nth-child(even) { display: none; }

  .fin-me { right: -10vw; height: 62vh; opacity: .5; }
  .fin-sun { right: 8vw; top: 22vh; }
  .fin-copy { top: auto; bottom: calc(var(--hud-b) + 18px); translate: none; max-width: none; right: var(--edge); gap: 14px; }
  .fin-t { font-size: 48px; }
  .fin-sub { font-size: 15px; }
  .fin .btn { padding: 11px 16px; font-size: 13.5px; }
  .roll-list > div { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .caret, .rec, .leader-sweep { animation: none !important; }
  .flash { display: none; }
  .cap .w { transition: none; }
}

/* ============ interactive layer ============ */
/* the frame leans with your scroll speed, like tape under a thumb */
.frame { transform: skewY(var(--skew, 0deg)); transform-origin: 50% 50%; touch-action: manipulation; }
.shot[hidden] { display: none; }
.btn-cut { color: var(--ink); }
.btn-cut:hover { background: var(--ink); color: var(--paper); }

/* player extras: speed and cut */
.speed, .cut-btn { flex: none; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 10.5px; transition: background-color .25s; }
.speed:hover, .cut-btn:hover { background: rgba(255, 255, 255, .24); }
.cut-btn b { font-weight: 500; color: #ffb3a6; }
.timeline { touch-action: none; cursor: ew-resize; }
.timeline.is-scrubbing .tl-seg::before, .timeline.is-scrubbing .tl-seg i { height: 8px; margin-top: -4px; }
.tl-seg .tl-tip { display: grid; gap: 6px; justify-items: start; width: 168px; padding: 6px; white-space: normal; }
.tl-tip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.tl-tip b { font-weight: 500; line-height: 1.3; }

/* choose your cut */
.choose { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(13, 12, 11, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade-in .35s var(--ease); }
.choose[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.choose-card { position: relative; width: min(720px, 100%); padding: clamp(24px, 4vw, 44px); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px; animation: rise .5s var(--ease); }
@keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.choose-k { color: var(--sun); }
.choose-h { font: 400 clamp(38px, 5vw, 68px)/.95 var(--serif); letter-spacing: -.025em; }
.choose-sub { color: var(--ink-2); max-width: 46ch; }
.choose-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.choose-opts button { padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: none; text-align: left; font: 500 16px/1.2 var(--sans); cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.choose-opts button:hover, .choose-opts button:focus-visible { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.choose-opts button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--sun); }
.choose-opts .choose-all { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
.choose-timer { height: 3px; border-radius: 3px; background: var(--paper-lo); overflow: hidden; display: none; }
.choose.is-timed .choose-timer { display: block; }
.choose-timer i { display: block; height: 100%; background: var(--sun); transform-origin: 0 50%; }
.choose.is-timed .choose-timer i { animation: drain 9s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.choose-x { justify-self: end; padding: 6px 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.choose-x:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* lightbox */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 9, 8, .94); color: var(--paper); }
.lb::backdrop { background: transparent; }
.lb figure { height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 16px; padding: 64px 72px 28px; }
.lb-media { min-height: 0; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb figcaption { display: grid; justify-items: center; gap: 4px; }
.lb-t { font: 400 30px/1 var(--serif); }
.lb-m { opacity: .65; }
.lb-nav, .lb-x { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(237, 234, 228, .3); border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--paper); font-size: 20px; cursor: pointer; }
.lb-nav:hover, .lb-x:hover { background: var(--paper); color: var(--ink); }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-x { right: 16px; top: 16px; font-size: 26px; }
.strip li { cursor: zoom-in; }
.strip li:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }

/* the big play / pause / ±10s flash, like any video player */
.pp-flash { position: fixed; top: 50%; left: 50%; z-index: 70; display: grid; place-items: center; width: 104px; height: 104px; translate: -50% -50%; border-radius: 50%; background: rgba(13, 12, 11, .55); color: #fff; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pp-flash > * { grid-area: 1 / 1; }
.pp-flash svg { width: 40px; height: 40px; fill: currentColor; display: none; }
.pp-flash[data-kind="play"] .i-play, .pp-flash[data-kind="pause"] .i-pause { display: block; }
.pp-flash[data-side="l"] { left: 20%; }
.pp-flash[data-side="r"] { left: 80%; }
.pp-skip { font-size: 15px; letter-spacing: .04em; }
.pp-flash.is-on { animation: pp .7s var(--ease); }
@keyframes pp { 0% { opacity: 0; scale: .7; } 18% { opacity: 1; scale: 1; } 70% { opacity: 1; } 100% { opacity: 0; scale: 1.25; } }

/* fast-scroll badge */
.scrub { position: fixed; left: 50%; top: 66px; z-index: 65; display: flex; align-items: center; gap: 10px; padding: 8px 14px; translate: -50% -8px; border-radius: 999px; background: rgba(13, 12, 11, .62); color: #fff; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .25s, translate .3s var(--ease); }
.scrub.is-on { opacity: 1; translate: -50% 0; }
.scrub-dir { font-size: 14px; letter-spacing: -.1em; color: var(--sun); }
.scrub-x { font-variant-numeric: tabular-nums; min-width: 3ch; }

/* the cursor label */
.cur { position: fixed; left: 0; top: 0; z-index: 75; pointer-events: none; }
.cur-l { display: block; padding: 7px 11px; translate: 16px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 10px; white-space: nowrap; opacity: 0; scale: .8; transition: opacity .2s, scale .25s var(--ease); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.cur.is-on .cur-l { opacity: 1; scale: 1; }

/* your turn: spot what's off-spec */
.shot-spot .frame { background: var(--paper); color: var(--ink); }
.spot-head { position: absolute; left: var(--edge); top: 76px; z-index: 3; display: grid; gap: 10px; max-width: min(34ch, 32vw); }
.spot-head .mono { color: var(--sun); }
.spot-h { font: 400 clamp(38px, 4.6vw, 76px)/.95 var(--serif); letter-spacing: -.025em; }
.spot-sub { color: var(--ink-2); font-size: 16px; }
.spot-count { position: absolute; right: var(--edge); top: 76px; z-index: 3; font-size: 12px; }
.spot-count b { display: block; font: 400 clamp(56px, 6vw, 96px)/.9 var(--serif); letter-spacing: -.03em; text-transform: none; }
.is-done .spot-count b { color: var(--sun); }
.spot-stage { position: absolute; left: 50%; top: 50%; width: min(60vw, 900px, calc((100vh - 280px) * 1.6)); translate: -38% -46%; cursor: crosshair; }
.spot-room { width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 40px 70px -40px rgba(40, 30, 10, .55); }
.spot-hit { cursor: pointer; outline: none; }
.spot-hit:focus-visible { stroke: var(--sun); stroke-width: 3; stroke-dasharray: 6 6; }
.mk { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink .6s var(--ease) forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
.mk-t { font: 500 34px var(--hand); fill: var(--sun); stroke: none; }
.spot-tip { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-size: 28px; color: var(--sun); opacity: 0; }
.spot-tip.is-on { animation: tip 1.8s var(--ease) forwards; }
@keyframes tip { 0% { opacity: 0; transform: translateY(6px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-miss .spot-room { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.spot-foot { position: absolute; left: var(--edge); bottom: calc(var(--hud-b) + 6vh); z-index: 3; display: grid; gap: 14px; justify-items: start; max-width: min(30ch, 28vw); }
.spot-msg { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--serif); }
.shot-spot .credit { color: var(--ink-3); text-shadow: none; }

@media (max-width: 760px) {
  .speed { display: none; }
  .cut-btn { padding: 8px 12px; font-size: 0; }
  .cut-btn::before { content: 'Cut'; font-size: 10px; }
  .cut-btn b { display: none; }
  .shot-open .open-big { top: 22vh; }
  .shot-open .open-sun { top: 28vh; }
  .shot-open .open-me { height: 68vh; }
  .choose-opts { grid-template-columns: minmax(0, 1fr); }
  .choose-opts button { padding: 13px 16px; font-size: 15px; }
  .lb figure { padding: 64px 12px 24px; }
  .lb-nav { top: auto; bottom: 18px; translate: none; }
  .spot-head { max-width: none; right: var(--edge); top: 64px; gap: 6px; }
  .spot-sub { font-size: 14px; }
  .spot-h { font-size: 34px; }
  .spot-count { top: auto; bottom: calc(var(--hud-b) + 14px); }
  .spot-count b { font-size: 44px; }
  .spot-stage { width: calc(100vw - 2 * var(--edge)); translate: -50% -38%; }
  .spot-foot { max-width: 62vw; bottom: calc(var(--hud-b) + 14px); gap: 10px; }
  .spot-msg { font-size: 18px; }
  .spot-tip { bottom: -40px; font-size: 24px; }
  .shot-spot .credit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .frame { transform: none; }
  .pp-flash, .scrub { display: none; }
  .mk { animation: none; stroke-dashoffset: 0; }
}
