/* =========================================================
   ONE IDEA — cinematic scroll story
   ========================================================= */

:root {
  --bg: #050505;
  --fg: #ece8e1;
  --muted: rgba(236, 232, 225, 0.55);
  --faint: rgba(236, 232, 225, 0.14);
  --gold: #c8a46a;
  --gold-soft: rgba(200, 164, 106, 0.6);
  --red: #c23a2b;
  --accent: var(--gold);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --lb: 7vh;                   /* letterbox bar height */
  --gutter: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-card { --lb: 13vh; }
body[data-chapter="2"] { --accent: #d7d3cc; }

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

html, body { scrollbar-width: none; }
html { background: var(--bg); }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
em { font-style: italic; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }

/* ---------------------------------------------------------
   Fixed cinematic layers
   --------------------------------------------------------- */
#film {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.flash {
  position: fixed; inset: 0; z-index: 30;
  background: #dfe6ee;
  opacity: var(--flash, 0);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; z-index: 31; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
}

.grain {
  position: fixed; inset: -100%; z-index: 32; pointer-events: none;
  width: 300%; height: 300%;
  opacity: .09;
  background-size: 180px 180px;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -5%); }
  60%  { transform: translate(-6%, -2%); }
  80%  { transform: translate(5%, 4%); }
  100% { transform: translate(-2%, 6%); }
}

