/* =========================================================
   AI WITH REI, aiwithrei.com
   Podcast + newsletter site styles. Structure carried over from the
   Funds on Fire site; palette and type from the AI with REI brand kit
   (Skills/_references/ai-with-rei-brand.md).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Grounds. The kit ships one dark (ink #0A0A0A); the surfaces are
     derived neutral steps for depth, per the brand reference. */
  --bg:      #0A0A0A;   /* kit "ink", page ground */
  --deep:    #050505;   /* ticker, footer, text on accent fills */
  --surface: #141414;   /* elevated panel */
  --surface-2: #1E1E1E; /* raised card */
  --rule:    #262626;   /* dividers, card borders */

  /* Primary accent: terracotta */
  --terra:       #C45A3C;   /* fills, borders, large display */
  /* Terracotta as TEXT. #C45A3C measures 4.28:1 on --surface, under the 4.5:1
     body floor, so small type uses the lighter kit tone (6.4:1). The light
     article theme redefines this in article-light.css. */
  --terra-ink:   #E8785C;
  --terra-hot:   #D9623F;
  --terra-light: #E8785C;
  --terra-deep:  #9E4329;

  /* Secondary accent: signal violet */
  --signal:       #7A5AF8;
  --signal-deep:  #5B3FD6;
  --signal-light: #9B82FA;

  /* Light tones */
  --cream:   #F5F3EF;
  --cream-2: #E7E3DB;
  --paper:   #FAF8F4;

  /* Functional. Terracotta doubles as "down" (brand ref, option a). */
  --up:   #1E9E54;
  --down: #E8785C;
  --warn: #E8A33C;
  --mid:  #686868;
  --soft: #9A9A9A;

  /* Gradients. --grad-ring is the icon ring sweep, the signature element. */
  --grad-warm:      linear-gradient(180deg, #E8785C 0%, #C45A3C 100%);
  --grad-ring:      linear-gradient(90deg, #E8785C 0%, #C45A3C 35%, #7A5AF8 100%);
  --grad-ring-diag: linear-gradient(135deg, #E8785C 0%, #C45A3C 40%, #7A5AF8 100%);

  /* Typography */
  --f-display:  'Space Grotesk', system-ui, sans-serif;
  --f-headline: 'Space Grotesk', system-ui, sans-serif;
  --f-text:     'Inter', system-ui, sans-serif;
  --f-mono:     'Space Mono', ui-monospace, monospace;
  --f-serif:    'Instrument Serif', Georgia, serif;

  /* Spacing, 8px grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Layout */
  --container:        1240px;
  --container-narrow: 760px;
  --container-wide:   1440px;
  --section-gap:      clamp(4.5rem, 9vw, 8rem);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm:    0 2px 8px rgba(0,0,0,0.20);
  --sh-md:    0 8px 24px rgba(0,0,0,0.32);
  --sh-lg:    0 20px 48px rgba(0,0,0,0.45);
  --sh-warm: 0 8px 32px rgba(196,90,60, 0.32);
  --sh-signal:  0 8px 32px rgba(122,90,248, 0.25);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* Selection */
::selection { background: var(--terra); color: var(--deep); }

/* Subtle film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.01em; line-height: 1.05; }
h4 { font-family: var(--f-headline); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.005em; line-height: 1.2; text-transform: none; }

p { margin: 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terra);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.85;
  max-width: 56ch;
}

.text-terra { color: var(--terra-ink); }
.text-signal { color: var(--signal-light); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--soft); }

.grad-text {
  background: var(--grad-ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s-6); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--s-6); }

section { position: relative; padding-block: var(--section-gap); }

.section-head { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-12); max-width: 60ch; }

.divider { height: 1px; background: var(--rule); }
.divider-flame { height: 2px; background: linear-gradient(90deg, var(--terra), transparent); }

/* Grid background, subtle blue grid */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,90,248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,90,248, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

/* Radial flame glow */
.glow {
  position: absolute;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(196,90,60,0.18) 0%, rgba(196,90,60,0) 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  text-transform: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn-primary {
  background: var(--terra);
  color: var(--deep);
  box-shadow: 0 4px 18px rgba(196,90,60,0.35);
}
.btn-primary:hover { background: var(--terra-light); box-shadow: var(--sh-warm); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,243,239,0.20);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(245,243,239,0.04); }

.btn-fill {
  background: var(--cream);
  color: var(--deep);
}
.btn-fill:hover { background: white; box-shadow: var(--sh-md); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-ink);
  padding: 8px 0;
  border-bottom: 1px solid rgba(196,90,60,0.4);
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.btn-arrow:hover { color: var(--terra-light); border-color: var(--terra-light); gap: 12px; }
.btn-arrow svg { transition: transform 0.25s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   TAGS / CHIPS / BADGES
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(196,90,60, 0.12);
  color: var(--terra-ink);
  border: 1px solid rgba(196,90,60, 0.32);
}
.tag.blue {
  background: rgba(122,90,248,0.12);
  color: var(--signal-light);
  border-color: rgba(122,90,248,0.40);
}
.tag.bone {
  /* Sits on episode artwork, so it carries its own opaque ground: over a
     bright thumbnail the translucent version measured 1:1. */
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  border-color: rgba(245,243,239,0.28);
}
.tag.solid {
  background: var(--terra);
  color: var(--deep);
  border-color: var(--terra-ink);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-ink);
}
.live-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra-hot);
  box-shadow: 0 0 12px var(--terra-hot);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,8, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(122,90,248, 0.10);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(8,8,8, 0.92);
  border-bottom-color: rgba(122,90,248, 0.20);
}
.nav-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 16px var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo-text {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-link {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after { width: 100%; }

.nav-cta { display: inline-flex; gap: var(--s-3); }

.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245,243,239,0.18);
  align-items: center;
  justify-content: center;
}
.nav-mobile-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero .glow {
  top: -200px; right: -200px;
}
.hero .glow.glow-2 {
  top: auto; right: auto;
  bottom: -300px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(122,90,248,0.18) 0%, rgba(122,90,248,0) 65%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-6); }

