:root {
  /* ============================================================
     PRIMARY — single swap point.
     Change ONLY --primary-rgb to re-theme every accent on the site.
     Rich gold today (184,134,11). Pairs with --primary-2 (amber gold).
     ============================================================ */
  --primary-rgb: 184, 134, 11;
  --primary: rgb(var(--primary-rgb));
  --primary-2: #D4A12A;                 /* amber gold — gradient 2nd stop */
  --primary-3: #E7C667;                 /* soft gold — particles, hovers */
  --primary-ink: #6B4E08;               /* deep gold-brown — pills, small accents */
  --grad: linear-gradient(120deg, rgb(var(--primary-rgb)) 0%, var(--primary-2) 55%, #C79A1E 100%);

  /* Legacy accent aliases (gold/orange names from the original) → primary. */
  --gold: var(--primary); --gold-light: var(--primary-2); --gold-bright: var(--primary-3);

  /* Status colours */
  --green: #16A34A; --red: #DC2626;

  /* Light surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-soft-2: #EEF0F4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --ink-panel: #0A0A0B;                 /* dark CTA panel */
  --border: rgba(10,10,11,.08);
  --border-2: rgba(10,10,11,.14);
  --border-gold: rgba(var(--primary-rgb), 0.22);

  /* Text on light */
  --text: #0A0A0B;
  --text-2: #27272A;
  --text-dim: #52525B;
  --text-muted: #71717A;

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

  --shadow-sm: 0 1px 2px rgba(10,10,11,.04), 0 4px 16px rgba(10,10,11,.05);
  --shadow-md: 0 4px 12px rgba(10,10,11,.06), 0 18px 48px rgba(10,10,11,.10);
  --shadow-accent: 0 12px 36px rgba(var(--primary-rgb), .28);

  --maxw: 1140px;
  --measure: 70ch;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  font-family: var(--font-body);
}

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

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

.reading {
  max-width: var(--measure);
  margin-inline: auto;
}

/* =============================================================
   Heading scale — display face, tight tracking
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(40px, 6.4vw, 82px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }

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

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--primary-rgb), 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--primary-2);
  text-decoration-color: var(--primary-2);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  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; }

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

/* =============================================================
   Eyebrow — small accent kicker above headings
   ============================================================= */

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

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

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

/* =============================================================
   Motion utilities — scroll reveal + stagger (JS-gated)
   Content stays visible without JS (SEO/no-JS safe): the hidden
   state only applies once <html> gets the .js class from app.js.
   ============================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1),
              transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

.js .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   components.css — nav, footer, hero, stat band, card-grid,
   cta-band, breadcrumbs, gauge, buttons, article layout, TOC.
   ============================================================= */

/* =============================================================
   Buttons
   ============================================================= */

.btn-primary,
a.nav-cta,
a.hero-cta,
a.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover,
a.nav-cta:hover,
a.hero-cta:hover,
a.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(var(--primary-rgb), 0.4);
  color: #fff;
}

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

/* Gold gradient buttons take dark ink text for legibility (nav-cta keeps white
   on its dark ink background). */
.btn-primary, a.hero-cta, a.cta-btn,
.btn-primary:hover, a.hero-cta:hover, a.cta-btn:hover { color: var(--ink-panel); }

/* arrow nudge on hover (markup may include a trailing → in label) */
a.hero-cta, a.cta-btn, a.nav-cta { white-space: nowrap; }

/* =============================================================
   Site nav — fixed top, frosted glass
   ============================================================= */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* deepen on scroll (app.js toggles .scrolled) */
.site-nav.scrolled {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(10,10,11,.02), 0 8px 30px rgba(10,10,11,.05);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.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); }

.nav-menu { display: contents; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links li { margin: 0; }

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 5px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { transform: scaleX(1); }

a.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--ink-panel);
  box-shadow: none;
}
a.nav-cta:hover { box-shadow: var(--shadow-md); background: var(--ink-panel); }

/* Language switcher */
.lang-switch { position: relative; flex-shrink: 0; font-size: 14px; }
.lang-switch > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); padding: 7px 10px; border-radius: var(--radius-xs);
  transition: color 0.2s; font-weight: 600;
}
.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); }
.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: var(--shadow-md); 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-soft); color: var(--text); }
.lang-menu [aria-current="true"] { color: var(--text); font-weight: 600; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--border-2); 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;
}

.page-main { padding-top: 66px; }

