/* notquitefolk home v2 · combo (round 2). Base = option A "The trailer". Noir. Brand violet is exactly #9a5cff.
   Two layouts from one markup:
   - default (no JS, or prefers-reduced-motion): the composed still state, every scene stacked as a frame.
   - html.cine (JS + motion OK): one pinned stage, scenes on scroll, letterbox, grain, timecode.
   Act two (below the trailer) keeps the film's language: slug lines, title-card type, soft reveals. */

/* fonts.css points at /fonts/ (site root); in this folder the files live at /fonts/ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-normal-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }

:root {
  --v: #9a5cff;
  --v-glow: rgba(154, 92, 255, .55);
  --v-soft: rgba(154, 92, 255, .18);
  --black: #050407;
  --ink: #f4f1f8;
  --ink-2: rgba(244, 241, 248, .66);
  --ink-3: rgba(244, 241, 248, .40);
  --hair: rgba(244, 241, 248, .14);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --bar: clamp(56px, calc((100svh - 100vw / 2.2) / 2), 15svh);
  --bar-b: var(--bar);
  --g: clamp(16px, 4vw, 56px);
  --safe-h: calc(100lvh - var(--bar) - var(--bar-b));
  --soft: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 760px) { :root { --bar: 56px; --bar-b: 60px; } }

html { background: var(--black); }
body { background: var(--black); color: var(--ink); overflow-x: clip; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nqf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--black); font: 500 14px/1 var(--sans); border-radius: 6px; }
.nqf-skip:focus-visible { top: 12px; }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }
.nqf-trace { filter: drop-shadow(0 0 6px var(--v-glow)); }
.ds-marketing-nav__mark.nqf-trace, .ds-footer__mark.nqf-trace { block-size: 2rem; inline-size: 2rem; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-fine { display: none; } }

.mono-k { font: 500 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas--c { justify-content: center; }
.nqf-cta.ds-button-primary { background: var(--v); border-color: var(--v); color: #fff; box-shadow: none; }
.nqf-cta.ds-button-primary:hover { background: var(--v); filter: brightness(1.12); }
.nqf-meet.ds-button-secondary { background: rgba(5,4,7,.35); border-color: rgba(244,241,248,.35); color: var(--ink); backdrop-filter: blur(6px); }
.nqf-cta:focus-visible, .nqf-meet:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin-right: 7px; vertical-align: 0; flex: none; }
.dot--on { background: var(--v); border-color: var(--v); box-shadow: 0 0 0 3px var(--v-soft); }

/* ===================== the Ember Trace draw-in ===================== */
.trace-draw path, .trace-scroll path { stroke-dasharray: 1 1; }
.trace-draw .core, .trace-scroll .core { transform-box: fill-box; transform-origin: center; }
.cine .trace-draw path { stroke-dashoffset: 1; animation: nqf-draw calc(.9s - var(--hi, 0) * .3s) cubic-bezier(.7, 0, .2, 1) calc(.35s + var(--k) * .2s + var(--hi, 0) * .45s) forwards; }
.cine .trace-draw .core { opacity: 0; animation: nqf-ignite 1.2s ease-out 1.55s forwards; }
@keyframes nqf-draw { to { stroke-dashoffset: 0; } }
@keyframes nqf-ignite { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.6); } 100% { opacity: 1; transform: scale(1); } }
.cine .trace-scroll path { stroke-dashoffset: calc(1 - clamp(0, var(--draw, 1) * 1.7 - var(--k) * .11 - var(--hi, 0) * .1, 1)); }
.cine .trace-scroll .core { opacity: clamp(0, var(--draw, 1) * 4 - 3, 1); }

/* ===================== furniture: letterbox, HUD, grain ===================== */
.lb, .hud, .grain { display: none; }
.cine .lb { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.lb i { position: absolute; inset-inline: 0; background: #000; }
/* --lb (1 = full letterbox, 0 = retracted) is driven by scroll over the trailer's last stretch, not a timer */
.cine .lb i { transform: scaleY(var(--lb, 1)); }
.lb__t { top: 0; height: var(--bar); transform-origin: top; }
.lb__b { bottom: 0; height: var(--bar-b); transform-origin: bottom; }
.cine .grain { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none; z-index: 45; opacity: calc(.05 + .04 * var(--lb, 1)); mix-blend-mode: overlay; image-rendering: pixelated; }

.cine .hud { display: grid; position: fixed; inset-inline: 0; bottom: 0; height: var(--bar-b); z-index: 50; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: var(--g); font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); height: calc(44px + (var(--bar-b) - 44px) * var(--lb, 1)); background: rgba(5,4,7, calc(.82 * (1 - var(--lb, 1)))); border-top: 1px solid rgba(255,255,255, calc(.1 * (1 - var(--lb, 1)))); }
/* act two: the slate stays, slimmer, over the page */
.cine.past .hud { backdrop-filter: blur(10px); }
.cine #sound, .cine .hud__prog { opacity: var(--lb, 1); }
.cine.past #sound, .cine.past .hud__prog { visibility: hidden; }
.hud__prog { position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--hair); }
.hud__prog i { display: block; height: 100%; width: 100%; background: var(--v); transform-origin: left; transform: scaleX(var(--tp, 0)); }
.hud__tc { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.hud__tclabel { color: var(--ink-3); }
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v); }
@keyframes nqf-blink { 50% { opacity: .25; } }
.hud__sc { justify-self: center; color: var(--ink); white-space: nowrap; }
.hud__ctrl { justify-self: end; display: flex; gap: 6px; }
.hud__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; }
.cine .hud__btn { min-height: calc(30px + 6px * var(--lb, 1)); }
.hud__btn:hover { border-color: rgba(154,92,255,.7); }
.hud__btn:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
.hud__ico { width: 14px; height: 14px; display: inline-flex; }
.hud__ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#sound .w1, #sound .w2 { display: none; }
#sound[aria-pressed="true"] .w1, #sound[aria-pressed="true"] .w2 { display: inline; }
#sound[aria-pressed="true"] .x { display: none; }
#sound[aria-pressed="true"] { border-color: var(--v); box-shadow: 0 0 14px -2px var(--v-glow); }
@media (max-width: 760px) {
  .cine .hud { grid-template-columns: auto 1fr; gap: 8px; padding-inline: 16px; }
  .hud__sc { display: none; }
  .hud__tclabel { display: none; }
  .hud__btn { padding: 0 10px; min-height: 40px; }
  .hud__btn[href] .hud__txt { font-size: 0; }
  .hud__btn[href] .hud__txt::after { content: 'Skip'; font-size: 11.5px; }
}

