/* ═══════════════════════════════════════════════════════════════
   TINY CINEMA — marketing homepage
   house-lights-down cinema-black; the only color in the room
   comes from the creator's media. Chrome stays monochrome bone.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0b;
  --ink: #101012;
  --surface: #141416;
  --bone: #cacacb;
  --text: #ededee;
  --text-bright: #f4f4f5;
  --text-2: #b0b0b2;
  --mute: #787880;
  --mute-2: #9a9a9d;
  --cream: #f3ead9;
  --cream-2: #f0e2c6;
  --violet: #c0a6e8;
  --sage: #9a9287;
  --wave: #88a384;
  --rec: #e54343;
  --rose: #e0607a;
  --hair: rgba(255,255,255,0.09);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --lights: 0;   /* premiere house-lights lift */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 480px at -5% 108%, rgba(255,255,255,0.015), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1.5s ease;
}
body.house-lights {
  background-color: #131315;
}

/* film grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 1.5s ease;
}
body.house-lights::after { opacity: 0.02; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono  { font-family: var(--mono); }

::selection { background: rgba(202,202,203,0.25); }

img { user-select: none; -webkit-user-drag: none; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--bone); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); }

/* visible keyboard focus on a near-black page */
:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}
.composer:focus-within,
.waitlist:focus-within { border-color: rgba(202,202,203,0.55); }

/* ── record dot ──────────────────────────────────────────── */
.rec-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: recBlink 1.2s steps(2, start) infinite;
  flex: 0 0 auto;
}
.rec-dot.solid { animation: none; }
@keyframes recBlink { 50% { opacity: 0.15; } }

/* ── kickers & slates ────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
}
.slate {
  position: absolute;
  top: 14%; left: 12px;
  z-index: 3;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* ═══ COLD OPEN ═══════════════════════════════════════════ */
#cold-open {
  position: fixed; inset: 0;
  z-index: 999;
  background: #050506;
  display: flex; align-items: center; justify-content: center;
}
#cold-open.done { display: none; }
.leader { position: relative; width: min(72vmin, 520px); height: min(72vmin, 520px); }
.leader-cross::before, .leader-cross::after {
  content: ''; position: absolute; background: rgba(255,255,255,0.28);
}
.leader-cross::before { left: 50%; top: -6%; bottom: -6%; width: 1px; }
.leader-cross::after  { top: 50%; left: -6%; right: -6%; height: 1px; }
.leader-ring {
  position: absolute; inset: 8%;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}
.leader-ring::after {
  content: ''; position: absolute; inset: 9%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}
.leader-wipe {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,0.09) var(--leader-sweep, 0deg), transparent 0deg);
  animation: wipe 1s linear infinite;
}
@supports (background: conic-gradient(red 0deg, blue 1turn)) {
  @property --leader-sweep { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  @keyframes wipe { from { --leader-sweep: 0deg; } to { --leader-sweep: 360deg; } }
}
.leader-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: min(34vmin, 240px);
  color: #e9e9ea;
}
.leader-meta {
  position: absolute; bottom: -14%; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: 0.22em; color: var(--mute);
  white-space: nowrap;
}
#cold-open.flash { background: #f4f4f5; }
#cold-open.flash .leader { visibility: hidden; }

/* ═══ TOP BAR ═════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: rgba(12,12,13,0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wordmark { font-size: 21px; color: var(--text-bright); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 18px; }

/* ═══ SCENES / LAYOUT ═════════════════════════════════════ */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 32px 40px;
}
.section.wide { max-width: 100%; padding-left: 0; padding-right: 0; }
.section.wide .slateboard { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 32px; }