.hero-newsroom {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 10px 16px;
  align-self: flex-start;
  border-radius: var(--r-full);
  background: rgba(14,14,14, 0.6);
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.hero-newsroom .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--mid); display: inline-block; }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
}
.hero h1 .em {
  display: inline-block;
  background: var(--grad-ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.hero-meta strong { color: var(--cream); font-weight: 600; }
.hero-meta .dot { width: 4px; height: 4px; background: var(--mid); border-radius: 50%; display: inline-block; }

.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }

/* Listen-on row */
.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.listen-on {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: rgba(245,243,239, 0.04);
  border: 1px solid rgba(245,243,239, 0.10);
  transition: all 0.25s ease;
  color: var(--cream);
}
.listen-on:hover {
  background: rgba(245,243,239, 0.08);
  border-color: rgba(245,243,239, 0.25);
  transform: translateY(-2px);
}
.listen-on svg { width: 22px; height: 22px; flex-shrink: 0; }
.listen-on-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.listen-on-text small {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.listen-on-text strong {
  font-family: var(--f-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cream);
}

/* Hero right side, cover + meta */
.hero-cover-card {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotate(0.6deg);
}
.hero-cover-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,8,8,0.85) 100%);
  pointer-events: none;
}
.hero-cover-card img { display: block; width: 100%; height: auto; }
.hero-cover-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245,243,239,0.10);
  border-radius: var(--r-2xl);
  pointer-events: none;
  z-index: 2;
}
.hero-cover-stamp {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
}
.hero-cover-stamp .label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.hero-cover-stamp .ep-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--cream);
  font-weight: 700;
}
.hero-cover-stamp .episode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--terra);
  color: var(--deep);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
}

/* Stats row under hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.hero-stat .num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero-stat .num .accent { color: var(--terra-ink); }
.hero-stat .label {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

/* =========================================================
   TICKER (between sections)
   ========================================================= */
.ticker {
  border-top: 2px solid var(--terra);
  border-bottom: 1px solid var(--rule);
  background: var(--deep);
  overflow: hidden;
  padding-block: 16px;
  margin: 0;
}
.ticker-track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  animation: tick 70s linear infinite;
}
.ticker-track .tag-mono { color: var(--terra-ink); font-weight: 700; }
.ticker-track .up { color: var(--up); }
.ticker-track .dn { color: var(--down); }
.ticker-track .sep { color: var(--rule); }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   LATEST EPISODE, featured panel
   ========================================================= */
.latest {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(196,90,60,0.10) 0%, transparent 60%),
    var(--bg);
}
.latest-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--rule);
  box-shadow: var(--sh-md);
}
.latest-content { display: flex; flex-direction: column; gap: var(--s-5); }
.latest-content h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.latest-meta {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.latest-meta .dot { width: 4px; height: 4px; background: var(--mid); border-radius: 50%; display: inline-block; align-self: center; }
.latest-summary { color: rgba(245,243,239,0.85); font-size: 1rem; line-height: 1.6; }
.latest-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Buzzsprout iframe wrapper, themed border */
.buzzsprout-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--rule);
  align-self: center;
  width: 100%;
}
.buzzsprout-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* =========================================================
   EPISODES GRID
   ========================================================= */
