/* ============================================
   ONE DIGIVERSE — Design System
   Where Crypto, Blockchain, Finance, and AI converge.
   ============================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --- Tokens --- */
:root {
  /* Brand palette — pulled from logo */
  --space-deep: #03081A;       /* deep space behind the globe */
  --space-mid:  #08122A;        /* mid navy */
  --space-soft: #0F1D40;        /* card surface */
  --space-line: #1A2C55;        /* hairlines / borders */

  --cyan:       #38E1FF;        /* primary glow */
  --cyan-soft:  #6FF0FF;
  --cyan-deep:  #1AA8C8;

  --gold:       #E8A767;        /* circuit-trace gold */
  --gold-soft:  #F2C892;

  --cream:      #F5EFE0;        /* banner cream from logo */
  --paper:      #ECF1FA;
  --ink:        #0A1530;

  /* Section accents (per-vertical identity) */
  --accent-ai:        #38E1FF;  /* AI Tech — electric cyan */
  --accent-finance:   #E8A767;  /* AI in Finance — gold */
  --accent-chain:     #8C7CF0;  /* Blockchain — violet */
  --accent-crypto:    #4ADE80;  /* Crypto — green */

  /* Type — DM Serif Display is the universal headline font.
     It only ships at weight 400, which is heavy by default. Any selector
     that previously used 700/800 weight against this variable needs
     to be set to 400 explicitly. */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Newsreader', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --gutter: clamp(1rem, 2.5vw, 2rem);
  --container: 1280px;

  /* Effects */
  --glow-cyan: 0 0 20px rgba(56,225,255,0.35), 0 0 60px rgba(56,225,255,0.15);
  --glow-soft: 0 8px 40px rgba(0,0,0,0.4);
  --hairline: 1px solid var(--space-line);
}

body {
  font-family: var(--font-body);
  background: var(--space-deep);
  color: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cosmic backdrop — subtle starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56,225,255,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(140,124,240,0.06), transparent 50%),
    radial-gradient(circle at 15% 30%, white 0.5px, transparent 0.5px),
    radial-gradient(circle at 70% 60%, white 0.5px, transparent 0.5px),
    radial-gradient(circle at 40% 80%, white 0.3px, transparent 0.3px),
    radial-gradient(circle at 90% 20%, white 0.4px, transparent 0.4px);
  background-size: auto, auto, 600px 600px, 800px 800px, 500px 500px, 700px 700px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

main, .page-wrap { position: relative; z-index: 1; }

/* ============================================
   TICKER BAR (top of every page)
   ============================================ */
.ticker {
  background: #000714;
  border-bottom: var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 60;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.6rem 0;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-item { display: inline-flex; gap: 0.5rem; align-items: center; }
.ticker-item .sym { color: var(--cyan); font-weight: 700; letter-spacing: 0.05em; }
.ticker-item .price { color: var(--paper); }
.ticker-item .delta-up { color: #4ADE80; }
.ticker-item .delta-down { color: #F87171; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 33px; /* leaves room for the sticky ticker above */
  z-index: 50;
  background: rgba(3, 8, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--hairline);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(56,225,255,0.55))
          drop-shadow(0 0 4px rgba(56,225,255,0.4));
  transition: filter 0.3s, transform 0.3s;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 24px rgba(56,225,255,0.7))
          drop-shadow(0 0 8px rgba(56,225,255,0.5));
  transform: rotate(8deg);
}
.brand-name {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name .one { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  list-style: none;
  white-space: nowrap;
  overflow: visible;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--paper);
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--cyan);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: var(--hairline);
  border-radius: 50%;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.icon-btn svg { width: 16px; height: 16px; }

.subscribe-btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  background: var(--cyan);
  color: var(--space-deep);
  border-radius: 999px;
  transition: all 0.2s;
}
.subscribe-btn:hover {
  background: var(--cyan-soft);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.menu-toggle { display: none; }

/* ============================================
   MASTHEAD (date + tagline strip)
   ============================================ */
.masthead {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.6);
}
.masthead .tagline { color: var(--cyan); }

/* ============================================
   CONTAINER & GRID
   ============================================ */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.hero-feature {
  position: relative;
  border: var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(56,225,255,0.08), transparent 50%),
    var(--space-mid);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.hero-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,225,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,225,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: -1;
}
.hero-feature::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(56,225,255,0.25), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.hero-feature h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero-feature p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(245,239,224,0.75);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}
.byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.5);
}
.byline .author { color: var(--gold); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-card {
  padding: 1.25rem;
  border: var(--hairline);
  background: var(--space-mid);
  border-radius: 4px;
  transition: all 0.25s;
  flex: 1;
}
.side-card:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
  background: var(--space-soft);
}
.side-card .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  display: block;
}
.side-card[data-section="finance"] .kicker { color: var(--accent-finance); }
.side-card[data-section="chain"] .kicker { color: var(--accent-chain); }
.side-card[data-section="crypto"] .kicker { color: var(--accent-crypto); }
.side-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.side-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.5);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--space-line);
  margin-top: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-head h2::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.section-head[data-accent="finance"] h2::before { background: var(--accent-finance); box-shadow: 0 0 12px var(--accent-finance); }
.section-head[data-accent="chain"] h2::before { background: var(--accent-chain); box-shadow: 0 0 12px var(--accent-chain); }
.section-head[data-accent="crypto"] h2::before { background: var(--accent-crypto); box-shadow: 0 0 12px var(--accent-crypto); }
.section-head .more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: transform 0.2s;
}
.section-head .more:hover { transform: translateX(4px); }

/* ============================================
   ARTICLE GRID & CARDS
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.story {
  border: var(--hairline);
  background: var(--space-mid);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.story::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--cyan);
  transition: width 0.4s;
}
.story:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  background: var(--space-soft);
}
.story:hover::after { width: 100%; }
.story[data-section="finance"]:hover { border-color: var(--accent-finance); }
.story[data-section="finance"]::after { background: var(--accent-finance); }
.story[data-section="chain"]:hover { border-color: var(--accent-chain); }
.story[data-section="chain"]::after { background: var(--accent-chain); }
.story[data-section="crypto"]:hover { border-color: var(--accent-crypto); }
.story[data-section="crypto"]::after { background: var(--accent-crypto); }

.story .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.story[data-section="finance"] .kicker { color: var(--accent-finance); }
.story[data-section="chain"] .kicker { color: var(--accent-chain); }
.story[data-section="crypto"] .kicker { color: var(--accent-crypto); }
.story h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}
.story p {
  font-size: 0.95rem;
  color: rgba(245,239,224,0.7);
  line-height: 1.6;
  flex: 1;
}
.story .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.5);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26,44,85,0.5);
}
.story .meta .author { color: var(--gold); }

/* Convergence tag — for stories spanning multiple verticals */
.convergence-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--space-deep);
  background: linear-gradient(90deg, var(--cyan), var(--accent-chain));
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

/* ============================================
   SECTION HUB CARDS (homepage)
   ============================================ */
.verticals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.vertical {
  position: relative;
  padding: 2rem 1.5rem;
  border: var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  background: var(--space-mid);
  isolation: isolate;
}
.vertical::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.vertical:hover { transform: translateY(-4px); border-color: var(--accent); }
.vertical:hover::before { opacity: 0.08; }
.vertical .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.vertical h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.vertical p {
  font-size: 0.9rem;
  color: rgba(245,239,224,0.65);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.vertical .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform 0.2s;
  display: inline-block;
}
.vertical:hover .arrow { transform: translateX(6px); }

/* ============================================
   SECTION-PAGE HERO (used on each vertical page)
   ============================================ */