.letterbox {
  position: fixed; left: 0; right: 0; z-index: 40;
  height: var(--lb);
  background: #000;
  transition: height 1.4s var(--ease), transform 1.6s var(--ease);
  pointer-events: none;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
body.is-loading .letterbox { transform: scaleY(0); }
body.is-loading .letterbox--top { transform-origin: top; }
body.is-loading .letterbox--bottom { transform-origin: bottom; }

/* Opening card */
.opening {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: #000;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
body:not(.is-loading) .opening { opacity: 0; }
.opening__presents {
  font-size: 11px; letter-spacing: .55em; color: var(--muted);
  opacity: 0; animation: presents 2.6s ease forwards .3s;
}
.opening__presents span { font-family: var(--serif); font-style: italic; letter-spacing: .1em; font-size: 15px; text-transform: none; margin-left: .4em; }
@keyframes presents {
  0% { opacity: 0; letter-spacing: .7em; }
  40%, 70% { opacity: 1; }
  100% { opacity: 0; letter-spacing: .45em; }
}

/* ---------------------------------------------------------
   HUD
   --------------------------------------------------------- */
.hud, .timecode {
  position: fixed; z-index: 50;
  opacity: 0; transition: opacity 1.6s ease 1.2s;
}
body.is-ready .hud, body.is-ready .timecode { opacity: 1; }

.hud {
  top: 0; left: 0; right: 0;
  height: max(var(--lb), 56px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  font-size: 10px; letter-spacing: .35em;
  transition: opacity 1.6s ease 1.2s, height 1.4s var(--ease);
}
.hud__logo {
  color: var(--fg); text-decoration: none; font-weight: 500; letter-spacing: .4em;
  justify-self: start;
}
.hud__logo span { color: var(--accent); margin: 0 .35em; }
.hud__chapter { display: flex; gap: 1.2em; color: var(--muted); white-space: nowrap; }
.hud__reel { color: var(--fg); }
.hud__chapter.is-swap { animation: swap .9s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(6px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }

.hud__sound {
  justify-self: end; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  font-size: 10px; letter-spacing: .35em; color: var(--muted);
  transition: color .4s;
}
.hud__sound:hover, .hud__sound[aria-pressed="true"] { color: var(--fg); }
.hud__eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.hud__eq i { width: 2px; height: 2px; background: currentColor; }
.hud__sound[aria-pressed="true"] .hud__eq i { animation: eq 1s ease-in-out infinite; }
.hud__eq i:nth-child(2) { animation-delay: -.3s !important; }
.hud__eq i:nth-child(3) { animation-delay: -.6s !important; }
.hud__eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%,100% { height: 2px; } 50% { height: 10px; } }

.timecode {
  bottom: 0; left: 0; right: 0;
  height: max(var(--lb), 48px);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter);
  font-size: 10px; letter-spacing: .25em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timecode__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.timecode__tc { color: var(--fg); min-width: 11.5ch; }
.timecode__bar { flex: 1; height: 1px; background: var(--faint); position: relative; }
.timecode__bar > i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* chapter markers sit on the timeline itself */
.timecode__bar { overflow: visible; }
.timecode__bar > i { overflow: hidden; }
.reels { position: absolute; inset: 0; }
.reels a {
  position: absolute; top: 50%; left: calc(var(--at, 0) * 100%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 8px;
  color: var(--muted); text-decoration: none; font-size: 9px; letter-spacing: .3em;
}
.reels a::before { content: ""; width: 1px; height: 9px; background: currentColor; order: 1; transition: height .4s var(--ease), background .4s; }
.reels a span { position: absolute; bottom: 100%; transition: color .4s; }
.reels a em {
  position: absolute; top: 100%; white-space: nowrap; font-style: normal;
  opacity: 0; transform: translateY(-4px); transition: opacity .5s, transform .5s var(--ease);
}
.reels a:hover em, .reels a:focus-visible em { opacity: 1; transform: none; }
.reels a:hover, .reels a.is-active { color: var(--fg); }
.reels a.is-active::before { background: var(--accent); height: 13px; }
.reels a.is-past::before { background: var(--accent); }

/* ---------------------------------------------------------
   Scenes
   --------------------------------------------------------- */
main { position: relative; z-index: 1; }

.scene { position: relative; height: calc(var(--len, 3) * 100vh); }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.stage--center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.stage__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4vh;
  text-align: center; padding: 0 var(--gutter);
  pointer-events: none;
}
.stage__center--low { padding-top: 34vh; }

/* elements driven by the timeline never block clicks unless explicitly enabled */
[data-tl] { will-change: opacity, transform; }

/* ---------------------------------------------------------
   Scroll-driven FX
   --i = entrance progress (0→1), --o = exit progress (0→1), --v = visibility
   --------------------------------------------------------- */
.fx-fade    { opacity: var(--v, 0); }
.fx-up      { opacity: var(--v, 0); transform: translate3d(0, calc((1 - var(--i, 0)) * 48px - var(--o, 0) * 36px), 0); }
.fx-blur    { opacity: var(--v, 0); filter: blur(calc((1 - var(--i, 0)) * 14px + var(--o, 0) * 10px)); transform: scale(calc(1.06 - var(--i, 0) * .06 + var(--o, 0) * .05)); }
.fx-scale   { opacity: var(--v, 0); transform: scale(calc(.82 + var(--i, 0) * .18 + var(--o, 0) * .2)); }
.fx-left    { opacity: var(--v, 0); transform: translate3d(calc((1 - var(--i, 0)) * -24vw - var(--o, 0) * 10vw), 0, 0); }
.fx-right   { opacity: var(--v, 0); transform: translate3d(calc((1 - var(--i, 0)) * 24vw + var(--o, 0) * 10vw), 0, 0); }
.fx-drift   { opacity: var(--v, 0); transform: scale(calc(.86 + var(--p, 0) * .24)); }
.fx-mask    {
  opacity: calc(1 - var(--o, 0));
  clip-path: inset(calc((1 - var(--i, 0)) * 100%) -10% -10% -10%);
  transform: translate3d(0, calc((1 - var(--i, 0)) * .25em - var(--o, 0) * .15em), 0);
}
.fx-slam    {
  opacity: var(--v, 0);
  transform: scale(calc(1 + (1 - var(--i, 0)) * 1.4)) translate3d(0, 0, 0);
  filter: blur(calc((1 - var(--i, 0)) * 10px));
}
.fx-dissolve {
  opacity: calc(1 - var(--o, 0));
  transform: scale(calc(1 + var(--o, 0) * .5));
  filter: blur(calc(var(--o, 0) * 22px));
  letter-spacing: calc(var(--o, 0) * .12em);
}
.fx-reveal-h { clip-path: inset(0 calc((1 - var(--i, 0)) * 50%) 0 calc((1 - var(--i, 0)) * 50%)); opacity: calc(1 - var(--o, 0)); }
.fx-reveal-v { clip-path: inset(calc((1 - var(--i, 0)) * 50%) 0 calc((1 - var(--i, 0)) * 50%) 0); opacity: calc(1 - var(--o, 0)); }
.fx-iris     { clip-path: circle(calc(var(--i, 0) * 80%) at 50% 50%); opacity: calc(1 - var(--o, 0)); }

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 12rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.display em, .display--italic { font-style: italic; text-transform: none; color: var(--accent); }
.display--xxl { font-size: clamp(4.2rem, 17vw, 19rem); line-height: .85; }
.display--light { text-transform: none; font-style: italic; }

.serif-xl {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 5.4rem); line-height: 1.08; letter-spacing: -.01em;
  max-width: 18ch;
}
.serif-lg {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.18;
}
.serif-xl em, .serif-lg em { color: var(--accent); }

.small-cap {
  font-size: 11px; letter-spacing: .5em; color: var(--muted); text-transform: uppercase;
}
.small-cap--top {
  position: absolute; left: 0; right: 0; text-align: center;
  top: calc(max(var(--lb), 56px) + 5vh);
}
.mono {
  font-family: var(--sans); font-size: 10px; letter-spacing: .35em; color: var(--muted);
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* Film subtitles */
.sub {
  position: absolute; left: 0; right: 0;
  bottom: calc(max(var(--lb), 48px) + 3.2vh);
  text-align: center;
  font-family: var(--jp); font-weight: 300;
  font-size: clamp(12px, 1.05vw, 15px); letter-spacing: .18em; line-height: 1.8;
  color: rgba(236, 232, 225, .82);
  padding: 0 var(--gutter);
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
  transition: bottom 1.4s var(--ease);
}
.sub--inline { position: static; padding: 0; margin-top: 2.4vh; }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
#hero .stage {
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.9rem, 10vw, 11rem);
  line-height: .92; letter-spacing: -.015em;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title .line { display: block; overflow: hidden; padding: .04em .1em; }
.hero__title .line > span { display: inline-block; }
.line--accent > span { font-style: italic; color: var(--gold); }

#hero .hero__title .line > span {
  opacity: 0; transform: translateY(40%); filter: blur(18px);
}
body.is-ready #hero .hero__title .line > span {
  animation: heroIn 2.8s var(--ease) forwards;
}
body.is-ready #hero .hero__title .line:nth-child(1) > span { animation-delay: .5s; }
body.is-ready #hero .hero__title .line:nth-child(2) > span { animation-delay: 1.3s; }
body.is-ready #hero .hero__title .line:nth-child(3) > span { animation-delay: 2.3s; animation-duration: 3.4s; }
@keyframes heroIn {
  0% { opacity: 0; transform: translateY(40%); filter: blur(18px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

.hero__kicker, .hero__sub, .scrollcue { opacity: 0; transition: opacity 2s ease; }
.hero__kicker {
  position: absolute; left: 0; right: 0; text-align: center;
  top: calc(max(var(--lb), 56px) + 6vh);
  font-size: 11px; letter-spacing: .6em; color: var(--muted);
}
body.is-ready .hero__kicker { animation: fadeLate 2s ease 3.6s both; }
body.is-ready .hero__sub { animation: fadeLate 2s ease 4.2s both; }
body.is-ready .scrollcue { animation: fadeLate 2s ease 4.8s both; }
@keyframes fadeLate { from { opacity: 0; } to { opacity: 1; } }
/* after the intro, the timeline takes over */
body.is-live .hero__kicker, body.is-live .hero__sub, body.is-live .scrollcue { animation: none; opacity: var(--v, 0); }

.hero__sub { bottom: calc(max(var(--lb), 48px) + 14vh); }
.scrollcue {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(max(var(--lb), 48px) + 2.4vh);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .5em; color: var(--muted);
}
.scrollcue i { width: 1px; height: 44px; background: linear-gradient(var(--fg), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------
   Chapter title cards
   --------------------------------------------------------- */
.chapter-card .stage { gap: 3vh; }
.chapter-card__num {
  position: absolute; top: 50%; left: 50%;
  margin: -.5em 0 0 -.5em; width: 1em; height: 1em;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(18rem, 58vw, 60rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236,232,225,.13);
  pointer-events: none;
}
.chapter-card__label { font-size: 11px; letter-spacing: .7em; color: var(--accent); position: relative; }
.chapter-card__rule {
  display: block; width: min(320px, 50vw); height: 1px; background: var(--fg); position: relative;
  transform: scaleX(calc(var(--i, 0) - var(--o, 0)));
}
.chapter-card__title {
  position: relative;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 11.5vw, 13rem); line-height: .9; letter-spacing: -.01em;
  white-space: nowrap;
}
.chapter-card__title .ch {
  display: inline-block;
  opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(12px);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease);
  transition-delay: calc(var(--n) * 55ms);
}
.chapter-card__title.is-on .ch { opacity: 1; transform: none; filter: blur(0); }
.chapter-card__jp { font-family: var(--jp); font-size: 12px; letter-spacing: .6em; color: var(--muted); position: relative; }
.chapter-card--gold .chapter-card__num { -webkit-text-stroke-color: rgba(200,164,106,.22); }

/* ---------------------------------------------------------
   Shots (photography)
   --------------------------------------------------------- */
.shot { position: absolute; inset: 0; overflow: hidden; background: #000; }
.shot__img {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05) brightness(.82);
}
.kenburns        { transform: scale(calc(1.02 + var(--p, 0) * .16)); }
.kenburns--slow  { transform: scale(calc(1.05 + var(--p, 0) * .08)) translate3d(calc(var(--p, 0) * -2%), 0, 0); }
.kenburns--in    { transform: scale(calc(1.25 - var(--p, 0) * .2)); }
.kenburns--up    { transform: scale(1.1) translate3d(0, calc(var(--p, 0) * -4%), 0); }

.shot--mono .shot__img { filter: grayscale(1) contrast(1.25) brightness(.62); }
.shot__shade { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.shot__shade--left { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%); }
.shot__shade--bottom { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.35) 100%); }
.shot__shade--soft { background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.6)); }