.episodes {
  position: relative;
}
.episodes-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-12);
  flex-wrap: wrap;
}
.episodes-head h2 { line-height: 1; }

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-6);
}

.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.episode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,90,60, 0.4);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(196,90,60,0.15);
}

.episode-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--deep);
}
.episode-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.episode-card:hover .episode-art img { transform: scale(1.04); }
.episode-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,8,8,0.6) 100%);
  pointer-events: none;
}
.episode-art-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.episode-art-duration {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 2;
  padding: 4px 9px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245,243,239,0.12);
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.episode-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.episode-meta {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.episode-meta .ep-num { color: var(--terra-ink); font-weight: 700; }
.episode-title {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(245,243,239,0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.episode-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

/* Custom mini play button (uses raw mp3) */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 11px;
  border-radius: var(--r-full);
  background: var(--terra);
  color: var(--deep);
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.play-btn:hover { background: var(--terra-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,90,60,0.4); }
.play-btn .play-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--terra-ink);
}
.play-btn .play-icon svg { width: 9px; height: 9px; fill: currentColor; }
.play-btn.is-playing { background: var(--cream); color: var(--deep); }
.play-btn.is-playing .play-icon { background: var(--terra); color: var(--deep); }

.episode-foot-link {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.25s ease;
}
.episode-foot-link:hover { color: var(--cream); }

/* Per-episode platform links (Apple / Spotify / YouTube / Amazon), from /api/episodes */
.episode-platforms {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
}
.episode-platforms-label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-right: 4px;
}
.episode-platform {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: rgba(245,243,239,0.75);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.episode-platform:hover { color: var(--terra-ink); border-color: var(--terra); transform: translateY(-1px); }
.episode-platform svg { width: 14px; height: 14px; }

.episodes-cta { margin-top: var(--s-12); display: flex; justify-content: center; }

/* =========================================================
   STICKY MINI PLAYER (bottom bar), appears when audio playing
   ========================================================= */
.mini-player {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  z-index: 80;
  width: min(720px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 12px 14px;
  background: rgba(14,14,14, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(122,90,248, 0.3);
  border-radius: var(--r-full);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(196,90,60,0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mini-player.is-active { transform: translate(-50%, 0); }
.mini-player-art {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--deep);
}
.mini-player-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-player-title {
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player-meta {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.mini-player-controls { display: flex; align-items: center; gap: var(--s-3); }
.mini-player-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,243,239,0.06);
  color: var(--cream);
  transition: background 0.25s ease;
}
.mini-player-btn:hover { background: rgba(245,243,239,0.15); }
.mini-player-btn.primary {
  background: var(--terra);
  color: var(--deep);
}
.mini-player-btn.primary:hover { background: var(--terra-light); }
.mini-player-btn svg { width: 14px; height: 14px; fill: currentColor; }
.mini-player-progress {
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: rgba(245,243,239,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.mini-player-progress-bar {
  height: 100%;
  background: var(--grad-ring);
  width: 0%;
  transition: width 0.2s linear;
}

/* =========================================================
   PILLARS, what the show is about
   ========================================================= */
.pillars {
  background: linear-gradient(180deg, var(--bg) 0%, var(--deep) 50%, var(--bg) 100%);
  position: relative;
}
.pillars .grid-bg { mask-image: none; opacity: 0.4; }
.pillars-head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: var(--s-16);
  max-width: 60ch;
  display: flex; flex-direction: column; gap: var(--s-4);
  align-items: center;
}
.pillars-head .eyebrow { justify-content: center; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  position: relative;
  z-index: 2;
}
.pillar-card {
  position: relative;
  padding: var(--s-8) var(--s-6);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,90,60, 0.35);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-num {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--terra-ink);
}
.pillar-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(196,90,60, 0.10);
  border: 1px solid rgba(196,90,60, 0.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--terra-ink);
  margin-bottom: var(--s-2);
}
.pillar-icon svg { width: 26px; height: 26px; }

.pillar-card h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  line-height: 1;
  font-weight: 700;
}
.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245,243,239,0.7);
}
.pillar-meta {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.pillar-meta strong { color: var(--cream); }

/* =========================================================
   HOST, about Devin
   ========================================================= */
.host {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.host .glow { top: 50%; left: 70%; opacity: 0.6; }

.host-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.host-card {
  position: relative;
  padding: var(--s-8);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: center;
  text-align: center;
  box-shadow: var(--sh-md);
}
.host-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--rule);
  border: 2px solid var(--terra);
  padding: 6px;
  position: relative;
}
.host-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--deep);
}
.host-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(196,90,60,0.4);
  pointer-events: none;
}
.host-card h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  line-height: 1;
  font-weight: 700;
}
.host-card .role {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-ink);
}
.host-companies {
  display: flex; flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(245,243,239,0.7);
  text-align: left;
}
.host-companies li { display: flex; align-items: center; gap: 10px; }
.host-companies li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--terra);
  border-radius: 50%;
  display: inline-block;
}