.section-hero {
  padding: 4rem 0 3rem;
  position: relative;
  border-bottom: var(--hairline);
}
.section-hero .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-hero .label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-hero h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;        /* DM Serif Display is heavy by default */
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-hero h1 .accent { color: var(--accent); }
.section-hero .lede {
  font-size: 1.25rem;
  color: rgba(245,239,224,0.75);
  max-width: 60ch;
  line-height: 1.55;
}

/* ============================================
   CRYPTO PRICE TABLE (crypto page)
   ============================================ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  margin: 2rem 0;
}
.price-table th, .price-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: var(--hairline);
}
.price-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.5);
  font-weight: 500;
}
.price-table td { font-size: 0.95rem; }
.price-table tr:hover td { background: var(--space-mid); }
.price-table .coin {
  display: flex; align-items: center; gap: 0.75rem;
}
.price-table .coin-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--space-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-crypto);
  border: 1px solid var(--space-line);
}
.price-table .coin-name { font-weight: 500; }
.price-table .coin-symbol { color: rgba(245,239,224,0.5); font-family: var(--font-mono); font-size: 12px; }
.price-table .price { font-family: var(--font-mono); font-weight: 600; }
.price-table .delta-up { color: #4ADE80; }
.price-table .delta-down { color: #F87171; }
.price-table .spark { width: 80px; height: 28px; }

/* ============================================
   AI TOOLS DIRECTORY (AI Tech page)
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 4rem;
}
.tool {
  padding: 1.25rem;
  border: var(--hairline);
  border-radius: 4px;
  background: var(--space-mid);
  transition: all 0.25s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.tool:hover {
  border-color: var(--cyan);
  background: var(--space-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.tool .name { transition: color 0.2s; }
.tool:hover .name { color: var(--cyan); }
.tool .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.tool .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
}
.tool .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}
.tool .badge.new { background: var(--cyan); color: var(--space-deep); }
.tool .badge.upcoming { background: var(--gold); color: var(--space-deep); }
.tool .badge.beta { border: 1px solid rgba(245,239,224,0.3); color: rgba(245,239,224,0.7); }
.tool .desc {
  font-size: 0.85rem;
  color: rgba(245,239,224,0.65);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.tool .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.4);
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter {
  position: relative;
  margin: 4rem 0 2rem;
  padding: 3rem var(--gutter);
  border: var(--hairline);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at top right, rgba(56,225,255,0.15), transparent 60%),
    var(--space-mid);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,225,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,225,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}
.newsletter .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.newsletter p {
  color: rgba(245,239,224,0.7);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}
.newsletter form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 0.5rem;
}
.newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--space-deep);
  border: var(--hairline);
  border-radius: 4px;
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.newsletter input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.newsletter button {
  padding: 0.75rem 1.5rem;
  background: var(--cyan);
  color: var(--space-deep);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.newsletter button:hover { background: var(--cyan-soft); transform: translateY(-1px); }

/* ===== Two-box newsletter grid layout ===== */
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 4rem 0 2rem;
  align-items: stretch;
}
.newsletter-grid .newsletter {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.newsletter-form-box {
  justify-content: center;
}
.newsletter-benefits-box {
  text-align: left;
  background:
    radial-gradient(ellipse at top left, rgba(232,167,103,0.12), transparent 60%),
    var(--space-mid) !important;
}
.newsletter-benefits-box .kicker {
  color: var(--gold);
  text-align: center;
}
.newsletter-benefits-box h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}
.newsletter-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}
.newsletter-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}
.newsletter-benefits-list .benefit-icon {
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: 0.1em;
}
.newsletter-benefits-list li > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.newsletter-benefits-list strong {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.3;
}
.newsletter-benefits-list span {
  color: rgba(245,239,224,0.65);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Mobile: stack the two boxes */
@media (max-width: 900px) {
  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .newsletter-benefits-box {
    text-align: left;
  }
}

/* Beehiiv embed centering — Beehiiv's loader.js injects its form element
   in a way that ignores text-align and resists `margin: auto` overrides.
   Switching the wrapper itself to flex-column with centered cross-axis
   alignment forces every direct child (including whatever Beehiiv injects)
   to center. Keeping max-width on text blocks preserves their wrapping. */
.newsletter,
.atd-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter > .kicker,
.newsletter > h2,
.newsletter > p,
.atd-newsletter > h3,
.atd-newsletter > p {
  max-width: 60ch;
  width: 100%;
}
/* Force any non-text child (iframes, divs Beehiiv injects) to center, with a
   sensible max width so it doesn't span the full wrapper edge to edge. */
.newsletter > *:not(.kicker):not(h2):not(p):not(script),
.atd-newsletter > *:not(.kicker):not(h2):not(h3):not(p):not(script) {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 480px;
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: var(--hairline);
  background: var(--space-mid);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245,239,224,0.6);
  max-width: 36ch;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(245,239,224,0.7);
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--cyan); }
.footer-base {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.5);
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* === Mobile nav: pill bar replaces hamburger === */
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
  }
  .nav .brand        { order: 1; flex: 0 0 auto; }
  .nav-actions       { order: 2; flex: 0 0 auto; }
  .nav-links         { order: 3; flex: 1 0 100%; }
  .menu-toggle       { display: none !important; }

  /* Horizontal-scrolling pill bar */
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 0.5rem;
    padding: 0.5rem 0 0.25rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Right-edge fade signals more content off-screen */
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links li { flex: 0 0 auto; list-style: none; }

  .nav-links a {
    display: inline-block;
    padding: 0.45rem 0.85rem !important;
    border: 1px solid rgba(56, 225, 255, 0.32) !important;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    background: rgba(56, 225, 255, 0.05);
    color: var(--paper);
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a:hover {
    border-color: var(--cyan) !important;
    background: rgba(56, 225, 255, 0.14);
    color: var(--cyan);
  }
  .nav-links a[aria-current="page"] {
    background: var(--cyan);
    color: var(--space-deep) !important;
    border-color: var(--cyan) !important;
  }

  .nav-actions .subscribe-btn { display: none; }
  .masthead { font-size: 10px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 0.75rem; text-align: center; }
  .price-table { font-size: 0.85rem; }
  .price-table .spark, .price-table .market-cap { display: none; }
}

/* ============================================
   LIVE DATA UI — skeletons, indicators, search
   ============================================ */

/* Live indicator dot */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.live-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Skeleton loader */
.skeleton {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}
.skeleton-line {
  display: block;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 3px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Feed error state */
.feed-error {
  border: var(--hairline);
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.05);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-ui);
  color: rgba(245, 239, 224, 0.8);
}
.feed-error p { margin-bottom: 1rem; }
.refresh-btn {
  padding: 0.5rem 1.25rem;
  background: var(--cyan);
  color: var(--space-deep);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.refresh-btn:hover { background: var(--cyan-soft); transform: translateY(-1px); }

/* ============================================
   PHASE 3 — IMAGE-AWARE CARDS + MAGAZINE GRID
   ============================================ */

/* Card image — sits at top of any card, 16:9 aspect.
   Branded placeholder shows when image is loading or unavailable. */
.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at top left, rgba(56,225,255,0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(232,167,103,0.12), transparent 60%),
    linear-gradient(135deg, #0E1530, var(--space-deep));
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
.card-image::before {
  /* Branded fallback — shows the logo subtly at the center as a watermark.
     This stays visible whether or not an image loads, just dimmer when one loads. */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/favicon-256x256.png?v=20260512d');
  background-size: 56px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 0;
}
.card-image::after {
  /* Subtle "ONE DIGIVERSE" marking under the logo for the no-image case */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 60%, rgba(56,225,255,0.06) 100%);
  pointer-events: none;
  z-index: 0;
}
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}
.card-image img.loaded {
  opacity: 1;
}
/* When real image loads, fade the watermark out so it's not double-displayed */
.card-image.has-image::before,
.card-image.has-image::after {
  opacity: 0;
}

