/* =========================================================
   FUNDS ON FIRE — fundsonfire.com
   Premium podcast site styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Brand ink */
  --midnight:   #0E1828;
  --midnight-2: #16243A;
  --midnight-3: #1E3050;
  --ink:        #0A101C;

  /* Flame */
  --ember:  #F26B1F;
  --blaze:  #E84A1F;
  --solar:  #FFA94A;
  --rust:   #B53A14;

  /* Capital */
  --capital:        #2B5FB8;
  --capital-deep:   #173E84;
  --capital-bright: #4B86E8;

  /* Bone (warm white) */
  --bone:   #F5EFE2;
  --bone-2: #ECE3D0;
  --paper:  #FAF6EC;

  /* Functional */
  --bull: #2EA866;
  --bear: #D6364B;
  --warn: #F2B91F;
  --muted:   #6B7A93;
  --muted-2: #8A99B2;

  /* Gradients */
  --grad-flame:    linear-gradient(180deg, #FFB766 0%, #F26B1F 45%, #E84A1F 100%);
  --grad-flame-h:  linear-gradient(90deg,  #FFB766 0%, #F26B1F 45%, #E84A1F 100%);
  --grad-fire-blue:linear-gradient(135deg, #F26B1F 0%, #E84A1F 50%, #2B5FB8 100%);

  /* Typography */
  --f-display:  'Archivo Black', 'Archivo', system-ui, sans-serif;
  --f-headline: 'Archivo', system-ui, sans-serif;
  --f-text:     'Inter', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;

  /* 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-flame: 0 8px 32px rgba(242, 107, 31, 0.32);
  --sh-blue:  0 8px 32px rgba(43, 95, 184, 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(--bone);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
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(--ember); color: var(--ink); }

/* 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: 0.95;
  margin: 0;
  text-transform: uppercase;
}
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(--ember);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ember);
  display: inline-block;
}

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

.text-ember { color: var(--ember); }
.text-capital { color: var(--capital-bright); }
.text-bone { color: var(--bone); }
.text-muted { color: var(--muted-2); }

.fire-grad-text {
  background: var(--grad-flame-h);
  -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(--midnight-3); }
.divider-flame { height: 2px; background: linear-gradient(90deg, var(--ember), transparent); }

/* Grid background — subtle blue grid */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 95, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 95, 184, 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 */
.flame-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(242,107,31,0.18) 0%, rgba(242,107,31,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(--ember);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(242,107,31,0.35);
}
.btn-primary:hover { background: var(--solar); box-shadow: var(--sh-flame); }

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

.btn-fill {
  background: var(--bone);
  color: var(--ink);
}
.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(--ember);
  padding: 8px 0;
  border-bottom: 1px solid rgba(242,107,31,0.4);
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.btn-arrow:hover { color: var(--solar); border-color: var(--solar); 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(242, 107, 31, 0.12);
  color: var(--ember);
  border: 1px solid rgba(242, 107, 31, 0.32);
}
.tag.blue {
  background: rgba(43,95,184,0.12);
  color: var(--capital-bright);
  border-color: rgba(43,95,184,0.40);
}
.tag.bone {
  background: rgba(245,239,226,0.06);
  color: var(--bone);
  border-color: rgba(245,239,226,0.20);
}
.tag.solid {
  background: var(--ember);
  color: var(--ink);
  border-color: var(--ember);
}

.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(--ember);
}
.live-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blaze);
  box-shadow: 0 0 12px var(--blaze);
  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(10, 16, 28, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(43, 95, 184, 0.10);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 16, 28, 0.92);
  border-bottom-color: rgba(43, 95, 184, 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;
  text-transform: uppercase;
}
.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(--muted-2);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--bone); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ember);
  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,239,226,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(--midnight-3);
}
.hero .flame-glow {
  top: -200px; right: -200px;
}
.hero .flame-glow.glow-2 {
  top: auto; right: auto;
  bottom: -300px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(43,95,184,0.18) 0%, rgba(43,95,184,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, 24, 40, 0.6);
  border: 1px solid var(--midnight-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-newsroom .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); 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-flame-h);
  -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(--muted-2);
}
.hero-meta strong { color: var(--bone); font-weight: 600; }
.hero-meta .dot { width: 4px; height: 4px; background: var(--muted); 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, 239, 226, 0.04);
  border: 1px solid rgba(245, 239, 226, 0.10);
  transition: all 0.25s ease;
  color: var(--bone);
}
.listen-on:hover {
  background: rgba(245, 239, 226, 0.08);
  border-color: rgba(245, 239, 226, 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(--muted-2);
}
.listen-on-text strong {
  font-family: var(--f-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bone);
}

/* Hero right side — cover + meta */
.hero-cover-card {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--midnight-2);
  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(10,16,28,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,239,226,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(--muted-2);
}
.hero-cover-stamp .ep-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--bone);
}
.hero-cover-stamp .episode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--ember);
  color: var(--ink);
  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(--midnight-3);
  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(--bone);
  letter-spacing: -0.02em;
}
.hero-stat .num .accent { color: var(--ember); }
.hero-stat .label {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* =========================================================
   TICKER (between sections)
   ========================================================= */
.ticker {
  border-top: 2px solid var(--ember);
  border-bottom: 1px solid var(--midnight-3);
  background: var(--ink);
  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(--bone);
  animation: tick 70s linear infinite;
}
.ticker-track .tag-mono { color: var(--ember); font-weight: 700; }
.ticker-track .up { color: var(--bull); }
.ticker-track .dn { color: var(--bear); }
.ticker-track .sep { color: var(--midnight-3); }
@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(242,107,31,0.10) 0%, transparent 60%),
    var(--midnight);
}
.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(--midnight-2), var(--midnight));
  border: 1px solid var(--midnight-3);
  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(--muted-2);
}
.latest-meta .dot { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; display: inline-block; align-self: center; }
.latest-summary { color: rgba(245,239,226,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(--ink);
  border: 1px solid var(--midnight-3);
  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(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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(242, 107, 31, 0.4);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(242,107,31,0.15);
}

.episode-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.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(10,16,28,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(10,16,28,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245,239,226,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(--bone);
}

.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(--muted-2);
}
.episode-meta .ep-num { color: var(--ember); 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(--bone);
  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,239,226,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(--midnight-3);
  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(--ember);
  color: var(--ink);
  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(--solar); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(242,107,31,0.4); }
.play-btn .play-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ember);
}
.play-btn .play-icon svg { width: 9px; height: 9px; fill: currentColor; }
.play-btn.is-playing { background: var(--bone); color: var(--ink); }
.play-btn.is-playing .play-icon { background: var(--ember); color: var(--ink); }

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

