/* ════════════════════════════════════════════════════════════
   GERALD DESIGN SYSTEM — Single source of truth
   Editorial. Bloomberg Terminal × Linear × financial print.
   Confident, quiet, expensive. No emojis. No purple. No glow.
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Backgrounds ─────────────────────────────────────────── */
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #FAFAFA;
  --bg-elevated:   #F5F5F5;

  /* ── Borders ─────────────────────────────────────────────── */
  --border:        #E5E5E5;
  --border-hover:  #D4D4D4;

  /* ── Text ────────────────────────────────────────────────── */
  --text-primary:    #0A0A0A;
  --text-secondary:  #525252;
  --text-tertiary:   #A3A3A3;

  /* ── Semantic accents (DATA ONLY — never decoration) ─────── */
  --positive: #15803D;
  --negative: #B91C1C;

  /* ── Type ────────────────────────────────────────────────── */
  --font-display:   'Inter Tight', 'Söhne', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Söhne Mono', ui-monospace, monospace;

  /* ── Spacing scale (use these values ONLY) ──────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Radii (tight only) ──────────────────────────────────── */
  --radius-sm: 4px;
  --radius:    8px;

  /* ── Motion ──────────────────────────────────────────────── */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro:  200ms;
  --dur-medium: 400ms;
  --dur-page:   700ms;

  /* ── Layout ──────────────────────────────────────────────── */
  --max-width:    1440px;
  --gutter:       32px;
  --nav-height:   64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary:    #0A0A0A;
    --bg-secondary:  #111111;
    --bg-elevated:   #1A1A1A;
    --border:        #222222;
    --border-hover:  #2E2E2E;
    --text-primary:    #FAFAFA;
    --text-secondary:  #A3A3A3;
    --text-tertiary:   #525252;
  }
}

/* ── Base reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.6; }

/* Tabular numerics on every numeric display by default */
[data-numeric], .num, .ds-num,
.p-row__gain, .p-fv-block__main, .p-row__conf,
.score-card__pct, .stat__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ════════════════════════════════════════════════════════════
   PAGE HERO — editorial signature pattern
   ════════════════════════════════════════════════════════════ */
.ds-hero {
  padding: var(--space-12) var(--gutter) var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
h1.ds-hero__title,
.ds-hero__title {
  font-family: 'Inter Tight', 'Söhne', 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(48px, 8vw, 128px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  color: #0A0A0A !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.ds-hero__title em,
h1.ds-hero__title em {
  font-style: italic !important;
  font-weight: 800 !important;
  color: #0A0A0A !important;
  opacity: 1 !important;
  background: none !important;
  -webkit-text-fill-color: #0A0A0A !important;
}
.ds-hero__sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: var(--space-3);
  max-width: 520px;
}
.ds-hero__metrics {
  display: flex;
  gap: var(--space-8);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-secondary);
}
.ds-hero__metric strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ════════════════════════════════════════════════════════════
   DATA VALUES (for the <DataValue /> component pattern)
   ════════════════════════════════════════════════════════════ */
.ds-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.ds-val--ticker { font-weight: 600; letter-spacing: -0.01em; }
.ds-val--pos    { color: var(--positive); }
.ds-val--neg    { color: var(--negative); }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.ds-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease),
              background var(--dur-micro) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.ds-btn:hover { transform: translateY(-1px); }

.ds-btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.ds-btn--primary:hover { border-color: var(--text-primary); }

.ds-btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.ds-btn--secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
}

.ds-btn--tertiary {
  background: transparent;
  color: var(--text-primary);
  border: none;
  padding: var(--space-2) 0;
}
.ds-btn--tertiary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */
.ds-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: border-color var(--dur-micro) var(--ease),
              transform var(--dur-micro) var(--ease);
}
.ds-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   INPUTS
   ════════════════════════════════════════════════════════════ */
