/* ==========================================================================
   The Pepperstone Way — prototype v5
   Single-typeface variant: Plus Jakarta Sans (brand primary), Manrope fallback.
   Hierarchy carried by weight (700 display, 400 body) instead of family contrast.
   Design tokens
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, sans-serif;
  /* --font-serif retained for layout compatibility — points at the same family */
  --font-serif: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, sans-serif;

  --ink: #0a0a0a;
  --ink-mid: #0d0d0d;
  --ink-soft: #080808;
  --ink-deep: #050505;
  --cream: #f5f5f0;
  --cream-dim: rgba(245, 245, 240, 0.7);
  --cream-mute: rgba(245, 245, 240, 0.5);
  --cream-faint: rgba(245, 245, 240, 0.35);
  --hair: rgba(245, 245, 240, 0.1);
  --hair-soft: rgba(245, 245, 240, 0.06);
  --accent-red: #e24b4a;

  --br-sm: 6px;
  --br-md: 8px;
  --br-lg: 16px;

  --content-max: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);

  --rw-bar-h: 56px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* leave room for the persistent RW bar at the bottom */
  padding-bottom: var(--rw-bar-h);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin: 0 0 8px;
  font-weight: 500;
}

.eyebrow-on-cream {
  color: rgba(10, 10, 10, 0.5);
}

/* ==========================================================================
   Top nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border-bottom: 0.5px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hair);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-logo {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 540px) {
  .nav-logo {
    height: 24px;
  }
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--cream-dim);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-cta {
  font-size: 13px;
  padding: 8px 16px;
  border: 0.5px solid rgba(245, 245, 240, 0.3);
  border-radius: var(--br-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--cream);
  background: rgba(245, 245, 240, 0.06);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 48px) var(--pad-x);
  background: linear-gradient(135deg, #1a1410 0%, #2a1f18 50%, #1a1410 100%);
}

/* Background image — natural orientation (no horizontal flip) */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.webp') center/cover no-repeat;
  /* Slow ken burns drift */
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::before {
  /* Editorial darkening overlay so text is legible over any image */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 50%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 65%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 180, 90, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.hero-meta {
  position: absolute;
  top: 24px;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
  z-index: 2;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 2;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.hero-series-label {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(245, 245, 240, 0.78);
  max-width: 460px;
  margin: 0;
}

.hero-play {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(245, 245, 240, 0.95);
  color: var(--ink);
  border-radius: var(--br-md);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-play:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.hero-play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ==========================================================================
   Manifesto — bridge between hero and tagline
   Open-letter typography. Lead = serif statement, body = sans for breathing,
   payoff = serif italic personal address, tags = small monospaced trail.
   ========================================================================== */

.manifesto {
  padding: clamp(72px, 9vw, 120px) var(--pad-x);
  border-top: 0.5px solid var(--hair);
  text-align: center;
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.manifesto-lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin: 0;
  max-width: 680px;
}

.manifesto-lead em {
  font-style: italic;
  color: var(--cream);
}

.manifesto-body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--cream-dim);
  margin: 0;
  max-width: 600px;
}

.manifesto-body em {
  font-style: italic;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.05em;
  letter-spacing: -0.005em;
}

.manifesto-payoff {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--cream);
  margin: 16px 0 0;
  letter-spacing: -0.005em;
}

.manifesto-tags {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-mute);
}

.manifesto-tags li {
  position: relative;
}

.manifesto-tags li+li::before {
  content: "·";
  position: absolute;
  left: -12px;
  color: var(--cream-faint);
}

@media (max-width: 540px) {
  .manifesto-tags {
    gap: 6px 14px;
    font-size: 10px;
  }

  .manifesto-tags li+li::before {
    left: -9px;
  }
}

/* ==========================================================================
   Tagline banner
   ========================================================================== */

.tagline-banner {
  padding: 56px var(--pad-x);
  text-align: center;
  border-bottom: 0.5px solid var(--hair);
}

.tagline-banner-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3em;
  row-gap: 0.05em;
}

/* Inline Pepperstone wordmark — sized to dominate, nudged down to align with serif baseline */
.tagline-logo {
  height: 1.5em;
  width: auto;
  display: inline-block;
  transform: translateY(7px);
}

/* ==========================================================================
   Episodes
   ========================================================================== */

.episodes {
  padding: 64px var(--pad-x);
  max-width: var(--content-max);
  margin: 0 auto;
}

.episodes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.episodes-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
}

.episodes-note {
  font-size: 13px;
  color: var(--cream-mute);
  margin: 0;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
}

@media (max-width: 880px) {
  .episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .episodes-grid {
    grid-template-columns: 1fr;
  }
}

/* Only playable tiles get a clickable affordance — non-playable ones feel static */
.ep--playable {
  cursor: pointer;
}

.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--br-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.ep--playable:hover .ep-thumb,
.ep--playable:focus-visible .ep-thumb {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  filter: saturate(1.1);
}

