/* ============================================
   SINGLE-SCREEN LAYOUT
   ============================================ */
:root {
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html.dt-page {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
}
html.dt-page body {
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#bgCanvas,
#storyOverlay {
  opacity: 0.88;
  filter: saturate(0.94) brightness(0.9);
  transition: opacity 420ms ease, filter 520ms ease;
}

html.dt-page body.in-practice-live #bgCanvas,
html.dt-page body.in-practice-live #storyOverlay {
  opacity: 1;
  filter: saturate(1.12) brightness(1.08) contrast(1.03);
}

html.dt-page .page {
  display: flex; flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
  position: relative; z-index: 3;
}

/* HEADER - logo only, top-left */
.page-header {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.page-header .nav-brand { display: inline-flex; }
.page-header .nav-brand svg { width: 34px; height: 34px; }
.page-header .utc-clock {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* HERO - two-zone layout filling remaining space */
.hero {
  flex: 1; display: flex; align-items: stretch; justify-content: stretch;
  text-align: left; position: relative; overflow: visible;
  padding: 0;
}
/* Vignette layer - sits above #bgCanvas (world map + city labels) but
   below .hero-inner (z:1), so hero copy reads cleanly without dimming
   the map itself. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 55% at 30% 38%,
    rgba(6,9,12,0.92) 0%,
    rgba(6,9,12,0.75) 35%,
    rgba(6,9,12,0) 75%
  );
}
.hero-inner {
  width: 100%; max-width: 820px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}

/* ---- ZONE 1: Number Block (top third) ---- */
.zone-number {
  padding: 0 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(45,212,191,0.18);
  padding-bottom: 0.75rem;
}

/* ---- ZONE 2: Content Block ---- */
.zone-content {
  flex: 1;
  padding: 1rem 1.5rem 0;
  display: flex; flex-direction: column;
  min-height: 0;
}
.zone-content-top {
  display: flex; gap: 1.25rem;
  flex: 1; min-height: 0;
}
.zone-content-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  padding: 0.35rem 0 0.25rem;
}

/* ---- Zone 2: Data stack (right column) ---- */
.zone-data-stack {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  animation: heroFadeIn 400ms ease-out 800ms forwards;
}
.zone-data-stack .stack-label { opacity: 0.5; }
.zone-data-stack .stack-value { color: var(--text-secondary); }
.zone-data-stack .stack-live { color: var(--accent); }

/* ---- Zone 2: Bottom row ---- */
.zone-hint-line {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 4px;
}

/* FOOTER - homepage animation + extras */
.page-footer {
  flex-shrink: 0;
  opacity: 0; animation: heroRevealToHalf 400ms ease-out 900ms forwards;
}
.footer-disclaimer-inline { opacity: 0.7; }
#dataTimestamp { font-size: inherit; color: inherit; display: inline; }

/* Hero fade-in sequence - staggered entrance */
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeInSoft { from { opacity: 0; transform: translateY(12px); } to { opacity: 0.85; transform: translateY(0); } }
@keyframes heroReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroRevealSoft { from { opacity: 0; transform: translateY(18px); } to { opacity: 0.85; transform: translateY(0); } }
@keyframes heroRevealToHalf { from { opacity: 0; transform: translateY(24px); } to { opacity: 0.5; transform: translateY(0); } }

/* First-teal-dot intro: dark backdrop + prominent bubble */
.intro-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 14, 20, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 11;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.story-bubble-intro {
  z-index: 13;
  background: #0a0e14;
  border: 1px solid rgba(45,212,191,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 24px rgba(45,212,191,0.12);
  font-size: 13.5px;
  line-height: 1.65;
  pointer-events: none;
}
.intro-dot-ring { z-index: 12; pointer-events: none; }

/* ---- Hero Number (Zone 1) ---- */
.hero-number {
  font-family: var(--serif-display);
  font-size: clamp(3.5rem, 12vw, 88px);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  min-height: 1em;
  opacity: 0;
  animation: heroReveal 400ms ease-out forwards;
}
.hero-number.loading { animation: heroReveal 400ms ease-out forwards, skeleton-shimmer 1.8s ease-in-out infinite; }
.hero-number .hero-prefix { color: var(--text); }
.hero-number .hero-ratio { color: var(--accent); transition: color 1.5s ease-out; }

.hero-precise {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: -0.1rem 0 0.55rem 0;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 500ms ease;
}
.hero-precise.visible { opacity: 1; }
.hero-precise .hero-precise-yoy { margin-left: 0.55em; color: inherit; }

/* ---- Meta Strip (Zone 1, below number) ---- */
.hero-meta-strip {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: left;
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  word-spacing: 0.5em;
}
.hero-meta-strip .live-dot { margin-left: 0.15em; margin-right: 0.15em; }

/* ---- Hero Stats Row (Zone 1, between meta line and formula bar) ---- */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.25rem;
  margin: 0.25rem 0 0.9rem 0;
  opacity: 0;
  animation: heroFadeIn 400ms ease-out 650ms forwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1;
  white-space: nowrap;
}
.hero-stat-value {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-stat-value--delta {
  color: var(--accent);
}

/* Equation layout — labeled terms with source links */
.meta-equation {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5em;
  flex-wrap: wrap;
}
.meta-term {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.meta-label {
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1;
  white-space: nowrap;
}
.meta-label a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s;
}
.meta-label a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.meta-value {
  font-size: 1em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.meta-op {
  color: var(--accent);
  font-weight: 400;
  padding-bottom: 0.05em;
}
.meta-result {
  color: var(--accent) !important;
  font-weight: 500;
}
.meta-term-result .meta-label {
  color: var(--accent);
  opacity: 0.7;
}
.meta-live-row {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8em;
  opacity: 0.7;
}
.meta-live-row .stack-live {
  color: var(--accent);
}

/* ---- Share icon (Zone 2 bottom-left) ---- */
.hero-share-icon {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-muted);
  opacity: 0.4;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.hero-share-icon:hover { opacity: 0.8; color: var(--accent); }
.hero-share-icon svg { display: block; }

/* Scroll arrow — hidden by default (desktop); shown on mobile via media query */
.scroll-arrow-down { display: none; }

/* ---- Paragraph (Zone 2 left column) ---- */
.hero-desc {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-align: left;
  flex: 1 1 auto;
  max-width: 580px;
  min-width: 0;
  opacity: 0;
  animation: heroRevealSoft 400ms ease-out 700ms forwards;
}
.hero-desc a { text-decoration: none; padding-bottom: 1px; transition: border-color 150ms ease, color 150ms ease; }
.hero-desc a.page-link { color: rgba(45,212,191,0.65); border-bottom: 1px solid rgba(45,212,191,0.4); }
.hero-desc a.page-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-desc a.def-link { color: rgba(45,212,191,0.55); border-bottom: 1px dotted rgba(45,212,191,0.4); }
.hero-desc a.def-link::after { content: "°"; font-size: 0.65em; vertical-align: super; margin-left: 1px; opacity: 0.6; }
.hero-desc a.def-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.live-dot { display: inline-block; width: 6px; height: 6px; background: transparent; border: 1.5px solid var(--accent); border-radius: 50%; margin-right: 4px; vertical-align: middle; animation: pulse-live 2.5s ease-in-out infinite; will-change: opacity, box-shadow; }
@keyframes pulse-live { 0%, 100% { opacity: 0.9; box-shadow: 0 0 0 0 rgba(45,212,191,0); } 50% { opacity: 0.5; box-shadow: 0 0 0 3px rgba(45,212,191,0.15); } }
.live-dot.stale { border-color: #f59e0b; animation: none; opacity: 0.6; }
.live-badge { display: inline-flex; align-items: center; gap: 0; font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-top: 0.75rem; opacity: 0.75; }
.live-link { color: var(--accent) !important; text-decoration: underline !important; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent) !important; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.live-link:hover { text-decoration-color: var(--accent) !important; }
.live-arrow { display: inline-block; font-size: 0.65em; margin-left: 3px; opacity: 0.5; transition: opacity 0.2s; }
.live-link:hover .live-arrow { opacity: 1; }

/* ============================================
   STORY-CARD → MAP BEACON LAYER
   Beacon dots pin to the origin and destination
   cities of the current payment story so the
   card below reads as a caption for the map.
   Driven by PaymentStoryCardController in
   index.html.
   ============================================ */

/* Origin / destination beacons pinned to projected city coords.
   Animate a pulsing ring via a pseudo-element so the core + glow
   stay crisp while the ring expands and fades every 2s. */
.story-beacon {
  position: fixed;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--story-chain-color, #5eead4);
  box-shadow: 0 0 10px rgba(var(--story-chain-rgb, 94, 234, 212), 0.9),
              0 0 22px rgba(var(--story-chain-rgb, 94, 234, 212), 0.42);
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
  z-index: 12;
}
.story-beacon.is-visible { opacity: 1; }
.story-beacon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(var(--story-chain-rgb, 94, 234, 212), 0.72);
  border-radius: 50%;
  transform-origin: center;
  animation: storyBeaconPulse 2s ease-out infinite;
}
.story-beacon.is-departing {
  animation: storyBeaconDepart 420ms cubic-bezier(0.24, 0.88, 0.34, 1) 1;
}
.story-beacon.is-departing::after {
  animation: storyBeaconDepartRing 420ms ease-out 1;
}
.story-beacon.is-arriving {
  animation: storyBeaconArrive 720ms cubic-bezier(0.18, 0.84, 0.22, 1) 1;
  box-shadow: 0 0 12px rgba(var(--story-chain-rgb, 94, 234, 212), 0.95), 0 0 28px rgba(var(--story-chain-rgb, 94, 234, 212), 0.42);
}
.story-beacon.is-arriving::after {
  opacity: 0;
  animation: none;
}
.story-beacon--dest.is-arriving {
  transform: scale(1.22);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.82), 0 0 34px rgba(var(--story-chain-rgb, 94, 234, 212), 0.72), 0 0 62px rgba(var(--story-chain-rgb, 94, 234, 212), 0.3);
}
.story-beacon--dest.is-arriving::after {
  opacity: 0;
  animation: none;
}
.story-comet {
  --story-comet-size: 14px;
  position: fixed;
  width: var(--story-comet-size);
  height: var(--story-comet-size);
  margin: calc(var(--story-comet-size) * -0.5) 0 0 calc(var(--story-comet-size) * -0.5);
  border-radius: 50%;
  border: 1px solid rgba(var(--story-chain-rgb, 94, 234, 212), 0.42);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.84) 18%, transparent 34%),
    radial-gradient(circle at 72% 76%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 0%, transparent 58%),
    radial-gradient(circle at 38% 36%, var(--story-chain-color, #5eead4) 0%, var(--story-chain-color, #5eead4) 54%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 100%);
  box-shadow: 0 0 16px rgba(var(--story-chain-rgb, 94, 234, 212), 0.95), 0 0 30px rgba(var(--story-chain-rgb, 94, 234, 212), 0.46);
  pointer-events: none;
  opacity: 0;
  z-index: 13;
  transform: rotate(var(--story-comet-angle, 0deg)) scale(0.82);
  transition: opacity 120ms linear, transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-radius 180ms ease;
  will-change: left, top, opacity, transform;
}
.story-comet::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(var(--story-chain-rgb, 94, 234, 212), 0.24);
  opacity: 0.65;
}
.story-comet::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--story-chain-rgb, 94, 234, 212), 0.56) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.14) 42%, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 74%),
    radial-gradient(circle at 72% 74%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 0%, transparent 52%);
}
.story-comet.is-visible {
  opacity: 1;
  transform: rotate(var(--story-comet-angle, 0deg)) scale(1);
}
.story-comet.is-launching {
  transform: rotate(var(--story-comet-angle, 0deg)) scale(1.2);
  box-shadow: 0 0 20px rgba(var(--story-chain-rgb, 94, 234, 212), 1), 0 0 36px rgba(var(--story-chain-rgb, 94, 234, 212), 0.56);
}
.story-comet.is-docking {
  transform: rotate(var(--story-comet-angle, 0deg)) scale(1.55);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.98), 0 0 46px rgba(var(--story-chain-rgb, 94, 234, 212), 0.7);
}
.story-comet.is-docking::before {
  animation: storyCometDockHalo 420ms cubic-bezier(0.16, 0.9, 0.24, 1) 1;
}
.story-comet.is-docking::after {
  animation: storyCometDockFlash 420ms cubic-bezier(0.16, 0.9, 0.24, 1) 1;
}

.story-comet.is-style-orb {
  --story-comet-size: 14px;
}

.story-comet.is-style-tracer {
  --story-comet-size: 10px;
  background: radial-gradient(circle at 74% 50%, rgba(255, 255, 255, 0.98) 0%, var(--story-chain-color, #5eead4) 38%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 100%);
  box-shadow: 0 0 14px rgba(var(--story-chain-rgb, 94, 234, 212), 0.92), 0 0 24px rgba(var(--story-chain-rgb, 94, 234, 212), 0.28);
}
.story-comet.is-style-tracer::before {
  inset: auto;
  left: calc(var(--story-comet-size) * -2.1);
  top: calc(50% - 1.5px);
  width: calc(var(--story-comet-size) * 2.1);
  height: 3px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.22) 34%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.88) 100%);
  opacity: 1;
}
.story-comet.is-style-tracer::after {
  inset: -8px;
  background: radial-gradient(circle at 76% 50%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.34) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 68%);
}

.story-comet.is-style-packet {
  --story-comet-size: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, var(--story-chain-color, #5eead4) 34%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 100%);
  box-shadow: 0 0 12px rgba(var(--story-chain-rgb, 94, 234, 212), 0.76), 0 0 22px rgba(var(--story-chain-rgb, 94, 234, 212), 0.22);
}
.story-comet.is-style-packet::before {
  inset: auto;
  left: calc(var(--story-comet-size) * -2.05);
  top: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border: none;
  border-radius: 1px;
  background: rgba(var(--story-chain-rgb, 94, 234, 212), 0.82);
  box-shadow:
    6px 0 0 rgba(var(--story-chain-rgb, 94, 234, 212), 0.58),
    -6px 0 0 rgba(var(--story-chain-rgb, 94, 234, 212), 0.28),
    -12px 0 0 rgba(var(--story-chain-rgb, 94, 234, 212), 0.12);
  opacity: 1;
}
.story-comet.is-style-packet::after {
  inset: -8px;
  background: radial-gradient(circle, rgba(var(--story-chain-rgb, 94, 234, 212), 0.24) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 72%);
}

.story-comet.is-style-beam {
  --story-comet-size: 9px;
  border-color: rgba(var(--story-chain-rgb, 94, 234, 212), 0.28);
  background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 22%, var(--story-chain-color, #5eead4) 46%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.42) 100%);
  box-shadow: 0 0 12px rgba(var(--story-chain-rgb, 94, 234, 212), 0.98), 0 0 26px rgba(var(--story-chain-rgb, 94, 234, 212), 0.18);
}
.story-comet.is-style-beam::before {
  inset: auto;
  left: calc(var(--story-comet-size) * -3.7);
  top: calc(50% - 1px);
  width: calc(var(--story-comet-size) * 4.1);
  height: 2px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.12) 18%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.94) 100%);
  opacity: 1;
}
.story-comet.is-style-beam::after {
  inset: auto;
  left: calc(var(--story-comet-size) * -4.1);
  top: calc(50% - 5px);
  width: calc(var(--story-comet-size) * 4.8);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.08) 30%, rgba(var(--story-chain-rgb, 94, 234, 212), 0.3) 100%);
  filter: blur(4px);
}

.story-comet.is-style-ping {
  --story-comet-size: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, var(--story-chain-color, #5eead4) 42%, var(--story-chain-color-alt, var(--story-chain-color, #5eead4)) 100%);
  box-shadow: 0 0 10px rgba(var(--story-chain-rgb, 94, 234, 212), 0.84), 0 0 18px rgba(var(--story-chain-rgb, 94, 234, 212), 0.22);
}
.story-comet.is-style-ping::before {
  inset: -8px;
  border: 1px solid rgba(var(--story-chain-rgb, 94, 234, 212), 0.74);
  animation: storyCometPingRing 1.1s ease-out infinite;
  opacity: 1;
}
.story-comet.is-style-ping::after {
  inset: -5px;
  background: radial-gradient(circle, rgba(var(--story-chain-rgb, 94, 234, 212), 0.22) 0%, rgba(var(--story-chain-rgb, 94, 234, 212), 0) 76%);
}

@keyframes storyCometPingRing {
  0% {
    opacity: 0.82;
    transform: scale(0.68);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.homepage-route-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.homepage-route-links-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.7;
  color: rgba(232, 240, 238, 0.66);
  text-transform: uppercase;
}

.homepage-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #E8F0EE;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.homepage-route-link:hover {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.08);
  transform: translateY(-1px);
}

.homepage-route-link:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

.market-structure-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 1.35rem;
}
.market-structure-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: none;
  height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--border-card, #2a3342);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 20, 28, 0.96) 0%, rgba(10, 13, 18, 0.94) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.market-structure-card:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.8);
  outline-offset: 3px;
}
@media (hover: hover) {
  .market-structure-card:hover {
    border-color: var(--border-card-hover, #3d4d62);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-structure-card {
    transition: none;
  }
  .market-structure-card:hover {
    transform: none;
  }
}
.market-structure-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.market-structure-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.22rem 0.55rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bff7ea;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
}
.market-structure-open {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 247, 234, 0.86);
}
.market-structure-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #E8F0EE;
  min-height: 2.35em;
}

@media (max-width: 700px) {
  .homepage-route-links {
    gap: 0.5rem;
  }

  .homepage-route-links-label {
    width: 100%;
    margin-bottom: 0.1rem;
  }

  .homepage-route-link {
    padding: 0.5rem 0.8rem;
  }

  .market-structure-grid {
    grid-template-columns: 1fr;
  }

  .market-structure-card {
    padding: 18px 18px 16px;
  }

  .market-structure-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .market-structure-open {
    font-size: 9px;
  }

  .market-structure-title,
  .market-structure-copy {
    min-height: 0;
  }
}
.market-structure-copy {
  margin: 0.6rem 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.86);
  min-height: 3.35em;
}

.market-structure-controls {
  margin-top: 0.9rem;
}

.market-structure-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.market-structure-switch-btn {
  min-height: 30px;
  padding: 0.38rem 0.68rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.58);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.market-structure-switch-btn:hover {
  color: rgba(232, 240, 238, 0.9);
}

.market-structure-switch-btn.is-active {
  background: rgba(45, 212, 191, 0.16);
  color: #d8fff7;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.12);
}

.market-structure-switch-btn:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.7);
  outline-offset: 2px;
}

.market-structure-card .issuer-viz {
  margin: 1rem 0 0.8rem;
}

.market-structure-note {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.56);
}

.market-structure-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 100%;
  margin-top: auto;
  padding: 0 1rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bff7ea;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.market-structure-link:hover {
  color: #ecfeff;
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.16);
}
@media (min-width: 1040px) {
  .market-structure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.story-beacon--dest {
  background: rgba(var(--story-chain-rgb, 94, 234, 212), 0.55);
  box-shadow: 0 0 5px rgba(var(--story-chain-rgb, 94, 234, 212), 0.45);
}
.story-beacon--dest::after {
  border-color: rgba(var(--story-chain-rgb, 94, 234, 212), 0.45);
  animation-delay: 0.9s;
}
@keyframes storyBeaconPulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  100% { transform: scale(3.8); opacity: 0; }
}
@keyframes storyBeaconDepart {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.88; }
}
@keyframes storyBeaconDepartRing {
  0% { transform: scale(1); opacity: 0.88; }
  100% { transform: scale(4.8); opacity: 0; }
}
@keyframes storyBeaconArrive {
  0% { transform: scale(1); opacity: 0.92; }
  28% { transform: scale(2.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes storyBeaconArriveRing {
  0% { transform: scale(1); opacity: 1; }
  55% { transform: scale(6.4); opacity: 0.34; }
  100% { transform: scale(7.1); opacity: 0; }
}
@keyframes storyCometDockHalo {
  0% { inset: -5px; opacity: 0.72; }
  100% { inset: -20px; opacity: 0; }
}
@keyframes storyCometDockFlash {
  0% { transform: scale(1); opacity: 0.82; }
  100% { transform: scale(1.95); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story-beacon::after { animation: none; opacity: 0.5; }
}

/* Inline scenario legend. Sits below the payment story card inside
   .live-scenario-section, captioning the comets animating across the
   world map above. Replaces the older floating .map-legend. */
.scenario-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 15, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 182, 198, 0.85);
  pointer-events: none;
}
.scenario-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.scenario-legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.scenario-legend-dot--stable {
  background: #5eead4;
  box-shadow: 0 0 5px rgba(94, 234, 212, 0.7);
}
.scenario-legend-dot--traditional {
  background: rgba(220, 228, 240, 0.35);
}
.market-structure-controls {
  display: none;
}

.market-beat-section {
  padding-top: 72px;
}

.market-beat-frame {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: start;
  margin-top: 1.25rem;
}

.market-beat-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  max-width: 34rem;
}

@media (min-width: 961px) {
  .market-beat-copy {
    position: relative;
    top: auto;
  }
}

.market-beat-step {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 247, 234, 0.72);
}

