/*
 * ================================================================
 *  TIPOLIS DESIGN SYSTEM
 *  assets/css/tipolis-design-system.css
 *
 *  Source of visual truth: general/index.html
 *  Source of spec truth:   docs/ui/TIPOLIS_UI_SPEC.md
 *  Version: 2.0 | May 2026
 *
 *  USAGE: Import this file as the FIRST stylesheet in every HTML
 *  file within the tipolis-sandbox repository, AFTER loading the
 *  Google Fonts families:
 *
 *  <link rel="preconnect" href="https://fonts.googleapis.com">
 *  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *  <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&family=Jost:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
 *  <link rel="stylesheet" href="/assets/css/tipolis-design-system.css">
 * ================================================================
 */

/* ── 1. Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── 2. Design Tokens ─────────────────────────────────────────── */
:root {
  /* ── Surface — Deep Navy Stack ──────────────────────────────── */
  --color-navy-1000: #0A1828;
  --color-navy-950:  #07111F;
  --color-navy-900:  #0D1E35;
  --color-navy-850:  #001E35;
  --color-navy-800:  #001829;
  --color-navy-750:  #002040;
  --color-navy-700:  #002A45;
  --color-navy-650:  #003050;
  --color-navy-600:  #00264A;
  --color-navy-500:  #1E3A5F;
  --color-navy-400:  #274C7A;

  /* ── Text on dark ───────────────────────────────────────────── */
  --color-text-on-dark:         #FFFFFF;
  --color-text-on-dark-2:       #C8D4E0;
  --color-text-on-dark-muted:   #7A8A9E;
  --color-text-on-dark-faint:   #5A6A7A;
  --color-text-on-dark-fainter: #8A9AAE;

  /* ── Theme Accents (one per topic) ──────────────────────────── */
  --accent-treasury:  #FF6B35;   /* Orange — STRC Treasury, Overview */
  --accent-digital:   #F5A623;   /* Gold — Digital Money / SATS */
  --accent-bonds:     #3B82F6;   /* Blue — City Bonds */
  --accent-strategic: #2ECC71;   /* Green — Strategic Decision, success */
  --accent-tools:     #0D9E8E;   /* Teal — interactive tools, two-sided market */
  --accent-peer:      #A78BFA;   /* Purple — peer comparison, white-label */
  --accent-warning:   #E74C3C;   /* Red — risk, alerts, lock-in */
  --accent-warning-2: #EF4444;
  --accent-cyan:      #06B6D4;

  /* ── Default page accent (override on body via page-- modifier) */
  --accent: var(--accent-treasury);

  /* ── Light surfaces (used only inside actor flow diagrams) ──── */
  --color-light-bg:        #F3F6FA;
  --color-light-card:      #FFFFFF;
  --color-light-card-text: #0E1633;

  /* ── Gradients ──────────────────────────────────────────────── */
  --gradient-actor: linear-gradient(180deg, #2D3CFF, #24358F);
  --gradient-hub:   linear-gradient(180deg, rgba(0, 42, 69, .96), rgba(0, 30, 53, .96));

  /* ── Hairlines ──────────────────────────────────────────────── */
  --hairline-on-dark:    rgba(255, 255, 255, .05);
  --hairline-on-dark-2:  rgba(255, 255, 255, .08);
  --hairline-on-dark-3:  rgba(255, 255, 255, .12);

  /* ── Semantic surface tokens ────────────────────────────────── */
  --color-bg-page:         var(--color-navy-900);
  --color-bg-app:          var(--color-navy-1000);
  --color-bg-card:         var(--color-navy-700);
  --color-bg-card-deep:    var(--color-navy-800);
  --color-bg-card-mid:     var(--color-navy-750);
  --color-bg-card-surface: var(--color-navy-650);
  --color-bg-input:        var(--color-navy-850);
  --color-bg-input-soft:   rgba(255, 255, 255, .02);

  --color-text-primary:   var(--color-text-on-dark);
  --color-text-body:      var(--color-text-on-dark-2);
  --color-text-secondary: var(--color-text-on-dark-muted);
  --color-text-muted:     var(--color-text-on-dark-faint);

  --color-border-card:   var(--hairline-on-dark-2);
  --color-border-strong: var(--hairline-on-dark-3);
  --color-divider:       var(--hairline-on-dark);

  /* ── Back-compat aliases (referenced by general/index.html inline CSS) */
  --color-bg-dark:      var(--color-navy-900);
  --color-bg-card-dark: var(--color-navy-700);
  --color-text-accent:  var(--accent);
  --color-gold-400:     var(--accent-digital);
  --color-gold-300:     #FFCC75;
  --color-gold-100:     #FFF1D2;

  /* ── Typography ─────────────────────────────────────────────── */
  --font-display: 'Bebas Neue', 'Oswald', 'Impact', system-ui, sans-serif;
  --font-body:    'Jost', 'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --text-2xs:  0.5rem;       /*  8px */
  --text-xs:   0.625rem;     /* 10px */
  --text-xs-2: 0.6875rem;    /* 11px */
  --text-sm:   0.75rem;      /* 12px */
  --text-sm-2: 0.8125rem;    /* 13px */
  --text-base: 0.875rem;     /* 14px */
  --text-md:   0.9375rem;    /* 15px */
  --text-lg:   1rem;         /* 16px */
  --text-xl:   1.125rem;     /* 18px */
  --text-2xl:  1.375rem;     /* 22px */
  --text-3xl:  1.75rem;      /* 28px */
  --text-4xl:  2rem;         /* 32px */
  --text-5xl:  2.125rem;     /* 34px */
  --text-6xl:  2.625rem;     /* 42px */
  --text-7xl:  3.375rem;     /* 54px */
  --text-8xl:  6rem;         /* 96px */

  --leading-display:  0.9;
  --leading-tight:    0.95;
  --leading-snug:     1.15;
  --leading-normal:   1.5;
  --leading-readable: 1.65;
  --leading-airy:     1.75;
  --leading-loose:    1.8;

  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.05em;
  --tracking-mono-1:   1px;
  --tracking-mono-2:   1.5px;
  --tracking-mono-3:   2px;
  --tracking-mono-4:   3px;

  /* ── Spacing ────────────────────────────────────────────────── */
  --space-0-5: 2px;
  --space-1:   4px;
  --space-1-5: 6px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  14px;
  --space-5:  16px;
  --space-6:  18px;
  --space-7:  20px;
  --space-8:  22px;
  --space-9:  24px;
  --space-10: 26px;
  --space-12: 32px;
  --space-14: 36px;
  --space-16: 40px;
  --space-20: 48px;
  --space-24: 60px;
  --space-28: 72px;
  --space-32: 80px;

  /* ── Radii ──────────────────────────────────────────────────── */
  --radius-1:    2px;
  --radius-2:    3px;
  --radius-3:    4px;
  --radius-4:    6px;
  --radius-5:    8px;
  --radius-6:   12px;
  --radius-7:   16px;
  --radius-8:   18px;
  --radius-9:   28px;
  --radius-10:  34px;
  --radius-pill: 999px;

  /* ── Shadows ────────────────────────────────────────────────── */
  --shadow-card:   0 6px 18px rgba(0, 0, 0, 0.16);
  --shadow-hub:    0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-actor:  0 12px 30px rgba(0, 0, 0, 0.16);
  --shadow-light:  0 8px 22px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.18);

  /* ── Layout ─────────────────────────────────────────────────── */
  --container-max:    980px;
  --container-pad:    24px;
  --container-pad-sm: 16px;

  /* ── Motion ─────────────────────────────────────────────────── */
  --transition-fast:   200ms ease;
  --transition-normal: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:   800ms ease;
}