.shake .shot__img { animation: shake 7s ease-in-out infinite; }
@keyframes shake {
  0%, 100% { translate: 0 0; } 10% { translate: -6px 3px; } 11% { translate: 5px -2px; } 12% { translate: 0 0; }
  60% { translate: 0 0; } 61% { translate: 4px 4px; } 62% { translate: -3px -1px; } 63% { translate: 0 0; }
}

.block {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 3vh;
  padding: 0 var(--gutter);
}
.block--bl { left: 0; bottom: calc(max(var(--lb), 48px) + 14vh); max-width: 1100px; }
.block--bc { left: 0; right: 0; bottom: calc(max(var(--lb), 48px) + 14vh); align-items: center; text-align: center; }

/* ---------------------------------------------------------
   Shapes
   --------------------------------------------------------- */
.shape {
  position: absolute; left: 50%; top: 50%;
  width: min(70vmin, 640px); height: min(70vmin, 640px);
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.shape .draw {
  fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--i, 0));
}
.shape--ring .draw { stroke: var(--gold-soft); }
.shape--ring { transform: translate(-50%, -50%) rotate(calc(-90deg + var(--p, 0) * 60deg)); }
.shape .dot { fill: var(--gold); filter: drop-shadow(0 0 10px var(--gold)); }
.shape--cage { width: min(90vmin, 820px); height: min(90vmin, 820px); }
.shape--cage .draw { stroke: rgba(236,232,225,.35); }
.shape--cage line:nth-of-type(odd) { stroke-dashoffset: calc(1 - var(--i, 0) * 1); }
.shape--cage line:nth-of-type(even) { stroke-dashoffset: calc(-1 + var(--i, 0)); }