.ep-thumb::after {
  /* readability gradient at bottom for the meta label */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 40%);
  pointer-events: none;
}

/* Each episode tile gets its own image */
.ep-thumb-01 {
  background-image: url('assets/image-49.webp');
}

.ep-thumb-02 {
  background-image: url('assets/the-fit-cover.webp');
}

.ep-thumb-03 {
  background-image: url('assets/Frame-22.webp');
}

.ep-thumb-04 {
  background-image: url('assets/Frame-3.webp');
}

.ep-thumb-05 {
  background-image: url('assets/Frame-5.webp');
}

.ep-thumb-06 {
  background-image: url('assets/trailer-cover.webp');
}

.ep-meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  font-weight: 500;
}

.ep-text {
  padding: 14px 4px 0;
}

.ep-num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cream-mute);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ep-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ep-desc {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.5;
  margin: 0;
}

.ep--trailer .ep-thumb {
  /* trailer cover differentiates the tile on its own — no border needed */
}

/* ==========================================================================
   Duo (Behind the way + Pepperstone)
   ========================================================================== */

.duo {
  padding: 64px var(--pad-x);
  border-top: 0.5px solid var(--hair);
  background: var(--ink-mid);
}

.duo-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 880px) {
  .duo-grid {
    grid-template-columns: 1fr;
  }
}

.duo-head {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 20px;
}

.duo-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cream-dim);
  margin: 0 0 24px;
}

.duo-tag {
  font-size: 13px;
  color: var(--cream-mute);
  margin: 0 0 24px;
}

/* Left column: vertically centre the editorial intro against the right card */
.duo-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.duo-col-right {
  background: var(--cream);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--br-lg);
}

.duo-head-cream {
  color: var(--ink);
}

.duo-body-cream {
  color: rgba(10, 10, 10, 0.75);
}

.duo-tag-cream {
  color: rgba(10, 10, 10, 0.6);
}

.cast-caption {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--cream-mute);
  margin: 0 0 12px;
  font-style: italic;
}

.cast-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cast-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--br-md);
}

.cast-photo-1 {
  background: linear-gradient(135deg, #2a2a28 0%, #1a1a18 100%);
}

.cast-photo-2 {
  background: linear-gradient(135deg, #28282a 0%, #18181a 100%);
}

.cast-photo-3 {
  background: linear-gradient(135deg, #2a2828 0%, #1a1818 100%);
}

.cast-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  color: var(--cream-mute);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 0.5px solid rgba(10, 10, 10, 0.15);
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.15);
  margin-bottom: 20px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.stat-label {
  font-size: 11px;
  color: rgba(10, 10, 10, 0.55);
  margin: 4px 0 0;
}

.duo-link {
  font-size: 13px;
  color: rgba(10, 10, 10, 0.6);
  transition: color 0.2s ease;
}

.duo-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-section {
  padding: 80px var(--pad-x);
  text-align: center;
  border-top: 0.5px solid var(--hair);
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 32px;
}

.cta-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--wi, 0) * 80ms);
  margin-right: 0.25em;
}

.cta-section.is-visible .cta-headline .word {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--br-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: #d63b3a;
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(6px);
}

.cta-rw {
  font-size: 12px;
  color: var(--cream-mute);
  margin: 20px auto 0;
  max-width: 720px;
}

/* ==========================================================================
   Licensing & regulation
   ========================================================================== */

.licenses {
  padding: 48px var(--pad-x);
  border-top: 0.5px solid var(--hair);
  background: var(--ink-soft);
  max-width: var(--content-max);
  margin: 0 auto;
}

.licenses-intro {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 245, 240, 0.65);
  margin: 0 0 16px;
}

.licenses-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  font-size: 12px;
  color: var(--cream-mute);
  line-height: 1.6;
}

.licenses-list li::before {
  content: "·  ";
  color: var(--cream-faint);
}

@media (max-width: 540px) {
  .licenses-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal footer
   ========================================================================== */

.legal {
  padding: 32px var(--pad-x) 40px;
  background: var(--ink-deep);
  border-top: 0.5px solid var(--hair-soft);
}

.legal-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.45);
}

.legal p {
  margin: 0 0 12px;
}

.legal-rw strong {
  color: var(--cream-dim);
  font-weight: 600;
}

.legal-entity {
  color: rgba(245, 245, 240, 0.55);
  font-family: var(--font-sans);
}

.legal-copy {
  color: var(--cream-faint);
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Persistent risk warning bar — fixed to viewport bottom (SCB rule #5)
   ========================================================================== */

.rw-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  min-height: var(--rw-bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--pad-x);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream);
}

