:root {
  /* ============================================================
     PRIMARY — single swap point.
     Change ONLY --primary-rgb to re-theme every accent on the site.
     Black today (10,10,10). Future example: 37,99,235 for blue.
     ============================================================ */
  --primary-rgb: 190, 143, 69;   /* Quant gold #BE8F45 — single accent swap point */
  --primary: rgb(var(--primary-rgb));
  /* Lighter steps derive from --primary, so swapping --primary-rgb alone re-themes everything */
  --primary-2: color-mix(in srgb, var(--primary) 82%, #fff);   /* gradient 2nd stop, hovers */
  --primary-3: color-mix(in srgb, var(--primary) 64%, #fff);   /* lighter still */

  /* Legacy accent aliases (gold/orange names from the original) → primary.
     Kept so existing rules keep resolving; all now route through --primary. */
  --gold: var(--primary); --gold-light: var(--primary-2); --gold-bright: var(--primary-3);

  /* Gold palette stops (from brand palette) */
  --accent-tint: #FFF3E3;
  --accent-2: #E9C89B;
  --accent-3: #D4A96A;
  --accent: #BE8F45;
  --accent-deep: #694500;    /* AA-contrast gold for text links on white */
  --accent-deepest: #2B1900;
  /* Dark hero surfaces */
  --hero-bg: #0E0C08;
  --hero-bg-2: #1A150C;
  --hero-text: #FFFFFF;
  --hero-text-dim: rgba(255,255,255,0.70);

  /* Status colours — darkened for AA contrast on white */
  --green: #1E9E57; --red: #D64545;

  /* Light surfaces (inverted from the original dark scale) */
  --bg: #FFFFFF;
  --bg-card: rgba(0,0,0,0.025);
  --bg-card-hover: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.10);
  --border-gold: rgba(var(--primary-rgb), 0.22);

  /* Text on light */
  --text: #0A0A0A;
  --text-dim: rgba(0,0,0,0.62);
  --text-muted: rgba(0,0,0,0.45);

  --radius: 20px; --radius-sm: 14px; --radius-xs: 10px;

  /* Font family */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* =============================================================
   base.css — reset, typography, layout primitives
   Tokens live in tokens.css (loaded before this file).
   ============================================================= */

/* Modern reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

/* =============================================================
   Layout primitives
   ============================================================= */

/* Full-width wrapper — centered, max ~1100px, 24px gutters */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Reading column — long-form prose, constrained for comfortable line lengths */
.reading {
  max-width: 720px;
  margin-inline: auto;
}

/* =============================================================
   Heading scale
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
}

h1 {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -2.5px;
}

h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: -1.5px;
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.5px;
}

h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.25px;
}

/* =============================================================
   Body text & links
   ============================================================= */

p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
}

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover { color: var(--accent-deepest); }

a:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================================
   Lists
   ============================================================= */

ul, ol {
  padding-left: 1.4em;
}

li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 6px;
}

li:last-child {
  margin-bottom: 0;
}

/* =============================================================
   Misc elements
   ============================================================= */

strong, b {
  font-weight: 700;
  color: var(--text);
}

em, i {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 32px;
}

/* Section label pill (small uppercase category label) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Vertical spacing between sibling blocks */
.block + .block {
  margin-top: 64px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================
   components.css — nav, footer, hero, card-grid, cta-band,
   breadcrumbs, disclaimer, shared button styles.
   ============================================================= */

/* =============================================================
   Shared button styles
   ============================================================= */

.btn-primary,
a.nav-cta,
a.hero-cta,
a.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0A0A0A;          /* dark text on gold (was var(--bg)) */
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.18);
}

.btn-primary:hover,
a.nav-cta:hover,
a.hero-cta:hover,
a.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(var(--primary-rgb), 0.28);
  color: #0A0A0A;
}

.btn-primary:focus-visible,
a.nav-cta:focus-visible,
a.hero-cta:focus-visible,
a.cta-btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(var(--primary-rgb), 0.2);
  color: var(--text);
}

