/* Fablori: three grounds, hard changes. Paper, the dark room, violet house lights. */
:root {
  --sc-canvas: #F8F7F3;
  --sc-surface: #FFFFFF;
  --sc-ink: #16161C;
  --sc-ink-soft: #55555F;
  --sc-accent: #5B45F0;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --bar-h: 60px;
  --r-s: 6px;
  --r-m: 12px;
  --safe-b: 118px; /* the player's invite and bar live here */
}
/* In the dark the player and the bar go dark too. */
:root[data-lights="off"] {
  --sc-canvas: #101015;
  --sc-surface: #1A1A22;
  --sc-ink: #F3F2F8;
  --sc-ink-soft: #AEADBC;
  --sc-accent: #B3A7FF;
  --sc-accent-ink: #14121F;
}
html { scroll-behavior: auto; }
body { margin: 0; background: #101015; color: #16161C; font-family: var(--sc-font-text); overflow-x: clip; }
img { display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.g-paper { --sc-canvas: #F8F7F3; --sc-surface: #FFF; --sc-ink: #16161C; --sc-ink-soft: #55555F; --sc-accent: #5B45F0; --sc-accent-ink: #FFF; background: #F8F7F3; color: #16161C; }
.g-dark { --sc-canvas: #101015; --sc-surface: #1A1A22; --sc-ink: #F3F2F8; --sc-ink-soft: #B4B3C2; --sc-accent: #B3A7FF; --sc-accent-ink: #14121F; background: #101015; color: #F3F2F8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-m);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.012em; text-decoration: none;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--sc-accent) 60%, #16161C);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms ease-out;
}
.btn:hover { background: color-mix(in srgb, var(--sc-accent) 88%, #000); }
.btn:active { transform: translateY(1px) scale(0.985); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: var(--r-s); }

/* ---------- the bar ---------- */
.bar {
  --bar-bg: rgba(248, 247, 243, .94); --bar-ink: #16161C; --bar-soft: #55555F; --bar-a: #5B45F0; --bar-ai: #FFF; --bar-line: rgba(22, 22, 28, .1);
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: clamp(16px, 3vw, 40px);
  background: var(--bar-bg); color: var(--bar-ink); box-shadow: 0 1px 0 var(--bar-line);
  transition: background-color 420ms ease-out, color 420ms ease-out;
}
:root[data-lights="off"] .bar { --bar-bg: rgba(16, 16, 21, .95); --bar-ink: #F3F2F8; --bar-soft: #AEADBC; --bar-a: #B3A7FF; --bar-ai: #14121F; --bar-line: rgba(243, 242, 248, .1); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; color: inherit; text-decoration: none; flex: none; }
.mark svg { width: 28px; height: 28px; }
.mark__back { fill: #5B45F0; }
.mark__front { fill: var(--bar-ink); transition: fill 420ms ease-out; }
.mark__play { fill: var(--bar-bg); }
:root[data-lights="off"] .mark__play { fill: #101015; }
.steps { display: flex; align-items: center; gap: clamp(5px, 1.4vw, 22px); }
.step { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--bar-soft); text-decoration: none; }
.step::after { content: ""; position: absolute; inset: -14px -3px; } /* grown hit area */
.step i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none;
  font-style: normal; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--bar-ink) 9%, transparent); color: var(--bar-soft);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.step[data-on="done"] i { background: color-mix(in srgb, var(--bar-a) 22%, transparent); color: var(--bar-ink); }
.step[data-on="now"] { color: var(--bar-ink); }
.step[data-on="now"] i { background: var(--bar-a); color: var(--bar-ai); }
.step:hover { color: var(--bar-ink); }
.btn--bar { min-height: 40px; padding: 0 16px; font-size: .9375rem; background: var(--bar-a); color: var(--bar-ai); box-shadow: none; flex: none; }
.btn--bar:hover { background: color-mix(in srgb, var(--bar-a) 88%, #000); }
:root[data-lights="off"] .btn--bar:hover { background: color-mix(in srgb, var(--bar-a) 85%, #fff); }

/* ---------- hero ---------- */
.hero { position: relative; height: max(100svh, 700px); overflow: clip; background: #EFECE4; isolation: isolate; }
.hero__plane { position: absolute; will-change: transform; }
.hero__wall { inset: -3% -3% -8% -3%; z-index: 0; }
.hero__wall img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 100%; }
/* The light band is its own plane, so it slides across the wall independently. */
.hero__beam {
  z-index: 1; top: -20%; bottom: -20%; left: 40%; width: 36%; transform-origin: center;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,250,235,.5) 45%, rgba(255,250,235,.5) 55%, rgba(255,255,255,0));
  mix-blend-mode: soft-light; rotate: 24deg;
}
.hero__prints { position: absolute; inset: 0; z-index: 2; }
.print {
  position: absolute; margin: 0; padding: .42vw; background: #FDFCF9; width: var(--w); will-change: transform;
  box-shadow: 0 1px 1px rgba(60, 48, 30, .2), 3px 12px 22px -6px rgba(60, 48, 30, .38);
}
.print::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 62px; height: 20px; margin-left: -31px; rotate: -2deg;
  background: rgba(232, 224, 198, .86); box-shadow: 0 1px 1px rgba(60, 48, 30, .14);
}
.print img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.print--1 { --w: 15vw; left: 49vw; top: 15%; }
.print--2 { --w: 17vw; left: 66vw; top: 11%; }
.print--3 { --w: 14vw; left: 83vw; top: 19%; }
.print--4 { --w: 15vw; left: 52vw; top: 45%; }
.print--5 { --w: 13vw; left: 69vw; top: 41%; }
.hero__copy { position: absolute; z-index: 3; left: clamp(16px, 5.5vw, 88px); top: calc(var(--bar-h) + clamp(32px, 13vh, 140px)); width: min(41vw, 640px); }
.hero__who { margin: 0 0 18px; font-weight: 600; font-size: clamp(1rem, 1.25vw, 1.1875rem); color: var(--sc-accent); letter-spacing: -0.01em; }
.hero__h1 { margin: 0; font-weight: 800; font-size: clamp(2.5rem, 5.3vw, 5.4rem); line-height: 1.02; letter-spacing: -0.042em; color: #16161C; text-wrap: balance; }
.hero__sub { margin: 24px 0 0; font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.5; color: #3F3F4A; max-width: 34em; text-wrap: pretty; font-weight: 500; }
.hero__act { margin: 32px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.hero__act span { font-size: .9375rem; font-weight: 600; color: #3F3F4A; }
.hero__camera { z-index: 4; right: -1vw; bottom: -15%; width: 31vw; min-width: 300px; }
.hero__camera img { width: 100%; height: auto; }
.hero__floor { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(to top, #F8F7F3 8%, rgba(248, 247, 243, 0)); pointer-events: none; }

/* ---------- the brief comes apart ---------- */
.board { display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); gap: clamp(24px, 3.5vw, 60px); padding: calc(var(--bar-h) + clamp(16px, 4vh, 44px)) clamp(16px, 4vw, 64px) 96px; box-sizing: border-box; align-items: start; }
.board__text { position: relative; z-index: 1; }
.board__h { margin: 0 0 clamp(14px, 2.4vh, 26px); font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.875rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.brief { margin: 0; font-size: clamp(1rem, 1.5vw, 1.4375rem); line-height: 1.56; letter-spacing: -0.012em; font-weight: 500; color: var(--sc-ink-soft); }
.brief mark {
  --m: 0; color: var(--sc-ink); font-weight: 600; padding: .08em .1em; margin: 0 -.1em; border-radius: 3px;
  background: linear-gradient(rgba(91, 69, 240, .2), rgba(91, 69, 240, .2)) no-repeat left / calc(var(--m) * 100%) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.board__note { margin: 16px 0 0; font-size: .9375rem; line-height: 1.5; font-weight: 500; color: var(--sc-ink-soft); opacity: 0; max-width: 34em; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke: var(--sc-accent); stroke-width: 1.5; stroke-linecap: round; }
.threads circle { fill: var(--sc-accent); }
.scenes { list-style: none; margin: 0; padding: 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2.2vh, 22px) clamp(12px, 1.3vw, 20px); }
.scene {
  grid-column: span 2; background: #FFF; padding: 8px 8px 10px; will-change: transform;
  box-shadow: 0 1px 1px rgba(40, 36, 50, .12), 2px 10px 22px -8px rgba(40, 36, 50, .28);
  opacity: 0;
}
.scene:nth-child(4) { grid-column: 2 / span 2; }
.scene img { width: 100%; height: clamp(84px, 22vh, 230px); object-fit: cover; }
.scene p { margin: 0; }
.scene__meta { display: flex; justify-content: space-between; margin-top: 8px !important; font-size: .75rem; font-weight: 600; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.scene__meta b { color: var(--sc-accent); font-weight: 700; }
.scene h3 { margin: 3px 0 2px; font-size: clamp(.875rem, 1.05vw, 1rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.018em; }
.scene__line { font-size: clamp(.8125rem, .95vw, .9rem); line-height: 1.34; color: #3F3F4A; }
.scene__credit { margin-top: 4px !important; font-size: .6875rem; line-height: 1.3; color: #5F5F6B; }

/* ---------- the looks ---------- */
.looks { display: flex; align-items: center; padding-top: var(--bar-h); padding-bottom: 72px; box-sizing: border-box; }
.rail { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); width: max-content; padding-inline: clamp(16px, 5.5vw, 88px); will-change: transform; }
.rail__head { width: min(78vw, 400px); flex: none; }
.rail__h { margin: 0; font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.rail__sub { margin: 18px 0 0; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--sc-ink-soft); font-weight: 500; max-width: 26em; }
.rail__rows { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 24px); flex: none; }
.rail__row { display: flex; gap: clamp(10px, 1.2vw, 18px); }
.rail__row--b { margin-left: calc(var(--look-w) * .5); }
.rail__rows { --look-w: clamp(214px, min(27vw, 44svh), 420px); }
.look {
  width: var(--look-w); flex: none; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; display: block;
}
.look__in { display: block; will-change: transform; }
.look .frame { border-radius: var(--r-s); box-shadow: 0 1px 1px rgba(40,36,50,.12), 2px 10px 20px -8px rgba(40,36,50,.3); transition: transform 160ms var(--sc-ease-out); }
.look__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-top: 8px; min-height: 2.4em; }
.look__t b { font-weight: 700; font-size: .9375rem; letter-spacing: -0.015em; }
.look__t small { font-size: .8125rem; color: var(--sc-ink-soft); font-weight: 500; }
.look__yours { display: none; align-items: center; gap: 4px; color: var(--sc-accent); font-size: .8125rem; font-weight: 700; }
.look__yours svg { width: 14px; height: 14px; }
.look[aria-pressed="true"] .frame { outline: 3px solid var(--sc-accent); outline-offset: 2px; }
.look[aria-pressed="true"] .look__yours { display: inline-flex; }
.look[aria-pressed="true"] small { display: none; }
@media (hover: hover) and (pointer: fine) { .look:hover .frame { transform: translateY(-3px); } }
.look:active .frame { transform: scale(.985); }
.rail__tail { width: min(74vw, 300px); flex: none; }
.rail__tail h3 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.shapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.shapes li { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--sc-ink-soft); font-weight: 500; }
.shapes svg { width: 40px; height: 40px; flex: none; }
.shapes rect { fill: none; stroke: var(--sc-accent); stroke-width: 2; }
.shapes b { display: block; color: var(--sc-ink); font-weight: 700; }

/* ---------- a frame of film, in one of eleven looks ---------- */
.frame { container-type: inline-size; position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; isolation: isolate; }
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__fx { position: absolute; inset: -1px; pointer-events: none; }
.frame__cap { position: absolute; margin: 0; display: block; }
/* Clean: modern, plenty of space */
[data-look="clean"] { background: #FFF; }
[data-look="clean"] .frame__img { inset: 5cqw 5cqw auto 5cqw; width: 90cqw; height: 37cqw; border-radius: 1cqw; }
[data-look="clean"] .frame__cap { left: 5cqw; right: 5cqw; bottom: 3.2cqw; color: #16161C; font-weight: 700; font-size: 3.8cqw; line-height: 1.15; letter-spacing: -0.02em; }
/* Bold: big type, punchy cuts */
[data-look="bold"] .frame__img { filter: contrast(1.15) saturate(1.25) brightness(.58); }
[data-look="bold"] .frame__cap { left: 5cqw; right: 5cqw; top: 50%; translate: 0 -50%; text-align: center; color: #FFF; font-weight: 800; font-size: 7.4cqw; line-height: 1.02; letter-spacing: -0.045em; text-transform: uppercase; }
/* Warm: friendly, soft light */
[data-look="warm"] .frame__img { filter: sepia(.38) saturate(1.25) brightness(1.04); }
[data-look="warm"] .frame__fx { background: radial-gradient(90% 90% at 30% 20%, rgba(255, 190, 110, .35), rgba(255, 140, 70, .12) 60%, rgba(120, 50, 10, .2)); }
[data-look="warm"] .frame__cap { left: 8cqw; right: 8cqw; bottom: 5cqw; text-align: center; background: #FFF6E8; color: #4A2B12; font-weight: 600; font-size: 3.4cqw; line-height: 1.2; padding: 1.6cqw 2.4cqw; border-radius: 3cqw; }
/* Dark: moody and restrained */
[data-look="dark"] { background: #09090C; }
[data-look="dark"] .frame__img { filter: brightness(.42) saturate(.55) contrast(1.15); }
[data-look="dark"] .frame__fx { background: radial-gradient(85% 85% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
[data-look="dark"] .frame__cap { left: 6cqw; right: 22cqw; bottom: 6cqw; color: #F1F0F5; font-weight: 500; font-size: 3.8cqw; line-height: 1.25; letter-spacing: -0.01em; }
/* Playful: colourful and bouncy */
[data-look="playful"] { background: #FFD23F; }
[data-look="playful"] .frame__img { inset: 6% 4% auto auto; width: 56cqw; height: 88%; border-radius: 44% 56% 52% 48% / 54% 44% 56% 46%; }
[data-look="playful"] .frame__fx { background: radial-gradient(circle at 12% 84%, #FF6B8B 0 7cqw, transparent 7.1cqw), radial-gradient(circle at 36% 10%, #3CC8B4 0 3.4cqw, transparent 3.5cqw); }
[data-look="playful"] .frame__cap { left: 4cqw; width: 38cqw; top: 28%; rotate: -3deg; color: #16161C; font-weight: 800; font-size: 4.3cqw; line-height: 1.12; letter-spacing: -0.02em; }
/* Editorial: magazine pages */
[data-look="editorial"] { background: #F4F0E8; }
[data-look="editorial"] .frame__img { inset: 0 0 0 auto; width: 54cqw; filter: saturate(.8); }
[data-look="editorial"] .frame__fx { background: linear-gradient(#1A1A1A, #1A1A1A) no-repeat 5cqw 6cqw / 36cqw 1px; }
[data-look="editorial"] .frame__cap { left: 5cqw; width: 37cqw; top: 9cqw; color: #1A1A1A; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 4.9cqw; line-height: 1.12; letter-spacing: -0.015em; }
/* Cinematic: film grade, letterbox */
[data-look="cinematic"] { background: #000; }
[data-look="cinematic"] .frame__img { filter: contrast(1.12) saturate(.82) sepia(.14) brightness(.82); }
[data-look="cinematic"] .frame__fx { background: linear-gradient(#050505, #050505) no-repeat top / 100% 11%, linear-gradient(#050505, #050505) no-repeat bottom / 100% 11%, linear-gradient(115deg, rgba(0, 72, 92, .36), rgba(255, 138, 60, .16)); }
[data-look="cinematic"] .frame__cap { left: 8cqw; right: 8cqw; bottom: 13.5%; text-align: center; color: #FFF; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 3.5cqw; line-height: 1.2; text-shadow: 0 .2cqw .7cqw rgba(0,0,0,.9); }
/* Tech: grid, HUD, timecode */
[data-look="tech"] { background: #07080D; }
[data-look="tech"] .frame__img { filter: grayscale(1) contrast(1.2) brightness(.5); }
[data-look="tech"] .frame__fx { background: repeating-linear-gradient(0deg, rgba(150,170,255,.16) 0 1px, transparent 1px 5cqw), repeating-linear-gradient(90deg, rgba(150,170,255,.16) 0 1px, transparent 1px 5cqw); }
[data-look="tech"] .frame__fx::after { content: "00:00:04"; position: absolute; top: 3.4cqw; right: 3.6cqw; color: #C9D2FF; font-family: var(--sc-font-mono); font-size: 2.8cqw; }
[data-look="tech"] .frame__fx::before { content: ""; position: absolute; inset: 3cqw; border: 1px solid rgba(201, 210, 255, .5); }
[data-look="tech"] .frame__cap { left: 6cqw; right: 6cqw; bottom: 6cqw; color: #E1E6FF; font-family: var(--sc-font-mono); font-size: 3.1cqw; line-height: 1.25; }
/* Minimal: white space, one colour */
[data-look="minimal"] { background: #FFF; }
[data-look="minimal"] .frame__img { inset: 6cqw auto auto 6cqw; width: 22cqw; height: 22cqw; filter: grayscale(1) contrast(1.05); }
[data-look="minimal"] .frame__cap { left: 6cqw; right: 12cqw; bottom: 6cqw; color: #5B45F0; font-weight: 600; font-size: 4.6cqw; line-height: 1.14; letter-spacing: -0.025em; }
/* Retro: seventies poster, grain */
[data-look="retro"] { background: #C4501B; }
[data-look="retro"] .frame__img { inset: 0 0 auto 0; height: 100%; filter: sepia(.85) contrast(1.15) brightness(.62) saturate(1.5); }
[data-look="retro"] .frame__fx { background: linear-gradient(#E9A23B, #E9A23B) no-repeat 0 100% / 100% 3cqw, linear-gradient(#C4501B, #C4501B) no-repeat 0 calc(100% - 3cqw) / 100% 3cqw, linear-gradient(#6E2A12, #6E2A12) no-repeat 0 calc(100% - 6cqw) / 100% 3cqw; }
[data-look="retro"] .frame__fx::after { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); }
[data-look="retro"] .frame__cap { left: 6cqw; right: 6cqw; top: 8cqw; color: #FFF1D6; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 6cqw; line-height: 1.04; letter-spacing: -0.02em; text-shadow: .25cqw .25cqw 0 #5C210C; }
/* Luxe: green and gold, slow */
[data-look="luxe"] { background: #0E3B2E; }
[data-look="luxe"] .frame__img { filter: grayscale(1) brightness(.72) contrast(1.05); mix-blend-mode: luminosity; opacity: .62; }
[data-look="luxe"] .frame__fx { box-shadow: inset 0 0 0 1px #E3C67A; inset: 3cqw; }
[data-look="luxe"] .frame__cap { left: 8cqw; right: 8cqw; bottom: 8cqw; text-align: center; color: #F0D894; font-family: Georgia, "Times New Roman", serif; font-size: 3.2cqw; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 .15cqw .6cqw rgba(6, 30, 22, .9); }

/* ---------- the room ---------- */
.room-mark { position: absolute; top: 31%; left: 0; width: 1px; height: 1px; }
#screening { position: relative; }
.room { background: #08080B; }
.room__plate { position: absolute; inset: -4%; will-change: transform; }
.room__plate img { width: 100%; height: 100%; object-fit: cover; }
.room__spill { position: absolute; left: 50%; top: 40%; width: 96vw; height: 90vh; translate: -50% -50%; opacity: 0; mix-blend-mode: screen; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent); mask-image: radial-gradient(closest-side, #000 52%, transparent); }
.room__spill img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.2); }
.room__film { position: absolute; z-index: 2; left: 50%; top: calc(var(--bar-h) + clamp(14px, 3.4vh, 34px)); translate: -50% 0; width: min(66vw, 104svh); }
.room__screen { position: relative; aspect-ratio: 16 / 9; background: #17171D; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.room__screen .frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; visibility: hidden; }
.room__screen .frame.is-on { visibility: visible; }
.room__screen .frame__img { will-change: transform; }
.room__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: .875rem; font-weight: 500; color: #D3D2DE; }
.room__meta p { margin: 0; }
.room__meta b { color: #FFF; font-weight: 700; }
.room__time { font-variant-numeric: tabular-nums; flex: none; color: #FFF; font-weight: 600; }
.room__track { display: flex; gap: 3px; margin-top: 8px; }
.room__seg { position: relative; flex: var(--s) 1 0; min-width: 0; padding: 12px 0 0; background: none; border: 0; color: #C5C4D2; font: inherit; font-size: .75rem; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.room__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.room__seg i { position: absolute; left: 0; right: 0; top: 2px; height: 4px; border-radius: 2px; background: #B3A7FF; transform: scaleX(0); transform-origin: left; }
.room__seg[data-on="1"] { color: #FFF; font-weight: 600; }
.room__seg:focus-visible { outline-offset: 2px; }
.room__seats { position: absolute; z-index: 3; left: -6vw; right: -6vw; top: 77svh; will-change: transform; pointer-events: none; }
.room__seats img { width: 100%; height: auto; filter: brightness(1.45) contrast(.95); }
.room__lights { position: absolute; z-index: 4; inset: 0; background: #F8F7F3; will-change: opacity; pointer-events: none; }
.sheet { position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% -56%; width: min(100vw - 32px, 720px); color: #16161C; }
.sheet__stage { margin: 0 0 14px; font-weight: 600; font-size: 1rem; color: #5B45F0; }
.sheet__h { margin: 0 0 clamp(20px, 4vh, 36px); font-weight: 800; font-size: clamp(2.125rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -0.04em; text-wrap: balance; }
.sheet__list { margin: 0; display: grid; }
.sheet__list > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(22, 22, 28, .14); font-size: 1rem; line-height: 1.35; }
.sheet__list dt { font-weight: 700; }
.sheet__list dd { margin: 0; color: #3F3F4A; font-weight: 500; }

/* ---------- reading break after the film ---------- */
.h-lg { margin: 0; font-weight: 800; font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.05; letter-spacing: -0.038em; text-wrap: balance; }
.h-sm { margin: 0; font-weight: 700; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -0.022em; }
.body { margin: 0; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.62; letter-spacing: .002em; color: var(--sc-ink-soft); max-width: 58ch; text-wrap: pretty; font-weight: 450; }
.sc-section.web { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(48px, 7vh, 88px); }
.web__grid { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.web__text > * + * { margin-top: 18px; }
.web__text > .h-sm { margin-top: 36px; }
.web__shot { margin: 0; }
.web__shot img { width: 100%; height: auto; border-radius: var(--r-m); box-shadow: 0 2px 2px rgba(0,0,0,.4), 0 26px 44px -18px rgba(0,0,0,.8); }

.sc-section.prog { padding-block: clamp(32px, 6vh, 80px); }
.prog__head > * + * { margin-top: 14px; }
.prog__frames { position: relative; display: grid; grid-template-columns: 7fr 3.2fr 5fr; gap: clamp(10px, 1.6vw, 24px); align-items: start; margin-top: clamp(28px, 5vh, 56px); }
.still { margin: 0; }
.still img { width: 100%; height: auto; border-radius: var(--r-s); box-shadow: 0 18px 34px -16px rgba(0,0,0,.8); }
.still figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.35; color: var(--sc-ink-soft); font-weight: 500; }
.still--tall { margin-top: 34px; }
.still--mid { margin-top: 70px; }
.films { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 5vh, 56px); font-variant-numeric: tabular-nums; }
.films tr { border-top: 1px solid var(--sc-hairline-strong); }
.films th, .films td { padding: 11px 16px 11px 0; text-align: left; vertical-align: baseline; font-size: .9375rem; font-weight: 500; color: var(--sc-ink-soft); }
.films td:last-child, .films th:last-child { padding-right: 0; }
.films tbody th { color: var(--sc-ink); font-weight: 700; font-size: 1rem; letter-spacing: -0.012em; width: 72%; }
.films small { display: inline; margin-left: 10px; font-weight: 500; font-size: .875rem; color: var(--sc-ink-soft); letter-spacing: 0; }

.sc-section.terms { padding-block: clamp(32px, 6vh, 80px) clamp(64px, 10vh, 120px); }
.terms__grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.terms__bill .body { margin-top: 14px; }
.bill { margin: clamp(20px, 3.5vh, 36px) 0 0; }
.bill > div { display: grid; grid-template-columns: 8em 7.5em 1fr; gap: 4px 16px; padding: 13px 0; border-top: 1px solid var(--sc-hairline-strong); align-items: baseline; }
.bill dt { font-weight: 700; font-size: 1rem; }
.bill dd { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--sc-ink-soft); font-weight: 500; }
.bill .bill__price { color: var(--sc-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.terms__agent > * + * { margin-top: 14px; }
.code { margin: 20px 0 0 !important; padding: 16px; background: #1A1A22; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px rgba(243, 242, 248, .08); overflow-x: auto; font-family: var(--sc-font-mono); font-size: .8125rem; line-height: 1.6; color: #E4E3EE; max-width: 100%; }
.code code { font: inherit; }
.code .c { color: #B4B3C2; }

/* ---------- house lights ---------- */
.close { display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(16px, 5.5vw, 88px) 130px; box-sizing: border-box; color: #FFF; }
.close__lights { position: absolute; inset: 0; background: #5B45F0; }
.close__inner { position: relative; z-index: 1; padding-top: var(--bar-h); margin-bottom: 60px; }
.close__h { margin: 0; font-weight: 800; font-size: clamp(3.25rem, min(11.2vw, 20svh), 11rem); line-height: .96; letter-spacing: -0.05em; }
.close__q { margin: clamp(18px, 3vh, 30px) 0 clamp(20px, 3.4vh, 34px); font-size: clamp(1.0625rem, 1.7vw, 1.5rem); line-height: 1.4; font-weight: 500; max-width: 34em; }
.close__inner p:last-child { margin: 0; }
.btn--big { min-height: 64px; padding: 0 38px; font-size: 1.25rem; background: #FFF; color: #4A34D8; box-shadow: 0 8px 20px -8px rgba(20, 12, 70, .6); }
.btn--big:hover { background: #ECE9FF; }
.btn--big:focus-visible { outline-color: #FFF; }
.close__foot { position: absolute; z-index: 1; left: clamp(16px, 5.5vw, 88px); right: clamp(16px, 5.5vw, 88px); bottom: 150px; display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; font-weight: 500; line-height: 1.4; color: #FFF; }
.close__foot p { margin: 0; }

/* ---------- player clearance on narrow phones and short laptops ---------- */
@media (max-width: 860px) {
  :root { --safe-b: 150px; }
  .step span { display: none; }
  .step { gap: 0; }
  .step i { width: 23px; height: 23px; }
  .mark { font-size: 1.0625rem; gap: 6px; }
  .mark svg { width: 24px; height: 24px; }
  .btn--bar { min-height: 38px; padding: 0 11px; font-size: .8125rem; }
  .bar { gap: 6px; padding-inline: 14px; }

  /* hero: copy on top, wall and prints below */
  .hero { height: max(100svh, 760px); }
  .hero__wall { inset: 0 -10% 0 -40%; }
  .hero__wall img { object-position: 78% 100%; }
  .hero__copy { left: 16px; right: 16px; width: auto; top: calc(var(--bar-h) + 22px); }
  .hero__who { margin-bottom: 10px; font-size: .9375rem; }
  .hero__h1 { font-size: clamp(2.25rem, 10.4vw, 3.25rem); }
  .hero__sub { margin-top: 14px; font-size: 1rem; }
  .hero__act { margin-top: 18px; gap: 10px 14px; }
  .hero__act span { font-size: .875rem; }
  .print { padding: 3px; }
  .print::before { width: 40px; margin-left: -20px; height: 14px; top: -7px; }
  .print--1 { --w: 33vw; left: 3vw; top: auto; bottom: 19%; }
  .print--2 { --w: 37vw; left: 28vw; top: auto; bottom: 25%; }
  .print--3 { --w: 28vw; left: 68vw; top: auto; bottom: 30%; }
  .print--4 { --w: 30vw; left: -5vw; top: auto; bottom: 9%; }
  .print--5 { --w: 28vw; left: 24vw; top: auto; bottom: 11%; }
  .hero__camera { right: -10vw; bottom: -5%; width: 60vw; min-width: 0; }
  .hero__floor { height: 70px; }

  /* the brief on phones: text above, a deck below */
  .board { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: calc(var(--bar-h) + 12px) 16px 0; }
  .board__h { font-size: 1.5rem; margin-bottom: 8px; }
  .brief { font-size: .90625rem; line-height: 1.46; }
  .board__note { display: none; }
  .scenes { display: block; flex: 1 1 auto; min-height: 0; }
  .scene { position: absolute; left: 0; right: 0; top: 0; }
  .scene img { height: clamp(90px, 21svh, 200px); }
  .scene__line { font-size: .875rem; }

  /* looks */
  .looks { padding-bottom: 92px; }
  .rail__rows { --look-w: clamp(196px, min(70vw, 34svh), 300px); }
  .rail__head { width: 76vw; }
  .rail__h { font-size: 2.25rem; }
  .look__t { min-height: 0; margin-top: 6px; }

  /* room */
  .room__film { width: calc(100vw - 24px); top: calc(var(--bar-h) + 5svh); }
  .room__plate { inset: 0 -60%; }
  .room__spill { top: 32%; height: 52vh; width: 100vw; }
  .room__seats { left: -70vw; right: -70vw; top: 66svh; }
  .room__seg { font-size: 0; padding-top: 10px; }
  .room__meta { font-size: .8125rem; }
  .sheet { top: calc(var(--bar-h) + 28px); translate: -50% 0; }
  .sheet__h { font-size: 2.25rem; }
  .sheet__list > div { grid-template-columns: 6em 1fr; padding: 8px 0; font-size: .9375rem; }

  /* reading sections */
  .web__grid, .terms__grid { grid-template-columns: minmax(0, 1fr); }
  .prog__frames { grid-template-columns: 1.7fr 1fr; }
  .still--wide { grid-column: 1; grid-row: 1; }
  .still--mid { grid-column: 1; grid-row: 2; margin-top: 0; }
  .still--tall { grid-column: 2; grid-row: 1 / span 2; margin-top: 18px; }
  .films thead { display: none; }
  .films tr { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; padding: 10px 0; }
  .films th, .films td { padding: 0; font-size: .8125rem; }
  .films tbody th { grid-column: 1 / -1; width: auto; font-size: .9375rem; }
  .films small { display: block; margin: 2px 0 0; font-size: .8125rem; }
  .bill > div { grid-template-columns: 1fr auto; }
  .bill dd:last-child { grid-column: 1 / -1; }

  /* close */
  .close { justify-content: flex-start; padding-bottom: 0; }
  .close__inner { padding-top: calc(var(--bar-h) + 38px); }
  .close__foot { bottom: 172px; }
}
@media (max-height: 720px) and (max-width: 860px) {
  .brief { font-size: .84375rem; line-height: 1.42; }
  .board__h { font-size: 1.3125rem; }
  .scene img { height: 15svh; }
  .scene__credit { display: none; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .scene__credit { display: none; }
  .sheet__list > div { padding: 6px 0; }
}

/* ---------- reduced motion: everything settled, nothing pinned ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__beam { display: none; }
  #storyboard, #looks, #screening, #close { height: auto !important; }
  .board, .looks, .room, .close { position: relative !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .board { padding-bottom: 72px; }
  .board__note { opacity: 1; }
  .brief mark { --m: 1; }
  .threads { display: none; }
  .scene { opacity: 1; transform: none !important; }
  .looks { display: block; padding-block: calc(var(--bar-h) + 20px) 72px; }
  .rail { width: auto; flex-direction: column; align-items: flex-start; }
  .rail__head { width: auto; max-width: 34em; }
  .rail__row, .rail__row--b { flex-wrap: wrap; margin-left: 0; }
  .rail__rows { --look-w: min(calc(50vw - 24px), 340px); }
  .rail__tail { width: auto; }
  .room { display: flex; flex-direction: column; }
  .sheet { order: -1; }
  .room__seats { order: 3; }
  .room__lights { display: none; }
  .sheet { position: relative; left: auto; top: auto; translate: none; width: auto; color: #16161C; background: #F8F7F3; padding: calc(var(--bar-h) + 32px) max(16px, calc(50vw - 360px)) 56px; }
  .room__film { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; padding-top: 40px; }
  .room__plate { inset: auto 0 0 0; top: 0; }
  .room__seats { position: relative; top: auto; margin-top: 16px; height: 22vh; overflow: hidden; }
  .room__spill { display: none; }
  .close { padding-block: calc(var(--bar-h) + 40px) 140px; background: #5B45F0; }
  .close__lights { display: none; }
  .close__foot { position: relative; left: auto; right: auto; bottom: auto; margin-top: 56px; flex-direction: column; }
  .btn, .look .frame, .bar { transition: none; }
}
