/* ============================================================
   Florian Sening — freelance site v3 (SLDS dual-theme)
   Spec: docs/superpowers/specs/2026-07-06-slds-dual-theme-design.md
   base.css — theme-independent structure. All colors come from
   custom properties defined in theme-lightning.css / theme-signal.css.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Sora'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/sora-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/plexmono-500.woff2') format('woff2'); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Non-color tokens ---------- */
:root {
  --font-display: 'Sora', -apple-system, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, "Cascadia Mono", monospace;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 48px; --space-6: 64px;

  --radius-card: 4px;
  --radius-btn: 4px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Registered so the stat count-up can interpolate it (see Motion).
   Harmless no-op in browsers without @property support. */
@property --stat-n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); line-height: 1.1; }
h1, h2 { text-wrap: balance; }

/* overflow-anchor: scroll anchoring reacts to the reveal transforms during
   load and drifts the restored scroll position ~16px further down per reload;
   nothing shifts layout post-load, so anchoring is safe to disable. */
html { scroll-padding-top: 80px; overflow-anchor: none; }

::selection { background: var(--color-brand-yellow); color: #111; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-3); }

/* Mono eyebrow — the numbered section labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-eyebrow);
  margin-bottom: var(--space-3);
}
.on-dark .eyebrow { color: var(--color-on-dark-accent); }

/* ---------- i18n visibility ---------- */
.i18n-inline[lang="de"], .i18n-inline[lang="en"] { display: none; }
html[data-lang="de"] .i18n-inline[lang="de"],
html[data-lang="en"] .i18n-inline[lang="en"] { display: inline; }
.i18n-block[lang="de"], .i18n-block[lang="en"] { display: none; }
html[data-lang="de"] .i18n-block[lang="de"],
html[data-lang="en"] .i18n-block[lang="en"] { display: block; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  border-top: 4px solid var(--color-topbar);
  border-bottom: var(--header-line);
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.wordmark { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--color-ink); }

/* Scroll progress hairline — enabled only with scroll-timeline support (see Motion) */
.scroll-progress { display: none; }
.wordmark .dot { color: var(--color-brand-yellow); }

.lang-toggle {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  border: 1px solid var(--color-border); border-radius: 6px; padding: 2px; background: var(--color-card-bg);
}
.lang-toggle__pill {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 3px);
  background: var(--color-toggle-active); border-radius: 4px;
}
html[data-lang="en"] .lang-toggle__pill { transform: translateX(calc(100% + 2px)); }
.lang-toggle button {
  position: relative; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  padding: 5px 10px; border-radius: 4px; color: var(--color-muted);
  transition: color var(--transition-fast);
}
.lang-toggle button[aria-pressed="true"] { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.875rem; padding: 12px 26px; border-radius: var(--radius-btn);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn-primary { background: var(--color-btn-primary-bg); color: var(--color-btn-primary-text); box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-1px); background: var(--color-btn-primary-hover); }
.btn-outline { background: var(--color-card-bg); color: var(--color-btn-outline-text); border: 1px solid var(--color-btn-outline-border); }
.btn-outline:hover { border-color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--color-bg);
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1px;
  color: var(--color-eyebrow);
}
.hero-eyebrow .avail {
  color: var(--color-avail-text);
  background: var(--color-avail-bg);
  border-radius: var(--avail-radius, 0);
  padding: var(--avail-pad, 0);
}
.hero-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.hero h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; margin-top: var(--space-2);
}
.hero h1 .hl {
  background-image: linear-gradient(var(--color-hl), var(--color-hl));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.18em;
}
.hero .sub { margin-top: var(--space-2); max-width: 440px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

.diagram { flex-shrink: 0; margin-top: var(--space-2); }
.diagram text { font-family: var(--font-mono); }
.diagram .diagram-link { stroke: var(--color-diagram-link); }
.diagram .diagram-hub-box { fill: var(--color-diagram-hub); }
.diagram .diagram-hub-text { fill: var(--color-diagram-hub-text); }
.diagram .diagram-box { fill: var(--color-card-bg); stroke: var(--color-border); }
.diagram .diagram-label { fill: var(--color-ink); }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.stat {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 14px 22px; box-shadow: var(--shadow-card);
}
.stat b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--color-stat); }
.stat span { font-size: 0.75rem; color: var(--color-muted); }