/* Image-variant story card: image on top, content below */
.story.with-image {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0; /* let flexbox children shrink properly */
}
.story.with-image .card-image {
  border-radius: 4px 4px 0 0;
}
.story.with-image .card-content {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

/* Image-variant side card: small thumbnail next to text.
   FIX: enforce strict thumb width, give content min-width:0 so it can shrink,
   and make sure card has enough vertical space for both. */
.side-card.with-image {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  min-height: 96px;
}
.side-card.with-image .card-image {
  aspect-ratio: auto;
  width: 96px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.side-card.with-image .card-image::before {
  background-size: 36px; /* smaller logo for thumb */
}
.side-card.with-image .card-content {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.side-card.with-image h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-card.with-image .kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
}


/* Hero feature with optional background image */
.hero-feature.with-image {
  position: relative;
  overflow: hidden;
}
.hero-feature .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-feature .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.hero-feature .hero-bg img.loaded { opacity: 0.95; }
/* Hero with image gets a targeted gradient that only darkens the bottom
   portion (where text sits), so the image itself reads clearly */
.hero-feature.with-image::before {
  /* Bottom-up dark gradient so headline + lede remain readable */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(3, 8, 26, 0.95) 0%,
    rgba(3, 8, 26, 0.82) 25%,
    rgba(3, 8, 26, 0.5) 50%,
    rgba(3, 8, 26, 0.15) 80%,
    rgba(3, 8, 26, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-feature.with-image::after {
  /* Subtle vignette around edges to focus attention */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    transparent 0%,
    transparent 50%,
    rgba(3, 8, 26, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-feature.with-image > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   MAGAZINE GRID — mixed sizes for editorial hierarchy
   ============================================ */
/* The .stories container becomes a magazine grid when it has
   data-layout="magazine" attribute. Falls back to story-grid otherwise. */
.stories[data-layout="magazine"] {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}
/* Magazine grid layout — 8 articles, 3 rows, perfectly even.
   Row 1: Lead (7 cols) + Secondary (5 cols)
   Row 2: Medium (6 cols) + Medium (6 cols)
   Row 3: Compact (3 cols) × 4 */
.stories[data-layout="magazine"] {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}
/* Lead — biggest image, biggest headline */
.stories[data-layout="magazine"] .story:nth-child(1) {
  grid-column: span 7;
}
/* Secondary — medium card next to lead */
.stories[data-layout="magazine"] .story:nth-child(2) {
  grid-column: span 5;
}
/* Two medium cards in row 2 */
.stories[data-layout="magazine"] .story:nth-child(3),
.stories[data-layout="magazine"] .story:nth-child(4) {
  grid-column: span 6;
}
/* Four compact cards in row 3 */
.stories[data-layout="magazine"] .story:nth-child(5),
.stories[data-layout="magazine"] .story:nth-child(6),
.stories[data-layout="magazine"] .story:nth-child(7),
.stories[data-layout="magazine"] .story:nth-child(8) {
  grid-column: span 3;
}
/* Anything beyond 8 (just in case) — spans 3 cols too */
.stories[data-layout="magazine"] .story:nth-child(n+9) {
  grid-column: span 3;
}

/* Type sizing: lead and secondary get bigger headlines */
.stories[data-layout="magazine"] .story:nth-child(1) h3 {
  font-size: 1.75rem;
}
.stories[data-layout="magazine"] .story:nth-child(2) h3 {
  font-size: 1.35rem;
}
.stories[data-layout="magazine"] .story:nth-child(3) h3,
.stories[data-layout="magazine"] .story:nth-child(4) h3 {
  font-size: 1.2rem;
}
.stories[data-layout="magazine"] .story:nth-child(n+5) h3 {
  font-size: 1rem;
}
.stories[data-layout="magazine"] .story:nth-child(n+5) p {
  font-size: 0.85rem;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image aspect ratios per card size — keeps the visual rhythm interesting */
.stories[data-layout="magazine"] .story:nth-child(1) .card-image {
  aspect-ratio: 16 / 9;
}
.stories[data-layout="magazine"] .story:nth-child(2) .card-image {
  aspect-ratio: 4 / 3;
}
.stories[data-layout="magazine"] .story:nth-child(n+5) .card-image {
  aspect-ratio: 16 / 10;
}

/* On narrower screens, magazine grid collapses to 2 columns */
@media (max-width: 1100px) {
  .stories[data-layout="magazine"] {
    grid-template-columns: repeat(6, 1fr);
  }
  .stories[data-layout="magazine"] .story:nth-child(1) {
    grid-column: span 6;
  }
  .stories[data-layout="magazine"] .story:nth-child(2),
  .stories[data-layout="magazine"] .story:nth-child(3),
  .stories[data-layout="magazine"] .story:nth-child(4) {
    grid-column: span 3;
  }
  .stories[data-layout="magazine"] .story:nth-child(n+5) {
    grid-column: span 3;
  }
}
@media (max-width: 700px) {
  .stories[data-layout="magazine"] {
    grid-template-columns: 1fr;
  }
  .stories[data-layout="magazine"] .story {
    grid-column: span 1 !important;
  }
}

/* ============================================
   EDITOR HERO — page-leading article from the editor
   ============================================ */
.editor-hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}
.editor-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(56,225,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(232,167,103,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.editor-hero-grid {
  position: relative;
  display: block;            /* photo absolute, content overlays */
  min-height: 720px;
}
.editor-hero-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
}
.editor-hero-kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
}
.editor-hero-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.editor-hero h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 400;        /* DM Serif Display is heavy by default */
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem 0;
  color: var(--paper);
}
.editor-hero-lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(236,241,250,0.78);
  margin: 0 0 1.5rem 0;
  max-width: 560px;
}
.editor-hero-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236,241,250,0.55);
  margin-bottom: 1.75rem;
}
.editor-hero-byline .name { color: var(--gold); }
.editor-hero-byline .sep { margin: 0 0.6em; opacity: 0.5; }
.editor-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,225,255,0.06);
  border: 1px solid rgba(56,225,255,0.45);
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.editor-hero-cta:hover {
  background: rgba(56,225,255,0.12);
  border-color: var(--cyan);
  transform: translateX(2px);
}
.editor-hero-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}
.editor-hero-cta:hover::after { transform: translateX(3px); }

/* Hero photo — wide span, soft left fade, overlaps with headline */
.editor-hero-portrait {
  position: absolute;
  top: -1rem;
  right: -3rem;
  bottom: -1rem;
  width: 70%;            /* wide enough to overlap headline */
  z-index: 1;
  pointer-events: none;
  /* Aggressive soft fade on the left edge — long gradient so figure dissolves into headline */
  -webkit-mask-image: linear-gradient(to left, #000 38%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 78%, transparent 95%);
          mask-image: linear-gradient(to left, #000 38%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 78%, transparent 95%);
}
.editor-hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fill container */
  object-position: center 50%;   /* face + body + laptop with brand globe — drops the floating UI panels at top */
}

/* Subtle dark-to-transparent layer above the photo's left fade so headline text stays readable */
.editor-hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3,8,26,0.55) 0%, rgba(3,8,26,0.2) 25%, transparent 50%);
  pointer-events: none;
}