.ds-input {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  outline: none;
  transition: border-color var(--dur-micro) var(--ease),
              box-shadow var(--dur-micro) var(--ease);
}
.ds-input::placeholder { color: var(--text-tertiary); }
.ds-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

/* ════════════════════════════════════════════════════════════
   SKELETON LOADERS — replace spinners
   ════════════════════════════════════════════════════════════ */
.ds-skel {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  animation: dsSkelPulse 1500ms var(--ease) infinite;
}
@keyframes dsSkelPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
.ds-skel--text-sm  { height: 12px; width: 80%; }
.ds-skel--text     { height: 14px; width: 100%; }
.ds-skel--text-lg  { height: 18px; width: 60%; }
.ds-skel--row      { height: 56px; width: 100%; margin-bottom: var(--space-2); }

/* ════════════════════════════════════════════════════════════
   HAIRLINE DIVIDERS
   ════════════════════════════════════════════════════════════ */
.ds-rule {
  height: 1px;
  background: var(--border);
  margin: var(--space-12) 0;
  border: none;
}

/* ════════════════════════════════════════════════════════════
   UTILITY: section labels (UPPERCASE 13px tracking)
   ════════════════════════════════════════════════════════════ */
.ds-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}


/* ════════════════════════════════════════════════════════════
   POLISH-LAYER COMPONENTS — applied site-wide
   Built on the foundation tokens above. Used by every page.
   ════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   1. SCROLL-INTO-VIEW REVEALS
   Every page section wraps in .ds-reveal. IntersectionObserver
   in /static/app.js promotes to .ds-reveal--in.
   ────────────────────────────────────────────────────────── */
.ds-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.ds-reveal--in {
  opacity: 1;
  transform: translateY(0);
}
.ds-reveal-d1 { transition-delay: 80ms;  }
.ds-reveal-d2 { transition-delay: 160ms; }
.ds-reveal-d3 { transition-delay: 240ms; }
.ds-reveal-d4 { transition-delay: 320ms; }

/* ──────────────────────────────────────────────────────────
   2. PAGE TRANSITIONS
   Native CSS view transitions where supported; falls back to
   a body-level fade on first paint elsewhere.
   ────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: dsPageFadeOut var(--dur-medium) var(--ease) forwards;
}
::view-transition-new(root) {
  animation: dsPageFadeIn var(--dur-medium) var(--ease) forwards;
}
@keyframes dsPageFadeOut {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes dsPageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Fallback for browsers without View Transitions: simple page-load fade */
body { animation: dsPageFadeIn var(--dur-medium) var(--ease); }

/* ──────────────────────────────────────────────────────────
   3. AMBIENT CURSOR GRADIENT — port from landing
   Add .ds-ambient to any page hero. JS sets --x / --y on mousemove.
   ────────────────────────────────────────────────────────── */
.ds-ambient {
  position: relative;
  isolation: isolate;
}
.ds-ambient::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 600px at var(--x, 50%) var(--y, 50%),
                              rgba(10,10,10,0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 600ms var(--ease);
}
@media (prefers-color-scheme: dark) {
  .ds-ambient::before {
    background: radial-gradient(circle 600px at var(--x, 50%) var(--y, 50%),
                                rgba(255,255,255,0.04), transparent 70%);
  }
}

/* ──────────────────────────────────────────────────────────
   4. STICKY NAV — already in base.html, this just ensures the
   transparent → blurred-on-scroll behavior is the standard pattern.
   ────────────────────────────────────────────────────────── */
.ds-sticky-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-micro) var(--ease);
}
.ds-sticky-bar--active { border-bottom-color: var(--border); }

/* ──────────────────────────────────────────────────────────
   5. SKELETON SYSTEM (extends earlier .ds-skel)
   ────────────────────────────────────────────────────────── */