.host-bio { display: flex; flex-direction: column; gap: var(--s-5); }
.host-bio h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.host-bio p { font-size: 1.05rem; line-height: 1.65; color: rgba(245,243,239,0.85); }
.host-bio p strong { color: var(--cream); font-weight: 600; }

.host-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(245,243,239,0.03);
  border: 1px solid rgba(245,243,239,0.08);
}
.host-stat .num { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--terra-ink); font-weight: 700;}
.host-stat .lbl { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }

/* =========================================================
   SPONSOR, Fund Flow OS strip
   ========================================================= */
.sponsor {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep) 0%, var(--signal-deep) 100%);
  border-block: 1px solid var(--rule);
}
.sponsor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(196,90,60,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.sponsor-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: var(--s-5);
}
.sponsor-tag::before {
  content: '';
  width: 28px; height: 1px; background: var(--terra-light);
}
.sponsor h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.015em;
  line-height: 1;
}
.sponsor p { margin-top: var(--s-5); font-size: 1.05rem; line-height: 1.6; color: rgba(245,243,239,0.85); max-width: 50ch; }
.sponsor-actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }

.sponsor-code-card {
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(14,14,14,0.7) 0%, rgba(8,8,8,0.7) 100%);
  border: 1px solid rgba(245,243,239,0.12);
  backdrop-filter: blur(8px);
  text-align: center;
  display: flex; flex-direction: column;
  gap: var(--s-4);
  align-items: center;
}
.sponsor-code-card .label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}
.sponsor-code {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.08em;
  background: var(--grad-ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.02;
  font-weight: 700;
}
.sponsor-code-promo {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.4;
}
.sponsor-code-promo .highlight { color: var(--terra-ink); }
.sponsor-code-detail {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--soft);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  position: relative;
  background: var(--bg);
}
.newsletter-inner {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(ellipse at top right, rgba(196,90,60,0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  box-shadow: var(--sh-md);
}
.newsletter h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1; }
.newsletter p { color: rgba(245,243,239,0.8); margin-top: var(--s-4); font-size: 1rem; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: var(--s-3); }
.newsletter-form input[type="email"] {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(8,8,8,0.7);
  border: 1px solid var(--rule);
  color: var(--cream);
  font-family: var(--f-text);
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--terra-ink);
  background: rgba(8,8,8,0.9);
}
.newsletter-form input::placeholder { color: var(--mid); }
.newsletter-meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  margin-top: 4px;
}

/* =========================================================
   GUEST CTA strip
   ========================================================= */
.guest-cta {
  position: relative;
  background: var(--deep);
  border-block: 1px solid var(--rule);
}
.guest-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.guest-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.05; }
.guest-cta p { color: rgba(245,243,239,0.75); margin-top: var(--s-3); max-width: 56ch; line-height: 1.55; }
.guest-cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--deep);
  padding-top: var(--s-20);
  padding-bottom: var(--s-8);
  border-top: 2px solid var(--terra);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer-brand img { height: 38px; width: auto; }
.footer-brand p { color: rgba(245,243,239,0.6); font-size: 0.95rem; line-height: 1.6; max-width: 36ch; }
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-ink);
  margin-bottom: var(--s-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(245,243,239,0.7);
  transition: color 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--cream); }
.footer-col a svg { width: 14px; height: 14px; opacity: 0.6; }

.footer-socials {
  display: flex; gap: var(--s-3);
  margin-top: var(--s-3);
}
.footer-social {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(245,243,239,0.04);
  border: 1px solid rgba(245,243,239,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,243,239,0.7);
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: var(--terra);
  border-color: var(--terra-ink);
  color: var(--deep);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--soft);
  flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: var(--s-5); }
.footer-bottom a:hover { color: var(--cream); }

/* =========================================================
   GUEST APPLICATION PAGE
   ========================================================= */
.guest-page { padding-top: var(--s-12); padding-bottom: var(--s-32); }
.guest-page .container { max-width: 760px; }
.guest-form {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-12);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-md);
}
.guest-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.guest-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
}
.guest-form input,
.guest-form textarea,
.guest-form select {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(8,8,8,0.7);
  border: 1px solid var(--rule);
  color: var(--cream);
  font-family: var(--f-text);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.guest-form input:focus,
.guest-form textarea:focus,
.guest-form select:focus {
  outline: none;
  border-color: var(--terra-ink);
  background: rgba(8,8,8,0.9);
}
.guest-form textarea { min-height: 140px; resize: vertical; }
.guest-form button[type="submit"] { justify-self: start; }
.guest-form .form-meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  text-transform: uppercase;
  margin-top: var(--s-2);
}