/* RESPONSIVE — collapse to stacked layout on smaller screens */
@media (max-width: 960px) {
  .editor-hero { padding: 2rem 0 3rem; }
  .editor-hero-grid {
    min-height: auto;
  }
  .editor-hero-content {
    max-width: 100%;
    padding-top: 0;
  }
  .editor-hero-portrait {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    height: 320px;
    margin-bottom: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .editor-hero-portrait img { object-position: center 30%; }
  .editor-hero-portrait::after { display: none; }
  /* Stack: portrait first, then content */
  .editor-hero-grid { display: flex; flex-direction: column; }
}
@media (max-width: 600px) {
  .editor-hero h1 { font-size: 1.95rem; }
  .editor-hero-lede { font-size: 1rem; }
  .editor-hero-portrait { height: 280px; }
}

/* ============================================
   SYNAPSE — Original content section (Phase 2)
   ============================================ */
.synapse-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.synapse-section::before {
  /* Subtle dividers above and below to mark the section apart */
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(56,225,255,0.25) 20%, rgba(56,225,255,0.25) 80%, transparent);
}

/* ============================================
   SCHEDULED RELEASE GATING
   Inline <head> script sets data-release-state on <html>
   to either "pending" (before release) or "released" (at/after).
   These rules then show/hide the appropriate blocks BEFORE paint
   so there's no flash of wrong content.
   ============================================ */
[data-release-state="pending"] [data-show-after-release] { display: none !important; }
[data-release-state="released"] [data-show-before-release] { display: none !important; }

/* Countdown card — used for the "Coming Sunday at 6 PM ET" placeholder */
.countdown-card {
  border: 1px dashed rgba(56,225,255,0.4) !important;
  background: linear-gradient(135deg, rgba(56,225,255,0.06), rgba(56,225,255,0.02)) !important;
  position: relative;
}
.countdown-card .countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,225,255,0.08);
  border: 1px solid rgba(56,225,255,0.3);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
}
.countdown-card .countdown-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: comingPulse 2.2s infinite;
  box-shadow: 0 0 8px rgba(56,225,255,0.6);
}
.countdown-card [data-countdown] {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: rgba(245,239,224,0.85);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}
.countdown-card [data-countdown] strong {
  color: var(--cyan);
  font-weight: 600;
}

/* Pre-release teaser block on the Vol 02 article URL itself */
.prerelease-teaser {
  max-width: 720px;
  margin: 4rem auto;
  padding: 3rem var(--gutter);
  text-align: center;
  border: 1px dashed rgba(56,225,255,0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56,225,255,0.04), rgba(0,0,0,0));
}
.prerelease-teaser .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,225,255,0.08);
  border: 1px solid rgba(56,225,255,0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.prerelease-teaser .pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: comingPulse 2.2s infinite;
  box-shadow: 0 0 8px rgba(56,225,255,0.6);
}
.prerelease-teaser h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--paper);
}
.prerelease-teaser h1 .accent { color: var(--cyan); }
.prerelease-teaser p {
  color: rgba(245,239,224,0.75);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 auto 1.5rem;
  max-width: 50ch;
}
.prerelease-teaser [data-countdown] {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--paper);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(3,8,26,0.6);
  border: 1px solid rgba(56,225,255,0.2);
  border-radius: 6px;
  display: inline-block;
}
.prerelease-teaser [data-countdown] strong {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.15rem;
}
.prerelease-teaser .teaser-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--cyan);
  color: var(--space-deep);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prerelease-teaser .teaser-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(56,225,255,0.3);
}
.synapse-head {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.synapse-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.synapse-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: var(--paper);
}
.synapse-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245,239,224,0.7);
  max-width: 50ch;
  margin: 0;
}

/* === Synapse Deep Dive Hero: spotlights the flagship piece above the card grid === */
.synapse-hero {
  display: block;
  position: relative;
  padding: 2rem 2rem 2rem 2.5rem;
  margin: 0 0 1.75rem 0;
  background: linear-gradient(135deg, rgba(20, 35, 70, 0.85), rgba(5, 12, 35, 0.95));
  border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.synapse-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(56, 225, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.synapse-hero:hover {
  border-color: rgba(56, 225, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 225, 255, 0.15);
}
.synapse-hero-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), rgba(56, 225, 255, 0.3));
}
.synapse-hero-content {
  position: relative;
  z-index: 1;
}
.synapse-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.synapse-hero-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--cyan);
  color: var(--space-deep);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}
.synapse-hero-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(232, 237, 248, 0.65);
  text-transform: uppercase;
}
.synapse-hero-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 0.85rem 0;
}
.synapse-hero-title .accent {
  color: var(--cyan);
}
.synapse-hero-lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--gold);
  margin: 0 0 1.5rem 0;
  max-width: 70ch;
}
.synapse-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.synapse-hero-cta {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: var(--cyan);
  color: var(--space-deep);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.synapse-hero:hover .synapse-hero-cta {
  background: #7ce9ff;
}
.synapse-hero-byline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(232, 237, 248, 0.55);
}
@media (max-width: 700px) {
  .synapse-hero {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  }
  .synapse-hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.synapse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

/* Cards layout */
.synapse-cards {
  display: contents; /* let cards flow into synapse-grid directly */
}

.synapse-card {
  display: block;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(14, 21, 48, 0.9), rgba(3, 8, 26, 0.9));
  border: 1px solid rgba(56, 225, 255, 0.15);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.synapse-card::before {
  /* Accent line on the left */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.25s;
}
.synapse-card:hover {
  border-color: rgba(56, 225, 255, 0.5);
  transform: translateX(2px);
}
.synapse-card:hover::before {
  opacity: 1;
}

.synapse-card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.synapse-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 0.6rem;
  color: var(--paper);
}
.synapse-card-secondary h3,
.synapse-card-soon h3 {
  font-size: 1.25rem;
}

.synapse-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.75);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.synapse-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 239, 224, 0.5);
  letter-spacing: 0.05em;
}
.synapse-card-cta {
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none;
}

/* Soon card — placeholder for upcoming content */
.synapse-card-soon {
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.04), rgba(14, 21, 48, 0.6));
  border-style: dashed;
  border-color: rgba(56, 225, 255, 0.2);
  opacity: 0.85;
  cursor: default;
}
.synapse-card-soon:hover {
  transform: none;
  border-color: rgba(56, 225, 255, 0.4);
  opacity: 1;
}
.synapse-card-soon::before { display: none; }
.synapse-card-soon h3 {
  color: rgba(245, 239, 224, 0.85);
}

/* RESPONSIVE — collapse cards on narrow screens */
@media (max-width: 700px) {
  .synapse-section { padding-top: 2rem; padding-bottom: 2rem; }
  .synapse-grid { grid-template-columns: 1fr; }
  .synapse-card { padding: 1.25rem; }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-overlay.open { display: flex; }
.search-panel {
  width: min(640px, 92vw);
  background: var(--space-mid);
  border: var(--hairline);
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--glow-cyan);
  overflow: hidden;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: var(--hairline);
  color: rgba(245,239,224,0.6);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--paper);
}
.search-bar input::placeholder { color: rgba(245,239,224,0.4); }
.search-close {
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(245,239,224,0.6);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.15s;
}
.search-close:hover { background: rgba(255,255,255,0.06); color: var(--paper); }
.search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.search-hint {
  padding: 2rem;
  text-align: center;
  color: rgba(245,239,224,0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.search-hit {
  display: block;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(26,44,85,0.5);
  transition: background 0.15s;
}
.search-hit:hover { background: var(--space-soft); }
.search-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}
.search-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ============================================
   ARTICLE IMAGE HOUSE STYLE
   Consistent treatment for images, figures, captions, attributions.
   Apply to any <figure class="article-figure"> inside .atd-body.
   ============================================ */

/* Hero image — sits at top of article, full content width, natural aspect ratio */
.atd-body .article-hero-figure {
  margin: 0 0 2.5rem;
}
.atd-body .article-hero-figure img {
  width: 100%;
  height: auto;
  max-height: 600px;
  border-radius: 6px;
  display: block;
  background: var(--space-mid, #0A1230);
}

/* Standard inline figure — appears within body text, content-width by default */
.atd-body .article-figure {
  margin: 2.5rem 0 0.75rem;
}
.atd-body .article-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  background: var(--space-mid, #0A1230);
}

/* Narrow variant — for portrait images or small visuals; centered, 65% max */
.atd-body .article-figure-narrow {
  margin: 2.5rem auto 0.75rem;
  max-width: 65%;
}
.atd-body .article-figure-narrow img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Infographic variant — has a subtle cyan hairline border to distinguish from photos */
.atd-body .article-figure-infographic {
  margin: 2.5rem 0 0.75rem;
}
.atd-body .article-figure-infographic img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  border: 1px solid rgba(56, 225, 255, 0.15);
  background: var(--space-mid, #0A1230);
}

/* Side-by-side comparison grid — two images of equal weight */
.atd-body .article-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0 0.75rem;
}
.atd-body .article-compare-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  background: var(--space-mid, #0A1230);
}

/* Caption + attribution — same typography across every figure variant */
.atd-body figcaption {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 239, 224, 0.72);
  padding: 0.75rem 0.25rem 0;
  text-align: left;
  max-width: 100%;
}
.atd-body figcaption cite {
  display: block;
  margin-top: 0.45rem;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.45);
}
.atd-body figcaption cite::before {
  content: '— ';
  opacity: 0.6;
}