.market-beat-heading {
  margin: 0;
}

.market-beat-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 240, 238, 0.78);
}

.market-structure-card--feature {
  max-width: none;
  min-height: 0;
}

.market-structure-card--feature .market-structure-title {
  min-height: 0;
  font-size: clamp(24px, 2.6vw, 30px);
}

.market-structure-card--feature .market-structure-copy {
  min-height: 0;
  max-width: 52ch;
}

.market-structure-card--feature .issuer-viz {
  margin-top: 1.15rem;
}

.market-structure-card--feature .market-structure-link {
  max-width: 220px;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .market-beat-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .market-beat-copy {
    max-width: none;
  }

  .market-structure-card--feature .market-structure-link {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .market-beat-section {
    padding-top: 56px;
  }

  .market-beat-frame {
    gap: 14px;
    margin-top: 1rem;
  }

  .market-beat-copy {
    gap: 0.72rem;
  }

  .market-beat-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

  .market-structure-card--feature {
    padding: 18px 18px 18px;
  }

  .market-structure-card--feature .market-structure-title {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .scenario-legend {
    font-size: 8.5px;
    gap: 8px 12px;
    margin-top: 12px;
    padding: 8px 14px;
    max-width: calc(100vw - 32px);
    border-radius: 14px;
  }
  .scenario-legend-dot { width: 5px; height: 5px; }
}

/* ---- Mobile: single-screen 375×667 viewport ---- */
@media (max-width: 600px) {
  html, body { font-size: 15px; overflow-x: hidden; }
  .zone-number { padding: 0 1rem; padding-bottom: 0.5rem; }
  .hero-number { font-size: clamp(3rem, 14vw, 80px); margin-bottom: 0.3rem; }
  .hero-meta-strip {
    font-size: 14px;
    word-spacing: 0.25em;
    line-height: 1.7;
    opacity: 0.8;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .hero-meta-strip .meta-equation {
    gap: 0.3em;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .hero-meta-strip .meta-label {
    font-size: 0.5em;
  }
  .hero-meta-strip .meta-live-row {
    margin-top: 3px;
    font-size: 0.85em;
  }
  .zone-content { padding: 0.65rem 1rem 0; }
  .zone-content-top { flex-direction: column; gap: 0.6rem; }
  .zone-data-stack { text-align: left; order: -1; line-height: 1.7; font-size: 0.7rem; }
  .hero-desc { font-size: 15px; line-height: 1.75; max-width: 100%; font-style: normal; }
  .zone-content-bottom { padding: 0.2rem 0; }
  /* Constrain background orbit graphic so it never forces horizontal scroll */
  #bgCanvas { max-width: 90vw; overflow: hidden; }
  /* Minimum 44px tap target for interactive UI */
  .menu-trigger,
  .shift-banner-close,
  .hero-share-icon,
  .nav-overlay-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Hide duplicate data panel — hero-meta-strip already shows these stats */
.zone-data-stack { display: none; }

.bg-explainer { padding: 0.5rem 0; }
.bg-explainer-card { border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); max-width: 520px; margin: 0 auto; text-align: center; }
.bg-explainer-toggle { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem 1.5rem; background: none; border: none; cursor: pointer; }
.bg-explainer-title { font-family: var(--sans); font-size: 1.5rem; color: var(--accent); font-weight: 600; margin: 0; }
.bg-explainer-arrow { font-size: 0.7rem; color: var(--accent); transition: transform 0.3s ease; display: inline-block; }
.bg-explainer-toggle[aria-expanded="true"] .bg-explainer-arrow { transform: rotate(180deg); }
.bg-explainer-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 1.5rem; }
.bg-explainer-body.open { max-height: 800px; padding: 0 1.5rem 1.25rem; }
.bg-explainer-line { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin: 0.5rem 0; }
.teal { color: var(--accent); font-weight: 600; }
.bg-explainer-line .dim { color: var(--text-muted); }
.dot-cta { font-weight: 600; color: var(--text) !important; }
.bg-explainer-line.scroll-reveal span { display: inline-block; opacity: 0; transform: translateX(-10px); transition: opacity 0.4s ease, transform 0.4s ease; }
[dir="rtl"] .bg-explainer-line.scroll-reveal span { transform: translateX(10px); }
.bg-explainer-line.scroll-reveal.visible span { opacity: 1; transform: translateX(0); }
.bg-explainer-line.scroll-reveal .teal { color: var(--accent); }
.bg-explainer-line.scroll-reveal .dim { color: var(--text-muted); }

/* Thesis items inside explainer panel */
.thesis-items { margin-top: 1rem; text-align: left; }
.thesis-detail { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.4rem; }
.thesis-detail summary { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--accent); padding: 0.75rem 1rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.thesis-detail summary::-webkit-details-marker { display: none; }
.thesis-detail summary::after { content: '+'; font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0; margin-left: 0.5rem; }
.thesis-detail[open] summary::after { content: '\2212'; }
.thesis-detail p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; padding: 0 1rem 0.75rem; margin: 0; }
.bg-explainer-body .thesis-quote { font-family: var(--sans); font-size: clamp(0.95rem, 2.5vw, 1.15rem); color: var(--text); text-align: center; max-width: 480px; margin: 1.25rem auto 0.75rem; line-height: 1.55; font-style: italic; opacity: 0.9; }

@media (max-width: 600px) {
  .bg-explainer { padding: 0.25rem 0; }
  .bg-explainer-toggle { padding: 0.6rem 1rem; }
  .bg-explainer-title { font-size: 1.15rem; }
  .bg-explainer-body { padding: 0 1rem; }
  .bg-explainer-body.open { padding: 0 1rem 1rem; }
  .bg-explainer-line { font-size: 0.95rem; line-height: 1.5; margin: 0.25rem 0; }
  .thesis-detail summary { font-size: 0.88rem; padding: 0.65rem 0.85rem; }
  .thesis-detail p { font-size: 0.82rem; padding: 0 0.85rem 0.65rem; }
}

/* CHART (used on /history and other pages — kept for compatibility) */
.chart-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1rem 0.75rem; height: clamp(300px, 45vw, 420px); overflow: visible; position: relative; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-skeleton { position: absolute; inset: 1.25rem 1rem 0.75rem; display: flex; align-items: flex-end; transition: opacity 0.4s; }
.chart-skeleton.hidden { opacity: 0; pointer-events: none; }
.chart-skeleton-line { position: absolute; bottom: 0; width: 8%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(45,212,191,0.06) 0%, rgba(45,212,191,0.02) 100%); animation: skeleton-shimmer 1.8s ease-in-out infinite; }
.chart-skeleton-line:nth-child(2) { animation-delay: 0.15s; }
.chart-skeleton-line:nth-child(3) { animation-delay: 0.3s; }
.chart-skeleton-line:nth-child(4) { animation-delay: 0.45s; }
.chart-skeleton-line:nth-child(5) { animation-delay: 0.6s; }
.chart-skeleton-line:nth-child(6) { animation-delay: 0.75s; }
@keyframes skeleton-shimmer { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.chart-error {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
}
.chart-error p { font-size: 0.88rem; color: var(--text-muted); }
.chart-error button {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--accent); background: none; border: 1px solid var(--accent);
  border-radius: 6px; padding: 0.5rem 1.25rem; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chart-error button:hover { background: var(--accent); color: var(--bg); }
.chart-orb { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; }
.chart-orb::before, .chart-orb::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid var(--accent); animation: orb-ring 2s ease-out infinite; }
.chart-orb::after { animation-delay: 1s; }
.chart-orb { box-shadow: 0 0 8px rgba(45,212,191,0.25), 0 0 16px rgba(45,212,191,0.1); opacity: 0.7; }
@keyframes orb-ring { 0% { width: 8px; height: 8px; opacity: 0.4; } 100% { width: 36px; height: 36px; opacity: 0; } }
.chart-context { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; letter-spacing: 0.01em; line-height: 1.6; }
.chart-context strong { color: var(--text-secondary); font-weight: 600; }
.chart-comparison { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0.25rem; font-style: italic; letter-spacing: 0.01em; }
.chart-comparison strong { color: var(--text-secondary); font-weight: 600; font-style: normal; }
.latest-context { margin-top: 1.25rem; margin-bottom: 0; padding: 0.85rem 1rem; border-left: 2px solid var(--accent); background: rgba(45,212,191,0.03); border-radius: 0 6px 6px 0; }
.latest-context-label { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.3rem; font-weight: 600; opacity: 0.7; }
.latest-context-date { font-weight: 400; opacity: 0.5; margin-left: 0.5rem; }
.latest-context-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.55; list-style: none; padding: 0; }
.latest-context-text li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.latest-context-text li:last-child { border-bottom: none; padding-bottom: 0; }
.latest-context-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(45,212,191,0.3); }
.latest-context-text a:hover { text-decoration-color: var(--accent); color: var(--text); }

/* Scroll offset for section targets — nav(48px) + gap */
#issuance, #chains, #milestones, #country-milestones { scroll-margin-top: 56px; }

/* CHAIN BREAKDOWN — GRAVITY WELLS */
.chain-summary { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }
.chain-summary strong { color: var(--text); font-weight: 600; }
.gw-range-bar { display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.5rem; margin-bottom: 0.75rem; }
.gw-range-pill { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: transparent; color: var(--text-muted); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.gw-range-pill:hover { border-color: rgba(45,212,191,0.3); color: var(--text-secondary); }
.gw-range-active { background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.35); color: #2DD4BF; }
.gravity-wells-wrap { position: relative; width: 100%; margin: 0 auto; z-index: 12; opacity: 0; transition: opacity 0.4s ease; }
.gravity-wells-wrap.gw-data-ready { opacity: 1; }
.gravity-wells-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Live data badge */
.gw-live-badge { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-bottom: 0.6rem; font-family: var(--mono); font-size: 11px; color: #555; letter-spacing: 0.02em; }
.gw-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d4aa; flex-shrink: 0; animation: gwLivePulse 2.5s ease-in-out infinite; }
@keyframes gwLivePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 3px rgba(0,212,170,0); }
}

/* Well expand animation */
.gw-well { transform-origin: var(--cx) var(--cy); transform: scale(0); }
.gw-well.gw-visible { animation: gwExpand 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--delay, 0s); }
@keyframes gwExpand { to { transform: scale(1); } }

/* Pulsing ring */
.gw-pulse-ring { transform-origin: var(--cx) var(--cy); animation: gwPulse 3.5s ease-out infinite; animation-delay: var(--pulse-delay, 0s); opacity: 0; }
@keyframes gwPulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Label fade-in */
.gw-label { opacity: 0; transition: opacity 0.5s ease; }
.gw-label.gw-label-visible { opacity: 1; }