/* nav: rides in the top letterbox bar */
.nqf-navwrap { position: relative; z-index: 60; background: #000; }
.cine .nqf-navwrap { position: fixed; inset: 0 0 auto 0; background: rgba(5,4,7, calc(.86 * (1 - var(--lb, 1)))); border-bottom: 1px solid rgba(255,255,255, calc(.1 * (1 - var(--lb, 1)))); }
.cine.past .nqf-navwrap { backdrop-filter: blur(10px); }
.cine:not(.past) .nqf-navwrap .ds-marketing-nav, .cine:not(.past) .nqf-navwrap .ds-marketing-nav__inner, .cine:not(.past) .nqf-navwrap .ds-marketing-nav__brand { border-color: transparent; box-shadow: none; }
.cine .nqf-navwrap .ds-marketing-nav, .cine .nqf-navwrap .ds-marketing-nav__inner, .cine .nqf-navwrap .ds-marketing-nav__brand { transition: border-color .6s, box-shadow .6s; }
.nqf-navwrap .ds-marketing-nav__cta[data-cta="outline"] { border-color: var(--v); color: var(--ink); }
.nqf-navwrap .ds-marketing-nav__cta:hover { background: var(--v-soft); }
@media (max-width: 760px) {
  .cine .nqf-navwrap .ds-marketing-nav__drawer { background: #000; }
  .nqf-navwrap .ds-marketing-nav__inner { flex-wrap: nowrap; }
  .nqf-navwrap .ds-marketing-nav__cta { font-size: 13px; padding-inline: 10px; min-height: 36px; }
}
@media (max-width: 420px) { .nqf-navwrap .ds-marketing-nav__wordmark { display: none; } }

/* ===================== the stage ===================== */
.trailer { position: relative; background: var(--black); }
.stage { position: relative; }
.layer { position: relative; overflow: hidden; background: var(--black); }
.safe { position: relative; }


.cine .trailer { height: var(--trailer-h, 1800vh); }
.cine .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.cine .layer { position: absolute; inset: 0; visibility: hidden; }
.cine .layer.on { visibility: visible; }
/* scene crossfade: --sx (0..1) eases the incoming layer in over the outgoing one across ~20vh of scroll */
.cine .layer { opacity: var(--sx, 1); }
.cine .safe { position: absolute; inset: var(--bar) 0 var(--bar-b) 0; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 20; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* soft beats: --o (0..1) from option.js. Opacity, blur to sharp and a small rise. */
.cine [data-range] { opacity: var(--o, 0); }
.cine [data-range]:is(.card, .beat, .open__line, .open__cue, .endtitle, .mark__reticle) { filter: blur(calc((1 - var(--o, 0)) * 9px)); translate: 0 calc((1 - var(--o, 0)) * 18px); }
.cine [data-range][data-off] { visibility: hidden; }

/* chapter cards: black ground holds, the words ease in and out, then the ground dissolves into the picture */
.chapter { display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; padding: 48px var(--g) 8px; }
.chapter__no { font: 500 12px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--v); }
.chapter__rule { width: 56px; height: 1px; background: var(--ink-3); }
.chapter__title { margin: 0; font: 200 clamp(40px, 7vw, 112px)/.95 var(--sans); letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.chapter__sub { margin: 0; font: 400 clamp(14px, 1.3vw, 18px)/1.4 var(--sans); color: var(--ink-2); }
.cine .chapter { position: absolute; inset: 0; z-index: 10; background: rgba(5, 4, 7, var(--cb, 1)); padding: 0 var(--g); opacity: 1; }
.cine .chapter > * { opacity: var(--o, 0); filter: blur(calc((1 - var(--o, 0)) * 10px)); translate: 0 calc((1 - var(--o, 0)) * 16px); }
.cine .chapter__title { letter-spacing: calc(-.02em + (1 - var(--o, 0)) * .12em); }

/* ---------- SC 01 cold open ---------- */
.layer[data-layer="open"] { display: grid; place-items: center; align-content: center; gap: 28px; min-height: 100svh; padding: 96px var(--g) 64px; text-align: center; background: var(--black); }
.open__mark svg { width: clamp(150px, 22vmin, 260px); height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(154,92,255,.7)) drop-shadow(0 0 40px rgba(154,92,255,.35)); }
.cards { display: grid; justify-items: center; }
.card { margin: 0; font-weight: 300; color: var(--ink); }
.card--title { font: 300 clamp(15px, 1.5vw, 20px)/1.5 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }
.card__studio { display: block; font-weight: 500; color: var(--ink); }
.card__presents { display: block; color: var(--ink-2); letter-spacing: .6em; font-size: .78em; margin-top: 6px; }
.card--beat { font: 200 clamp(40px, 7.4vw, 120px)/1 var(--sans); letter-spacing: -.03em; }
.open__line { margin: 0; font: 400 clamp(14px, 1.2vw, 17px)/1.5 var(--sans); color: var(--ink-2); }
.open__cue { display: none; }
.cine .layer[data-layer="open"] { position: absolute; padding: var(--bar) var(--g) var(--bar-b); min-height: 0; }
.cine .layer[data-layer="open"] .cards { grid-template-areas: 'c'; }
.cine .card { grid-area: c; align-self: center; }
.cine .card__in { display: block; animation: nqf-soft-in 1.6s var(--soft) 1.6s both; }
.cine .layer[data-layer="open"] .open__mark { transform: scale(calc(1 + var(--p, 0) * .9)); opacity: calc(1 - min(var(--p, 0) * 2.2, .8)); }
.cine .open__line > span { display: block; animation: nqf-soft-in 1.6s var(--soft) 2.4s both; }
.cine .open__cue { display: flex; position: absolute; left: 50%; bottom: calc(var(--bar-b) + 18px); transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.cine .open__cue > span { animation: nqf-soft-in 1.2s ease 3s both; }
.open__cue i { width: 1px; height: 34px; background: linear-gradient(var(--v), transparent); transform-origin: top; }
@keyframes nqf-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes nqf-soft-in { from { opacity: 0; filter: blur(8px); translate: 0 12px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }

/* ---------- SC 02 Oriel: framed 9:16, never cropped, over a dark blurred plate of herself ---------- */
.layer[data-layer="oriel"] { display: grid; justify-items: center; gap: 32px; padding: 48px var(--g) 64px; }
.plate { position: absolute; inset: 0; overflow: hidden; }
.plate img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(48px) brightness(.26) saturate(1.25); }
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,4,7,.7), rgba(5,4,7,.15) 60%, rgba(5,4,7,.5)); }
.oriel__frame { position: relative; width: min(100%, 420px); aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px rgba(244,241,248,.18), 0 40px 120px rgba(0,0,0,.75); background: #000; }
.oriel__vid { width: 100%; height: 100%; object-fit: contain; display: block; }
.frame-corners i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(244,241,248,.55); }
.frame-corners i:nth-child(1) { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.frame-corners i:nth-child(2) { right: -12px; top: -12px; border-right-width: 1px; border-top-width: 1px; }
.frame-corners i:nth-child(3) { left: -12px; bottom: -12px; border-left-width: 1px; border-bottom-width: 1px; }
.frame-corners i:nth-child(4) { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }
.frame-tag { position: absolute; left: 0; top: calc(100% + 16px); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.oriel__safe { position: relative; display: grid; gap: 28px; width: 100%; max-width: 760px; }
.beat { max-width: 640px; }
.slate { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.slate__k { color: var(--v); }
.oriel__name { margin: 0; font: 200 clamp(72px, 11vw, 190px)/.82 var(--sans); letter-spacing: -.05em; color: var(--ink); text-transform: none; }
.oriel__role { margin: 14px 0 0; font: 400 clamp(15px, 1.3vw, 19px)/1.4 var(--sans); color: var(--ink-2); }
.sub { margin: 0; }
.sub p { margin: 0; font: 300 clamp(28px, 3.6vw, 56px)/1.08 var(--sans); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.sub__by { margin: 16px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pitch { margin: 0 0 24px; font: 300 clamp(20px, 2vw, 28px)/1.3 var(--sans); color: var(--ink); text-wrap: pretty; max-width: 26ch; }
.pitch em { font-style: normal; color: #fff; border-bottom: 1px solid var(--v); }

.cine .layer[data-layer="oriel"] { --fh: calc(var(--safe-h) * .76); --fw: calc(var(--fh) * 9 / 16); --fx: 64vw; display: block; padding: 0; }
.cine .oriel__frame { position: absolute; width: auto; height: var(--fh); left: var(--fx); top: calc(var(--bar) + var(--safe-h) / 2); transform: translate(-50%, -50%) scale(calc(1 + var(--p, 0) * .04)); }
.cine .oriel__safe { position: absolute; display: block; max-width: none; width: auto; }
.cine .beat { position: absolute; left: var(--g); width: min(640px, calc(var(--fx) - var(--fw) / 2 - var(--g) - 64px)); top: 50%; transform: translateY(-50%); }
.cine .beat--quote .sub p { font-size: clamp(30px, 3.4vw, 56px); }
@media (max-width: 760px) {
  .cine .layer[data-layer="oriel"] { --fh: calc(var(--safe-h) * .56); --fx: 50vw; }
  .cine .oriel__frame { top: calc(var(--bar) + 18px + var(--fh) / 2); }
  .frame-tag { display: none; }
  .cine .beat { left: 16px; right: 16px; width: auto; top: auto; bottom: 18px; transform: none; max-width: none; }
  .cine .beat--name .oriel__name { font-size: 64px; }
  .cine .beat--name .slate { margin-bottom: 6px; }
  .cine .oriel__role { margin-top: 8px; }
  .cine .beat--quote .sub p { font-size: 27px; }
  .cine .beat--pitch .pitch { font-size: 17px; margin-bottom: 14px; max-width: none; }
  .cine .beat--pitch .ctas > * { width: 100%; }
  .cine .beat--pitch .ctas { gap: 8px; }
}
@media (max-width: 760px) and (max-height: 700px) { .cine .layer[data-layer="oriel"] { --fh: calc(var(--safe-h) * .48); } }

/* ---------- SC 03 the mark ---------- */
.layer[data-layer="mark"] { padding-bottom: 64px; }
.mark__zoom { position: relative; max-width: 520px; margin: 24px auto 0; aspect-ratio: 768/1376; overflow: hidden; }
.mark__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark__reticle { display: none; }
.mark__reveal { display: grid; gap: 32px; align-items: center; justify-items: center; padding: 48px var(--g) 0; max-width: 1100px; margin: 0 auto; }
.mark__big svg { width: clamp(180px, 30vmin, 380px); height: auto; overflow: visible; filter: drop-shadow(0 0 12px rgba(154,92,255,.8)) drop-shadow(0 0 60px rgba(154,92,255,.35)); }
.mark__text { max-width: 560px; }
.mark__h { margin: 12px 0 24px; font: 200 clamp(36px, 4.6vw, 72px)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-transform: none; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--hair); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.facts dt { font: 500 11.5px/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--ink); }
.swatch { display: inline-block; width: .8em; height: .8em; border-radius: 2px; background: var(--v); box-shadow: 0 0 10px var(--v); margin-right: .4em; vertical-align: -.05em; }
@media (min-width: 900px) { .mark__reveal { grid-template-columns: auto 1fr; justify-items: start; } }

.cine .layer[data-layer="mark"] { padding: 0; }
.cine .mark__zoom { position: absolute; inset: 0; max-width: none; margin: 0; aspect-ratio: auto; }
.cine .mark__img { position: absolute; left: 0; top: 0; width: var(--iw, 100%); height: auto; max-width: none; transform-origin: 0 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); filter: saturate(.9) contrast(1.05); }
.cine .mark__reticle { display: block; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 0; height: 0; z-index: 5; }
.mark__reticle i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; box-shadow: 0 0 0 1px rgba(154,92,255,.4), inset 0 0 40px rgba(154,92,255,.25); }
.mark__reticle i::before, .mark__reticle i::after { content: ''; position: absolute; background: rgba(255,255,255,.6); }
.mark__reticle i::before { left: 50%; top: -14px; width: 1px; height: 14px; }
.mark__reticle i::after { top: 50%; right: -14px; height: 1px; width: 14px; }
.mark__reticle span { position: absolute; left: 110px; top: -8px; white-space: nowrap; font: 500 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,.8); }
/* the reveal dissolves in over the cheek: its own black ground fades with --o */
.cine .mark__reveal { position: absolute; inset: 0; padding: var(--bar) max(var(--g), calc((100vw - 1200px) / 2)) var(--bar-b); margin: 0; max-width: none; background: var(--black); z-index: 6; align-content: center; justify-content: center; }
.cine .mark__text > * { opacity: clamp(0, var(--draw, 0) * 3 - 1, 1); }
@media (max-width: 899px) { .cine .mark__reveal { gap: 16px; } .cine .mark__big svg { width: 34vmin; } .cine .mark__h { font-size: 34px; margin: 8px 0 14px; } .cine .facts div { padding: 8px 0; } .cine .facts dd { font-size: 14.5px; } }
@media (max-width: 760px) { .mark__reticle i { left: -70px; top: -70px; width: 140px; height: 140px; } .mark__reticle span { left: -70px; top: 84px; } }

/* ---------- SC 04 montage ---------- */
.layer[data-layer="montage"] { padding-bottom: 64px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 32px var(--g) 0; max-width: 1280px; margin: 0 auto; }
.shot { margin: 0; position: relative; }
.shot__bg { display: none; }
.shot__frame { aspect-ratio: 9/16; overflow: hidden; border-radius: 4px; background: #111; }
.shot__vid { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__cap { display: grid; gap: 4px; padding-top: 10px; }
.shot__idx { font: 500 11px/1 var(--mono); letter-spacing: .18em; color: var(--v); }
.shot__name { font: 500 15px/1.2 var(--sans); color: var(--ink); }
.shot__alt { font: 400 13px/1.4 var(--sans); color: var(--ink-2); }
.shotlist { display: none; }
.cine .layer[data-layer="montage"] { padding: 0; }
.cine .shots { display: block; position: absolute; inset: 0; padding: 0; max-width: none; }
/* shots crossfade: --so = scroll mix x readiness (an incoming shot shows only once its video has a frame) */
.cine .shot { position: absolute; inset: 0; display: block; visibility: hidden; opacity: var(--so, 0); }
.cine .shot.vis { visibility: visible; }
.cine .shot__bg { display: block; position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px) brightness(.38) saturate(1.3); }
.cine .shot__frame { position: absolute; top: calc(var(--bar) + 2vh); bottom: calc(var(--bar-b) + 2vh); left: 50%; transform: translateX(-50%); aspect-ratio: 9/16; height: auto; border-radius: 2px; box-shadow: 0 30px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); }
.cine .shot__cap { position: absolute; left: var(--g); bottom: calc(var(--bar-b) + 4vh); max-width: calc(50vw - var(--safe-h) * .28 - var(--g) - 40px); padding: 0; gap: 10px; }
/* captions hand over inside the crossfade: the outgoing one leaves in its first half, the incoming one arrives in its second */
.cine .shot__cap { opacity: var(--co, 0); filter: blur(calc((1 - var(--co, 0)) * 8px)); translate: 0 calc((1 - var(--co, 0)) * 12px); }
.cine .shot__idx { font-size: 12px; }
.cine .shot__name { font: 200 clamp(44px, 5.6vw, 96px)/.92 var(--sans); letter-spacing: -.04em; }
.cine .shot__alt { font-size: 16px; max-width: 26ch; }
.cine .shotlist { display: block; position: absolute; right: var(--g); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); z-index: 3; }
.shotlist li { display: flex; gap: 12px; padding: 7px 0 7px 14px; border-left: 1px solid var(--hair); transition: color .3s, border-color .3s; }
.shotlist li span { color: var(--ink-3); }
.shotlist li.on { color: var(--ink); border-left-color: var(--v); }
.shotlist li.on span { color: var(--v); }
.shotlist li.done { color: var(--ink-2); }
@media (max-width: 1100px) { .cine .shotlist { display: none; } }
@media (max-width: 760px) {
  .cine .shot__frame { top: calc(var(--bar) + 12px); bottom: auto; height: calc(100% - var(--bar) - var(--bar-b) - 118px); }
  .cine .shot__cap { left: 16px; right: 16px; max-width: none; bottom: calc(var(--bar-b) + 14px); gap: 6px; }
  .cine .shot__name { font-size: 34px; }
  .cine .shot__alt { font-size: 14px; max-width: none; }
  .cine .shot__idx { position: absolute; right: 0; top: 4px; }
}

/* ---------- SC 05 in casting: the type reel + the wall ---------- */
.layer[data-layer="casting"] { padding-bottom: 64px; }
/* a face: sleeping B&W; awake = colour, the cheek mark glows, the slate flips to "In casting" */
.face { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; height: 100%; overflow: hidden; container-type: size; cursor: pointer; background: #111015; -webkit-tap-highlight-color: transparent; border-radius: 3px; }
.face:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
.face__plane { position: absolute; left: 50%; top: 32%; width: max(100cqw, 100cqh * .558); aspect-ratio: 558 / 1000; translate: -50% -32%; transition: scale 1s var(--soft); }
.face__plane img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.42) contrast(1.15); transition: filter .8s var(--soft); }
.face__glow { position: absolute; left: var(--mx); top: var(--my); width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0; scale: .4; background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(154,92,255,.75) 22%, rgba(154,92,255,.22) 55%, transparent 100%); transition: opacity .6s var(--soft), scale .9s var(--soft); }
.face[data-awake] .face__plane img, .face--star .face__plane img { filter: none; }
.face[data-awake] .face__plane { scale: 1.035; }
.face[data-awake] .face__glow { opacity: 1; scale: 1; animation: nqf-pulse 2.4s ease-in-out .6s infinite; }
.face[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--v), inset 0 0 28px rgba(154,92,255,.35); }
@keyframes nqf-pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.18; opacity: .75; } }
.flip { display: inline-grid; perspective: 500px; }
.flip__card { display: grid; transform-style: preserve-3d; transition: transform .6s var(--soft); }
.flip__f, .flip__b { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid rgba(244,241,248,.25); border-radius: 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); background: rgba(5,4,7,.55); }
.flip__b { transform: rotateX(180deg); color: var(--ink); border-color: rgba(154,92,255,.75); background: rgba(8,7,10,.82); box-shadow: 0 0 16px rgba(154,92,255,.3); }
.flip__b .dot { color: var(--v); width: 6px; height: 6px; margin-right: 6px; }
.face[data-awake] .flip__card { transform: rotateX(180deg); }