/* =============================================================
   Site nav — fixed top, white translucent bg, blur
   ============================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo — far left (inline SVG wordmark, inherits color via currentColor) */
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo-mark {
  height: 24px;
  width: auto;
  display: block;
}

.nav-logo:hover {
  color: var(--text);
}

/* Collapsible menu wrapper (desktop: always visible inline) */
.nav-menu {
  display: contents; /* invisible layout wrapper on desktop */
}

/* Nav links — horizontal row on desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* Active / current page link */
.nav-links a.is-active {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--primary-rgb), 0.5);
}

/* CTA button — overrides shared styles for smaller nav size */
a.nav-cta {
  padding: 9px 20px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Language switcher — compact dropdown (native <details>) */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  font-size: 13px;
}

.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: color 0.2s;
}

.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.7;
}
.lang-switch > summary:hover,
.lang-switch[open] > summary { color: var(--text); }

/* single-locale fallback (no <details>) */
.lang-switch > span[aria-current="true"] { color: var(--text); font-weight: 600; }

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 150px;
  list-style: none;
  margin-bottom: 0;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  z-index: 1100;
}

.lang-menu li { margin: 0; }

.lang-menu a,
.lang-menu span {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  text-decoration: none;
}

.lang-menu a:hover { background: var(--bg-card); color: var(--text); }
.lang-menu [aria-current="true"] { color: var(--text); font-weight: 600; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Push page content below fixed nav */
.page-main {
  padding-top: 64px; /* equals nav height */
}

/* =============================================================
   Mobile nav  (≤640px)
   ============================================================= */

@media (max-width: 640px) {
  .nav-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-logo {
    margin-right: auto;
  }

  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Collapsed panel — hidden by default */
  .nav-menu {
    position: absolute;
    top: 64px; /* flush below nav bar */
    left: 0;
    right: 0;
    background: var(--bg); /* solid so page content never bleeds through the panel */
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }

  /* Visible when parent .site-nav has .open */
  .site-nav.open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Stacked links */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-links a {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
  }

  /* Full-width CTA on mobile */
  a.nav-cta {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    text-align: center;
  }

  /* Language dropdown expands inline inside the hamburger panel */
  .lang-switch { width: 100%; }
  .lang-switch > summary { font-size: 15px; padding: 10px 12px; }
  .lang-menu {
    position: static;
    margin-top: 4px;
    box-shadow: none;
    border: none;
    padding: 0 0 0 8px;
    min-width: 0;
  }
  .lang-menu a, .lang-menu span { font-size: 15px; }

  /* Animated bars when open */
  .site-nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =============================================================
   Site footer
   ============================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
  padding-block: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================
   Breadcrumbs
   ============================================================= */

.breadcrumbs {
  padding: 80px 24px 0; /* top: clear the fixed nav */
  max-width: 1100px;
  margin-inline: auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.breadcrumbs li + li::before {
  content: '›';
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text-dim);
}

/* =============================================================
   Hero blocks
   ============================================================= */

/* Shared hero base */
.block--hero {
  position: relative;
  overflow: hidden;
}

/* Landing hero — dark animated band with warm-gold drift */
.block--hero-landing {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background: linear-gradient(160deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%);
  overflow: hidden;
}

/* Warm-gold radial glow that drifts across the hero */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 30%,
    rgba(var(--primary-rgb), 0.18) 0%,
    transparent 70%);
  will-change: transform;
}

/* Rising crypto symbols — decorative layer behind hero content.
   Hidden by default; only shown/animated under prefers-reduced-motion: no-preference. */
.hero-rising {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: none;
}
.hero-rising .rising {
  position: absolute;
  bottom: 0;
  left: var(--x);
  font-size: var(--s);
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  user-select: none;
}
.block--hero-landing { --rise-travel: 95vh; }
.block--hero-article { --rise-travel: 46vh; }

/* Centered reading-width content column */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.block--hero-landing h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.1;
  max-width: 760px;
  color: var(--hero-text);
  margin-bottom: 0;
}