/* Long-tail text footer */
.gw-tail-footer { text-align: center; font-family: var(--mono); font-size: 13px; color: #444; margin-top: 0.6rem; }
.gw-tail-pct { color: #666; }

/* Supply Change (24h) — sits directly below gravity wells, mirrors .activity-feed styling */
.supply-change-wrap { max-width: 520px; margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.supply-change-title { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; text-align: center; margin: 0 0 0.4rem; }
.supply-change-wrap .gw-live-badge { margin-bottom: 1rem; }
.supply-change-feed { margin-top: 0.4rem; }
.supply-change-feed .activity-dot.up::before { background: #22c55e; }
.supply-change-feed .activity-dot.down::before { background: #ef4444; }
.supply-change-feed .activity-title { font-family: var(--mono); }
.supply-change-feed .sc-delta { font-weight: 600; margin-left: 0.35em; }
.supply-change-feed .sc-delta.up { color: #22c55e; }
.supply-change-feed .sc-delta.down { color: #ef4444; }
.supply-change-feed .activity-time { font-family: var(--mono); }

/* Well interactivity — hover & active */
.gw-well-tap { cursor: pointer; }
@media (hover: hover) {
  .gw-well-tap:hover { filter: brightness(1.25); transform-origin: var(--cx) var(--cy); }
}
.gw-well-tap:active { filter: brightness(1.3); }

/* Fixed info strip between SVG and tail footer */
.gw-info-strip {
  text-align: center; padding: 0.8rem 0 0.4rem; min-height: 4.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gw-info-strip-hint {
  font-family: var(--sans); font-size: 0.8rem; color: #555; letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}
.gw-info-strip-detail {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  animation: gwStripFadeIn 0.3s ease both;
}
@keyframes gwStripFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gw-strip-name { font-size: 0.95rem; font-weight: 700; }
.gw-strip-value { font-size: 1.6rem; font-weight: 700; color: #fff; font-family: var(--mono); }
.gw-strip-rank { font-size: 0.75rem; color: #777; font-family: var(--mono); }

/* Well tap pulse */
@keyframes gwTapPulse {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}
.gw-well-tap.gw-tap-flash {
  animation: gwTapPulse 0.4s ease-out;
}

/* Well expanded steady state — after intro animation, enables transitions for interactive states */
.gw-well.gw-expanded {
  animation: none;
  transform: scale(1);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  will-change: transform, opacity;
}

/* Selected well — scale up + subtle glow */
.gw-well.gw-expanded.gw-well-selected {
  transform: scale(1.12);
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.12));
}

/* Dimmed wells — unselected bubbles fade back */
.gw-well.gw-expanded.gw-well-dimmed {
  opacity: 0.35;
}

/* Detail card shown in info strip on chain select */
.gw-detail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  animation: gwStripFadeIn 0.3s ease both;
  max-width: 340px;
  margin: 0 auto;
}
.gw-detail-card-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}
.gw-detail-card-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #777;
  margin-top: 0.1rem;
}
.gw-rank-up { color: #22c55e; font-weight: 700; font-size: 0.85em; }
.gw-rank-down { color: #ef4444; font-weight: 700; font-size: 0.85em; }
.gw-rank-new { color: #2DD4BF; font-weight: 700; font-size: 0.85em; }
.gw-detail-card-value {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

@media (max-width: 600px) {
  .chain-summary { gap: 1rem; font-size: 0.72rem; }
  .gw-tail-footer { font-size: 12px; }
  .gw-strip-value { font-size: 1.35rem; }
  .gw-detail-card { max-width: 280px; padding: 0.7rem 1rem; }
  .gw-detail-card-value { font-size: 1.15rem; }
  .gw-detail-card-name { font-size: 0.88rem; }
}

/* LANDSCAPE */
/* Landscape grid now uses ic-issuers flex layout */
.landscape-grid { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.5rem; }
.landscape-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; cursor: pointer; transition: border-color 0.2s; }
@media (hover: hover) { .landscape-card:hover { border-color: rgba(255,255,255,0.12); } }
.landscape-card-left { flex: 1; min-width: 0; }
.landscape-card-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
.landscape-card-logo { width: 22px; height: 22px; flex-shrink: 0; }
.landscape-card-logo svg { width: 100%; height: 100%; display: block; }
.landscape-card-name { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; color: var(--text); }
.landscape-card-ticker { font-size: 0.7rem; font-weight: 600; color: var(--accent-light); font-family: var(--mono); }
.landscape-card-issuer { font-size: 0.68rem; color: var(--text-muted); }
.landscape-card-issuer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.landscape-card-issuer a:hover { color: var(--accent); }
.landscape-card-desc { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease; margin-top: 0; }
.landscape-card.expanded { flex-wrap: wrap; }
.landscape-card.expanded .landscape-card-desc { max-height: 120px; opacity: 0.7; margin-top: 0.4rem; }
.landscape-card-stat { font-size: 0.68rem; color: var(--text-muted); font-family: var(--mono); }
.landscape-card-stat strong { color: var(--text); font-weight: 600; }
.landscape-card-right { text-align: right; flex-shrink: 0; }
.landscape-card-mc { font-size: 0.88rem; font-weight: 700; color: var(--text); font-family: var(--mono); }
.landscape-card-share { font-size: 0.68rem; color: var(--text-muted); font-family: var(--mono); }

@media (max-width: 600px) { .landscape-grid { gap: 0.3rem; } }

/* SECTION */
.section-title { font-family: var(--sans); font-size: clamp(1.4rem, 3.5vw, 1.7rem); color: var(--text); margin-bottom: 0.6rem; }
.section-intro { font-size: 1.1rem; color: var(--text); max-width: 460px; line-height: 1.6; margin-bottom: 1.75rem; opacity: 0.75; }

/* RUNWAY */
.progress-track { margin-top: 2rem; margin-bottom: 4.5rem; background: rgba(255,255,255,0.03); border-radius: 8px; height: 8px; position: relative; overflow: visible; border: 1px solid rgba(255,255,255,0.04); }
.progress-fill { height: 100%; border-radius: 8px; background: var(--accent); position: relative; }
.progress-fill::before { content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.progress-fill::after { content: var(--pct-label, '1.40%'); position: absolute; right: -14px; top: -26px; font-size: 1rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.progress-markers { position: absolute; top: 0; left: 0; right: 0; height: 100%; }
.progress-marker { position: absolute; top: -4px; width: 1px; height: 16px; background: var(--text-muted); }
.progress-marker.reached { background: var(--accent); opacity: 0.5; }
.progress-marker.next { opacity: 0.5; animation: pulse-marker 2.5s ease-in-out infinite; background: var(--accent); box-shadow: 0 0 6px rgba(45,212,191,0.4); }
@keyframes pulse-marker { 0%, 100% { opacity: 0.5; box-shadow: 0 0 6px rgba(45,212,191,0.4); } 50% { opacity: 0.25; box-shadow: 0 0 12px rgba(45,212,191,0.6); } }
.progress-marker.future { opacity: 0.08; }
.progress-marker-label { position: absolute; top: 20px; font-size: 1rem; font-weight: 700; transform: translateX(-50%); }
.progress-marker.reached .progress-marker-label { color: var(--accent); }
.progress-marker.next .progress-marker-label { color: var(--text-secondary); }
.progress-marker.future .progress-marker-label { color: var(--text-muted); }

.next-milestone { text-align: center; font-family: var(--sans); font-size: 0.95rem; color: var(--text-secondary); margin-top: 0; margin-bottom: 1.75rem; letter-spacing: 0.02em; }
.next-milestone strong { color: var(--accent); font-weight: 600; font-family: var(--sans); }
.runway { margin-top: 2rem; }
.runway-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.85rem; }
.runway-item:last-child { margin-bottom: 0; }
.runway-item.crossed { border-color: rgba(45,212,191,0.15); background: linear-gradient(135deg, rgba(45,212,191,0.03) 0%, var(--bg-card) 100%); }
.runway-item.current { border-color: rgba(45,212,191,0.25); }
.runway-marker { flex-shrink: 0; width: 48px; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 1.5rem; font-weight: 700; color: var(--text-muted); padding-top: 0.1rem; }
.runway-item.crossed .runway-marker { color: var(--accent); }
.runway-item.current .runway-marker { color: var(--accent); }
.runway-item.current .runway-threshold { color: var(--accent); }
.status-next-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(45,212,191,0.2); border-top-color: var(--accent); box-sizing: border-box; animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .status-next-dot { animation: none; background: var(--accent); border-color: var(--accent); opacity: 0.85; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.runway-content { flex: 1; }
.runway-threshold { font-family: var(--sans); font-size: 1.1rem; color: var(--text); }
.runway-item.crossed .runway-threshold { color: var(--accent); }
.runway-desc { font-size: 1rem; color: var(--text-secondary); margin-top: 0.35rem; line-height: 1.6; }
.runway-meta { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4rem; }
.runway-achieved { font-size: 0.82rem; color: var(--accent); margin-top: 0.4rem; font-weight: 500; letter-spacing: 0.01em; }
.runway-market-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; line-height: 1.5; font-style: italic; }
.runway-next-label { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.18); border-radius: 4px; padding: 0.15em 0.5em; margin-top: 0.25rem; margin-bottom: 0.1rem; }
.runway-projection { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; opacity: 0.7; font-style: italic; }
.runway-eta { font-size: 0.8rem; color: var(--accent-light); margin-top: 0.25rem; opacity: 0.85; }
.runway-eta-icon { margin-right: 0.2em; font-style: normal; }
.runway-eta-distant { color: var(--text-muted); }
.runway-status { align-self: center; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.runway-status.reached { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.runway-status.reached svg { width: 14px; height: 14px; }
.runway-status.reached svg path { stroke: var(--bg); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.runway-status.reached.tick-draw svg path { animation: drawTick 0.6s ease forwards; }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
.runway-status.next { color: var(--accent); }
.runway-status.future { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.08); }

/* Milestone accordion — collapsed by default, smooth expand */
.runway-item { cursor: pointer; flex-wrap: wrap; transition: border-color 0.2s, background 0.2s; }
.runway-details { max-height: 0; overflow: hidden; transition: max-height 200ms ease; }
.runway-item.ms-expanded .runway-details { max-height: 300px; }
/* Chevron indicator */
.runway-chevron { align-self: center; flex-shrink: 0; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; margin-left: 0.5rem; transition: transform 200ms ease; }
.runway-chevron::before { content: ''; display: block; width: 7px; height: 7px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-top: -2px; }
.runway-item.ms-expanded .runway-chevron { transform: rotate(180deg); }
.runway-item.ms-expanded .runway-chevron::before { border-color: var(--accent); }
@media (hover: hover) { .runway-item:hover { border-color: rgba(255,255,255,0.15); } .runway-item:hover .runway-chevron::before { border-color: var(--accent); } }

/* RATIO SHIFT CELEBRATION */
.shift-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(10,14,20,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(45,212,191,0.25); padding: 0.85rem 1.5rem; text-align: center; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.shift-banner.visible { transform: translateY(0); }
.shift-banner-text { font-family: var(--sans); font-size: 1.05rem; color: var(--text); letter-spacing: 0.01em; }
.shift-banner-text strong { color: var(--accent); font-weight: 700; font-family: var(--sans); font-size: 1rem; }
.shift-banner-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: 0.5rem 0.75rem; margin-left: 0.5rem; vertical-align: middle; transition: color 0.2s; min-height: 44px; }
.shift-banner-close:hover { color: var(--text); }
@keyframes hero-shimmer { 0% { opacity: 1; filter: brightness(1); } 30% { opacity: 0.7; filter: brightness(1.4); } 100% { opacity: 1; filter: brightness(1); } }

/* SCROLL TO TOP */
.scroll-top { position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); right: 1.5rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10,14,20,0.85); color: var(--text-muted); font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s, color 0.2s, border-color 0.2s; z-index: 100; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .scroll-top:hover { color: var(--accent); border-color: rgba(45,212,191,0.3); } }
/* (Footer styles are now in the page-footer block at top of file) */
.hero-quiet-links { text-align: center; margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.02em; }
.hero-quiet-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.hero-quiet-links a:hover { color: var(--accent); }
.share-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; padding: 0.55rem 1.2rem; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--accent); background: rgba(45,212,191,0.06); border: 1px solid rgba(45,212,191,0.18); border-radius: 6px; text-decoration: none; transition: all 0.25s ease; letter-spacing: 0.02em; cursor: pointer; }
.share-cta:hover { background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.35); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 12px rgba(45,212,191,0.15); }
.share-cta:active { transform: translateY(0); }
.share-cta svg { opacity: 0.75; transition: opacity 0.2s; }
.share-cta:hover svg { opacity: 1; }
.share-cta-row { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.ic-issuer-others { display: block; cursor: pointer; }
.ic-issuer-others:hover { background: rgba(45,212,191,0.06); border-color: rgba(45,212,191,0.25); }
.ic-issuer-others .ic-issuer-chevron { color: var(--accent); }
.share-cta-hero { display: flex; width: fit-content; padding: 0.5rem 1.25rem; font-size: 0.8rem; max-width: 580px; box-sizing: border-box; margin: 0.75rem auto 0; }
.dot-hint { font-family: var(--sans); font-size: 0.65rem; color: rgba(255,255,255,0.18); text-align: center; margin: 0.5rem 0 0; letter-spacing: 0.01em; }
.share-cta-inline { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 5px; text-decoration: none; transition: all 0.2s; cursor: pointer; vertical-align: middle; }
.share-cta-inline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: var(--text); }
.subscribe-form { display: flex; gap: 0; margin: 1rem auto 0; max-width: 380px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: border-color 0.2s; }
.subscribe-form:focus-within { border-color: var(--accent); }
.subscribe-form input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--sans); font-size: 0.85rem; padding: 0.6rem 0.85rem; outline: none; min-width: 0; }
.subscribe-form input::placeholder { color: var(--text-muted); }
.subscribe-form button { background: var(--accent); color: var(--bg); border: none; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; padding: 0.6rem 1rem; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
.subscribe-form button:hover { opacity: 0.85; }
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(10,14,20,0.3); border-top-color: var(--bg); border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }
.sub-status { text-align: center; font-size: 0.8rem; color: var(--accent); margin-top: 0.4rem; min-height: 1.2em; }

/* In-site preference picker */
.site-prefs { max-width: 520px; margin: 0.75rem auto 0; animation: gate-fade-in 0.4s ease both; }
.site-prefs.hidden { display: none; }
.site-pref-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.3rem; }
.site-pref-toggle { display: flex; align-items: flex-start; gap: 0.4rem; padding: 0.4rem 0.5rem; border-radius: 6px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: border-color 0.2s, background 0.2s; text-align: left; }
.site-pref-toggle:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.site-pref-toggle input { display: none; }
.site-pref-check { flex-shrink: 0; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,0.15); background: transparent; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; margin-top: 2px; }
.site-pref-check::after { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: scale(0); transition: transform 0.15s ease; }
.site-pref-toggle input:checked ~ .site-pref-check { border-color: var(--accent); }
.site-pref-toggle input:checked ~ .site-pref-check::after { transform: scale(1); }
.site-pref-toggle input:disabled ~ .site-pref-check { opacity: 0.5; }
.site-pref-text { display: flex; flex-direction: column; gap: 0; }
.site-pref-text strong { font-size: 0.72rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.site-pref-desc { font-size: 0.6rem; color: var(--text-muted); line-height: 1.35; opacity: 0.55; margin-top: 0.1rem; }
.site-pref-link { color: var(--accent); text-decoration: none; opacity: 0.8; }
.site-pref-link:hover { opacity: 1; text-decoration: underline; }
.site-pref-all { grid-column: 1 / -1; padding: 0.3rem 0.5rem; justify-content: center; }
.site-prefs-saving, .site-prefs-saved { font-size: 0.72rem; text-align: center; margin: 0.4rem 0 0; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.site-prefs-saving { color: var(--text-muted); }
.site-prefs-saved { color: var(--accent); font-weight: 600; }
.site-prefs-saving.hidden, .site-prefs-saved.hidden { display: none; }

/* Milestone signup section */
.milestone-signup { text-align: center; margin: 2.5rem auto 0; padding: 2rem 0 0; border-top: 1px solid var(--border); max-width: 480px; }
.milestone-signup--compact { max-width: none; margin: 0; padding: 1rem 0 1.2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; }
.milestone-signup-heading { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 0 0 0.35rem; }
.milestone-signup--compact .milestone-signup-heading { font-size: 1.05rem; margin: 0 0 0.2rem; }
.milestone-signup-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; line-height: 1.5; }
.milestone-signup--compact .milestone-signup-sub { font-size: 0.82rem; margin: 0; }
.milestone-signup--compact .subscribe-form { margin: 0; }

/* More alert options toggle */
.site-prefs { text-align: center; }
.more-alerts-toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: 1px solid rgba(45,212,191,0.25); border-radius: 999px; color: var(--accent); font-family: var(--sans); font-size: 0.82rem; font-weight: 500; cursor: pointer; padding: 0.5rem 0.9rem; margin: 0.5rem auto 0; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.more-alerts-toggle:hover { background: rgba(45,212,191,0.08); border-color: rgba(45,212,191,0.5); }
.more-alerts-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.more-alerts-toggle.is-open .more-alerts-arrow { transform: rotate(180deg); }
.more-alerts-panel.hidden { display: none; }
.more-alerts-panel { animation: gate-fade-in 0.3s ease both; margin-top: 0.6rem; text-align: left; }

/* (data-timestamp styles are now in the page-footer block at top of file) */

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; }
.scroll-fade { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.scroll-fade.visible { opacity: 1; transform: translateY(0); }
.scroll-reveal { overflow: hidden; }
.scroll-reveal span { display: inline-block; opacity: 0; transform: translateX(-10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.scroll-reveal.visible span { opacity: 1; transform: translateX(0); }
.animate.visible { animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.runway-item { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.runway-item.revealed { opacity: 1; transform: translateY(0); }
.progress-fill { width: 0 !important; transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; will-change: width; }
.progress-fill.animated { width: var(--target-width) !important; }
.progress-fill::before, .progress-fill::after { opacity: 0; transition: opacity 0.3s ease 0.8s; }
.progress-fill.animated::before, .progress-fill.animated::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .animate, .hero-number, .hero-desc { opacity: 1; transform: none; }
  .page-footer { opacity: 0.5; transform: none; }
  .progress-fill { transition: none; width: var(--target-width) !important; }
  .progress-fill::before, .progress-fill::after { opacity: 1; }
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; color: #1a1a1a; }
  .nav, .scroll-top, .pw-gate, .share-cta, .hero-share-icon, .subscribe-form, .chart-skeleton { display: none !important; }
  .hero-number { color: #0d9488; opacity: 1 !important; }
  .hero-number.loading { animation: none; }
  section { padding: 1.5rem 0; page-break-inside: avoid; }
  .animate, .hero-number, .hero-desc { opacity: 1; transform: none; }
  .page-footer { opacity: 0.5; transform: none; }
  .progress-fill { width: var(--target-width) !important; background: #0d9488; }
  /* Expand all collapsed content for print */
  .thesis-block p, .landscape-card-desc, .runway-desc, .runway-meta, .runway-eta, .runway-achieved, .runway-market-note, .runway-projection, .faq-a { max-height: none !important; opacity: 1 !important; display: block !important; overflow: visible !important; }
  /* Chart canvas won't print — show fallback text */
  .chart-wrap canvas { display: none; }
  .chart-wrap::after { content: 'Chart data available at digitaldollardominance.com'; display: block; text-align: center; padding: 2rem; color: #666; font-style: italic; }
}

[dir="rtl"] { text-align: right; }
[dir="rtl"] .hero, [dir="rtl"] .hero-stats { text-align: center; }
[dir="rtl"] .nav-inner, [dir="rtl"] .footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { direction: ltr; }
[dir="rtl"] .runway-item { flex-direction: row-reverse; }
[dir="rtl"] .runway-content { text-align: right; }
[dir="rtl"] .latest-context { border-left: none; border-right: 2px solid var(--accent); border-radius: 6px 0 0 6px; }
[dir="rtl"] .scroll-top { right: auto; left: 1.5rem; }
@media (max-width: 600px) {
  [dir="rtl"] .footer-inner { flex-direction: column; }
  [dir="rtl"] .footer-links { justify-content: center; }
}

@media (max-width: 767px) {
  /* MOBILE — document scrolls vertically */

  /* Page lets contents expand; no reserved bottom gap for a fixed footer */
  .page { height: auto; min-height: 100vh; padding-bottom: 0; }

  /* Tighter header */
  .page-header { padding: 0.5rem 1rem; }
  .page-header .nav-brand svg { width: 30px; height: 30px; }

  /* Number — reduced for mobile */
  .hero-number { font-size: clamp(3rem, 12vw, 4.5rem); margin-bottom: 0.35rem; }

  /* Source / data row — tighter gap below */
  .hero-data-row { font-size: 0.62rem; margin-bottom: 0.5rem; }

  /* Paragraph — readable mobile sizing */
  .hero-desc { font-size: 15px; line-height: 1.75; margin-bottom: 0.35rem; padding: 0 16px; max-width: 100%; font-style: normal; }

  /* Share button — compact */
  .share-cta-hero { padding: 0.35rem 1rem; font-size: 0.75rem; margin-top: 0.35rem; }

  /* Dot hint — tighter */
  .dot-hint { margin-top: 0.25rem; font-size: 0.6rem; }
}

@media (max-width: 375px) {
  .hero-number { font-size: 2.8rem; margin-bottom: 0.3rem; }
  .hero-data-row { margin-bottom: 0.4rem; }
  .hero-desc { font-size: 15px; line-height: 1.7; padding: 0 14px; margin-bottom: 0.3rem; max-width: 100%; font-style: normal; }
  .share-cta-hero { margin-top: 0.3rem; }
  .page-footer { font-size: 0.48rem; }
}

/* ============================================
   DESKTOP SCALING (Phase 2)
   Hero, typography, and fixed UI scale up on
   wider viewports. Mobile/tablet rules above
   are all max-width and remain authoritative
   below 1024px.
   ============================================ */
@media (min-width: 1024px) {
  .hero-inner { max-width: 900px; }
  .hero-number { font-size: clamp(88px, 9vw, 112px); }
  .section-title { font-size: clamp(1.7rem, 3vw, 2rem); }
  .hero-stats-row { gap: 1.1rem 2.75rem; }
  .page-header .utc-clock { font-size: 0.82rem; }
  .subscribe-form { max-width: 420px; }
}
@media (min-width: 1440px) {
  .hero-inner { max-width: 960px; }
  .hero-number { font-size: clamp(112px, 9vw, 128px); }
  .section-title { font-size: clamp(2rem, 3vw, 2.2rem); }
  .activity-feed { max-width: 680px; }
}
/* Anchor fixed UI to the content column on ultrawide, so the
   scroll-top button doesn't float off into the empty margins beside
   1280px content. */
@media (min-width: 1600px) {
  .scroll-top { right: max(1.5rem, calc((100vw - 1280px) / 2 + 1rem)); }
  [dir="rtl"] .scroll-top { right: auto; left: max(1.5rem, calc((100vw - 1280px) / 2 + 1rem)); }
}

/* Constrain the single-screen layout on wide viewports so the terminal
   hero, formula card, and stats grid don't sprawl edge-to-edge on
   common laptop and desktop sizes. #bgCanvas (the world map backdrop)
   is position: fixed and continues to fill the full viewport behind
   the centered content column. */
@media (min-width: 1280px) {
  .page { max-width: 1200px; margin: 0 auto; }
}
@media (min-width: 1440px) {
  .page { max-width: 1320px; }
}
@media (min-width: 1600px) {
  .page { max-width: 1440px; }
}
@media (min-width: 1920px) {
  .page { max-width: 1600px; }
}

/* Dedicated live-scenario section. The story card is contained here so it
   cannot float over the terminal hero above or the narrative/signup
   sections below. The world-map canvas (#bgCanvas) remains a fixed
   ambient backdrop across the full page; this section is the one place
   where the full map + story composition is meant to read together. */
.live-scenario-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 1.75rem 22px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 15, 0.18) 100%);
}

/* Payment story banner (B4) — anchored to the top-right of its parent
   .live-scenario-section so the card reads as the caption for the
   corridor comet currently in flight on the map backdrop. The banner
   itself is a flat publication-style block: teal left stripe (glowing),
   top/bottom hairlines in teal-at-20%-alpha, transparent bg fading to
   near-black at the bottom, italic-serif quote as the emotional
   payload. */
#paymentStoryCard.story-banner {
  position: relative;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
  padding: 18px 20px 20px;
  min-height: 108px;
  opacity: 1;
  transition: opacity 350ms ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 14px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Pre-payment: transparent, placeholder only. */
#paymentStoryCard.story-banner.is-pre .sb-tag,
#paymentStoryCard.story-banner.is-pre .sb-quote,
#paymentStoryCard.story-banner.is-pre .sb-meta,
#paymentStoryCard.story-banner.is-pre .sb-pager {
  display: none;
}
#paymentStoryCard.story-banner .sb-placeholder {
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(56, 226, 194, 0.3);
  letter-spacing: 0.14em;
  text-align: center;
}
/* Live state: show chrome (left stripe + hairlines + subtle gradient). */
#paymentStoryCard.story-banner.is-live {
  border-top: 1px solid rgba(var(--story-chain-rgb, 45, 212, 191), 0.22);
  border-bottom: 1px solid rgba(var(--story-chain-rgb, 45, 212, 191), 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(10, 14, 20, 0.82) 0%,
    rgba(7, 10, 13, 0.94) 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(var(--story-chain-rgb, 45, 212, 191), 0.08);
}
#paymentStoryCard.story-banner.is-live .sb-placeholder { display: none; }
#paymentStoryCard.story-banner.is-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--story-chain-color, #38E2C2), var(--story-chain-color-alt, var(--story-chain-color, #38E2C2)));
  box-shadow: 0 0 12px rgba(var(--story-chain-rgb, 56, 226, 194), 0.92);
}

/* Tag line: live dot + "LIVE SCENARIO · ROUTE". */
#paymentStoryCard .sb-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--story-chain-text, #9BF3E1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#paymentStoryCard .sb-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--story-chain-color, #38E2C2);
  box-shadow: 0 0 10px rgba(var(--story-chain-rgb, 56, 226, 194), 0.9);
  animation: sbLivePulse 1.4s ease-in-out infinite;
}
@keyframes sbLivePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
#paymentStoryCard .sb-tag .route { color: rgba(255, 255, 255, 0.72); }
#paymentStoryCard .sb-tag .sep { color: rgba(255, 255, 255, 0.25); }

/* Quote: italic serif, the emotional payload. */
#paymentStoryCard .sb-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.35;
  color: #FFFFFF;
  letter-spacing: -0.005em;
  transition: opacity 0.3s ease;
}
#paymentStoryCard .sb-quote .ac {
  color: var(--story-chain-text, #2DD4BF);
  font-style: normal;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #paymentStoryCard .sb-quote .ac {
    background: var(--story-chain-text-gradient, linear-gradient(92deg, var(--story-chain-color, #2DD4BF) 0%, var(--story-chain-color-alt, var(--story-chain-color, #2DD4BF)) 100%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Meta row: coin · chain · time. */
#paymentStoryCard .sb-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 10px;
  flex-wrap: wrap;
  transition: opacity 0.3s ease;
}
#paymentStoryCard .sb-meta .sep { color: rgba(255, 255, 255, 0.1); }

/* Pager dots: hidden per design — was one dash per tracked scenario. */
#paymentStoryCard .sb-pager { display: none; }

/* Desktop: give the scenario section breathing room so the card reads as
   its own composition over the map backdrop, but don't consume a full
   viewport of empty space on tall screens. */
@media (min-width: 1440px) {
  .live-scenario-section {
    padding: 32px 1.75rem 24px;
  }
  #paymentStoryCard.story-banner {
    max-width: 440px;
  }
}

/* THESIS (legacy — now inside explainer panel) */
@media (max-width: 600px) { .thesis-mobile-hide { display: none; } }
/* Content sections — transparent so background dots show through */
#chart { background: transparent; }
#lowerPage { position: relative; background: transparent; }

/* Lower page sections — content above emission overlay */
#lowerPage > section > .container, #lowerPage > footer > .container { position: relative; z-index: 1; }
/* ISSUANCE */
.issuance-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.issuance-legend-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; padding: 0.25rem 0.6rem; border-radius: 4px; border: 1px solid transparent; }
@media (hover: hover) { .issuance-legend-item:hover { color: var(--text); border-color: var(--border); } }
.issuance-legend-item.hidden { opacity: 0.3; text-decoration: line-through; }
.issuance-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ISSUANCE EMISSION — absolute overlay within #lowerPage wrapper */
.issuance-emission { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; transition: opacity 0.8s ease; overflow: visible; }
.issuance-emission.active { opacity: 1; }

/* Old source replaced by console */
.issuance-emission-source { display: none; }

/* ── Issuance concept block ── */
.issuance-concept { padding: var(--gap-lg) 0 var(--gap) 0; }
#issuance .section-title { margin-bottom: 0.6rem; }
.issuance-intro { max-width: 520px; margin: 1rem auto 2.5rem; text-align: center; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.50); font-family: var(--sans); }

/* ── Hero milestone bar — compact summary above issuer rows ── */
.hero-milestone {
  max-width: 520px; margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-milestone-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.hero-milestone-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,0.4); letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-milestone-pct {
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700;
  color: var(--accent, #2dd4bf); line-height: 1;
}
.hero-milestone-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.06); overflow: hidden;
  margin-bottom: 0.4rem;
}
.hero-milestone-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent, #2dd4bf), rgba(45,212,191,0.6));
  width: var(--hero-fill, 0%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-milestone-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.hero-milestone-info {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 500;
  color: rgba(255,255,255,0.35); line-height: 1.4;
}
.hero-milestone-info strong { color: rgba(255,255,255,0.55); font-weight: 600; }
.hero-milestone-share {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  color: rgba(255,255,255,0.25); text-decoration: none;
  white-space: nowrap; display: flex; align-items: center; gap: 0.25rem;
  transition: color 0.2s;
}
.hero-milestone-share:hover { color: rgba(45,212,191,0.5); }
.hero-milestone-share svg { opacity: 0.6; }

/* ── Issuer console — container for horizontal rows ── */
.ic-console {
  position: relative; max-width: 100%; margin: 0 auto;
  padding: 0; border: none; background: none; overflow: visible;
}
.ic-console::before { display: none; }

/* Column header label */
.ic-col-header {
  text-align: right; font-family: var(--mono); font-size: 0.6rem;
  color: rgba(255,255,255,0.22); padding: 0 calc(0.65rem + 14px + 0.5rem) 0.35rem 0;
  letter-spacing: 0.03em;
}

/* Issuer row stagger-in animation */
.ic-issuer.ic-stagger-in {
  opacity: 0; transform: translateY(8px);
  will-change: opacity, transform;
}
.ic-issuer.ic-stagger-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Issuer rows — stacked vertically */
.ic-issuers {
  display: flex; flex-direction: column;
  gap: 0.35rem; width: 100%;
}

/* Individual issuer — flex column for row + expandable detail */
.ic-issuer {
  display: flex; flex-direction: column; position: relative;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
/* Background fill bar — proportional to supply vs leader */
.ic-issuer-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--ic-fill, 0%);
  background: var(--ic-color);
  opacity: 0.06; border-radius: 10px 0 0 10px;
  pointer-events: none; transition: width 0.6s ease;
}
/* Per-row token container */
.ic-row-tokens {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
/* Main content row — single horizontal line */
.ic-issuer-row {
  display: flex; align-items: center; position: relative; z-index: 1;
  padding: 0.5rem 0.65rem; gap: 0.5rem;
}
/* Rank number — small, muted */
.ic-issuer-rank {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.3); min-width: 1.5rem; text-align: center;
  flex-shrink: 0; line-height: 1;
}
/* Logo */
.ic-issuer-icon {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px -2px var(--ic-color, rgba(255,255,255,0.15));
  flex-shrink: 0; position: relative;
}
.ic-issuer-icon svg { width: 100%; height: 100%; display: block; }
/* Name + ticker inline */
.ic-issuer-nameblock {
  display: flex; align-items: baseline; gap: 0.3rem;
  min-width: 0; flex-shrink: 0;
}
.ic-issuer-name {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.88); white-space: nowrap; line-height: 1;
}
.ic-issuer-ticker {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  color: rgba(255,255,255,0.32); letter-spacing: 0.04em; white-space: nowrap;
}
/* Supply — right-aligned monospace */
.ic-issuer-supply {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.85); white-space: nowrap;
  margin-left: auto; line-height: 1;
}
/* Share badge — uses issuer brand colour via inline style */
.ic-issuer-share {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 600;
  border-radius: 10px; padding: 0.1rem 0.4rem; white-space: nowrap;
}
/* 30d change */
.ic-issuer-change {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 500;
  white-space: nowrap; min-width: 4rem; text-align: right;
}
.ic-change-up { color: #22c55e; }
.ic-change-down { color: #ef4444; }
.ic-change-arrow { font-size: 0.75em; vertical-align: baseline; margin-right: 0.1em; }
.ic-change-tf { color: var(--text-muted); font-weight: 400; font-size: 0.9em; }
/* Chevron */
.ic-issuer-chevron {
  color: rgba(255,255,255,0.2); flex-shrink: 0;
  transition: transform 0.25s ease; width: 14px; height: 14px;
}
.ic-issuer.ic-expanded .ic-issuer-chevron { transform: rotate(90deg); }
/* Expandable detail area */
.ic-issuer-expand {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0 0.75rem 0 3.2rem; position: relative; z-index: 1;
}
.ic-issuer.ic-expanded .ic-issuer-expand {
  max-height: 220px; opacity: 1; padding: 0.15rem 0.75rem 0.7rem 3.2rem;
}
.ic-expand-meta {
  font-family: var(--sans); font-size: 0.72rem; color: rgba(255,255,255,0.45);
  margin-bottom: 0.3rem;
}
.ic-expand-meta a { color: var(--accent-light, #5eead4); text-decoration: none; }
.ic-expand-meta a:hover { text-decoration: underline; }
.ic-expand-chains {
  display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.3rem;
}
.ic-chain-tag {
  font-family: var(--mono); font-size: 0.55rem; font-weight: 500;
  color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
  padding: 0.1rem 0.35rem; letter-spacing: 0.02em;
}
.ic-expand-chainbar { margin-bottom: 0.3rem; }
.ic-expand-desc {
  font-family: var(--sans); font-size: 0.75rem; line-height: 1.55;
  color: rgba(255,255,255,0.45); margin: 0;
}
/* Chain breakdown bar */
.cb-bar { display: flex; width: 100%; height: 32px; }
.cb-seg { position: relative; min-width: 2px; }
.cb-seg:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.cb-seg:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.cb-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: rgba(10,15,20,0.94); border: 1px solid rgba(45,212,191,0.2); border-radius: 6px;
  padding: 5px 10px; font-size: 0.72rem; color: #e5e7eb; white-space: nowrap;
  z-index: 10; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.4); display: none;
}
@media (hover: hover) {
  .cb-seg:hover { filter: brightness(1.3); }
  .cb-seg:hover .cb-tip { display: block; }
}
.cb-seg.active { filter: brightness(1.3); }
.cb-seg.active .cb-tip { display: block; }
.cb-legend { margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-muted); line-height: 1.7; }
/* Inside issuer expand: tooltip below segment (avoids overflow:hidden clipping) */
.ic-expand-chainbar .cb-tip { bottom: auto; top: calc(100% + 4px); }

/* Breathing glow — subtle ambient pulse on issuers with recent supply change */
.ic-issuer.ic-breathing {
  animation: ic-breathe 3s ease-in-out infinite;
}
@keyframes ic-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ic-color-rgb), 0.05); }
  50%      { box-shadow: 0 0 12px 1px rgba(var(--ic-color-rgb), 0.12); }
}