/* ---------- Referenzen strip ---------- */
.trusted { background: var(--color-dark-bg); padding: var(--space-2) 0; }
.trusted .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.trusted .label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; color: var(--color-on-dark-accent); }
.trusted .name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--color-on-dark); }

/* ---------- Profil (spec-sheet ledger) ---------- */
.profil { background: var(--color-card-bg); padding: var(--space-5) 0; }
.ledger-row { display: flex; border-top: 1px solid var(--color-rule); padding: 14px 0; }
.ledger-row:last-child { border-bottom: 1px solid var(--color-rule); }
.ledger-key {
  flex: 0 0 200px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 1px; color: var(--color-muted); padding-top: 3px;
}
.ledger-val { font-weight: 500; color: var(--color-ink); }

/* ---------- Skills ---------- */
.skills { background-color: var(--color-bg); padding: var(--space-5) 0; }
.skills-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 600px)  { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  overflow: hidden;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-top: var(--card-top-accent, 1px solid var(--color-border));
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.card-head { display: flex; align-items: center; gap: 10px; }
.card-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 4px;
  background: var(--color-icon-bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.card-icon img { width: 15px; height: 15px; }
.card h3 { font-size: 1.05rem; font-weight: 700; }
.card .card-intro { font-size: 0.8rem; color: var(--color-muted); margin-top: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }

/* ---------- Chips (three dev-cyclable treatments) ---------- */
/* a — SLDS badge: body font, pill, soft fill, no border */
html[data-chips="a"] .chip {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  background: var(--chip-a-bg); color: var(--chip-a-text);
  border-radius: 999px; padding: 4px 12px;
}
/* b — tinted mono: mono font, 4px radius, fill + hairline */
html[data-chips="b"] .chip {
  font-family: var(--font-mono); font-size: 0.7rem;
  background: var(--chip-b-bg); color: var(--chip-b-text);
  border: 1px solid var(--chip-b-border);
  border-radius: 4px; padding: 3px 10px;
}
/* c — outline mono: mono font, 3px radius, transparent fill */
html[data-chips="c"] .chip {
  font-family: var(--font-mono); font-size: 0.7rem;
  background: transparent; color: var(--chip-c-text);
  border: 1px solid var(--chip-c-border);
  border-radius: 3px; padding: 3px 10px;
}

/* ---------- Kontakt ---------- */
.contact { position: relative; background: var(--color-dark-bg); padding: var(--space-6) 0; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; right: -60px; bottom: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--color-glow), transparent 65%);
}
.contact h2 { color: var(--color-on-dark); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); position: relative; z-index: 1; }
/* JS assembles these anchors' href/text (anti-scraping); hide the inert shells when JS is off, noscript's plain mailto link covers that case. */
html:not(.js) #hero-contact-link, html:not(.js) #contact-link { display: none; }
.contact-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-on-dark-muted); }
.contact-meta a:hover { color: var(--color-on-dark); }
.qr-card {
  display: inline-flex; align-items: center; gap: var(--space-1);
  background: var(--color-card-bg); border-radius: var(--radius-card);
  padding: 8px 14px 8px 8px; text-decoration: none;
  transition: transform var(--transition-fast);
}
.qr-card:hover { transform: translateY(-1px); }
.qr-code { width: 56px; height: 56px; flex-shrink: 0; color: var(--color-dark-bg); }
.qr-caption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-muted); line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark-bg-deep); border-top: 1px solid var(--color-footer-rule); padding: var(--space-2) 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1); }
.site-footer span, .site-footer a { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-on-dark-muted); }
.site-footer a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--color-on-dark); }