@media (max-width: 860px) {
  .nav-inner { justify-content: space-between; gap: 12px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 16px 24px 20px;
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav.open .nav-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links a { font-size: 15px; padding: 11px 12px; }
  .nav-links a::after { display: none; }
  a.nav-cta { width: 100%; padding: 13px 20px; font-size: 15px; }
  .lang-switch { width: 100%; }
  .lang-switch > summary { font-size: 15px; padding: 11px 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; }
  .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); }
}

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

.breadcrumbs {
  padding: 90px 28px 0;
  max-width: var(--maxw);
  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: 600; 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(--primary); }
.breadcrumbs li[aria-current="page"] { color: var(--text-dim); }

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

.block--hero { position: relative; overflow: hidden; }

/* decorative animated mesh canvas (landing only) */
.hero-mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.9; pointer-events: none;
}
.block--hero-landing::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, transparent 55%, rgba(255,255,255,0.9) 100%);
}
.hero-inner { position: relative; z-index: 2; }

/* Landing hero */
.block--hero-landing {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 130px 28px 80px;
}
.block--hero-landing .hero-inner {
  max-width: 920px; display: flex; flex-direction: column; align-items: center;
}
.block--hero-landing h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
  max-width: 15ch;
  margin: 0 auto;
  color: var(--text);
}
.block--hero-landing .hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--text-dim);
  max-width: 60ch;
  margin-top: 24px;
  line-height: 1.65;
}
.block--hero-landing .hero-cta {
  margin-top: 34px; padding: 15px 30px; font-size: 16px;
}

/* hero pill / eyebrow */
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--primary-ink);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5);
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* Floating chat bubbles — decorative, frame the landing hero on wide screens */
.hero-bubbles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none;
}
@media (min-width: 1200px) { .hero-bubbles { display: block; } }

.chat-bubble {
  position: absolute; width: 216px;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(9px) saturate(1.4);
  -webkit-backdrop-filter: blur(9px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 11px 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  animation: bubbleIn 0.7s ease forwards, bubbleFloat 7s ease-in-out infinite;
}
.cb-q {
  font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.35; margin: 0;
  display: flex; align-items: flex-start; gap: 6px;
}
.cb-q::before {
  content: ''; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.cb-a {
  font-size: 12px; color: var(--text-dim); line-height: 1.35;
  margin: 7px 0 0; padding-top: 7px; border-top: 1px solid var(--border);
}
.cb-a::before { content: '↳ '; color: var(--primary); font-weight: 700; }

/* scatter + per-bubble float timing */
.chat-bubble:nth-of-type(1) { top: 13%;    left: 1.5%;  animation-delay: 0s,    0s;   --fy: -12px; --fr: -1.5deg; }
.chat-bubble:nth-of-type(2) { top: 41%;    left: 0;     animation-delay: 0.15s, 0.6s; --fy: 10px;  --fr: 1.2deg; }
.chat-bubble:nth-of-type(3) { bottom: 15%; left: 3%;    animation-delay: 0.3s,  1.1s; --fy: -9px;  --fr: 1.5deg; }
.chat-bubble:nth-of-type(4) { top: 11%;    right: 1.5%; animation-delay: 0.1s,  0.3s; --fy: 11px;  --fr: 1.5deg; }
.chat-bubble:nth-of-type(5) { top: 40%;    right: 0;    animation-delay: 0.25s, 0.9s; --fy: -11px; --fr: -1.2deg; }
.chat-bubble:nth-of-type(6) { bottom: 16%; right: 2.5%; animation-delay: 0.4s,  1.4s; --fy: 9px;   --fr: -1.5deg; }

@keyframes bubbleIn { to { opacity: 1; } }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(var(--fy, -10px)) rotate(var(--fr, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble { animation: none; opacity: 1; }
}

/* Article hero */
.block--hero-article {
  padding: 44px 28px 56px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.block--hero-article h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  max-width: 18ch; color: var(--text);
}
.block--hero-article .hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim); max-width: 60ch; margin-top: 18px; line-height: 1.7;
}
.block--hero-article .hero-cta { margin-top: 30px; }

@media (max-width: 640px) {
  .block--hero-landing { padding: 110px 20px 64px; }
  .block--hero-article { padding: 32px 20px 44px; }
}

/* =============================================================
   Hero stat band
   ============================================================= */

.hero-stats {
  margin-top: 56px; width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.hero-stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 22px; text-align: left; box-shadow: var(--shadow-sm);
}
.hero-stat .stat-num {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text);
}
.hero-stat .stat-num .stat-suf { color: var(--primary); }
.hero-stat .stat-label { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); font-weight: 600; }

@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hero-stats { grid-template-columns: 1fr; } }

/* =============================================================
   Card grid — use-case cards
   ============================================================= */