/* clapperboard slate headers */
.slateboard { max-width: 720px; margin-bottom: 44px; }
.clapper { width: 272px; max-width: 100%; margin-bottom: 18px; }
.stick {
  height: 14px;
  border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(115deg, #dadadc 0 14px, #101012 14px 28px);
  transform-origin: left bottom;
  transform: rotate(-22deg);
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
.clapper-fields {
  font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--mute);
  border: 1px solid var(--hair);
  border-radius: 0 0 5px 5px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.02);
}
.scene.shot .stick { transform: rotate(0deg); }
.scene-no {
  font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 10px;
  opacity: 0.4;
  transition: opacity .3s ease .15s, color .3s ease .15s;
}
.scene.shot .scene-no { opacity: 1; color: var(--mute-2); }
.slateboard h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  color: var(--text-bright);
  margin-bottom: 14px;
}
.section-sub { color: var(--text-2); max-width: 54ch; }

.scene { position: relative; }

/* ═══ MEDIA FRAMES (letterboxed) ══════════════════════════ */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #000;
  border: 1px solid var(--hair);
}
.frame img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .6s ease, opacity .6s ease, transform .6s ease;
}
/* a shot's clip plays over its still; shots with no clip yet hold on the still */
.frame .frame-video {
  position: absolute; inset: 0; z-index: 0;   /* under the letterbox bars and the slates */
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .6s ease, opacity .6s ease;
}
.frame .frame-video[hidden] { display: none; }
/* the SC 02 monitor dissolves between shots — the incoming layer fades in over the outgoing one */
.nle-preview .frame-video { opacity: 0; transition: opacity .35s ease, filter .6s ease; }
.nle-preview .frame-video.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nle-preview .frame-video { transition: filter .6s ease; } }
/* letterbox bars */
.frame::before, .frame::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 9%;
  background: #000;
  z-index: 2;
  transition: height .5s ease;
}
.frame::before { top: 0; }
.frame::after { bottom: 0; }

/* ── LOOK CASCADE — one decision, every frame obeys ─────── */
body[data-look="sun"]    .media img, body[data-look="sun"] .media .frame-video { filter: sepia(.38) saturate(1.12) contrast(1.08) brightness(1.04); }
body[data-look="teal"]   .media img, body[data-look="teal"] .media .frame-video { filter: saturate(1.3) hue-rotate(-12deg) contrast(1.12) brightness(0.98); }
body[data-look="violet"] .media img, body[data-look="violet"] .media .frame-video { filter: saturate(1.05) hue-rotate(24deg) contrast(1.07) brightness(0.92); }
body[data-look="kodak"]  .media img, body[data-look="kodak"] .media .frame-video { filter: sepia(.24) saturate(1.4) contrast(1.04) brightness(1.05); }

/* ═══ SC 01 · HERO ════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px 32px 60px;
}
.hero-copy h1 {
  font-size: clamp(52px, 6.2vw, 96px);
  line-height: 0.98;
  color: var(--text-bright);
  margin: 22px 0 24px;
  letter-spacing: -0.01em;
}
.hero-copy h1 em { color: var(--cream); }
.hero-sub { color: var(--text-2); max-width: 46ch; margin-bottom: 30px; }
.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hero-stage { min-width: 0; }
#hero-frame { aspect-ratio: 2.39 / 1; }
#hero-still, #hero-video { transition: filter .9s ease, opacity .9s ease; }
#hero-frame.resolving #hero-still, #hero-frame.resolving #hero-video { filter: blur(14px) brightness(0.4); opacity: 0.6; }
body[data-look] #hero-frame.resolving #hero-still, body[data-look] #hero-frame.resolving #hero-video { filter: blur(14px) brightness(0.4) !important; }

.take-badge {
  position: absolute; right: 12px; top: 14%;
  z-index: 3;
  font-size: 9px; letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 5px;
}
#hero-slate { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
#hero-slate.pop { animation: slatePop .35s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes slatePop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

/* composer inside the frame */
.composer {
  position: absolute;
  left: 12px; right: 12px; bottom: 12%;
  z-index: 4;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 8px;
}
.model-pill, .pill {
  font-size: 10.5px;
  color: #dadadc;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 5px 10px;
  white-space: nowrap;
}
.pill { color: var(--mute-2); }
.composer-field {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  min-width: 0;
  padding: 0 4px 0 8px;
}
#prompt-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream-2);
  font-family: var(--mono);
  font-size: 12px;
  caret-color: var(--bone);
}
#prompt-input::placeholder { color: var(--mute); }
#prompt-input.ghost { color: #cbc1b4; }
.composer-go { padding: 8px 13px; font-size: 12px; }