/* WHAT IF */
.whatif {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .15em;
  flex-wrap: wrap; font-size: 1rem; pointer-events: none;
}

/* ---------------------------------------------------------
   CHAPTER 02 — the challenge
   --------------------------------------------------------- */
.slam {
  position: absolute;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 10vw, 11rem); line-height: .9; letter-spacing: -.02em;
  white-space: nowrap;
}
.slam::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 2px;
  background: var(--red);
  transform: scaleX(clamp(0, calc((var(--p, 0) - .46) * 12), 1)); transform-origin: left;
}
.slam--1 { top: 13%; left: 8%; }
.slam--2 { top: 27%; right: 7%; }
.slam--3 { top: 63%; left: 10%; }
.slam--4 { top: 48%; left: 50%; translate: -50% -50%; font-size: clamp(3.6rem, 14vw, 16rem); text-shadow: 0 0 60px rgba(0,0,0,.9); }
/* once IMPOSSIBLE lands, the earlier rejections recede */
.slam--1, .slam--2, .slam--3 { opacity: calc(var(--v, 0) * (1 - clamp(0, (var(--p, 0) - .4) * 12, .72))); }
.slam--4::after { display: none; }

.attempts {
  position: absolute; right: var(--gutter); bottom: calc(max(var(--lb), 48px) + 10vh);
  display: flex; align-items: baseline; gap: 14px;
}
.attempts__n {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 300;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.attempts__tag {
  font-size: 9px; letter-spacing: .35em; color: var(--red);
  border: 1px solid var(--red); padding: 4px 8px 4px 10px;
  animation: blink 1s steps(2) infinite;
}

/* ---------------------------------------------------------
   CHAPTER 03 — the change
   --------------------------------------------------------- */
.morph {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 12vw, 14rem); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
}
.morph__inner { color: color-mix(in srgb, var(--fg) calc((1 - var(--i, 0)) * 100%), var(--gold)); }
.morph__gap {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  max-width: calc(var(--i, 0) * .5em);
  opacity: var(--i, 0);
  font-style: italic;
}
.morph__gap--b { max-width: calc(var(--i, 0) * .3em); }