.block--hero-landing .hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--hero-text-dim);
  max-width: 560px;
  margin-top: 24px;
  line-height: 1.7;
}

/* Typewriter command bar */
.hero-typewriter {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 32px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.4;          /* fixed line box so the pill never jumps when text is empty */
  color: var(--hero-text);
  min-width: 260px;
  max-width: 100%;
}

.hero-tw-text {
  flex: 1;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.4em;   /* hold the line height even when empty (mid-cycle) */
}

.hero-tw-caret {
  display: inline-block;
  width: 2px;
  height: 1.4em;
  background: var(--accent);
  margin-left: 3px;
  border-radius: 1px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Mic row */
.hero-mic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-mic-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-mic-label {
  font-size: 13px;
  color: var(--hero-text-dim);
  font-weight: 500;
}

/* Voice-wave SVG bars */
.hero-wave {
  width: 54px;
  height: 24px;
  flex-shrink: 0;
}

.hero-wave .bar {
  fill: var(--accent);
  opacity: 0.85;
}

/* Conviction cards row */
.hero-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-sm);
  min-width: 180px;
}

.hero-card-label {
  font-size: 13px;
  color: var(--hero-text-dim);
  flex: 1;
  text-align: left;
}

.hero-card-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* CTA */
.block--hero-landing .hero-cta {
  margin-top: 32px;
  padding: 15px 40px;
  font-size: 16px;
}

/* Stat strip */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--hero-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── All animations wrapped in prefers-reduced-motion: no-preference ── */
@media (prefers-reduced-motion: no-preference) {
  /* Warm-gold glow drift */
  @keyframes warmDrift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(4%, -3%) scale(1.06); }
    66%  { transform: translate(-3%, 2%) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
  }

  .hero-glow {
    animation: warmDrift 12s ease-in-out infinite;
  }

  /* Typewriter caret blink */
  @keyframes caretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }

  .hero-tw-caret {
    animation: caretBlink 1s step-start infinite;
  }

  /* Mic dot breathe */
  @keyframes micBreathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
  }

  .hero-mic-dot {
    animation: micBreathe 1.8s ease-in-out infinite;
  }

  /* Voice-wave bar heights — staggered */
  @keyframes waveBar {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(2.2); }
  }

  .hero-wave .bar {
    transform-origin: center bottom;
    animation: waveBar 1.1s ease-in-out infinite;
  }

  .hero-wave .bar:nth-child(1) { animation-delay: 0s; }
  .hero-wave .bar:nth-child(2) { animation-delay: 0.15s; }
  .hero-wave .bar:nth-child(3) { animation-delay: 0.30s; }
  .hero-wave .bar:nth-child(4) { animation-delay: 0.45s; }
  .hero-wave .bar:nth-child(5) { animation-delay: 0.60s; }

  /* Conviction card soft pulse */
  @keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
    50%       { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }
  }

  .hero-card {
    animation: cardPulse 3.5s ease-in-out infinite;
  }

  .hero-card:nth-child(2) { animation-delay: 1.2s; }
  .hero-card:nth-child(3) { animation-delay: 2.4s; }

  /* Rising crypto symbols (motion allowed) */
  .hero-rising { display: block; }
  .hero-rising .rising {
    animation: rise var(--d) linear var(--delay) infinite;
  }
  @keyframes rise {
    0%   { transform: translateY(20px);  opacity: 0; }
    12%  { opacity: 0.16; }
    88%  { opacity: 0.16; }
    100% { transform: translateY(calc(-1 * var(--rise-travel, 90vh))); opacity: 0; }
  }
}

/* Article hero — dark band, breadcrumbs sit on it light-on-dark */
.block--hero-article {
  position: relative;
  background: var(--hero-bg-2); /* slightly lighter than the rich landing hero, to distinguish it */
  padding-top: 64px; /* clear the fixed nav */
  overflow: hidden;
}

/* Subtle gold top-glow (static, reduces to nothing if motion is reduced) */
.block--hero-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
}