.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, 24, 40, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(43, 95, 184, 0.3);
  border-radius: var(--r-full);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(242,107,31,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(--ink);
}
.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(--bone);
  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(--muted-2);
}
.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,239,226,0.06);
  color: var(--bone);
  transition: background 0.25s ease;
}
.mini-player-btn:hover { background: rgba(245,239,226,0.15); }
.mini-player-btn.primary {
  background: var(--ember);
  color: var(--ink);
}
.mini-player-btn.primary:hover { background: var(--solar); }
.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,239,226,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.mini-player-progress-bar {
  height: 100%;
  background: var(--grad-flame-h);
  width: 0%;
  transition: width 0.2s linear;
}

/* =========================================================
   PILLARS — what the show is about
   ========================================================= */
.pillars {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--ink) 50%, var(--midnight) 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(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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(242, 107, 31, 0.35);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ember);
  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(--ember);
}
.pillar-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(242, 107, 31, 0.10);
  border: 1px solid rgba(242, 107, 31, 0.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--ember);
  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;
  text-transform: uppercase;
  line-height: 1;
}
.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245,239,226,0.7);
}
.pillar-meta {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--midnight-3);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.pillar-meta strong { color: var(--bone); }

/* =========================================================
   HOST — about Devin
   ========================================================= */