/* Mint pulse — glow on the logo orb when a token is emitted */
.ic-issuer-icon.ic-mint { animation: ic-mint-glow 0.22s ease-out; }
@keyframes ic-mint-glow {
  0%   { box-shadow: 0 0 12px -2px var(--ic-color); }
  45%  { box-shadow: 0 0 22px 4px var(--ic-color); }
  100% { box-shadow: 0 0 12px -2px var(--ic-color); }
}

/* "About this visual" link inside chart box */
.issuance-about-link {
  position: absolute; bottom: 0.5rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.25); text-decoration: none;
  font-family: var(--sans); transition: color 0.2s;
}
.issuance-about-link:hover { color: rgba(45,212,191,0.5); }

/* ── Interactive issuer row states ── */
.ic-issuer { cursor: pointer; transition: opacity 0.25s ease, border-color 0.25s ease; }
.ic-issuers.has-active .ic-issuer { opacity: 0.4; }
.ic-issuers.has-active .ic-issuer.ic-active { opacity: 1; border-color: var(--ic-color); }
.ic-issuer:hover { border-color: rgba(255,255,255,0.12); }

/* Mint-linked micro-highlight — brief accent on row */
.ic-issuer .ic-issuer-name,
.ic-issuer .ic-issuer-ticker { transition: color 0.3s ease, opacity 0.3s ease; }
.ic-issuer.ic-mint-accent .ic-issuer-name { color: rgba(255,255,255,0.95); }
.ic-issuer.ic-mint-accent .ic-issuer-ticker { color: rgba(255,255,255,0.5); }
.ic-issuers.has-active .ic-issuer.ic-mint-accent:not(.ic-active) { opacity: 0.5; }

/* ── Issuer detail panel (legacy — hidden, details now inline) ── */
.issuer-detail-panel { display: none; }

/* ── Guidance cue below orb selector ── */
.ic-cue {
  text-align: center; font-family: var(--sans); font-size: 0.65rem;
  color: rgba(255,255,255,0.22); letter-spacing: 0.03em;
  margin-top: 0.6rem; transition: opacity 0.4s;
}
.ic-issuers.has-active ~ .ic-cue { opacity: 0; }
.ic-disclaimer {
  display: block; text-align: center; margin-top: 0.5rem;
  font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.18); text-decoration: none; transition: color 0.2s;
}
.ic-disclaimer span { color: rgba(45,212,191,0.35); }
.ic-disclaimer:hover { color: rgba(255,255,255,0.3); }
.ic-disclaimer:hover span { color: rgba(45,212,191,0.55); }

/* ── Chart bar: viewing label + reset pill ── */
.issuer-chart-bar {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  font-family: var(--sans);
}
.issuer-chart-bar.visible { max-height: 2.5rem; opacity: 1; margin-top: 0.75rem; margin-bottom: 0.6rem; }
.issuer-active-label {
  font-size: 0.72rem; font-weight: 500; color: var(--accent); opacity: 0.7;
  letter-spacing: 0.02em; white-space: nowrap;
}
.issuer-reset-pill {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 500;
  color: var(--text-muted); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 0.25rem 0.7rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.issuer-reset-pill:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }

/* ── Global token flow layer ── */
/* z-index 4 paints tokens above the issuance sections (z-index 3)
   so they visibly emerge from the orbs instead of hiding behind
   the opaque section backgrounds. pointer-events: none keeps
   all interactive elements clickable underneath. */
#globalTokenFlow {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 4; overflow: hidden;
}

/* Tokens travel horizontally within issuer rows */
.ie-token { position: absolute; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.ie-token-icon { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 5px 0 rgba(255,255,255,0.1); }
.ie-token-icon svg { width: 100%; height: 100%; display: block; }
/* Phase 1: mint pulse at spawn — brief scale-in at logo position */
@keyframes ie-mint-appear {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.6; }
}
/* Phase 2: horizontal drift left → right, fading out */
@keyframes ie-emit {
  0%   { transform: translateX(0); opacity: 0.55; }
  60%  { opacity: 0.25; }
  100% { transform: translateX(var(--ie-travel-dist, 400px)); opacity: 0; }
}

/* ── Proof chart — inline below selector ── */
.issuance-proof-inline { margin-top: 1.5rem; }
.issuance-proof-title {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.40); text-align: center;
  letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 1.5rem;
}

