/* ============================================================
   PRIMETIME — A24 · concept study
   Palette: phosphor green on CRT black; poster blue accent.
   Type: Anton (display) · Archivo (text) · IBM Plex Mono (HUD)
   ============================================================ */

/* ---------- fonts (local) ---------- */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #050807;
  --bg-2: #0a0f0c;
  --bg-3: #101712;
  --ink: #e8f5e5;
  --ink-dim: #9db3a4;
  --phos: #9fe870;
  --phos-hot: #d6ff9e;
  --blue: #4f7dff;
  --line: rgba(159, 232, 112, .18);
  --line-strong: rgba(159, 232, 112, .45);
  --grain: url("../assets/img/grain.png");
  --scan: url("../assets/img/scanlines.png");
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --wrap: min(1180px, calc(100% - clamp(32px, 8vw, 96px)));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(15px, 1.05vw + 11px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--phos); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--phos-hot); }
h1, h2, h3 { margin: 0; line-height: .95; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
dl, dt, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul[role="list"] { list-style: none; }
button { font: inherit; color: inherit; }

/* visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--phos-hot);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--phos); color: #06110a; font-family: var(--font-mono);
  padding: 10px 14px; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  background-image: var(--grain); background-size: 320px; opacity: .07;
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,2%); } 100% { transform: translate(0,0); }
}

/* ---------- progress bar ---------- */
.progress-bar {
  position: fixed; inset: 0 auto auto 0; width: 100%; height: 3px; z-index: 150;
  background: rgba(159,232,112,.12);
}
#progress-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--phos), var(--phos-hot));
  box-shadow: 0 0 12px rgba(159,232,112,.7);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 140;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(5,8,7,.92), rgba(5,8,7,.55) 70%, transparent);
  backdrop-filter: blur(6px);
  transition: background .35s ease, padding .35s ease;
}
.site-header.is-stuck { background: rgba(5,8,7,.94); padding-block: 10px; }
.wordmark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  font-family: var(--font-display); font-size: 28px; letter-spacing: .06em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark:hover { color: var(--phos); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; }
.site-nav a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-dim);
  padding: 6px 2px; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--phos); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after, .site-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: inline-flex; }
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger-line { width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* mobile menu */
.site-menu {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(5,8,7,.97);
  display: grid; place-items: center;
}
.site-menu ul { list-style: none; text-align: center; display: grid; gap: 22px; }
.site-menu a {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 44px);
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.site-menu a.menu-cta { color: var(--phos); }
.site-menu[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--phos); border-color: var(--phos); color: #06110a; }
.btn-solid:hover { background: var(--phos-hot); border-color: var(--phos-hot); color: #06110a; }
.btn-ghost:hover { background: rgba(159,232,112,.12); }
.btn-lg { padding: 18px 34px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  padding: 120px 0 90px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .85; filter: saturate(1.08) contrast(1.05); }
.hero-scanlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--scan); background-size: 4px 4px; mix-blend-mode: multiply;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(5,8,7,.88) 100%),
    linear-gradient(180deg, rgba(5,8,7,.75), transparent 30% 62%, rgba(5,8,7,.92));
}
.hero-hud {
  position: absolute; top: 86px; left: 0; right: 0;
  display: flex; justify-content: space-between; gap: 14px;
  padding: 0 clamp(16px, 4vw, 40px);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  color: var(--phos); text-shadow: 0 0 8px rgba(159,232,112,.55);
}
.hud-rec { display: inline-flex; align-items: center; gap: 8px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4b3e; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero-content { max-width: 900px; padding: 0 20px; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--phos); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 17vw, 220px);
  line-height: .88; letter-spacing: .01em; text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(159,232,112,.35), 0 0 90px rgba(79,125,255,.25);
}
.title-word { display: inline-block; }
.hero-logline {
  max-width: 560px; margin: 26px auto 30px;
  font-size: clamp(16px, 1.4vw + 10px, 21px); color: var(--ink-dim);
}
.hero-logline em { color: var(--ink); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
#feed-toggle .label-play { display: none; }
#feed-toggle[aria-pressed="false"] .label-pause { display: none; }
#feed-toggle[aria-pressed="false"] .label-play { display: inline; }

.scroll-cue {
  position: absolute; bottom: 52px; left: 50%; translate: -50% 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--phos); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

/* ticker */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  background: rgba(5,8,7,.72); overflow: hidden;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  color: var(--phos);
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker-track span { padding-right: 2ch; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections / chapters ---------- */
.section { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.section:nth-child(even) { background: var(--bg-2); }
.chapter-head {
  display: flex; align-items: baseline; gap: 18px;
  width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 70px);
}
.chapter-index {
  font-family: var(--font-mono); font-size: 13px; color: var(--phos);
  letter-spacing: .2em;
}
.chapter-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 7vw, 84px); color: var(--ink);
}
.chapter-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- story ---------- */
.story-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
.story-statement .statement {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.1; color: var(--ink);
}
.story-statement em { color: var(--phos); font-style: italic; }
.story-body p { color: var(--ink-dim); max-width: 62ch; }
.story-body em { color: var(--ink); }
.story-figure { position: relative; }
.story-figure img { width: 100%; border: 1px solid var(--line); }
.story-figure figcaption {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--phos); padding-top: 10px;
}
.story-facts {
  border: 1px solid var(--line); background: var(--bg-3); padding: 22px;
}
.story-facts dl { display: grid; gap: 14px; }
.story-facts dt {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--phos);
}
.story-facts dd { margin: 4px 0 0; color: var(--ink); }