.guest-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
}
.guest-feature {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(245,243,239,0.03);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.guest-feature .num {
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--terra-ink);
  font-weight: 700;
}
.guest-feature .lbl {
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}
.guest-feature p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245,243,239,0.65);
}

/* =========================================================
   ANIMATIONS, entrance reveals
   ========================================================= */
[data-reveal], [data-stagger] > *, [data-slide-left], [data-slide-right], [data-scale] {
  will-change: transform, opacity;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover-card { transform: rotate(0); max-width: 480px; margin-inline: auto; width: 100%; }
  .latest-panel { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .host-grid { grid-template-columns: 1fr; }
  .host-card { max-width: 480px; margin-inline: auto; width: 100%; }
  .sponsor-inner { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: left; }
  .guest-cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding-block: clamp(3.5rem, 9vw, 6rem); }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-cta .btn { padding: 10px 14px; font-size: 0.85rem; }
  .nav-cta .btn-ghost { display: none; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .listen-row { gap: 8px; }
  .listen-on { padding: 9px 12px; }
  .listen-on-text small { font-size: 0.55rem; }
  .listen-on-text strong { font-size: 0.84rem; }

  .pillars-grid { grid-template-columns: 1fr; }
  .host-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom .legal { justify-content: center; }

  .guest-form .row { grid-template-columns: 1fr; }
  .guest-features { grid-template-columns: 1fr; }

  .mini-player { width: calc(100vw - 24px); bottom: 12px; padding: 10px 12px; }
  .mini-player-meta { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
}

/* =========================================================
   BLOG, listing page + post pages
   ========================================================= */

/* --- Blog listing --- */
.blog-hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.blog-hero .glow { top: -200px; right: -200px; }
.blog-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 0.95;
  margin-top: var(--s-4);
}
.blog-hero p { margin-top: var(--s-5); max-width: 60ch; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-12);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,90,60, 0.4);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(196,90,60,0.15);
}
.post-card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--deep);
}
.post-card-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover .post-card-art img { transform: scale(1.04); }
.post-card-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,8,8,0.7) 100%);
  pointer-events: none;
}
.post-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.post-card-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.post-card-meta {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.post-card h3 {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--cream);
  text-transform: none;
}
.post-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(245,243,239,0.7);
}
.post-card-foot {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.post-card-foot strong { color: var(--terra-ink); }

/* --- Article (post page) ---
   Editorial typography: refined, readable, NOT marketing-billboard.
   Display font is reserved for the homepage hero. Articles use the
   headline font (Archivo) at 700-800 weight, sentence case.
*/
.article {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.article .container { max-width: 720px; }

.article-head {
  display: flex; flex-direction: column; gap: var(--s-5);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-10);
}

.article-meta {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.article-meta > span:not(.cat):not(.dot) {
  color: var(--soft);
}
.article-meta .dot {
  width: 3px; height: 3px;
  background: var(--soft);
  border-radius: 50%;
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
}
.article-meta .cat {
  color: var(--terra-ink);
  font-weight: 700;
}

/* Article H1: Archivo, NOT Archivo Black. Sentence case. Tight but readable. */
.article h1 {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: clamp(1.95rem, 4vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--cream);
  max-width: 22ch;
}

.article-deck {
  font-family: var(--f-text);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(245,243,239,0.80);
  max-width: 58ch;
}

.article-author {
  display: flex; align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
  border-top: 1px dashed var(--rule);
}
.article-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rule);
  border: 1px solid var(--terra);
}
.article-author-info { display: flex; flex-direction: column; line-height: 1.2; }
.article-author-name { font-family: var(--f-headline); font-weight: 700; font-size: 0.95rem; color: var(--cream); }
.article-author-role {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Hero figure that breaks out of the narrow article container,
   so editorial images can breathe at full width while text stays narrow. */
.article-hero-img {
  margin: 0 calc(50% - 50vw) var(--s-12);
  position: relative;
  background: var(--deep);
  border-block: 1px solid var(--rule);
  overflow: hidden;
  max-height: 560px;
}
.article-hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}
.article-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,14,14,0.55) 100%);
  pointer-events: none;
}
.article-hero-img figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-4) var(--s-6);
  background: linear-gradient(180deg, transparent, rgba(8,8,8,0.85));
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  z-index: 2;
  text-align: center;
}

/* Inline figures inside the article body, also break out partially */
.article-body figure {
  margin: 2.4em 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--deep);
}
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
}
.article-body figure figcaption {
  padding: var(--s-3) var(--s-5);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--soft);
  background: rgba(8,8,8,0.6);
  border-top: 1px solid var(--rule);
}

