:root {
  color-scheme: dark;
  --bg: #07080f;
  --surface: #0d101b;
  --surface-2: #151a29;
  --line: rgba(237, 233, 241, 0.12);
  --ink: #ede9f1;
  --ink-2: #d8d2e1;
  --muted: #a6a0b2;
  --violet: #c2a3ee;
  --violet-2: #9a79d4;
  --glow: rgba(194, 163, 238, 0.35);
  --warm: #f3b872;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; color: var(--warm); }

/* ---- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8c2f7 0%, var(--violet) 45%, var(--violet-2) 100%);
  color: #140f1f;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 34px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5); filter: brightness(1.05); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost {
  background: rgba(13, 16, 27, 0.35);
  color: var(--ink);
  border: 1px solid rgba(237, 233, 241, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---- Top bar */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: rgba(7, 8, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.link { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: color 0.2s ease; }
.link:hover { color: var(--ink); }
.mark {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.12em;
  text-decoration: none;
  line-height: 1;
}

/* ---- Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-art, .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art img {
  object-fit: cover;
  object-position: 55% 40%;
  animation: drift 24s ease-out both;
}
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 15, 0.85) 0%, rgba(7, 8, 15, 0.45) 45%, rgba(7, 8, 15, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 15, 0.55) 30%, rgba(7, 8, 15, 0) 60%);
}
.hero-copy {
  position: relative;
  max-width: 760px;
  padding: 0 var(--gutter) clamp(72px, 12vh, 128px);
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.lede {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { margin: 16px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(237, 233, 241, 0.45);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- Premise / host quote */
.premise {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 12vw, 150px) var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
}
.host { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.host img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 30%; }
.premise blockquote { margin: 0; }
.premise blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.98;
}
.premise cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- How it plays */
.section-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.how { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 8vw, 100px); }
.how > .section-title { margin-bottom: clamp(32px, 6vw, 72px); }
.beat {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(56px, 9vw, 120px);
}
.beat.flip .beat-art { order: 2; }
.beat-art { border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.beat-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.beat-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.beat:hover .beat-art img { transform: scale(1.03); }
.num { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 22px; letter-spacing: 0.14em; color: var(--violet); }
.beat h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; }
.beat p { margin: 0; max-width: 30em; color: var(--ink-2); font-size: 18px; }

/* ---- Cast */
.cast {
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(154, 121, 212, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--surface) 30%, var(--bg));
}
.cast-head { max-width: 1320px; margin: 0 auto clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.cast-head p { margin: 0; max-width: 30em; color: var(--muted); font-size: 18px; }
.cast-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1320px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2140 0%, var(--surface-2) 58%);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(194, 163, 238, 0.45); box-shadow: 0 24px 50px -24px var(--glow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; background: radial-gradient(70% 70% at 50% 35%, rgba(194, 163, 238, 0.28), transparent 70%); }
.card > div { padding: 14px 16px 18px; }
.card h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.03em; line-height: 1; }
.card span { display: block; margin: 6px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---- Stats */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 8vw, 120px);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(72px, 9vw, 120px); line-height: 0.9; background: linear-gradient(180deg, var(--ink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---- Finale CTA */
.finale { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.finale-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 8, 15, 0.45) 30%, rgba(7, 8, 15, 0.55) 70%, var(--bg) 100%); }
.finale-copy { position: relative; padding: 0 var(--gutter); }
.finale h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 10vw, 140px); line-height: 0.9; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
.finale p { margin: 16px 0 30px; font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); }

/* ---- Footer */
.foot { padding: 48px var(--gutter) max(48px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
.foot .mark { font-size: 24px; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 14px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0; }

/* ---- Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cast-grid .card:nth-child(5n + 2) { transition-delay: 0.06s; }
.cast-grid .card:nth-child(5n + 3) { transition-delay: 0.12s; }
.cast-grid .card:nth-child(5n + 4) { transition-delay: 0.18s; }
.cast-grid .card:nth-child(5n + 5) { transition-delay: 0.24s; }

/* ---- Responsive */
@media (max-width: 1100px) {
  .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cast-grid .card { transition-delay: 0s; }
}
@media (max-width: 900px) {
  .premise, .beat { grid-template-columns: 1fr; }
  .beat.flip .beat-art { order: 0; }
  .premise { padding-top: 64px; }
}
@media (max-width: 699px) {
  body { font-size: 16px; }
  .hero-art img { object-position: 50% 45%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 15, 0.82) 45%, rgba(7, 8, 15, 0.35) 72%, rgba(7, 8, 15, 0.45) 100%); }
  .eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .eyebrow .wide { display: none; }
  .stats { gap: 0; justify-content: space-around; }
  .stats > div { flex: 1 1 0; }
  .stats span { display: block; font-size: 10.5px; letter-spacing: 0.16em; }
  .hero-copy { padding-bottom: 88px; }
  .ctas .btn { flex: 1 1 100%; }
  .beat p, .cast-head p { font-size: 16px; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card > div { padding: 12px 12px 14px; }
  .card h4 { font-size: 23px; }
  .card span { font-size: 10.5px; letter-spacing: 0.06em; }
  .card p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .hero-copy, .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