/* Mobile responsive — narrow figures become full-width, compare grids stack */
@media (max-width: 720px) {
  .atd-body .article-figure-narrow {
    max-width: 100%;
  }
  .atd-body .article-compare-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .atd-body .article-hero-figure,
  .atd-body .article-figure,
  .atd-body .article-figure-infographic {
    margin-top: 1.75rem;
  }
}

/* ============================================
   YOUTUBE / WATCH SECTION
   ============================================ */

/* Watch Section Banner — channel branding + subscribe CTA (movie marquee style) */
.watch-feature {
  margin-top: 2rem;
}
.watch-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.75rem 3rem 3rem;
  margin: 0.75rem 0 1.5rem;
  background: #FF0000;
  border: 4px solid #E8A767;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(232, 167, 103, 0.45),
    0 0 40px rgba(232, 167, 103, 0.4),
    0 14px 44px rgba(255, 0, 0, 0.28);
  animation: marquee-glow-pulse 2.6s ease-in-out infinite;
}
.watch-banner::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 7px;
  border: 2px dotted #E8A767;
  pointer-events: none;
  opacity: 0.65;
  animation: marquee-dots-pulse 1.8s ease-in-out infinite;
}
@keyframes marquee-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(232, 167, 103, 0.45),
      0 0 40px rgba(232, 167, 103, 0.4),
      0 14px 44px rgba(255, 0, 0, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(232, 167, 103, 0.7),
      0 0 70px rgba(232, 167, 103, 0.6),
      0 14px 56px rgba(255, 0, 0, 0.4);
  }
}
@keyframes marquee-dots-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-banner,
  .watch-banner::before {
    animation: none;
  }
}
.watch-banner-content {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.watch-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  opacity: 0.95;
}
.watch-banner-kicker svg { flex-shrink: 0; }
.watch-banner-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 0.85rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.watch-banner-tagline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 620px;
}
.watch-banner-tagline strong {
  color: #FF0000;
  font-weight: 700;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  background: #ffffff;
  padding: 2px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.watch-banner-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.watch-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.1rem 2.25rem;
  background: #ffffff;
  color: #FF0000;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(232, 167, 103, 0.3);
}
.watch-subscribe-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(232, 167, 103, 0.6);
}
.watch-subscribe-btn:active { transform: translateY(0); }
.watch-channel-link {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.watch-channel-link:hover { color: #ffffff; }

/* ===== Pillar-page "Start here" tutorial callout ===== */
.learn-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem auto 2.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--space-soft), var(--space-mid));
  border: 1px solid var(--space-line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.learn-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(56,225,255,0.1), transparent 60%);
  pointer-events: none;
}
.learn-cta .learn-cta-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,225,255,0.12);
  border: 1px solid rgba(56,225,255,0.3);
  border-radius: 50%;
  color: var(--cyan);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.4rem;
}
.learn-cta .learn-cta-content {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.learn-cta .learn-cta-content strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.learn-cta .learn-cta-content span {
  color: rgba(245,239,224,0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}
.learn-cta a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  background: var(--cyan);
  color: var(--space-deep);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 150ms ease, transform 150ms ease;
  position: relative;
  z-index: 1;
}
.learn-cta a:hover {
  background: var(--cyan-soft);
  transform: translateY(-1px);
}
/* Per-pillar accent variants */
.learn-cta.pillar-finance {
  border-left-color: var(--gold);
}
.learn-cta.pillar-finance .learn-cta-icon {
  background: rgba(232,167,103,0.12);
  border-color: rgba(232,167,103,0.3);
  color: var(--gold);
}
.learn-cta.pillar-finance::before {
  background: radial-gradient(circle, rgba(232,167,103,0.1), transparent 60%);
}
.learn-cta.pillar-finance a {
  background: var(--gold);
}
.learn-cta.pillar-finance a:hover {
  background: var(--gold-soft);
}
@media (max-width: 700px) {
  .learn-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .learn-cta a {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Reusable YouTube-themed buttons (site-wide) ===== */
/* Standard YouTube subscribe button: red background, white text. Use on dark backgrounds. */
.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: #FF0033;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.3px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.35);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.yt-subscribe-btn:hover {
  background: #E60029;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 0, 51, 0.5);
}
.yt-subscribe-btn:active {
  transform: translateY(0);
}
.yt-subscribe-btn svg {
  fill: #ffffff;
}

/* Pill variant for inline placement: smaller, less padding */
.yt-subscribe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: #FF0033;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.3);
  transition: background 180ms ease, transform 180ms ease;
}
.yt-subscribe-pill:hover {
  background: #E60029;
  transform: translateY(-1px);
}

/* Secondary YouTube link: ghost style with red accent border. For "Visit channel" or "See latest" */
.yt-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 0, 51, 0.6);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.yt-secondary-btn:hover {
  background: rgba(255, 0, 51, 0.12);
  border-color: #FF0033;
  transform: translateY(-1px);
}
.yt-secondary-btn svg {
  fill: #FF0033;
}

@media (max-width: 720px) {
  .watch-banner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 2.25rem;
    gap: 1.5rem;
  }
  .watch-banner::before { inset: 8px; }
  .watch-banner-cta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  .watch-subscribe-btn {
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
  }
}

/* Existing YouTube Video Grid */
.yt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.yt-featured {
  display: block;
  border: var(--hairline);
  border-radius: 4px;
  background: var(--space-mid);
  overflow: hidden;
  transition: all 0.3s;
}
.yt-featured:hover { border-color: var(--cyan); transform: translateY(-3px); }
.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--space-deep);
  overflow: hidden;
}
.yt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.yt-featured:hover .yt-thumb img,
.yt-card:hover .yt-thumb img { transform: scale(1.04); }
.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 26, 0.25);
  transition: background 0.2s;
}
.yt-featured:hover .yt-play-overlay,
.yt-card:hover .yt-play-overlay { background: rgba(3, 8, 26, 0.45); }
.yt-play-overlay svg {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  transition: transform 0.2s;
}
.yt-play-overlay.small svg { width: 44px; }
.yt-featured:hover .yt-play-overlay svg,
.yt-card:hover .yt-play-overlay svg { transform: scale(1.06); }
.yt-meta {
  padding: 1.5rem;
}
.yt-meta .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF4444;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}
.yt-meta h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.yt-meta p {
  color: rgba(245,239,224,0.7);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.yt-meta .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.5);
  letter-spacing: 0.05em;
}
.yt-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.yt-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  border: var(--hairline);
  border-radius: 4px;
  background: var(--space-mid);
  overflow: hidden;
  transition: all 0.25s;
  align-items: stretch;
}
.yt-card:hover { border-color: var(--cyan); }
.yt-card .yt-thumb { aspect-ratio: 16/9; height: 100%; }
.yt-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.75rem 0.75rem 0;
  margin: 0;
}
.yt-card .meta {
  padding: 0 0.75rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(245,239,224,0.5);
  margin-top: auto;
}
.yt-channel-link {
  display: block;
  padding: 1rem;
  text-align: center;
  border: var(--hairline);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
  transition: all 0.2s;
}
.yt-channel-link:hover { background: var(--space-mid); border-color: var(--cyan); }

