/* ==========================================================================
   WINCHESTER: The Connexion Between Two Fires
   Cinematic token system
   ========================================================================== */

:root {
  /* Palette drawn from the cover art */
  --midnight: #050A18;
  --navy-deep: #0A1230;
  --navy: #12204A;
  --charcoal: #0D0D12;
  --gold: #D4A017;
  --gold-bright: #F0B435;
  --amber: #FFB347;
  --ember: #C65A1E;
  --crimson: #7A1E2B;
  --parchment: #F7EFDC;
  --cream: #EDE6D6;
  --stone: #C9BFA8;
  --muted: #8E8878;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --font-script: 'Pinyon Script', cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);

  --pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--midnight);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--midnight); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: var(--cream);
  padding: 12px 20px; border: 1px solid var(--gold);
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-2%,-3%); } 80% { transform: translate(4%,2%); }
}

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.nav.is-scrolled {
  background: rgba(9, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 160, 23, 0.18);
}
.nav__brand {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--cream); white-space: nowrap;
}
.nav__links { display: flex; gap: clamp(12px, 2vw, 26px); }
.nav__links a {
  position: relative; font-size: 14px; letter-spacing: 0.04em;
  color: var(--stone); padding: 10px 2px;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px;
  background: var(--amber); transition: right 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--parchment); }
.nav__links a:hover::after { right: 0; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ==================== BUTTONS ==================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 13px 30px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: box-shadow 0.45s ease, border-color 0.45s ease, color 0.45s ease, background 0.45s ease, transform 0.3s var(--ease-out);
  will-change: transform;
  overflow: hidden;
}
.btn--gold { background: linear-gradient(140deg, var(--gold-bright), var(--gold)); color: var(--midnight); }
.btn--gold:hover { box-shadow: 0 0 30px rgba(212, 160, 23, 0.5), 0 6px 22px rgba(0,0,0,0.4); color: var(--midnight); }
.btn--gold::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease-luxe);
}
.btn--gold:hover::before { left: 130%; }
.btn--ghost { color: var(--parchment); border-color: rgba(237, 230, 214, 0.35); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 22px rgba(255, 179, 71, 0.25); }
.btn--sm { min-height: 42px; padding: 10px 22px; font-size: 13px; }

/* ==================== HERO ==================== */
.hero { position: relative; height: 420vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--midnight);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%; display: none;
}
body.no-webgl .hero__fallback, body.reduced-motion .hero__fallback { display: block; }
body.no-webgl .hero__canvas, body.reduced-motion .hero__canvas { display: none; }
body.reduced-motion .hero { height: 100vh; }

.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(3, 5, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(5,10,24,0.45) 0%, transparent 25%, transparent 72%, rgba(5,10,24,0.85) 100%);
}

/* Tree + grass silhouettes */
.hero__tree {
  position: absolute; bottom: -4%; width: 34%; height: 32%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(2, 4, 10, 0.95), rgba(2, 4, 10, 0) 72%);
  transform-origin: bottom center;
}
.hero__tree--l { left: -6%; }
.hero__tree--r { right: -6%; }
.hero__grass {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 9%; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,4,10,0) 0%, rgba(2,4,10,0.9) 65%);
  transform-origin: bottom center;
}

/* Daybreak: warm dawn wash + soft sun halo */
.hero__dawn {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 90% 70% at 50% 62%,
    rgba(255, 214, 150, 0.6), rgba(255, 168, 92, 0.22) 40%, transparent 72%);
}
.hero__sun {
  position: absolute; top: 60%; left: 50%; width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  margin: 0; transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 238, 200, 0.5) 0%, rgba(255, 196, 120, 0.28) 28%,
    rgba(255, 168, 92, 0.12) 50%, transparent 70%);
}