/* Keep issuance section above canvas but transparent to show dots */
.issuance-concept { position: relative; z-index: 1; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .issuance-concept { padding: var(--gap-lg) 0 3rem 0; }
  .issuance-intro { font-size: 0.84rem; margin: 0.8rem auto 2rem; max-width: 90%; }

  .hero-milestone { padding: 0.6rem 0.75rem; margin-bottom: 1.2rem; }
  .hero-milestone-label { font-size: 0.6rem; }
  .hero-milestone-pct { font-size: 1.15rem; }
  .hero-milestone-info { font-size: 0.58rem; }
  .hero-milestone-share { font-size: 0.55rem; }

  .ic-console { padding: 0; }
  .ic-col-header { font-size: 0.52rem; padding: 0 calc(0.5rem + 12px + 0.35rem) 0.25rem 0; }
  .ic-issuers { gap: 0.3rem; }
  .ic-issuer-row { padding: 0.45rem 0.5rem; gap: 0.3rem; }
  .ic-issuer-rank { font-size: 0.62rem; min-width: 1.2rem; }
  .ic-issuer-icon { width: 22px; height: 22px; }
  .ic-issuer-nameblock { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .ic-issuer-name { font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; }
  .ic-issuer-ticker { font-size: 0.52rem; overflow: hidden; text-overflow: ellipsis; }
  .ic-issuer-share { font-size: 0.5rem; padding: 0.06rem 0.3rem; }
  .ic-issuer-change { font-size: 0.5rem; min-width: 3.2rem; }
  .ic-issuer-supply { font-size: 0.72rem; flex-shrink: 0; }
  .ic-issuer-chevron { width: 12px; height: 12px; }
  .ic-issuer-expand { padding-left: 2.5rem; }
  .ic-issuer.ic-expanded .ic-issuer-expand { padding-left: 2.5rem; }
  .ie-token-icon { width: 18px; height: 18px; }

  .issuance-about-link { font-size: 0.58rem; }

  /* Tighter mobile layout */
  .issuance-concept { padding-bottom: 1.5rem; }
  .issuance-proof-inline { margin-top: 1rem; }
  .issuance-proof-title { font-size: 0.72rem; margin-bottom: 0.8rem; }
  .issuance-legend { display: none; }
  /* issuer detail panel hidden — details are now inline */
  .ic-cue { font-size: 0.6rem; margin-top: 0.5rem; }
  .issuer-active-label { font-size: 0.66rem; }
  .issuer-reset-pill { font-size: 0.6rem; padding: 0.2rem 0.55rem; }
  .issuer-chart-bar.visible { margin-bottom: 0.4rem; }
}

/* ACTIVITY FEED */
.activity-feed { max-width: 520px; margin: 0 auto; }
.activity-empty { text-align: center; font-size: 0.85rem; color: var(--text-muted); opacity: 0.5; }
.activity-item { display: flex; align-items: flex-start; padding: 0 0 1.2rem 0; position: relative; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; will-change: opacity, transform; }
.activity-item.visible { opacity: 1; transform: translateY(0); }
.activity-dot { position: relative; flex-shrink: 0; width: 20px; display: flex; flex-direction: column; align-items: center; padding-top: 0.35rem; }
.activity-dot::before { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.activity-dot.mint::before { background: #22c55e; }
.activity-dot.burn::before { background: #ef4444; }
.activity-dot.m2::before { background: #3b82f6; }
.activity-pin { flex-shrink: 0; width: 20px; display: flex; flex-direction: column; align-items: center; padding-top: 0.25rem; line-height: 1; }
.activity-pin::after { content: ''; display: block; width: 1px; flex: 1; background: var(--border); margin-top: 4px; }
.activity-item.pinned:last-child .activity-pin::after { display: none; }
.activity-dot.milestone::before { background: #f59e0b; }
.activity-dot::after { content: ''; display: block; width: 1px; flex: 1; background: var(--border); margin-top: 4px; }
.activity-item:last-child .activity-dot::after { display: none; }
.activity-left { flex: 1; min-width: 0; padding-left: 0.6rem; }
.activity-title { font-size: 0.88rem; color: var(--text); font-weight: 400; line-height: 1.4; }
.activity-link { color: var(--text); text-decoration: none; transition: color 0.2s; }
.activity-link:hover { color: var(--accent); }
.activity-body { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.activity-source { color: var(--text-muted); text-decoration: none; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.activity-source:hover { opacity: 1; color: var(--accent); }
.activity-source-note { font-size: 0.65rem; color: var(--text-muted); opacity: 0.4; text-align: center; margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.activity-source-note a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.activity-source-note a:hover { color: var(--accent); }
.activity-time { font-size: 0.7rem; color: var(--text-muted); opacity: 0.4; white-space: nowrap; margin-left: 1rem; padding-top: 0.2rem; flex-shrink: 0; }
.activity-summary { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem; margin-bottom: 1rem; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); }
.activity-summary-item { text-align: center; flex: 1; }
.activity-summary-value { font-size: 0.95rem; font-weight: 600; color: var(--text); font-family: var(--mono); }
.activity-summary-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.15rem; }
.activity-summary-arrow { font-size: 0.75em; margin-right: 2px; }
.activity-summary-arrow.up { color: #22c55e; }
.activity-summary-arrow.down { color: #ef4444; }
.activity-summary-item[data-expandable] { position: relative; }
.activity-summary-item[data-expandable]:hover { background: rgba(255,255,255,0.02); border-radius: 6px; }
.activity-summary-chevron { font-size: 0.7em; opacity: 0.5; margin-left: 2px; transition: transform 0.2s ease; display: inline-block; }
.activity-summary-item.expanded .activity-summary-chevron { transform: rotate(180deg); }
.activity-summary-delta { font-size: 0.7em; font-weight: 600; margin-left: 0.3em; white-space: nowrap; }
.activity-summary-delta.up { color: #22c55e; }
.activity-summary-delta.down { color: #ef4444; }
.activity-summary-detail { display: none; margin-top: 0.4rem; padding-top: 0.35rem; border-top: 1px solid var(--border); }
.activity-summary-item.expanded .activity-summary-detail { display: block; }
.activity-summary-flows { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.3rem; font-size: 0.65rem; font-family: var(--mono); }
.activity-flow.up { color: #22c55e; }
.activity-flow.down { color: #ef4444; }
.activity-summary-breakdown { margin-top: 0.35rem; padding-top: 0.25rem; border-top: 1px dashed var(--border); }
.activity-summary-coin { display: flex; justify-content: space-between; font-size: 0.7rem; padding: 0.1rem 0; font-family: var(--mono); }
.activity-summary-coin-name { color: var(--text-muted); }
.activity-summary-coin-diff.up { color: #22c55e; }
.activity-summary-coin-diff.down { color: #ef4444; }

/* TRUSTED BY */
.trusted-section {
  width: 100%;
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.7rem 1.75rem 2.4rem;
  border-top: 1px solid var(--border);
}

.ddd-why-section {
  padding-bottom: 56px;
}

.ddd-why-frame {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px 26px;
  align-items: start;
}

.ddd-why-copy .narrative-body {
  max-width: 34rem;
}

.ddd-why-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ddd-why-point {
  display: grid;
  gap: 0.48rem;
  min-height: 100%;
  padding: 16px 16px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(14,18,24,0.4), rgba(10,13,18,0.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.ddd-why-point-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(155,243,225,0.88);
}

.ddd-why-point p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(232,240,238,0.78);
}

.trusted-section .narrative-body {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.35rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(10,13,18,0.82), rgba(10,13,18,0.72));
  box-shadow: 0 22px 54px rgba(0,0,0,0.22);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.trusted-logo {
  display: grid;
  grid-template-rows: auto 3.1rem 1fr;
  align-content: start;
  gap: 0.55rem;
  min-height: 148px;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.18), transparent 48%),
    linear-gradient(180deg, rgba(18,24,31,0.96), rgba(10,13,18,0.92));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.trusted-logo:hover {
  border-color: rgba(45,212,191,0.34);
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.22), transparent 48%),
    linear-gradient(180deg, rgba(20,26,33,0.98), rgba(10,13,18,0.94));
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.trusted-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 3.1rem;
}

.trusted-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.trusted-logo-badge--ghost {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.trusted-logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.trusted-logo-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(242,247,245,0.96);
  white-space: nowrap;
}

.trusted-logo-copy {
  color: rgba(232,240,238,0.84);
  font-size: 0.84rem;
  line-height: 1.5;
}

.trusted-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(232,240,238,0.92);
}

.trusted-logo-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,240,238,0.66);
}

.trusted-logo--ghost {
  background:
    radial-gradient(circle at top right, rgba(148,163,184,0.1), transparent 48%),
    linear-gradient(180deg, rgba(18,24,31,0.95), rgba(10,13,18,0.9));
}

.trusted-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232,240,238,0.74);
  max-width: 42rem;
}

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

@media (max-width: 600px) {
  .trusted-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .trusted-section .narrative-body {
    padding: 1rem;
    border-radius: 18px;
  }
  .trusted-logos {
    grid-template-columns: 1fr;
  }

  .trusted-logo {
    min-height: auto;
  }
}

/* WHY THIS EXISTS */
/* EMAIL CAPTURE GATE */
/* Story bubble — floating proof points */
.story-bubble { position: absolute; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #e5e7eb; max-width: 260px; pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; background: rgba(255,255,255,0.04); border: 1px solid rgba(45,212,191,0.2); border-radius: 8px; padding: 12px 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); font-style: normal; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story-bubble-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #2DD4BF; margin-bottom: 7px; font-style: normal; }
.story-bubble-text { display: block; font-style: italic; font-size: 14px; line-height: 1.6; }
@media (min-width: 601px) { .story-bubble { font-size: 14px; max-width: 280px; } .story-bubble-label { font-size: 10px; } }
/* Mobile: full-width card, not pinned to a corner. Override JS inline positioning. */
@media (max-width: 600px) {
  .story-bubble {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 80px !important;
    max-width: none !important;
    width: auto !important;
    font-size: 14px;
    padding: 14px 16px;
  }
  .story-bubble-text { font-size: 14px; }
}
.story-dot-ring { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(45,212,191,0.4); animation: story-pulse 3s ease-in-out infinite; pointer-events: none; box-shadow: 0 0 6px rgba(45,212,191,0.15); }
@keyframes story-pulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.6); opacity: 0; } }
.ddd-change { font-size: 0.8em; font-weight: 600; margin-left: 0.3em; }
.ddd-change.up { color: #22c55e; }
.ddd-change.down { color: #ef4444; }
.ddd-change.flat { color: var(--text-muted); }
.hero-data-row a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1px; transition: border-color 0.2s ease, color 0.2s ease; }
.hero-data-row a:hover { border-bottom-color: var(--accent); color: var(--accent); }
#activity { scroll-margin-top: 70px; position: relative; }
#dotsExplainer { scroll-margin-top: 70px; }
.stat-delta { font-size: 0.65rem; font-weight: 600; margin-left: 0.25em; white-space: nowrap; }
.stat-delta.up { color: #22c55e; }
.stat-delta.down { color: #ef4444; }
.lc-delta { display: block; font-size: 0.7rem; font-weight: 600; margin-top: 0.15rem; }
.lc-delta.up { color: #22c55e; }
.lc-delta.down { color: #ef4444; }
.lc-delta.flat { color: var(--text-muted); }

/* ACTIVITY FEED — Show More button */
.activity-show-more { display: block; width: 100%; padding: 0.6rem 0; margin-top: 0.25rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--text-muted); background: none; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; text-align: center; transition: color 0.2s, border-color 0.2s; letter-spacing: 0.02em; }
.activity-show-more:hover { color: var(--accent); border-color: rgba(45,212,191,0.25); }
.activity-item.activity-hidden { display: none; }
.activity-item.activity-hidden.activity-revealed { display: flex; }

/* ACTIVITY FEED — timestamp disclaimer */
.activity-disclaimer { font-size: 0.62rem; color: var(--text-muted); opacity: 0.4; text-align: center; margin-top: 0.75rem; line-height: 1.5; }

/* ============================================
   H5: Tap feedback on expandable cards
   Immediate visual acknowledgment on press
   ============================================ */
.landscape-card:active,
.thesis-block:active,
.runway-item:active,
.faq-q:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ============================================
   Site-wide clickability affordance
   Every interactive element: pointer, hover, active
   ============================================ */

/* Activity summary expandable items */
.activity-summary-item[data-expandable] { cursor: pointer; transition: background 0.2s; }
.activity-summary-item[data-expandable]:active { background: rgba(45,212,191,0.06); border-radius: 6px; }

/* Issuer rows — active state for mobile feedback */
.ic-issuer:active { transform: scale(0.99); border-color: rgba(255,255,255,0.15); }

/* Country milestone surpassed items — active state */
.cm-surpassed-item:active { background: rgba(45,212,191,0.1); }

/* Disclaimer — interactive on click (toggles footer) */
.footer-disclaimer-toggle:active { opacity: 0.6; }

/* All buttons without explicit active state */
.cm-toggle-btn:active { background: rgba(45,212,191,0.08); }
.activity-show-more:active { background: rgba(45,212,191,0.06); border-color: rgba(45,212,191,0.3); }
.share-cta:active { transform: scale(0.97); }
.more-alerts-toggle:active { color: var(--accent); opacity: 1; }
.shift-banner-close:active { color: var(--accent); }
.issuance-legend-item:active { background: rgba(255,255,255,0.04); border-color: var(--border); }
.site-pref-toggle:active { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.subscribe-form button:active { opacity: 0.7; }
.issuer-reset-pill:active { background: rgba(255,255,255,0.08); }

/* ============================================
   C4: Landscape cards — add expand indicator
   ============================================ */
.landscape-card::after {
  content: '+';
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.landscape-card.expanded::after { content: '−'; }

/* ============================================
   Mobile spacing cleanup — tighter vertical rhythm
   Systematic reductions for a compact, premium feel
   ============================================ */
@media (max-width: 600px) {

  /* ── Section titles & intros ── */
  .section-title { margin-bottom: 0.4rem; }
  .section-intro { margin-bottom: 1.25rem; font-size: 0.95rem; }

  /* ── BG Explainer — trimmed on mobile ── */
  .bg-explainer { padding: 0.25rem 0 0.75rem; }
  .bg-explainer-card { padding: 0.6rem 0.85rem; }
  .bg-explainer-title { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .bg-explainer-line { font-size: 0.85rem; line-height: 1.45; margin: 0.2rem 0; }
  .bg-explainer-line:not(.dot-cta):nth-child(n+6) { display: none; }

  /* ── Thesis section ── */
  #thesis { padding: 1.25rem 0 !important; }
  .thesis-quote { margin-bottom: 1.5rem; font-size: clamp(1rem, 2.8vw, 1.2rem); }
  .thesis-grid { gap: 0.35rem; }

  /* ── Chart section — keep breathing room but trim excess ── */
  #chart { padding: var(--gap-lg) 0 1.75rem; }
  .chart-context { margin-top: 0.4rem; font-size: 0.92rem; }
  .chart-comparison { margin-top: 0.5rem; margin-bottom: 0.15rem; }
  .latest-context { margin-top: 0.85rem; padding: 0.65rem 0.85rem; }
  .latest-context-label { font-size: 0.88rem; margin-bottom: 0.2rem; }
  .latest-context-text { font-size: 0.92rem; }
  .latest-context-text li { padding: 0.3rem 0; }

  /* ── Issuance ("Who issues the digital dollars") ── */
  .issuance-concept { padding: 2rem 0 1.25rem 0; }
  .issuance-intro { margin: 0.6rem auto 1.5rem; }
  #issuance .section-title { margin-bottom: 0.4rem; }
  .ic-console { padding: 0.5rem 0 0; }
  .issuance-proof-inline { margin-top: 0.75rem; }
  .issuance-proof-title { margin-bottom: 0.6rem; }
  /* issuer detail panel hidden — details are now inline */

  /* ── Landscape — tighter ── */
  #landscape { padding: 1rem 0 !important; }
  .landscape-grid { gap: 0.35rem; margin-bottom: 0.75rem; }

  /* ── Activity feed — compact supporting context ── */
  #activity { padding: 0.75rem 0 !important; }
  #activity .section-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
  .activity-item { padding-bottom: 0.6rem; }
  .activity-title { font-size: 0.8rem; }
  .activity-body { font-size: 0.68rem; }
  .activity-time { font-size: 0.62rem; }
  .activity-summary { padding: 0.45rem 0.65rem; margin-bottom: 0.6rem; }
  .activity-summary-value { font-size: 0.82rem; }
  .activity-summary-label { font-size: 0.58rem; }

  /* ── Chain breakdown — tighter ── */
  #chains { padding: 1rem 0 !important; }
  #chains .section-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.4rem; }
  .chain-summary { margin-bottom: 0.75rem; }
  .gravity-wells-wrap { margin-bottom: 0.35rem; }
  .supply-change-wrap { margin-top: 1.1rem; padding-top: 0.9rem; }
  .supply-change-title { font-size: 0.72rem; margin-bottom: 0.3rem; }
  .supply-change-feed .activity-title { font-size: 0.78rem; }
  .supply-change-feed .activity-time { font-size: 0.6rem; }

  /* ── Milestone runway ── */
  #milestones { padding: 1.5rem 0; }
  .progress-track { margin-top: 1.25rem; margin-bottom: 3.25rem; }
  .next-milestone { margin-bottom: 1rem; }
  .runway { margin-top: 1.25rem; }
  .runway-item { padding: 0.75rem 0.9rem; margin-bottom: 0.5rem; padding-right: 2.25rem; }

  /* ── Share CTA rows — less vertical breathing ── */
  .share-cta-row { margin-top: 0.6rem; margin-bottom: 0.15rem; }
  .share-cta { padding: 0.45rem 1rem; font-size: 0.78rem; }
  /* ── Subscribe form area ── */
  .subscribe-form { margin-top: 1.25rem; }
  .sub-status { margin-top: 0.3rem; }
  .site-prefs { margin-top: 0.5rem; }

  /* ── Footer — trim top padding ── */
  footer { padding: 2.5rem 0 2rem; }
  .footer-model { margin-bottom: 1.25rem; }
  .data-timestamp { margin-bottom: 0.5rem; }
  .footer-bot { margin-bottom: 1.25rem; }
  .footer-inner { padding-top: 1rem; }

  /* ── Country milestones — mobile ── */
  .cm-surpassed-grid { grid-template-columns: repeat(6, 1fr); gap: 0.3rem; }
  .cm-surpassed-flag .cm-flag-img { width: 28px; height: 28px; }
  .cm-surpassed-name { font-size: 9px; }
  .cm-upcoming-grid { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .cm-card { padding: 0.5rem 0.65rem; }
  .cm-flag-img { width: 28px; height: 28px; }
  .cm-name { font-size: 0.72rem; }
  .cm-m1 { font-size: 0.62rem; }
  .cm-progress-ring { width: 38px; height: 38px; }
  .cm-progress-label { font-size: 0.65rem; }
}

/* ==========================================================
   Country Milestones
   ========================================================== */
/* --- Country Milestones: Section labels --- */
.cm-section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}
.cm-surpassed-label { color: var(--accent); opacity: 0.7; }

/* --- Market cap banner with tick --- */
.cm-mcap-banner {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2DD4BF;
  margin: 0.3rem auto 0.9rem;
  max-width: 680px;
  letter-spacing: 0.02em;
  font-family: var(--mono);
}
.cm-mcap-tick {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2DD4BF;
  margin-right: 0.15rem;
}

/* --- Surpassed: dense flag grid --- */
.cm-surpassed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 0.4rem;
  margin: 0 auto;
  max-width: 680px;
}
@media (min-width: 601px) {
  .cm-surpassed-grid { grid-template-columns: repeat(8, 1fr); }
}
.cm-surpassed-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.3rem 0.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.cm-surpassed-item:hover, .cm-surpassed-item.active { background: rgba(45,212,191,0.06); }
.cm-surpassed-item.cm-surpassed-hidden { display: none; }
.cm-surpassed-flag { line-height: 1; }
.cm-surpassed-flag .cm-flag-img { width: 32px; height: 32px; }
.cm-surpassed-name {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}
/* Tooltip on tap */
.cm-surpassed-item.active::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,15,20,0.92);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: #e5e7eb;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Divider --- */
.cm-divider {
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Toggle buttons --- */
.cm-toggle-btn {
  display: block;
  margin: 0.75rem auto 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 0.45rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cm-toggle-btn:hover { border-color: rgba(45,212,191,0.3); color: var(--accent); }

/* --- Upcoming: card grid --- */
.cm-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.6rem;
  margin: 0 auto;
  max-width: 680px;
}
.cm-grid { max-width: 680px; margin: 0 auto; }

.cm-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: opacity 0.3s, border-color 0.3s;
  position: relative;
}
.cm-card.cm-upcoming-hidden { display: none; }
.cm-card.cm-dimmed {
  opacity: 0.4;
  filter: grayscale(0.5);
}
.cm-card.cm-next-target {
  border-color: var(--accent);
  opacity: 1;
  filter: none;
  animation: cm-pulse 2.5s ease-in-out infinite;
  flex-wrap: wrap;
}
@keyframes cm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.15); }
  50% { box-shadow: 0 0 12px 2px rgba(45,212,191,0.18); }
}
.cm-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.cm-flag-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.cm-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.cm-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-next-target .cm-name { color: var(--accent-light); }
.cm-m1 {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* --- Next-country progress indicator --- */
.cm-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.cm-progress-ring {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.cm-progress-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--mono);
  white-space: nowrap;
}

/* US endgame card */
.cm-card.cm-endgame {
  opacity: 0.4;
  filter: grayscale(0.3);
  border: 1px dashed rgba(212, 160, 23, 0.25);
  background: rgba(212, 160, 23, 0.03);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.2rem;
  gap: 0.4rem;
  max-width: 680px;
  margin: 1.25rem auto 0;
}
.cm-endgame .cm-info { align-items: center; }
.cm-endgame .cm-name { color: var(--text-secondary); font-size: 0.82rem; }
.cm-endgame .cm-m1 { color: rgba(212, 160, 23, 0.6); font-size: 0.72rem; font-weight: 500; }
.cm-endgame-brand { display: flex; align-items: center; justify-content: center; }
.cm-endgame-sub { width: 100%; font-size: 0.68rem; color: var(--text-muted); opacity: 0.7; font-style: italic; }

.cm-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

/* SOURCES LINE */
.sources-line {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.55;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.5rem;
  line-height: 1.6;
}
.sources-line a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sources-line a:hover {
  color: var(--text-secondary);
}

/* ================================================================
   MOBILE LAYOUT OVERHAUL (≤768px only)
   Hero fills viewport; document scrolls into narrative sections.
   Desktop untouched.
   ================================================================ */
@media (max-width: 768px) {

  /* ---- 5. MOBILE SCROLL ---- */
  html {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
  }
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
  }

  /* Footer flows in document, no longer pinned to viewport */
  .page-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: 0;
    font-size: 0.52rem; gap: 0.2rem; padding: 0.5rem 1rem;
    background: var(--bg);
  }

  /* Main content container (wraps the hero, below the 52px nav) */
  .hero {
    min-height: 100svh;
    height: auto;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 0 24px 60px;
  }
  /* On mobile the hero stacks full-width and fills the top half of the
     viewport — re-center the vignette and widen it so it covers the
     number, precise line, tagline, pills, and Live indicator while
     fading out before reaching the map's lower-half city labels. */
  .hero::before {
    background: radial-gradient(
      ellipse 110% 50% at 50% 30%,
      rgba(6,9,12,0.92) 0%,
      rgba(6,9,12,0.75) 42%,
      rgba(6,9,12,0) 80%
    );
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    flex: 1;
    min-height: 0;
  }

  /* Flatten DOM-nested wrappers so we can reorder children of .hero-inner */
  .zone-number,
  .zone-content { display: contents; }

  /* Visual order: headline → tagline → footnote → stats → formula/live → share.
     Headline + tagline + footnote read as one "claim block"; stats + formula
     + live form the "proof block" below with a larger gap before it. */
  .live-scenario-intro {
    max-width: 720px;
    margin: 0 auto 1.2rem;
    padding: 0 1.5rem;
  }
  .live-scenario-title {
    margin: 0;
    font-family: var(--serif-display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #E8F0EE;
  }
  .live-scenario-copy {
    margin: 0.75rem 0 0;
    max-width: 42rem;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232, 240, 238, 0.74);
  }
  .hero-number         { order: 1; }
  .hero-desc           { order: 2; }
  .hero-precise        { order: 3; }
  .hero-stats-row      { order: 4; }
  .hero-meta-strip     { order: 5; }
  .zone-content-bottom { order: 6; }

  .hero-stats-row {
    padding: 0 1rem;
    gap: 0.75rem 1.25rem;
    /* Larger top margin than claim-block internal gaps so the stats grid
       reads as a distinct "proof block" below the claim. */
    margin: 24px 0 0 0;
  }
  .hero-stat {
    flex: 0 0 calc(50% - 0.625rem);
  }
  .hero-stat-value {
    font-size: 22px;
  }

  .hero-precise {
    padding: 0 1rem;
    font-size: 13px;
    margin: 4px 0 0 0;
  }

  /* ---- 1. HERO NUMBER ---- */
  .hero-number {
    font-size: 108px;
    line-height: 0.88;
    margin: 8px 0 0 0;
    padding: 0;
    text-align: left;
    letter-spacing: -0.02em;
    min-height: 0;
  }
  .hero-number .hero-prefix { display: block; color: var(--text); }
  .hero-number .hero-ratio  { display: block; color: #2DD4BF; }

  /* ---- 2. TAGLINE (first sentence only) ---- */
  .hero-desc {
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: rgba(232,240,238,0.65);
    margin: 12px 0 0 0;
    padding: 0;
    max-width: 100%;
    flex: 0 0 auto;
  }

  /* ---- 3. STATS ROW (pills) ---- */
  .hero-meta-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0 0;
    padding: 0;
    opacity: 1;
    letter-spacing: 0;
    word-spacing: 0;
    line-height: 1.6;
    white-space: normal;
    flex: 0 0 auto;
  }
  .hero-meta-strip .meta-equation {
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero-meta-strip .meta-term {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .hero-meta-strip .meta-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .hero-meta-strip .meta-value {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-family: monospace;
    color: rgba(232,240,238,0.6);
    white-space: nowrap;
  }
  .hero-meta-strip .meta-term-result .meta-value {
    background: rgba(45,212,191,0.08);
    border-color: rgba(45,212,191,0.3);
    color: #2DD4BF;
    font-weight: 500;
  }
  .hero-meta-strip .meta-op {
    font-size: 13px;
    padding: 0 2px 6px;
  }
  .hero-meta-strip .meta-live-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    font-size: 11px;
    font-family: monospace;
    opacity: 0.8;
  }

  /* ---- 4. STORY CARD (pinned above footer) ---- */
  .story-bubble {
    position: fixed !important;
    bottom: 56px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 0 8px 8px 0 !important;
    border: none !important;
    border-left: 2px solid #2DD4BF !important;
    background: rgba(13,27,34,0.95) !important;
    padding: 12px 16px !important;
    z-index: 100 !important;
  }

  /* Payment story banner on mobile: stays inside its dedicated
     .live-scenario-section so it cannot float over the terminal hero
     or narrative sections. Tightened padding and type sizes to keep
     the quote legible without dominating the screen. */
  .live-scenario-section {
    padding: 28px 16px;
    min-height: 60vh;
    align-items: stretch;
    justify-content: flex-end;
  }
  #paymentStoryCard.story-banner {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    min-height: auto !important;
  }
  #paymentStoryCard.story-banner .sb-quote {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  #paymentStoryCard.story-banner .sb-meta {
    font-size: 9px !important;
    gap: 12px !important;
    padding-top: 8px !important;
  }
  #paymentStoryCard.story-banner .sb-tag {
    font-size: 9px !important;
    gap: 8px !important;
  }
  .story-bubble-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #2DD4BF;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }
  .story-bubble-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(232,240,238,0.82);
    font-style: normal;
  }

  /* ---- SCROLL ARROW (mobile) ---- */
  .scroll-arrow-down {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    animation: arrowBounce 2s ease-in-out infinite;
  }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 768px) {
  .fade-target {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-target.fade-in-visible {
    opacity: 1;
    transform: none;
  }
}

.dt-headline-subratio {
  margin: 0.42rem 0 0;
  min-height: 1rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.52);
}

.dt-headline-subratio .hero-precise-yoy {
  color: rgba(191, 247, 234, 0.76);
}

#heroHeadline {
  scroll-margin-top: 112px;
}

.ddd-benchmark-rail {
  position: fixed;
  top: var(--ddd-rail-top, calc(env(safe-area-inset-top, 0px) + 5.25rem));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 40;
  width: min(17.2rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  display: grid;
  gap: 0.4rem;
  padding: 0.66rem 0.74rem 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: #0b0f14;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.97);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html.dt-page body.nav-open .ddd-benchmark-rail {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, -10px, 0) scale(0.97) !important;
}

html.dt-page body.ddd-benchmark-rail-visible .ddd-benchmark-rail {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

html.dt-page body.ddd-benchmark-rail-visible .ddd-benchmark-rail:hover {
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translate3d(0, -1px, 0) scale(1.01);
}

html.dt-page body.in-practice-live.ddd-benchmark-rail-visible .ddd-benchmark-rail {
  opacity: 0.42;
  border-color: rgba(94, 234, 212, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html.dt-page body.in-practice-live.ddd-benchmark-rail-visible .ddd-benchmark-rail:hover {
  opacity: 0.66;
  border-color: rgba(94, 234, 212, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dt-page body.in-practice-live .ddd-benchmark-rail-stack span {
  color: rgba(232, 240, 238, 0.42);
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.ddd-benchmark-rail-head,
.ddd-benchmark-rail-main,
.ddd-benchmark-rail-stack {
  display: flex;
  align-items: center;
}

.ddd-benchmark-rail-head,
.ddd-benchmark-rail-main {
  justify-content: space-between;
}

.ddd-benchmark-rail-kicker,
.ddd-benchmark-rail-status,
.ddd-benchmark-rail-pct,
.ddd-benchmark-rail-stack span {
  font-family: var(--mono);
  text-transform: uppercase;
}

.ddd-benchmark-rail-kicker {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(191, 247, 234, 0.68);
}

.ddd-benchmark-rail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(191, 247, 234, 0.92);
}

.ddd-benchmark-rail-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
}

.ddd-benchmark-rail-status.is-stale {
  color: rgba(245, 158, 11, 0.9);
}

.ddd-benchmark-rail-status.is-stale::before {
  background: #f59e0b;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0);
}

.ddd-benchmark-rail-main {
  gap: 0.55rem;
  align-items: baseline;
}

.ddd-benchmark-rail-ratio {
  font-family: var(--serif-display);
  font-size: 1.72rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(242, 247, 245, 0.98);
  white-space: nowrap;
}

.ddd-benchmark-rail-pct {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(232, 240, 238, 0.68);
  text-align: right;
}

.ddd-benchmark-rail-stack {
  gap: 0.32rem;
  flex-wrap: wrap;
}

.ddd-benchmark-rail-stack span {
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(232, 240, 238, 0.62);
}

@media (max-width: 900px) {
  .ddd-benchmark-rail {
    width: min(15.5rem, calc(100vw - 1.7rem));
    padding: 0.6rem 0.68rem 0.64rem;
  }

  .ddd-benchmark-rail-ratio {
    font-size: 1.5rem;
  }

  .ddd-benchmark-rail-stack {
    display: none;
  }
}

@media (max-width: 600px) {
  .ddd-benchmark-rail {
    border-radius: 16px;
    padding: 0.58rem 0.66rem 0.62rem;
    width: min(14.25rem, calc(100vw - 1.5rem));
  }

  .ddd-benchmark-rail-main {
    gap: 0.45rem;
  }

  .ddd-benchmark-rail-ratio {
    font-size: 1.35rem;
  }

  .ddd-benchmark-rail-pct {
    font-size: 8px;
  }
}

/* Homepage mobile: dock benchmark chip above chat, not over hero copy */
@media (max-width: 768px) {
  #heroHeadline {
    scroll-margin-top: 96px;
  }

  html.dt-page .ddd-benchmark-rail {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4.5rem);
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translate3d(-50%, 10px, 0) scale(0.98);
  }

  html.dt-page body.ddd-benchmark-rail-visible .ddd-benchmark-rail {
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  html.dt-page body.ddd-benchmark-rail-visible .ddd-benchmark-rail:hover {
    transform: translate3d(-50%, -1px, 0) scale(1);
  }

  html.dt-page body.nav-open .ddd-benchmark-rail {
    transform: translate3d(-50%, 10px, 0) scale(0.98) !important;
  }

  .ddd-benchmark-rail-head,
  .ddd-benchmark-rail-stack {
    display: none;
  }

  .ddd-benchmark-rail-main {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .ddd-benchmark-rail-ratio {
    font-size: 1.05rem;
  }

  .ddd-benchmark-rail-pct {
    font-size: 9px;
    white-space: nowrap;
  }

  .ddd-benchmark-rail-pct::before {
    content: '·';
    margin-right: 0.45rem;
    color: rgba(232, 240, 238, 0.35);
  }

  html.dt-page .narrative-section:first-of-type {
    margin-top: 0.5rem;
  }

  .market-beat-section {
    padding-top: 2.25rem;
  }

  .market-beat-frame {
    gap: 1rem;
  }

  .market-beat-heading {
    font-size: 1.5rem;
    line-height: 1.18;
  }
}

/* Narrative sections — visible on all viewports.
   Desktop-first base styles; mobile overrides live in the
   @media (max-width: 768px) block below. */
.narrative-section {
  display: block;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.75rem 1.75rem 3rem;
}
html.dt-page .narrative-section {
  width: 100%;
  box-sizing: border-box;
  max-width: 1000px;
}
html.dt-page .narrative-section .narrative-body > p {
  max-width: 42rem;
}
/* Wider column for paired data cards (issuers / chains). */
#market-structure.narrative-section {
  max-width: 1000px;
}
.narrative-section + .narrative-section {
  margin-top: 2.5rem;
}
/* Semi-opaque backdrop so map comets behind .page don't reduce body
   text legibility. Slightly bleeds beyond the text column edges. */
.narrative-section::before {
  content: '';
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(11, 14, 19, 0.97) 0%, rgba(9, 12, 16, 0.985) 55%, rgba(8, 10, 14, 0.992) 100%);
  border-radius: 18px;
  border: 1px solid var(--border-card, #2a3342);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.section-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: #2DD4BF;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Homepage narrative + live scenario: pill label with status dot */
html.dt-page .narrative-section .section-eyebrow,
html.dt-page .live-scenario-intro .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 10px;
  color: #5eead4;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.07);
}
html.dt-page .narrative-section .section-eyebrow::before,
html.dt-page .live-scenario-intro .section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.65);
}
.narrative-heading {
  display: block;
  font-family: var(--serif-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  color: #E8F0EE;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.narrative-body {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(232, 240, 238, 0.9);
}
.narrative-body p { margin: 0 0 1rem; }
.narrative-body p:last-child { margin-bottom: 0; }
.narrative-body a {
  color: #2DD4BF;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.narrative-body a:hover {
  color: #a7f3d0;
  border-bottom-color: #a7f3d0;
}
.narrative-body .homepage-route-links a {
  display: inline-flex;
  align-items: center;
  margin: 0 0.1rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
  text-decoration: none;
  border-bottom: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.narrative-body .homepage-route-links a:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.45);
  color: #d9fffb;
}
.pull-quote-mobile { display: none; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 1.35rem 0 0.15rem;
}

.proof-grid-compact {
  gap: 14px;
  margin-top: 0.95rem;
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-card, #2a3342);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 20, 28, 0.96) 0%, rgba(10, 13, 18, 0.94) 50%, rgba(8, 11, 15, 0.98) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .proof-card:hover {
    border-color: var(--border-card-hover, #3d4d62);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .proof-card {
    transition: none;
  }
  .proof-card:hover {
    transform: none;
  }
}

.proof-card-compact {
  gap: 0.42rem;
  padding: 14px 14px 13px;
  border-color: var(--border-card-nested, #242c38);
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.94), rgba(11, 14, 18, 0.88));
}

.proof-card-compact .proof-card-visual {
  min-height: 176px;
  margin: 0.08rem 0 0.04rem;
}

.proof-card-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2DD4BF;
}

.proof-card-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #E8F0EE;
}