/* Pull-quote, magazine-style emphasis block */
.article-body .pullquote {
  margin: 2.6em 0;
  padding: 1.4em 0;
  border-block: 1px solid var(--rule);
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-align: center;
}
.article-body .pullquote::before {
  content: '"';
  display: block;
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: 0.7;
  color: var(--terra-ink);
  margin-bottom: 0.2em;
  font-weight: 700;
}

/* Stat callout block, for highlighting a single huge number with context */
.article-body .stat-callout {
  margin: 2em 0;
  padding: 2em 1.5em;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.article-body .stat-callout .num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: 1.02;
  background: var(--grad-ring);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.article-body .stat-callout .lbl {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  max-width: 36ch;
}

/* Listen-to-episode card, replaces the broken iframe */
.article-body .listen-card {
  margin: 2em 0;
  padding: 1.6em 1.8em;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at top right, rgba(122,90,248,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.article-body .listen-card .label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-ink);
  font-weight: 700;
}
.article-body .listen-card h3 {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--cream);
  text-transform: none;
}
.article-body .listen-card p { margin: 0; color: rgba(245,243,239,0.78); font-size: 0.96rem; }
.article-body .listen-card .listen-row {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.article-body .listen-card .listen-on {
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: rgba(245,243,239,0.04);
  border: 1px solid rgba(245,243,239,0.10);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s ease;
  font-family: var(--f-headline);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
}
.article-body .listen-card .listen-on:hover {
  background: rgba(245,243,239,0.08);
  border-color: rgba(245,243,239,0.22);
  transform: translateY(-1px);
  border-bottom-color: rgba(245,243,239,0.22);
}
.article-body .listen-card .listen-on svg { width: 16px; height: 16px; }

/* Article body typography, editorial, readable, generous breathing room */
.article-body {
  font-family: var(--f-text);
  font-size: 1.06rem;
  line-height: 1.75;
  font-weight: 400;
  color: rgba(245,243,239,0.92);
}
.article-body p { margin: 0 0 1.55em 0; }
.article-body p:last-child { margin-bottom: 0; }
.article-body p strong, .article-body strong { color: var(--cream); font-weight: 600; }
.article-body em { font-style: italic; color: var(--cream); }
.article-body a {
  color: var(--terra-ink);
  border-bottom: 1px solid rgba(196,90,60,0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.article-body a:hover { color: var(--terra-light); border-color: var(--terra-light); }

/* Body H2: Archivo 700, sentence case, NO uppercase, NO display font.
   This is what a Stratechery / Verge-style article header looks like. */
.article-body h2 {
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  letter-spacing: -0.018em;
  line-height: 1.18;
  text-transform: none;
  margin: 2.6em 0 0.7em 0;
  color: var(--cream);
  scroll-margin-top: 80px;
  max-width: 38ch;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 2em 0 0.5em 0;
  color: var(--cream);
  text-transform: none;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5em 1.4em;
  padding: 0;
  list-style: disc outside;
}
.article-body ol { list-style: decimal outside; }
.article-body li { margin-bottom: 0.55em; padding-left: 0.4em; }
.article-body li::marker { color: var(--terra-ink); }

.article-body blockquote {
  margin: 1.8em 0;
  padding: 1.4em 1.6em;
  border-left: 3px solid var(--terra);
  background: rgba(196,90,60,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--cream);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite {
  display: block;
  font-style: normal;
  margin-top: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--soft);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.96rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: 0.85em 1em;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.article-body th {
  background: rgba(122,90,248,0.08);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.article-body tr:last-child td { border-bottom: 0; }
.article-body tr:hover td { background: rgba(245,243,239,0.02); }

/* TL;DR + Answer Capsule blocks */
.article-body .tldr {
  padding: 1.4em 1.6em;
  margin: 0 0 2em 0;
  background: linear-gradient(180deg, rgba(196,90,60,0.08), rgba(196,90,60,0.02));
  border: 1px solid rgba(196,90,60,0.25);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--cream);
}
.article-body .tldr::before {
  content: 'TL;DR';
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--terra-ink);
  margin-bottom: 0.6em;
}
.article-body .answer-capsule {
  padding: 1.2em 1.4em;
  margin: 0.6em 0 1.6em 0;
  background: rgba(122,90,248,0.07);
  border-left: 3px solid var(--signal-light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 500;
  color: var(--cream);
}

/* CTA section inside article */
.article-cta {
  margin: 2.4em 0;
  padding: 2em 2em;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at top right, rgba(196,90,60,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.article-cta .label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-ink);
  font-weight: 700;
}
.article-cta h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: -0.005em;
  text-transform: none;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}
.article-cta p { margin: 0; color: rgba(245,243,239,0.8); font-size: 0.98rem; }
.article-cta .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Embedded episode player */
.article-player {
  margin: 2em 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--rule);
}
.article-player iframe { display: block; width: 100%; border: 0; }

/* Footer rail (FAQ + sign-off) */
.article-faq {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1px solid var(--rule);
}
.article-faq h2 { margin-top: 0; }
.article-faq details {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  background: rgba(245,243,239,0.02);
  overflow: hidden;
}
.article-faq summary {
  cursor: pointer;
  padding: 1em 1.2em;
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--cream);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  transition: background 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}
.article-faq summary::marker { display: none; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--terra-ink);
  transition: transform 0.25s ease;
}
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details[open] summary { background: rgba(196,90,60,0.05); }
.article-faq details > div {
  padding: 0 1.2em 1.2em 1.2em;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(245,243,239,0.85);
}