/* ── 3. Theme accent modifiers (set on <body class="page--…">) ── */
.page--overview,
.page--general,
.page--strc-treasury { --accent: var(--accent-treasury); }
.page--digital-money,
.page--press-research-communications { --accent: var(--accent-digital); }
.page--city-bonds                    { --accent: var(--accent-bonds); }
.page--strategic-decision            { --accent: var(--accent-strategic); }
.page--infrastructure-development    { --accent: var(--accent-tools); }
.page--real-estate                   { --accent: var(--accent-peer); }
.page--business-development          { --accent: var(--accent-cyan); }

/* ── 4. Base styles ───────────────────────────────────────────── */
html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-primary);
}

button, input, textarea, select { font: inherit; color: inherit; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

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

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

/* ── 5. Container ─────────────────────────────────────────────── */
.t-main, .container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 768px) {
  .t-main, .container { padding-inline: var(--container-pad-sm); }
}

/* ── 6. Grid templates ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid-7-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.grid-actors {
  display: grid;
  grid-template-columns: 280px minmax(320px, 400px) 280px;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
  min-height: 430px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-actors { grid-template-columns: 1fr; min-height: 0; }
}

/* ── 7. Section header ────────────────────────────────────────── */
.t-section-header { margin-bottom: 24px; }

.t-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-mono-4);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 8.5vw, 96px);
  line-height: var(--leading-display);
  color: var(--color-text-primary);
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.t-h2--sm { font-size: clamp(28px, 4vw, 42px); }