/* Graceful fallback card when YouTube RSS fetch fails. Looks intentional, not broken. */
.yt-fallback {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin: 1.25rem 0;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.04) 0%, rgba(10, 18, 48, 0.6) 100%);
  border: 1px solid rgba(255, 0, 0, 0.18);
  border-radius: 12px;
}
.yt-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 0, 0.08);
  border-radius: 50%;
}
.yt-fallback-text h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 700;
}
.yt-fallback-text p {
  margin: 0;
  color: rgba(245, 239, 224, 0.65);
  font-size: 0.95rem;
}
.yt-fallback-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  background: var(--cyan);
  color: var(--space-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.yt-fallback-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(56, 225, 255, 0.3); }
@media (max-width: 720px) {
  .yt-fallback { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .yt-fallback-icon { justify-self: center; }
}

@media (max-width: 900px) {
  .yt-grid { grid-template-columns: 1fr; }
  .yt-card { grid-template-columns: 100px 1fr; }
}

/* Reveal animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise 0.6s ease both; }
.reveal-stagger > * { animation: rise 0.6s ease both; }
.reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   LEARN / TUTORIAL PAGES
   ============================================ */

/* Tutorial article */
.tutorial {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}
.tutorial-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.55);
}
.tutorial-meta-bar .pill {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--space-line);
  border-radius: 999px;
  background: var(--space-mid);
}
.tutorial-meta-bar .pill.beginner { color: var(--accent-crypto); border-color: var(--accent-crypto); }
.tutorial-meta-bar .pill.intermediate { color: var(--gold); border-color: var(--gold); }
.tutorial-meta-bar .pill.advanced { color: #F87171; border-color: #F87171; }

.tutorial h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.tutorial .lede {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.55;
  color: rgba(245,239,224,0.85);
  margin-bottom: 2.5rem;
}

.tutorial-preview {
  background: var(--space-mid);
  border: var(--hairline);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.tutorial-preview h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.tutorial-preview ul {
  list-style: none;
  padding: 0;
}
.tutorial-preview ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(245,239,224,0.85);
}
.tutorial-preview ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-crypto);
  font-weight: 700;
}

.tutorial-prereqs {
  font-size: 0.95rem;
  color: rgba(245,239,224,0.7);
  border-left: 3px solid var(--cyan);
  padding: 0.75rem 1rem;
  background: rgba(56, 225, 255, 0.04);
  margin: 1.5rem 0;
  font-family: var(--font-ui);
}
.tutorial-prereqs strong { color: var(--cyan); }
.tutorial-prereqs a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Body content typography */
.tutorial-body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(245,239,224,0.92);
}
.tutorial-body h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.005em;
  scroll-margin-top: 100px;
}
.tutorial-body h2 .step-num {
  display: inline-block;
  width: 1.75rem; height: 1.75rem;
  line-height: 1.75rem;
  text-align: center;
  background: var(--cyan);
  color: var(--space-deep);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-right: 0.6rem;
  vertical-align: 2px;
}
.tutorial-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}
.tutorial-body p {
  margin-bottom: 1.25rem;
}
.tutorial-body ul, .tutorial-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.tutorial-body li {
  margin-bottom: 0.6rem;
}
.tutorial-body strong {
  color: var(--paper);
  font-weight: 600;
}
.tutorial-body em {
  color: rgba(245,239,224,0.95);
}
.tutorial-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.tutorial-body a:hover {
  color: var(--cyan-soft);
}
.tutorial-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--space-mid);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: var(--gold-soft);
}
.tutorial-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: rgba(245,239,224,0.85);
  background: rgba(232, 167, 103, 0.05);
}

/* Callout boxes — for warnings, tips, etc. */
.callout {
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.6;
}
.callout::before {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.callout.tip {
  background: rgba(74, 222, 128, 0.06);
  border-left: 3px solid var(--accent-crypto);
}
.callout.tip::before { content: '💡 Pro tip'; color: var(--accent-crypto); }
.callout.warning {
  background: rgba(248, 113, 113, 0.06);
  border-left: 3px solid #F87171;
}
.callout.warning::before { content: '⚠ Heads up'; color: #F87171; }
.callout.note {
  background: rgba(56, 225, 255, 0.06);
  border-left: 3px solid var(--cyan);
}
.callout.note::before { content: '✦ Note'; color: var(--cyan); }
.callout p:last-child { margin-bottom: 0; }

/* CTA / affiliate buttons */
.cta-box {
  background: linear-gradient(135deg, rgba(56,225,255,0.10), rgba(232,167,103,0.06));
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-box h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: rgba(245,239,224,0.85);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
/* CTA button — extra-specific selectors so .tutorial-body a styling can't override */
.cta-button,
.tutorial-body .cta-button,
.cta-box a.cta-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--cyan) !important;
  color: #03081A !important;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 800 !important;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(56,225,255,0.3),
              inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.2s;
  border: none;
}
.cta-button:hover,
.tutorial-body .cta-button:hover,
.cta-box a.cta-button:hover {
  background: #FFFFFF !important;
  color: #03081A !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56,225,255,0.5),
              0 0 0 2px var(--cyan),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.cta-disclosure {
  font-size: 11px;
  color: rgba(245,239,224,0.55);
  margin-top: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Step list — numbered process */
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
  padding-left: 0;
}
.steps > li {
  counter-increment: step;
  padding: 0 0 1.5rem 3rem;
  position: relative;
  border-bottom: 1px solid rgba(26, 44, 85, 0.4);
  margin-bottom: 1.5rem;
}
.steps > li:last-child { border-bottom: none; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  background: var(--cyan);
  color: var(--space-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
}

/* Next-up section at bottom */
.tutorial-next {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: var(--hairline);
}
.tutorial-next h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.next-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.next-card {
  display: block;
  padding: 1.5rem 1.5rem 1.4rem;
  border: var(--hairline);
  border-radius: 6px;
  background: var(--space-mid);
  transition: border-color 0.25s, background 0.25s;
}
.next-card:hover {
  border-color: rgba(56, 225, 255, 0.55);
  background: var(--space-soft);
}
.next-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 241, 250, 0.45);
  margin-bottom: 0.55rem;
  display: block;
}
.next-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.next-card:hover h4 {
  color: var(--cyan-soft);
}
.next-card p {
  font-size: 0.9rem;
  color: rgba(236, 241, 250, 0.62);
  line-height: 1.5;
}

/* Updated date footer */
.tutorial-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.45);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 44, 85, 0.4);
  letter-spacing: 0.05em;
}