.host {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}
.host .flame-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(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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(--midnight-3);
  border: 2px solid var(--ember);
  padding: 6px;
  position: relative;
}
.host-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
}
.host-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(242,107,31,0.4);
  pointer-events: none;
}
.host-card h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1;
}
.host-card .role {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
.host-companies {
  display: flex; flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: var(--s-4);
  border-top: 1px solid var(--midnight-3);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(245,239,226,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(--ember);
  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,239,226,0.85); }
.host-bio p strong { color: var(--bone); 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,239,226,0.03);
  border: 1px solid rgba(245,239,226,0.08);
}
.host-stat .num { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--ember); }
.host-stat .lbl { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }

/* =========================================================
   SPONSOR — Fund Flow OS strip
   ========================================================= */
.sponsor {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--capital-deep) 100%);
  border-block: 1px solid var(--midnight-3);
}
.sponsor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(242,107,31,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(--solar);
  margin-bottom: var(--s-5);
}
.sponsor-tag::before {
  content: '';
  width: 28px; height: 1px; background: var(--solar);
}
.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,239,226,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,24,40,0.7) 0%, rgba(10,16,28,0.7) 100%);
  border: 1px solid rgba(245,239,226,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(--muted-2);
}
.sponsor-code {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.08em;
  background: var(--grad-flame-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.9;
}
.sponsor-code-promo {
  font-family: var(--f-headline);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bone);
  line-height: 1.4;
}
.sponsor-code-promo .highlight { color: var(--ember); }
.sponsor-code-detail {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  position: relative;
  background: var(--midnight);
}
.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(242,107,31,0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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,239,226,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(10,16,28,0.7);
  border: 1px solid var(--midnight-3);
  color: var(--bone);
  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(--ember);
  background: rgba(10,16,28,0.9);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 4px;
}

/* =========================================================
   GUEST CTA strip
   ========================================================= */
.guest-cta {
  position: relative;
  background: var(--ink);
  border-block: 1px solid var(--midnight-3);
}
.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,239,226,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(--ink);
  padding-top: var(--s-20);
  padding-bottom: var(--s-8);
  border-top: 2px solid var(--ember);
}
.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,239,226,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(--ember);
  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,239,226,0.7);
  transition: color 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--bone); }
.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,239,226,0.04);
  border: 1px solid rgba(245,239,226,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,239,226,0.7);
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid var(--midnight-3);
  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(--muted-2);
  flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: var(--s-5); }
.footer-bottom a:hover { color: var(--bone); }

/* =========================================================
   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(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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(--muted-2);
  font-weight: 600;
}
.guest-form input,
.guest-form textarea,
.guest-form select {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(10,16,28,0.7);
  border: 1px solid var(--midnight-3);
  color: var(--bone);
  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(--ember);
  background: rgba(10,16,28,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(--muted-2);
  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,239,226,0.03);
  border: 1px solid var(--midnight-3);
  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(--ember);
}
.guest-feature .lbl {
  font-family: var(--f-headline);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bone);
}
.guest-feature p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245,239,226,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(--midnight-3);
  position: relative;
  overflow: hidden;
}
.blog-hero .flame-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(--midnight-2) 0%, var(--midnight) 100%);
  border: 1px solid var(--midnight-3);
  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(242, 107, 31, 0.4);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(242,107,31,0.15);
}
.post-card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.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(10,16,28,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(--muted-2);
}
.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(--bone);
  text-transform: none;
}
.post-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(245,239,226,0.7);
}
.post-card-foot {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--midnight-3);
  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(--muted-2);
}
.post-card-foot strong { color: var(--ember); }

/* --- 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(--midnight-3);
  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(--muted-2);
}
.article-meta > span:not(.cat):not(.dot) {
  color: var(--muted-2);
}
.article-meta .dot {
  width: 3px; height: 3px;
  background: var(--muted-2);
  border-radius: 50%;
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
}
.article-meta .cat {
  color: var(--ember);
  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(--bone);
  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,239,226,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(--midnight-3);
}
.article-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--midnight-3);
  border: 1px solid var(--ember);
}
.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(--bone); }
.article-author-role {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* 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(--ink);
  border-block: 1px solid var(--midnight-3);
  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,24,40,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(10,16,28,0.85));
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  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(--midnight-3);
  background: var(--ink);
}
.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(--muted-2);
  background: rgba(10,16,28,0.6);
  border-top: 1px solid var(--midnight-3);
}

/* Pull-quote — magazine-style emphasis block */
.article-body .pullquote {
  margin: 2.6em 0;
  padding: 1.4em 0;
  border-block: 1px solid var(--midnight-3);
  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(--bone);
  text-align: center;
}
.article-body .pullquote::before {
  content: '"';
  display: block;
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: 0.7;
  color: var(--ember);
  margin-bottom: 0.2em;
}