/* Hero text */
/* Hero text */
.hero__content {
  position: relative; z-index: 6; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  /* set by heroController.js on scroll: light at night -> dark at morning */
  --hero-fg: #F7EFDC;
  --hero-accent: #F0B435;
  --hero-muted: #C9BFA8;
  --hero-line: rgba(237, 230, 214, 0.4);
  --hero-shadow: 0 4px 60px rgba(255, 179, 71, 0.26), 0 2px 10px rgba(0,0,0,0.5);
  --hero-shadow-sm: 0 1px 3px rgba(0,0,0,0.45);
}
.hero__eyebrow {
  color: var(--hero-accent); font-size: 13px; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 24px;
  text-shadow: var(--hero-shadow-sm);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 11vw, 140px); line-height: 0.98; letter-spacing: 0.03em;
  color: var(--hero-fg);
  text-shadow: var(--hero-shadow);
}
.hero__subtitle {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 3vw, 32px); color: var(--hero-fg); margin-top: 18px;
  text-shadow: var(--hero-shadow-sm);
}
.hero__lede {
  color: var(--hero-muted); font-size: 18px; max-width: 520px; margin-top: 26px;
  text-shadow: var(--hero-shadow-sm);
}
.hero__cta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 42px; }
.hero__cta .btn--ghost { color: var(--hero-fg); border-color: var(--hero-line); }
/* Epilogue line, revealed post-blast */
.hero__epilogue {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; pointer-events: none; opacity: 0;
}
.hero__epilogue-line {
  position: relative;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 3.4vw, 38px); color: var(--parchment); max-width: 720px;
  padding: 22px 34px; border-radius: 4px;
  background: radial-gradient(ellipse at center, rgba(6, 9, 20, 0.55), transparent 75%);
  text-shadow: 0 2px 24px rgba(0,0,0,0.8);
}
.hero__epilogue-rule {
  display: block; width: 80px; height: 1px; margin-top: 28px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Scroll cue */
.hero__cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__cue-label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero__cue-line {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--amber), transparent);
  animation: cueDrop 2.2s var(--ease-luxe) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ==================== SHARED SECTION TYPO ==================== */
.section-eyebrow {
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; color: var(--parchment);
  margin-bottom: 26px;
}
.section-title em { font-family: var(--font-serif); font-style: italic; color: var(--amber); }

/* Reveal primitives */
.reveal { opacity: 0; transform: translateY(36px); }
body.reduced-motion .reveal { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; transform: translateY(110%); }
body.reduced-motion .line-mask .line { transform: none; }

/* ==================== STATEMENT ==================== */
.statement {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(18, 32, 74, 0.55), transparent 70%),
    linear-gradient(180deg, var(--midnight), #070C1E 60%, var(--midnight));
  padding: clamp(110px, 14vh, 170px) 24px;
  display: flex; justify-content: center;
}
.statement__inner { max-width: 820px; text-align: center; }
.statement__kicker {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 30px;
}
.statement__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4vw, 46px); line-height: 1.35; color: var(--cream);
}
.statement__text em { font-style: italic; color: var(--amber); font-family: var(--font-serif); }
.statement__flame {
  display: inline-block; width: 1px; height: 70px; margin-top: 44px;
  background: linear-gradient(180deg, var(--amber), transparent);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.5);
}

/* ==================== BOOK ==================== */
.book {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 78% 30%, rgba(122, 30, 43, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(18, 32, 74, 0.35), transparent 70%),
    var(--midnight);
  padding: clamp(90px, 12vh, 150px) var(--pad-x);
}
.book__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 6vw, 96px); align-items: center;
}
@media (max-width: 880px) { .book__inner { grid-template-columns: 1fr; } }

.book__media { position: relative; perspective: 1200px; justify-self: center; }
.book__tilt {
  position: relative; width: min(380px, 78vw);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.book__cover {
  border-radius: 3px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 179, 71, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.book__glint {
  position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 235, 190, 0.22) 48%, transparent 62%);
  background-size: 260% 100%; background-position: 120% 0;
  transition: background-position 1.1s var(--ease-luxe);
}
.book__media:hover .book__glint { background-position: -60% 0; }
.book__shadow {
  position: absolute; left: 10%; right: 10%; bottom: -34px; height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(6px);
}
.book__blurb { color: var(--stone); margin-bottom: 20px; max-width: 60ch; }
.book__actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 18px; }
.book__note { color: var(--muted); font-family: var(--font-serif); font-size: 16px; }