.ds-skel--row-pick {
  height: 64px;
  margin-bottom: 8px;
  border-radius: var(--radius);
}
.ds-skel--bar { height: 6px; border-radius: 3px; }
.ds-skel--circle { border-radius: 50%; }
.ds-skel--ticker { height: 18px; width: 64px; }
.ds-skel--name   { height: 14px; width: 240px; max-width: 60%; }
.ds-skel--num    { height: 16px; width: 72px; }

/* ──────────────────────────────────────────────────────────
   6. NUMBER ANIMATION — DataValue helper
   <span class="ds-data" data-target="14.2" data-decimals="1" data-suffix="%"></span>
   /static/app.js animates from 0 → target on viewport enter.
   ────────────────────────────────────────────────────────── */
.ds-data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.ds-data--pos { color: var(--positive); }
.ds-data--neg { color: var(--negative); }
.ds-data--lg  { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.ds-data--xl  { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; }

/* ──────────────────────────────────────────────────────────
   7. BUTTON ELEVATIONS — magnetic + active press + loading
   ────────────────────────────────────────────────────────── */
.ds-btn--magnetic {
  will-change: transform;
}
.ds-btn:active { transform: scale(0.98); }
.ds-btn[disabled],
.ds-btn--loading {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
.ds-btn--loading::after {
  content: '\2026';        /* horizontal ellipsis as 3-dot fallback */
  display: inline-block;
  margin-left: var(--space-2);
  animation: dsDots 1.4s steps(3, jump-none) infinite;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
@keyframes dsDots {
  0%   { opacity: 0.2; }
  33%  { opacity: 0.6; }
  66%  { opacity: 1.0; }
  100% { opacity: 0.2; }
}

/* Tertiary-link underline animates left-to-right */
.ds-link {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.ds-link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--dur-micro) var(--ease);
}
.ds-link:hover::after { width: 100%; }

/* ──────────────────────────────────────────────────────────
   8. CARD — live-pulse variant + clickable affordance
   ────────────────────────────────────────────────────────── */
.ds-card--clickable { cursor: pointer; }
.ds-card--live {
  position: relative;
}
.ds-card--live::before {
  content: '';
  position: absolute; top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--positive);
  animation: dsPulse 2s ease-in-out infinite;
}
@keyframes dsPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ──────────────────────────────────────────────────────────
   9. INPUT — floating label + inline validation slot
   ────────────────────────────────────────────────────────── */
.ds-field {
  position: relative;
  margin-bottom: var(--space-4);
}
.ds-field__label {
  position: absolute;
  left: var(--space-4); top: 14px;
  font-size: 13px; color: var(--text-tertiary);
  pointer-events: none;
  transition: transform var(--dur-micro) var(--ease),
              font-size var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease);
  background: var(--bg-primary);
  padding: 0 4px;
}
.ds-field__input:focus + .ds-field__label,
.ds-field__input:not(:placeholder-shown) + .ds-field__label {
  transform: translateY(-22px) translateX(-4px);
  font-size: 11px;
  color: var(--text-primary);
}
.ds-field__hint {
  font-size: 11px; color: var(--text-tertiary);
  margin-top: var(--space-1);
}
.ds-field__hint--error { color: var(--negative); }

/* ──────────────────────────────────────────────────────────
   10. TOAST
   /static/app.js:dsToast(message, type) renders into .ds-toast-stack
   ────────────────────────────────────────────────────────── */
.ds-toast-stack {
  position: fixed;
  top: 80px; right: var(--space-6);
  z-index: 200;
  display: flex; flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.ds-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: 13px; color: var(--text-primary);
  min-width: 240px; max-width: 360px;
  animation: dsToastIn var(--dur-medium) var(--ease);
}
.ds-toast--leaving { animation: dsToastOut var(--dur-medium) var(--ease) forwards; }
.ds-toast__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-left: auto;
}
.ds-toast--success { border-left: 2px solid var(--positive); }
.ds-toast--error   { border-left: 2px solid var(--negative); }
@keyframes dsToastIn  { from { opacity: 0; transform: translateY(-8px); } }
@keyframes dsToastOut { to   { opacity: 0; transform: translateY(-8px); } }

