:root {
  --ink: #f2ebe0;
  --ink-soft: rgba(242, 235, 224, 0.72);
  --ink-mute: rgba(242, 235, 224, 0.48);
  --ink-faint: rgba(242, 235, 224, 0.28);
  --bg: #0a1216;
  --font: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--ink); text-underline-offset: 0.22em; }
a:hover { color: #fff8eb; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
nav a { text-decoration: none; color: var(--ink-soft); }
nav a:hover { color: var(--ink); }
nav .mark { letter-spacing: 0.3em; color: var(--ink); }

.nav-float {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  flex-wrap: wrap;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 28px 14px;
  text-shadow:
    0 1px 2px rgba(6, 14, 18, 0.85),
    0 2px 14px rgba(6, 14, 18, 0.7);
  pointer-events: none;
}
.nav-float a { pointer-events: auto; }
.nav-float a:focus-visible,
.film-bar button:focus-visible,
.waitlist-go:focus-visible {
  outline: 1px solid var(--ink-soft);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── The film ─── */
.hero {
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
}
.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}
.picture {
  position: relative;
  width: min(100cqi, calc(100cqb * 16 / 9));
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.picture .poster,
.picture .film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  pointer-events: none;
}
.picture .film {
  opacity: 0;
}
.picture.is-on .film {
  opacity: 1;
}
.picture .film::-webkit-media-controls,
.picture .film::-webkit-media-controls-start-playback-button,
.picture .film::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.film-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px calc(6px + env(safe-area-inset-bottom, 0px));
}
.film-bar button {
  appearance: none;
  background: none;
  border: 0;
  padding: 12px 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}
.film-bar button:hover { color: var(--ink); }
.film-bar button[hidden] { display: none; }

.close {
  padding: 18vh 28px 10vh;
  text-align: center;
  scroll-margin-top: 72px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(53, 90, 130, 0.18), transparent 60%),
    var(--bg);
}
.close-lede {
  margin: 0 auto 0.7em;
  max-width: 16em;
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}
.close-next {
  margin: 0 auto;
  max-width: 28em;
  font-size: clamp(18px, 2.4vw, 22px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
}
.close .facts {
  margin-top: 40px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.store-status {
  margin-top: 36px;
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.waitlist {
  position: relative;
  width: min(28em, 100%);
  margin: 40px auto 0;
  text-align: center;
}
.waitlist-label {
  display: block;
  margin: 0 0 14px;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
}
.waitlist-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.waitlist-email {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  background: rgba(10, 18, 22, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.waitlist-email::placeholder { color: var(--ink-mute); }
.waitlist-email:focus {
  outline: none;
  border-color: var(--ink-soft);
}
.waitlist-go {
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.waitlist-go:hover { color: #fff8eb; border-color: var(--ink); }
.waitlist-go:disabled { opacity: 0.5; cursor: wait; }
.waitlist-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.waitlist-status {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}
.waitlist-status[data-state="ok"] { color: #e8d9b8; }
.waitlist-status[data-state="err"] { color: #d4b4a4; }
.waitlist-note {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.waitlist-note a { color: var(--ink-mute); }
.waitlist.is-done .waitlist-row { display: none; }

.transcript {
  margin: 72px auto 0;
  max-width: 28em;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1.7;
}
.transcript p { margin: 0; }
.transcript-end {
  margin-top: 1.1em !important;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-foot {
  margin-top: 72px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.site-foot a {
  color: var(--ink-mute);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-foot a:hover { color: var(--ink); }
.site-foot .copy {
  display: block;
  margin-top: 18px;
  font-style: normal;
}

@media (max-width: 520px) {
  .nav-float { padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 10px; }
  .hero { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  .close { padding: 14vh 20px 8vh; }
  .waitlist-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Inner pages */
.page {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(53, 90, 130, 0.22), transparent 60%),
    var(--bg);
}
.wrap {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.page nav { margin-bottom: 72px; }

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.kicker {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.prose p { color: var(--ink-soft); margin: 0 0 1.1em; }
.prose h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2em 0 0.6em;
  color: var(--ink);
}
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.mail {
  display: inline-block;
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

footer {
  margin-top: 80px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); padding-top: 32px; }
  .page nav { margin-bottom: 48px; }
}