/* ==================== STORY (horizontal accordion) ==================== */
.story {
  position: relative;
  background: linear-gradient(180deg, var(--midnight), #08101F 30%, var(--midnight));
  padding: clamp(90px, 12vh, 150px) var(--pad-x);
}
.story__head { max-width: 1080px; margin: 0 auto clamp(40px, 6vh, 64px); }
.story__accordion {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 12px;
  height: clamp(460px, 62vh, 620px);
}

.chapter {
  position: relative; overflow: hidden; border-radius: 8px;
  flex: 0 1 74px; min-width: 64px;
  background: #0E1424;
  border: 1px solid rgba(212,160,23,0.12);
  transition: flex-grow 0.7s cubic-bezier(.16,1,.3,1), border-color 0.6s ease;
}
.chapter.is-open { flex-grow: 30; border-color: rgba(212,160,23,0.4); }

.chapter__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 0.9s ease, transform 1.4s var(--ease-out);
}
.chapter.is-open .chapter__bg { opacity: 1; transform: scale(1); }
.chapter__scrim {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease;
  background: linear-gradient(90deg, rgba(6,9,20,0.94) 0%, rgba(6,9,20,0.8) 42%, rgba(6,9,20,0.35) 100%);
}
.chapter.is-open .chapter__scrim { opacity: 1; }

/* collapsed vertical bar */
.chapter__rail {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; width: 100%; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, #1B2140, #12172E);
  border: 0; transition: opacity 0.4s ease, background 0.5s ease;
}
.chapter__rail:hover { background: linear-gradient(180deg, #232a4e, #171d38); }
.chapter.is-open .chapter__rail { opacity: 0; pointer-events: none; }
.chapter__num {
  font-family: var(--font-display); font-size: 15px; color: var(--gold);
  letter-spacing: 0.05em;
}
.chapter__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; font-weight: 600;
  color: var(--stone); white-space: nowrap;
}

/* expanded content */
.chapter__panel {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(28px, 4vw, 60px); max-width: 620px;
  opacity: 0; transform: translateX(-18px); pointer-events: none;
  transition: opacity 0.6s ease 0.15s, transform 0.7s var(--ease-out) 0.15s;
}
.chapter.is-open .chapter__panel { opacity: 1; transform: none; pointer-events: auto; }
.chapter__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.chapter__h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px); color: var(--parchment); line-height: 1.1;
}
.chapter__text {
  font-family: var(--font-serif); font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75; color: var(--stone); max-width: 52ch;
}
.chapter__more {
  align-self: flex-start; margin-top: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--midnight); background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  padding: 12px 24px; border-radius: 2px;
  transition: box-shadow 0.4s ease;
}
.chapter__more:hover { box-shadow: 0 0 24px rgba(212,160,23,0.45); color: var(--midnight); }

@media (max-width: 760px) {
  .story__accordion { flex-direction: column; height: auto; }
  .chapter { flex: 0 0 66px; min-height: 66px; }
  .chapter.is-open { flex: 0 0 auto; min-height: 440px; }
  .chapter__rail { flex-direction: row; justify-content: flex-start; gap: 16px; padding-left: 22px; }
  .chapter__label { writing-mode: horizontal-tb; transform: none; }
  .chapter__scrim { background: linear-gradient(180deg, rgba(6,9,20,0.9), rgba(6,9,20,0.55)); }
}
/* ==================== AUTHOR ==================== */
.author {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 25% 40%, rgba(13, 22, 48, 0.8), transparent 75%),
    #04060F;
  padding: clamp(100px, 13vh, 160px) var(--pad-x);
}
.author__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.author__inner {
  position: relative; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(44px, 6vw, 90px); align-items: center;
}
@media (max-width: 860px) { .author__inner { grid-template-columns: 1fr; } }