/* ──────────────────────────────────────────────────────────
   11. EMPTY STATE
   ────────────────────────────────────────────────────────── */
.ds-empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  max-width: 480px; margin: 0 auto;
}
.ds-empty__title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.ds-empty__sub {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* ──────────────────────────────────────────────────────────
   12. TABLE
   ────────────────────────────────────────────────────────── */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ds-table thead th {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: sticky; top: var(--nav-height); z-index: 5;
  backdrop-filter: blur(12px);
}
.ds-table tbody td {
  padding: 18px var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.ds-table tbody tr {
  transition: background var(--dur-micro) var(--ease);
}
.ds-table tbody tr:hover { background: var(--bg-secondary); }
.ds-table .num,
.ds-table [data-numeric] {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ds-table th[data-sort] { cursor: pointer; user-select: none; }
.ds-table th[data-sort]::after {
  content: ' ·';
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-left: 4px;
  font-size: 11px;
}
.ds-table th[data-sort="asc"]::after  { content: ' ↑'; color: var(--text-primary); }
.ds-table th[data-sort="desc"]::after { content: ' ↓'; color: var(--text-primary); }

/* ──────────────────────────────────────────────────────────
   13. CHART (Chart.js wrapper conventions)
   Components reference these classes when rendering charts.
   ────────────────────────────────────────────────────────── */
.ds-chart {
  position: relative;
  width: 100%;
  height: 200px;
}
.ds-chart-legend {
  display: flex; align-items: center; gap: var(--space-6);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-secondary);
}
.ds-chart-legend__dot {
  width: 8px; height: 2px; background: var(--text-primary);
  display: inline-block; margin-right: 6px;
  vertical-align: middle;
}
.ds-chart-legend__dot--dashed {
  background: repeating-linear-gradient(
    to right, var(--text-tertiary), var(--text-tertiary) 3px,
    transparent 3px, transparent 6px);
}

/* ──────────────────────────────────────────────────────────
   14. TICKER HOVER-CARD
   <span class="ds-ticker" data-ticker="NVDA">$NVDA</span>
   /static/app.js attaches a hover preview card with current price
   + quality + one-line thesis (TODO: wire to live API).
   ────────────────────────────────────────────────────────── */
.ds-ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: help;
  border-bottom: 1px dotted var(--border);
}
.ds-ticker:hover { border-bottom-color: var(--text-primary); }

.ds-ticker-pop {
  position: absolute;
  z-index: 60;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  width: 240px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-micro) var(--ease),
              transform var(--dur-micro) var(--ease);
}
.ds-ticker-pop--in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ds-ticker-pop__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.ds-ticker-pop__sym {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}
.ds-ticker-pop__price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.ds-ticker-pop__quality {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.ds-ticker-pop__thesis {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────
   15. STAT STRIP — single horizontal row, hairline-divided
   ────────────────────────────────────────────────────────── */
.ds-strip {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  overflow: hidden;
}
.ds-strip__cell {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ds-strip__cell:last-child { border-right: none; }
.ds-strip__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ds-strip__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────
   16. SPARKLINE — inline, 80px wide, single thin path
   ────────────────────────────────────────────────────────── */
.ds-sparkline {
  display: inline-block;
  width: 80px; height: 24px;
  vertical-align: middle;
}
.ds-sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ──────────────────────────────────────────────────────────
   17. PROGRESS BARS (quality / lens / allocation)
   ────────────────────────────────────────────────────────── */
.ds-bar {
  position: relative;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.ds-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--text-primary);
  width: 0;
  transition: width 700ms var(--ease);
}
.ds-bar--in .ds-bar__fill { width: var(--value, 0%); }

/* ──────────────────────────────────────────────────────────
   18. REDUCED-MOTION RESPECT
   ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .ds-reveal { opacity: 1; transform: none; }
  .ds-bar__fill { width: var(--value, 0%); }
}
