/* The film. A cinema commits to one look, so this page does not follow the
   viewer's light/dark theme the way the documents do: the film is always
   dark. The written cut below it is a document, and reads like the rest. */

:root {
  --night: #12110f;
  --night-2: #1a1918;
  --terra: #d97757;
  --terra-dim: rgba(217, 119, 87, 0.34);
  --paper: #f0eee6;
  --paper-dim: #a49a90;
  --line: #35312d;
  --ok: #7bbd95;
  --warn: #d9ab63;
  --stop: #e08a72;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--night); color: var(--paper); font-family: var(--sans); line-height: 1.6; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------------- the stage ----------------
   It sits under the shared header rather than covering it: navigation never
   disappears just because something is playing. Tall enough to feel like a
   stage, short enough that the written cut below announces itself. */
.film {
  position: relative; overflow: hidden; background: var(--night);
  display: block; height: min(78vh, 780px); min-height: 460px;
}
.film[hidden] { display: none; }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 42%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 42%);
}

.caption {
  position: absolute; left: 0; right: 0; bottom: clamp(76px, 12vh, 120px);
  padding: 0 clamp(22px, 6vw, 70px); pointer-events: none;
}
.caption .line {
  margin: 0 0 10px; max-width: 20ch;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: 1.08; color: var(--paper);
  opacity: 0; transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.caption .sub {
  margin: 0; max-width: 46ch; font-size: clamp(0.86rem, 1.7vw, 1.02rem);
  color: var(--paper-dim);
  opacity: 0; transform: translateY(10px);
  transition: opacity 620ms ease 140ms, transform 620ms ease 140ms;
}
.caption.in .line, .caption.in .sub { opacity: 1; transform: none; }
.caption em { color: var(--terra); font-style: italic; }

.hud {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(22px, 7vw, 90px) clamp(20px, 4vh, 34px);
  display: flex; flex-direction: column; gap: 14px;
}
.rail { display: flex; gap: 6px; align-items: center; }
.rail button {
  flex: 1; height: 3px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(240, 238, 230, 0.16); cursor: pointer; position: relative; overflow: hidden;
}
.rail button::after {
  content: ""; position: absolute; inset: 0; width: var(--p, 0%);
  background: var(--terra); transition: width 90ms linear;
}
.rail button.done::after { width: 100%; }
.rail button:hover { background: rgba(240, 238, 230, 0.34); }

.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.controls button, .controls .skip {
  background: none; border: 1px solid rgba(240, 238, 230, 0.22); color: var(--paper-dim);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 0.76rem;
  letter-spacing: 0.06em; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--mono);
}
.controls button:hover, .controls .skip:hover { color: var(--terra); border-color: var(--terra); }
.controls button[aria-pressed="true"] { color: var(--terra); border-color: var(--terra); }
.controls .skip { margin-left: auto; }

/* The header carries the brand now, so the stage does not repeat it. */
.brandmark { display: none; }

/* ---------------- the written cut ---------------- */
.read { position: relative; z-index: 1; padding: 0 0 70px; }
.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.topnav { display: flex; align-items: center; gap: 18px; padding: 18px 0 40px; flex-wrap: wrap; }
.topnav a { color: var(--paper-dim); text-decoration: none; font-size: 0.8rem; white-space: nowrap; }
.topnav a:hover { color: var(--terra); }
.topnav .home { display: flex; align-items: center; gap: 9px; color: var(--paper); font-weight: 650; }
.topnav .spacer { flex: 1; }
.hexmark { width: 20px; height: 20px; background: var(--terra); clip-path: polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0% 50%); }

.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--terra); margin: 0 0 14px;
}
.read h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; margin: 0 0 16px; }
.lede { color: var(--paper-dim); font-size: 1.02rem; margin: 0 0 36px; max-width: 62ch; }

.shots { list-style: none; counter-reset: shot; margin: 0; padding: 0; display: grid; gap: 20px; }
.shots li {
  counter-increment: shot; position: relative; padding-left: 46px;
  color: var(--paper-dim); max-width: 66ch;
}
.shots li::before {
  content: counter(shot, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 0.74rem; color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.shots b { color: var(--paper); font-weight: 650; }
.shots em { color: var(--terra); font-style: italic; }

.closer {
  margin: 48px 0 34px; font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.3; color: var(--paper);
}
.endcta { border-top: 1px solid var(--line); padding-top: 28px; }
.endcta p { color: var(--paper-dim); }
.btn {
  display: inline-block; background: var(--terra); color: #12110f; text-decoration: none;
  border-radius: 9px; padding: 11px 22px; font-size: 0.9rem; font-weight: 700; margin: 6px 8px 0 0;
}
.btn.ghost { background: none; color: var(--terra); border: 1px solid var(--terra); }
.btn:hover { filter: brightness(1.08); }
.read footer {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--paper-dim);
}

@media (max-width: 620px) {
  .caption { bottom: clamp(92px, 20vh, 160px); }
  .caption .line { max-width: 16ch; }
  .controls .skip { margin-left: 0; }
}