.attract-note {
  margin-top: 12px;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
  transition: opacity .4s ease;
}

/* prompt chips */
.prompt-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.prompt-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #e7ddcd;
  background: rgba(202,195,203,0.09);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .15s ease;
  text-align: left;
}
.prompt-chip:hover { background: rgba(202,195,203,0.16); }

/* takes row */
.takes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  min-height: 0;
}
.take-card {
  position: relative;
  aspect-ratio: 2.39 / 1;
  border-radius: 7px;
  overflow: hidden;
  background: #0d0d0f;
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  padding: 0;
}
.take-card:hover { transform: translateY(-2px); }
.take-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .5s ease, filter .6s ease;
}
.take-card.resolved img { opacity: 1; }
.take-card .take-label {
  position: absolute; left: 7px; bottom: 7px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8.5px; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .3s ease .2s;
}
.take-card.resolved .take-label { opacity: 1; }
.take-card .take-status {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--mute-2);
  text-transform: lowercase;
}
.take-card.resolved .take-status { display: none; }
/* shimmer sweep while generating */
.take-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: shimmer 1.4s linear infinite;
}
.take-card.resolved::after { display: none; }
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
/* primary selection */
.take-card.primary { border: 2px solid var(--bone); }
.take-card .primary-chip {
  position: absolute; right: 7px; bottom: 7px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--ink);
  background: var(--bone);
  padding: 2px 6px;
  border-radius: 4px;
  display: none;
}
.take-card.primary .primary-chip { display: block; }

/* ═══ SC 02 · NLE ═════════════════════════════════════════ */
.nle {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 18px;
}
.nle-preview {
  aspect-ratio: 2 / 1;      /* a touch taller than scope — the booth clips are 16:9 */
  max-height: 56vh;
  width: 100%;
}
.nle-preview img { transition: filter .6s ease; }
.timecode {
  position: absolute; right: 12px; bottom: 14%;
  z-index: 3;
  font-size: 10.5px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.transport {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 2px 12px;
}
.play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bone);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: filter .15s ease;
  flex: 0 0 auto;
}
.play-btn:hover { filter: brightness(1.06); }
.master-caption { font-size: 10.5px; color: var(--mute-2); letter-spacing: 0.04em; }
.master-caption .yours { color: var(--cream-2); }