.proof-card-compact .proof-card-title {
  font-size: 19px;
  line-height: 1.18;
}

.proof-card-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.88);
}

.proof-card-visual {
  position: relative;
  height: auto;
  min-height: 212px;
  display: flex;
  flex-direction: column;
  margin: 0.18rem 0 0.1rem;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.12), transparent 48%),
    linear-gradient(165deg, rgba(12, 16, 22, 0.98) 0%, rgba(8, 11, 15, 0.94) 100%);
  overflow: hidden;
}

.proof-card-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.proof-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 12px;
  gap: 10px;
}

.proof-preview-shot {
  position: relative;
  flex: 1 1 auto;
  min-height: 136px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0d12;
}

.proof-preview-shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #0a0d12;
}

.proof-preview--ays .proof-preview-shot-img {
  object-fit: contain;
  object-position: center center;
}

.proof-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proof-preview-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.8);
}

.proof-preview-api {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 136px;
  padding: 12px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8,11,15,0.98), rgba(8,11,15,0.92));
}

.proof-preview-api-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-preview-api-row--head {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.proof-preview-api-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(45,212,191,0.14);
  color: #bff7ea;
}

.proof-preview-api-path {
  color: rgba(232, 240, 238, 0.86);
}

.proof-preview-api-key {
  color: rgba(232, 240, 238, 0.58);
}

.proof-preview-api-val {
  color: #d9fffb;
}

.proof-card-visual .proof-svg-grid {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}

.proof-card-visual .proof-svg-line {
  stroke: #2DD4BF;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-card-visual .proof-svg-line-soft {
  stroke: rgba(45, 212, 191, 0.34);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-card-visual .proof-svg-fill {
  fill: rgba(45, 212, 191, 0.16);
  stroke: rgba(45, 212, 191, 0.3);
  stroke-width: 1;
}

.proof-card-visual .proof-svg-fill-soft {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.proof-card-visual .proof-svg-dot {
  fill: #7eead5;
}

.proof-card-visual .proof-svg-dot-soft {
  fill: rgba(232, 240, 238, 0.34);
}

.proof-card-visual .proof-svg-text {
  fill: rgba(232, 240, 238, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card-compact .proof-card-copy {
  font-size: 13px;
  line-height: 1.58;
  color: rgba(232, 240, 238, 0.72);
}

.proof-card-compact .proof-card-link {
  min-height: 40px;
  padding: 0.56rem 0.88rem;
}

.proof-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 0.85rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bff7ea;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.proof-card-link:hover {
  color: #ecfeff;
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.14);
}

#built-on-ddd {
  max-width: 980px;
}

#built-on-ddd .narrative-body > p:first-child,
#built-on-ddd .proof-section-note {
  max-width: 690px;
}

#built-on-ddd .proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1rem;
}

#built-on-ddd .proof-card {
  min-height: 100%;
  padding: 14px 14px 13px;
  gap: 0.42rem;
}

#built-on-ddd .proof-card-copy {
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.58;
}

#built-on-ddd .proof-grid-note {
  margin: 0.05rem 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.46);
}

#built-on-ddd .proof-card-visual {
  height: auto;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
}

#built-on-ddd .proof-card-link {
  margin-top: 0.24rem;
}

#built-on-ddd .proof-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

#built-on-ddd .proof-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8F0EE;
}

#built-on-ddd .proof-brand-mark--ays {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.1);
  color: #bff7ea;
}

#built-on-ddd .proof-brand-mark--ddd {
  padding: 8px;
  border-color: rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.08);
}

#built-on-ddd .proof-brand-mark--basket {
  border-color: rgba(240, 216, 158, 0.24);
  background: rgba(240, 216, 158, 0.1);
  color: #f7e9b9;
}

#built-on-ddd .proof-brand-mark--market {
  border-color: rgba(143, 182, 255, 0.22);
  background: rgba(143, 182, 255, 0.1);
  color: #dce8ff;
}

#built-on-ddd .proof-brand-mark-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#built-on-ddd .proof-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#built-on-ddd .proof-brand-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.88);
}

#built-on-ddd .proof-brand-sub {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(232, 240, 238, 0.52);
}

#built-on-ddd .proof-card-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0.2rem;
}

#built-on-ddd .proof-live-metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

#built-on-ddd .proof-live-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.5);
}

#built-on-ddd .proof-live-value {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #E8F0EE;
  overflow-wrap: anywhere;
}

#built-on-ddd .proof-live-value.is-up {
  color: #bff7ea;
}

#built-on-ddd .proof-live-value.is-down {
  color: #fca5a5;
}

#built-on-ddd .proof-live-value.is-flat {
  color: rgba(232, 240, 238, 0.68);
}

#built-on-ddd .proof-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  height: auto;
  padding: 14px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 10, 14, 0.92), rgba(10, 13, 18, 0.84));
  overflow: hidden;
}

#built-on-ddd .proof-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#built-on-ddd .proof-surface--ays::before {
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 42%);
}

#built-on-ddd .proof-surface--api::before {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent 32%);
}

#built-on-ddd .proof-surface--basket::before {
  background: radial-gradient(circle at top left, rgba(240, 216, 158, 0.18), transparent 42%);
}

#built-on-ddd .proof-surface--market::before {
  background: radial-gradient(circle at top right, rgba(143, 182, 255, 0.18), transparent 44%);
}

#built-on-ddd .proof-surface-head,
#built-on-ddd .proof-ays-grid,
#built-on-ddd .proof-ays-outcome,
#built-on-ddd .proof-preview-api,
#built-on-ddd .proof-api-audiences,
#built-on-ddd .proof-basket-bar,
#built-on-ddd .proof-basket-legend,
#built-on-ddd .proof-basket-metrics,
#built-on-ddd .proof-market-book,
#built-on-ddd .proof-market-threshold {
  position: relative;
  z-index: 1;
}

#built-on-ddd .proof-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#built-on-ddd .proof-surface-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.84);
}

#built-on-ddd .proof-surface-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.52);
}

#built-on-ddd .proof-ays-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#built-on-ddd .proof-ays-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

#built-on-ddd .proof-ays-step-num,
#built-on-ddd .proof-ays-outcome-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2DD4BF;
}

#built-on-ddd .proof-ays-step strong,
#built-on-ddd .proof-ays-outcome strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #E8F0EE;
}

#built-on-ddd .proof-ays-step span:last-child {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(232, 240, 238, 0.64);
}

#built-on-ddd .proof-ays-outcome {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(125, 211, 192, 0.22);
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.06);
}

#built-on-ddd .proof-ays-signal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.64);
}

#built-on-ddd .proof-ays-signal strong {
  font-size: inherit;
  font-weight: 500;
  color: #d9fffb;
}

#built-on-ddd .proof-surface--api .proof-preview-api {
  min-height: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-card-nested, #242c38);
  background: linear-gradient(180deg, rgba(8,11,15,0.96), rgba(8,11,15,0.9));
}

#built-on-ddd .proof-api-audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

#built-on-ddd .proof-api-audience {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.72);
}

#built-on-ddd .proof-basket-live-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#built-on-ddd .proof-basket-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

#built-on-ddd .proof-basket-live-asset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#built-on-ddd .proof-basket-live-asset strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(232, 240, 238, 0.9);
}

#built-on-ddd .proof-basket-live-value {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#built-on-ddd .proof-basket-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
}

#built-on-ddd .proof-basket-dot--usdc {
  background: #7EEAD5;
}

#built-on-ddd .proof-basket-dot--usdt {
  background: #2DD4BF;
}

#built-on-ddd .proof-basket-dot--pyusd {
  background: #F0D89E;
}

#built-on-ddd .proof-basket-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

#built-on-ddd .proof-basket-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

#built-on-ddd .proof-basket-metric span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.52);
}

#built-on-ddd .proof-basket-metric strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #E8F0EE;
}

#built-on-ddd .proof-market-book {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#built-on-ddd .proof-market-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.74);
}

#built-on-ddd .proof-market-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--market-share);
  background: linear-gradient(90deg, rgba(143, 182, 255, 0.18), rgba(45, 212, 191, 0.12));
}

#built-on-ddd .proof-market-row > * {
  position: relative;
  z-index: 1;
}

#built-on-ddd .proof-market-row strong {
  color: #E8F0EE;
}

#built-on-ddd .proof-market-row--lead {
  border-color: #3a4558;
}

#built-on-ddd .proof-market-threshold {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

#built-on-ddd .proof-market-threshold-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.52);
}

#built-on-ddd .proof-market-threshold-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

#built-on-ddd .proof-market-threshold-track span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8FB6FF, #2DD4BF);
}

#built-on-ddd .proof-market-threshold strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8F0EE;
}

.proof-card-link.is-disabled {
  color: rgba(232, 240, 238, 0.38);
  border-color: var(--border-card-nested, #242c38);
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  cursor: default;
}

.decision-demo {
  margin: 1.2rem 0 0.3rem;
  padding: 18px 18px 16px;
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.96), rgba(10, 13, 18, 0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.current-read-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 1rem;
  align-items: center;
  margin: 1.15rem 0 0.25rem;
  padding: 18px 18px 16px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(9, 12, 16, 0.985), rgba(9, 12, 16, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 16px 36px rgba(0,0,0,0.18);
}

.current-read-cta-copy {
  min-width: 0;
}

.current-read-cta-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2DD4BF;
}

.current-read-cta-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.14;
  color: #E8F0EE;
}

.current-read-cta-text {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(232, 240, 238, 0.78);
}

.current-read-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.72rem;
}

.current-read-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.09);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8fffb;
  text-decoration: none;
}

.current-read-cta-link:hover {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.14);
  color: #ffffff;
}

.current-read-cta-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.65;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.48);
}

.live-scenario-section {
  max-width: 1160px;
  margin: 1.5rem auto;
  padding: 74px 1.9rem 36px;
  gap: 24px;
  background: transparent;
  isolation: isolate;
  pointer-events: auto;
}

.live-scenario-section::before {
  content: "";
  position: absolute;
  inset: 0 -28px;
  z-index: -2;
  pointer-events: none;
  border-radius: 36px;
  border: 1px solid rgba(160, 182, 198, 0.07);
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 226, 194, 0.18), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(84, 119, 255, 0.1), transparent 27%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.06) 0%, rgba(8, 11, 15, 0.015) 42%, rgba(8, 11, 15, 0.1) 100%);
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.live-scenario-section::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 4px;
  height: 260px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(56, 226, 194, 0.2), rgba(84, 119, 255, 0.08) 28%, transparent 68%);
  filter: blur(42px);
  opacity: 0.98;
}

html.dt-page body.in-practice-live #in-practice::after {
  animation: inPracticeGlowBreath 6s ease-in-out infinite;
}

@keyframes inPracticeGlowBreath {
  0%, 100% {
    opacity: 0.76;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.live-scenario-intro {
  display: flex;
  flex-direction: column;
  align-self: start;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 40rem);
  max-width: 40rem;
  justify-self: center;
  margin: 0;
  padding: 20px 18px 16px;
  text-align: left;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(160, 182, 198, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 10, 14, 0.97), rgba(7, 10, 14, 0.9));
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.live-scenario-copy-block {
  display: grid;
  gap: 0.42rem;
}

.live-scenario-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-scenario-title-value {
  color: #38E2C2;
}

.live-scenario-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 226, 194, 0.2);
  background: rgba(10, 16, 22, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #BFF7EA;
}

.live-scenario-live-badge.is-stale {
  border-color: rgba(160, 182, 198, 0.14);
  color: rgba(160, 182, 198, 0.82);
}

.live-scenario-dot-legend {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 0.82rem;
  padding: 12px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 17, 22, 0.44), rgba(8, 12, 16, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.live-scenario-dot-legend-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.live-scenario-dot-legend-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 247, 234, 0.8);
}

.live-scenario-dot-legend-ratio {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9BF3E1;
}

.live-scenario-dot-legend-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(232, 240, 238, 0.7);
}

.live-scenario-dot-legend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.live-scenario-dot-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.72);
}