.block--card-grid {
  padding-block: 72px; padding-inline: 28px;
  max-width: var(--maxw); margin-inline: auto;
}
.block--card-grid h2 { margin-bottom: 8px; }
.block--card-grid > h2 + .card-grid { margin-top: 40px; }

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

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, border-color 0.3s;
  counter-increment: cardcount;
}
.card::before {
  content: counter(cardcount, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.1em;
}
.card::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card:hover::after { opacity: 1; }

.block--card-grid .card-grid { counter-reset: cardcount; }

.card a {
  text-decoration: none; color: var(--text);
  display: block; margin: 12px 0 8px;
}
.card a h3 { font-size: 21px; color: var(--text); transition: color 0.2s; }
.card a::after { content: ''; position: absolute; inset: 0; }
.card:hover a h3 { color: var(--primary); }
.card p {
  font-size: 15px; color: var(--text-dim); line-height: 1.6;
  position: relative; z-index: 1; margin: 0;
}
.card .card-go {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--primary);
  position: relative; z-index: 1;
}
.card .card-go .arr { transition: transform 0.25s; }
.card:hover .card-go .arr { transform: translateX(5px); }

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

/* =============================================================
   Conviction gauge / metric block
   ============================================================= */

.block--metric { padding-block: 56px; }
.metric-row {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.gauge { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); }
.gauge .gauge-val {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.gauge .gauge-val b { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; color: var(--text); }
.gauge .gauge-val small {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}
.metric-text { flex: 1; min-width: 240px; }
.metric-text h2, .metric-text h3 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 10px; }
.metric-text p { font-size: 15.5px; color: var(--text-dim); line-height: 1.7; margin: 0; }

@media (max-width: 540px) { .metric-row { flex-direction: column; text-align: center; align-items: center; } }

/* =============================================================
   CTA band — dark panel with particle canvas
   ============================================================= */

.block--cta-band { padding-block: 84px; padding-inline: 28px; }

/* full CTA (has heading/cta): dark rounded panel */
.block--cta-band.is-cta {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  background: var(--ink-panel); color: #fff;
  border-radius: 32px; overflow: hidden;
  padding: 74px 40px; text-align: center;
}
.cta-fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; z-index: 0; pointer-events: none; }
.block--cta-band.is-cta > * { position: relative; z-index: 1; }
.block--cta-band.is-cta h2 { color: #fff; max-width: 18ch; margin: 0 auto 16px; }
.block--cta-band.is-cta > p:not(.disclaimer) {
  color: rgba(255,255,255,0.72); max-width: 48ch; margin: 0 auto 30px; font-size: 18px; line-height: 1.6;
}
.block--cta-band.is-cta .cta-btn { padding: 15px 30px; font-size: 16px; box-shadow: 0 14px 40px rgba(184,134,11,0.45); }
.block--cta-band.is-cta .disclaimer {
  margin: 26px auto 0; background: transparent; border: none; padding: 0;
  color: rgba(255,255,255,0.5); max-width: 62ch; text-align: center;
}

/* disclaimer-only band (article pages): quiet centered note */
.block--cta-band:not(.is-cta) { text-align: center; }

.disclaimer {
  display: block; margin: 0 auto; padding: 14px 24px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 70ch; text-align: center;
}

@media (max-width: 640px) {
  .block--cta-band { padding-block: 60px; }
  .block--cta-band.is-cta { padding: 56px 24px; border-radius: 24px; }
}

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

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 48px; }
.footer-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: 28px;
  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: 14px; font-weight: 600; color: var(--text-dim); text-decoration: none;
  padding: 5px 12px; border-radius: var(--radius-xs); transition: color 0.2s;
}
.footer-nav a:hover { color: var(--primary); }
.footer-legal { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

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

/* =============================================================
   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-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; margin-bottom: 44px; }
.notfound-code { font-family: var(--font-display); font-size: clamp(64px, 12vw, 96px); font-weight: 700; line-height: 1; margin: 0; color: var(--text); }
.notfound h1 { font-size: 28px; margin: 10px 0 12px; }
.notfound-sub { color: var(--text-dim); margin-bottom: 28px; }

/* =============================================================
   Article layout — sticky TOC + content
   ============================================================= */

.article-layout { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.toc-aside { display: none; }

@media (min-width: 1024px) {
  .article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
  .toc-aside { display: block; position: sticky; top: 100px; align-self: start; }
}

.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 12px; font-size: 13.5px; line-height: 1.5;
  color: var(--text-dim); text-decoration: none; border-left: 2px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }


/* =============================================================
   article.css — long-form reading blocks + rich components.
   Reading blocks constrained to a comfortable measure; graphic
   blocks (feature grid, card grid, metric, cta) break out wider.
   ============================================================= */

.page-main > .block {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 28px;
}

/* graphic blocks break out wider */
.page-main > .block--card-grid,
.page-main > .block--feature-list,
.page-main > .block--metric,
.page-main > .block--cta-band {
  max-width: var(--maxw);
}

/* On the home (landing) page, blocks center to full container */
.block--hero-landing + .block,
.block--hero-landing ~ .block { }

/* =============================================================
   Prose — editorial reading rhythm
   ============================================================= */

.block--prose { padding-block: 44px; }
.block--prose h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 18px;
  color: var(--text);
}
.block--prose p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 22px;
}
.block--prose p:last-child { margin-bottom: 0; }
/* lead paragraph (first p after heading) gets a touch more presence */
.block--prose h2 + p { font-size: 19px; color: var(--text-2); }