.timeline {
  position: relative;
  user-select: none;
  touch-action: none;
  cursor: crosshair;
  padding-top: 18px;
}
.ruler {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #9a9a9d;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.track { display: flex; gap: 3px; height: 64px; }
.clip {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: border-color .15s ease, transform .3s cubic-bezier(.2,.8,.2,1);
  background: #0d0d0f;
}
.clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip .clip-label {
  position: absolute; left: 5px; bottom: 4px;
  font-family: var(--mono);
  font-size: 7.5px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip.swap-armed { border: 2px solid var(--bone); }
.clip.is-primary::after {
  content: '★';
  position: absolute; top: 4px; right: 5px;
  font-size: 9px;
  color: var(--ink);
  background: var(--bone);
  border-radius: 3px;
  padding: 0 4px;
}
.track-audio { margin-top: 3px; height: 26px; border-radius: 5px; background: rgba(136,163,132,0.12); overflow: hidden; }
.waveform { display: flex; align-items: center; gap: 1px; height: 100%; padding: 0 2px; }
.waveform i {
  flex: 1;
  background: var(--wave);
  border-radius: 2px;
  opacity: 0.4;
  min-width: 2px;
  transition: opacity .2s ease;
}
.waveform i.near { opacity: 0.95; }
.playhead {
  position: absolute;
  top: 12px; bottom: 0;
  left: 0;
  width: 1.5px;
  background: var(--bone);
  cursor: ew-resize;
  z-index: 4;
}
.ph-handle {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 15px; height: 15px;
  background: var(--bone);
  border-radius: 50%;
  cursor: grab;
}
.playhead.dragging .ph-handle { cursor: grabbing; }
/* generous hit area */
.playhead::before { content: ''; position: absolute; inset: -8px -12px; }
.hint { margin-top: 12px; font-size: 9.5px; color: var(--mute-2); letter-spacing: 0.08em; }

/* ═══ SC 03 · DEVELOP ═════════════════════════════════════ */
.rail-kicker {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--mute-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rail-kicker .dim { color: var(--mute); text-transform: none; letter-spacing: 0.06em; }
.rail-kicker .np { color: var(--violet); text-transform: none; letter-spacing: 0.06em; margin-left: 8px; }
.rail-kicker.pulse { animation: kickerPulse .6s ease 1; }
@keyframes kickerPulse { 50% { opacity: 0.35; } }

.cast-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.cast-card { perspective: 1100px; cursor: default; outline: none; }
.cast-inner {
  position: relative;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3,.9,.3,1);
}
.cast-card:hover .cast-inner,
.cast-card:focus-visible .cast-inner { transform: rotateY(180deg); }
.cast-front, .cast-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.cast-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-front figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(8,8,9,0.92));
  display: flex; flex-direction: column; gap: 2px;
}
.cast-name { font-size: 23px; color: var(--cream); line-height: 1; }
.cast-role { font-size: 8.5px; letter-spacing: 0.1em; color: var(--mute-2); }
.cast-back {
  transform: rotateY(180deg);
  background: var(--surface);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 10px;
  color: var(--text-2);
  line-height: 1.55;
  overflow-y: auto;
}
.cast-back-title { color: var(--cream-2); letter-spacing: 0.1em; font-size: 9.5px; }
.cast-quote { color: var(--mute-2); font-style: italic; }
.cast-status { margin-top: auto; color: var(--sage); font-size: 9px; }

.look-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.look-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 7px 13px 7px 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.look-chip i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.look-chip:hover { background: rgba(255,255,255,0.09); }
.look-chip.active { background: var(--bone); color: var(--ink); font-weight: 600; }

/* ═══ SC 04 · DELIVER ═════════════════════════════════════ */
.deliver { display: flex; flex-direction: column; align-items: flex-start; }
.format-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.format-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: none;
  border-radius: 7px;
  padding: 8px 13px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.format-chip:hover { background: rgba(255,255,255,0.09); }
.format-chip.active { background: var(--bone); color: var(--ink); font-weight: 600; }
.format-chip .fc-ratio { opacity: 0.6; margin-left: 6px; }