/* ---------- cast ---------- */
.cast-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  list-style: none;
}
.cast-card {
  position: relative; border: 1px solid var(--line); background: var(--bg-3);
  padding: 22px 18px 18px; overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease;
}
.cast-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--phos); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease-out);
}
.cast-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: #121a14; }
.cast-card:hover::before { transform: scaleY(1); }
.cast-index { font-family: var(--font-mono); font-size: 11px; color: var(--phos); letter-spacing: .2em; }
.cast-card h3 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); text-transform: uppercase; margin-top: 10px; }
.cast-role { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.cast-supporting {
  width: var(--wrap); margin: 26px auto 0; color: var(--ink-dim);
  font-size: 14.5px; max-width: 78ch;
}
.credits { width: var(--wrap); margin: clamp(48px, 7vw, 80px) auto 0; }
.credits-heading {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--phos); margin-bottom: 18px;
}
.credits-list {
  columns: 1; column-gap: 48px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.credits-list > div { break-inside: avoid; margin-bottom: 14px; }
.credits-list dt {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--phos);
}
.credits-list dd { margin: 2px 0 0; color: var(--ink-dim); }

/* ---------- gallery ---------- */
.gallery {
  width: var(--wrap); margin: 0 auto;
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(110px, 16vw, 190px);
}
.gallery-item {
  position: relative; padding: 0; border: 1px solid var(--line);
  background: var(--bg-3); cursor: zoom-in; overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s ease, transform .6s var(--ease-out); }
.gallery-item:hover img, .gallery-item:focus-visible img { opacity: 1; transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px; text-align: left;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--phos); background: linear-gradient(180deg, transparent, rgba(5,8,7,.9));
}
.g-wide  { grid-column: span 4; }
.g-tall  { grid-column: span 2; grid-row: span 2; }
.g-poster{ grid-column: span 2; grid-row: span 2; }
.g-strip { grid-column: span 1; grid-row: span 2; }
.g-wide2 { grid-column: span 3; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 1px solid var(--line-strong); background: rgba(5,8,7,.96);
  color: var(--ink); padding: 0; max-width: min(1080px, 94vw); width: auto;
}
.lightbox::backdrop { background: rgba(2,4,3,.86); backdrop-filter: blur(3px); }
.lightbox-inner { position: relative; padding: clamp(14px, 3vw, 28px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 74vh; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid var(--line); }
.lightbox figcaption {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--phos); text-align: center; padding-top: 12px;
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2; cursor: pointer;
  background: rgba(5,8,7,.8); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--font-mono); font-size: 18px; line-height: 1;
}
.lb-close { top: 8px; right: 8px; width: 44px; height: 44px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; width: 48px; height: 48px; font-size: 24px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { background: var(--phos); color: #06110a; }

/* ---------- on air ---------- */
.onair-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 60px);
  grid-template-columns: 1fr;
}
.release-block { text-align: left; }
.release-kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--phos);
}
.release-date {
  font-family: var(--font-display); font-size: clamp(72px, 13vw, 170px);
  line-height: .9; color: var(--ink); text-transform: uppercase;
  text-shadow: 0 0 30px rgba(159,232,112,.3);
}
.release-date span { color: var(--phos); }
.release-year {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 54px);
  color: var(--ink-dim); letter-spacing: .1em;
}
.premiere-note { color: var(--ink-dim); max-width: 52ch; margin-top: 14px; }
.release-block .btn { margin-top: 22px; }

.countdown-block { border: 1px solid var(--line); background: var(--bg-3); padding: clamp(20px, 3vw, 34px); }
.countdown-heading {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--phos); margin-bottom: 16px;
}
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.count-unit {
  flex: 1 1 70px; text-align: center;
  border: 1px solid var(--line); background: var(--bg-2); padding: 14px 8px;
}
.count-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px); color: var(--ink); line-height: 1;
}
.count-label {
  display: block; margin-top: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim);
}
.countdown-noscript { color: var(--ink-dim); }

.notify-form { margin-top: 26px; }
.notify-form label {
  display: block; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .08em; color: var(--ink-dim); margin-bottom: 10px;
}
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-form input[type="email"] {
  flex: 1 1 220px; padding: 13px 14px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--ink); font-family: var(--font-mono); font-size: 14px;
}
.notify-form input[type="email"]::placeholder { color: rgba(157,179,164,.6); }
.form-msg { min-height: 1.4em; margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--phos); }
.form-msg.is-error { color: #ff8f85; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
.footer-mark { font-family: var(--font-display); font-size: 40px; color: var(--ink); line-height: 1; }
.footer-tag { color: var(--ink-dim); max-width: 34ch; margin-top: 10px; }
.site-footer h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--phos); margin-bottom: 12px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--phos); text-decoration: underline; }
.footer-legal {
  width: var(--wrap); margin: 40px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(157,179,164,.75);
}
.footer-legal p { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .story-grid { grid-template-columns: 1.1fr .9fr; }
  .story-figure { order: 3; }
  .story-facts { order: 4; }
  .credits-list { columns: 2; }
  .onair-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .credits-list { columns: 3; }
}
@media (max-width: 899px) {
  .site-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .hero-hud { top: 76px; }
  .hud-cam { display: none; }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 34vw, 210px); }
  .g-wide, .g-wide2 { grid-column: span 2; }
  .g-tall, .g-poster { grid-column: span 1; grid-row: span 2; }
  .g-strip { display: none; }
  .count-unit { flex: 1 1 46%; }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(58px, 21vw, 96px); }
  .hero-actions .btn { width: 100%; }
  .notify-row .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .rec-dot { animation: none; }
  .scroll-cue { animation: none; }
  body::after { animation: none; }
}