.block--prose ul, .block--prose ol { padding-left: 1.4em; margin-bottom: 22px; }
.block--prose li { font-size: 17px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.block--prose ul li::marker { color: var(--primary-2); }
.block--prose ol li::marker { font-weight: 700; color: var(--primary); }

/* =============================================================
   Feature list — icon cards grid
   ============================================================= */

.block--feature-list { padding-block: 56px; }
.block--feature-list h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 6px; }
.block--feature-list > h2 + ul { margin-top: 40px; }

.block--feature-list ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.block--feature-list li {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; margin: 0; overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px; color: var(--text-dim); line-height: 1.65;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, border-color 0.3s;
}
.block--feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.block--feature-list li:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.block--feature-list li:hover::before { transform: scaleX(1); }

.feat-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.14), rgba(212,161,42,0.16));
  border: 1px solid rgba(var(--primary-rgb),0.18);
}
.feat-ico svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.block--feature-list li strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; }

@media (max-width: 900px) { .block--feature-list ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .block--feature-list ul { grid-template-columns: 1fr; } }

/* =============================================================
   Pipeline — numbered step cards
   ============================================================= */

.block--pipeline { padding-block: 48px; }
.block--pipeline h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 32px; }
.block--pipeline ol {
  list-style: none; padding: 0; counter-reset: pipeline-counter;
  display: flex; flex-direction: column; gap: 14px;
}
.block--pipeline li {
  counter-increment: pipeline-counter;
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 24px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 16px; color: var(--text-dim);
  line-height: 1.7; margin: 0; box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.block--pipeline li:hover { border-color: var(--border-2); transform: translateX(4px); box-shadow: var(--shadow-md); }
.block--pipeline li::before {
  content: counter(pipeline-counter);
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  flex-shrink: 0; margin-top: 1px; box-shadow: var(--shadow-accent);
}
.block--pipeline li strong { color: var(--text); }

/* =============================================================
   Glossary — definition cards
   ============================================================= */

.block--glossary { padding-block: 48px; }
.block--glossary h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 28px; }
.block--glossary dl {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.block--glossary dt {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text);
  padding: 0; margin: 0; letter-spacing: -0.01em;
  background: #fff; border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 18px 20px 8px;
}
.block--glossary dd {
  font-size: 14.5px; color: var(--text-dim); line-height: 1.65; margin: 0;
  background: #fff; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 0 20px 18px;
}
.block--glossary dt::before {
  content: ''; display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--grad); margin-bottom: 12px;
}
@media (max-width: 600px) { .block--glossary dl { grid-template-columns: 1fr; } }

/* =============================================================
   FAQ — accordion
   ============================================================= */

.block--faq { padding-block: 48px; }
.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: 22px 4px; font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text); cursor: pointer; list-style: none; user-select: none; transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-question:hover { color: var(--primary); }
.faq-question::after {
  content: ''; display: block; width: 20px; height: 20px; 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='%23B8860B' 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;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); opacity: 0.7;
}
.faq-item[open] .faq-question::after { transform: rotate(180deg); opacity: 1; }
.faq-item[open] .faq-question { color: var(--primary); }
.faq-item > p {
  padding: 0 4px 24px; font-size: 16px; color: var(--text-dim); line-height: 1.75;
  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 — accent pull-quote / risk note
   ============================================================= */

.block--callout {
  padding: 6px 0 6px 26px; margin-block: 40px;
  border-left: 4px solid var(--primary);
}
.block--callout p {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600;
  line-height: 1.3; color: var(--text); margin-bottom: 12px;
}
.block--callout p:last-child { margin-bottom: 0; }