.reframe-stage {
  height: min(46vh, 420px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reframe {
  height: 100%;
  width: calc(min(46vh, 420px) * 2.39);
  max-width: 100%;
  transition: width .65s cubic-bezier(.5,.1,.2,1);
}
.reframe img { object-position: 50% 40%; transition: filter .6s ease, object-position .65s ease; }
.reframe::before { height: var(--bar-h, 9%); }
.reframe::after  { height: var(--bar-h, 9%); }
.safe-guides {
  position: absolute; inset: 6% 8%;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 4px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.safe-guides.show { opacity: 1; }
.spec-line {
  margin-top: 14px;
  font-size: 11px;
  color: var(--mute-2);
  letter-spacing: 0.06em;
  min-height: 18px;
  font-variant-numeric: tabular-nums;
}
.caret {
  display: inline-block;
  width: 7px; height: 12px;
  margin-left: 3px;
  background: var(--bone);
  vertical-align: -1px;
  animation: recBlink 1.1s steps(2, start) infinite;
}

.receipt {
  margin-top: 34px;
  width: min(430px, 100%);
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
  padding: 16px 18px 18px;
  font-size: 10.5px;
  line-height: 2.1;
  color: #a9a9ac;
}
.receipt-head {
  color: var(--mute);
  letter-spacing: 0.14em;
  font-size: 9px;
  border-bottom: 1px dashed rgba(255,255,255,0.14);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.receipt-line { display: flex; align-items: baseline; gap: 9px; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.receipt-line.in { opacity: 1; transform: none; }
.receipt-line .dot { color: var(--sage); }
.receipt-line .ok { margin-left: auto; color: var(--sage); }

/* ═══ SC 05 · DAILIES ═════════════════════════════════════ */
.projector { position: relative; display: grid; margin-bottom: 54px; overflow: hidden; /* clips the gate's page-wide shadow */ }
/* the gate is pinned to the viewport's grid row, so it brackets the strip with the
   same breathing room above and below regardless of the caption's height */
.gate {
  position: absolute;
  grid-row: 1 / 2; grid-column: 1 / 2;   /* both lines explicit — an auto end line on an abspos item runs to the container edge */
  left: 50%; top: 0; bottom: 0;
  width: min(400px, 56vw);
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(5,5,6,0.44);
}
.filmstrip-viewport {
  overflow: hidden;
  cursor: grab;
  padding: 26px 0;
  touch-action: pan-y;
}
.filmstrip-viewport.dragging { cursor: grabbing; }
.filmstrip {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  /* sprocket holes */
  padding: 14px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,0.13) 10px 16px, transparent 16px 26px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,0.13) 10px 16px, transparent 16px 26px) bottom / 100% 6px no-repeat,
    #0d0d0e;
}
.strip-frame {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 62vw);
  aspect-ratio: 2.39 / 1;
  margin: 0 5px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform .35s ease, box-shadow .35s ease;
}
.strip-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.55) saturate(0.85);
  transition: filter .35s ease;
}
body[data-look="sun"]    .strip-frame.lit img { filter: brightness(1) sepia(.38) saturate(1.12) contrast(1.08); }
body[data-look="teal"]   .strip-frame.lit img { filter: brightness(1) saturate(1.3) hue-rotate(-12deg) contrast(1.12); }
body[data-look="violet"] .strip-frame.lit img { filter: brightness(0.95) saturate(1.05) hue-rotate(24deg) contrast(1.07); }
body[data-look="kodak"]  .strip-frame.lit img { filter: brightness(1) sepia(.24) saturate(1.4) contrast(1.04); }
.strip-frame.lit { transform: scale(1.06); box-shadow: 0 8px 44px rgba(0,0,0,0.7); z-index: 2; }
.strip-frame.lit img { filter: brightness(1) saturate(1); }
.strip-frame .slate { font-size: 8px; top: 10%; }
.strip-caption {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--mute-2);
  margin-top: 4px;
  min-height: 16px;
  text-transform: uppercase;
}
.strip-caption .saved { color: var(--sage); }
.strip-caption .community { color: #84a39a; }

.screening-room { max-width: 680px; margin: 0 auto; padding: 0 32px; }
.comment {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comment .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink);
}
.comment-body { flex: 1; min-width: 0; }
.comment-handle { font-family: var(--mono); font-size: 9.5px; color: var(--mute); margin-bottom: 2px; }
.comment-text { font-family: var(--mono); font-size: 11.5px; color: #cfcfd1; line-height: 1.7; min-height: 19px; }
.heart {
  background: none; border: none;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 4px;
  transition: color .15s ease;
  flex: 0 0 auto;
}
.heart:hover { color: var(--rose); }
.heart.filled { color: var(--rose); }
.heart.filled .glyph { animation: heartPop .3s cubic-bezier(.34,1.56,.64,1) 1; display: inline-block; }
@keyframes heartPop { 50% { transform: scale(1.45); } }

/* ═══ SC 06 · PREMIERE ════════════════════════════════════ */
.premiere {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}
.premiere .scene-no { opacity: 1; color: var(--mute); margin-bottom: 22px; }
/* cinema mode: the picture rolls and the credits crawl — the house stays lit */

.premiere-frame {
  aspect-ratio: 2 / 1;      /* Aqua 3034 is 16:9 — 2:1 keeps the widescreen feel with less crop */
  width: 100%;
  margin: 0 auto;
}
#premiere-still { transform: scale(1); }
body.cinema #premiere-still { animation: kenburns 12s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.06); } }

.credits {
  position: absolute; inset: 9% 0;
  z-index: 3;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5,5,6,0) 0%, rgba(5,5,6,0.10) 55%, rgba(5,5,6,0.42) 100%);   /* a footing for the crawl, not a scrim over the picture */
  opacity: 0;
  transition: opacity 1.2s ease .6s;
}
body.cinema .credits { opacity: 1; }
.credits-crawl {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  transform: translateY(105%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 22px rgba(0,0,0,0.7);   /* legible over the unshaded picture */
}
body.cinema .credits-crawl { animation: crawl 26s linear 1.4s forwards; }
.credits:hover .credits-crawl,
.credits:focus-within .credits-crawl { animation-play-state: paused; }
@keyframes crawl {
  from { transform: translateY(105%); }
  to   { transform: translateY(calc(-100% + 46cqh)); }
}
.credits { container-type: size; }
.cr-kicker { font-size: 9.5px; letter-spacing: 0.3em; color: var(--mute-2); }
.cr-big { font-size: clamp(28px, 4.5cqw, 54px); color: var(--cream); line-height: 1; }
.cr-line { font-size: 10px; letter-spacing: 0.22em; color: #bcbcbe; }
.cr-name { font-size: clamp(24px, 3.4cqw, 40px); color: var(--text-bright); line-height: 1.1; }
#director-name {
  outline: none;
  border-bottom: 1px dashed rgba(255,255,255,0.25);
  padding: 0 6px;
  cursor: text;
}
#director-name:focus { border-bottom-color: var(--bone); }
.cr-caret {
  display: inline-block;
  width: 9px; height: 26px;
  margin-left: 6px;
  background: var(--bone);
  animation: recBlink 1.1s steps(2, start) infinite;
  vertical-align: -2px;
}
.cr-caret.off { display: none; }
.cr-prompt-label { margin-top: 10px; }
.cr-prompt {
  font-size: 11.5px;
  color: #cbc1b4;
  max-width: 52ch;
  line-height: 1.8;
}

.premiere .house-lights { margin-top: 64px; }
.closing-line { font-size: clamp(26px, 3.2vw, 40px); color: var(--text-bright); margin-bottom: 26px; }
.waitlist {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  padding: 9px 10px 9px 16px;
  max-width: 100%;
}
#waitlist-email {
  background: transparent;
  border: none; outline: none;
  color: var(--cream-2);
  font-family: var(--mono);
  font-size: 12px;
  width: min(240px, 46vw);
  caret-color: var(--bone);
}
#waitlist-email::placeholder { color: var(--mute); }
.waitlist-note {
  margin-top: 14px;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ═══ ACT-BREAK INTERSTITIALS ═════════════════════════════ */
/* ═══ SC 02A · THE STUDIO — one real frame of the product ═══ */
.studio-shot {
  border-radius: 9px;
  border: 1px solid var(--hair);
  background: #0e0e10;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.studio-chrome {
  display: flex; align-items: center; gap: 12px;
  height: 30px; padding: 0 12px;
  border-bottom: 1px solid var(--hair);
  font-size: 9.5px; letter-spacing: 0.08em; color: var(--mute-2);
}
.studio-dots { display: inline-flex; gap: 5px; flex: none; }
.studio-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.studio-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-shot img { display: block; width: 100%; height: auto; object-fit: cover; }   /* ratio comes from each img's width/height */
.studio-notes {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 26px;
  font-size: 11px; line-height: 1.6; color: var(--text-2); letter-spacing: 0.02em;
}
.studio-notes li { padding-top: 12px; border-top: 1px solid var(--hair); }
.studio-key { display: block; margin-bottom: 6px; font-size: 9.5px; letter-spacing: 0.22em; color: var(--mute-2); }
.studio-notes em { font-style: normal; color: var(--cream); }
/* SC 02B — the MCP frame, a beat below the first */
.studio-connect { margin-top: 84px; }
.studio-connect-head { margin-bottom: 26px; }
.studio-connect-head .scene-no { opacity: 1; color: var(--mute-2); }
.studio-connect-head h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.interstitial {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20vh 32px;
  text-align: center;
}
.interstitial .kicker { justify-content: center; margin-bottom: 24px; }
.interstitial-line {
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.interstitial-line em { color: var(--cream); font-style: italic; }
.interstitial.shot .interstitial-line { opacity: 1; transform: none; }
.interstitial-sub {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .8s ease .4s;
}
.interstitial.shot .interstitial-sub { opacity: 1; }
@media (max-width: 980px) {
  .studio-notes { grid-template-columns: 1fr; gap: 14px; }
  .interstitial { padding: 13vh 20px; }
}

/* ═══ FOOTER ══════════════════════════════════════════════ */
.callsheet {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 26px 32px 30px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ═══ TOAST ═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 150;
  font-size: 10.5px;
  color: var(--sage);
  background: #1c1c1f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 15px;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1), opacity .35s ease;
}
.toast.show { transform: none; opacity: 1; }

/* ═══ GLASS CURSOR — instructional affordance ═════════════ */
.glass-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 190;               /* under the grain so the film texture stays uniform */
  pointer-events: none;
  will-change: transform;
  display: none;              /* hover-capable fine pointers only */
}
.glass-cursor .disc {
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  border: 1px solid rgba(202,202,203,0.36);
  background: rgba(10,10,11,0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;        /* recenter the tracked-out label */
  text-transform: uppercase;
  color: var(--text-bright);
  opacity: 0;
  transform: scale(0.55);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
/* while the disc is up it IS the cursor — no hand/beam underneath the label */
body.gc-live, body.gc-live * { cursor: none !important; }
.glass-cursor.on .disc { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .glass-cursor { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-cursor { display: none !important; }
}

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 100px; min-height: 0; }
  #hero-frame { aspect-ratio: 16 / 9; }
  /* the booth clips are 16:9 — a 2.39 monitor crops the decks off the bottom on a phone */
  .nle-preview { aspect-ratio: 16 / 9; }
  .take-badge { display: none; }
  .take-card { aspect-ratio: 16 / 9; }
  .take-card .take-status { font-size: 8px; padding: 0 4px; text-align: center; }
  .take-card .take-label { font-size: 7.5px; }
  .cast-cards { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .composer { left: 8px; right: 8px; bottom: 11%; padding: 6px; gap: 6px; }
  .composer .model-pill { display: none; }
  .composer-go { padding: 7px 10px; font-size: 11px; }
  .section { padding: 80px 20px 30px; }
  .section.wide { padding-left: 0; padding-right: 0; }
  .section.wide .slateboard { padding: 0 20px; }
  .screening-room { padding: 0 20px; }
  .premiere { padding: 90px 20px 60px; }
  /* Aqua 3034 is 16:9 — same reasoning as the hero and the SC 02 monitor */
  .premiere-frame { aspect-ratio: 16 / 9; }
  .reframe-stage { height: min(52vw, 300px); }
  .reframe { width: calc(min(52vw, 300px) * 2.39); }
  .track { height: 48px; }
  .clip .clip-label { display: none; }
  .takes-row { gap: 6px; }
  .credits-crawl { gap: 9px; }
  .topbar { padding: 0 14px; }
  /* 16px inputs stop iOS Safari's focus auto-zoom */
  #prompt-input, #waitlist-email { font-size: 16px; }
  /* waveform must compress below ~360px */
  .waveform { gap: 0; padding: 0 1px; }
  .waveform i { min-width: 1px; border-radius: 1px; }
  .cast-back { padding: 10px; gap: 6px; font-size: 9.5px; }
}

/* ═══ REDUCED MOTION ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.cinema .credits-crawl { animation: none; transform: translateY(0); }
  .credits { overflow-y: auto; }
}