.t-h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-primary);
}

.t-lead {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: var(--leading-loose);
  color: var(--color-text-body);
  margin-bottom: 36px;
  max-width: 780px;
}

.t-body  { font-size: 12px; line-height: var(--leading-airy); color: var(--color-text-body); }
.t-body  strong { color: var(--color-text-primary); }
.t-small { font-size: 11px; line-height: 1.65; color: var(--color-text-body); }
.t-footnote { font-size: 10px; line-height: 1.5; color: var(--color-text-muted); }

/* ── 8. Section divider ───────────────────────────────────────── */
.t-divider {
  height: 1px;
  background: var(--color-divider);
  margin: 36px 0;
  border: none;
}

/* ── 9. Navigation ────────────────────────────────────────────── */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 30, 48, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px var(--container-pad);
  overflow-x: auto;
}

.t-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  white-space: nowrap;
}

.t-nav__brand img { height: 30px; width: auto; }

.t-nav__brand span {
  font-family: 'DM Sans', var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: .5px;
}

.t-nav__items { display: flex; gap: 6px; }

/* ── 10. Pill button (switcher / tab) ─────────────────────────── */
.t-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  border: 1px solid var(--color-text-secondary);
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: color var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.t-pill:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.t-pill[aria-pressed="true"],
.t-pill.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
}

/* ── 11. Primary button ───────────────────────────────────────── */
.t-btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy-900);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-1);
  padding: 10px 22px;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.t-btn-primary:hover { filter: brightness(1.1); }

/* ── 12. Hero ─────────────────────────────────────────────────── */
.t-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--color-divider);
}

.t-hero__overline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono-4);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.t-hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 8.5vw, 96px);
  line-height: var(--leading-display);
  color: var(--color-text-primary);
  margin-bottom: 22px;
}

.t-hero__title span { color: var(--accent); }

.t-hero__lead {
  max-width: 780px;
  font-size: 15px;
  line-height: var(--leading-loose);
  color: var(--color-text-body);
  margin-bottom: 40px;
}

/* ── 13. IBadge ───────────────────────────────────────────────── */
.t-ibadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-1);
}

.t-ibadge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.t-ibadge__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--accent);
}

/* ── 14. Risk Card ────────────────────────────────────────────── */
.t-risk {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-bg-card-surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-1);
  margin-bottom: 10px;
}

.t-risk__indicator {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.t-risk__body { flex: 1; }
.t-risk__title { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--color-text-primary); }
.t-risk__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-1);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  margin-bottom: 5px;
}
.t-risk__text { font-size: 12px; color: var(--color-text-secondary); line-height: var(--leading-readable); }