/* ---------------------------------------------------------
   CHAPTER 04 — the future
   --------------------------------------------------------- */
.counter {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(4rem, 16vw, 17rem); line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.counter__label { color: var(--gold); font-size: 12px; letter-spacing: .8em; }

.reel { position: absolute; inset: 0; display: flex; align-items: center; }
.reel__track {
  display: flex; align-items: center; gap: clamp(28px, 5vw, 90px);
  padding: 0 12vw 0 var(--gutter);
  width: max-content;
  transform: translate3d(calc(var(--i, 0) * (-100% + 100vw)), 0, 0);
}
.reel__intro { width: min(560px, 80vw); flex: none; }
.reel__intro .sub--inline { text-align: left; }
.reel__intro .display { font-size: clamp(3rem, 7vw, 7.5rem); margin-top: 3vh; text-transform: none; }
.frame { width: clamp(220px, min(30vw, 46vh), 440px); flex: none; display: flex; flex-direction: column; gap: 14px; }
.frame--low { margin-top: 10vh; }
.frame__img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.frame__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15) translate3d(calc(var(--i, 0) * -8%), 0, 0);
  filter: saturate(1.05) brightness(.9);
}
.frame h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.6rem); line-height: 1.05; }
.frame h3 em { color: var(--gold); }
.frame__jp { font-family: var(--jp); font-size: 12px; letter-spacing: .3em; color: var(--muted); }

.next {
  position: absolute; left: 0; right: 0; text-align: center;
  top: calc(max(var(--lb), 56px) + 5vh);
  font-size: 10px; letter-spacing: .45em; color: var(--muted);
}
.next span { color: var(--accent); margin-right: 1em; }

/* ---------------------------------------------------------
   FINALE
   --------------------------------------------------------- */
.finale__q { font-size: clamp(3rem, 10vw, 11rem); white-space: nowrap; }
.pitch__jp { display: block; margin-top: 10px; font-family: var(--jp); letter-spacing: .2em; font-size: 12px; text-transform: none; }
.shot__img--muted { filter: saturate(.72) contrast(1.05) brightness(.75); }
.hero__title--echo { font-size: clamp(2.6rem, 8.5vw, 9rem); }
.hero__title--echo .line > span { opacity: 1; }

.pitch { margin-top: 5vh; width: min(720px, 100%); pointer-events: none; }
.pitch.is-on { pointer-events: auto; }
.pitch label { display: block; margin-bottom: 18px; }
.pitch__row { display: flex; border-bottom: 1px solid rgba(236,232,225,.4); transition: border-color .5s; }
.pitch__row:focus-within { border-color: var(--gold); }
.pitch input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.9rem); font-weight: 300;
  padding: 14px 4px; text-align: left;
}
.pitch input::placeholder { color: rgba(236,232,225,.35); font-family: var(--jp); font-size: .7em; letter-spacing: .1em; }
.pitch button {
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 10px; letter-spacing: .4em; padding: 0 4px 0 20px; color: var(--gold);
}
.pitch button span { display: inline-block; transition: transform .5s var(--ease); }
.pitch button:hover span { transform: translateX(6px); }

