/* ==========================================================================
   Teleprompterz · V1 "Take One" · cinematic
   A film in ten scenes. True black, a purple key light that behaves like light,
   rec red as the only hot colour, Inter display, Instrument Serif accents,
   Courier Prime for every script moment.
   ========================================================================== */

/* Metric-matched fallbacks (system fonts via local(), no font files): measured against the Google Fonts
   faces so nothing reflows when the web fonts arrive. Liberation fonts are the metric twins of Arial,
   Times New Roman and Courier New. */
@font-face { font-family: "Inter Fallback"; font-weight: 400 600; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 108%; ascent-override: 89.8%; descent-override: 22.2%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); size-adjust: 104.4%; ascent-override: 92.9%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"); size-adjust: 87.7%; ascent-override: 112.9%; descent-override: 35.3%; line-gap-override: 0%; }
@font-face { font-family: "Courier Prime Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"); size-adjust: 100%; ascent-override: 78%; descent-override: 34%; line-gap-override: 0%; }
:root {
  --bg: #0a0a0b;
  --bg-2: #131315;
  --card: #19191d;
  --line: #28282d;
  --ink: #f5f5f6;
  --ink-2: #a0a0a8;          /* 7.4:1 on --bg */
  --ink-3: #8a8a93;          /* 5.6:1 on --bg, labels only */
  --primary: #975adb;
  --primary-deep: #7331bd;
  --primary-hi: #ba82f8;
  --rec: #ff3b30;
  --word: #facc15;
  --speak: #22c55e;
  --info: #3b82f6;

  --f-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --f-script: "Courier Prime", "Courier Prime Fallback", "Courier New", ui-monospace, monospace;

  --hdr: 72px;
  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.anchor { position: absolute; top: 0; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-200%); opacity: 0; transition: transform .2s var(--ease), opacity .2s;
}
.skip-link:focus { transform: none; opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn--primary {
  background: linear-gradient(180deg, #8448cb, var(--primary-deep)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px -10px rgba(115, 49, 189, .9);
}
.btn--primary:hover { background: linear-gradient(180deg, #9156d6, #7a37c6); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); }
.btn svg { flex: none; }

/* ---------- Border beam (port of Libraries.dev border-beam, MIT; rotate family, mono purple).
   The conic stops are baked into a square layer that only rotates (transform) inside a static
   ring mask, instead of repainting an @property angle every frame. ---------- */
.beam {
  --beam-r: 12px; --beam-w: 1.5px; --beam-dur: 2.8s; --beam-d: 400px;
  --beam-c1: #bb94e8; --beam-c2: #975adb; --beam-c3: #7331bd;
  position: relative; display: inline-flex; border-radius: var(--beam-r); isolation: isolate;
}
.beam > :not(.beam-fx):not(.beam-bloom) { position: relative; z-index: 1; border-radius: inherit; }
.beam-fx { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.beam-ring, .beam-bloom { position: absolute; border-radius: inherit; overflow: hidden; }
.beam-ring { inset: 0; padding: var(--beam-w); z-index: 3;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.beam-bloom { inset: -14px; z-index: 0; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent); }
.beam-ring > i, .beam-bloom > i {
  position: absolute; left: 50%; top: 50%; width: var(--beam-d); height: var(--beam-d); margin: calc(var(--beam-d) / -2) 0 0 calc(var(--beam-d) / -2);
  animation: beam-rot var(--beam-dur) linear infinite; will-change: transform;
}
.beam-ring > i {
  background:
    conic-gradient(transparent 0% 54%, rgba(255, 255, 255, .12) 58%, rgba(255, 255, 255, .7) 64%, rgba(255, 255, 255, .85) 66%, rgba(255, 255, 255, .5) 70%, transparent 76% 100%),
    conic-gradient(transparent 0% 36%, color-mix(in srgb, var(--beam-c3) 40%, transparent) 44%, var(--beam-c3) 52%, var(--beam-c2) 60%, var(--beam-c1) 66%, var(--beam-c2) 72%, transparent 82% 100%);
}
.beam-bloom > i { background: conic-gradient(transparent 0% 56%, color-mix(in srgb, var(--beam-c2) 70%, transparent) 64%, color-mix(in srgb, var(--beam-c1) 85%, transparent) 69%, transparent 82% 100%); filter: blur(10px); opacity: .7; }
@keyframes beam-rot { to { transform: rotate(360deg); } }
.beam[data-paused] .beam-ring > i, .beam[data-paused] .beam-bloom > i { animation-play-state: paused; }
.beam--cta { --beam-r: 14px; }
.beam--sm { --beam-r: 10px; --beam-dur: 3.2s; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: rgba(10, 10, 11, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: rgba(255, 255, 255, .06); }
.hdr-brand { flex: none; display: block; border-radius: 6px; }
.hdr-brand img { height: 28px; width: auto; }
.hdr-nav { display: flex; gap: 4px; margin: 0 auto; }
.hdr-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: #cfcfd5; text-decoration: none; transition: color .2s, background-color .2s; }
.hdr-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hdr-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-nav + .hdr-end { margin-left: 0; }
.hdr-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .12); color: #d8d8de; transition: background-color .2s, border-color .2s, color .2s;
}
.hdr-icon:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.hdr-icon[aria-pressed="true"] { border-color: color-mix(in srgb, var(--primary) 70%, transparent); color: var(--primary-hi); }
.eq { display: flex; align-items: center; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.35); transform-origin: center; }
.eq i:nth-child(2) { transform: scaleY(.75); } .eq i:nth-child(3) { transform: scaleY(.5); } .eq i:nth-child(4) { transform: scaleY(.85); }
.hdr-sound[data-sound-state="on"] .eq i { animation: eq 1.1s ease-in-out infinite alternate; }
.hdr-sound[data-sound-state="on"] .eq i:nth-child(2) { animation-delay: -.4s; } .hdr-sound[data-sound-state="on"] .eq i:nth-child(3) { animation-delay: -.7s; } .hdr-sound[data-sound-state="on"] .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.hdr-signin { padding: 8px 10px; font-size: 14.5px; font-weight: 500; color: #e4e4e8; text-decoration: none; border-radius: 8px; }
.hdr-signin:hover { color: #fff; }
.hdr-menu { display: none; }
.hdr-menu .m-close { display: none; }
.hdr-menu[aria-expanded="true"] .m-open { display: none; }
.hdr-menu[aria-expanded="true"] .m-close { display: block; }

.sheet {
  position: fixed; inset: var(--hdr) 0 0; z-index: 55; background: var(--bg); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sheet.is-open { opacity: 1; transform: none; }
.sheet-links { list-style: none; margin: 0; padding: 0; }
.sheet-links a { display: block; padding: 14px 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet-actions { display: grid; gap: 12px; }
html.sheet-open { overflow: hidden; }

@media (max-width: 1099px) {
  .hdr-nav, .hdr-signin, .hdr-cta { display: none; }
  .hdr-menu { display: grid; }
}
@media (max-width: 767px) {
  :root { --hdr: 60px; }
  .hdr { gap: 12px; }
  .hdr-brand img { height: 24px; }
  .hdr-icon { width: 36px; height: 36px; }
}

/* ==========================================================================
   Shared section furniture
   ========================================================================== */
.scene-no {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font: 700 13px/1 var(--f-script); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.scene-no span { padding: 6px 9px 5px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; color: var(--ink); letter-spacing: .14em; }
h2 {
  font: 700 clamp(40px, 5.6vw, 92px)/.98 var(--f-sans); letter-spacing: -.04em; text-wrap: balance;
}
h2 em, h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 em { color: #e9dcfb; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.sim-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px;
  font: 700 11px/1 var(--f-script); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  border: 1px dashed rgba(255, 255, 255, .22);
}
.grain {
  position: absolute; inset: -50%; z-index: 2; pointer-events: none;
  background: 0 0 / 256px 256px repeat;
  opacity: .055; mix-blend-mode: overlay;
  animation: grain 1s steps(8) infinite;
}
.has-grain .grain { background-image: url("../assets/variant-01-cinematic/motion/grain.webp"); }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-3%, 2%); } 25% { transform: translate(2%, -4%); } 37% { transform: translate(-1%, 5%); }
  50% { transform: translate(4%, 1%); } 62% { transform: translate(-4%, -2%); } 75% { transform: translate(1%, 3%); } 87% { transform: translate(3%, -3%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================================
   00 · Cold open
   ========================================================================== */
.cold {
  --lbb: clamp(220px, 27vh, 280px);
  position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1240px;
  overflow: hidden; isolation: isolate; background: #000;
}
.cold-feed { position: absolute; inset: 0; z-index: 0; background: #07060a url("../assets/shared/characters/creator-16x9.webp") 50% 30% / cover no-repeat; }
.cold-feed .feed, .cold-feed::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.cold-feed .feed { object-fit: cover; object-position: 50% 28%; transform: scaleX(-1); }
/* grade: the daylight clip is pulled down into the studio, with the purple key from the top left */
.cold-feed { filter: brightness(.6) contrast(1.1) saturate(.85); }
.cold-feed::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light;
  background: linear-gradient(118deg, rgba(151, 90, 219, .9) 0%, rgba(115, 49, 189, .45) 38%, rgba(10, 10, 11, .6) 75%); }
.cold-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 30%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3));
}
.cold > .grain { z-index: 2; }

.cold-frame { position: absolute; left: 0; right: 0; top: var(--hdr); bottom: var(--lbb); z-index: 3; }

/* viewfinder */
.vf { position: absolute; inset: clamp(14px, 2.2vw, 30px); pointer-events: none; font: 600 12.5px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.vf-c { position: absolute; width: clamp(18px, 2vw, 30px); height: clamp(18px, 2vw, 30px); border: 2px solid rgba(255, 255, 255, .85); }
.vf-c--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vf-c--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vf-c--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vf-c--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vf-safe { position: absolute; inset: 9% 7%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 2px; }
.vf-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: .3;
  background: linear-gradient(#fff, #fff) 50% 0 / 1px 100% no-repeat, linear-gradient(#fff, #fff) 0 50% / 100% 1px no-repeat; }
.vf-tl, .vf-tr { position: absolute; top: clamp(12px, 1.4vw, 18px); display: flex; align-items: center; gap: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vf-tl { left: clamp(14px, 1.8vw, 26px); }
.vf-tr { right: clamp(14px, 1.8vw, 26px); gap: 12px; color: rgba(255, 255, 255, .8); }
.vf-tl b { font-weight: 800; letter-spacing: .18em; min-width: 3.4em; }
.vf-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.vf.is-rec .vf-dot { background: var(--rec); border-color: var(--rec); box-shadow: 0 0 12px rgba(255, 59, 48, .8); animation: recblink 1.2s steps(2, jump-none) infinite; }
.vf.is-rec .vf-tl b { color: #ff6a61; }
.vf.is-paused .vf-tl b { color: var(--word); }
@keyframes recblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }
.vf-batt { width: 26px; height: 12px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 3px; position: relative; display: block; }
.vf-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .8); }
.vf-batt > i { position: absolute; inset: 1.5px; right: 6px; border-radius: 1px; background: rgba(255, 255, 255, .85); }
.vf-sim { position: absolute; right: clamp(14px, 1.8vw, 26px); bottom: clamp(12px, 1.4vw, 18px); font: 700 10.5px/1 var(--f-script); letter-spacing: .16em; color: rgba(255, 255, 255, .62); }

/* the app's mic status pill (glass-dark), scaled for the viewfinder */
.vf-pill {
  position: absolute; left: 50%; top: clamp(4px, .8vw, 10px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 999px;
  background: rgba(18, 18, 18, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1);
  font: 700 10.5px/1 var(--f-sans); letter-spacing: .1em; text-shadow: none;
}
.mp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .2s, box-shadow .2s; }
.mp-meter { display: flex; align-items: flex-end; gap: 2px; width: 48px; height: 12px; padding: 0 2px 2px; border-radius: 2px; background: rgba(255, 255, 255, .05); }
.mp-meter i { flex: 1; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .2); transform-origin: bottom; transform: scaleY(.1); transition: background-color .2s; }
.mp-text { color: rgba(255, 255, 255, .55); min-width: 6.6em; }
.mp-div { width: 1px; height: 12px; background: rgba(255, 255, 255, .12); }
.mp-mode { display: flex; align-items: center; gap: 5px; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .55); }
.is-speaking .mp-dot { background: var(--speak); box-shadow: 0 0 10px rgba(34, 197, 94, .6); }
.is-speaking .mp-meter i { background: var(--speak); }
.is-speaking .mp-text { color: var(--speak); }

/* the prompter across the frame */
.cs {
  --rl: .44;
  position: absolute; left: 0; right: 0; top: clamp(48px, 6vw, 72px); bottom: clamp(84px, 9vw, 104px); overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 80%, transparent); mask: linear-gradient(transparent, #000 16%, #000 80%, transparent);
}
.cs-track {
  width: min(24.5em, 92%); margin: 0 auto; text-align: center; white-space: nowrap; will-change: transform;
  font: 500 clamp(24px, 3.45vw, 58px)/1.34 var(--f-sans); letter-spacing: -.018em; color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}
.cs-track br { display: none; }
.cs-track br.bd { display: inline; }
.w { transition: color .3s, opacity .3s; }
.w.is-spoken { color: rgba(255, 255, 255, .4); }
.w.is-cur { color: var(--word); filter: drop-shadow(0 0 8px rgba(251, 176, 64, .5)); animation: vsPulse 1.4s ease-in-out infinite; }
.w.is-cur.is-off { opacity: .8; animation: vsPulseSoft 2.8s ease-in-out infinite; }
@keyframes vsPulse { 0%, 100% { text-shadow: 0 0 4px color-mix(in srgb, currentColor 30%, transparent); } 50% { text-shadow: 0 0 14px color-mix(in srgb, currentColor 65%, transparent); } }
@keyframes vsPulseSoft { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 6px color-mix(in srgb, currentColor 25%, transparent); } }
.cs-track { transition: opacity .4s ease; }
.cs-track.is-dim { opacity: .3; }
.cs-track.is-fading { opacity: 0; transition: opacity .45s ease; }

/* countdown (the app's: big italic numeral, "GET READY...", then "GO!") */
.count {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.count.is-on { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.count-n { font: italic 900 clamp(88px, 11vw, 150px)/1 var(--f-sans); color: #fff; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .5)); }
.count-n.tick { animation: tick .9s var(--ease) both; }
@keyframes tick { from { opacity: 0; transform: translateY(20px) scale(.9); } 30% { opacity: 1; transform: none; } to { opacity: 1; transform: none; } }
.count-sub { font: 500 clamp(14px, 1.3vw, 19px)/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* finish */
.fin {
  position: absolute; left: 50%; top: 46%; z-index: 4; display: grid; justify-items: center; gap: 16px;
  padding: 26px 30px; border-radius: 28px; background: rgba(18, 18, 18, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%) scale(.92); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.fin.is-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.fin b { font: italic 900 clamp(20px, 2vw, 26px)/1 var(--f-sans); letter-spacing: -.01em; text-transform: uppercase; }
.fin-btns { display: flex; gap: 10px; }
.fin-save, .fin-ghost { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; font: 700 13px/1 var(--f-sans); }
.fin-save { background: var(--primary); color: #fff; transition: transform .15s, box-shadow .2s; }
.fin-save.is-press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(151, 90, 219, .25); }
.fin-ghost { border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }

/* record dock (the app's floating control bar, #0B0B0C, r16) */
.dock {
  position: absolute; left: 50%; bottom: clamp(16px, 2.2vw, 28px); z-index: 3; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); height: 58px; padding: 0 12px 0 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: rgba(11, 11, 12, .9); border: 1px solid rgba(39, 39, 42, .9); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
}
.dock-prog { position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.dock-prog > i { display: block; height: 100%; background: linear-gradient(90deg, #9333ea, #3b82f6); transform-origin: left; transform: scaleX(0); }
.dock-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dock-c { display: flex; align-items: center; gap: 8px; }
.dock-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.chip-state { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 8px; border: 1px solid; font: 700 9.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chip-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-state--ready { background: rgba(59, 130, 246, .1); color: #60a5fa; border-color: rgba(59, 130, 246, .22); }
.chip-state--recording { background: rgba(239, 68, 68, .12); color: #ef4444; border-color: rgba(239, 68, 68, .25); }
.chip-state--recording i { animation: recblink 1.2s steps(2, jump-none) infinite; }
.chip-state--paused { background: rgba(234, 179, 8, .1); color: #eab308; border-color: rgba(234, 179, 8, .22); }
.dock-timer { font: 700 19px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.02em; color: #fff; }
.dock-left { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8a8a93; white-space: nowrap; }
.dk-btn, .dk-tog { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(24, 24, 27, .6); border: 1px solid rgba(39, 39, 42, .9); color: #a1a1aa; }
.dk-play { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #8a4fd0, #7331bd); box-shadow: 0 0 18px rgba(151, 90, 219, .45); transition: background .25s, color .25s, transform .15s; }
.dk-play svg { margin-left: 2px; }
.dk-play.is-on { background: #fff; color: #000; box-shadow: none; }
.dk-play.is-on svg { margin-left: 0; }
.dk-tog--mic { color: #4ade80; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .22); }
.dk-finish { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 9px; background: var(--primary); color: #fff; font: 700 11.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; transition: transform .15s, box-shadow .2s, opacity .2s; }
.dk-finish.is-dis { opacity: .4; }
.dk-finish.is-press { transform: scale(.93); box-shadow: 0 0 0 6px rgba(151, 90, 219, .28); }

/* letterbox */
.lb { position: absolute; left: 0; right: 0; z-index: 5; background: var(--bg); pointer-events: none; will-change: transform; }
.lb--top { top: 0; height: var(--hdr); transform-origin: top; }
.lb--bot { bottom: 0; height: var(--lbb); transform-origin: bottom; }
.lb--top::after, .lb--bot::before { content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; }
.lb--bot::before { bottom: 100%; background: linear-gradient(transparent, rgba(10, 10, 11, .55)); }

/* title card in the bottom bar */
.cold-title {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--lbb); z-index: 6;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--gutter); max-width: 1760px; margin: 0 auto;
}
.slate { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; font: 700 12px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.slate span + span::before { content: "/"; margin-right: 16px; color: #55555d; }
.slate span:first-child { color: #ff6a61; }
.cold h1 { font: 800 clamp(42px, 5.5vw, 92px)/.94 var(--f-sans); letter-spacing: -.045em; }
.cold h1 .h1-a, .cold h1 .h1-b { display: block; white-space: nowrap; }
.cold h1 .h1-b { font-size: 1.1em; line-height: .9; color: #efe6fb; }
.cold-sub { font-size: 17px; line-height: 1.5; color: #c4c4cb; margin-bottom: 20px; text-wrap: pretty; }
.cold-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* entrance: nothing in the title card starts hidden. The shutter is a clip-path mask over the footage
   and the viewfinder only (CSS, so it runs at first paint without waiting for JS). */
.cold-feed, .vf { animation: shutter 1.35s var(--ease-io) .1s both; }
.dock { animation: dockIn .9s var(--ease) .9s both; }
@keyframes shutter { from { clip-path: inset(41% 0 41% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dockIn { from { transform: translate(-50%, 18px); } to { transform: translate(-50%, 0); } }

@media (max-width: 1099px) {
  .cold { --lbb: 300px; }
  .cold-title { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .cold-sub { max-width: 40em; margin-bottom: 16px; }
}
@media (max-width: 767px) {
  .cold { --lbb: 236px; min-height: 600px; }
  .cold-feed { background-image: url("../assets/shared/characters/creator-9x16.webp"); }
  .cold-title { gap: 0; padding-bottom: 6px; }
  .cold-sub { display: none; }
  .slate { margin-bottom: 10px; font-size: 11px; }
  .slate span:nth-child(2) { display: none; }
  .cold h1 { font-size: clamp(38px, 11vw, 52px); margin-bottom: 18px; }
  .cold-ctas { gap: 8px; flex-wrap: nowrap; }
  .cold-ctas .btn--lg { height: 48px; padding: 0 16px; font-size: 15px; }
  .vf-pill { top: 40px; height: 30px; padding: 0 12px; }
  .vf-safe { inset: 12% 6%; }
  .cs { top: 84px; bottom: 82px; }
  .cs-track { width: 13.5em; max-width: 92%; }
  .cs-track br.bd { display: none; }
  .cs-track br.bm { display: inline; }
  .dock { height: 52px; grid-template-columns: 1fr auto auto; padding: 0 8px 0 12px; gap: 8px; }
  .dock-left, .dk-btn, .dk-tog--mic { display: none; }
  .dock-timer { font-size: 16px; }
  .dk-play { width: 40px; height: 40px; }
  .dk-finish { height: 34px; padding: 0 12px; }
}
@media (max-width: 380px) {
  .cold-ctas .btn--lg { padding: 0 13px; font-size: 14.5px; }
}

/* the inlined hero CSS hides the sections below until this file arrives */
.js main > section:not(.cold), .js .foot { display: block; }
/* sections below the fold skip rendering work until they approach the viewport */
main > section:not(.cold):not(#scene-write) { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
html { scrollbar-gutter: stable; }

/* ==========================================================================
   01 · Write: a screenplay page on black
   ========================================================================== */
.write { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(96px, 10vw, 150px); }
.write-light {
  position: absolute; z-index: 0; pointer-events: none; top: -18%; right: -16%; width: 1100px; height: 1100px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(115, 49, 189, .26), rgba(115, 49, 189, .08) 55%, transparent);
  transform: rotate(-18deg) scaleX(.62);
}
.write-head, .sp { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.write-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.write-head .scene-no { grid-column: 1 / -1; margin-bottom: 0; }
.write-head .lede { padding-bottom: .4em; }

.sp {
  --lab: 132px; --gap: clamp(28px, 3.4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 300px); column-gap: var(--gap);
  margin-top: clamp(40px, 4.5vw, 64px); padding-top: clamp(26px, 2.6vw, 36px); border-top: 1px solid rgba(255, 255, 255, .1);
}
.sp-slug {
  grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 clamp(26px, 3vw, 40px) calc(var(--lab) + var(--gap));
  font: 400 15px/1.3 var(--f-script); text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
}
.slug-f { display: inline-flex; gap: 10px; align-items: baseline; }
.slug-f b { font-weight: 700; color: var(--ink-3); letter-spacing: .14em; font-size: 12px; }
.slug-f > span { min-width: 1ch; }
.sp-body { grid-column: 1; display: grid; gap: clamp(22px, 2.4vw, 34px); }
.sp-fade { grid-column: 1; grid-row: 1; align-self: start; width: var(--lab); text-align: right; margin-top: 1px; font: 700 12.5px/1.3 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.sp-cut { justify-self: end; font: 700 clamp(13px, 1.1vw, 15px)/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sp-cut.is-on, .sp.is-static .sp-cut { opacity: 1; transform: none; }
.sp-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: var(--gap); }
.sp-lab {
  justify-self: end; align-self: start; margin-top: .9em; display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1 var(--f-script); letter-spacing: .24em; text-transform: uppercase; color: var(--primary-hi);
  opacity: .85; transition: opacity .5s var(--ease);
}
.sp-lab::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.sp-row.is-live .sp-lab { opacity: 1; }
.sp-par { font: 400 clamp(22px, 2.7vw, 42px)/1.42 var(--f-script); color: var(--ink); letter-spacing: -.005em; text-wrap: pretty; }
.sp-par .ch { opacity: .14; transition: opacity .5s ease; }
.sp-par .ch.on { transition-duration: .16s; }
.fill:has(.ch.on), .no-js .fill, .sp.is-static .fill { background-color: rgba(151, 90, 219, .15); }
.sp-par .ch.on { opacity: 1; }
.no-js .sp-par .ch, .sp.is-static .sp-par .ch { opacity: 1; }
.fill { background: transparent; transition: background-color .2s; color: #d3b3fb; border-radius: 4px; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.caret { position: relative; }
.caret::after {
  content: ""; position: absolute; left: .04em; top: .14em; width: .56em; height: 1.08em; background: var(--primary);
  box-shadow: 0 0 18px rgba(151, 90, 219, .7); animation: caret 1s steps(2, jump-none) infinite;
}
.caret.is-typing::after { animation: none; }
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.sp-notes { grid-column: 2; grid-row: 1 / span 2; align-self: start; display: grid; gap: 30px; padding-left: clamp(20px, 2vw, 32px); border-left: 1px solid rgba(255, 255, 255, .1); position: sticky; top: calc(var(--hdr) + 24px); }
.draft { display: flex; align-items: center; gap: 14px; }
.orb { width: 104px; height: 104px; flex: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(151, 90, 219, .22), transparent); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.draft.is-done .orb { opacity: .7; transform: scale(.86); }
.draft-t { display: grid; gap: 6px; }
.draft-t b { font: 700 16px/1.2 var(--f-script); letter-spacing: .02em; }
.draft-t span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.dots i { font-style: normal; animation: dots 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.draft.is-done .dots { display: none; }
.note-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font: 700 12px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.note-lab span { font: 700 10px/1 var(--f-sans); letter-spacing: .1em; padding: 5px 8px; border-radius: 999px; background: rgba(151, 90, 219, .16); color: var(--primary-hi); }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.src {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); font-size: 13.5px; font-weight: 500; color: #e4e4e8;
}
.src svg { color: var(--primary-hi); }
.src-foot { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.post-tags { font-size: 16px; line-height: 1.5; color: #e9e9ee; margin-bottom: 12px; }
.post .note-lab { flex-direction: column; align-items: flex-start; gap: 10px; }
.post-copy { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.post-copy:hover { background: rgba(255, 255, 255, .1); }
.post-copy.is-done { color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.sp-notes .sim-chip { justify-self: start; }

/* the notes arrive on the scene's clock */
.js .sp .srcs .note-lab, .js .sp .src, .js .sp .src-foot, .js .sp .post { opacity: 0; transform: translateX(26px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.js .sp .srcs.is-on .note-lab, .js .sp .srcs.is-on .src, .js .sp .srcs.is-on .src-foot, .js .sp .post.is-on { opacity: 1; transform: none; }
.js .sp .srcs.is-on .src:nth-child(1) { transition-delay: .12s; }
.js .sp .srcs.is-on .src:nth-child(2) { transition-delay: .24s; }
.js .sp .srcs.is-on .src:nth-child(3) { transition-delay: .36s; }
.js .sp .srcs.is-on .src-foot { transition-delay: .5s; }
.sp.is-out .srcs, .sp.is-out .post { opacity: 0 !important; transition: opacity .6s ease !important; }
.sp.is-static .srcs .note-lab, .sp.is-static .src, .sp.is-static .src-foot, .sp.is-static .post { opacity: 1; transform: none; }

@media (max-width: 1099px) {
  .write-head { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 1fr; }
  .sp-slug { margin-left: 0; }
  .sp-fade { display: none; }
  .sp-row { grid-template-columns: 1fr; row-gap: 10px; }
  .sp-lab { justify-self: start; margin-top: 0; }
  .sp-notes { grid-column: 1; grid-row: auto; position: static; margin-top: 44px; padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1);
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .draft { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sp-notes { grid-template-columns: 1fr; }
  .sp-slug { font-size: 13px; gap: 8px 18px; }
}

/* ==========================================================================
   02 · Read: the rig, lit like a product shot
   ========================================================================== */
.read { position: relative; overflow: hidden; padding: clamp(88px, 8vw, 128px) var(--gutter) clamp(96px, 10vw, 150px); text-align: center; background: #070708; }
.read::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 62%, rgba(115, 49, 189, .12), transparent 70%); }
.read-head { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; display: grid; justify-items: center; }
.read-head .lede { margin-top: 18px; max-width: 46em; }
.read-head .scene-no { margin-bottom: 18px; }

.rig-stage { position: relative; z-index: 1; margin: clamp(36px, 4vw, 56px) auto 0; width: min(800px, 100%); perspective: 1800px; perspective-origin: 50% 35%; }
.rig-key {
  position: absolute; z-index: 0; pointer-events: none; left: 50%; top: -40%; width: 1100px; height: 1100px; max-width: 160vw; margin-left: -700px;
  background: radial-gradient(closest-side, rgba(151, 90, 219, .36), rgba(115, 49, 189, .12) 50%, transparent 78%);
  transform: rotate(-34deg) scaleX(.4); mix-blend-mode: screen;
}
.rig {
  --rx: 2deg; --ry: 0deg; --lx: 0px; --ly: 0px;
  position: relative; z-index: 1; margin: 0; width: 100%; aspect-ratio: 16 / 11.4;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.rig::after { /* contact shadow */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -5%; height: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .9), transparent); filter: blur(10px);
}
/* the glass holder: a machined frame, lit from the top left */
.rig-frame {
  position: absolute; left: 0; right: 0; top: 0; bottom: 15%; border-radius: 24px; padding: clamp(10px, 1.6vw, 18px);
  background: linear-gradient(155deg, #4a4356 0%, #1d1b22 22%, #0d0d10 60%, #17151c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 1px 0 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .8),
    -30px -30px 80px -40px rgba(151, 90, 219, .55), 0 60px 120px -30px rgba(0, 0, 0, .9);
}
.rig-tunnel, .glass { position: absolute; inset: clamp(10px, 1.6vw, 18px); border-radius: 12px; overflow: hidden; }
.rig-tunnel {
  background: radial-gradient(60% 62% at 50% 50%, #191422 0%, #0b0a0f 48%, #020203 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), inset 0 30px 60px rgba(0, 0, 0, .9), inset 0 -30px 60px rgba(0, 0, 0, .9);
}
.rig-tunnel::before { /* the bellows: concentric steps receding to the lens */
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(ellipse 120% 100% at 50% 50%, transparent 0 34px, rgba(255, 255, 255, .025) 35px, transparent 37px);
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 75%); mask: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 75%);
}
.rig-lens { position: absolute; left: 50%; top: 50%; width: 40%; height: auto; aspect-ratio: 1; transform: translate(calc(-50% + var(--lx)), calc(-50% + var(--ly))); filter: brightness(1.45) drop-shadow(0 0 50px rgba(115, 49, 189, .45)); }
.glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.glass-tint { position: absolute; inset: 0; background:
  radial-gradient(80% 60% at 14% 0%, rgba(214, 184, 251, .16), transparent 60%),
  linear-gradient(0deg, rgba(186, 130, 248, .12), transparent 34%),
  linear-gradient(180deg, rgba(30, 22, 44, .16), rgba(8, 6, 12, .34)); }
.glass-text {
  position: absolute; inset: 0; padding: 0 8%; overflow: hidden;
  -webkit-mask: linear-gradient(transparent 0%, #000 20%, #000 80%, transparent 100%); mask: linear-gradient(transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.gt-flip { height: 100%; transition: transform .6s var(--ease); }
.gt-track {
  font: 400 clamp(17px, 2.35vw, 32px)/1.6 var(--f-sans); letter-spacing: -.01em; color: #fff;
  /* a reflection off two glass surfaces: the faint second image sits a hair lower */
  text-shadow: 0 0 16px rgba(255, 255, 255, .25), 0 3px 0 rgba(255, 255, 255, .07);
  will-change: transform;
}
.gt-track.is-fading { opacity: 0; transition: opacity .45s ease; }
.glass-line { position: absolute; left: 2%; right: 2%; top: 46%; height: 0; border-top: 1px dashed rgba(255, 255, 255, .2); }
.glass-line > i { position: absolute; top: -7px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.glass-line > i:first-child { left: -1px; border-left: 8px solid var(--primary); }
.glass-line > i:last-child { right: -1px; border-right: 8px solid var(--primary); }
.off-pill {
  position: absolute; left: 50%; top: calc(46% - 3.4em); z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(18, 18, 18, .85); border: 1px solid rgba(255, 255, 255, .12); font: 700 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); white-space: nowrap;
  transform: translate(-50%, 4px); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.off-pill i { width: 6px; height: 6px; border-radius: 50%; background: rgba(250, 204, 21, .75); }
.off-pill.is-on { opacity: 1; transform: translate(-50%, 0); }
.glass-sheen {
  position: absolute; top: -30%; bottom: -30%; left: -45%; width: 30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .05) 35%, rgba(214, 184, 251, .12) 50%, rgba(255, 255, 255, .04) 62%, transparent);
  transform: skewX(-14deg); animation: sheen 11s var(--ease-io) infinite;
}
@keyframes sheen { 0%, 12% { transform: translateX(0) skewX(-14deg); } 60%, 100% { transform: translateX(520%) skewX(-14deg); } }
.screw { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #77707f, #1a181e 70%); box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.screw--tl { left: 9px; top: 9px; } .screw--tr { right: 9px; top: 9px; } .screw--bl { left: 9px; bottom: 9px; } .screw--br { right: 9px; bottom: 9px; }

/* the monitor under the glass, lying flat; its light is what the glass reflects */
.rig-base { position: absolute; left: 7%; right: 7%; bottom: 0; height: 15%; perspective: 500px; perspective-origin: 50% -60%; }
.monitor {
  position: absolute; inset: 0; transform-origin: 50% 0; transform: rotateX(38deg);
  border-radius: 0 0 14px 14px; background: linear-gradient(#141317, #0a0a0c); border: 1px solid rgba(255, 255, 255, .07); border-top: 0;
  box-shadow: 0 -10px 40px rgba(151, 90, 219, .18), 0 30px 50px rgba(0, 0, 0, .7);
}
.mon-screen { position: absolute; inset: 10% 6% 16%; overflow: hidden; border-radius: 3px; background: #000; box-shadow: 0 0 24px rgba(186, 130, 248, .18); }
.mon-track { font: 400 11px/1.6 var(--f-sans); color: rgba(255, 255, 255, .5); padding: 0 8%; text-align: center; }

/* voice meter: the app's mic pill, at product-shot scale */
.vu {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(28px, 3vw, 44px);
  height: 56px; padding: 0 22px; border-radius: 999px; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.vu-state { display: inline-flex; align-items: center; gap: 9px; min-width: 9.4em; font: 700 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.vu-state i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .2s, box-shadow .2s; }
.vu.is-speaking .vu-state { color: var(--speak); }
.vu.is-speaking .vu-state i { background: var(--speak); box-shadow: 0 0 10px rgba(34, 197, 94, .6); }
.vu.is-off .vu-state { color: var(--word); }
.vu.is-off .vu-state i { background: rgba(250, 204, 21, .8); }
.vu-bars { display: flex; align-items: center; gap: 3px; width: clamp(150px, 30vw, 380px); height: 30px; }
.vu-bars i { flex: 1; height: 100%; border-radius: 2px; background: linear-gradient(#fff, #cdb3f3); opacity: .9; transform: scaleY(.06); }
.vu-mode { display: inline-flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255, 255, 255, .6); min-width: 5.2em; }

/* settings row */
.rc { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin: 28px auto 0; max-width: 980px; }
.rc-item { display: inline-flex; align-items: center; gap: 12px; }
.rc-lab { font-size: 14px; font-weight: 500; color: #c9c9cf; }
.rc-val { min-width: 2.8em; text-align: left; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.rc-speed.is-dim { opacity: .45; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .2); transition: background-color .2s; }
.switch i { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.range { -webkit-appearance: none; appearance: none; width: 140px; height: 24px; background: transparent; cursor: pointer; }
.range:disabled { cursor: not-allowed; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--primary) 0 var(--p, 11%), var(--line) var(--p, 11%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--primary-hi); box-shadow: 0 0 0 3px var(--card); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--primary-hi); box-shadow: 0 0 0 3px var(--card); }
.chips { display: inline-flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; color: #d6d6dc; transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { background: rgba(255, 255, 255, .09); }
.chip[aria-pressed="true"] { border-color: var(--primary); color: var(--primary-hi); background: rgba(151, 90, 219, .1); }
.rc-note { position: relative; z-index: 2; margin: 16px auto 0; max-width: 40em; min-height: 1.5em; font-size: 15px; color: var(--ink-2); }

@media (max-width: 767px) {
  .rig { aspect-ratio: 4 / 4.1; }
  .rig-frame { border-radius: 18px; }
  .glass-text { padding: 0 6%; }
  .off-pill { height: 24px; font-size: 9.5px; }
  .mon-track { font-size: 8px; }
  .vu { gap: 12px; height: 50px; padding: 0 16px; }
  .vu-state { min-width: 0; font-size: 10.5px; }
  .vu-state b { min-width: 6.8em; text-align: left; }
  .vu-mode { padding-left: 12px; min-width: 0; font-size: 12px; }
  .rc { gap: 16px 22px; }
}

/* ==========================================================================
   Shared head layouts for scenes 03-09 (each scene still owns its composition)
   ========================================================================== */
.rec-head, .edit-head, .export-head, .dailies-head, .credits-head, .admit-head, .faq-head { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; }
.chip--sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn--dark { background: #17151b; color: #fff; border-color: #17151b; }
.btn--dark:hover { background: #2a2730; }

/* ==========================================================================
   03 · Record: film leader, then a scope frame
   ========================================================================== */
.rec { position: relative; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 140px); background: #050506; }
.rec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.rec-head .scene-no { grid-column: 1 / -1; margin-bottom: 0; }
.rec-head .lede { justify-self: end; padding-bottom: .4em; }
.rec-stage { margin: clamp(36px, 4vw, 56px) auto 0; }
.rec-frame {
  position: relative; width: min(100%, calc(76vh * 2.39), 1640px); aspect-ratio: 2.39 / 1; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: #000; container-type: size; isolation: isolate; box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
.rec-feed { position: absolute; inset: 0; background: #0b0b0c 50% 30% / cover no-repeat; overflow: hidden; }
.rec-feed.is-near { background-image: url("../assets/shared/characters/realtor-16x9.webp"); }
@media (max-width: 767px) { .rec-feed.is-near { background-image: url("../assets/shared/characters/realtor-9x16.webp"); } }
.rec-feed .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scaleX(-1) scale(var(--z, 1)); transition: transform 1s var(--ease); }
.rec-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .55)), linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .35)); }
.rec-script {
  position: absolute; left: 50%; top: 0; bottom: 0; width: min(780px, 62%); transform: translateX(-50%); overflow: hidden; text-align: center;
  -webkit-mask: linear-gradient(transparent 14%, #000 34%, #000 68%, transparent 88%); mask: linear-gradient(transparent 14%, #000 34%, #000 68%, transparent 88%);
}
.rs-track { font: 400 clamp(17px, 2.1vw, 32px)/1.6 var(--f-sans); color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); will-change: transform; }
.rs-track.is-fading { opacity: 0; transition: opacity .4s ease; }
.rec-tl { position: absolute; left: clamp(14px, 1.6vw, 24px); top: clamp(14px, 1.6vw, 22px); display: flex; align-items: center; gap: 9px; font: 700 12px/1 var(--f-sans); letter-spacing: .16em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px rgba(255, 59, 48, .8); animation: recblink 1.2s steps(2, jump-none) infinite; }
.rec-tl.is-paused .rec-dot { background: #eab308; box-shadow: none; animation: none; }
.rec-tl.is-paused b { color: #eab308; }
.zoomchip {
  position: absolute; right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 22px); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px;
  background: rgba(11, 11, 12, .82); border: 1px solid rgba(39, 39, 42, .9); color: #a1a1aa; font: 500 12px/1 var(--f-sans); transition: color .3s, border-color .3s, background-color .3s;
}
.zoomchip b { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e4e4e7; }
.zoomchip.is-on { color: var(--primary-hi); border-color: var(--primary); background: rgba(151, 90, 219, .16); }
.zoomchip.is-on b { color: var(--primary-hi); }
.zoomchip.is-tick b { animation: tick .6s var(--ease) both; }

/* Dynamic Island (Bencho port): one spring drives width, height and radius; faces cross-fade */
.island { position: absolute; left: 50%; top: clamp(10px, 1.4vw, 18px); z-index: 4; transform: translateX(-50%); transition: opacity .35s var(--ease); }
.island.is-hidden { opacity: 0; }
.island-shape { position: relative; width: 120px; height: 36px; border-radius: 18px; background: #000; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 40px rgba(0, 0, 0, .6); }
.isl-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; white-space: nowrap; transition: opacity .22s ease .06s, filter .22s ease .06s, transform .22s ease .06s; }
.isl-face--c { font: 700 12px/1 var(--f-sans); letter-spacing: .14em; color: #fff; }
.isl-face--c .tnum { font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; color: #e4e4e7; }
.isl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px rgba(255, 59, 48, .9); }
.isl-face--x { justify-content: space-between; gap: 14px; padding: 0 20px 0 12px; }
.isl-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 59, 48, .16); }
.isl-btn i { width: 16px; height: 16px; border-radius: 4px; background: var(--rec); }
.isl-lab { display: grid; gap: 3px; margin-right: auto; text-align: left; }
.isl-lab small { font: 500 11px/1 var(--f-sans); color: #a1a1aa; }
.isl-lab b { font: 700 14px/1 var(--f-sans); color: #fff; }
.isl-big { font: 600 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ff6a61; letter-spacing: -.02em; }
.island[data-state="x"] .isl-face--c, .island[data-state="c"] .isl-face--x { opacity: 0; filter: blur(6px); transform: scale(.92); transition-delay: 0s; }
.island.is-paused .isl-big { color: #eab308; }
.island.is-paused .isl-btn { background: rgba(234, 179, 8, .16); }
.island.is-paused .isl-btn i { background: #eab308; border-radius: 50%; }

/* red border beam around the frame while recording */
.beam--frame { position: absolute; inset: 0; z-index: 3; display: block; pointer-events: none; --beam-r: 16px; --beam-w: 2px; --beam-dur: 2.6s; --beam-c1: #ff8a80; --beam-c2: #ff3b30; --beam-c3: #b3261e; opacity: 0; transition: opacity .5s var(--ease); }
.beam--frame.is-on { opacity: 1; }
.beam--frame .beam-bloom { display: none; }

/* film-leader countdown */
.leader {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 50%, #26232b 0%, #121115 60%, #070708 100%);
  opacity: 0; visibility: hidden;
}
.leader.is-on { opacity: 1; visibility: visible; }
.leader::after { content: ""; position: absolute; inset: -50%; background: url("../assets/variant-01-cinematic/motion/grain.webp") 0 0 / 256px repeat; opacity: .07; mix-blend-mode: overlay; animation: grain 1s steps(8) infinite; }
.leader-ring { position: absolute; height: 92%; width: auto; aspect-ratio: 1; fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.leader-ring path { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
.leader-sweep {
  position: absolute; height: 84%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0deg, rgba(255, 255, 255, .08) 90deg, transparent 91deg);
  transform: rotate(var(--sw, 0deg));
}
.leader-n { position: relative; font: 800 66cqh/1 var(--f-sans); color: transparent; -webkit-text-stroke: max(2px, .5cqh) #fff; letter-spacing: -.04em; text-shadow: none; }
.leader-n.tick { animation: leaderTick 1s var(--ease) both; }
@keyframes leaderTick { from { transform: scale(1.12); opacity: 0; } 18% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1099px) { .rec-head { grid-template-columns: 1fr; } .rec-head .lede { justify-self: start; } }
@media (max-width: 767px) {
  .rec-frame { aspect-ratio: 4 / 5; width: 100%; }
  .rec-script { width: 86%; }
  .rs-track { font-size: 19px; }
  .zoomchip span { display: none; }
  .isl-big { font-size: 20px; }
}

/* ==========================================================================
   04 · Edit: the timeline is the hero
   ========================================================================== */
.edit { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 130px); }
.edit-head { display: grid; justify-items: end; text-align: right; }
.edit-head .lede { margin-top: 20px; }
.ed { margin-top: clamp(36px, 4vw, 56px); }
.ed-preview { position: relative; width: min(780px, 52vw); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .07); container-type: inline-size; }
.ed-preview::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(60% 80% at 88% 12%, rgba(255, 170, 90, .6), transparent 62%), linear-gradient(100deg, transparent 55%, rgba(255, 120, 60, .18)); }
.ed-preview.is-leak::after { opacity: 1; }
.ed-feed { position: absolute; inset: 0; background: #0b0b0c 50% 30% / cover no-repeat; }
.ed-feed.is-near { background-image: url("../assets/shared/characters/sales-16x9.webp"); }
/* picture-in-picture from the Video 2 track */
.ed-pip { position: absolute; right: 4%; top: 7%; z-index: 2; width: 27%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0b0c 50% 30% / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 16px 40px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.85); transform-origin: 100% 0; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.ed-pip.is-near { background-image: url("../assets/shared/characters/podcaster-16x9.webp"); }
.ed-pip .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ed-pip.is-on { opacity: 1; transform: none; }
.ed-feed .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ed-feed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); }
.ed-title {
  position: absolute; left: 6%; top: 9%; z-index: 2; font: 800 5.4cqw/1.05 var(--f-sans); letter-spacing: -.03em; color: #fff; max-width: 52%; text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.ed-title.is-on { opacity: 1; transform: none; }
/* caption presets, as the app's editor defines them (Inter, centred, 82% down) */
.cap { position: absolute; left: 50%; top: 82%; z-index: 2; transform: translate(-50%, -50%); max-width: 86%; margin: 0; text-align: center; font: 700 3.4cqw/1.3 var(--f-sans); color: #fff; transition: opacity .2s; white-space: nowrap; }
.cap span { padding: .18em .4em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cap--box span { background: rgba(0, 0, 0, .6); }
.cap--pop { color: #ffe600; }
.cap--pop span, .cap--minimal span, .cap--outline span { paint-order: stroke fill; }
.cap--pop span { -webkit-text-stroke: .26em #000; }
.cap--minimal { font-weight: 400; }
.cap--minimal span { -webkit-text-stroke: .13em #000; }
.cap--outline span { -webkit-text-stroke: .32em #000; }
.cap.is-empty { opacity: 0; }

.ed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; max-width: 1100px; margin: 24px auto 22px; }
.ed-presets { display: inline-flex; align-items: center; gap: 6px; }
.ed-lab { margin-right: 6px; font-size: 13.5px; color: var(--ink-2); }
.ed-save { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.ed-save i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
[data-gen-cap].is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tl { --lab: clamp(64px, 7vw, 108px); position: relative; margin: 0 calc(-1 * var(--gutter)); background: #0d0d0f; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tl-ruler { position: relative; height: 30px; margin-left: var(--lab); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tl-ruler span { position: absolute; top: 0; bottom: 0; left: calc(var(--s) / 13 * 100%); border-left: 1px solid rgba(255, 255, 255, .14); padding: 8px 0 0 6px; font: 500 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8a8a93; }
.tl-ruler span:nth-child(even) { color: transparent; border-left-color: rgba(255, 255, 255, .07); }
.tl-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); height: clamp(44px, 4.6vw, 58px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tl-row--video { height: clamp(56px, 6vw, 76px); }
.tl-lab { display: flex; align-items: center; white-space: nowrap; padding-left: var(--gutter); font: 700 10.5px/1 var(--f-script); letter-spacing: .16em; text-transform: uppercase; color: #8a8a93; background: #0a0a0b; border-right: 1px solid rgba(255, 255, 255, .06); }
.tl-lane { position: relative; overflow: hidden; }
.clip {
  position: absolute; top: 7px; bottom: 7px; left: calc(var(--a) / 13 * 100%); width: calc((var(--b) - var(--a)) / 13 * 100% - 3px);
  display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; overflow: hidden; font: 600 12px/1 var(--f-sans); font-style: normal; color: #fff; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.clip span { font-weight: 500; opacity: .75; }
.clip--text { background: #1f5f63; }
.clip--video { background: #3b2a5c; align-items: flex-end; padding-bottom: 7px; }
.tl.is-near .clip--video { background: linear-gradient(rgba(59, 42, 92, .55), rgba(59, 42, 92, .55)), url("../assets/shared/characters/sales-16x9.webp") 0 50% / auto 100% repeat-x; }
.clip--video b { padding: 3px 6px; border-radius: 5px; background: rgba(0, 0, 0, .5); }
.clip--fx { background: #7331bd; }
.clip--pip { background: #4a2d78; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.clip--audio { background: #2a4f2f; }
.clip--audio .wave { position: absolute; inset: 22px 10px 6px 140px; opacity: .55; background: repeating-linear-gradient(90deg, #8fe39b 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(90deg, #000, rgba(0,0,0,.4) 30%, #000 60%, rgba(0,0,0,.5)); mask: linear-gradient(90deg, #000, rgba(0,0,0,.4) 30%, #000 60%, rgba(0,0,0,.5)); }
.clip--cap { background: #7a4b12; font-weight: 500; font-size: 11.5px; transition: background-color .25s, box-shadow .25s; }
.clip--cap.is-lit { background: #c27a1c; box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .6), 0 0 18px rgba(245, 158, 11, .45); }
.clip--cap.is-new { animation: capIn .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes capIn { from { opacity: 0; transform: scaleX(.2); transform-origin: left; } to { opacity: 1; transform: none; } }
.tl-trans { position: absolute; left: calc(var(--a) / 13 * 100%); top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -12px; transform: rotate(45deg); background: #f5f5f6; border-radius: 4px; box-shadow: 0 0 0 3px #0d0d0f; z-index: 2; }
.tl-trans span { position: absolute; left: 100%; top: 100%; transform: rotate(-45deg); white-space: nowrap; font: 600 10.5px/1 var(--f-sans); color: #fff; margin: -4px 0 0 4px; display: none; }
.tl-tag {
  position: absolute; left: calc(var(--a) / 13 * 100%); top: 50%; z-index: 3; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: #f5f5f6; color: #111; font: 700 11.5px/1 var(--f-sans); font-style: normal; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transform: translate(-14px, -50%); opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.tl-tag.is-on { opacity: 1; transform: translate(0, -50%); }
.tl-head { position: absolute; top: 0; bottom: 0; left: var(--lab); width: 2px; margin-left: -1px; background: #ef4444; z-index: 5; pointer-events: none; will-change: transform; box-shadow: 0 0 12px rgba(239, 68, 68, .6); }
.tl-head > i { position: absolute; top: 0; left: 50%; width: 14px; height: 18px; margin-left: -7px; background: #ef4444; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

@media (max-width: 1099px) { .ed-preview { width: min(860px, 80vw); } }
@media (max-width: 767px) {
  .edit-head { justify-items: start; text-align: left; }
  .ed-preview { width: 100%; }
  .cap { font-size: 4.4cqw; }
  .clip { padding: 0 6px; font-size: 10.5px; }
  .clip span, .clip--audio .wave { display: none; }
  .tl-tag { font-size: 10px; height: 22px; padding: 0 8px; }
  .tl-lab { padding-left: 10px; font-size: 9px; letter-spacing: .1em; }
}

/* ==========================================================================
   05 · Export: a light table of printed frames
   ========================================================================== */
.export { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 140px); background: #060607; }
.export-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.export-head .scene-no { grid-column: 1 / -1; margin-bottom: 0; }
.export-head .lede { padding-bottom: .4em; }
.lt {
  --h: clamp(130px, 15.5vw, 236px);
  position: relative; max-width: 1240px; margin: clamp(40px, 4.5vw, 64px) auto 0; padding: clamp(56px, 6vw, 88px) clamp(20px, 3vw, 44px) clamp(96px, 9vw, 120px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(16px, 2vw, 30px);
  border-radius: 26px; background: linear-gradient(#18171c, #101013); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 50px 120px rgba(0, 0, 0, .6);
}
.lt-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(55% 60% at 50% 42%, rgba(255, 250, 240, .13), rgba(255, 250, 240, .04) 55%, transparent 80%); }
.lt-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .025) 79px 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, .025) 79px 80px); }
.lt-cell { position: relative; margin: 0; display: grid; gap: 12px; justify-items: center; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); transition: transform 1.2s var(--ease); }
.lt.is-row .lt-cell { transform: none; }
.lt-film {
  position: relative; padding: 16px 9px; border-radius: 3px; background: #0b0a0c;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
}
.lt-film::before, .lt-film::after { /* sprocket holes */
  content: ""; position: absolute; left: 8px; right: 8px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 250, 240, .55) 0 7px, transparent 7px 14px); border-radius: 1px; opacity: .7;
}
.lt-film::before { top: 5px; } .lt-film::after { bottom: 5px; }
.lt-film img { height: var(--h); width: calc(var(--h) * var(--r)); object-fit: cover; object-position: 50% 30%; border-radius: 1px; filter: saturate(1.05) brightness(1.04); }
.lt-cell--916 { --r: .5625; } .lt-cell--169 { --r: 1.7778; } .lt-cell--11 { --r: 1; } .lt-cell--45 { --r: .8; }
.lt-cell figcaption { display: grid; justify-items: center; gap: 4px; text-align: center; }
.lt-cell figcaption b { font: 700 15px/1 var(--f-script); letter-spacing: .08em; color: #fff; }
.lt-cell figcaption span { font: 500 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #d6d6dc; }
.lt-cell figcaption small { font-size: 12.5px; color: var(--ink-2); }
.lt-done {
  position: absolute; left: 50%; bottom: clamp(26px, 3vw, 40px); transform: translateX(-50%); display: grid; place-items: center; height: 40px; min-width: 210px; padding: 0 18px; border-radius: 999px;
  background: rgba(10, 10, 11, .86); border: 1px solid rgba(255, 255, 255, .12); font: 600 14px/1 var(--f-sans);
}
.lt-done > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity .3s, transform .4s var(--ease); }
.lt-pct { color: #c9c9cf; }
.lt-ok { color: #4ade80; opacity: 0; transform: scale(.9); }
.lt-ok svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease) .15s; }
.lt-done.is-done .lt-pct { opacity: 0; } .lt-done.is-done .lt-ok { opacity: 1; transform: none; }
.lt-done.is-done .lt-ok svg path { stroke-dashoffset: 0; }
.lt-done.is-idle { opacity: 0; transition: opacity .3s; }

@media (max-width: 1099px) { .export-head { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .lt { --h: 104px; gap: 26px 14px; padding: 40px 12px 92px; }
  .lt-cell { transform: translate(calc(var(--sx) * .3), calc(var(--sy) * .3)) rotate(var(--sr)); }
  .lt-cell figcaption small { display: none; }
}

/* ==========================================================================
   06 · Dailies: the screening room
   ========================================================================== */
.dailies { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(96px, 10vw, 150px); }
.dailies::before { content: ""; position: absolute; left: -10%; top: 12%; width: 60%; height: 70%; pointer-events: none; background: radial-gradient(closest-side, rgba(151, 90, 219, .16), transparent); }
.dailies-head .lede { margin-top: 20px; }
.room { position: relative; max-width: 1320px; margin: clamp(40px, 4.5vw, 64px) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "mon board" "flow flow"; gap: clamp(32px, 3.4vw, 48px) clamp(32px, 5vw, 80px); }
.room-mon { grid-area: mon; position: relative; padding: 0 clamp(40px, 6vw, 90px) clamp(40px, 4vw, 60px) 0; }
.mon {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: 16px; overflow: hidden; background: #000; display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 90px rgba(151, 90, 219, .2), 0 40px 90px rgba(0, 0, 0, .7);
}
.mon-feed { position: absolute; inset: 0; z-index: 0; background: #000 50% 30% / cover no-repeat; opacity: 0; transition: opacity .8s var(--ease); }
.mon-feed.is-near { background-image: url("../assets/shared/characters/pastor-16x9.webp"); }
.mon-feed .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scaleX(-1); }
.mon-feed::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.mon.is-remote .mon-feed { opacity: 1; }
.mon-top, .mon-text, .mon-bar { position: relative; z-index: 1; }
.mon-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.mon-mode { font: 700 10.5px/1 var(--f-script); letter-spacing: .14em; text-transform: uppercase; color: #c9c9cf; padding: 6px 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.mon-mode.is-remote { color: #6ee7b7; border-color: rgba(16, 185, 129, .4); }
.mon-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .1); font: 700 9.5px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.mon-pill i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.mon-pill em { font-style: normal; opacity: .5; }
.mon-pill [data-mon-rate] { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: none; }
.mon-pill.is-speaking { color: var(--speak); }
.mon-pill.is-speaking i { background: var(--speak); box-shadow: 0 0 10px rgba(34, 197, 94, .6); }
.mon-text { position: relative; overflow: hidden; padding: 0 10%; text-align: center; -webkit-mask: linear-gradient(transparent, #000 26%, #000 74%, transparent); mask: linear-gradient(transparent, #000 26%, #000 74%, transparent); }
.mon-tr { font: 400 clamp(16px, 1.75vw, 26px)/1.8 var(--f-sans); color: #fff; will-change: transform; }
.mon-tr.is-fading { opacity: 0; transition: opacity .4s; }
.mon-bar { display: flex; justify-content: center; padding: 0 16px 14px; }
.mon-play { display: inline-flex; align-items: center; justify-content: center; min-width: 46%; height: 40px; border-radius: 12px; background: rgba(18, 18, 18, .8); border: 1px solid rgba(255, 255, 255, .1); font: 700 11.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.mon-play.is-on { background: #fff; color: #000; }

.phone { position: absolute; right: 0; bottom: 0; z-index: 2; width: clamp(150px, 15vw, 196px); aspect-ratio: 9 / 18.5; border-radius: 30px; padding: 7px; background: linear-gradient(150deg, #3a3640, #141317 40%, #0c0c0e); box-shadow: 0 30px 70px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.phone-in { position: relative; height: 100%; border-radius: 24px; background: #0a0a0b; overflow: hidden; display: flex; flex-direction: column; padding: 14px 10px 12px; gap: 8px; }
.ph-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ph-head b { font: 800 12px/1 var(--f-sans); }
.ph-live { font: 900 8px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: #fbbf24; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .25); }
.ph-live.is-live { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .25); }
.ph-qr { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; transition: opacity .4s; }
.ph-connect { height: 28px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 600 10.5px/1 var(--f-sans); cursor: pointer; }
.ph-connect:hover { background: rgba(255, 255, 255, .12); }
.ph-qr span { font-size: 10px; color: #a1a1aa; text-align: center; padding: 0 6px; }
.qr { display: block; width: 104px; height: 104px; border-radius: 14px; background: #fff; padding: 8px; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.ph-ui { flex: 1; display: none; flex-direction: column; gap: 8px; }
.phone.is-paired .ph-qr { display: none; }
.phone.is-paired .ph-ui { display: flex; }
.phone.is-paired .ph-mon { background-image: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url("../assets/shared/characters/pastor-9x16.webp"); }
.ph-mon { flex: 1; position: relative; border-radius: 10px; background: #000 50% 25% / cover no-repeat; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.ph-tr { padding: 0 8px; font: 400 11px/1.8 var(--f-sans); text-align: center; color: #fff; will-change: transform; }
.ph-prog { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ph-prog i { display: block; height: 100%; background: linear-gradient(90deg, #9333ea, #3b82f6); transform-origin: left; transform: scaleX(0); }
.ph-ctl { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ph-side { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: transform .12s, background-color .2s; }
.ph-main { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; border: 0; cursor: pointer; background: #fff; color: #000; transition: transform .12s, background-color .2s, color .2s; }
.ph-main.is-paused { background: var(--primary); color: #fff; box-shadow: 0 0 20px rgba(151, 90, 219, .6); }
.ph-side:active, .ph-main:active, .ph-side.is-press, .ph-main.is-press { transform: scale(.9); }
.ph-speed { text-align: center; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #a1a1aa; }
.ph-speed span { font: 700 12px/1 var(--f-sans); letter-spacing: 0; color: #c084fc; }
.tap { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .7); opacity: 0; transform: scale(.4); }
.tap.is-go { animation: tap .55s var(--ease) both; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }

/* the scoreboard */
.board { grid-area: board; align-self: center; position: relative; }
.board-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.board-h b { font: 700 13px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.board-h span { font: 700 13px/1 var(--f-script); letter-spacing: .16em; text-transform: uppercase; color: #ff6a61; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: grid; gap: 10px; padding: 22px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:nth-child(even) { padding-left: 24px; }
.stat-lab { font: 600 13px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: #a8a8b0; }
.stat-unit { font-size: 14px; color: var(--ink-2); }
.stat-unit em { font-style: normal; color: #8a8a93; margin-left: 6px; }
.stat:nth-child(1) .odo { --c: #c9a3f7; } .stat:nth-child(2) .odo { --c: #34d399; } .stat:nth-child(3) .odo { --c: #fbbf24; } .stat:nth-child(4) .odo { --c: #a78bfa; }
/* rolling counter (Bencho port): each digit is a 0-9-0 strip in a window */
.odo { display: inline-flex; gap: 4px; font: 800 clamp(52px, 6.4vw, 104px)/1 var(--f-sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.odo-d { position: relative; display: block; height: 1.04em; width: .66em; overflow: hidden; border-radius: .08em; background: linear-gradient(#141317, #0c0c0e 50%, #141317 50%, #0e0d10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.odo-d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.odo-s { display: flex; flex-direction: column; align-items: center; will-change: transform; }
.odo-s span { display: block; height: 1.04em; line-height: 1.04em; text-align: center; }
.odo-d.is-c .odo-s span { color: var(--c); }
.verdict { margin-top: 22px; font: italic 400 clamp(28px, 3vw, 44px)/1.1 var(--f-serif); color: #efe6fb; transition: color .4s; }
.verdict::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .3em; border-radius: 50%; background: #eab308; vertical-align: .08em; transition: background-color .4s; }
.verdict.is-ready::before { background: #22c55e; box-shadow: 0 0 14px rgba(34, 197, 94, .7); }
.board-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.toast { position: absolute; left: 0; bottom: -52px; padding: 10px 14px; border-radius: 12px; background: #f5f5f6; color: #111; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

.flow { grid-area: flow; }
.flow-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.flow-h b { font: 700 13px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; }
.flow-h span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #c9c9cf; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--sp { background: #975adb; } .sw--pa { background: #f59e0b; margin-left: 10px; }
.flow-cv { display: block; width: 100%; height: clamp(52px, 4.6vw, 72px); }
.flow-ends { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11.5px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: #b4b4bc; }

@media (max-width: 1099px) {
  .room { grid-template-columns: 1fr; grid-template-areas: "mon" "board" "flow"; }
  .room-mon { max-width: 720px; }
}
@media (max-width: 767px) {
  .room-mon { padding: 0 0 176px 0; }
  .phone { width: 132px; right: 6px; }
  .mon-mode { font-size: 9px; letter-spacing: .08em; }
  .mon-pill { display: none; }
  .stat:nth-child(odd) { padding-right: 14px; } .stat:nth-child(even) { padding-left: 14px; }
  .stat-lab { font-size: 11px; letter-spacing: .06em; }
  .odo { font-size: 44px; }
}

/* ==========================================================================
   07 · Casting call: a contact sheet of the cast
   ========================================================================== */
.casting { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 140px); background: #060607; }
.casting::before { content: ""; position: absolute; right: -8%; top: 20%; width: 60%; height: 70%; pointer-events: none; background: radial-gradient(closest-side, rgba(115, 49, 189, .14), transparent); }
.casting-head { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.casting-head .scene-no { grid-column: 1 / -1; margin-bottom: 0; }
.casting-head .lede { padding-bottom: .4em; }
.cc { position: relative; z-index: 1; max-width: 1320px; margin: clamp(36px, 4vw, 56px) auto 0; }
.cc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 16px; font-size: 15px; color: #d6d6dc; }
.cc-status .tnum { font: 700 13px/1 var(--f-script); letter-spacing: .16em; color: #ff6a61; }
.cc-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 6px; overflow: hidden; background: #110f12; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.cc-cell { position: relative; padding: 22px 8px 14px; }
.cc-cell::before { /* sprocket holes along the strip */
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 248, 235, .5) 6px 14px, transparent 14px 20px); opacity: .55;
}
.cc-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; background: #000; color: #fff;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.cc-pic { position: absolute; inset: 0; background: 50% 22% / cover no-repeat; filter: grayscale(.55) brightness(.62) contrast(1.05); transition: filter .5s var(--ease), transform 6s linear; }
.cc.is-near .cc-pic { background-image: var(--img); }
.cc-frame .feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.cc-frame:hover .cc-pic { filter: grayscale(.2) brightness(.8); }
.cc-frame[aria-pressed="true"] { transform: scale(1.035); z-index: 2; box-shadow: 0 0 0 2px var(--rec), 0 0 34px rgba(255, 59, 48, .35), 0 24px 60px rgba(0, 0, 0, .7); }
.cc-frame[aria-pressed="true"] .cc-pic { filter: none; transform: scale(1.06); }
.cc-edge { position: absolute; left: 8px; top: 7px; z-index: 2; font: 700 10.5px/1 var(--f-script); letter-spacing: .12em; color: #d6b8fb; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.cc-live { position: absolute; right: 8px; top: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); font: 700 9.5px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--rec); animation: recblink 1.2s steps(2, jump-none) infinite; }
.cc-line {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 10px 12px; text-align: center;
  font: 500 clamp(12px, 1vw, 14px)/1.4 var(--f-sans); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .82) 42%); opacity: 0; transition: opacity .35s;
}
.cc-line .w.is-cur { color: var(--word); filter: drop-shadow(0 0 6px rgba(251, 176, 64, .5)); }
.cc-line .w.is-spoken { color: rgba(255, 255, 255, .45); }
.cc-time { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, .12); opacity: 0; }
.cc-time i { display: block; height: 100%; background: var(--rec); transform-origin: left; transform: scaleX(0); }
.cc-frame[aria-pressed="true"] .cc-live, .cc-frame[aria-pressed="true"] .cc-line, .cc-frame[aria-pressed="true"] .cc-time { opacity: 1; }
.cc-cap { margin-top: 12px; display: grid; gap: 4px; }
.cc-cap b { font: 600 15px/1.2 var(--f-sans); color: #fff; }
.cc-cap span { font-size: 13px; line-height: 1.35; color: #b4b4bc; }
@media (max-width: 1099px) { .casting-head { grid-template-columns: 1fr; } .cc-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cc-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-cap span { font-size: 12px; } }

/* ==========================================================================
   08 · End credits
   ========================================================================== */
.credits { position: relative; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 130px); text-align: center; background: #000; }
.credits-head { display: grid; justify-items: center; gap: 22px; }
.credits-head .scene-no { margin-bottom: -4px; }
.roll { position: relative; max-width: 1000px; height: clamp(440px, 64vh, 680px); margin: clamp(32px, 4vw, 52px) auto 0; overflow: hidden; border-radius: 8px;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.roll:focus-visible { outline-offset: 6px; }
.roll-track { will-change: transform; }
.roll-copy { padding: 40px 0 120px; }
.roll-dept { margin: 64px 0 26px; font: 700 14px/1 var(--f-script); letter-spacing: .32em; text-transform: uppercase; color: var(--primary-hi); }
.roll-dept:first-child { margin-top: 0; }
.roll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.roll-list li { display: grid; grid-template-columns: minmax(0, .82fr) minmax(32px, .16fr) minmax(0, 1.2fr); align-items: baseline; column-gap: 16px; text-align: left; }
.roll-list b { justify-self: end; text-align: right; font: 600 clamp(18px, 1.6vw, 22px)/1.35 var(--f-sans); letter-spacing: -.01em; color: #fff; }
.roll-list i { align-self: start; height: 1px; margin-top: 1.15em; border-bottom: 2px dotted rgba(255, 255, 255, .3); }
.roll-list span { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; color: #cfcfd5; }
.roll-end { margin-top: 90px; font: italic 400 clamp(36px, 4vw, 56px)/1 var(--f-serif); color: #fff; }
.roll-btn[aria-pressed="true"] { border-color: var(--primary); color: var(--primary-hi); }
@media (max-width: 767px) {
  .roll-list li { grid-template-columns: 1fr; row-gap: 4px; text-align: center; }
  .roll-list b { justify-self: center; text-align: center; }
  .roll-list i { display: none; }
}

/* ==========================================================================
   09 · Pricing: admit one
   ========================================================================== */
.admit { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 140px); }
.admit::before { content: ""; position: absolute; left: 50%; top: 30%; width: 1100px; height: 700px; margin-left: -550px; pointer-events: none; background: radial-gradient(closest-side, rgba(115, 49, 189, .16), transparent); }
.admit-head { text-align: center; display: grid; justify-items: center; }
.tickets { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 3.5vw, 48px); max-width: var(--wrap); margin: clamp(44px, 5vw, 72px) auto 0; }
.ticket {
  --stub: 128px; --notch: 15px;
  position: relative; width: min(560px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); border-radius: 18px; isolation: isolate;
  transition: transform .5s var(--ease);
}
.ticket--free { color: #17151b; }
.ticket--pro { color: #fff; }
.ticket:nth-child(1) { transform: rotate(-1.4deg); } .ticket:nth-child(2) { transform: rotate(1.2deg); }
.ticket:hover, .ticket:focus-within { transform: rotate(0deg) translateY(-4px); }
.t-body, .t-stub { position: relative; z-index: 1; }
.t-body::before, .t-stub::before { /* the paper, with the perforation notches cut out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.t-stub::before {
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.ticket--free .t-body::before { border-radius: 18px 0 0 18px; background: radial-gradient(120% 90% at 0 0, #fbf7ef, #ece4d6); }
.ticket--free .t-stub::before { border-radius: 0 18px 18px 0; background: linear-gradient(#e6dccb, #ddd2bf); }
.ticket--pro .t-body::before { border-radius: 18px 0 0 18px; background: radial-gradient(120% 100% at 0 0, #8a4fd0, #5b2a9c 50%, #2b1650); }
.ticket--pro .t-stub::before { border-radius: 0 18px 18px 0; background: linear-gradient(#4a2385, #2b1650); }
.t-body { padding: 30px 30px 30px 34px; display: grid; gap: 14px; justify-items: start; }
.t-admit { font: 700 12.5px/1 var(--f-script); letter-spacing: .34em; text-transform: uppercase; color: #c2281f; }
.ticket--pro .t-admit { color: #ffb3ad; }
.ticket h3 { font: 800 clamp(40px, 4vw, 56px)/.9 var(--f-sans); letter-spacing: -.04em; }
.t-price { display: flex; align-items: baseline; gap: 8px; }
.t-price b { font: 800 30px/1 var(--f-sans); letter-spacing: -.02em; }
.t-price span { font-size: 16px; opacity: .78; }
.t-lines { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.t-lines li { display: flex; align-items: center; gap: 10px; }
.t-lines li::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .5; }
.t-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 0; border-left: 2px dashed rgba(23, 21, 27, .28);
  transform-origin: 0 0; transition: transform .45s var(--ease);
}
.ticket--pro .t-stub { border-left-color: rgba(255, 255, 255, .3); }
.ticket:hover .t-stub, .ticket:focus-within .t-stub { transform: translate(6px, 3px) rotate(4deg); }
.t-no, .t-row, .t-take { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--f-script); letter-spacing: .18em; text-transform: uppercase; }
.t-take { color: #c2281f; } .ticket--pro .t-take { color: #ffb3ad; }
.t-code { width: 34px; height: 64px; background: repeating-linear-gradient(0deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px); opacity: .75; }
.beam--ticket { position: absolute; inset: 0; z-index: 2; display: block; pointer-events: none; --beam-r: 18px; --beam-w: 1.5px; --beam-dur: 4s; }
.admit-note { margin-top: 40px; text-align: center; font-size: 16px; color: #d6d6dc; }
.admit-note span { display: block; margin-top: 6px; font: 700 11.5px/1.4 var(--f-script); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 767px) {
  .ticket { --stub: 84px; }
  .t-body { padding: 24px 20px 24px 22px; }
  .ticket:nth-child(1), .ticket:nth-child(2) { transform: none; }
}

/* ==========================================================================
   10 · FAQ: the script page
   ========================================================================== */
.faq { position: relative; padding: clamp(88px, 9vw, 140px) var(--gutter) clamp(88px, 9vw, 140px); background: #050506; }
.faq-head { display: grid; justify-items: center; text-align: center; }
.faq-head .lede { margin-top: 18px; }
.faq-head .lede a { color: #fff; }
.page-sheet {
  position: relative; max-width: 800px; margin: clamp(44px, 5vw, 64px) auto 0; padding: clamp(48px, 6vw, 80px) clamp(22px, 8vw, 96px) clamp(56px, 6vw, 80px);
  background: radial-gradient(120% 80% at 0 0, #fbf8f1, #f1ece2 60%, #e8e2d6); color: #1b1a1f; border-radius: 3px;
  font: 400 18px/1.55 var(--f-script); box-shadow: 0 50px 110px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04);
}
.page-sheet::before { /* brads */
  content: ""; position: absolute; left: 22px; top: 18%; width: 11px; height: 64%;
  background: radial-gradient(circle, #2a2830 4.5px, transparent 5px) 0 0 / 11px 11px no-repeat, radial-gradient(circle, #2a2830 4.5px, transparent 5px) 0 50% / 11px 11px no-repeat, radial-gradient(circle, #2a2830 4.5px, transparent 5px) 0 100% / 11px 11px no-repeat;
}
.ps-num { position: absolute; right: clamp(22px, 5vw, 56px); top: 30px; }
.ps-slug { margin-bottom: 30px; font-weight: 700; text-transform: uppercase; }
.qa { margin: 0 0 6px; }
.qa h3 { margin: 0; font: inherit; }
.qa button {
  display: block; width: 100%; padding: 12px 0 10px; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 4px;
}
.cue { display: block; margin-left: 37%; text-transform: uppercase; }
.qa button .line { display: block; margin: 2px 14% 0 20%; }
.qa button .line::after { content: " (MORE)"; font-size: 15px; color: #6d6874; white-space: nowrap; }
.qa button[aria-expanded="true"] .line::after { content: ""; }
.qa button:hover .line { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.qa button:focus-visible { outline: 2px solid #7331bd; outline-offset: 4px; }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.ans > div { overflow: hidden; }
.ans.is-open { grid-template-rows: 1fr; }
.ans .cue { margin-top: 12px; }
.ans p { margin: 2px 14% 14px 20%; }
.ps-end { margin-top: 26px; text-align: right; font-weight: 700; text-transform: uppercase; }
@media (max-width: 767px) {
  .page-sheet { font-size: 16.5px; padding-left: 40px; }
  .page-sheet::before { left: 12px; }
  .cue { margin-left: 26%; }
  .qa button .line, .ans p { margin-left: 4%; margin-right: 0; }
}

/* ==========================================================================
   10 · Final CTA: mesh gradient band and the record button
   ========================================================================== */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 12vw, 190px) var(--gutter) clamp(110px, 11vw, 170px); text-align: center;
  background: radial-gradient(80% 90% at 30% 20%, #3a1a6b 0%, transparent 60%), radial-gradient(70% 80% at 80% 80%, #5b2a9c 0%, transparent 60%), #14092a; }
.cta-mesh { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.cta-mesh.is-on { opacity: 1; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(10, 10, 11, .1), rgba(10, 10, 11, .55)); }
.cta-in { position: relative; max-width: 980px; margin: 0 auto; display: grid; justify-items: center; }
.cta h2 { font-size: clamp(42px, 6vw, 96px); }
.cta h2 em { color: #fff; }
.rb { position: relative; display: grid; place-items: center; width: clamp(170px, 16vw, 220px); aspect-ratio: 1; margin: clamp(44px, 5vw, 64px) 0 64px; border-radius: 50%; text-decoration: none; color: #fff; }
.rb:focus-visible { outline-offset: 8px; border-radius: 50%; }
.rb-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 0 0 12px rgba(255, 255, 255, .07), 0 30px 80px rgba(0, 0, 0, .5); transition: border-color .3s, box-shadow .3s; }
.rb-core { position: relative; width: 66%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff7a71, #ff3b30 46%, #b3261e); box-shadow: 0 0 46px rgba(255, 59, 48, .55), inset 0 -6px 18px rgba(0, 0, 0, .25);
  transition: border-radius .45s var(--ease), transform .45s var(--ease); }
.rb:hover .rb-core { transform: scale(1.05); }
.rb:active .rb-core { transform: scale(.94); }
.rb-n { font: italic 900 clamp(44px, 4.6vw, 64px)/1 var(--f-sans); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.rb-n.tick { animation: tick .9s var(--ease) both; }
.rb-lab { position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 18px/1 var(--f-sans); }
.rb.is-rec .rb-core { border-radius: 22%; transform: scale(.62); }
.rb.is-rec .rb-ring { border-color: var(--rec); box-shadow: 0 0 0 12px rgba(255, 59, 48, .18), 0 0 60px rgba(255, 59, 48, .45); animation: ringPulse 1s ease-in-out infinite; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 20px rgba(255, 59, 48, .08), 0 0 80px rgba(255, 59, 48, .55); } }
.cta-alt a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.cta-alt a:hover { border-bottom-color: #fff; }
.cta-foot { margin-top: 18px; font: 700 12px/1.4 var(--f-script); letter-spacing: .16em; text-transform: uppercase; color: #d9cdee; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { position: relative; padding: clamp(64px, 7vw, 96px) var(--gutter) 40px; background: var(--bg); border-top: 1px solid var(--line); }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { max-width: 28em; color: var(--ink-2); }
.foot-mail { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.foot-mail:hover { border-bottom-color: #fff; }
.foot-h { font: 700 12.5px/1 var(--f-script); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { color: #e4e4e8; text-decoration: none; font-size: 16px; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-base { max-width: var(--wrap); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--ink-2); }
.foot-base a { color: #fff; }
.foot-heart { display: inline-block; vertical-align: -1px; color: var(--rec); }
.foot-note { max-width: 46em; }
@media (max-width: 899px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Sub-pages: contact, privacy, terms, compare
   ========================================================================== */
.page { position: relative; padding: calc(var(--hdr) + clamp(48px, 6vw, 88px)) var(--gutter) clamp(80px, 8vw, 120px); overflow: hidden; }
.page::before { content: ""; position: absolute; right: -14%; top: -10%; width: 900px; height: 900px; max-width: 120vw; pointer-events: none; background: radial-gradient(closest-side, rgba(115, 49, 189, .22), transparent); transform: rotate(-20deg) scaleX(.6); }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; }
.page-hero { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.page-hero h1 { font: 800 clamp(42px, 6vw, 88px)/.96 var(--f-sans); letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
.page-hero h1 em { color: #efe6fb; }
.page-hero > p:not(.eyebrow) { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 700 13px/1 var(--f-script); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .rec-dot { width: 8px; height: 8px; }

/* contact: a call sheet */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.card-dark { position: relative; border-radius: 20px; background: linear-gradient(#151418, #111013); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.card-dark h2 { font: 700 clamp(24px, 2.2vw, 30px)/1.15 var(--f-sans); letter-spacing: -.02em; margin-bottom: 8px; }
.form-intro { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 700 12px/1 var(--f-script); letter-spacing: .18em; text-transform: uppercase; color: #c9c9cf; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid #34343b; background: #0b0b0d; color: var(--ink); font: 400 16px/1.4 var(--f-sans);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a0a0a8 50%), linear-gradient(135deg, #a0a0a8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #75757e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(151, 90, 219, .3); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #f87171; }
.field-err { min-height: 1.2em; font-size: 14px; color: #fca5a5; }
.form-summary { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: #fca5a5; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 12px; }
.consent { font-size: 14px; color: var(--ink-2); }
.consent a, .channel a, .legal a { color: #fff; }
.proto-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.sent { display: grid; justify-items: start; gap: 14px; }
.cx-done { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: #4ade80; }
.side { display: grid; gap: 28px; }
.channel { display: flex; gap: 16px; align-items: flex-start; }
.channel-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(151, 90, 219, .16); color: var(--primary-hi); }
.channel p { color: var(--ink-2); font-size: 15px; margin: 4px 0 8px; }
.qa-list details { border-top: 1px solid var(--line); padding: 14px 0; }
.qa-list summary { display: flex; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 600; list-style: none; }
.qa-list summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; width: 18px; height: 18px; position: relative; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
details[open] .faq-ic::after { transform: none; }
.qa-list details p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* legal */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); padding-left: 16px; border-left: 1px solid var(--line); }
.toc-h { font: 700 12px/1 var(--f-script); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: #c9c9cf; text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 700 12px/1.6 var(--f-script); color: #6f6f78; }
.toc a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.toc a[aria-current="true"] { color: #fff; background: rgba(151, 90, 219, .14); }
.toc a[aria-current="true"]::before { color: var(--primary-hi); }
.legal { max-width: 46em; }
.legal section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 24px); }
.legal h2 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--f-sans); letter-spacing: -.02em; margin-bottom: 14px; }
.legal p, .legal li { color: #d0d0d6; font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 6px; }
@media (max-width: 899px) {
  .contact-grid, .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* compare: the line-up */
.cmp-hero { max-width: 980px; }
.cmp-hero .slate { margin-bottom: 18px; }
.cmp-claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(36px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cmp-claims li { list-style: none; padding: 26px 24px; background: #0e0e10; font-size: 16.5px; line-height: 1.5; color: #d6d6dc; }
.cmp-claims li b { display: block; margin-bottom: 8px; font: 700 12px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: var(--primary-hi); }
.cmp-claims { padding: 0; }
.lineup-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 20px; }
.lineup-head h2 { font-size: clamp(32px, 3.6vw, 56px); }
.lineup-head p { font-size: 15px; color: var(--ink-2); max-width: 34em; }
.scroll-hint { display: none; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 12px/1 var(--f-script); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-hi); }
.lineup { position: relative; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #0b0b0d; -webkit-overflow-scrolling: touch; scrollbar-color: #3a3a42 transparent; }
.lineup:focus-visible { outline-offset: 4px; }
.lineup table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.lineup th, .lineup td { padding: 14px 14px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.lineup thead th { position: sticky; top: 0; z-index: 3; background: #111013; font: 700 13px/1.2 var(--f-script); letter-spacing: .08em; text-transform: uppercase; color: #d6d6dc; padding-top: 18px; padding-bottom: 18px; }
.lineup tbody th { position: sticky; left: 0; z-index: 2; background: #0b0b0d; text-align: left; font-weight: 600; color: #fff; min-width: 230px; border-right: 1px solid rgba(255, 255, 255, .08); }
.lineup thead th:first-child { left: 0; z-index: 4; text-align: left; }
.lineup .col-tz { background: linear-gradient(rgba(151, 90, 219, .16), rgba(151, 90, 219, .08)); }
.lineup thead .col-tz { color: #fff; background: #2a1748; }
.lineup tbody tr { transition: background-color .4s; }
.lineup tbody tr.is-scan td, .lineup tbody tr.is-scan th { background-color: rgba(255, 255, 255, .06); }
.lineup tbody tr.is-scan th { box-shadow: inset 3px 0 0 var(--primary); }
.cell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cell--yes { color: #4ade80; font-weight: 700; }
.cell--part { color: #fbbf24; font-weight: 600; }
.cell--nl { color: #9a9aa3; }
.cell--no { color: #fca5a5; font-weight: 600; }
.cell sup a, .lineup sup a { font-size: 10.5px; color: #a8a8b0; text-decoration: none; margin-left: 2px; }
.cell sup a:hover { color: #fff; text-decoration: underline; }
.lineup-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.cmp-note { margin-top: 12px; font-size: 15px; color: #d6d6dc; }
.cmp-jobs { margin: clamp(64px, 7vw, 100px) 0 0; }
.cmp-jobs h2 { font-size: clamp(32px, 4vw, 60px); margin-bottom: 28px; max-width: 18em; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.jobs li { padding: 22px 20px; border-radius: 16px; background: #111013; border: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: #d6d6dc; }
.jobs li b { display: block; margin-bottom: 10px; font: 700 13px/1 var(--f-script); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.jobs li b::before { content: attr(data-n) " "; color: #ff6a61; }
.disclaimer { margin-top: clamp(56px, 6vw, 80px); padding: 26px 28px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .2); font-size: 15px; line-height: 1.65; color: #c9c9cf; }
.disclaimer a { color: #fff; }
.sources { margin-top: 40px; }
.sources h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
.sources ol { columns: 2; column-gap: 40px; padding-left: 1.6em; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.sources li { break-inside: avoid; margin-bottom: 4px; overflow-wrap: anywhere; scroll-margin-top: calc(var(--hdr) + 20px); }
.sources li:target { color: #fff; background: rgba(151, 90, 219, .16); border-radius: 4px; }
.sources a { color: #d6d6dc; }
.cmp-cta { margin-top: clamp(56px, 6vw, 80px); padding: clamp(40px, 5vw, 64px); border-radius: 24px; text-align: center; background: radial-gradient(80% 120% at 50% 0, #3a1a6b, #14092a); display: grid; justify-items: center; gap: 22px; }
.cmp-cta h2 { font-size: clamp(30px, 3.6vw, 54px); }
@media (max-width: 1099px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-claims { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .scroll-hint { display: inline-flex; }
  .lineup tbody th { min-width: 150px; font-size: 14px; }
  .sources ol { columns: 1; }
  .jobs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
.motion-paused .grain, .motion-paused .glass-sheen, .motion-paused .beam-ring > i, .motion-paused .beam-bloom > i,
.motion-paused .w.is-cur, .motion-paused .caret::after, .motion-paused .dots i, .motion-paused .vf-dot, .motion-paused .chip-state i,
.motion-paused .rec-dot, .motion-paused .cc-live i, .motion-paused .leader::after, .motion-paused .rb.is-rec .rb-ring { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain, .glass-sheen, .leader::after { display: none; }
  .cold-feed, .vf { animation: none; clip-path: none; }
  .dock { animation: none; transform: translateX(-50%); }
}

/* compare: small extras */
.vp-mark { margin-left: 4px; color: var(--primary-hi); text-decoration: none; font-weight: 700; }
.cmp-claims li a { color: #fff; }
.cmp-cta .cold-ctas { justify-content: center; }
.sources li span { color: #c9c9cf; }
.src-tz { list-style: none; margin-left: -1.6em; margin-top: 8px; }
.cell sup a + a::before { content: ","; margin-right: 2px; color: #6f6f78; }

/* ===================================================================
   09 · On location: the iOS and Android apps (five phones in a fan, steps in sync)
   =================================================================== */
.loc { position: relative; overflow: hidden; padding: clamp(88px, 9vw, 140px) var(--gutter); background: radial-gradient(55% 65% at 74% 52%, rgba(115, 49, 189, .24), transparent 70%), var(--bg); }
.loc-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc-copy .lede { margin-top: 22px; }
.loc-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 2px; max-width: 34em; }
.loc-step { position: relative; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 14px 15px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background-color .3s var(--ease), color .3s; }
.loc-step:hover { background: rgba(255, 255, 255, .04); }
.loc-step[aria-pressed="true"] { background: rgba(151, 90, 219, .13); color: var(--ink); }
.loc-step:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 2px; }
.loc-n { font: 700 13px/1 var(--f-script); letter-spacing: .14em; color: var(--ink-3); }
.loc-step[aria-pressed="true"] .loc-n { color: var(--primary-hi); }
.loc-t b { display: block; font-size: 17px; font-weight: 600; }
.loc-t span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.loc-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); opacity: 0; transition: opacity .3s; }
.loc-step[aria-pressed="true"] .loc-bar { opacity: 1; }
.loc-bar i { display: block; height: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--primary-deep), var(--primary-hi)); }
.loc-get { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.loc-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.loc-qr { display: flex; align-items: center; gap: 14px; margin: 0; }
.loc-qr img { width: 96px; height: 96px; padding: 5px; border-radius: 12px; background: #fff; }
.loc-qr figcaption { max-width: 13em; font: 700 12px/1.55 var(--f-script); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.loc-stage { position: relative; height: clamp(540px, 50vw, 680px); perspective: 1600px; }
.loc-spot { position: absolute; left: 50%; top: 48%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(186, 130, 248, .34), rgba(115, 49, 189, .12) 55%, transparent); pointer-events: none; }
.loc-phone {
  position: absolute; left: 50%; top: 47%; width: clamp(240px, 22vw, 320px); height: auto; translate: -50% -50%;
  transform: translateX(var(--x, 0)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); z-index: var(--zi, 1);
  filter: drop-shadow(0 36px 44px rgba(0, 0, 0, .65)) brightness(var(--b, 1));
  transition: transform 1s var(--ease), opacity .8s var(--ease), filter 1s var(--ease);
}
.loc-phone[data-pos="0"] { --x: 0%; --s: 1; --o: 1; --zi: 5; --b: 1; }
.loc-phone[data-pos="1"] { --x: 60%; --s: .8; --ry: -18deg; --o: .95; --zi: 4; --b: .5; }
.loc-phone[data-pos="-1"] { --x: -60%; --s: .8; --ry: 18deg; --o: .95; --zi: 4; --b: .5; }
/* the two phones furthest round the loop wait hidden behind the front one, so the fan never reaches into the copy */
.loc-phone[data-pos="2"] { --x: 24%; --s: .62; --ry: -22deg; --o: 0; --zi: 2; --b: .3; }
.loc-phone[data-pos="-2"] { --x: -24%; --s: .62; --ry: 22deg; --o: 0; --zi: 2; --b: .3; }
.loc-slate { position: absolute; left: 50%; bottom: 0; translate: -50% 0; padding: 7px 12px 6px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; background: rgba(10, 10, 11, .75); font: 700 12px/1 var(--f-script); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
@media (max-width: 999px) {
  .loc-in { grid-template-columns: minmax(0, 1fr); }
  .loc-stage { height: clamp(460px, 100vw, 620px); }
}
@media (max-width: 600px) {
  .loc-phone { width: 52vw; }
  .loc-phone[data-pos="1"] { --x: 46%; } .loc-phone[data-pos="-1"] { --x: -46%; }
  .loc-step { padding: 10px 10px 14px; }
}

/* store badges: white on the stage, outlined in the footer */
.store { display: inline-flex; align-items: center; gap: 11px; height: 54px; padding: 0 20px 0 16px; border: 1px solid #fff; border-radius: 14px; background: #fff; color: #0a0a0b; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(151, 90, 219, .7); }
.store:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; }
.store span { display: grid; font: 600 17px/1.1 var(--f-sans); letter-spacing: -.01em; }
.store small { font: 500 10.5px/1.25 var(--f-sans); letter-spacing: .03em; color: #4b4b55; }
.store--sm { height: 44px; gap: 9px; padding: 0 14px 0 12px; border-color: rgba(255, 255, 255, .22); border-radius: 11px; background: transparent; color: #f5f5f6; }
.store--sm:hover { border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.store--sm span { font-size: 14px; }
.store--sm small { font-size: 9.5px; color: var(--ink-3); }
.foot-apps { display: flex; flex-wrap: wrap; gap: 10px; }

/* on a phone the visitor is already on the phone: the store buttons are enough, no QR code */
@media (max-width: 700px) { .loc-qr { display: none; } }