.live-scenario-dot-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #6CF7E4;
  box-shadow: 0 0 14px rgba(108, 247, 228, 0.44);
}

.live-scenario-dot-legend-swatch.is-muted {
  background: rgba(130, 146, 162, 0.36);
  box-shadow: none;
}

.live-scenario-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  row-gap: clamp(18px, 2vw, 24px);
  width: 100%;
  align-items: start;
  min-height: 0;
}

.live-scenario-map-stage {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  margin-top: clamp(92px, 7vw, 110px);
  min-height: clamp(392px, 37vw, 520px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.live-scenario-map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  border: 1px solid rgba(160, 182, 198, 0.08);
  background: linear-gradient(180deg, rgba(7, 10, 14, 0.26), rgba(7, 10, 14, 0.12)), linear-gradient(90deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.live-scenario-map-stage::after {
  content: "";
  position: absolute;
  inset: 10% 8% 12%;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 48%, rgba(152, 169, 186, 0.08), rgba(152, 169, 186, 0) 72%);
  opacity: 0.8;
  pointer-events: none;
}

.live-scenario-map-outline {
  position: absolute;
  inset: var(--map-outline-top, 48px) var(--map-outline-right, 58px) var(--map-outline-bottom, 26px) var(--map-outline-left, 44px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background: rgba(189, 201, 216, 0.74);
  -webkit-mask: url('/assets/images/world-outline-full-simpler.svg?v=20260529a') center / 100% 100% no-repeat;
  mask: url('/assets/images/world-outline-full-simpler.svg?v=20260529a') center / 100% 100% no-repeat;
  transition: opacity 180ms ease;
}

.live-scenario-map-outline::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: rgba(var(--story-arrival-rgb, 56, 226, 194), 0.72);
  opacity: 0;
  filter: blur(7px) drop-shadow(0 0 16px rgba(var(--story-arrival-rgb, 56, 226, 194), 0)) drop-shadow(0 0 42px rgba(var(--story-arrival-rgb, 56, 226, 194), 0));
}

.live-scenario-map-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--story-arrival-rgb, 56, 226, 194), 0.9);
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0)) drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0));
}

.live-scenario-map-stage.is-arrival-glowing .live-scenario-map-outline {
  opacity: 0.16;
}

.live-scenario-map-stage.is-arrival-glowing .live-scenario-map-outline::before {
  animation: storyMapOutlineBloom 1180ms cubic-bezier(0.18, 0.84, 0.22, 1) 1;
}

.live-scenario-map-stage.is-arrival-glowing .live-scenario-map-outline::after {
  animation: storyMapOutlineGlow 1180ms cubic-bezier(0.18, 0.84, 0.22, 1) 1;
}

@keyframes storyMapOutlineBloom {
  0% {
    opacity: 0;
    filter: blur(7px) drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0)) drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0));
  }
  20% {
    opacity: 0.86;
    filter: blur(8px) drop-shadow(0 0 20px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.46)) drop-shadow(0 0 58px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.22));
  }
  100% {
    opacity: 0;
    filter: blur(7px) drop-shadow(0 0 8px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.06)) drop-shadow(0 0 24px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.02));
  }
}

@keyframes storyMapOutlineGlow {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0)) drop-shadow(0 0 0 rgba(var(--story-arrival-rgb, 56, 226, 194), 0));
  }
  24% {
    opacity: 1;
    filter: drop-shadow(0 0 24px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.64)) drop-shadow(0 0 72px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.34));
  }
  100% {
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.08)) drop-shadow(0 0 22px rgba(var(--story-arrival-rgb, 56, 226, 194), 0.03));
  }
}

.live-scenario-guide {
  display: none;
}

.live-scenario-guide-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.28), rgba(10, 13, 18, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.live-scenario-guide-item.is-active {
  border-color: rgba(56, 226, 194, 0.22);
  background: linear-gradient(180deg, rgba(17, 26, 30, 0.52), rgba(10, 17, 21, 0.26));
  box-shadow: 0 10px 22px rgba(3, 10, 13, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-scenario-guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.08);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #bff7ea;
}

.live-scenario-guide-copy {
  display: grid;
  grid-template-rows: auto minmax(2.7em, 2.7em) auto;
  gap: 4px;
}

.live-scenario-guide-copy strong {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.28;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8F0EE;
}

.live-scenario-guide-value {
  display: -webkit-box;
  min-height: 2.7em;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.32;
  text-transform: uppercase;
  color: #9BF3E1;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-scenario-guide-note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(160, 182, 198, 0.7);
}

.live-scenario-console {
  display: grid;
  gap: 10px;
  width: fit-content;
  max-width: min(100%, 23rem);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  justify-self: end;
  align-self: flex-end;
  margin-top: auto;
}

.live-scenario-console.is-live {
  box-shadow: none;
}

.live-scenario-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(56, 226, 194, 0.12);
  background: rgba(10, 16, 22, 0.26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.live-scenario-console-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 247, 234, 0.84);
}

.live-scenario-console-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38E2C2;
  box-shadow: 0 0 12px rgba(56, 226, 194, 0.42);
  animation: sbLivePulse 1.4s ease-in-out infinite;
}

.live-scenario-console-route {
  display: grid;
  gap: 3px;
  padding-left: 12px;
}

.live-scenario-console-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 182, 198, 0.76);
}

.live-scenario-console-value {
  font-family: var(--serif-display);
  font-size: clamp(1.18rem, 2.1vw, 1.62rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #F7FBFA;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

#paymentStoryCard.story-banner {
  align-self: flex-start;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  padding: 16px 28px 18px;
  min-height: 92px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  justify-items: start;
  column-gap: 18px;
  row-gap: 6px;
  align-content: center;
}

.live-scenario-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(calc(100% - 40px), 68rem);
  max-width: 68rem;
  justify-self: center;
  justify-items: stretch;
  align-self: start;
  align-content: start;
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
  padding: 0;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.live-scenario-story-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  white-space: nowrap;
  justify-self: end;
}

.live-scenario-story-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(191, 247, 234, 0.82);
  padding-right: 14px;
  border-right: 1px solid rgba(56, 226, 194, 0.16);
}

.live-scenario-study-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.58);
}

.live-scenario-study-label[hidden] {
  display: none;
}

.live-scenario-story-route {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #9BF3E1;
  margin-bottom: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  justify-self: start;
  max-width: min(100%, 27rem);
}

#paymentStoryCard .sb-quote {
  min-height: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: min(100%, 48rem);
  text-align: center;
}

#paymentStoryCard .sb-meta {
  display: none;
  min-height: 0;
  grid-column: 1 / -1;
  justify-self: center;
}

#sbPager {
  display: none;
  align-items: center;
  gap: 6px;
}

#paymentStoryCard.story-banner.is-live {
  border-top-color: rgba(45, 212, 191, 0.12);
  border-bottom-color: rgba(45, 212, 191, 0.12);
  background: linear-gradient(90deg, rgba(9, 13, 18, 0.84) 0%, rgba(7, 10, 13, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(45, 212, 191, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#paymentStoryCard .sb-placeholder {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: left;
  font-size: 10px;
  line-height: 1.42;
  color: rgba(232, 240, 238, 0.54);
}

#paymentStoryCard .sb-quote {
  display: block;
  margin-top: 0;
  font-size: 1.03rem;
  line-height: 1.28;
}

#paymentStoryCard .sb-meta {
  display: none;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
  font-size: 8px;
}

#paymentStoryCard .sb-meta .sep,
#paymentStoryCard #sbTime {
  display: none;
}

@media (min-width: 961px) {
  #paymentStoryCard.story-banner {
    position: relative;
    overflow: hidden;
    padding: 20px 32px 22px;
    min-height: 116px;
    border-radius: 24px;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    column-gap: 0;
    row-gap: 8px;
  }

  #paymentStoryCard.story-banner::before {
    content: "";
    position: absolute;
    inset: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94, 234, 212, 0.05);
    background:
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 108px),
      repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 42px),
      linear-gradient(180deg, rgba(10, 15, 20, 0.44), rgba(7, 10, 14, 0.2));
    opacity: 0.46;
    pointer-events: none;
  }

  #paymentStoryCard.story-banner > * {
    position: relative;
    z-index: 1;
  }

  #paymentStoryCard.story-banner.is-live {
    border-top-color: rgba(var(--story-chain-rgb, 94, 234, 212), 0.16);
    border-bottom-color: rgba(var(--story-chain-rgb, 94, 234, 212), 0.16);
    background: linear-gradient(180deg, rgba(9, 13, 18, 0.94) 0%, rgba(7, 10, 13, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(var(--story-chain-rgb, 94, 234, 212), 0.08);
  }

  .live-scenario-story-head {
    justify-self: center;
    gap: 9px;
  }

  .live-scenario-story-kicker {
    padding: 0;
    border-right: none;
    font-size: 8px;
    letter-spacing: 0.22em;
    color: rgba(191, 247, 234, 0.52);
  }

  .live-scenario-story-route {
    justify-self: center;
    max-width: none;
    font-size: 15px;
    letter-spacing: 0.18em;
    line-height: 1.12;
    text-align: center;
    color: var(--story-chain-text, #9BF3E1);
  }

  #paymentStoryCard .sb-quote {
    max-width: min(100%, 47rem);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.22;
  }

  #paymentStoryCard .sb-meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 2px;
    padding-top: 0;
    font-size: 8px;
    letter-spacing: 0.16em;
    color: rgba(191, 247, 234, 0.48);
  }

  #paymentStoryCard #sbCoin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.84rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--story-chain-rgb, 94, 234, 212), 0.16);
    background: rgba(var(--story-chain-rgb, 94, 234, 212), 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: var(--story-chain-text, rgba(191, 247, 234, 0.88));
  }

  #paymentStoryCard .sb-placeholder {
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(191, 247, 234, 0.32);
  }
}

#sbPager .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#sbPager .dot.active {
  background: #38E2C2;
  box-shadow: 0 0 12px rgba(56, 226, 194, 0.36);
  transform: scale(1.15);
}

@media (max-width: 960px) {
  .ddd-why-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ddd-why-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-scenario-section {
    padding: 40px 1rem 46px;
    margin: 1rem auto;
  }

  .live-scenario-section::before {
    inset: 0;
    border-radius: 26px;
  }

  .live-scenario-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
  }

  .live-scenario-intro {
    width: 100%;
    max-width: none;
    padding: 18px 16px 14px;
    border-radius: 24px;
  }

  .live-scenario-map-stage {
    min-height: 230px;
    border-radius: 24px;
  }

  .live-scenario-dot-legend {
    width: 100%;
  }

  .live-scenario-intro,
  .live-scenario-proof {
    width: min(100%, 38rem);
    max-width: none;
    justify-self: start;
    align-self: start;
    margin-top: 0;
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
  }

  #sbPager {
    display: inline-flex !important;
  }

  #paymentStoryCard .sb-meta {
    display: flex !important;
  }

  #paymentStoryCard .sb-quote {
    white-space: normal;
    text-overflow: clip;
  }

  #paymentStoryCard.story-banner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
  }

  .live-scenario-console-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .ddd-why-section {
    padding-bottom: 36px;
  }

  .ddd-why-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ddd-why-point {
    padding: 14px 14px 13px;
  }

  .live-scenario-section {
    padding: 30px 0.45rem 34px;
    gap: 18px;
  }

  .live-scenario-section::before {
    inset: 0 -10px;
    border-radius: 24px;
    border-color: rgba(160, 182, 198, 0.08);
    background:
      radial-gradient(circle at 18% 14%, rgba(56, 226, 194, 0.16), transparent 34%),
      radial-gradient(circle at 85% 16%, rgba(84, 119, 255, 0.08), transparent 26%),
      linear-gradient(180deg, rgba(8, 11, 15, 0.09) 0%, rgba(8, 11, 15, 0.02) 40%, rgba(8, 11, 15, 0.14) 100%);
  }

  .live-scenario-section::after {
    left: 2%;
    right: 2%;
    top: 14px;
    height: 128px;
    opacity: 0.86;
  }

  .live-scenario-frame {
    gap: 18px;
  }

  .live-scenario-intro {
    display: block;
    padding: 16px 14px 13px;
    border-radius: 22px;
  }

  .live-scenario-map-stage {
    min-height: 190px;
    border-radius: 22px;
  }

  .live-scenario-copy-block {
    gap: 0.34rem;
    padding: 0;
  }

  .live-scenario-title-row {
    align-items: flex-start;
    gap: 10px;
  }

  .live-scenario-live-badge {
    min-height: 1.72rem;
    padding: 0.32rem 0.68rem;
    font-size: 9px;
  }

  .live-scenario-dot-legend {
    gap: 10px;
    margin-top: 0.85rem;
    padding: 14px 12px 13px;
    border-radius: 16px;
  }

  .live-scenario-dot-legend-copy {
    font-size: 11px;
    line-height: 1.52;
  }

  .live-scenario-dot-legend-key {
    gap: 8px 12px;
  }

  .live-scenario-proof {
    order: 2;
    width: 100%;
    gap: 6px;
    margin: 0;
  }

  .live-scenario-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 0.85rem;
  }

  .live-scenario-console {
    padding: 12px 12px 11px;
    gap: 9px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    margin-top: 0;
  }

  .live-scenario-console-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
  }

  .live-scenario-console-label,
  .live-scenario-console-kicker {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .live-scenario-console-value {
    font-size: clamp(1.44rem, 8vw, 1.92rem);
    line-height: 1.02;
  }

  #sbPager {
    gap: 6px;
  }

  #paymentStoryCard.story-banner {
    padding: 18px 16px 16px;
    min-height: 0;
    border-radius: 12px 12px 20px 20px;
  }

  #paymentStoryCard.story-banner.is-live {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(45, 212, 191, 0.08);
  }

  #paymentStoryCard .sb-quote {
    font-size: 1.06rem;
    line-height: 1.38;
  }

  #paymentStoryCard .sb-meta {
    gap: 8px 12px;
    padding-top: 10px;
    font-size: 9px;
  }

  .live-scenario-guide {
    margin-top: 4px;
  }

  .live-scenario-guide-item {
    padding: 11px 10px 10px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.18), rgba(10, 13, 18, 0.1));
    box-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .live-scenario-guide-item.is-active {
    border-color: rgba(56, 226, 194, 0.18);
    background: linear-gradient(180deg, rgba(17, 26, 30, 0.48), rgba(10, 17, 21, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: none;
  }

  .live-scenario-guide-step {
    min-width: 24px;
    min-height: 24px;
    font-size: 8px;
  }

  .live-scenario-guide-copy {
    gap: 3px;
  }

  .live-scenario-guide-copy strong {
    font-size: 11px;
  }

  .live-scenario-guide-value {
    min-height: 16px;
    font-size: 9px;
  }

  .live-scenario-guide-note {
    font-size: 10px;
    line-height: 1.45;
  }

  .live-scenario-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .live-scenario-copy {
    max-width: none;
    font-size: 14px;
    line-height: 1.62;
  }
}

@media (max-width: 600px) {
  .live-scenario-section {
    padding: 28px 0.2rem 30px;
  }

  .live-scenario-section::before {
    inset: 0 -8px;
  }

  .live-scenario-copy-block {
    padding: 0;
  }

  .live-scenario-intro {
    padding: 14px 12px 12px;
  }

  .live-scenario-map-stage {
    min-height: 170px;
  }

  .live-scenario-dot-legend {
    padding: 12px 10px 11px;
  }

  .live-scenario-console {
    padding: 11px 11px 10px;
  }

  .live-scenario-console-value {
    font-size: 1.22rem;
  }

  #paymentStoryCard.story-banner {
    padding: 16px 14px 14px;
  }

  #paymentStoryCard .sb-quote {
    font-size: 1rem;
  }

  .live-scenario-guide {
    gap: 7px;
    width: 100%;
  }

  .live-scenario-guide-item {
    padding: 11px 9px 10px;
    gap: 9px;
  }

  .live-scenario-guide-step {
    min-width: 26px;
    min-height: 26px;
  }

  .live-scenario-guide-copy strong {
    font-size: 10px;
  }

  .live-scenario-guide-value {
    font-size: 8px;
  }

  .live-scenario-guide-note {
    font-size: 9px;
  }
}

.live-scenario-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #E8F0EE;
}

.live-scenario-copy {
  margin: 0.65rem 0 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(232, 240, 238, 0.74);
}

.home-history-panel {
  margin-top: 1.15rem;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-card, #2a3342);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(14, 18, 24, 0.97) 0%, rgba(9, 12, 16, 0.95) 55%, rgba(7, 10, 14, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.home-history-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-history-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.8);
}

.home-history-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-history-progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-history-progress-current {
  color: #e8fffb;
}

.home-history-progress-next {
  color: rgba(232, 240, 238, 0.6);
}

.home-history-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.home-history-progress-fill {
  display: block;
  width: 0;
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2dd4bf;
  transition: width 320ms ease;
}

.home-history-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.home-history-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-card-nested, #242c38);
  background: linear-gradient(160deg, rgba(14, 18, 24, 0.9) 0%, rgba(6, 9, 12, 0.75) 100%);
}

.home-history-meta-item .home-history-meta-label {
  margin: 0;
}

.home-history-meta-item .home-history-meta-value {
  font-variant-numeric: tabular-nums;
}

.home-history-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.48);
}

.home-history-meta-value {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(232, 240, 238, 0.9);
}

.home-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.home-history-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2DD4BF;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.home-history-link:hover {
  color: #a7f3d0;
  border-bottom-color: #a7f3d0;
}

@media (max-width: 720px) {
  .home-history-panel {
    padding: 16px 14px 14px;
  }

  .home-history-meta {
    grid-template-columns: 1fr;
  }
}

.proof-grid-note {
  margin: 0.8rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.65;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.62);
}

.proof-section-note {
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.48);
}

.proof-section-note a {
  color: #bff7ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.28);
}

.proof-section-note a:hover {
  color: #e8fdf7;
  border-bottom-color: rgba(45, 212, 191, 0.48);
}

.partner-offers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0.2rem;
}

.partner-offer {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.72);
}

.decision-demo-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.decision-demo-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2DD4BF;
}

.decision-demo-title {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.14;
  color: #E8F0EE;
}

.decision-demo-copy {
  margin: 0;
  max-width: 24rem;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(232, 240, 238, 0.72);
}

.decision-demo-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.decision-intent-btn {
  min-height: 44px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(232, 240, 238, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.decision-intent-btn:hover,
.decision-intent-btn.is-active {
  color: #d9fffb;
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
}

.decision-demo-card {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 16px 16px 15px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.025);
}

.decision-demo-topline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.58);
}

.decision-demo-headline {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.08;
  color: #E8F0EE;
}

.decision-demo-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.78);
}

.decision-demo-delta {
  margin: -0.2rem 0 0;
  min-height: 1.15rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 238, 0.52);
}

.decision-demo-delta.is-shift {
  color: rgba(167, 243, 208, 0.88);
}

.decision-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.decision-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.015);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 238, 0.64);
}

.decision-demo-pill.is-accent {
  border-color: rgba(45, 212, 191, 0.16);
  background: rgba(45, 212, 191, 0.04);
  color: #d9fffb;
}

.decision-demo-pill-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.decision-demo-pill-label {
  display: inline-block;
}

.decision-demo-reasons {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.42rem;
  color: rgba(232, 240, 238, 0.82);
}

.decision-demo-reasons li {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.decision-demo-note {
  margin: 0.1rem 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 214, 153, 0.92);
}

.decision-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-top: 0.1rem;
}

.decision-action-btn,
.decision-action-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-action-btn {
  min-height: 44px;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #E8F0EE;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.decision-action-btn:hover {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
  color: #d9fffb;
}

.decision-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2DD4BF;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.decision-action-link:hover {
  color: #a7f3d0;
  border-bottom-color: #a7f3d0;
}

.decision-action-link--primary {
  color: #d9fffb;
  border-bottom-color: rgba(45, 212, 191, 0.65);
}

