:root {
  --bg: #0b0806;
  --bg-2: #120d0a;
  --ink: #efe5d6;
  --ink-2: #d5c9b8;
  --dim: #a3978a;
  --faint: #6c6258;
  --ochre: #d0784a;
  --line: rgba(239, 229, 214, 0.13);
  --display: Optima, "Tenor Sans", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --ui: "Avenir Next", "Tenor Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: rgba(239, 229, 214, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ochre); }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: rgba(208, 120, 74, 0.45); }
:focus-visible { outline: 1px solid var(--ochre); outline-offset: 4px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: brightness(1.22) saturate(1.06); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 3, 2, 0.66) 0%, rgba(5, 3, 2, 0.32) 36%, rgba(5, 3, 2, 0) 60%),
    linear-gradient(180deg, rgba(11, 8, 6, 0) 70%, var(--bg) 100%);
}
.hero-text { position: relative; padding: 0 var(--gutter); max-width: 760px; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 10.5vw, 148px); line-height: 1;
  letter-spacing: 0.3em; margin: 0 -0.3em 0 0;
  color: #f4ead9;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.tagline { font-style: italic; font-size: clamp(24px, 2.6vw, 38px); margin: 0.55em 0 0; color: #ece0cc; }
.byline { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.3em; font-size: 13px; margin: 2.6em 0 0.4em; color: var(--ink-2); }
.meta { font-family: var(--ui); font-size: 13px; letter-spacing: 0.06em; color: var(--dim); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }
.btn {
  font-family: var(--ui); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em;
  text-decoration: none; padding: 14px 22px; border: 1px solid rgba(239, 229, 214, 0.4); color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: rgba(244, 234, 217, 0.94); color: #1a120c; border-color: transparent; }
.btn.primary:hover { background: #fff; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; margin-left: -0.5px;
  background: linear-gradient(rgba(239, 229, 214, 0), rgba(239, 229, 214, 0.7));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.25; transform: translateY(-6px); } 50% { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------- prologue */
section { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.prologue { max-width: 820px; margin: 0 auto; text-align: center; }
.prompt-box {
  text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 20px;
  background: rgba(255, 255, 255, 0.025); max-width: 640px; margin: 0 auto;
}
.prompt-label { font-family: var(--ui); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); }
.prompt-box .typed { font-family: var(--ui); font-size: clamp(18px, 1.6vw, 22px); margin: 8px 0 0; min-height: 1.6em; color: var(--ink); }
.thought { font-style: italic; font-size: clamp(26px, 3vw, 40px); margin: 1.6em 0 0; min-height: 1.4em; color: #f4ead9; }
.logline { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.55; color: var(--ink-2); margin: 2.4em auto 0; max-width: 660px; }
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.14em;
  background: #fff6e8; box-shadow: 0 0 8px rgba(255, 240, 220, 0.9), 0 0 22px rgba(255, 220, 180, 0.45);
  animation: blink 1.06s steps(1) infinite;
}
.typed:not(.typing):not(.done) .caret { opacity: 0; animation: none; }
.typed.done:not(.keep) .caret { animation: blink 1.06s steps(1) 3 forwards; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ------------------------------------------------------------------ watch */
.watch { background: #000; padding-left: 0; padding-right: 0; }
.player { width: min(1280px, 100%); margin: 0 auto; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-bar {
  width: min(1280px, 100%); margin: 0 auto; padding: 16px var(--gutter) 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.film-title { font-family: var(--display); letter-spacing: 0.24em; font-size: 15px; margin: 0; color: var(--ink); }
.film-title span { font-family: var(--ui); letter-spacing: 0.04em; font-size: 13px; color: var(--dim); }
.subs-pick { font-family: var(--ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.subs-pick select {
  font-family: var(--ui); font-size: 14px; letter-spacing: 0; text-transform: none;
  background: #0f0b08; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}
.hint { text-align: center; font-family: var(--ui); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 2.4em 0 0; }
video::cue { background: transparent; color: #f6eee2; font-family: var(--ui); text-shadow: 0 0 3px #000, 0 0 6px #000, 0 1px 2px #000; }

/* --------------------------------------------------------- common labels */
.label {
  font-family: var(--ui); font-weight: 500; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ochre); text-align: center; margin: 0 0 3em;
}

/* -------------------------------------------------------------- statement */
.statement-body { max-width: 680px; margin: 0 auto; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); }
.statement-body p { margin: 0 0 1.2em; }
.statement-body em { color: var(--ink); }
.sc { font-variant: small-caps; letter-spacing: 0.08em; }
.sign { text-align: right; font-style: italic; color: var(--ink); }

/* ----------------------------------------------------------------- scenes */
.scenes { background: var(--bg-2); }
.scene-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; counter-reset: scene; }
.scene {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  align-items: center; margin: 0 0 clamp(56px, 9vh, 104px);
}
.scene:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.scene:nth-child(even) figure { order: 2; }
.scene figure { margin: 0; background: #000; }
.scene figure.pair { display: grid; gap: 6px; background: transparent; }
.scene-text { counter-increment: scene; }
.scene-text h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: 0.06em; margin: 0.25em 0 0.45em; }
.scene-text h3::before { content: counter(scene, decimal-leading-zero) "  "; color: var(--faint); font-size: 0.6em; letter-spacing: 0.1em; vertical-align: 0.3em; white-space: pre; }
.scene-text p { margin: 0; color: var(--ink-2); }
.tc {
  font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em; color: var(--ochre);
  background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.tc::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.tc:hover { color: #f0a073; }
.scene.no-image { display: block; text-align: center; margin-bottom: 0; }
.dedication { font-style: italic; font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); }
.scene.no-image .dedication { margin-top: 0.6em; }

/* ----------------------------------------------------------------- making */
.making-intro { max-width: 720px; margin: 0 auto 3.4em; text-align: center; font-size: clamp(20px, 1.8vw, 25px); color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 48px; max-width: 1180px; margin: 0 auto; }
.card { border-top: 1px solid var(--line); padding-top: 22px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.06em; margin: 0 0 0.6em; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98em; }
.numbers { list-style: none; padding: 0; margin: clamp(64px, 10vh, 110px) auto 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; }
.numbers li { text-align: center; }
.numbers b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: 0.04em; color: #f4ead9; }
.numbers span { font-family: var(--ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }

/* -------------------------------------------------------------- subtitles */
.subtitles { background: var(--bg-2); text-align: center; }
.subtitles p { max-width: 640px; margin: 0 auto 1.6em; color: var(--ink-2); }
.srt-list { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.srt-list a { display: inline-block; font-family: var(--ui); font-size: 14px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: border-color 0.3s, color 0.3s; }
.srt-list a:hover { border-color: var(--ochre); color: var(--ink); }

/* ---------------------------------------------------------------- credits */
.credits dl { max-width: 760px; margin: 0 auto; text-align: center; }
.credits dt { font-family: var(--ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-top: 2.2em; }
.credits dd { margin: 0.5em 0 0; color: var(--ink-2); }
.credits dd.big { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: 0.32em; margin-right: -0.32em; color: #f4ead9; }

/* ----------------------------------------------------------------- footer */
.footer { text-align: center; padding: clamp(90px, 16vh, 180px) var(--gutter) 48px; border-top: 1px solid var(--line); }
.footer .caret { animation-duration: 1.06s; }
.small { font-family: var(--ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 4em; }
.small a { text-decoration: none; }

/* ------------------------------------------------------------- reveal fx */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.3s ease, transform 1.3s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .scene, .scene:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .scene:nth-child(even) figure { order: 0; }
  /* phones: the shot sits on top (cursor top right, a hand at left), the title below it */
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero-video { height: 60%; object-position: 60% 50%; }
  .hero { background: var(--bg); }
  .hero-shade { background: linear-gradient(180deg, rgba(11, 8, 6, 0) 0%, rgba(11, 8, 6, 0) 32%, rgba(11, 8, 6, 0.6) 47%, var(--bg) 58%); }
  .player-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue, .caret { animation: none; }
}