.article-signoff {
  margin-top: 2.5em;
  padding-top: 1.6em;
  border-top: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  color: var(--terra-ink);
  font-style: italic;
  font-weight: 700;
}

/* Related posts */
.related-posts {
  margin-top: 4em;
  padding-top: 2.5em;
  border-top: 1px solid var(--rule);
}
.related-posts h2 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: -0.005em;
  margin: 0 0 1.5em 0;
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--soft); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { margin: 0 8px; color: var(--rule); }

@media (max-width: 720px) {
  .article .container { padding-inline: var(--s-5); }
  .article-body { font-size: 1.025rem; line-height: 1.7; }
  .article-cta { padding: 1.5em 1.25em; }
  .article-cta .actions .btn { width: 100%; justify-content: center; }
  .article-body table { font-size: 0.88rem; }
  .article-body th, .article-body td { padding: 0.65em 0.7em; }
}


/* =========================================================
   AI WITH REI ADDITIONS
   Components that did not exist on the Funds on Fire site.
   ========================================================= */

/* Editorial serif accent. The kit pairs Space Grotesk with an
   "Editorial Serif"; Instrument Serif italic carries that role,
   same as the live newsletter page. */
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 .serif, h2 .serif { color: var(--cream-2); }
.hero h1 .serif { font-size: 1.04em; }

/* Nav logo is the full lockup (icon + wordmark + tagline) */
.nav-logo img { height: 46px; width: auto; }
.footer-brand img { height: 58px; width: auto; }

/* Mobile menu */
@media (max-width: 720px) {
  .nav-logo img { height: 38px; }
  .nav.is-open { background: rgba(8,8,8,0.97); }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--s-6) var(--s-6);
    background: var(--deep);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    z-index: 60;
  }
  /* The nav's backdrop-filter makes it a backdrop root, which lets the
     page show through a panel hanging below it. Drop it while open. */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--deep); }
  .nav.is-open .nav-link {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--cream);
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav-link::after { display: none; }
}

/* Portrait in the host card, not a logo */
.host-avatar img { object-position: 50% 18%; }

/* Newsletter form states (site.js) */
.newsletter-form input.is-invalid { border-color: var(--down); }
.newsletter-meta.is-ok { color: var(--up); }
.newsletter-meta.is-err { color: var(--down); }
.newsletter-form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.newsletter .btn-arrow { display: inline-flex; }

/* Sponsors: two partners side by side, replaces the single FIRE strip */
.sponsor {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(196,90,60,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(122,90,248,0.16) 0%, transparent 55%),
    var(--deep);
}
.sponsor::before { display: none; }
.sponsor-head { margin-bottom: var(--s-12); max-width: 44ch; }
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  position: relative;
  z-index: 2;
}
.sponsor-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.sponsor-card:hover { transform: translateY(-4px); border-color: rgba(196,90,60,0.4); }
.sponsor-card-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.sponsor-card-art img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-card-stat {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-8);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(122,90,248,0.22) 0%, transparent 60%),
    var(--deep);
  border-bottom: 1px solid var(--rule);
}
.sponsor-card-stat .stat-row { display: flex; flex-direction: column; gap: 4px; }
.sponsor-card-stat .stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.sponsor-card-stat .stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sponsor-card-stat .strike {
  color: var(--soft);
  text-decoration: line-through;
  text-decoration-color: var(--terra-ink);
  text-decoration-thickness: 3px;
}
.sponsor-card-stat .stat-foot {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream-2);
}
.sponsor-card-body {
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}
.sponsor-card-body .label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-light);
}
.sponsor-card-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; }
.sponsor-card-body p { font-size: 0.98rem; line-height: 1.6; color: rgba(245,243,239,0.78); }
.sponsor-card-body .sponsor-actions { margin-top: auto; padding-top: var(--s-2); }

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