/* 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(--midnight-2), var(--midnight));
  border: 1px solid var(--midnight-3);
  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: 0.95;
  background: var(--grad-flame-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.article-body .stat-callout .lbl {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  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(43,95,184,0.12), transparent 60%),
    linear-gradient(180deg, var(--midnight-2), var(--midnight));
  border: 1px solid var(--midnight-3);
  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(--ember);
  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(--bone);
  text-transform: none;
}
.article-body .listen-card p { margin: 0; color: rgba(245,239,226,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,239,226,0.04);
  border: 1px solid rgba(245,239,226,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(--bone);
}
.article-body .listen-card .listen-on:hover {
  background: rgba(245,239,226,0.08);
  border-color: rgba(245,239,226,0.22);
  transform: translateY(-1px);
  border-bottom-color: rgba(245,239,226,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,239,226,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(--bone); font-weight: 600; }
.article-body em { font-style: italic; color: var(--bone); }
.article-body a {
  color: var(--ember);
  border-bottom: 1px solid rgba(242,107,31,0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.article-body a:hover { color: var(--solar); border-color: var(--solar); }

/* 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(--bone);
  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(--bone);
  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(--ember); }

.article-body blockquote {
  margin: 1.8em 0;
  padding: 1.4em 1.6em;
  border-left: 3px solid var(--ember);
  background: rgba(242,107,31,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--bone);
}
.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(--muted-2);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.96rem;
  border: 1px solid var(--midnight-3);
  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(--midnight-3);
}
.article-body th {
  background: rgba(43,95,184,0.08);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}
.article-body tr:last-child td { border-bottom: 0; }
.article-body tr:hover td { background: rgba(245,239,226,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(242,107,31,0.08), rgba(242,107,31,0.02));
  border: 1px solid rgba(242,107,31,0.25);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--bone);
}
.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(--ember);
  margin-bottom: 0.6em;
}
.article-body .answer-capsule {
  padding: 1.2em 1.4em;
  margin: 0.6em 0 1.6em 0;
  background: rgba(43,95,184,0.07);
  border-left: 3px solid var(--capital-bright);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 500;
  color: var(--bone);
}

/* 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(242,107,31,0.18), transparent 60%),
    linear-gradient(180deg, var(--midnight-2), var(--midnight));
  border: 1px solid var(--midnight-3);
  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(--ember);
  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(--bone);
}
.article-cta p { margin: 0; color: rgba(245,239,226,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(--ink);
  border: 1px solid var(--midnight-3);
}
.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(--midnight-3);
}
.article-faq h2 { margin-top: 0; }
.article-faq details {
  border: 1px solid var(--midnight-3);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  background: rgba(245,239,226,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(--bone);
  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(--ember);
  transition: transform 0.25s ease;
}
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details[open] summary { background: rgba(242,107,31,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,239,226,0.85);
}

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

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

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

@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; }
}

