/* OVERNIGHT SUCCESS — gauravmadaan.com
   A life told as a hand-painted Indian film. Painted art carries the colour; type stays disciplined. */

@font-face { font-family: 'Rozha One'; src: url('../assets/fonts/rozha-latin-normal-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+20B9; }
@font-face { font-family: 'Teko'; src: url('../assets/fonts/teko-latin-normal-300-700.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Anek Latin'; src: url('../assets/fonts/anek-latin-normal-100-800.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('../assets/fonts/kalam-latin-normal-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --dark: #06181c;        /* the cinema hall with the lights down */
  --teal: #0b4a4f;
  --marigold: #f6b632;
  --vermilion: #e2462b;
  --magenta: #c81f66;
  --navy: #1c2d68;
  --paper: #f4e7c5;       /* poster paper */
  --paper-2: #e8d4a2;
  --ink: #2a1a12;         /* poster ink on paper */
  --sub: #ffe24d;         /* film-subtitle yellow */
  --display: 'Rozha One', 'Bodoni 72', Georgia, serif;
  --bill: 'Teko', 'Arial Narrow', sans-serif;
  --text: 'Anek Latin', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Kalam', 'Bradley Hand', cursive;
  --gutter: clamp(18px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--dark); color: var(--paper); font: 400 1.0625rem/1.5 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sub); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--marigold); color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* --- buttons: ticket-window signage ------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 54px; padding: 0 1.5em; border-radius: 10px; background: var(--marigold); color: var(--ink); font: 600 1.35rem/1 var(--bill); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 0 #a3600c, 0 10px 24px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease; }
.btn:hover { background: #ffc94a; transform: translateY(-2px); box-shadow: 0 6px 0 #a3600c, 0 14px 28px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a3600c, 0 4px 10px rgba(0, 0, 0, 0.4); }
.btn--ghost { background: rgba(6, 24, 28, 0.55); color: var(--paper); box-shadow: inset 0 0 0 2px rgba(244, 231, 197, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(6, 24, 28, 0.75); box-shadow: inset 0 0 0 2px var(--marigold); color: var(--marigold); }
.btn--small { min-height: 40px; font-size: clamp(0.98rem, 4vw, 1.1rem); padding: 0 0.85em; border-radius: 8px; box-shadow: 0 3px 0 #a3600c; }

/* --- top bar ------------------------------------------------------------------ */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 8px var(--gutter); pointer-events: none; }
.bar > * { pointer-events: auto; flex: none; }
.bar__mark { white-space: nowrap; font: 600 clamp(1rem, 4.2vw, 1.25rem)/1 var(--bill); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.scrolled .bar__mark { opacity: 1; transform: none; }
.bar .btn { margin-left: auto; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.scrolled .bar .btn { opacity: 1; transform: none; pointer-events: auto; }
.bar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(4, 18, 21, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(244, 231, 197, 0.14); opacity: 0; transition: opacity 0.4s ease; }
.scrolled .bar::before { opacity: 1; }

/* --- hero: the poster ------------------------------------------------------------ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0a2f33; isolation: isolate; }
.hero__layer { position: absolute; inset: 0; will-change: transform; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); }
.hero__rays { position: absolute; left: 50%; top: 47%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 214, 110, 0.22) 0deg 7deg, rgba(255, 214, 110, 0) 7deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.5) 22%, transparent 46%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.5) 22%, transparent 46%); mix-blend-mode: soft-light; animation: spin 140s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__lamps { position: absolute; left: 0; bottom: 0; width: 100%; height: 30%; pointer-events: none; }
.hero__fig { position: absolute; left: 50%; bottom: 13%; width: min(108vw, 62svh); transform: translateX(-50%); filter: drop-shadow(0 18px 30px rgba(20, 6, 4, 0.55)); }
.hero__shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(6, 24, 28, 0.96) 0%, rgba(6, 24, 28, 0.78) 34%, rgba(6, 24, 28, 0) 100%); }
.hero__copy { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; text-align: center; padding: 0 var(--gutter) max(18px, env(safe-area-inset-bottom)); }
.hero__star { position: absolute; z-index: 2; top: max(20px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font: 600 clamp(2.3rem, 11.5vw, 4rem)/0.9 var(--bill); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); text-shadow: 0 3px 0 #a3231a, 0 6px 18px rgba(0, 0, 0, 0.45); }
.hero__in { font: 500 clamp(1rem, 4.4vw, 1.3rem)/1 var(--bill); letter-spacing: 0.4em; text-transform: uppercase; color: var(--paper); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); margin-bottom: 0.1em; }
.hero__title { width: min(90vw, 52svh, 640px); margin: 0 0 -1.2%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.hero__title img { width: 100%; }
.hero__tag { font: 400 clamp(1.25rem, 5.4vw, 1.9rem)/1.15 var(--display); color: var(--paper); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.hero__bill { margin-top: 0.7rem; font: 500 clamp(0.95rem, 3.9vw, 1.2rem)/1.15 var(--bill); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 231, 197, 0.86); max-width: 30rem; }
.hero__bill b { font-weight: 600; color: var(--marigold); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1rem; }
.hero__hint { margin-top: 0.75rem; font: 500 1rem/1 var(--bill); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244, 231, 197, 0.7); }

/* opening: lights down, projector on */
.js .hero__bg, .js .hero__fig, .js .hero__title, .js .hero__star, .js .hero__in, .js .hero__tag, .js .hero__bill, .js .hero__cta, .js .hero__hint, .js .hero__rays { opacity: 0; }
.js.go .hero__bg { animation: lightsup 1.1s ease-out forwards; }
.js.go .hero__rays { animation: fadein 2.4s 0.4s ease-out forwards, spin 140s linear infinite; }
.js.go .hero__fig { animation: rise 1s 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
.js.go .hero__star { animation: fadeup 0.6s 0.85s ease-out forwards; }
.js.go .hero__in { animation: fadeup 0.5s 1.05s ease-out forwards; }
.js.go .hero__title { animation: slam 0.62s 1.15s cubic-bezier(0.2, 1.4, 0.3, 1) forwards; }
.js.go .hero__tag { animation: fadeup 0.6s 1.75s ease-out forwards; }
.js.go .hero__bill { animation: fadeup 0.6s 1.95s ease-out forwards; }
.js.go .hero__cta { animation: fadeup 0.6s 2.15s ease-out forwards; }
.js.go .hero__hint { animation: fadeup 0.6s 2.6s ease-out forwards; }
@keyframes lightsup { 0% { opacity: 0; filter: brightness(2.2) saturate(0.3); } 18% { opacity: 1; filter: brightness(0.5); } 26% { filter: brightness(1.7); } 40% { filter: brightness(0.8); } 100% { opacity: 1; filter: none; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(9%) scale(0.97); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slam { 0% { opacity: 0; transform: scale(1.9) rotate(-5deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* --- the censor-style certificate that opens the film ----------------------------- */
.cert { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: #0a0a0a; transition: opacity 0.5s ease, visibility 0.5s; }
.cert[hidden] { display: none; }
.cert.out { opacity: 0; visibility: hidden; }
.cert__card { width: min(92vw, 560px); padding: clamp(18px, 5vw, 34px); background: var(--paper); color: var(--ink); border: 3px double var(--ink); outline: 1px solid var(--ink); outline-offset: -9px; text-align: center; font-family: var(--bill); animation: weave 0.5s steps(3) infinite; }
@keyframes weave { 0% { transform: translate(0, 0); } 33% { transform: translate(0.6px, -0.8px); } 66% { transform: translate(-0.5px, 0.6px); } }
.cert__head { font: 600 clamp(1.5rem, 6vw, 2.1rem)/1 var(--bill); letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.cert__rows { display: grid; gap: 0.3rem; margin: 0.9rem 0; text-align: left; font-size: clamp(1.1rem, 4.6vw, 1.4rem); line-height: 1.15; }
.cert__rows div { display: grid; grid-template-columns: 7.4em 1fr; gap: 0.6rem; }
.cert__rows dt { letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.cert__rows dd { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cert__card { position: relative; }
.cert__u { position: absolute; right: clamp(16px, 5vw, 30px); top: clamp(10px, 3vw, 22px); display: grid; place-items: center; width: 2.1em; height: 2.1em; border: 3px solid var(--vermilion); border-radius: 50%; color: var(--vermilion); font: 400 1.5rem/1 var(--display); transform: rotate(-9deg); }
.cert__fine { font: 400 0.95rem/1.3 var(--text); padding-top: 0.6rem; border-top: 1px solid var(--ink); }
.cert__skip { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font: 500 1rem/1 var(--bill); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 231, 197, 0.55); }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__bg { object-position: 50% 58%; }
  .hero__fig { width: min(46vw, 78svh); bottom: 0; left: 68%; }
  .hero__shade { inset: 0 auto 0 0; width: 62%; height: auto; background: linear-gradient(to right, rgba(6, 24, 28, 0.94) 0%, rgba(6, 24, 28, 0.72) 52%, rgba(6, 24, 28, 0) 100%); }
  .hero__copy { left: var(--gutter); right: auto; top: 0; bottom: 0; width: min(46vw, 640px); align-content: center; justify-items: start; text-align: left; padding: 0; }
  .hero__star { top: 15svh; left: var(--gutter); right: auto; text-align: left; font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
  .hero__copy { padding-top: 12svh; }
  .hero__fig { filter: drop-shadow(0 24px 40px rgba(20, 6, 4, 0.6)); }
  .hero__title { width: min(44vw, 620px); margin-left: -1.5%; }
  .hero__cta { justify-content: flex-start; }
  .hero__rays { left: 68%; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__rays, .cert__card { animation: none !important; }
  .js .hero__bg, .js .hero__fig, .js .hero__title, .js .hero__star, .js .hero__in, .js .hero__tag, .js .hero__bill, .js .hero__cta, .js .hero__hint, .js .hero__rays { opacity: 1 !important; animation: none !important; }
}

/* --- the film: each scene is a pinned painting with subtitles ----------------------- */
.film { position: relative; background: var(--dark); }
.scene { position: relative; height: calc(var(--n, 3) * 58svh + 100svh); }
.scene__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: var(--dark); }
.scene__back { display: none; }
.scene__art { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.scene__art > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(calc(1.02 + var(--p, 0) * 0.1)); transform-origin: var(--origin, 50% 62%); will-change: transform; }
.scene__art::before, .scene__art::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.scene__art::before { top: 0; height: 40%; background: linear-gradient(to bottom, rgba(6, 24, 28, 0.9), rgba(6, 24, 28, 0.55) 45%, rgba(6, 24, 28, 0)); }
.scene__art::after { bottom: 0; height: 42%; background: linear-gradient(to top, rgba(6, 24, 28, 0.94), rgba(6, 24, 28, 0.62) 50%, rgba(6, 24, 28, 0)); }
.scene__head { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: 74px var(--gutter) 0; }
.slug { font: 500 1.05rem/1.15 var(--bill); letter-spacing: 0.15em; text-transform: uppercase; color: var(--marigold); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.scene h2 { margin-top: 0.3rem; font: 400 clamp(1.85rem, 8.2vw, 2.7rem)/1.05 var(--display); color: var(--paper); text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75); max-width: 16em; }
.subs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; }
.subs li { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(40px, calc(env(safe-area-inset-bottom) + 30px)); opacity: 0; transform: translateY(12px); transition: opacity 0.32s ease, transform 0.32s ease; font: 600 clamp(1.12rem, 4.9vw, 1.4rem)/1.3 var(--text); color: #fff; text-align: center; text-wrap: balance; text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 3px 14px rgba(0, 0, 0, 0.9); }
.subs li.on { opacity: 1; transform: none; pointer-events: auto; }
.subs li.q { color: var(--sub); font-style: italic; font-weight: 600; }
.subs cite { display: block; margin-top: 0.35rem; font: 500 0.98rem/1.2 var(--bill); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.subs a { color: inherit; }
.ticks { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 5px; }
.ticks i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); transition: background-color 0.3s; }
.ticks i.on { background: var(--marigold); }

/* things that land on the painting as the scene plays */
.fx { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
.fx.on { opacity: 1; }
.stamp { font: 700 clamp(1.7rem, 9vw, 2.9rem)/0.92 var(--bill); letter-spacing: 0.05em; text-transform: uppercase; text-align: center; color: #ff3b2b; border: 0.14em solid currentColor; border-radius: 0.3em; padding: 0.28em 0.5em 0.14em; background: rgba(24, 4, 2, 0.72); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); transform: rotate(var(--r, -11deg)) scale(2.4); transition: transform 0.22s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.08s; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06 .5' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.0 1.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06 .5' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.0 1.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); -webkit-mask-size: cover; mask-size: cover; }
.stamp.on { transform: rotate(var(--r, -11deg)) scale(1); }
.stamp small { display: block; font-size: 0.42em; letter-spacing: 0.16em; }
.stamp--gold { color: var(--marigold); background: rgba(20, 10, 2, 0.5); }
.chip { display: inline-flex; align-items: baseline; gap: 0.4em; padding: 0.34em 0.7em 0.2em; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 1.15rem/1 var(--bill); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); transform: translateY(14px) scale(0.9); transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.25s; white-space: nowrap; }
.chip.on { transform: none; }
.chip b { font: 400 1.5em/1 var(--display); letter-spacing: 0; text-transform: none; }
.shake { animation: shake 0.42s linear; }
@keyframes shake { 10% { transform: translate(-5px, 3px); } 30% { transform: translate(5px, -4px); } 50% { transform: translate(-4px, -2px); } 70% { transform: translate(3px, 3px); } 90% { transform: translate(-2px, 1px); } }
.toasts { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.toasts.on { opacity: 1; }
.toasts span { position: absolute; left: var(--x); bottom: 30%; padding: 0.3em 0.6em 0.16em; border-radius: 8px; background: rgba(6, 24, 28, 0.86); color: #8dffa8; font: 600 1.02rem/1 var(--bill); letter-spacing: 0.06em; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); animation: floatup var(--d, 3.4s) linear infinite; animation-delay: var(--w, 0s); opacity: 0; }
@keyframes floatup { 0% { transform: translateY(0) scale(0.8); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-46svh) scale(1); opacity: 0; } }

/* the real photograph, taped over the painting */
.still { position: absolute; z-index: 4; right: 4%; top: 31%; width: min(50%, 270px); margin: 0; padding: 7px 7px 0; background: #fbf5e4; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); transform: translateX(135%) rotate(12deg); transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1), width 0.4s ease, right 0.4s ease, top 0.4s ease; cursor: zoom-in; pointer-events: auto; }
.still.on { transform: rotate(var(--tilt, 4deg)); }
.still::before { content: ''; position: absolute; top: -11px; left: 50%; width: 74px; height: 24px; margin-left: -37px; background: rgba(246, 182, 50, 0.72); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.still img { width: 100%; }
.still figcaption { padding: 6px 4px 8px; font: 400 0.98rem/1.2 var(--hand); color: var(--ink); }
.still.big { width: 90%; right: 5%; top: 16%; cursor: zoom-out; --tilt: -1.5deg; z-index: 6; }

/* --- interval ---------------------------------------------------------------------------- */
.interval { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 1.2rem; padding: 12vh var(--gutter); text-align: center; background: radial-gradient(circle at 50% 40%, #14585d, var(--teal) 45%, #062a2e); overflow: hidden; }
.interval__title { width: min(88vw, 620px); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.4)); }
.interval p { font: 400 clamp(1.25rem, 5vw, 1.7rem)/1.3 var(--display); max-width: 22em; text-wrap: balance; }
.interval .note { font: 400 1.15rem/1.3 var(--hand); color: var(--marigold); transform: rotate(-2deg); }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .scene__back { display: block; position: absolute; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(46px) brightness(0.4) saturate(1.35); }
  .scene__art { inset: auto; top: 50%; right: 7vw; height: 88svh; aspect-ratio: 9 / 16; border-radius: 6px; transform: translateY(-50%) rotate(1.3deg); box-shadow: 0 0 0 9px var(--paper), 0 0 0 10px rgba(0, 0, 0, 0.3), 0 34px 80px rgba(0, 0, 0, 0.65); }
  .scene:nth-of-type(even) .scene__art { right: auto; left: 7vw; transform: translateY(-50%) rotate(-1.3deg); }
  .scene__art::before, .scene__art::after { display: none; }
  .scene__head { top: 17vh; left: var(--gutter); right: auto; width: min(44vw, 640px); padding: 0; }
  .scene:nth-of-type(even) .scene__head, .scene:nth-of-type(even) .subs { left: auto; right: var(--gutter); }
  .slug { font-size: 1.2rem; }
  .scene h2 { font-size: clamp(2.6rem, 4.3vw, 4.4rem); }
  .subs { top: 47vh; bottom: auto; left: var(--gutter); right: auto; width: min(40vw, 560px); height: auto; display: grid; gap: 1.1rem; }
  .subs li { position: static; opacity: 0.22; transform: none; text-align: left; font-size: clamp(1.15rem, 1.5vw, 1.4rem); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
  .subs li.was { opacity: 0.6; }
  .subs li.on { opacity: 1; }
  .ticks { left: var(--gutter); right: auto; width: min(40vw, 560px); bottom: 5vh; }
  .scene--housefull .scene__head { top: 13vh; }
  .scene--housefull .subs { top: 40vh; gap: 0.8rem; }
  .scene--housefull .subs li { font-size: clamp(1.02rem, 1.25vw, 1.2rem); }
  .lettered img { width: min(36vw, 520px); }
  .scene:nth-of-type(even) .ticks { left: auto; right: var(--gutter); }
  .still { width: min(46%, 300px); }
}

/* --- housefull ------------------------------------------------------------------------ */
.lettered img { width: min(86vw, 520px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); margin-left: -2%; }
.twinkle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.subs .big { display: block; font: 400 clamp(2.6rem, 13vw, 4.2rem)/0.95 var(--display); color: var(--marigold); text-shadow: 0 3px 0 #a3600c, 0 6px 18px rgba(0, 0, 0, 0.7); margin-bottom: 0.15em; }

/* --- sections on paper and in the dark --------------------------------------------------- */
.paper, .dark { position: relative; padding: clamp(72px, 13vh, 150px) var(--gutter) clamp(64px, 11vh, 130px); }
.paper { background: var(--paper); color: var(--ink); }
.paper::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .035' numOctaves='4' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .38  0 0 0 0 .16  0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.paper > *, .dark > * { position: relative; }
.dark { background: radial-gradient(120% 80% at 50% 0%, #0d3a40 0%, var(--dark) 62%); color: var(--paper); }
.sechead { display: grid; gap: 0.5rem; max-width: 46rem; margin-bottom: clamp(1.8rem, 5vh, 3.2rem); }
.sechead h2 { font: 400 clamp(2.9rem, 13vw, 6.4rem)/0.92 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.paper .sechead h2 { color: var(--vermilion); text-shadow: 0.045em 0.045em 0 var(--navy); }
.dark .sechead h2 { color: var(--marigold); text-shadow: 0.045em 0.045em 0 var(--vermilion); }
.hand { font: 400 clamp(1.15rem, 4.6vw, 1.45rem)/1.2 var(--hand); transform: rotate(-2deg); transform-origin: 0 100%; }
.paper .hand { color: var(--navy); }
.dark .hand, .credits .hand { color: var(--sub); }
.lead { font-size: clamp(1.1rem, 4.4vw, 1.3rem); line-height: 1.42; max-width: 34rem; text-wrap: pretty; }
.paper a, .dark a:not(.btn) { font-weight: 600; }

/* filmography: a wall of posters you swipe */
.wall { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 16px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 26px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wall::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: center; position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.55rem; aspect-ratio: 3 / 4.25; padding: 20px 18px 16px; background: var(--c); color: var(--paper); border-radius: 4px; transform: rotate(var(--tilt, 0deg)); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(0, 0, 0, 0.35), 0 14px 26px rgba(40, 20, 6, 0.38); overflow: hidden; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55; mix-blend-mode: overlay; background: radial-gradient(120% 90% at 30% 10%, rgba(255, 240, 200, 0.5), rgba(0, 0, 0, 0.25)); }
.card > * { position: relative; z-index: 1; padding: 0 8px; }
.card__studio { margin-top: 8px; font: 500 0.98rem/1 var(--bill); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.card__title { font: 400 clamp(1.9rem, 8.6vw, 2.5rem)/0.95 var(--display); color: #ffd866; text-shadow: 0.05em 0.05em 0 rgba(20, 8, 4, 0.75); text-wrap: balance; }
.card__line { font-size: 0.98rem; line-height: 1.36; align-self: start; }
.card__bo { font: 400 1.75rem/1 var(--display); color: #fff; }
.card__bo span { display: block; font: 500 0.92rem/1.2 var(--bill); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.card__bo a { color: #ffd866; }
.card__year { position: absolute; z-index: 1; right: 18px; bottom: 16px; padding: 0; font: 600 1.05rem/1 var(--bill); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.card--flop .card__title { color: #e8e2d0; }
.card--flop::before { content: 'Flop'; position: absolute; z-index: 2; right: 14%; bottom: 16%; padding: 0.2em 0.5em 0.08em; border: 4px solid #ff4b3a; border-radius: 8px; color: #ff4b3a; font: 700 2.3rem/1 var(--bill); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-14deg); }
.swipe { margin-top: 0.2rem; font: 500 1rem/1 var(--bill); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }

/* live on stage */
.lobby { margin: 0 0 2rem; padding: 8px 8px 0; background: #fbf5e4; color: var(--ink); max-width: 780px; transform: rotate(-1deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.lobby img { width: 100%; }
.lobby figcaption { padding: 8px 6px 10px; font: 400 1.1rem/1.2 var(--hand); }
.tour { width: 100%; max-width: 780px; border-collapse: collapse; }
.tour thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tour tr { display: grid; grid-template-columns: 4.2rem 1fr; column-gap: 0.6rem; padding: 0.85rem 0; border-top: 1px solid rgba(244, 231, 197, 0.22); }
.tour tr:last-child { border-bottom: 1px solid rgba(244, 231, 197, 0.22); }
.tour td:first-child { font: 600 1.5rem/1.1 var(--bill); color: var(--marigold); letter-spacing: 0.04em; }
.tour th { text-align: left; font: 400 clamp(1.25rem, 5vw, 1.6rem)/1.15 var(--display); }
.tour td:last-child { grid-column: 2; color: rgba(244, 231, 197, 0.78); font-size: 1rem; margin-top: 0.15rem; }
.duo { display: grid; gap: 2rem; margin-top: 2.6rem; max-width: 780px; }
.duo h3 { font: 400 1.6rem/1.1 var(--display); margin-bottom: 0.5rem; color: var(--marigold); }
.duo p + p { margin-top: 1rem; }

/* famous dialogues: subtitles without the film */
.dialogues { background: #040f12; }
.lines { display: grid; gap: 0; max-width: 56rem; }
.lines li { padding: 1.5rem 0; border-top: 1px solid rgba(244, 231, 197, 0.18); }
.lines li:last-child { border-bottom: 1px solid rgba(244, 231, 197, 0.18); }
.lines blockquote { font: italic 600 clamp(1.5rem, 6.4vw, 2.7rem)/1.14 var(--text); color: var(--sub); text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.lines p { margin-top: 0.5rem; font: 500 1rem/1.2 var(--bill); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 231, 197, 0.7); }

/* trailers */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 14px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.shorts li { scroll-snap-align: center; }
.shorts a { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: #111; color: #fff; text-decoration: none; box-shadow: 0 0 0 5px #fbf5e4, 0 12px 24px rgba(40, 20, 6, 0.35); }
.shorts img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shorts a::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 42%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--vermilion) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.500z'/%3E%3C/svg%3E") center / 60% no-repeat; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); transition: transform 0.25s ease; }
.shorts a::after { content: ''; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0)); }
.shorts span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font: 600 1.02rem/1.22 var(--text); text-shadow: 0 1px 4px #000; }
.shorts a:hover img { transform: scale(1.05); }
.shorts a:hover::before { transform: scale(1.12); }

/* the ticket */
.ticket { display: grid; grid-template-columns: 1fr auto; max-width: 620px; color: var(--ink); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); transform: rotate(-1.2deg); }
.ticket__main { padding: 20px 20px 18px; background: var(--paper); border-radius: 12px 0 0 12px; -webkit-mask: radial-gradient(circle 10px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat; }
.ticket__admit { font: 400 clamp(2.2rem, 10vw, 3.2rem)/0.95 var(--display); color: var(--vermilion); margin-bottom: 0.8rem; }
.ticket dl { display: grid; gap: 0.55rem; }
.ticket dt { font: 600 0.95rem/1 var(--bill); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; }
.ticket dd { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.ticket__stub { display: grid; align-content: center; justify-items: center; gap: 0.2rem; padding: 14px 12px; background: var(--marigold); border-left: 2px dashed rgba(42, 26, 18, 0.5); border-radius: 0 12px 12px 0; writing-mode: vertical-rl; -webkit-mask: radial-gradient(circle 10px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat; }
.ticket__stub span { font: 600 0.95rem/1 var(--bill); letter-spacing: 0.2em; text-transform: uppercase; }
.ticket__stub b { font: 400 1.9rem/1 var(--display); }
.gets { display: grid; gap: 0.7rem; margin: 2.2rem 0 0; max-width: 34rem; }
.gets li { position: relative; padding-left: 1.7rem; }
.gets li::before { content: '★'; position: absolute; left: 0; top: -0.05em; color: var(--marigold); }
.book__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 2rem; }
.book__cta span { color: rgba(244, 231, 197, 0.75); font-size: 1rem; }
.aside { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(244, 231, 197, 0.2); max-width: 36rem; color: rgba(244, 231, 197, 0.85); }

/* end credits */
.credits { position: relative; display: grid; justify-items: center; gap: 1.5rem; padding: clamp(80px, 16vh, 170px) var(--gutter) 40px; background: #020a0c; text-align: center; }
.roll { display: grid; gap: 1.5rem; }
.roll dt { font: 500 1.02rem/1.2 var(--bill); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 231, 197, 0.62); }
.roll dd { margin-top: 0.2rem; font: 400 clamp(1.8rem, 8vw, 3rem)/1 var(--display); color: var(--paper); }
.credits__fine { max-width: 22rem; font: 400 1rem/1.4 var(--text); color: rgba(244, 231, 197, 0.6); margin-top: 1rem; }
.credits__end { width: min(84vw, 560px); margin-top: 2.5rem; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)); }
.credits__more { transform: rotate(-2deg); font-size: clamp(1.25rem, 5.4vw, 1.6rem); max-width: 22rem; }
.credits__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; margin-top: 2.5rem; font: 500 1.15rem/1.2 var(--bill); letter-spacing: 0.1em; text-transform: uppercase; }
.credits__links a { text-decoration: none; color: rgba(244, 231, 197, 0.85); }
.credits__links a:hover { color: var(--marigold); }
.credits__legal { max-width: 40rem; margin-top: 1.2rem; font-size: 0.875rem; line-height: 1.45; color: rgba(244, 231, 197, 0.5); }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .wall { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 10px 0 0; gap: 26px 22px; max-width: 1320px; }
  .card__title { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
  .card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(0, 0, 0, 0.35), 0 26px 40px rgba(40, 20, 6, 0.45); }
  .swipe { display: none; }
  .tour tr { grid-template-columns: 5.5rem 1.4fr 1fr; align-items: baseline; }
  .tour td:last-child { grid-column: 3; text-align: right; margin: 0; }
  .duo { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .shorts { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 250px)); overflow: visible; margin: 0; padding: 6px 0; gap: 26px; }
  #live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: start; }
  #live .sechead, #live .duo { grid-column: 1 / -1; }
  .book { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 6vw; align-items: start; }
  .book .sechead { grid-column: 1; margin-bottom: 1.2rem; }
  .book .ticket { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .book .gets, .book .book__cta, .book .aside { grid-column: 1; }
}

/* --- scene selection, like the menu on a film disc ---------------------------------------- */
.bar__menu { margin-left: auto; min-height: 40px; padding: 0.2em 0.8em 0; border-radius: 8px; font: 600 clamp(0.98rem, 4vw, 1.1rem)/1 var(--bill); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(244, 231, 197, 0.6); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s, box-shadow 0.2s; }
.scrolled .bar__menu, .menu-open .bar__menu { opacity: 1; transform: none; pointer-events: auto; }
.bar__menu:hover, .bar__menu[aria-expanded='true'] { color: var(--marigold); box-shadow: inset 0 0 0 1.5px var(--marigold); }
.bar .btn { margin-left: 0; }
.menu { position: fixed; inset: 0; z-index: 35; overflow-y: auto; padding: 86px var(--gutter) 40px; background: rgba(3, 14, 17, 0.97); }
.menu[hidden] { display: none; }
.menu__title { font: 400 clamp(2.2rem, 10vw, 4rem)/1 var(--display); color: var(--marigold); text-shadow: 0.045em 0.045em 0 var(--vermilion); margin-bottom: 1.4rem; }
.menu ol { counter-reset: sc; display: grid; gap: 0; max-width: 900px; }
.menu li { counter-increment: sc; border-top: 1px solid rgba(244, 231, 197, 0.16); }
.menu a { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.72rem 0; text-decoration: none; font: 400 clamp(1.25rem, 5.4vw, 1.6rem)/1.15 var(--display); color: var(--paper); }
.menu a::before { content: counter(sc, decimal-leading-zero); font: 600 1.05rem/1 var(--bill); letter-spacing: 0.1em; color: var(--marigold); min-width: 1.8em; }
.menu a:hover { color: var(--sub); }
.menu-open { overflow: hidden; }

/* trailers: four widescreen stills, captioned like lobby cards */
.reels { display: grid; gap: 22px; max-width: 1180px; }
.reels a { position: relative; display: block; padding: 7px 7px 0; background: #fbf5e4; color: var(--ink); text-decoration: none; box-shadow: 0 12px 24px rgba(40, 20, 6, 0.32); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.reels img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.reels a::before { content: ''; position: absolute; z-index: 1; left: 50%; top: calc(7px + (100% - 7px - 3.6rem) / 2); width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: var(--vermilion) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.500z'/%3E%3C/svg%3E") center / 60% no-repeat; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease; }
.reels span { display: flex; align-items: center; min-height: 3.6rem; padding: 6px 4px 8px; font: 400 1.12rem/1.2 var(--hand); }
.reels a:hover, .reels a:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 20px 34px rgba(40, 20, 6, 0.42); }
.reels a:hover::before { transform: scale(1.12); }
.reels li:nth-child(odd) a { transform: rotate(-0.8deg); }
.reels li:nth-child(even) a { transform: rotate(0.9deg); }

.credits__signoff { margin-top: 2.2rem; max-width: 26rem; font: italic 600 clamp(1.25rem, 5.4vw, 1.6rem)/1.25 var(--text); color: var(--sub); }
.credits__signoff span { display: block; margin-top: 0.5rem; font: 500 0.98rem/1.2 var(--bill); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 231, 197, 0.6); }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .menu ol { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .reels { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============ v3: reel captions, camera moves, lessons, booking dock ============ */
:root { --beat: 54svh; --dock: 0px; }
.docked { --dock: 62px; }
html { scroll-snap-type: y proximity; }
.scene { height: calc(var(--n, 3) * var(--beat) + 100svh); }
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.scene__art > .scene__img { transform: scale(1.03); transform-origin: 50% 50%; transition: transform 1.15s cubic-bezier(0.3, 0.1, 0.15, 1); }
.scene__art.cut > .scene__img { animation: cut 0.45s ease-out; }
@keyframes cut { 0% { filter: brightness(2) saturate(0.5); } 100% { filter: none; } }
.scene__art::after { height: 56%; background: linear-gradient(to top, rgba(4, 16, 19, 0.92), rgba(4, 16, 19, 0.5) 55%, rgba(4, 16, 19, 0)); }

.subs { top: 0; height: auto; }
.subs li { left: 14px; right: 14px; bottom: calc(var(--dock) + max(40px, env(safe-area-inset-bottom) + 30px)); font: 700 clamp(1.28rem, 5.7vw, 1.7rem)/1.3 var(--text); text-shadow: none; transform: translateY(34px) scale(0.9); transition: opacity 0.2s ease, transform 0.5s cubic-bezier(0.2, 1.45, 0.3, 1); }
.subs li.on { transform: none; }
.subs li.was { transform: translateY(-46px) scale(0.95); }
.subs .t { padding: 0.13em 0.42em 0.09em; border-radius: 7px; background: rgba(4, 16, 19, 0.88); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.subs li.q { font-style: italic; }
.subs li.q .t { color: var(--sub); }
.subs .t a { color: var(--marigold); }
.subs cite { display: table; margin: 0.5rem auto 0; padding: 0.34em 0.7em 0.2em; border-radius: 6px; background: rgba(4, 16, 19, 0.88); font: 500 0.95rem/1.15 var(--bill); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.subs .big { text-shadow: 0 3px 0 #a3600c; }
.ticks { bottom: calc(var(--dock) + max(14px, env(safe-area-inset-bottom) + 6px)); }
.ticks i { height: 4px; }

/* the lesson: what the viewer takes away from each scene */
.subs li.lesson { left: 12px; right: 12px; padding: 16px 18px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; font: 400 1rem/1.4 var(--text); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--vermilion), 0 20px 44px rgba(0, 0, 0, 0.65); transform: translateY(125%) rotate(3deg); transition: opacity 0.2s ease, transform 0.6s cubic-bezier(0.2, 1.2, 0.3, 1); }
.subs li.lesson.on { transform: rotate(-1.1deg); }
.lesson__no { font: 700 1.05rem/1 var(--bill); letter-spacing: 0.22em; text-transform: uppercase; color: var(--vermilion); }
.lesson__text { margin-top: 0.3rem; font: 400 clamp(1.7rem, 7.6vw, 2.3rem)/1.04 var(--display); color: var(--ink); text-wrap: balance; }
.lesson__src { margin-top: 0.55rem; font: italic 500 1rem/1.3 var(--text); color: #5a4332; text-wrap: pretty; }
.lesson__cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.8rem; padding: 0.1em 1em 0; border-radius: 8px; background: var(--ink); color: var(--marigold); font: 600 1.12rem/1 var(--bill); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.lesson__cta:hover { background: #000; color: #ffd866; }

/* top bar: sound and scenes */
.bar__sound { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(244, 231, 197, 0.6); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.scrolled .bar__sound, .menu-open .bar__sound { opacity: 1; transform: none; pointer-events: auto; }
.bar__sound[aria-pressed='true'] { background: var(--marigold); color: var(--ink); box-shadow: none; animation: beat 0.56s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.1); } }
.bar__menu { margin-left: 0; }

/* the booking dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 9px var(--gutter) calc(9px + env(safe-area-inset-bottom)); background: rgba(4, 18, 21, 0.95); border-top: 1px solid rgba(244, 231, 197, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(110%); transition: transform 0.35s ease; }
.docked .dock { transform: none; }
.menu-open .dock { transform: translateY(110%); }
.dock p { display: grid; gap: 2px; }
.dock b { font: 600 1.22rem/1 var(--bill); letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper); }
.dock span { font-size: 0.9rem; line-height: 1.1; color: var(--marigold); }
.dock .btn { margin: 0; }

.btn--big { min-height: 62px; padding: 0 1.6em; font-size: clamp(1.4rem, 6vw, 1.7rem); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: rgba(42, 26, 18, 0.08); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }

/* hero: what is in it for the viewer */
.hero__tag { font-size: clamp(1.3rem, 5.6vw, 2rem); line-height: 1.12; }
.hero__bill { font: 500 clamp(1rem, 4.3vw, 1.15rem)/1.3 var(--text); letter-spacing: 0; text-transform: none; color: rgba(244, 231, 197, 0.94); max-width: 22rem; }
.hero__bill b { font-weight: 700; }
.hero__cta { gap: 0.6rem; margin-top: 0.85rem; }
.hero__cta .btn { font-size: clamp(1.1rem, 4.6vw, 1.35rem); padding: 0 1em; min-height: 52px; }
.hero__title { width: min(86vw, 46svh, 640px); }

.interval__fine { font: 500 1rem/1.3 var(--bill) !important; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 231, 197, 0.7); margin-top: 0.6rem; }

/* spin-offs: student results */
.paper--b { background: #ead9ae; }
.hof { display: grid; gap: 22px; max-width: 1240px; }
.hof a { display: grid; padding: 7px 7px 14px; background: #fbf5e4; color: var(--ink); text-decoration: none; box-shadow: 0 12px 24px rgba(40, 20, 6, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hof li:nth-child(odd) a { transform: rotate(-0.7deg); }
.hof li:nth-child(even) a { transform: rotate(0.8deg); }
.hof a:hover, .hof a:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 20px 34px rgba(40, 20, 6, 0.42); color: var(--ink); }
.hof img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.hof__r { margin: 0.7rem 6px 0; font: 400 clamp(1.7rem, 7.4vw, 2.1rem)/1 var(--display); color: var(--vermilion); }
.hof__n { margin: 0.3rem 6px 0; font: 600 1.1rem/1.1 var(--bill); letter-spacing: 0.08em; text-transform: uppercase; }
.hof__h { margin: 0.25rem 6px 0; font-size: 0.98rem; line-height: 1.35; }
.fine { margin-top: 1.6rem; max-width: 40rem; font-size: 0.95rem; line-height: 1.45; opacity: 0.82; }

/* live: a strip of real photographs */
.stills { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 18px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 1.6rem; padding: 14px var(--gutter) 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stills::-webkit-scrollbar { display: none; }
.stills li { scroll-snap-align: center; }
.stills .lobby { margin: 0; max-width: none; }
.stills li:nth-child(even) .lobby { transform: rotate(1.1deg); }
.stills .lobby img { aspect-ratio: 4 / 3; object-fit: cover; }

/* the offer */
.book .sechead h2 { font-size: clamp(2.2rem, 9.6vw, 4.4rem); line-height: 0.98; }
.ticket__price { font: 400 2rem/1 var(--display) !important; color: var(--vermilion); }
.book__what { margin-top: 2.2rem; }
.book__what h3 { font: 400 1.6rem/1.1 var(--display); color: var(--marigold); margin-bottom: 0.9rem; }
.book__what .gets { margin-top: 0; }
.book__proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 2rem; max-width: 34rem; }
.book__proof li { font-size: 0.9rem; line-height: 1.25; color: rgba(244, 231, 197, 0.8); }
.book__proof b { display: block; font: 400 clamp(1.5rem, 6.4vw, 2rem)/1 var(--display); color: var(--paper); margin-bottom: 0.25rem; }

/* cast yourself */
.cast__grid { display: grid; gap: 1.8rem; max-width: 1040px; }
.cast__form { display: grid; gap: 0.5rem; max-width: 26rem; }
.cast__form label { font: 600 1.05rem/1.1 var(--bill); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.6rem; }
.cast__form input { width: 100%; min-height: 54px; padding: 0 0.9em; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; color: var(--ink); font: 600 1.2rem/1 var(--text); }
.cast__form input:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 2px; }
.cast__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.cast__note { font-size: 0.92rem; opacity: 0.75; margin-top: 0.4rem; }
.cast__canvas { width: min(100%, 440px); height: auto; aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: 0 0 0 7px #fbf5e4, 0 18px 40px rgba(40, 20, 6, 0.45); transform: rotate(1.2deg); background: #0b4a4f; }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  :root { --beat: 60svh; }
  .scene__art::after { display: none; }
  .subs { top: 43vh; bottom: auto; left: var(--gutter); right: auto; width: min(41vw, 580px); height: auto; display: grid; gap: 0.75rem; }
  .scene:nth-of-type(even) .subs { left: auto; right: var(--gutter); }
  .subs li, .subs li.was, .subs li.lesson { position: static; transform: none; opacity: 0.24; text-align: left; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.34; transition: opacity 0.35s ease; }
  .subs li.was { opacity: 0.55; }
  .subs li.on { opacity: 1; }
  .subs .t { padding: 0; background: none; }
  .subs cite { display: block; margin: 0.25rem 0 0; padding: 0; background: none; text-align: left; }
  .subs li.lesson { display: none; padding: 16px 20px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--vermilion), 0 20px 44px rgba(0, 0, 0, 0.5); }
  .subs li.lesson.on { display: block; transform: rotate(-0.8deg); margin-top: 0.4rem; }
  .lesson__text { font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
  .scene__head { top: 14vh; }
  .scene h2 { font-size: clamp(2.3rem, 3.7vw, 3.9rem); }
  .ticks { bottom: 5vh; }
  .bar .btn { display: none; }
  .dock { left: auto; right: 22px; bottom: 20px; border: 1px solid rgba(244, 231, 197, 0.22); border-radius: 14px; padding: 10px 12px 10px 18px; gap: 1.2rem; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform: translateY(160%); }
  .docked { --dock: 0px; }
  .hero__bill { max-width: 26rem; font-size: 1.2rem; }
  .hof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
  .stills { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0 0 2.4rem; padding: 10px 0; }
  #live { display: block; }
  .tour { max-width: 980px; }
  .book { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 6vw; align-items: start; }
  .book .sechead { grid-column: 1; }
  .book .ticket { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .book .book__what, .book .book__cta, .book .book__proof, .book .aside { grid-column: 1; }
  .cast__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
  .cast__canvas { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .scene__art > .scene__img { transition: none; }
  .subs li, .subs li.lesson { transition: opacity 0.2s ease; transform: none !important; }
  .bar__sound[aria-pressed='true'] { animation: none; }
}
.subs .lesson__cta { color: var(--marigold); }
.subs .lesson__cta:hover { color: #ffd866; }
.bring { counter-reset: b; display: grid; gap: 0.5rem; margin: 0 0 2rem; max-width: 30rem; }
.bring li { counter-increment: b; position: relative; padding-left: 2.4rem; font: 400 clamp(1.25rem, 5.2vw, 1.5rem)/1.2 var(--display); }
.bring li::before { content: counter(b); position: absolute; left: 0; top: -0.05em; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--marigold); color: var(--ink); font: 700 1.1rem/1 var(--bill); padding-top: 0.12em; }
.book__promise { margin-top: 1.4rem; font-size: clamp(1.2rem, 5vw, 1.45rem); max-width: 24rem; }
.roll__long { font-size: clamp(1.15rem, 5vw, 1.5rem) !important; line-height: 1.25 !important; max-width: 22rem; margin-inline: auto; }
.credits__teachers { margin-top: 0.5rem; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .book .book__promise { grid-column: 1; } }

/* ============ the hook: the viewer's gain is the biggest thing on the poster ============ */
.hero { height: 94svh; min-height: 640px; }
.hero__star { font-size: clamp(1.7rem, 8.2vw, 3rem); letter-spacing: 0.12em; top: max(16px, env(safe-area-inset-top)); }
.hero__star span { display: block; margin-top: 0.3em; font-size: 0.42em; letter-spacing: 0.42em; opacity: 0.9; }
.hero__in { display: none; }
.hero__fig { bottom: 30%; width: min(98vw, 56svh); }
.hero__shade { height: 62%; background: linear-gradient(to top, rgba(4, 16, 19, 0.98) 0%, rgba(4, 16, 19, 0.9) 42%, rgba(4, 16, 19, 0) 100%); }
.hero__copy { padding-bottom: max(54px, env(safe-area-inset-bottom) + 46px); }
.hero__title { width: min(66vw, 34svh, 520px); margin-bottom: 0.2rem; }
.hero__hook { font: 800 clamp(2.05rem, 9.6vw, 3.4rem)/0.98 var(--text); font-stretch: 92%; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hero__hook mark { background: none; color: var(--ink); padding: 0 0.16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; background-image: linear-gradient(var(--sub), var(--sub)); background-size: 100% 86%; background-position: 0 60%; background-repeat: no-repeat; border-radius: 6px; }
.hero__bill { margin-top: 0.7rem; font: 500 clamp(1.02rem, 4.5vw, 1.25rem)/1.3 var(--text); max-width: 23rem; color: rgba(255, 255, 255, 0.95); }
.hero__bill b { color: var(--sub); font-weight: 700; }
.hero__ticker { margin-top: 0.75rem; min-height: 2.5rem; display: grid; place-items: center; }
.hero__ticker span { display: inline-block; padding: 0.42em 0.9em 0.3em; border-radius: 999px; background: rgba(244, 231, 197, 0.12); box-shadow: inset 0 0 0 1px rgba(244, 231, 197, 0.35); font: 500 clamp(0.98rem, 4.2vw, 1.12rem)/1.15 var(--bill); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); transition: opacity 0.3s ease, transform 0.3s ease; }
.hero__ticker span.swap { opacity: 0; transform: translateY(8px); }
.hero__cta { margin-top: 0.8rem; }
.btn--go { position: relative; padding-right: 2.4em !important; }
.btn--go::after { content: ''; position: absolute; right: 1em; top: 50%; width: 0.5em; height: 0.5em; margin-top: -0.42em; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px) rotate(45deg); } }
.hero__hint { display: none; }
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; text-decoration: none; font: 500 0.92rem/1 var(--bill); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 231, 197, 0.8); }
.hero__cue i { width: 12px; height: 12px; border-right: 2px solid var(--marigold); border-bottom: 2px solid var(--marigold); transform: rotate(45deg); animation: nudge 1.1s ease-in-out infinite; }
/* the snipe: a sticker on the poster */
.hero__badge { position: absolute; z-index: 3; right: max(10px, 3vw); top: 15%; width: clamp(92px, 26vw, 132px); aspect-ratio: 1; display: grid; place-content: center; text-align: center; padding: 0 8px; border-radius: 50%; background: var(--vermilion); color: #fff; font: 600 clamp(0.82rem, 3.5vw, 1.05rem)/1.02 var(--bill); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(12deg); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--vermilion), 0 10px 22px rgba(0, 0, 0, 0.45); }
.hero__badge b { display: block; font: 400 clamp(2rem, 9vw, 3rem)/0.8 var(--display); }
.hero__badge i { display: block; margin-top: 0.25em; font-style: normal; color: var(--sub); font-weight: 700; letter-spacing: 0.16em; }
.js .hero__hook, .js .hero__ticker, .js .hero__badge, .js .hero__cue { opacity: 0; }
.js.go .hero__hook { animation: fadeup 0.6s 1.55s ease-out forwards; }
.js.go .hero__bill { animation: fadeup 0.6s 1.8s ease-out forwards; }
.js.go .hero__ticker { animation: fadeup 0.6s 2s ease-out forwards; }
.js.go .hero__cta { animation: fadeup 0.6s 2.15s ease-out forwards; }
.js.go .hero__cue { animation: fadein 0.6s 2.6s ease-out forwards; }
.js.go .hero__badge { animation: stick 0.5s 1.3s cubic-bezier(0.2, 1.5, 0.3, 1) forwards; }
@keyframes stick { from { opacity: 0; transform: rotate(-20deg) scale(2); } to { opacity: 1; transform: rotate(12deg) scale(1); } }

/* lessons collected */
.bar__lessons { padding: 0.5em 0.75em 0.36em; border-radius: 999px; background: rgba(246, 182, 50, 0.16); box-shadow: inset 0 0 0 1.5px rgba(246, 182, 50, 0.7); color: var(--paper); font: 600 clamp(0.95rem, 3.9vw, 1.08rem)/1 var(--bill); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.bar__lessons b { color: var(--sub); font-weight: 700; }
.scrolled .bar__lessons { opacity: 1; transform: none; pointer-events: auto; }
.bar__lessons.pop { animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.3, 1); }
@keyframes pop { 30% { transform: scale(1.22); background: var(--marigold); color: var(--ink); } }
.bar__mark { margin-right: auto; }
.bar__sound { margin-left: 0; }

/* the cheat sheet */
.sheet__list { counter-reset: l; display: grid; gap: 0; max-width: 46rem; margin-bottom: 2rem; }
.sheet__list li { counter-increment: l; position: relative; padding: 0.85rem 0 0.85rem 3.1rem; border-top: 1px solid rgba(42, 26, 18, 0.22); font: 400 clamp(1.3rem, 5.6vw, 1.7rem)/1.14 var(--display); }
.sheet__list li:last-child { border-bottom: 1px solid rgba(42, 26, 18, 0.22); }
.sheet__list li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 0.95rem; font: 700 1.2rem/1 var(--bill); letter-spacing: 0.08em; color: var(--vermilion); }
.sheet__list li.todo { color: rgba(42, 26, 18, 0.34); }
.sheet__list li.todo::after { content: ' (in the film)'; font: 500 0.95rem/1 var(--bill); letter-spacing: 0.1em; text-transform: uppercase; }
.sheet__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .bar__mark { display: none; }
  .bar__lessons { margin-right: auto; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero { height: 100svh; }
  .hero__star { top: 12svh; left: var(--gutter); right: auto; text-align: left; font-size: clamp(1.9rem, 2.6vw, 2.8rem); }
  .hero__star span { display: inline; margin-left: 0.6em; }
  .hero__fig { width: min(46vw, 78svh); bottom: 0; left: 68%; }
  .hero__copy { padding: 14svh 0 0; }
  .hero__title { width: min(30vw, 430px); margin-left: -1%; }
  .hero__hook { font-size: clamp(3rem, 5.2vw, 5.4rem); }
  .hero__bill { font-size: 1.3rem; max-width: 30rem; }
  .hero__ticker { justify-items: start; }
  .hero__badge { right: auto; left: min(46vw, 640px); top: 20%; width: 140px; }
  .hero__cue { left: var(--gutter); transform: none; justify-items: start; bottom: 4svh; }
  .hero__shade { height: auto; background: linear-gradient(to right, rgba(4, 16, 19, 0.95) 0%, rgba(4, 16, 19, 0.74) 52%, rgba(4, 16, 19, 0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__hook, .js .hero__ticker, .js .hero__badge, .js .hero__cue { opacity: 1 !important; animation: none !important; }
  .btn--go::after, .hero__cue i { animation: none; }
}
.hero__star span { display: inline; margin: 0 0 0 0.5em; }
.hero__fig { bottom: 25%; width: min(80vw, 45svh); }
.hero__cta { flex-wrap: nowrap; gap: 0.5rem; }
.hero__cta .btn { font-size: clamp(1rem, 4.3vw, 1.3rem); padding: 0 0.8em; min-height: 50px; white-space: nowrap; }
.hero__badge { top: 13%; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__fig { width: min(46vw, 78svh); bottom: 0; }
  .hero__badge { top: 20%; }
  .hero__cta .btn { font-size: 1.3rem; padding: 0 1.1em; }
}
.hero__cta .btn--go { min-width: min(72vw, 300px); min-height: 56px; font-size: clamp(1.25rem, 5.4vw, 1.5rem); }

/* desktop: one caption at a time, large, like the phone */
.bar__book { display: none; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .subs { display: block; top: 40vh; bottom: auto; height: 46vh; width: min(42vw, 640px); }
  .subs li, .subs li.was { position: absolute; left: 0; right: 0; top: 0; bottom: auto; opacity: 0; transform: translateY(28px); text-align: left; font-size: clamp(1.55rem, 2.25vw, 2.35rem); line-height: 1.24; font-weight: 700; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.2, 1.3, 0.3, 1); }
  .subs li.was { transform: translateY(-30px); }
  .subs li.on { opacity: 1; transform: none; }
  .subs cite { font-size: 1.05rem; margin-top: 0.7rem; }
  .subs .big { font-size: clamp(3.4rem, 5.4vw, 5.6rem); }
  .subs li.lesson, .subs li.lesson.was { display: block; opacity: 0; max-width: 580px; padding: 22px 26px; margin: 0; font: 400 1.1rem/1.4 var(--text); text-shadow: none; transform: translateY(46px) rotate(2deg); }
  .subs li.lesson.on { opacity: 1; transform: rotate(-0.8deg); }
  .lesson__src { font-size: 1.1rem; }
  .bar__book { display: inline-flex; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
  .scrolled .bar .bar__book { display: inline-flex; opacity: 1; transform: none; pointer-events: auto; }
  .dock { display: none; }
  .book .ticket { align-self: start; margin-top: 1.5rem; transform: rotate(-1.2deg) scale(1.12); transform-origin: 50% 0; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .scene--housefull .subs { top: 47vh; height: 42vh; }
  .scene--housefull .subs li { font-size: clamp(1.4rem, 1.95vw, 2.05rem); }
}
.credits__origin { width: min(74vw, 300px); margin: 1.2rem 0 0.6rem; transform: rotate(-2.5deg); text-align: left; }

/* play the film */
.play__i { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 0.42em 0 0.42em 0.7em; border-color: transparent transparent transparent currentColor; margin-right: 0.15em; }
.playing .play__i { width: 0.62em; height: 0.84em; border: 0; border-left: 0.22em solid currentColor; border-right: 0.22em solid currentColor; }
.btn--play { min-width: min(76vw, 320px); min-height: 60px; gap: 0.6em; font-size: clamp(1.4rem, 6vw, 1.7rem) !important; animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 4px 0 #a3600c, 0 0 0 9px rgba(246, 182, 50, 0.22), 0 10px 30px rgba(0, 0, 0, 0.4); } }
.bar__play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--ink); background: var(--marigold); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.bar__play .play__i { margin: 0 0 0 0.12em; }
.playing .bar__play .play__i { margin: 0; }
.scrolled .bar__play { opacity: 1; transform: none; pointer-events: auto; }
.hero__cue span { letter-spacing: 0.14em; }
.subs cite a.say { color: var(--marigold); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .btn--play { animation: none; } }
.hero__copy { padding-bottom: max(62px, env(safe-area-inset-bottom) + 54px); }

/* ============ v4: living paintings ============ */
/* depth: the subject floats a little in front of its painting, and both drift */
.cam { position: absolute; inset: 0; transform: scale(1.03); transform-origin: 50% 50%; transition: transform 1.15s cubic-bezier(0.3, 0.1, 0.15, 1); }
.cam > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.scene__img { transform: scale(1.02); }
.scene__fg { transform: scale(1.045); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.scene__art.cut .cam { animation: cut 0.45s ease-out; }
.amb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* screens, candles and lamps glow and flicker */
.glow { position: absolute; z-index: 2; width: 62%; aspect-ratio: 1; margin: -31% 0 0 -31%; border-radius: 50%; background: radial-gradient(circle, var(--c, #ffd27a) 0%, rgba(255, 210, 122, 0) 62%); mix-blend-mode: screen; opacity: 0.3; pointer-events: none; animation: flicker 3.7s linear infinite; }
@keyframes flicker { 0%, 100% { opacity: 0.26; } 8% { opacity: 0.4; } 13% { opacity: 0.24; } 31% { opacity: 0.37; } 36% { opacity: 0.29; } 58% { opacity: 0.42; } 64% { opacity: 0.27; } 83% { opacity: 0.36; } }

/* each scene is a frame of film: sprocket holes on its top and bottom edge */
.scene__pin::before, .scene__pin::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; z-index: 5; pointer-events: none; background: #020a0c linear-gradient(90deg, transparent 9px, #e7d9b3 9px 21px, transparent 21px) 0 5px / 30px 8px repeat-x; }
.scene__pin::before { top: 0; }
.scene__pin::after { bottom: 0; }
.ticks { bottom: calc(var(--dock) + max(26px, env(safe-area-inset-bottom) + 18px)); }
.subs li { bottom: calc(var(--dock) + max(52px, env(safe-area-inset-bottom) + 42px)); }
.slug b { display: inline-block; margin-right: 0.55em; padding: 0.16em 0.5em 0.04em; border: 1.5px solid currentColor; border-radius: 4px; font-weight: 600; color: var(--paper); }

/* the cue under the play button */
.hero__cue { position: static; transform: none; display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.95rem; }
.hero__cue i { margin-top: -6px; }
.cue--mouse { display: none; }
.hero__copy { padding-bottom: max(20px, env(safe-area-inset-bottom) + 12px); }
.sheet__mail { margin-top: 1.2rem; font-size: 1rem; max-width: 34rem; }

/* trackpads and mice scroll freely; only fingers snap from beat to beat */
@media (hover: hover) and (pointer: fine) {
  html { scroll-snap-type: none; }
  .cue--touch { display: none; }
  .cue--mouse { display: inline; }
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .subs { top: var(--subs-top, 40vh); height: auto; bottom: 9vh; }
  .scene--housefull .subs { top: var(--subs-top, 47vh); height: auto; }
  .scene h2 { font-size: clamp(2.1rem, 3.5vw, 3.9rem); }
  .scene__head { top: 13vh; }
  /* the poster leans toward the pointer and catches the light */
  .scene__art { transform: translateY(-50%) perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(1.3deg); transition: transform 0.25s ease-out; }
  .scene:nth-of-type(even) .scene__art { transform: translateY(-50%) perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(-1.3deg); }
  .scene__art::before { display: block; top: 0; height: 100%; z-index: 6; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 44%); mix-blend-mode: soft-light; }
  .hero__cue { justify-self: start; }
  .scene__pin::before { display: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 820px) {
  .scene h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
  .subs li, .subs li.was { font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
  .scene__head { top: 11vh; }
  .lesson__text { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
}
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

/* overlays never sit on the scene title, however many lines it wraps to */
.still:not(.big) { top: max(var(--top, 31%), calc(var(--head-b, 0px) + 26px)); }
.fx.ft:not(.still) { top: max(var(--top), calc(var(--head-b, 0px) + 14px)); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .still:not(.big) { top: var(--top, 31%); }
  .fx.ft:not(.still) { top: var(--top); }
}

/* a photo gives way to a lesson card on short phones */
.scene.on-lesson .still.on:not(.big) { transform: rotate(var(--tilt, 4deg)) scale(var(--fit, 1)); transform-origin: 100% 0; }
.scene.on-lesson .still.tuck:not(.big) { opacity: 0; pointer-events: none; }

/* wide screens: the real photograph sits beside the painted one, under the caption */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .still.side, .still.side.big { left: calc(var(--gutter) + 1.2vw); right: auto; top: var(--st); width: var(--sw); padding: 10px 10px 0; z-index: 4; cursor: default; transform: translateY(60px) rotate(9deg) scale(0.86); transform-origin: 50% 50%; transition: transform 0.6s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.3s ease; }
  .scene:nth-of-type(even) .still.side { left: auto; right: calc(var(--gutter) + min(42vw, 640px) - var(--sw) - 1.2vw); }
  .still.side.on, .still.side.big.on { transform: rotate(var(--tilt, 4deg)); }
  .still.side figcaption { font-size: 1.12rem; padding: 8px 4px 10px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .subs li, .subs li.was, .subs li.lesson { bottom: auto; } }

/* ============ one swipe, one beat ============ */
/* A scene lets go on its last beat, so no swipe is ever wasted. On touch screens the film snaps like a reel:
   every swipe lands on the next caption, however hard it is flicked. Past the film the page scrolls freely. */
.scene { height: calc((var(--n, 3) - 1) * var(--beat) + 100svh); }
html { scroll-snap-type: none; }
html.in-film { scroll-snap-type: y mandatory; }
.hero, .interval, #sheet { scroll-snap-align: start; }
.snap, .hero, .interval, #sheet { scroll-snap-stop: always; }
.cert { touch-action: none; }
@media (hover: hover) and (pointer: fine) { html, html.in-film { scroll-snap-type: none; } }
:root { --beat: 64svh; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { :root { --beat: 60svh; } }

/* ============ v5: widescreen film on desktop, year-true paintings, share ============ */
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.scene__fg { transform-origin: var(--ox, 50%) var(--oy, 60%); }
.fxs { position: absolute; inset: 0; pointer-events: none; }
.glow { left: var(--lx); top: var(--ly); }
.still { width: min(var(--w, 50%), 270px); }
.stamp small { font-size: 0.56em; letter-spacing: 0.08em; }

/* every lesson can be sent to a friend */
.lesson__do { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; margin-top: 0.6rem; }
.lesson__do .lesson__cta { margin-top: 0; }
.lesson__share, .interval__share { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0.55em 0 0.4em; cursor: pointer; font: 600 1.02rem/1.1 var(--bill); letter-spacing: 0.07em; text-transform: uppercase; color: #a8321c; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.24em; pointer-events: auto; }
.lesson__share:hover { color: var(--ink); }
.interval__share { color: var(--paper); font-size: 1.12rem; }
.interval__share:hover { color: var(--marigold); }
.subs__do { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.9rem; }
.subs__do .btn { text-shadow: none; }

/* poster ticker is a door to the scene it teases */
#ticker { display: inline-block; color: inherit; text-decoration: none; }
#ticker:hover span, #ticker:focus-visible span { box-shadow: inset 0 0 0 1.5px var(--marigold); color: var(--marigold); }

/* certificate: four short rows and the joke where it can be read */
.cert__fine { font: 600 1.14rem/1.3 var(--text); }
.cert__skip { bottom: max(56px, calc(env(safe-area-inset-bottom) + 40px)); color: rgba(244, 231, 197, 0.8); }
.book__top { margin-top: 1.2rem; }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  /* student results: one swipe row, not four screens of thumbnails */
  .hof { grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 22px; gap: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hof::-webkit-scrollbar { display: none; }
  .hof li { scroll-snap-align: center; }
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* The painting fills the screen like a cinema frame. Its left third is painted quiet, and a shade turns it into a page for the words. */
  .scene__art, .scene:nth-of-type(even) .scene__art { inset: 0; top: 0; right: 0; bottom: 0; left: 0; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; transform: none; transition: none; }
  .cam img { object-position: 74% 50%; }
  .scene__fg { transform-origin: var(--wox, 70%) var(--woy, 55%); }
  .scene__art::before { display: block; top: 0; right: 0; bottom: 0; left: 0; height: auto; z-index: 1; mix-blend-mode: normal;
    background: linear-gradient(90deg, rgba(4, 14, 17, 0.95) 0%, rgba(4, 14, 17, 0.88) 24%, rgba(4, 14, 17, 0.55) 44%, rgba(4, 14, 17, 0) 62%), linear-gradient(to bottom, rgba(4, 14, 17, 0.55), rgba(4, 14, 17, 0) 15%); }
  .scene__art::after { display: block; height: 20%; background: linear-gradient(to top, rgba(4, 14, 17, 0.72), rgba(4, 14, 17, 0)); }
  .fxs { left: 55%; right: 3%; top: 11%; bottom: 10%; }
  .glow { left: var(--wlx); top: var(--wly); width: 24%; margin: -12% 0 0 -12%; }
  .glow--p { display: none; }
  .scene__head, .scene:nth-of-type(even) .scene__head { left: var(--gutter); right: auto; top: 15vh; width: min(46vw, 720px); }
  .subs, .scene:nth-of-type(even) .subs { left: var(--gutter); right: auto; width: min(40vw, 600px); }
  .ticks, .scene:nth-of-type(even) .ticks { left: var(--gutter); right: auto; }
  .still.side, .scene:nth-of-type(even) .still.side { left: calc(var(--gutter) + 1.2vw); right: auto; }
  .scene h2 { font-size: clamp(2.3rem, 3.9vw, 4.2rem); }
  .subs__do { justify-content: flex-start; }
  .stamp { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
  /* lower sections use the width */
  .sheet__list { display: block; columns: 2; column-gap: 4.5rem; max-width: 70rem; }
  .sheet__list li { break-inside: avoid; }
  .lines { grid-template-columns: 1fr 1fr; column-gap: 4rem; max-width: none; }
  .lines blockquote { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
  .tour { max-width: 62rem; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 820px) {
  .scene h2 { font-size: clamp(1.9rem, 3.1vw, 3.1rem); }
  .scene__head, .scene:nth-of-type(even) .scene__head { top: 12vh; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .scene__art::before { background: linear-gradient(90deg, rgba(4, 14, 17, 0.93) 0%, rgba(4, 14, 17, 0.84) 22%, rgba(4, 14, 17, 0.52) 42%, rgba(4, 14, 17, 0.14) 56%, rgba(4, 14, 17, 0) 66%), linear-gradient(to bottom, rgba(4, 14, 17, 0.55), rgba(4, 14, 17, 0) 15%); }
  /* stamps land on the desk, the bag or the laptop, not on a face */
  .fxs .stamp.ft { top: calc(var(--top) + 22%); }
  .subs__do .btn { min-height: 48px; font-size: 1.2rem; padding: 0 1.1em; }
}
/* a photograph never covers the words on a phone */
.still.on:not(.big):not(.side) { transform: rotate(var(--tilt, 4deg)) scale(var(--fit, 1)); transform-origin: 100% 0; }
.still.tuck:not(.big) { opacity: 0; pointer-events: none; }

/* ============ v5b: robustness ============ */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scene.live .cam, .scene.live .scene__img, .scene.live .scene__fg { will-change: transform; }
.toasts:not(.on) span { animation: none; }
.scene:not(.live) .glow { animation-play-state: paused; }
.lesson__no { color: #b53019; }
.sheet__list li.todo { color: rgba(42, 26, 18, 0.64); }
.dock b { white-space: nowrap; font-size: clamp(1.02rem, 4.7vw, 1.22rem); }
.dock .btn { flex: none; white-space: nowrap; }
.hero__bill { text-wrap: pretty; }
:root { --beat: 78svh; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { :root { --beat: 60svh; } .hero__bill { max-width: 33rem; } }
@media (max-height: 630px) and (max-width: 899px) { .hero { min-height: 560px; } .hero__title { width: min(56vw, 30svh); } .hero__hook { font-size: clamp(1.8rem, 8.4vw, 2.6rem); } }

/* a short laptop window: the name must clear the painted title */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero__star { top: 5svh; }
  .hero__copy { padding-top: 11svh; }
  .hero__title { width: min(23vw, 34svh); }
  .hero__hook { font-size: clamp(2.2rem, 8svh, 3.6rem); }
  .hero__bill { font-size: 1.1rem; margin-top: 0.4rem; }
  .hero__cue { margin-top: 0.5rem; }
}

/* a phone on its side: the film is shot in portrait */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  body::before { content: 'Turn your phone upright. This film is shot in portrait.'; position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; text-align: center; background: #06181c; color: #f4e7c5; font: 400 1.6rem/1.2 var(--display); }
}

/* older browsers without svh units */
@supports not (height: 1svh) {
  :root { --beat: 78vh; }
  .hero { height: 94vh; }
  .scene { height: calc((var(--n, 3) - 1) * var(--beat) + 100vh); }
  .scene__pin { height: 100vh; }
  .interval { min-height: 100vh; }
}

/* if the film script fails or is switched off, the story is still all there to read */
html:not(.js) .scene, .nofilm .scene { height: auto; }
html:not(.js) .scene__pin, .nofilm .scene__pin { position: relative; height: auto; min-height: 100svh; }
html:not(.js) .subs, .nofilm .subs { position: relative; inset: auto; width: auto; height: auto; display: grid; gap: 1.1rem; padding: 46svh var(--gutter) 64px; }
html:not(.js) .subs li, .nofilm .subs li, html:not(.js) .subs li.lesson, .nofilm .subs li.lesson { position: static; opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .fxs, .nofilm .fxs, html:not(.js) .lesson__share, .nofilm .lesson__share { display: none; }
html:not(.js) .bar__lessons, html:not(.js) .bar__play, html:not(.js) .bar__sound, html:not(.js) .bar__menu, html:not(.js) [data-play], html:not(.js) [data-share] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cam { transition: none; }
  .scene__art.cut .cam { animation: none; }
  .toasts span { animation: none; opacity: 1; position: static; display: inline-block; margin: 4px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero__copy { padding-top: 7svh; }
  .hero__title { width: min(26vw, 46svh); }
}
/* with a mouse or trackpad nothing snaps, so a caption should cost less scrolling */
@media (hover: hover) and (pointer: fine) { :root { --beat: 50svh; } }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (hover: hover) and (pointer: fine) { :root { --beat: 56svh; } }

/* keyboard: nothing invisible takes focus, and a focused bar control shows itself */
.bar a:focus-visible, .bar button:focus-visible { opacity: 1 !important; transform: none !important; pointer-events: auto; }
html:not(.docked) .dock { visibility: hidden; }
.docked .dock { visibility: visible; }

/* ============ v5c: last placement fixes from the every-beat check ============ */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .fx.stamp.ft { top: max(var(--top), calc(var(--head-b, 0px) + 34px)); }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  #s-client .fxs .chip.ft { top: 14%; }
  #s-housefull .fxs > .still:not(.side) { right: -2%; width: 240px; }
  .hero__fig { width: min(46vw, 72svh); }
  .scene__head h2 { text-shadow: 0 2px 4px rgba(4, 14, 17, 0.9), 0 0 22px rgba(4, 14, 17, 0.85); }
  .scene__head .slug { text-shadow: 0 1px 3px rgba(4, 14, 17, 0.95), 0 0 14px rgba(4, 14, 17, 0.9); }
  .sheet__list { max-width: none; }
  .cast__grid { align-items: start; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 820px) {
  #s-teacher .fxs > .still:not(.side) { top: 1%; right: 0; width: 200px; }
}

/* ============ v5d: faster first screen ============ */
/* the headline and the Play button arrive sooner after the poster */
.js.go .hero__badge { animation-delay: 0.85s; }
.js.go .hero__hook { animation-delay: 0.95s; }
.js.go .hero__bill { animation-delay: 1.1s; }
.js.go .hero__ticker { animation-delay: 1.2s; }
.js.go .hero__cta { animation-delay: 1.15s; }
.js.go .hero__cue { animation-delay: 1.5s; }
/* a painting that is still arriving shows a lit backdrop, not a black hole */
.scene__art { background: radial-gradient(circle at 60% 42%, #1d5d62 0%, #0d3a3f 55%, #06181c 100%); }