.footer-right { display: flex; align-items: center; gap: var(--space-1); }
.footer-social { display: flex; align-items: center; gap: 0.6rem; }
.footer-social a { display: inline-flex; text-decoration: none; }

/* Dev-switch state indicator (T toggles theme, C cycles chips) */
.mode-indicator {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--color-on-dark-muted); opacity: 0.7; padding: 0;
}
.mode-indicator:hover { color: var(--color-on-dark); opacity: 1; }

/* ---------- Impressum page ---------- */
.impressum { padding: var(--space-5) 0 var(--space-6); }
.impressum h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; }
.impressum section { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-rule); }
.impressum section:last-child { border-bottom: none; }
.impressum h2 { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-1); }
.impressum a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
/* The lang-toggle now sets the header height here too; the 8px vertical
   padding is kept as a larger touch target for the link */
.back-link { display: inline-block; padding: 8px 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-muted); }
.back-link:hover { color: var(--color-ink); }
.header-actions { display: inline-flex; align-items: center; gap: var(--space-3); }
.impressum .legal-note { font-size: 0.85rem; color: var(--color-muted); margin-top: var(--space-1); }

/* ---------- Motion (JS + no-reduced-motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  html.js .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  /* Staggered children (hero pieces, skills cards) */
  html.js .reveal-stagger > * {
    opacity: 0; transform: translateY(12px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }
  html.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  html.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
  html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
  html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
  html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
  html.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
  html.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

  /* Diagram assembly: nodes fade, dashed links slide their dashes in */
  html.js .diagram .diagram-node {
    opacity: 0; transition: opacity var(--transition-base);
  }
  html.js .diagram .diagram-link {
    opacity: 0; stroke-dashoffset: 21;
    transition: opacity var(--transition-base), stroke-dashoffset 900ms ease;
  }
  html.js .diagram.is-visible .diagram-node { opacity: 1; }
  html.js .diagram.is-visible .diagram-link { opacity: 1; stroke-dashoffset: 0; }
  html.js .diagram.is-visible .diagram-node:nth-of-type(1) { transition-delay: 100ms; }
  html.js .diagram.is-visible .diagram-node:nth-of-type(2) { transition-delay: 200ms; }
  html.js .diagram.is-visible .diagram-node:nth-of-type(3) { transition-delay: 300ms; }
  html.js .diagram.is-visible .diagram-node:nth-of-type(4) { transition-delay: 400ms; }
  html.js .diagram.is-visible .diagram-node:nth-of-type(5) { transition-delay: 500ms; }

  /* Diagram "data flow": once assembled, dashes drift slowly outward forever.
     Starts at the assembled offset (0) after the 900ms assembly, so no jump;
     -7 is one dash period (4 + 3), so the loop is seamless. */
  html.js .diagram.is-visible .diagram-link {
    animation: dash-march 2.5s linear 1.4s infinite;
  }
  @keyframes dash-march {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -7; }
  }

  /* Availability dot heartbeat */
  .avail-dot { animation: avail-pulse 3s ease-in-out infinite; }
  @keyframes avail-pulse {
    50% { opacity: 0.4; }
  }

  /* Lang toggle: pill glides between DE/EN instead of jumping */
  html.js .lang-toggle__pill { transition: transform 220ms var(--ease-out); }

  /* Hero highlight wipes in left-to-right after the hero reveal */
  html.js .hero h1 .hl {
    background-size: 0% 0.18em;
    animation: hl-wipe 700ms var(--ease-out) 600ms forwards;
  }
  @keyframes hl-wipe {
    to { background-size: 100% 0.18em; }
  }

  /* Card hover sheen: one diagonal light sweep, theme-tinted via --color-glow */
  .card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, var(--color-glow) 50%, transparent 70%);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
  }
  .card:hover::after { animation: card-sheen 1600ms var(--ease-out) 200ms; }
  @keyframes card-sheen {
    to { transform: translateX(280%) skewX(-18deg); }
  }

  /* Ledger hairlines draw in left-to-right, cascading down,
     when the Profil section reveals */
  html.js .profil .ledger-row { border-top-color: transparent; position: relative; }
  html.js .profil .ledger-row::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 100%; height: 1px;
    background: var(--color-rule);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 900ms var(--ease-out) 300ms;
  }
  html.js .profil .reveal.is-visible .ledger-row:nth-of-type(2)::before { transition-delay: 480ms; }
  html.js .profil .reveal.is-visible .ledger-row:nth-of-type(3)::before { transition-delay: 660ms; }
  html.js .profil .reveal.is-visible .ledger-row:nth-of-type(4)::before { transition-delay: 840ms; }
  html.js .profil .reveal.is-visible .ledger-row::before { transform: scaleX(1); }

  /* The ledger's closing line (last row's bottom border) draws in last */
  html.js .profil .ledger-row:last-child { border-bottom-color: transparent; }
  html.js .profil .ledger-row:last-child::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 1px;
    background: var(--color-rule);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 900ms var(--ease-out) 1020ms;
  }
  html.js .profil .reveal.is-visible .ledger-row:last-child::after { transform: scaleX(1); }

  /* ---- Cross-document page transition (index ↔ impressum) ----
     Header and wordmark are snapshotted separately so they hold still
     while the page content slides. No-support browsers just navigate. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .wordmark { view-transition-name: wordmark; }
  ::view-transition-old(root) { animation: vt-out 280ms cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 350ms var(--ease-out) both; }
  @keyframes vt-out {
    to { opacity: 0; transform: translateX(-24px); }
  }
  @keyframes vt-in {
    from { opacity: 0; transform: translateX(24px); }
  }

  /* ---- Same-document language-switch cross-fade (DE ↔ EN) ----
     initLangToggle() sets data-vt="lang" on <html> for the transition's
     duration, overriding the page-navigation slide above with a plain
     fade. Header/wordmark keep their UA-default in-place cross-fade.
     Reduced motion is skipped in JS (the UA's default view-transition
     fade would play even without these rules). */
  html[data-vt="lang"]::view-transition-old(root) { animation: lang-fade-out 240ms var(--ease-out) both; }
  html[data-vt="lang"]::view-transition-new(root) { animation: lang-fade-in 240ms var(--ease-out) both; }
  @keyframes lang-fade-out {
    to { opacity: 0; }
  }
  @keyframes lang-fade-in {
    from { opacity: 0; }
  }

  /* ---- Scroll-driven enhancements (Chromium / Safari 26+) ---- */
  @supports (animation-timeline: scroll()) {
    /* Header gains elevation over the first 80px of scroll */
    .site-header {
      animation: header-elevate linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80px;
    }
    @keyframes header-elevate {
      to { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
    }

    /* Reading progress hairline at the header's bottom edge */
    .site-header .scroll-progress {
      display: block;
      position: absolute;
      left: 0; bottom: -1px;
      width: 100%; height: 2px;
      background: var(--color-topbar);
      transform-origin: 0 50%;
      animation: progress-grow linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress-grow {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }

    /* Stat count-up: the registered --stat-n integer interpolates 0 → target
       when the hero reveal lands; real digits stay in markup as fallback. */
    html.js .stat-num { counter-reset: stat calc(var(--stat-n)); }
    html.js .stat-num .stat-fallback { display: none; }
    html.js .stat-num::before { content: counter(stat); }
    html.js .stat-num::after { content: attr(data-suffix); }
    html.js .reveal-stagger.is-visible .stat-num {
      animation: stat-count 1.2s var(--ease-out) 400ms both;
    }
    @keyframes stat-count {
      from { --stat-n: 0; }
      to   { --stat-n: var(--stat-target); }
    }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .diagram { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-5); }
  .ledger-row { flex-direction: column; gap: 4px; }
  .ledger-key { flex-basis: auto; }
}