/* ===== Learn landing page ===== */
.learn-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 4rem;
}
.path-card {
  display: block;
  padding: 2rem 1.75rem;
  border: var(--hairline);
  border-radius: 6px;
  background: var(--space-mid);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.path-card:hover::before { transform: scaleY(1); }
.path-card .icon {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--space-deep);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.path-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.path-card p {
  font-size: 0.95rem;
  color: rgba(245,239,224,0.7);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.path-card .count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Tutorial list inside a path */
.tutorial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.tutorial-link {
  display: block;
  padding: 1.5rem;
  border: var(--hairline);
  border-radius: 6px;
  background: var(--space-mid);
  transition: all 0.25s;
}
.tutorial-link:hover {
  border-color: var(--cyan);
  background: var(--space-soft);
}
.tutorial-link .level {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.tutorial-link .level.beginner { color: var(--accent-crypto); }
.tutorial-link .level.intermediate { color: var(--gold); }
.tutorial-link h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.tutorial-link p {
  font-size: 0.9rem;
  color: rgba(245,239,224,0.7);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.tutorial-link .duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,239,224,0.5);
}

/* Coming-soon variant: same shape, no link behavior, visually quieter */
.tutorial-coming {
  display: block;
  padding: 1.5rem;
  border: 1px dashed rgba(245,239,224,0.18);
  border-radius: 6px;
  background: rgba(14, 21, 48, 0.45);
  opacity: 0.78;
  cursor: default;
  position: relative;
}
.tutorial-coming:hover {
  opacity: 0.92;
  border-color: rgba(245,239,224,0.28);
}
.tutorial-coming .level {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
  color: rgba(245,239,224,0.45);
}
.tutorial-coming h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: rgba(245,239,224,0.7);
}
.tutorial-coming p {
  font-size: 0.9rem;
  color: rgba(245,239,224,0.55);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.tutorial-coming .coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,225,255,0.08);
  border: 1px solid rgba(56,225,255,0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.tutorial-coming .coming-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: comingPulse 2.5s infinite;
}
@keyframes comingPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   GLOSSARY TOOLTIP
   ============================================ */
.term {
  border-bottom: 1px dashed var(--cyan);
  cursor: help;
  position: relative;
  color: inherit;
}
.term:hover { color: var(--cyan); }
.glossary-popup {
  position: absolute;
  z-index: 100;
  max-width: 320px;
  background: var(--space-mid);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--glow-cyan);
  font-family: var(--font-ui);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  color: var(--paper);
}
.glossary-popup.show { opacity: 1; pointer-events: auto; }
.glossary-popup h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.glossary-popup p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245,239,224,0.9);
  margin: 0;
}
.glossary-popup .more-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
}

/* ============================================
   LEARN CALLOUT (homepage)
   ============================================ */
.learn-callout {
  position: relative;
  margin: 3rem 0 2rem;
  padding: 3.5rem var(--gutter);
  border: var(--hairline);
  border-color: var(--cyan);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(56,225,255,0.10), rgba(232,167,103,0.04) 40%, transparent 80%),
    var(--space-mid);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.learn-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,225,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,225,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}
.learn-callout::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56,225,255,0.18), transparent 70%);
  z-index: -1;
  filter: blur(60px);
}
.learn-callout-content {
  max-width: 640px;
  margin: 0 auto;
}
.learn-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.learn-callout h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.learn-callout p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(245,239,224,0.78);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.learn-cta-pill {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--cyan);
  color: var(--space-deep);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.learn-cta-pill:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,225,255,0.3);
}

/* ============================================
   BRAND VIDEO + SPLASH
   ============================================ */

/* Splash overlay — plays once on first visit */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--space-deep);
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: auto;
}
.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
.splash video {
  width: min(80vw, 700px);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(56, 225, 255, 0.3));
}
.splash-skip {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.splash-skip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--paper);
}

/* Hero brand video on About page */
.brand-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--space-deep);
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(56, 225, 255, 0.15);
}
.brand-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-video-wrap .video-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.brand-video-wrap .video-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(3, 8, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}
.brand-video-wrap .video-btn:hover {
  background: var(--cyan);
  color: var(--space-deep);
  border-color: var(--cyan);
}
.brand-video-wrap .video-btn svg {
  width: 16px;
  height: 16px;
}

/* When video has finished, show a subtle replay hint */
.brand-video-wrap.ended::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(56,225,255,0.05), transparent 70%);
  pointer-events: none;
}

@media (max-width: 600px) {
  .splash video { width: 92vw; }
  .splash-skip { bottom: 1rem; right: 1rem; }
}

/* ============================================
   ACROSS THE DIGIVERSE (weekly column)
   ============================================ */

.atd-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
  position: relative;
  overflow: hidden;
}
.atd-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56,225,255,0.12), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.atd-hero > * { position: relative; z-index: 1; }

.atd-hero .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.atd-hero .kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}
.atd-hero h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;        /* DM Serif Display is heavy by default */
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.atd-hero h1 .accent { color: var(--cyan); font-style: italic; }
.atd-hero h1 .atd-accent { color: var(--cyan); }
.atd-hero .lede {
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(245,239,224,0.78);
  max-width: 640px;
  margin-bottom: 2rem;
}
.atd-hero .meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.55);
}
.atd-hero .meta-info span { display: flex; align-items: center; gap: 0.4rem; }
.atd-hero .meta-info .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

/* ============================================
   ATD HERO — WITH IMAGE VARIANT
   Absolute-overlay pattern (matches home page editor-hero).
   Image bleeds under headline via long horizontal mask fade.
   Explicit bottom margin separates hero from following section.
   ============================================ */
.atd-hero--with-image {
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(56,225,255,0.04) 0%, transparent 70%),
    #050912;
}
/* Disable the base ::before glow on the image variant (positioned for the
   text-only hero; clashes with the overlay layout) */
.atd-hero--with-image::before {
  display: none;
}
.atd-hero--with-image .atd-hero-grid {
  position: relative;
  display: block;          /* photo absolute, content overlays */
  min-height: 480px;
  max-width: var(--container);
  margin: 0 auto;
}
.atd-hero--with-image .atd-hero-content {
  position: relative;
  z-index: 3;
  max-width: 65%;
  padding: 4rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Image extends from right edge into the text column behind the headline */
.atd-hero--with-image .atd-hero-portrait {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 50%, #000 75%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 50%, #000 75%);
}
.atd-hero--with-image .atd-hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Soft dark layer above the photo's left fade so headline stays readable */
.atd-hero--with-image .atd-hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3,8,26,0.55) 0%, rgba(3,8,26,0.2) 25%, transparent 50%);
  pointer-events: none;
}
/* Responsive: stack on smaller screens — portrait first, content below */
@media (max-width: 960px) {
  .atd-hero--with-image {
    margin-bottom: 2.5rem;
  }
  .atd-hero--with-image .atd-hero-grid {
    min-height: auto;
    display: flex;
    flex-direction: column-reverse;
  }
  .atd-hero--with-image .atd-hero-content {
    max-width: 100%;
    padding: 2rem var(--gutter);
  }
  .atd-hero--with-image .atd-hero-portrait {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 280px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .atd-hero--with-image .atd-hero-portrait img { object-position: center 30%; }
  .atd-hero--with-image .atd-hero-portrait::after { display: none; }
}

/* Featured (latest) piece on landing page */
.atd-featured {
  max-width: var(--container);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 var(--gutter) 3rem;
  border-bottom: 1px solid var(--space-line);
}
.atd-featured-thumb {
  background:
    linear-gradient(135deg, rgba(56,225,255,0.08), rgba(232,167,103,0.04)),
    var(--space-mid);
  border-radius: 8px;
  border: var(--hairline);
  padding: 3rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.atd-featured-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,225,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,225,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.atd-featured-thumb .vol {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  position: relative;
}
.atd-featured-thumb .num {
  font-family: var(--font-ui);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
  position: relative;
}
.atd-featured-thumb .topic {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.55);
  margin-top: 0.5rem;
  position: relative;
}
.atd-featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.atd-featured-text .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.atd-featured-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.atd-featured-text h2 a { color: var(--paper); transition: color 0.2s; }
.atd-featured-text h2 a:hover { color: var(--cyan); }
.atd-featured-text .summary {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245,239,224,0.75);
  margin-bottom: 1.5rem;
}
.atd-featured-text .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.5);
  margin-bottom: 1rem;
}
.atd-featured-text .read-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--cyan);
  color: var(--space-deep);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  width: max-content;
  transition: all 0.2s;
}
.atd-featured-text .read-cta:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,225,255,0.3);
}