/* Centered reading-width inner column */
.block--hero-article .hero-band {
  position: relative;
  z-index: 1;          /* above the rising-symbols layer */
  max-width: 760px;
  margin-inline: auto;
  padding: 40px 24px 60px;
}

/* Breadcrumbs on the dark band: light-on-dark */
.block--hero-article .breadcrumbs {
  padding: 0 0 24px;  /* override the normal top-padding (nav offset already in band) */
  max-width: none;
  margin-inline: 0;
}

.block--hero-article .breadcrumbs li {
  color: rgba(255, 255, 255, 0.5);
}

.block--hero-article .breadcrumbs li + li::before {
  color: rgba(255, 255, 255, 0.35);
}

.block--hero-article .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.block--hero-article .breadcrumbs a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.block--hero-article .breadcrumbs li[aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

.block--hero-article h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  max-width: 100%;
  color: var(--hero-text);
  margin-bottom: 0;
}

.block--hero-article .hero-sub {
  font-size: 17px;
  color: var(--hero-text-dim);
  max-width: 640px;
  margin-top: 16px;
  line-height: 1.7;
}

.block--hero-article .hero-cta {
  margin-top: 28px;
}

/* Subtle gold glow animation (only when reduced-motion is not requested) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes articleGoldGlow {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 1; }
  }

  .block--hero-article::before {
    animation: articleGoldGlow 4s ease-in-out infinite;
  }
}

@media (max-width: 640px) {
  .block--hero-landing {
    padding: 100px 16px 80px;
    min-height: auto;
  }

  .block--hero-landing h1 {
    letter-spacing: -1.5px;
  }

  .hero-typewriter {
    font-size: 13px;
    padding: 10px 14px;
  }

  .hero-cards {
    gap: 8px;
  }

  .hero-card {
    min-width: 140px;
    padding: 8px 12px;
  }

  .block--hero-article .hero-band {
    padding: 32px 20px 48px;
  }
}

/* =============================================================
   Card grid — rich link cards (re-skin)
   ============================================================= */

.block--card-grid {
  padding-block: 64px;
  padding-inline: 24px;
  max-width: 1100px;
  margin-inline: auto;
}

.block--card-grid h2 {
  margin-bottom: 40px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
}

.link-card-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.link-card-title {
  font-weight: 700;
}

.link-card-text {
  color: var(--text-dim);
  font-size: 14px;
}

.link-card-arrow {
  color: var(--accent-deep);
  align-self: flex-end;
}

@media (prefers-reduced-motion: no-preference) {
  .link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.10);
  }

  .link-card:hover .link-card-arrow {
    transform: translateX(2px);
    transition: transform 0.2s ease;
  }
}

/* Dark-band variants legible */
.band-dark .link-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--hero-text, #F5F5F5);
}

.band-dark .link-card-text {
  color: rgba(245, 245, 245, 0.75);
}

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

/* =============================================================
   CTA band
   ============================================================= */

.block--cta-band {
  background: radial-gradient(ellipse 70% 90% at 50% 0%,
    rgba(var(--primary-rgb), 0.06) 0%,
    transparent 70%),
    rgba(0,0,0,0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}

.block--cta-band h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: -1.5px;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 16px;
}

.block--cta-band > p:not(.disclaimer) {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-btn {
  padding: 15px 40px;
  font-size: 16px;
}

/* =============================================================
   Disclaimer — visible muted band (NOT tiny fine print)
   ============================================================= */

.disclaimer {
  display: block;
  margin-top: 32px;
  padding: 14px 24px;
  background: rgba(0,0,0,0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

/* When disclaimer is stand-alone inside cta-band (no h2/p siblings) */
.block--cta-band > .disclaimer:only-child,
.block--cta-band > .disclaimer:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .block--cta-band {
    padding: 60px 20px;
  }
}

/* =============================================================
   404 page
   ============================================================= */

.notfound {
  display: grid;
  place-items: center;
  min-height: 72vh;
  text-align: center;
  padding: 80px 24px;
}

.notfound-inner { max-width: 480px; }

.notfound-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 44px;
}

.notfound-code {
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin: 0;
  color: var(--text);
}

.notfound h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 12px;
}