/* Premiere overlay */
.premiere {
  position: fixed; inset: 0; z-index: 45;
  display: grid; place-items: center; text-align: center;
  background: rgba(3,3,3,.97);
  padding: calc(max(var(--lb), 56px) + 2vh) var(--gutter);
  opacity: 0; transition: opacity 1.4s ease;
}
.premiere[hidden] { display: none; }
.premiere.is-open { opacity: 1; }
.premiere__inner > * { opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.premiere.is-open .premiere__inner > * { opacity: 1; transform: none; }
.premiere.is-open .premiere__inner > :nth-child(2) { transition-delay: .6s; }
.premiere.is-open .premiere__inner > :nth-child(3) { transition-delay: 1.2s; }
.premiere.is-open .premiere__inner > :nth-child(4) { transition-delay: 2.2s; }
.premiere.is-open .premiere__inner > :nth-child(5) { transition-delay: 2.8s; }
.premiere.is-open .premiere__inner > :nth-child(6) { transition-delay: 3.4s; }
.premiere.is-open .premiere__inner > :nth-child(7) { transition-delay: 4s; }
.premiere__about { margin-top: 6vh; font-size: 11px; letter-spacing: .6em; color: var(--muted); }
.premiere__idea {
  margin-top: 3vh; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 5vw, 5rem); line-height: 1.15; color: var(--gold);
  max-width: 22ch; word-break: auto-phrase; margin-inline: auto; overflow-wrap: anywhere;
}
.premiere__star { margin-top: 6vh; font-size: 11px; letter-spacing: .6em; color: var(--muted); }
.premiere__star strong { color: var(--fg); font-weight: 500; }
.premiere__soon { margin-top: 1.6vh; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: .3em; }
.premiere__close {
  margin-top: 6vh; background: none; border: 1px solid rgba(236,232,225,.3); cursor: pointer;
  padding: 16px 28px; font-size: 10px; letter-spacing: .4em;
  transition: border-color .4s, background .4s, color .4s;
}
.premiere__close:hover { border-color: var(--gold); color: #000; background: var(--gold); }

/* ---------------------------------------------------------
   CREDITS
   --------------------------------------------------------- */
.credits {
  position: relative; z-index: 1;
  background: linear-gradient(transparent, #000 30vh);
  padding: 40vh var(--gutter) 0;
  text-align: center;
}
.credits__roll { display: flex; flex-direction: column; align-items: center; }
.credits__role { font-size: 10px; letter-spacing: .5em; color: var(--muted); margin-top: 16vh; }
.credits__role:first-child { margin-top: 0; }
.credits__name { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.5vw, 4.4rem); line-height: 1.1; margin-top: 2vh; }
.credits__name--small { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.credits__end {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh;
  padding-bottom: max(var(--lb), 48px);
}
.credits__end .serif-lg em { color: var(--gold); }
.replay {
  margin-top: 6vh; background: none; border: 1px solid rgba(236,232,225,.3); cursor: pointer;
  padding: 16px 28px; font-size: 10px; letter-spacing: .4em;
  transition: border-color .4s, background .4s, color .4s;
}
.replay:hover { border-color: var(--gold); background: var(--gold); color: #000; }

/* Idle nudge */
.nudge {
  position: fixed; z-index: 51; left: 50%; transform: translate(-50%, 10px);
  bottom: calc(max(var(--lb), 48px) + 1.2vh);
  font-size: 9px; letter-spacing: .5em; color: var(--gold);
  opacity: 0; pointer-events: none; transition: opacity 1s, transform 1s var(--ease);
}
.nudge.is-on { opacity: 1; transform: translate(-50%, 0); animation: nudge 2s ease-in-out infinite 1s; }
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 820px) {
  :root { --lb: 5vh; }
  html.is-card { --lb: 9vh; }
  .reels a span { display: none; }
  .hud { grid-template-columns: 1fr auto; }
  .hud__chapter { display: none; }
  .timecode__total { display: none; }
  .slam--1 { left: 6%; top: 18%; }
  .slam--2 { right: 5%; top: 34%; }
  .slam--3 { left: 6%; top: 60%; }
  .frame--low { margin-top: 8vh; }
  .block--bl, .block--bc { bottom: calc(max(var(--lb), 48px) + 16vh); }
  .chapter-card__title { white-space: normal; max-width: 90vw; }
  .hero__title { font-size: 13.5vw; }
  .finale__q { font-size: 13vw; }
  .morph { font-size: 15vw; }
  .serif-xl { font-size: 8.4vw; }
  .pitch__row { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .pitch input { text-align: center; border-bottom: 1px solid rgba(236,232,225,.4); }
  .pitch button { padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .shake .shot__img, .scrollcue i { animation: none !important; }
}