/* ── 15. Feature Card (top-accent) ────────────────────────────── */
.t-feature {
  background: var(--color-bg-card-mid);
  border: 1px solid rgba(255, 255, 255, .06);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-2);
  padding: 14px 18px;
}

.t-feature__pre {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.t-feature__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.t-feature__body { font-size: 12px; line-height: 1.7; color: var(--color-text-body); }

/* ── 16. Tinted Card ──────────────────────────────────────────── */
.t-tinted {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius-1);
  padding: 16px 18px;
}

.t-tinted__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.t-tinted__body { font-size: 13px; color: var(--color-text-body); line-height: 1.8; }
.t-tinted__body strong { color: var(--color-text-primary); }

/* ── 17. Callout ──────────────────────────────────────────────── */
.t-callout {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius-1);
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--color-text-body);
}

.t-callout strong { color: var(--accent); }

/* ── 18. Loop / Cycle Box ─────────────────────────────────────── */
.t-loop {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius-2);
  padding: 16px 18px;
}

.t-loop__title {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.t-loop__body { font-size: 12px; line-height: 1.75; color: var(--color-text-body); }
.t-loop__body strong { color: var(--color-text-primary); }

/* ── 19. Pattern Card (primary, left-bar hero) ────────────────── */
.t-pattern {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 10%, transparent),
    color-mix(in srgb, var(--accent)  3%, transparent));
  border: 2px solid var(--accent);
  border-radius: var(--radius-2);
  padding: 24px 28px;
  margin-bottom: 12px;
}

.t-pattern__pre {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: var(--tracking-mono-4);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.t-pattern__star {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono-1);
  color: var(--accent);
  margin-bottom: 4px;
}

.t-pattern__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}

.t-pattern__body { font-size: 13px; color: var(--color-text-body); line-height: var(--leading-airy); }

/* ── 20. Stat / KPI ───────────────────────────────────────────── */
.t-stat {
  background: var(--color-bg-card-mid);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-1);
  padding: 12px 14px;
}

.t-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono-1);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.t-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 2px;
}

.t-stat__sub { font-size: 9px; color: var(--color-text-muted); }

.t-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .t-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 21. Tables ───────────────────────────────────────────────── */
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.t-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-card);
}

.t-table tbody td {
  font-size: 12px;
  color: var(--color-text-body);
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}

.t-table tbody tr:last-child td { border-bottom: none; }

.t-table tr.is-highlight td {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ── 22. Inputs ───────────────────────────────────────────────── */
.t-input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-mono-2);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}

.t-input {
  width: 100%;
  background: var(--color-bg-input);
  border: 1px solid var(--hairline-on-dark-3);
  border-radius: var(--radius-1);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.t-input:focus-visible { border-color: var(--accent); }

/* Range slider */
.t-range__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.t-range__readout {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.t-range__input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.t-range__bounds {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-on-dark-fainter);
  margin-top: 3px;
}

/* Progress bar */
.t-progress {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-1);
  height: 8px;
  overflow: hidden;
}

.t-progress__fill {
  height: 100%;
  border-radius: var(--radius-1);
  background: var(--accent);
  transition: width 400ms cubic-bezier(.16, 1, .3, 1);
}

/* ── 23. NPD Stage Tracker ────────────────────────────────────── */
.t-stage-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.t-stage-track__cell {
  height: 28px;
  border-radius: var(--radius-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 200ms ease;
}

.t-stage-track__cell--inactive {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}

.t-stage-track__cell--active {
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  border: 1px solid rgba(255, 255, 255, .06);
}

.t-stage-track__cell--current {
  background: var(--accent);
  border: 2px solid var(--accent);
}

.t-stage-track__cell--current::after {
  content: 'NOW';
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--color-navy-800);
}

/* ── 24. Timeline ─────────────────────────────────────────────── */
.t-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  position: relative;
}