.rw-bar-label {
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rw-bar-text {
  color: var(--cream);
}

@media (max-width: 540px) {
  .rw-bar {
    font-size: 12px;
    padding: 10px 16px;
  }

  :root {
    --rw-bar-h: 64px;
  }
}

/* ==========================================================================
   Reveal animations (controlled by main.js IntersectionObserver)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal="fade-right"] {
  transform: translate3d(-32px, 0, 0);
}

[data-reveal="fade-left"] {
  transform: translate3d(32px, 0, 0);
}

[data-reveal="hero"] {
  transform: translateY(12px);
  transition-duration: 1s;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger inside grids */
[data-stagger]>* {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}

[data-stagger].is-visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.08) translate(2%, -2%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

/* ==========================================================================
   Film modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1100px;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal.is-open .modal-dialog {
  transform: scale(1);
}

.modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--br-md);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--cream);
  background: transparent;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(245, 245, 240, 0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Lock body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Episode 01 — playable tile gets a play affordance to differentiate from upcoming episodes */
.ep--playable {
  outline: none;
}

.ep-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.92);
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
  z-index: 2;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

.ep-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.ep--playable:hover .ep-play,
.ep--playable:focus-visible .ep-play {
  transform: translate(-50%, -50%) scale(1);
  background: var(--cream);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-stagger]>*,
  .cta-headline .word {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-bg {
    transform: none;
  }

  .hero-meta-dot {
    opacity: 1;
  }
}
/* ==========================================================================
   v5 typography overrides
   With Plus Jakarta Sans for both display and body, hierarchy is carried by
   weight (700 display, 600 mid, 400 body) and slightly tighter letter-spacing
   on big titles for that confident sans-display feel.
   ========================================================================== */

.hero-title,
.cta-headline,
.duo-head {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.episodes-title,
.tagline-banner-text {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ep-title,
.manifesto-lead {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.stat-num {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.manifesto-payoff {
  font-weight: 500;
  font-style: italic;
}

/* Body running text feels best at 400 with the default tracking */
.hero-sub,
.duo-body,
.manifesto-body,
.legal-inner,
.licenses-intro,
.licenses-list {
  font-weight: 400;
}

/* ==========================================================================
   Mobile responsive
   - Hide nav jump-links to make space for logo + CTA
   - Hero min-height reduced for narrow viewports
   - Trim oversized vertical padding on long-scroll sections
   - Tighter modal padding so the close button stays in view
   ========================================================================== */

@media (max-width: 720px) {
  /* Nav: hide jump links, shrink CTA */
  .nav-links { display: none; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Hero: lower min-height on mobile */
  .hero {
    min-height: 440px;
  }

  /* Vertical padding scale-down */
  .episodes,
  .duo,
  .cta-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .licenses {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  /* Modal */
  .modal { padding: 16px; }
  .modal-close {
    top: -36px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}

/* ==========================================================================
   Duo column — pull-quote variant
   Replaces the cast strip. Vertically centred against the cream card on
   desktop; stacks naturally above the card on narrow viewports.
   v5: Plus Jakarta Sans 600 for the quote, italic dimmed for the punchline.
   ========================================================================== */

.duo-col-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.duo-quote {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
  max-width: 480px;
  quotes: none;
}

.duo-quote em {
  font-style: italic;
  font-weight: 500;
  color: var(--cream-dim);
}

@media (max-width: 880px) {
  .duo-col-quote {
    padding: 0 0 8px;
  }
}


/* ==========================================================================
   Hero background — two-image cross-fade rotation
   Cycle: 14s total (each image visible ~5s, ~2s cross-fade).
   Respect prefers-reduced-motion → static first image only.
   ========================================================================== */

.hero-bg,
.hero-bg-alt {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity, transform;
}

.hero-bg {
  background-image: url('assets/hero-bg.webp');
  animation: heroFadePrimary 14s ease-in-out infinite, kenburns 22s ease-in-out infinite alternate;
}

.hero-bg-alt {
  background-image: url('assets/hero-bg-alt.webp');
  opacity: 0;
  animation: heroFadeAlt 14s ease-in-out infinite, kenburns 22s ease-in-out infinite alternate;
}

@keyframes heroFadePrimary {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100%    { opacity: 1; }
}

@keyframes heroFadeAlt {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg     { animation: none; opacity: 1; }
  .hero-bg-alt { animation: none; opacity: 0; }
}

/* Smooth scroll for the hero-play anchor (and any other internal anchors) */
html { scroll-behavior: smooth; }

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


/* ==========================================================================
   Hero CTA row — primary "Watch the trailer" + secondary "Explore the films"
   Visual hierarchy: primary filled, secondary outlined-ghost.
   Stacks on narrow viewports.
   ========================================================================== */

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Reset the .hero-play top margin since the flex parent handles spacing now */
.hero-ctas .hero-play {
  margin-top: 0;
}

.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 245, 240, 0.4);
  border-radius: var(--br-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.hero-explore:hover {
  border-color: var(--cream);
  background: rgba(245, 245, 240, 0.08);
  transform: translateY(-2px);
}

.hero-explore-arrow {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.25s ease;
}

.hero-explore:hover .hero-explore-arrow {
  transform: translateY(3px);
}

@media (max-width: 540px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-explore {
    justify-content: center;
  }
}