/* the reel: large type-first cards */
.reel { padding: 32px var(--g) 0; }
.reel__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.reel__h { margin: 8px 0 0; font: 200 clamp(32px, 3.6vw, 56px)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-transform: none; }
.reel__h span { color: var(--ink-3); }
.reel__nav { display: flex; align-items: center; gap: 8px; }
.reel__count { font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--ink-3); margin-right: 10px; font-variant-numeric: tabular-nums; }
.reel__count b { color: var(--ink); font-weight: 500; }
.reel__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(255,255,255,.03); color: var(--ink); cursor: pointer; }
.reel__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reel__btn:hover { border-color: var(--v); }
.reel__win { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel__win::-webkit-scrollbar { display: none; }
.reel__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.reelcard { flex: 0 0 var(--cw, calc((100vw - 2 * var(--g) - 48px) / 4)); height: min(62svh, 560px); scroll-snap-align: start; }
.face__top { position: absolute; z-index: 2; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.face__no { font: 500 13px/1 var(--mono); letter-spacing: .16em; color: var(--ink); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.face--star .face__no { color: var(--v); }
.pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(154,92,255,.75); border-radius: 2px; background: rgba(8,7,10,.7); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.face__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 56px 16px 16px; background: linear-gradient(transparent, rgba(5,4,7,.88) 55%); }
.face__type { font: 300 clamp(22px, 1.9vw, 30px)/1.08 var(--sans); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.face__set { font: 400 13.5px/1.35 var(--sans); color: var(--ink-2); }
.face--star { box-shadow: 0 0 0 1px rgba(154,92,255,.6); }
.reel__hint { margin: 14px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .reelcard { --cw: calc((100vw - 32px - 16px) / 1.3); height: min(58svh, 520px); } .reel__h { font-size: 30px; } }

/* the wall: 27 faces round Oriel */
.wall { padding: 48px var(--g) 0; }
.wall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; max-width: 1100px; margin: 0 auto 14px; }
.wall__h { margin: 0; font: 200 clamp(24px, 2.4vw, 36px)/1.1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.wall__grid { --wh: min(560px, 70svh); list-style: none; margin: 0 auto; padding: 3px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 3px; background: #000; height: var(--wh); width: min(100%, calc(var(--wh) * 27 / 16)); }
.wcell { position: relative; min-width: 0; min-height: 0; }
.wcell--oriel { grid-column: 4 / span 3; grid-row: 1 / span 3; }
.worl { position: absolute; inset: 0; display: block; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(154,92,255,.6); }
.worl img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.worl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5,4,7,.85)); }
.worl__slate { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: grid; gap: 4px; }
.worl__k { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; }
.worl__h { font: 200 clamp(28px, 3vw, 48px)/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.wslate { position: absolute; z-index: 2; left: 5px; bottom: 5px; }
.face--wall .flip__f, .face--wall .flip__b { font-size: 9.5px; padding: 3px 5px; letter-spacing: .08em; }
.wall__grid:has(.face[data-awake]) .face:not([data-awake]) img { filter: grayscale(1) brightness(.26) contrast(1.15); }
.wall__readout { margin: 12px auto 0; max-width: 1100px; text-align: center; font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); min-height: 1.4em; }
@media (max-width: 760px) {
  .wall__grid { --wh: auto; width: 100%; height: auto; aspect-ratio: 3 / 4; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 2px; }
  .wcell--oriel { grid-column: 1 / span 3; grid-row: 1 / span 3; }
  .wslate { left: 2px; bottom: 2px; }
  .face--wall .flip__f, .face--wall .flip__b { font-size: 8px; padding: 2px 3px; letter-spacing: .02em; }
  .face--wall .flip__b .dot { display: none; }
  .worl__slate { left: 8px; bottom: 8px; }
  .worl__h { font-size: 26px; }
}

.cine .layer[data-layer="casting"] { padding: 0; }
.cine .reel, .cine .wall { position: absolute; inset: var(--bar) 0 var(--bar-b); display: flex; flex-direction: column; padding: clamp(14px, 3vh, 32px) var(--g) clamp(10px, 2vh, 20px); }
.cine .reel__win { flex: 1; min-height: 0; overflow: visible; scroll-snap-type: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.cine .reel__win.dragging { cursor: grabbing; }
.cine .reel__track { height: 100%; transform: translate3d(var(--rx, 0px), 0, 0); will-change: transform; }
.cine .reelcard { height: 100%; }
.cine .reelcard img { -webkit-user-drag: none; pointer-events: none; }
.cine .wall { justify-content: center; }
.cine .wall__grid { --wh: calc(var(--safe-h) - 150px); }
@media (max-width: 760px) {
  .cine .reel__head { margin-bottom: 12px; }
  .cine .reel__title .mono-k { font-size: 10.5px; }
  .cine .wall__grid { --wh: auto; height: auto; width: min(100%, calc((var(--safe-h) - 130px) * 3 / 4)); aspect-ratio: 3 / 4; }
}

/* ---------- SC 06 end title ---------- */
.layer[data-layer="title"] { display: grid; place-items: center; min-height: 70svh; padding: 64px var(--g); text-align: center; background: var(--black); }
.endtitle { display: grid; justify-items: center; gap: 14px; }
.endtitle__mark { width: clamp(64px, 9vmin, 104px); height: auto; filter: drop-shadow(0 0 12px var(--v-glow)) drop-shadow(0 0 40px rgba(154,92,255,.3)); }
.endtitle__k { margin: 0; font: 300 clamp(13px, 1.2vw, 16px)/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-2); margin-right: -.5em; }
.endtitle__h { margin: 0; font: 200 clamp(84px, 13vw, 220px)/.85 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.endtitle__sub { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.billing { margin: 22px 0 0; max-width: 820px; font: 400 10.5px/1.7 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); transform: scaleY(1.35); }
.cine .layer[data-layer="title"] { position: absolute; padding: var(--bar) var(--g) var(--bar-b); min-height: 0; }

/* ===================== ACT TWO: the film's second act ===================== */
.act { position: relative; padding: clamp(72px, 13vh, 150px) var(--g); background: var(--black); overflow: hidden; }
.act > * { position: relative; }
.slug { display: flex; align-items: center; gap: 16px; max-width: 1320px; margin: 0 auto clamp(36px, 6vh, 64px); font: 500 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.slug__no { color: var(--v); flex: none; }
@media (max-width: 760px) { .slug { font-size: 10.5px; letter-spacing: .16em; gap: 10px; } .slug__t { min-width: 0; } }
.slug__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), transparent); }
.act__h { margin: 0; font: 200 clamp(44px, 6vw, 100px)/.95 var(--sans); letter-spacing: -.035em; color: var(--ink); text-transform: none; text-wrap: balance; }
.act__h span { color: var(--ink-3); }
.act__h--c { text-align: center; }
.act__lead { margin: 24px 0 0; max-width: 34ch; font: 300 clamp(18px, 1.5vw, 22px)/1.45 var(--sans); color: var(--ink-2); }
.act__aside { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); max-width: 34ch; font: 500 11.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.js .reveal { opacity: 0; filter: blur(10px); translate: 0 26px; transition: opacity 1s var(--soft), filter 1s var(--soft), translate 1.1s var(--soft); }
.js .reveal.in { opacity: 1; filter: blur(0); translate: 0 0; }
.rulelines .reveal:nth-child(2) { transition-delay: .12s; }
.rulelines .reveal:nth-child(3) { transition-delay: .24s; }