.notfound-sub {
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* =============================================================
   Article layout — two-column TOC + content grid (≥1024px)
   ============================================================= */

/* Default: single column (TOC hidden on narrow screens) */
.article-layout {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-top: 40px;   /* breathing room below the dark hero band (and for the sticky TOC) */
}

/* Hide the aside by default (mobile-first) */
.toc-aside {
  display: none;
}

@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    padding-inline: 24px;
  }

  .toc-aside {
    display: block;
    position: sticky;
    top: 96px; /* clears fixed nav (64px) + breathing room */
    align-self: start;
  }
}

/* TOC list */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--text);
}

/* Active section highlight */
.toc a.is-active {
  color: var(--text);
  font-weight: 500;
  border-left-color: var(--primary);
}


/* =============================================================
   article.css — long-form reading blocks.
   All content blocks are constrained to the reading column
   width (max 720px) centered within page-main.
   ============================================================= */

/* =============================================================
   Section framing — csection bands + scroll-reveal
   ============================================================= */

/* In-column section container (NOT full-bleed; works inside TOC layout) */
.csection {
  margin-block: 0;
}

/* Decorative gold rule eyebrow above every section heading */
.csection h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

/* Band A — plain (default rhythm) */
.band-a {
  background: transparent;
}

/* Band B — subtle warm tint with rounded corners */
.band-b {
  background: var(--accent-tint, #FFF3E3);
  border-radius: var(--radius, 12px);
  padding: 8px 0;
  margin-block: 8px;
  /* same edge gutter as the dark bands (centered on wide, gutter on narrow) */
  max-width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

/* Dark band (CTA/disclaimer) — hero palette inverted */
.band-dark {
  background: var(--hero-bg, #0A0A0A);
  color: var(--hero-text, #F5F5F5);
  border-radius: var(--radius, 12px);
  padding: 8px 0;
  margin-block: 8px;
  /* keep full-width dark bands off the screen edges (gutter on narrow, centered on wide) */
  max-width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

/* Ensure text/headings/links readable on dark band */
.band-dark h2,
.band-dark h3,
.band-dark h4 {
  color: var(--hero-text, #F5F5F5);
}

.band-dark p,
.band-dark li,
.band-dark dt,
.band-dark dd {
  color: rgba(245, 245, 245, 0.75);
}

.band-dark a {
  color: var(--accent-tint, #FFD9B3);
}

.band-dark a:hover {
  color: #fff;
}

/* Disclaimer text in dark band */
.band-dark .cta-disclaimer,
.band-dark .disclaimer {
  color: rgba(245, 245, 245, 0.55);
}

/* The inner cta-band paints its own light background — neutralize it on a dark
   band so the dark section (and its canvas) show through, and keep text legible. */
.band-dark .block--cta-band {
  background: none;
  border-top: none;
  border-bottom: none;
}
.band-dark .block--cta-band > p:not(.disclaimer) {
  color: rgba(245, 245, 245, 0.78);
}

/* =============================================================
   Stats block — count-up row (lives on a dark band)
   ============================================================= */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  color: var(--hero-text-dim, rgba(245, 245, 245, 0.65));
  font-size: 14px;
}

/* =============================================================
   Scroll-reveal — always visible by default / reduced-motion.
   Animation only inside prefers-reduced-motion: no-preference.
   ============================================================= */

/* Default (no motion): always visible */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* =============================================================
   Canvas node-network — decorative overlay on [data-canvas] bands
   ============================================================= */

/* Dark bands hosting a canvas need a stacking context */
[data-canvas] {
  position: relative;
}

/* The canvas fills the band, sits behind content */
.net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Inner block content must sit above the canvas */
[data-canvas] > .block {
  position: relative;
  z-index: 1;
}

/* =============================================================
   Icon base
   ============================================================= */

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

/* =============================================================
   Content block column constraint
   ============================================================= */

/* Constrain all content blocks to the reading column */
.page-main > .csection > .block,
.page-main > .block {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Card-grid breaks out to full container width */
.page-main > .csection > .block--card-grid,
.page-main > .block--card-grid {
  max-width: 1100px;
}

/* =============================================================
   Prose block
   ============================================================= */

.block--prose {
  padding-block: 48px;
}

.block--prose h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
  padding-top: 8px;
}

.block--prose p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.block--prose p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph — slightly larger + full text color */
.block--prose > p:first-of-type {
  font-size: 1.12em;
  color: var(--text);
}

.block--prose ul,
.block--prose ol {
  padding-left: 1.5em;
  margin-bottom: 20px;
}

.block--prose li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 8px;
}

.block--prose ul li::marker {
  color: var(--accent-deep);
}

.block--prose ol li::marker {
  font-weight: 700;
  color: var(--accent-deep);
}

/* =============================================================
   Feature list block — bold lead + body text per item
   ============================================================= */

.block--feature-list {
  padding-block: 48px;
}

.block--feature-list h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: var(--text);
}


/* =============================================================
   Feature-card grid — icon feature-card grid (re-skin of feature-list)
   ============================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.feature-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.feature-card strong {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

/* Dark-band context overrides */
.band-dark .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* =============================================================
   Pipeline block — numbered steps
   ============================================================= */

.block--pipeline {
  padding-block: 48px;
}

.block--pipeline h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -1px;
  margin-bottom: 32px;
  color: var(--text);
}

/* Visual numbered flow — new pipeline layout */

.flow {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-step {
  position: relative;
  padding-left: 56px;
  padding-bottom: 24px;
}

/* Connector line between steps */
.flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.flow-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.flow-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  padding-top: 6px;
}

.flow-body strong {
  color: var(--text);
}

/* Dark-band variant — connector + num readable on dark */
.band-dark .flow-step:not(:last-child)::before {
  background: rgba(255, 255, 255, 0.15);
}

.band-dark .flow-num {
  color: #0A0A0A;
}

.band-dark .flow-body {
  color: rgba(245, 245, 245, 0.75);
}

.band-dark .flow-body strong {
  color: #F5F5F5;
}

/* =============================================================
   Glossary block — definition-card grid (re-skin)
   ============================================================= */

.block--glossary {
  padding-block: 48px;
}

.block--glossary h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: var(--text);
}

.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gloss-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.gloss-card dt {
  color: var(--accent-deep);
  font-weight: 700;
}

.gloss-card dd {
  margin: 6px 0 0;
  color: var(--text-dim);
}

/* Dark-band variants legible */
.band-dark .gloss-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.band-dark .gloss-card dt {
  color: var(--accent);
}

.band-dark .gloss-card dd {
  color: rgba(245, 245, 245, 0.75);
}

/* =============================================================
   FAQ block — details/summary accordion
   ============================================================= */

.block--faq {
  padding-block: 48px;
}

/* Remove default details marker */
.faq-item {
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Remove native marker in all browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question:hover {
  color: var(--accent-deep);
}

/* Chevron via pseudo-element — gold accent stroke when open */
.faq-question::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C97A00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq-item[open] .faq-question {
  color: var(--accent-deep);
}

/* Transitions gated under reduced-motion preference */
@media (prefers-reduced-motion: no-preference) {
  .faq-question {
    transition: color 0.2s ease;
  }

  .faq-question::after {
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
  }
}

/* Answer panel */
.faq-item > p {
  padding: 0 4px 24px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item > p {
    animation: faqOpen 0.25s cubic-bezier(0.16,1,0.3,1) both;
  }

  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =============================================================
   Callout block — risk-warning band (rendered from blockquotes)
   ============================================================= */

.block--callout {
  padding: 16px 20px;
  margin-block: 32px;
  background: var(--accent-tint, #FFF3E3);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.callout-icon {
  color: var(--accent-deep);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.block--callout p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

.block--callout p:last-child {
  margin-bottom: 0;
}