/* Issuer / chain share visualization — visible on all viewports */
.issuer-viz {
  display: block;
  margin: 1.1rem 0 0.85rem;
  padding: 14px 16px 12px;
  border: 1px solid var(--border-card-nested, #242c38);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(14, 18, 24, 0.72) 0%, rgba(6, 9, 12, 0.82) 100%);
}
.issuer-viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 218, 228, 0.75);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-card, #2a3342);
}
.issuer-viz-header span:last-child {
  font-variant-numeric: tabular-nums;
  color: rgba(45, 212, 191, 0.85);
}
.issuer-viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr) 52px;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(36, 44, 56, 0.95);
}
.issuer-viz-row:last-child { border-bottom: 0; }
.issuer-viz-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.issuer-viz-bar {
  display: block;
  position: relative;
  height: 6px;
  min-width: 0;
  width: 100%;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.issuer-viz-bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #14b8a6, #5eead4);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
}
.issuer-viz-pct {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
  justify-self: end;
  color: #a7f3d0;
}

.evolution-note {
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.58);
}

.evolution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 1.5rem 0 0;
}

.evolution-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 16px 16px 15px;
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 4px;
  background: rgba(10, 13, 18, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.evolution-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.08);
  color: #2DD4BF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.evolution-card-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.evolution-card-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2DD4BF;
}

.evolution-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.8);
}

/* ---- Tablet: prevent issuer-viz-row overflow on portrait tablets
   (769–900px) where the 2-col market grid is tighter.
   Drop fixed min-widths in favour of proportional fr columns. ---- */
@media (max-width: 900px) {
  .issuer-viz-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 44px;
    gap: 8px 10px;
  }
}

@media (max-width: 768px) {
  .narrative-section {
    padding: 32px 22px 36px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: none;
  }
  .narrative-section + .narrative-section { margin-top: 1.5rem; }
  /* Solid near-opaque backdrop behind narrative text. Uses the site dark
     palette (#0a0d12) at 90% so map comets stay faintly visible but text
     reads cleanly — replaces the earlier radial vignette that faded to 0
     at the edges and let the map bleed through the copy. */
  .narrative-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.92), rgba(10, 13, 18, 0.96));
    border: 1px solid var(--border-card, #2a3342);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }

  .section-eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    color: #2DD4BF;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  html.dt-page .narrative-section .section-eyebrow,
  html.dt-page .live-scenario-intro .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 9px;
    color: #5eead4;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    background: rgba(45, 212, 191, 0.07);
  }
  html.dt-page .narrative-section .section-eyebrow::before,
  html.dt-page .live-scenario-intro .section-eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.55);
  }

  .narrative-heading {
    display: block;
    font-family: var(--serif-display);
    font-size: 28px;
    font-weight: 400;
    color: #E8F0EE;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .narrative-body {
    display: block;
    font-size: 13px;
    line-height: 1.68;
    /* Was 0.65 — lifted for contrast against the map canvas. */
    color: rgba(232, 240, 238, 0.86);
    font-style: normal;
  }

  .narrative-body a {
    color: #2DD4BF;
    text-decoration: none;
  }

  .pull-quote-mobile {
    display: block;
    margin-top: 20px;
    padding: 12px 0 12px 16px;
    border-left: 2px solid rgba(45, 212, 191, 0.45);
    font-size: 15px;
    font-style: italic;
    color: rgba(232, 240, 238, 0.92);
    line-height: 1.6;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0.95rem 0 0.15rem;
  }

  .proof-card {
    padding: 14px 14px 13px;
  }

  .proof-card-compact {
    gap: 0.35rem;
  }

  .proof-card-title {
    font-size: 20px;
  }

  .proof-card-copy {
    font-size: 12px;
    line-height: 1.56;
  }

  .proof-card-visual {
    height: auto;
    min-height: 188px;
    display: flex;
    flex-direction: column;
  }

  .proof-card-link {
    font-size: 10px;
  }

  #built-on-ddd {
    max-width: none;
  }

  #built-on-ddd .narrative-body > p:first-child,
  #built-on-ddd .homepage-route-links,
  #built-on-ddd .proof-card-copy {
    max-width: none;
  }

  #built-on-ddd .proof-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0.95rem;
  }

  #built-on-ddd .proof-card {
    padding: 14px 14px 13px;
  }

  #built-on-ddd .proof-card-brand {
    gap: 8px;
  }

  #built-on-ddd .proof-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 10px;
  }

  #built-on-ddd .proof-brand-name {
    font-size: 10px;
  }

  #built-on-ddd .proof-brand-sub {
    font-size: 11px;
  }

  #built-on-ddd .proof-card-title {
    font-size: 20px;
  }

  #built-on-ddd .proof-card-copy {
    font-size: 12px;
    line-height: 1.56;
  }

  #built-on-ddd .proof-card-visual {
    height: auto;
    min-height: 188px;
    border-radius: 8px;
  }

  #built-on-ddd .proof-surface {
    padding: 12px;
    gap: 10px;
  }

  #built-on-ddd .proof-surface-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  #built-on-ddd .proof-surface-chip,
  #built-on-ddd .proof-surface-meta,
  #built-on-ddd .proof-market-row,
  #built-on-ddd .proof-basket-item,
  #built-on-ddd .proof-basket-metric span,
  #built-on-ddd .proof-market-threshold-label,
  #built-on-ddd .proof-market-threshold strong,
  #built-on-ddd .proof-api-audience {
    font-size: 9px;
  }

  #built-on-ddd .proof-ays-grid {
    gap: 6px;
  }

  #built-on-ddd .proof-ays-step {
    min-height: 68px;
    padding: 8px;
  }

  #built-on-ddd .proof-ays-step strong,
  #built-on-ddd .proof-ays-outcome strong,
  #built-on-ddd .proof-basket-metric strong {
    font-size: 12px;
  }

  #built-on-ddd .proof-ays-signal {
    font-size: 9px;
  }

  #built-on-ddd .proof-ays-step span:last-child {
    font-size: 10px;
  }

  #built-on-ddd .proof-surface--api .proof-preview-api {
    padding: 10px;
  }

  #built-on-ddd .proof-card-live {
    gap: 6px;
  }

  #built-on-ddd .proof-live-metric {
    min-height: 54px;
    padding: 8px 9px;
  }

  #built-on-ddd .proof-live-label,
  #built-on-ddd .proof-live-value {
    font-size: 9px;
  }

  #built-on-ddd .proof-api-audiences,
  #built-on-ddd .proof-basket-metrics {
    gap: 6px;
  }

  #built-on-ddd .proof-basket-live-row {
    min-height: 38px;
    padding: 8px 10px;
  }

  #built-on-ddd .proof-basket-live-asset strong,
  #built-on-ddd .proof-basket-live-value {
    font-size: 10px;
  }

  #built-on-ddd .proof-basket-live-asset span:last-child {
    font-size: 10px;
  }

  #built-on-ddd .proof-market-book {
    gap: 6px;
  }

  #built-on-ddd .proof-market-row {
    min-height: 30px;
    padding: 0 10px;
  }

  .homepage-route-links {
    margin-top: 0.8rem;
    font-size: 9px;
    line-height: 1.6;
  }

  .market-structure-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 1rem;
  }

  .market-structure-card {
    padding: 14px 14px 13px;
  }

  .market-structure-title {
    font-size: 19px;
    line-height: 1.18;
  }

  .market-structure-copy {
    font-size: 13px;
    line-height: 1.6;
  }

  .market-structure-card .issuer-viz {
    margin: 0.85rem 0 0.7rem;
  }

  .live-scenario-intro {
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .live-scenario-title {
    font-size: 24px;
  }

  .live-scenario-copy {
    font-size: 13px;
    line-height: 1.58;
  }

  .home-history-panel {
    margin-top: 0.9rem;
    padding: 14px 14px 13px;
  }

  .home-history-chart-wrap {
    padding: 9px 10px 8px;
  }

  .home-history-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-history-meta-label {
    font-size: 9px;
  }

  .home-history-meta-value {
    font-size: 13px;
  }

  .home-history-actions {
    gap: 0.7rem;
    margin-top: 0.85rem;
  }

  .home-history-link {
    font-size: 10px;
  }

  .decision-demo {
    margin-top: 0.95rem;
    padding: 14px 14px 13px;
  }

  .current-read-cta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.95rem;
    padding: 14px 14px 13px;
  }

  .current-read-cta-title {
    font-size: 22px;
  }

  .current-read-cta-text {
    font-size: 13px;
  }

  .current-read-cta-actions {
    gap: 0.55rem;
  }

  .current-read-cta-link {
    width: 100%;
  }

  .current-read-cta-sub {
    font-size: 10px;
  }

  .decision-demo-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.85rem;
  }

  .decision-demo-copy {
    max-width: none;
    font-size: 11px;
    line-height: 1.55;
  }

  .decision-demo-intents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .decision-intent-btn {
    min-height: 44px;
    padding: 0.55rem 0.6rem;
    letter-spacing: 0.08em;
  }

  .decision-demo-card {
    padding: 14px 14px 13px;
  }

  .decision-demo-headline {
    font-size: 20px;
    line-height: 1.12;
  }

  .decision-demo-delta {
    font-size: 9px;
  }

  .decision-demo-summary,
  .decision-demo-reasons li {
    font-size: 12px;
    line-height: 1.52;
  }

  .decision-demo-note {
    font-size: 11px;
  }

  .decision-demo-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .decision-action-btn,
  .decision-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .proof-grid-note {
    font-size: 10px;
    line-height: 1.6;
  }

  .partner-offers {
    gap: 0.45rem;
  }

  .partner-offer {
    width: 100%;
    justify-content: center;
    font-size: 9px;
  }

  .subscribe-form {
    flex-direction: column;
    max-width: none;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }

  .subscribe-form input {
    min-height: 44px;
  }

  .subscribe-form button {
    min-height: 44px;
  }

  .issuer-viz {
    display: block;
    margin: 18px 0 14px;
    padding: 12px 14px 10px;
    border: 1px solid var(--border-card-nested, #242c38);
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(14, 18, 24, 0.75) 0%, rgba(6, 9, 12, 0.85) 100%);
  }
  .issuer-viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 218, 228, 0.72);
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-card, #2a3342);
  }
  .issuer-viz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 48px;
    align-items: center;
    gap: 8px 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(36, 44, 56, 0.95);
  }
  .issuer-viz-row:last-child { border-bottom: 0; }
  .issuer-viz-name {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(232, 240, 238, 0.86);
  }
  .issuer-viz-bar {
    display: block;
    position: relative;
    height: 5px;
    width: 100%;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 999px;
    overflow: hidden;
  }
  .issuer-viz-bar-fill {
    display: block;
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, #14b8a6, #5eead4);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
  }
  .issuer-viz-pct {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #a7f3d0;
  }
  .evolution-note {
    margin-top: 1rem;
    font-size: 10px;
    line-height: 1.7;
  }
  .evolution-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 1.2rem;
  }
  .evolution-card {
    padding: 14px 14px 13px;
  }
  .evolution-card-title {
    font-size: 9px;
  }
  .evolution-card p {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 560px) {
  .narrative-section {
    padding: 28px 1rem 32px;
  }

  .narrative-section::before {
    inset: 0;
  }

  .narrative-heading {
    font-size: 24px;
  }

  .homepage-route-links {
    font-size: 9px;
    line-height: 1.7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
  }

  .homepage-route-links a,
  .research-bridge a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    line-height: 1.2;
  }

  .home-history-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .decision-demo-intents {
    grid-template-columns: 1fr;
  }

  /* Reduce the minimum visual height on narrow phones so cards aren't
     artificially tall. The base styles already handle height:auto and
     the flex layout, so only the min-height needs overriding here. */
  .proof-card-visual {
    height: auto;
    min-height: 170px;
    display: flex;
    flex-direction: column;
  }
  #built-on-ddd .proof-card-visual {
    min-height: 170px;
  }
}

/* ================================================================
   VERY SMALL PHONES  ≤ 420px
   Targeted fixes for screens where the standard mobile layout
   is still tight (iPhone SE / small Android, ~375–420px).
   ================================================================ */
@media (max-width: 420px) {
  /* Tighter section wrapper */
  .narrative-section {
    padding: 22px 12px 26px;
    margin: 10px 8px;
  }
  .narrative-section + .narrative-section {
    margin-top: 12px;
  }
  .narrative-heading {
    font-size: 21px;
    margin-bottom: 14px;
  }

  /* ---- Market structure ---- */
  .market-structure-card {
    padding: 12px 12px 11px;
  }
  .market-structure-title {
    font-size: 18px;
  }
  .market-structure-copy {
    font-size: 12px;
  }
  .issuer-viz {
    margin: 0.75rem 0 0.6rem;
    padding: 10px 12px 8px;
  }
  .issuer-viz-row {
    grid-template-columns: 1fr 2fr 38px;
    gap: 6px 8px;
    padding: 7px 0;
  }
  .issuer-viz-name {
    font-size: 9px;
  }
  .issuer-viz-pct {
    font-size: 9px;
  }

  /* ---- History ---- */
  .home-history-panel {
    padding: 12px 12px 11px;
  }
  .home-history-chart-wrap {
    padding: 8px 10px 7px;
  }
  .home-history-meta {
    gap: 8px;
    margin-top: 12px;
  }
  .home-history-meta-item {
    padding: 10px 11px;
    gap: 4px;
  }
  .home-history-meta-label {
    font-size: 8px;
  }
  .home-history-meta-value {
    font-size: 12px;
  }

  /* ---- Built on DDD: outer card ---- */
  #built-on-ddd .proof-card {
    padding: 12px 12px 11px;
    gap: 0.4rem;
  }
  #built-on-ddd .proof-brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
    font-size: 9px;
  }
  #built-on-ddd .proof-brand-name {
    font-size: 9px;
  }
  #built-on-ddd .proof-brand-sub {
    font-size: 10px;
  }
  #built-on-ddd .proof-surface {
    padding: 10px;
    gap: 8px;
  }

  /* AYS: collapse 3-col step grid → 1-col with [num | title+desc] rows */
  #built-on-ddd .proof-ays-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  #built-on-ddd .proof-ays-step {
    display: grid;
    grid-template-columns: 18px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 2px;
    min-height: 0;
    padding: 8px 10px;
  }
  #built-on-ddd .proof-ays-step-num {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 1px;
  }
  #built-on-ddd .proof-ays-step strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
  }
  #built-on-ddd .proof-ays-step span:last-child {
    grid-column: 2;
    grid-row: 2;
    font-size: 9px;
  }
  #built-on-ddd .proof-ays-outcome {
    padding: 8px 10px;
    gap: 4px;
  }
  #built-on-ddd .proof-ays-outcome strong {
    font-size: 11px;
  }
  #built-on-ddd .proof-ays-signal {
    font-size: 8px;
  }

  /* API card */
  #built-on-ddd .proof-surface--api .proof-preview-api {
    padding: 8px 10px;
  }
  #built-on-ddd .proof-api-audiences {
    gap: 5px;
  }
  #built-on-ddd .proof-api-audience {
    min-height: 26px;
    padding: 0 6px;
    font-size: 9px;
  }

  /* Basket card */
  #built-on-ddd .proof-basket-live-row {
    min-height: 32px;
    padding: 6px 10px;
  }
  #built-on-ddd .proof-basket-live-asset strong,
  #built-on-ddd .proof-basket-live-value {
    font-size: 10px;
  }

  /* Market card */
  #built-on-ddd .proof-market-book {
    gap: 5px;
  }
  #built-on-ddd .proof-market-row {
    min-height: 28px;
    padding: 0 8px;
    font-size: 8px;
  }
  #built-on-ddd .proof-market-threshold strong {
    font-size: 9px;
  }
  #built-on-ddd .proof-market-threshold-label {
    font-size: 8px;
  }
}

/* Mobile homepage polish — wins over earlier 768px narrative blocks */
@media (max-width: 768px) {
  html.dt-page .narrative-section {
    width: auto;
    max-width: none;
    margin-left: max(12px, env(safe-area-inset-left, 0px));
    margin-right: max(12px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .narrative-section {
    padding: 26px 18px 28px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .narrative-section::before {
    inset: 0;
    border-radius: 14px;
  }

  .narrative-section + .narrative-section {
    margin-top: 0.85rem;
  }

  .narrative-heading {
    font-size: 1.375rem;
    margin-bottom: 10px;
  }

  .narrative-body {
    font-size: 0.875rem;
    line-height: 1.62;
  }

  .market-beat-section {
    padding-top: 1.75rem;
  }

  .market-beat-frame {
    gap: 0.85rem;
    margin-top: 0.75rem;
  }

  .market-beat-step {
    font-size: 9px;
    margin-bottom: 0.15rem;
  }

  .market-beat-heading {
    font-size: 1.3rem;
  }

  .market-beat-copy p {
    font-size: 0.875rem;
    line-height: 1.58;
  }

  .market-structure-card--feature {
    padding: 16px 16px 15px;
  }

  /* In practice: headline + compact legend + live route card only */
  .live-scenario-section {
    width: auto;
    max-width: none;
    padding: 1.25rem max(12px, env(safe-area-inset-right, 0px)) 1.5rem max(12px, env(safe-area-inset-left, 0px));
    margin: 0.5rem max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    min-height: 0;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: flex-start;
    background: transparent;
  }

  .live-scenario-section::before,
  .live-scenario-section::after {
    display: none;
  }

  .live-scenario-frame {
    gap: 12px;
  }

  .live-scenario-intro {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .live-scenario-copy-block {
    gap: 0.35rem;
  }

  .live-scenario-title-row {
    align-items: flex-start;
    gap: 8px;
  }

  .live-scenario-live-badge {
    display: none;
  }

  .live-scenario-title {
    font-size: 1.25rem;
    line-height: 1.22;
    flex: 1;
    min-width: 0;
  }

  .live-scenario-copy {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.58;
    color: rgba(232, 240, 238, 0.78);
  }

  .live-scenario-dot-legend {
    margin-top: 0.65rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    gap: 6px;
  }

  .live-scenario-dot-legend-kicker,
  .live-scenario-dot-legend-copy {
    display: none;
  }

  .live-scenario-dot-legend-head {
    justify-content: flex-start;
    gap: 8px;
  }

  .live-scenario-dot-legend-ratio {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(167, 243, 208, 0.9);
  }

  .live-scenario-dot-legend-key {
    gap: 6px 12px;
  }

  .live-scenario-dot-legend-item {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(232, 240, 238, 0.62);
  }

  .live-scenario-dot-legend-swatch {
    width: 8px;
    height: 8px;
  }

  /* Keep the decoder row visible on mobile even with the map animation off. */
  .live-scenario-guide {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 0.8rem;
    padding-top: 0;
  }

  .live-scenario-guide-item {
    padding: 10px 11px 9px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(14, 18, 24, 0.42), rgba(10, 13, 18, 0.22));
  }

  .live-scenario-guide-copy {
    grid-template-rows: auto minmax(0, auto) auto;
    gap: 3px;
  }

  .live-scenario-guide-value {
    min-height: 0;
    font-size: 10px;
    line-height: 1.36;
    overflow-wrap: anywhere;
  }

  #paymentStoryCard.story-banner {
    min-height: 0;
  }

  .live-scenario-story-route,
  #paymentStoryCard .sb-quote,
  #paymentStoryCard .sb-meta {
    min-height: 0;
  }

  .live-scenario-guide-note {
    font-size: 7px;
  }

  .live-scenario-map-stage {
    display: none !important;
  }

  .live-scenario-proof {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #paymentStoryCard.story-banner {
    border-radius: 16px;
    padding: 16px 16px 15px !important;
  }

  #paymentStoryCard.story-banner .sb-quote {
    font-size: 1rem !important;
    line-height: 1.42 !important;
  }

  #paymentStoryCard.story-banner {
    display: none !important;
  }

  .live-scenario-story-route {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .trusted-section {
    padding: 1.75rem 12px 1.5rem;
  }

  .trusted-section .narrative-body {
    padding: 0.95rem;
    border-radius: 16px;
  }

  .trusted-logos {
    gap: 0.65rem;
  }

  .trusted-logo {
    padding: 0.9rem 0.95rem;
    min-height: 0;
    grid-template-rows: auto auto 1fr;
    gap: 0.45rem;
  }

  .trusted-logo-copy {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  html.dt-page .signup-block {
    margin-top: 0.5rem;
  }
}