/* Archive grid */
.atd-archive {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.atd-archive .section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
}
.atd-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.atd-archive-card {
  display: block;
  padding: 1.75rem;
  border: var(--hairline);
  border-radius: 6px;
  background: var(--space-mid);
  transition: all 0.25s;
  position: relative;
}
.atd-archive-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.atd-archive-card .vol {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.atd-archive-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.atd-archive-card .summary {
  font-size: 0.95rem;
  color: rgba(245,239,224,0.7);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.atd-archive-card .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245,239,224,0.45);
}
.atd-archive-card.placeholder {
  opacity: 0.4;
  border-style: dashed;
}
.atd-archive-card.placeholder:hover {
  transform: none;
  cursor: default;
}

/* Individual post page */
.atd-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}
.atd-post .meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.55);
}
.atd-post .meta-bar .vol {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 600;
}
.atd-post h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.atd-post .lede {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.5;
  color: rgba(245,239,224,0.85);
  margin-bottom: 2.5rem;
  font-style: italic;
  border-left: 3px solid var(--cyan);
  padding-left: 1.25rem;
}
.atd-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--space-line);
  border-bottom: 1px solid var(--space-line);
  margin-bottom: 2rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.atd-byline .author { color: var(--paper); font-weight: 600; }
.atd-byline .date { color: rgba(245,239,224,0.55); }

.atd-body {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.75;
  color: rgba(245,239,224,0.92);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Constrain entire article column to comfortable reading width */
.atd-article > .atd-hero,
.atd-article > .atd-disclosure,
.atd-article > .atd-disclosures,
.atd-article > .atd-sources,
.atd-article > .atd-readnext,
.atd-article > .tutorial-stamp {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.atd-article > .atd-disclosure,
.atd-article > .atd-disclosures,
.atd-article > .atd-sources,
.atd-article > .atd-readnext {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* If article body is wrapped in a release-state div, apply to that wrapper too */
.atd-article > [data-show-after-release] > .atd-hero,
.atd-article > [data-show-after-release] > .atd-body,
.atd-article > [data-show-after-release] > .atd-disclosure,
.atd-article > [data-show-after-release] > .atd-sources,
.atd-article > [data-show-after-release] > .atd-readnext,
.atd-article > [data-show-after-release] > .tutorial-stamp {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.atd-body h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
  letter-spacing: -0.005em;
}
.atd-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}
.atd-body p {
  margin-bottom: 1.25rem;
}
.atd-body strong { color: var(--paper); font-weight: 600; }
.atd-body em { color: rgba(245,239,224,0.95); }
.atd-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.atd-body a:hover { color: var(--cyan-soft); }
.atd-body ul, .atd-body ol {
  margin: 0 0 1.5rem 1.5rem;
}
.atd-body li {
  margin-bottom: 0.6rem;
}
.atd-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(245,239,224,0.88);
  background: rgba(232, 167, 103, 0.04);
  font-size: 1.15rem;
}
.atd-body .pull-quote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cyan);
  text-align: center;
  border-top: 1px solid var(--space-line);
  border-bottom: 1px solid var(--space-line);
  padding: 2rem 1rem;
  margin: 2.5rem 0;
  font-style: italic;
}

/* Disclosures box */
.atd-disclosures {
  margin: 3rem 0 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--space-line);
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.04);
  border-left: 3px solid #F87171;
}
.atd-disclosures h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F87171;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.atd-disclosures p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245,239,224,0.78);
  margin-bottom: 0.5rem;
}
.atd-disclosures p:last-child { margin-bottom: 0; }

/* End-of-column newsletter CTA — sits between conclusion and disclosures.
   Reusable across every Vol article and Synapse piece. Natural emotional
   peak after reader has invested 8-12 min, before the legal footer. */
.atd-end-cta {
  max-width: 720px;
  margin: 2.5rem auto 2.75rem;
  padding: 2rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,225,255,0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--space-soft), var(--space-mid));
  border: 1px solid var(--space-line);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.atd-end-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.atd-end-cta .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}
.atd-end-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 0.85rem;
}
.atd-end-cta p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(245,239,224,0.78);
  max-width: 52ch;
  margin: 0 auto 1.5rem;
}
.atd-end-cta-btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  background: var(--cyan);
  color: var(--space-deep);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.atd-end-cta-btn:hover {
  background: var(--cyan-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56,225,255,0.3);
}
.atd-end-cta-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.4);
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .atd-end-cta { padding: 1.5rem 1.25rem; }
}

/* Short embed — vertical 9:16 video companion for ATD articles */
.atd-short {
  max-width: 760px;
  margin: 2.75rem auto 3rem;
  padding: 0 var(--gutter);
}
.atd-short__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.atd-short__kicker::before,
.atd-short__kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(56, 225, 255, 0.35);
}
.atd-short__frame {
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--space-line);
  background: var(--space-deep);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.atd-short__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.atd-short__caption {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(245, 239, 224, 0.55);
  font-style: italic;
}
.atd-short__caption a {
  color: rgba(245, 239, 224, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(56, 225, 255, 0.35);
  text-underline-offset: 3px;
}
.atd-short__caption a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

/* Tool subpage back link — appears above section-hero on calculator pages */
.tool-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,239,224,0.65);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.tool-back-link:hover {
  color: var(--cyan);
}
.tool-back-link::before {
  content: '←';
  font-size: 1.1em;
  margin-right: 0.2em;
}

/* Sources & references — appears at end of every editorial piece */
.atd-sources {
  margin: 3rem 0 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--space-line);
  border-radius: 6px;
  background: rgba(56, 225, 255, 0.03);
  border-left: 3px solid var(--cyan);
}
.atd-sources h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}
.atd-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atd-sources li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245,239,224,0.78);
  margin-bottom: 0.6rem;
  padding-left: 1.25em;
  text-indent: -1.25em;
}
.atd-sources li::before {
  content: '→';
  color: var(--cyan);
  margin-right: 0.5em;
  font-family: var(--font-mono);
  font-weight: 600;
}
.atd-sources li:last-child { margin-bottom: 0; }
.atd-sources a {
  color: rgba(245,239,224,0.95);
  text-decoration: underline;
  text-decoration-color: rgba(56,225,255,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.atd-sources a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}
.atd-sources .source-note {
  font-size: 0.85rem;
  color: rgba(245,239,224,0.55);
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(56,225,255,0.1);
}

/* Sign-off */
.atd-signoff {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cyan);
  margin: 3rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--space-line);
  border-bottom: 1px solid var(--space-line);
}

/* Newsletter CTA at bottom of post */
.atd-newsletter {
  margin: 3rem 0;
  padding: 2rem;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56,225,255,0.05), transparent);
  text-align: center;
}
.atd-newsletter h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.atd-newsletter p {
  color: rgba(245,239,224,0.7);
  margin-bottom: 1rem;
}
.atd-newsletter form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.5rem;
}
.atd-newsletter input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--space-deep);
  border: 1px solid var(--space-line);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-ui);
}
.atd-newsletter button {
  padding: 0.7rem 1.5rem;
  background: var(--cyan);
  color: var(--space-deep);
  border: none;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .atd-featured { grid-template-columns: 1fr; }
  .atd-featured-thumb { min-height: 220px; padding: 2rem; }
  .atd-featured-thumb .num { font-size: 4rem; }
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: var(--hairline);
  border-radius: 50%;
  color: rgba(245,239,224,0.7);
  transition: all 0.2s;
}
.footer-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