.t-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-card);
}

.t-timeline__step {
  padding-top: 40px;
  padding-right: 32px;
  position: relative;
}

.t-timeline__step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.t-timeline__period {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.t-timeline__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--color-text-primary);
}

.t-timeline__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-timeline__item {
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-text-body);
  padding-left: 14px;
  position: relative;
}

.t-timeline__item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── 25. Actor Flow Diagram ───────────────────────────────────── */
.t-flow {
  background: var(--color-light-bg);
  border-radius: var(--radius-5);
  padding: 26px 20px 18px;
  border: 1px solid var(--hairline-on-dark-2);
}

.t-flow__actor {
  background: var(--gradient-actor);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-9);
  padding: 28px 18px;
  min-height: 300px;
  box-shadow: var(--shadow-actor);
  text-align: center;
}

.t-flow__actor h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--color-text-on-dark);
}

.t-flow__center {
  background: var(--color-light-card);
  color: var(--color-light-card-text);
  border: 1.5px solid rgba(14, 22, 51, .24);
  border-radius: var(--radius-10);
  padding: 24px 18px;
  min-height: 356px;
  box-shadow: var(--shadow-light);
}

.t-flow__center-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-light-card-text);
  margin-bottom: 10px;
}

.t-flow__center-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--color-light-card-text);
}

.t-flow__mini {
  border-radius: var(--radius-7);
  padding: 14px 12px;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.t-flow__mini-title { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.t-flow__mini-body  { font-size: 11px; color: var(--color-text-on-dark-faint); line-height: 1.5; }

/* ── 26. Circular Flywheel ────────────────────────────────────── */
.t-flywheel {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 760px;
  margin: 0 auto;
}

.t-flywheel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  min-height: 170px;
  background: var(--gradient-hub);
  border: 1px solid var(--hairline-on-dark-3);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-hub);
  padding: 18px 22px;
  text-align: center;
}

.t-flywheel__hub-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.t-flywheel__node {
  position: absolute;
  width: 230px;
  min-height: 112px;
  background: var(--color-bg-card-deep);
  border: 1px solid color-mix(in srgb, var(--node-accent, var(--accent)) 25%, transparent);
  border-top: 3px solid var(--node-accent, var(--accent));
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-card);
  padding: 16px 16px 15px;
  text-align: center;
}

.t-flywheel__node-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--node-accent, var(--accent));
  line-height: 1.35;
  margin-bottom: 8px;
}

.t-flywheel__node-body {
  font-size: 11px;
  color: var(--color-text-body);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .t-flywheel { height: auto; display: flex; flex-direction: column; gap: 12px; }
  .t-flywheel__hub, .t-flywheel__node {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
  }
}

/* ── 27. Market Funnel ────────────────────────────────────────── */
.t-funnel {
  margin: 36px auto;
  max-width: 640px;
}

.t-funnel__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono-3);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

/* ── 28. Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.animate-in {
  animation: fadeInUp var(--transition-slow) both;
}

.animate-in--delay-1 { animation-delay:  80ms; }
.animate-in--delay-2 { animation-delay: 160ms; }
.animate-in--delay-3 { animation-delay: 240ms; }
.animate-in--delay-4 { animation-delay: 320ms; }
.animate-in--delay-5 { animation-delay: 400ms; }

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

/* ── 29. Utility classes ──────────────────────────────────────── */
.text-accent     { color: var(--accent); }
.text-primary    { color: var(--color-text-primary); }
.text-body       { color: var(--color-text-body); }
.text-secondary  { color: var(--color-text-secondary); }
.text-muted      { color: var(--color-text-muted); }

.font-display    { font-family: var(--font-display); }
.font-mono       { font-family: var(--font-mono); }
.font-body       { font-family: var(--font-body); }

.uppercase       { text-transform: uppercase; }
.tracking-wide   { letter-spacing: var(--tracking-wide); }
.tracking-mono   { letter-spacing: var(--tracking-mono-3); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