/* SC 07 control room */
.act__studio { display: grid; gap: 40px; max-width: 1440px; margin: 0 auto; align-items: center; }
@media (min-width: 1180px) { .act__studio { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } .act__console { width: min(880px, calc(100vw - 2 * var(--g) - 420px)); } }

/* SC 08 formats as a film strip */
.filmstrip { position: relative; margin: clamp(36px, 6vh, 64px) calc(-1 * var(--g)) 0; padding: 40px 0; background: #000; }
.filmstrip::before, .filmstrip::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(244,241,248,.13) 12px 26px); }
.filmstrip::before { top: 14px; }
.filmstrip::after { bottom: 14px; }
.filmstrip__frames { list-style: none; margin: 0 auto; padding: 0 var(--g); max-width: calc(1320px + 2 * var(--g)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.fframe__pic { aspect-ratio: 9 / 16; overflow: hidden; background: #111; box-shadow: 0 0 0 1px var(--hair); }
.fframe__pic video, .fframe__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fframe__pic--tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #000; }
.fframe__no { margin: 16px 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .2em; color: var(--v); }
.fframe__h { margin: 0 0 8px; font: 300 clamp(20px, 1.6vw, 24px)/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.fframe__p { margin: 0; font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 1000px) {
  .filmstrip__frames { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .filmstrip__frames::-webkit-scrollbar { display: none; }
  .fframe { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
}

/* SC 09 the rules, as a title card */
.rulescard { max-width: 980px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 28px; }
.rulescard__mark { width: 72px; height: 72px; filter: drop-shadow(0 0 12px var(--v-glow)); }
.rulelines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; counter-reset: r; width: 100%; }
.rulelines li { counter-increment: r; padding: 22px 0; border-top: 1px solid var(--hair); font: 300 clamp(20px, 2.2vw, 30px)/1.3 var(--sans); color: var(--ink); text-wrap: balance; }
.rulelines li::before { content: '0' counter(r); display: block; margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .2em; color: var(--v); }
.rulelines li:last-child { border-bottom: 1px solid var(--hair); }
.nqf-strip { margin: 0; justify-content: center; }

/* SC 10 end card */
.act--book { min-height: 90svh; display: grid; align-content: center; background: var(--black); }
.end { display: grid; justify-items: center; gap: 20px; text-align: center; max-width: 1000px; margin: 0 auto; }
.end__mark { width: clamp(64px, 9vmin, 104px); height: auto; filter: drop-shadow(0 0 12px var(--v-glow)) drop-shadow(0 0 40px rgba(154,92,255,.3)); }
.end__h { margin: 0; font: 200 clamp(44px, 7vw, 116px)/.95 var(--sans); letter-spacing: -.04em; color: var(--ink); text-transform: none; text-wrap: balance; }
.end__steps { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; font: 400 14px/1.3 var(--sans); color: var(--ink-2); }
.end__steps li { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-left: 1px solid var(--hair); }
.end__steps li:first-child { border-left: 0; }
.end__steps span { font: 500 11px/1 var(--mono); color: var(--v); letter-spacing: .14em; }
@media (max-width: 760px) {
  .end__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left; }
  .end__steps li { border-left: 0; padding: 0; }
  .ctas--c .ds-button-primary, .ctas--c .ds-button-secondary { width: 100%; }
  .act__h { font-size: clamp(40px, 12vw, 56px); }
}
.cine .ds-sec-l-foot-01-sitemap-footer { padding-bottom: 44px; }

/* ===================== reduced motion: the composed still ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ===================== control room (ported from option C · studio; st- namespace) ===================== */
.st-mon-label {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-family: var(--st-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ds-ink-muted);
}
/* ---------- the console ---------- */
.st-console {
  position: relative; min-width: 0;
  background: linear-gradient(180deg, var(--st-panel-2), var(--st-panel) 40%, var(--st-black));
  border: 1px solid var(--st-line-2); border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 6px rgba(255, 255, 255, .015);
  padding: 0 14px 14px;
  outline: none;
}
.st-console::after {        /* screw heads in the corners: it is hardware */
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #2b2933 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 0, #2b2933 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 0 100%, #2b2933 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 100%, #2b2933 2.4px, transparent 3px) 0 0 / 100% 100% no-repeat;
}

.st-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  min-height: 50px; padding: 8px 6px; margin-bottom: 12px;
  border-bottom: 1px solid var(--st-line);
  font-family: var(--st-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ink-muted);
}
.st-bar__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-bar__mark { width: 20px; height: 20px; flex: none; }
.st-bar__studio { color: var(--ds-ink); font-weight: 600; }
.st-bar__take { color: var(--ds-ink-faint); }
.st-bar__rec, .st-bar__tc { display: flex; align-items: center; gap: 10px; }
.st-bar__k { color: var(--ds-ink-faint); }
.st-rec { display: inline-flex; align-items: center; gap: 7px; color: #ff8d8d; font-weight: 600; }
.st-rec i { width: 9px; height: 9px; border-radius: 50%; background: #5b2a2a; }
.st-console.is-playing .st-rec i { background: var(--st-red); box-shadow: 0 0 10px var(--st-red); animation: st-blink 1.2s steps(1) infinite; }
@keyframes st-blink { 50% { opacity: .25; } }
.st-tc { font-variant-numeric: tabular-nums; color: var(--ds-ink-2); letter-spacing: .06em; }
.st-tc--main { font-size: 15px; color: #fff; font-weight: 500; text-shadow: 0 0 12px rgba(255, 255, 255, .25); }
.st-bar__ctl { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.st-director { --_track: #17151d; text-transform: none; letter-spacing: 0; }
.st-director .ds-segmented-control__item { font-family: var(--st-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.st-director .ds-segmented-control__item[data-mode="manual"][aria-checked="true"] { color: #ffd38a; }

.st-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 34px; height: 32px; padding: 0 9px; border-radius: 7px;
  background: #17151d; color: var(--ds-ink-2); border: 1px solid var(--st-line-2);
  font: 500 11px/1 var(--st-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.st-ctl:hover { background: #201d28; color: #fff; }
.st-ctl__i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-ctl__i--play { fill: currentColor; stroke: none; }
.st-ctl[aria-pressed="true"] .st-ctl__i--play, .st-ctl[aria-pressed="false"] .st-ctl__i--pause,
.st-sound[aria-pressed="true"] .st-ctl__i--off, .st-sound[aria-pressed="false"] .st-ctl__i--on { display: none; }
.st-sound[aria-pressed="true"] { color: #fff; border-color: rgba(154, 92, 255, .7); box-shadow: 0 0 0 1px rgba(154, 92, 255, .35), 0 0 16px rgba(154, 92, 255, .25); }

/* desk: program on the left, cameras + autocue + meters on the right */
.st-desk {
  --pgm-h: clamp(380px, calc(100svh - 330px), 610px);
  display: grid; gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.st-pgm { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.st-pgm__label { color: #ff8d8d; }
.st-pgm__tally { width: 8px; height: 8px; border-radius: 50%; background: #5b2a2a; }
.st-console.is-playing .st-pgm__tally { background: var(--st-red); box-shadow: 0 0 10px var(--st-red); }
.st-pgm__cam { margin-left: auto; color: var(--ds-ink-2); }
.st-pgm__screen {
  position: relative; overflow: hidden;
  height: var(--pgm-h); aspect-ratio: 464 / 832;
  background: var(--st-bezel); border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 0 0 4px #15131a, 0 0 0 5px rgba(255, 59, 59, .55), 0 0 40px -6px rgba(255, 59, 59, .35);
}
.st-src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: var(--st-bezel); }
.st-src.is-live { z-index: 2; }
.st-safe { position: absolute; inset: 6% 8%; z-index: 3; border: 1px dashed rgba(255, 255, 255, .13); border-radius: 2px; pointer-events: none; }
.st-safe::before, .st-safe::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, .22); }
.st-safe::before { width: 18px; height: 1px; margin-left: -9px; }
.st-safe::after { width: 1px; height: 18px; margin-top: -9px; }
.st-cutflash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #fff; opacity: 0; }
.st-cutflash.is-on { animation: st-flash .22s ease-out; }
@keyframes st-flash { 0% { opacity: .18; } 100% { opacity: 0; } }
.st-caption {
  position: absolute; z-index: 5; left: 7%; right: 7%; bottom: 9%; margin: 0;
  text-align: center; font-weight: 700; font-size: clamp(15px, 1.45vw, 21px); line-height: 1.2; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
  text-wrap: balance; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center;
}
.st-caption__in { display: block; }
.st-caption .st-w { opacity: 0; }
.st-caption .st-w.is-said, .st-caption .st-w.is-now { opacity: 1; }
.st-caption .st-w.is-now { color: var(--st-violet); text-shadow: 0 0 14px rgba(154, 92, 255, .7), 0 2px 8px rgba(0, 0, 0, .9); }

.st-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; height: calc(var(--pgm-h) + 24px); }
.st-cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-cam {
  position: relative; display: block; padding: 0; margin: 0; cursor: pointer; text-align: left;
  aspect-ratio: 464 / 832; max-height: 330px; width: 100%;
  background: var(--st-bezel); color: #fff; border-radius: 6px; overflow: hidden;
  border: 0; box-shadow: 0 0 0 1px #000, 0 0 0 3px #1a1820;
  transition: box-shadow .15s ease, transform .15s ease;
}
.st-cam__screen { position: absolute; inset: 0; background: center / cover no-repeat; }
.st-cam[data-cam="1"] .st-cam__screen { background-image: url('/media/video/oriel-angle-1.jpg'); }
.st-cam[data-cam="2"] .st-cam__screen { background-image: url('/media/video/oriel-angle-2.jpg'); }
.st-cam[data-cam="3"] .st-cam__screen { background-image: url('/media/video/oriel-angle-3.jpg'); }
.st-cam__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-cam::after { /* monitor glass + scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 22%, transparent 74%, rgba(0, 0, 0, .7));
}
.st-cam__top, .st-cam__bot { position: absolute; left: 8px; right: 8px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--st-mono); text-transform: uppercase; letter-spacing: .12em; }
.st-cam__top { top: 7px; font-size: 10.5px; font-weight: 600; }
.st-cam__bot { bottom: 7px; font-size: 10px; color: rgba(255, 255, 255, .78); }
.st-cam__tally { width: 9px; height: 9px; border-radius: 50%; background: #2a2730; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.st-cam__key { font: inherit; font-size: 9.5px; padding: 1px 5px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.st-cam__state { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 10px/1 var(--st-mono); letter-spacing: .2em; padding: 5px 7px; border-radius: 3px; opacity: 0; }
.st-cam:hover { box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(255, 255, 255, .5); }
.st-cam:hover .st-cam__state:empty::before { content: "Take"; }
.st-cam:hover .st-cam__state { opacity: 1; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .45); }
.st-cam[aria-pressed="true"] { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--st-red), 0 0 22px -2px rgba(255, 59, 59, .55); }
.st-cam[aria-pressed="true"] .st-cam__tally { background: var(--st-red); box-shadow: 0 0 10px var(--st-red), 0 0 2px #fff inset; }
.st-cam[aria-pressed="true"]:hover .st-cam__state { opacity: 0; }
.st-cam[data-pvw]:not([aria-pressed="true"]) { box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(52, 197, 127, .85); }
.st-cam[data-pvw]:not([aria-pressed="true"]) .st-cam__tally { background: var(--st-green); box-shadow: 0 0 8px var(--st-green); }
.st-cam.is-taken { transform: scale(.97); }

.st-deck { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.st-cue, .st-meters { background: #08070b; border: 1px solid var(--st-line); border-radius: 8px; padding: 10px 12px; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.st-cue__hint { color: var(--ds-ink-faint); letter-spacing: .06em; text-transform: none; font-size: 11px; margin-left: auto; }
.st-cue__window {
  position: relative; flex: 1; min-height: 96px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}
.st-cue__window::before { /* the cue arrow */
  content: ""; position: absolute; left: 0; top: var(--cue-y, 30%); z-index: 2; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--st-violet);
  transform: translateY(4px); filter: drop-shadow(0 0 6px rgba(154, 92, 255, .9));
}
.st-cue__roll { position: absolute; left: 0; right: 0; top: 0; padding-left: 20px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.st-cue__line { margin: 0 0 12px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.28; font-weight: 600; letter-spacing: -.012em; color: var(--ds-ink-faint); transition: color .3s; }
.st-cue__line.is-now { color: rgba(255, 255, 255, .5); }
.st-cue__line .st-w { transition: color .15s, text-shadow .15s; }
.st-cue__line .st-w.is-said { color: #fff; }
.st-cue__line .st-w.is-now { color: var(--st-violet); text-shadow: 0 0 14px rgba(154, 92, 255, .6); }
.st-console:not(.is-started) .st-cue__line { color: var(--ds-ink-2); }

.st-meters { width: 84px; align-items: stretch; }
.st-meters__pair { flex: 1; min-height: 70px; display: grid; grid-template-columns: 12px 12px 1fr; gap: 4px; }
.st-meter {
  position: relative; overflow: hidden; border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #08070b 3px 4px),
    linear-gradient(0deg, #2fbf74 0%, #2fbf74 62%, #e9c046 62%, #e9c046 82%, #ff4d4d 82%);
}
.st-meter__cover { position: absolute; left: 0; right: 0; top: 0; height: 88%; background: rgba(12, 11, 16, .93); transition: height 60ms linear; }
.st-meter__peak { position: absolute; left: 0; right: 0; height: 2px; bottom: 10%; background: #fff; opacity: .7; }
.st-meters__scale { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; font: 9px/1 var(--st-mono); color: var(--ds-ink-faint); }
.st-meters__lr { margin: 0; display: grid; grid-template-columns: 12px 12px 1fr; gap: 4px; font: 9px/1 var(--st-mono); color: var(--ds-ink-faint); text-align: center; }

/* rundown */
.st-rundown { margin-top: 14px; }
.st-rundown__head { justify-content: space-between; margin-bottom: 7px; }
.st-rundown__meta { color: var(--ds-ink-faint); letter-spacing: .1em; }
.st-rundown__body { position: relative; }
.st-rundown__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.st-shotwrap { min-width: 0; flex: 1 1 0; }
.st-shotwrap:nth-child(1) { flex-grow: 487; } .st-shotwrap:nth-child(2) { flex-grow: 275; } .st-shotwrap:nth-child(3) { flex-grow: 114; }
.st-shotwrap:nth-child(4) { flex-grow: 112; } .st-shotwrap:nth-child(5) { flex-grow: 147; } .st-shotwrap:nth-child(6) { flex-grow: 281; }
.st-shot {
  width: 100%; height: 46px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 1px 7px; align-content: center;
  padding: 0 9px; text-align: left; cursor: pointer; overflow: hidden;
  background: #121118; color: var(--ds-ink-muted); border: 1px solid var(--st-line); border-radius: 4px;
  font-family: var(--st-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border-top: 3px solid var(--_cam);
}
.st-shot[data-cam="1"] { --_cam: #6f6a7d; } .st-shot[data-cam="2"] { --_cam: #a9a6b3; } .st-shot[data-cam="3"] { --_cam: #47434f; }
.st-shot__no { color: var(--ds-ink-faint); }
.st-shot__cam { color: var(--ds-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-shot__words { grid-column: 1 / -1; text-transform: none; letter-spacing: 0; font-family: var(--ds-font-sans, Inter, system-ui); font-size: 11.5px; color: var(--ds-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-shot:hover { background: #1a1822; color: #fff; }
.st-shot.is-now { background: #1d1a24; border-color: rgba(255, 255, 255, .2); border-top-color: var(--st-red); }
.st-shot.is-now .st-shot__cam, .st-shot.is-now .st-shot__words { color: #fff; }
.st-playhead { position: absolute; top: -6px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(154, 92, 255, .9); pointer-events: none; z-index: 2; }
.st-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--st-violet); }
@media (max-width: 720px) {
  .st-hero { padding-top: 6px; gap: 16px; }
  .st-title { font-size: clamp(32px, 9.2vw, 40px); }
  .st-lead { font-size: 15px; margin-top: 12px; }
  .st-lead__how { display: block; margin-top: 6px; }
  .st-console { padding: 0 8px 10px; border-radius: 12px; margin-inline: calc(-1 * min(8px, var(--st-gutter) / 2)); }
  .st-console::after { display: none; }
  .st-bar { gap: 6px 12px; padding: 8px 2px; margin-bottom: 8px; font-size: 10px; }
  .st-bar__take, .st-bar__studio, .st-bar__rec .st-tc { display: none; }
  .st-bar__id { gap: 6px; }
  .st-bar__ctl { margin-left: 0; width: 100%; justify-content: space-between; }
  .st-tc--main { font-size: 13px; }
  .st-desk {
    --pgm-h: auto;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px;
    grid-template-areas: "pgm cams" "deck deck"; align-items: stretch;
  }
  .st-pgm { grid-area: pgm; }
  .st-pgm__screen { height: auto; width: 100%; }
  .st-pgm__cam { font-size: 9.5px; }
  .st-side { display: contents; }
  .st-cams { grid-area: cams; grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 7px; padding-top: 22px; }
  .st-cam { aspect-ratio: auto; height: 100%; max-height: none; }
  .st-cam__top { left: 5px; right: 5px; top: 5px; font-size: 9px; letter-spacing: .06em; }
  .st-cam__bot { left: 5px; right: 5px; bottom: 5px; font-size: 8.5px; letter-spacing: .06em; }
  .st-cam__key { display: none; }
  .st-caption { font-size: 15px; bottom: 7%; }
  .st-deck { grid-area: deck; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .st-cue { padding: 8px 10px; }
  .st-cue__hint { display: none; }
  .st-cue__window { min-height: 84px; flex: none; height: 84px; }
  .st-cue__line { font-size: 16px; margin-bottom: 8px; }
  .st-meters { width: 64px; padding: 8px; }
  .st-meters__scale { display: none; }
  .st-meters__pair, .st-meters__lr { grid-template-columns: 1fr 1fr; }
  .st-rundown { margin-top: 10px; }
  .st-rundown__meta { display: none; }
  .st-shot { height: 38px; padding: 0 5px; grid-template-columns: 1fr; }
  .st-shot__cam, .st-shot__words { display: none; }
  .st-shot__no { color: var(--ds-ink-2); text-align: center; }
  .st-ctas .ds-button-primary { flex: 1 1 100%; justify-content: center; }
  .st-rules { gap: 8px 16px; }
}

/* glue: option C's tokens, scoped for the ported console */
:root {
  --st-violet: #9a5cff; --st-red: #ff3b3b; --st-green: #34c57f; --st-black: #060509; --st-panel: #0c0b10; --st-panel-2: #111017;
  --st-bezel: #020203; --st-line: rgba(255, 255, 255, .08); --st-line-2: rgba(255, 255, 255, .14);
  --st-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.act__console .st-desk { --pgm-h: clamp(380px, calc(100svh - 330px), 600px); }
@media (min-width: 721px) and (max-width: 1179px) { .act__console .st-desk { --pgm-h: clamp(420px, 62vw, 600px); } }
@media (max-width: 720px) { .act__console .st-desk { --pgm-h: auto; } }
@media (prefers-reduced-motion: reduce) { .st-console *, .st-console *::before, .st-console *::after { transition: none !important; animation: none !important; } }