.author__portrait-wrap { justify-self: center; text-align: center; }
.author__portrait {
  position: relative; width: min(430px, 40vw); aspect-ratio: 10 / 13;
  border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #101625, #04060C 80%);
  border: 1px solid rgba(212, 160, 23, 0.18);
  display: flex; align-items: flex-end; justify-content: center;
  /* emerges from darkness: driven by JS mask + brightness */
  filter: brightness(0.15);
}
.author__portrait svg { width: 78%; opacity: 0.9; }
.author__portrait-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 28%, rgba(255, 179, 71, 0.18), transparent 55%);
  opacity: 0;
}
.author__portrait-caption {
  margin-top: 14px; font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.author__bio .bio-line {
  color: var(--stone); margin-bottom: 18px; max-width: 62ch;
  opacity: 0; transform: translateY(22px);
}
body.reduced-motion .author__bio .bio-line { opacity: 1; transform: none; }

.author__timeline { margin: 34px 0 40px; display: grid; gap: 14px; }
.tl-item { display: flex; align-items: center; gap: 14px; }
.tl-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--gold); box-shadow: 0 0 12px rgba(212, 160, 23, 0.7);
}
.tl-label { color: var(--stone); font-size: 15.5px; }

.author__signature { position: relative; height: 74px; }
.signature-text {
  font-family: var(--font-script); font-size: clamp(38px, 4.4vw, 54px);
  color: var(--amber);
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  text-shadow: 0 0 24px rgba(255, 179, 71, 0.35);
}
.signature-pen {
  position: absolute; top: 50%; left: 0; width: 5px; height: 5px;
  border-radius: 50%; background: var(--parchment);
  box-shadow: 0 0 12px rgba(247, 239, 220, 0.9);
  opacity: 0;
}

/* ==================== JOURNAL ==================== */
.journal {
  background: linear-gradient(180deg, #04060F, var(--midnight));
  padding: clamp(90px, 12vh, 140px) var(--pad-x);
}
.journal__head { max-width: 1120px; margin: 0 auto clamp(40px, 6vh, 64px); }
.journal__grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 920px) { .journal__grid { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 34px 30px 30px;
  background: linear-gradient(165deg, rgba(18, 32, 74, 0.35), rgba(9, 12, 22, 0.7));
  border: 1px solid rgba(212, 160, 23, 0.12);
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 34px rgba(212, 160, 23, 0.08);
}
.card__category {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.card__title {
  font-family: var(--font-display); font-size: 23px; font-weight: 600;
  color: var(--parchment); margin-bottom: 12px; line-height: 1.3;
}
.card__excerpt { color: var(--stone); font-size: 15.5px; margin-bottom: 22px; }
.card__meta { font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--font-serif); }

/* ==================== PODCAST ==================== */
.podcast {
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(122, 30, 43, 0.14), transparent 70%),
    var(--midnight);
  padding: clamp(80px, 11vh, 130px) var(--pad-x);
}
.podcast__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 0.5fr 1fr; gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 800px) { .podcast__inner { grid-template-columns: 1fr; } }
.podcast__wave {
  display: flex; align-items: center; gap: 6px; height: 130px; justify-content: center;
}
.podcast__wave span {
  width: 5px; border-radius: 3px; height: 100%;
  background: linear-gradient(180deg, var(--amber), var(--ember));
  animation: waveBounce 1.6s ease-in-out infinite;
  transform-origin: center;
}
.podcast__wave span:nth-child(2n) { animation-delay: 0.15s; }
.podcast__wave span:nth-child(3n) { animation-delay: 0.35s; }
.podcast__wave span:nth-child(4n) { animation-delay: 0.55s; }
.podcast__wave span:nth-child(5n) { animation-delay: 0.75s; }
@keyframes waveBounce { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
body.reduced-motion .podcast__wave span { animation: none; transform: scaleY(0.5); }
.podcast__desc { color: var(--stone); max-width: 54ch; margin-bottom: 28px; }

/* ==================== SPEAKING ==================== */
.speaking {
  background: linear-gradient(180deg, var(--midnight), #070B18);
  padding: clamp(80px, 11vh, 130px) var(--pad-x);
  text-align: center;
}
.speaking__inner { max-width: 760px; margin: 0 auto; }
.speaking__desc { color: var(--stone); margin-bottom: 30px; }
.speaking__formats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 38px;
}
.speaking__formats li {
  padding: 10px 20px; font-size: 14px; letter-spacing: 0.05em;
  border: 1px solid rgba(212, 160, 23, 0.3); border-radius: 30px;
  color: var(--stone);
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.speaking__formats li:hover {
  border-color: var(--amber); color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 179, 71, 0.18); transform: translateY(-3px);
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 90% at 50% 110%, rgba(198, 90, 30, 0.22), transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(18, 32, 74, 0.5), transparent 70%),
    #030510;
  padding: clamp(110px, 15vh, 190px) var(--pad-x);
  display: flex; justify-content: center;
}
.newsletter__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.newsletter__frame {
  position: relative; max-width: 720px; width: 100%;
  padding: 2px; border-radius: 8px;
  background: conic-gradient(from var(--ng, 0deg),
    rgba(212,160,23,0.05), rgba(255,179,71,0.6), rgba(122,30,43,0.25),
    rgba(212,160,23,0.05), rgba(255,179,71,0.5), rgba(212,160,23,0.05));
  animation: borderSpin 9s linear infinite;
}
@property --ng { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --ng: 360deg; } }
body.reduced-motion .newsletter__frame { animation: none; }