/* Hero stat labels run longer than the FoF ones */
.hero-stat .label { max-width: 22ch; line-height: 1.5; }

/* Hero headline: mixed-case Space Grotesk runs wider than Archivo caps */
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.02; }
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
}

/* =========================================================
   NEWSLETTER PAGE (/newsletter/, /issues/)
   ========================================================= */
.nl-hero-form { max-width: 560px; }
.nl-hero-row { display: flex; gap: var(--s-3); }
.nl-hero-row input[type="email"] { flex: 1; min-width: 0; }
.nl-desk { aspect-ratio: 4 / 5; }
.nl-desk img { width: 100%; height: 100%; object-fit: cover; }
.nl-desk .ep-num { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.nl-inside-grid { grid-template-columns: repeat(3, 1fr); }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245,243,239,0.78);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(196,90,60,0.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8785C' stroke-width='3.2'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 10px no-repeat;
  border: 1px solid rgba(196,90,60,0.35);
}

.nl-brief { text-align: center; }
.nl-brief .eyebrow { justify-content: center; }
.nl-brief-lead {
  margin-top: var(--s-6);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.nl-brief-lead .serif { color: var(--terra-light); }
.nl-brief-body {
  margin: var(--s-8) auto 0;
  max-width: 58ch;
  color: rgba(245,243,239,0.7);
  font-size: 1.05rem;
}

.nl-vault { background: var(--deep); border-block: 1px solid var(--rule); }
.rung-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  counter-reset: rung;
}
.rung {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.rung::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--grad-ring);
  opacity: 0.35;
}
.rung:nth-child(2)::before { opacity: 0.55; }
.rung:nth-child(3)::before { opacity: 0.8; }
.rung:nth-child(4)::before { opacity: 1; }
.rung-count {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.rung-count span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terra-light);
  margin-right: 4px;
  vertical-align: -4px;
}
.rung h3 { font-size: 1.2rem; line-height: 1.2; }
.rung p { font-size: 0.92rem; line-height: 1.55; color: rgba(245,243,239,0.7); }

.guest-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.guest-strip figure { margin: 0; }
.guest-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
}
.guest-strip figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.mosaic { columns: 5 180px; column-gap: var(--s-4); }
.mosaic img {
  width: 100%;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  break-inside: avoid;
  filter: saturate(0.9);
  transition: filter 0.3s ease;
}
.mosaic img:hover { filter: saturate(1.1); }

.inline-link { color: var(--terra-light); border-bottom: 1px solid rgba(232,120,92,0.4); }
.inline-link:hover { color: var(--cream); border-color: var(--cream); }

/* Issue archive */
.issue-list { display: flex; flex-direction: column; gap: var(--s-4); }
.issue {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--rule);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.issue:hover { border-color: rgba(196,90,60,0.45); transform: translateY(-2px); }
.issue-date { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra-light); }
.issue h3 { font-size: 1.25rem; line-height: 1.25; }
.issue p { margin-top: 6px; font-size: 0.94rem; color: rgba(245,243,239,0.7); }
.issue-arrow { color: var(--soft); }
.issue-empty {
  padding: var(--s-10) var(--s-8);
  border-radius: var(--r-xl);
  border: 1px dashed var(--rule);
  text-align: center;
  color: rgba(245,243,239,0.75);
}
.issue-empty h3 { margin-bottom: var(--s-3); }

/* Legal pages */
.legal-page { padding-top: var(--s-12); }
.legal-page h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: var(--s-4) 0 var(--s-8); }
.legal-page h2 { font-size: 1.35rem; margin: var(--s-10) 0 var(--s-3); }
.legal-page p, .legal-page li { color: rgba(245,243,239,0.8); font-size: 1rem; line-height: 1.7; margin-bottom: var(--s-4); }
.legal-page ul { list-style: disc; padding-left: 1.4em; }
.legal-page a { color: var(--terra-light); }

@media (max-width: 1080px) {
  .nl-inside-grid, .rung-grid { grid-template-columns: repeat(2, 1fr); }
  .guest-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nl-hero-row { flex-direction: column; }
  .nl-inside-grid, .rung-grid { grid-template-columns: 1fr; }
  .mosaic { columns: 2; }
  .issue { grid-template-columns: 1fr; gap: var(--s-2); }
  .issue-arrow { display: none; }
}

/* Guest page headline sits in a 760px column */
.guest-page h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }

/* Newsroom pill: wrap between chips, never inside one */
.hero-newsroom { flex-wrap: wrap; row-gap: 6px; }
.hero-newsroom > span { white-space: nowrap; }