.newsletter__inner {
  position: relative; text-align: center; border-radius: 7px;
  padding: clamp(48px, 7vh, 76px) clamp(26px, 5vw, 70px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(198, 90, 30, 0.12), transparent 70%),
    #060914;
}
.newsletter__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15;
  color: var(--parchment); margin-bottom: 18px;
}
.newsletter__title em { font-family: var(--font-serif); font-style: italic; color: var(--amber); }
.newsletter__desc { color: var(--stone); margin-bottom: 36px; }

.newsletter__form {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.field { position: relative; flex: 1 1 280px; max-width: 360px; }
.field input {
  width: 100%; min-height: 48px; padding: 14px 18px;
  font-family: var(--font-body); font-size: 16px; color: var(--parchment);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(237, 230, 214, 0.2); border-radius: 3px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.field input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15), 0 0 24px rgba(255, 179, 71, 0.12);
}
.field label {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; font-size: 16px;
  transition: all 0.3s var(--ease-out);
  background: transparent; padding: 0 4px;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 0; font-size: 12px; color: var(--amber); background: #060914;
}

.newsletter__success { margin-top: 8px; }
.newsletter__success p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; color: var(--parchment);
}
.success-ring {
  display: block; width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; border: 2px solid var(--gold);
  position: relative; box-shadow: 0 0 26px rgba(212, 160, 23, 0.4);
}
.success-ring::after {
  content: ''; position: absolute; left: 17px; top: 12px;
  width: 12px; height: 22px;
  border-right: 2px solid var(--gold-bright); border-bottom: 2px solid var(--gold-bright);
  transform: rotate(45deg);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #020409;
  border-top: 1px solid rgba(212, 160, 23, 0.12);
  padding: 64px var(--pad-x) 46px;
  text-align: center;
}
.footer__brand { font-family: var(--font-display); font-size: 22px; color: var(--parchment); }
.footer__tag { font-family: var(--font-serif); color: var(--muted); margin: 8px 0 26px; }
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.footer__links a { color: var(--stone); font-size: 14px; letter-spacing: 0.04em; }
.footer__links a:hover { color: var(--amber); }
.footer__contact { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0 auto 18px; }
.footer__legal { color: #565144; font-size: 13px; }

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__cue-line, .btn--gold::before { animation: none !important; }
}
