@import url('./fonts/fonts.css');

  :root, :root[data-theme="dark"] {
    color-scheme: dark;

    /* Surfaces */
    --bg-obsidian:    #050608;
    --bg-base:        #0A0C12;
    --surface-1:      #0F1219;
    --surface-2:      #161A24;
    --surface-3:      #1F2430;
    --surface-inv:    #FAF8F4;

    /* Lines */
    --line-soft:      rgba(255, 255, 255, 0.05);
    --line:           rgba(255, 255, 255, 0.08);
    --line-strong:    rgba(255, 255, 255, 0.14);

    /* Foregrounds */
    --fg-1:           #F2F3F7;
    --fg-2:           #B7BCCC;
    --fg-3:           #7A8094;
    --fg-4:           #4F556A;
    --fg-on-cream:    #0A0C12;
    --fg-on-brand:    #FAF8F4;

    /* Brand (palette is constant across themes; only opacity overlays shift) */
    --brand-50:   #FCEDEF;
    --brand-100:  #F9D9DC;
    --brand-300:  #F4B8BE;
    --brand-400:  #E04555;
    --brand-500:  #BC1823;
    --brand-600:  #A6121C;
    --brand-700:  #75070D;
    --brand-glow: rgba(188, 24, 35, 0.55);
    --brand-bg:   rgba(188, 24, 35, 0.10);
    --brand-bg-2: rgba(188, 24, 35, 0.16);
    --brand-bd:   rgba(188, 24, 35, 0.30);

    /* Status (constant) */
    --critical:   #F87171;
    --high:       #FB923C;
    --warn:       #FBBF24;
    --ok:         #34D399;
    --info:       #60A5FA;

    /* Map tokens — themed */
    --map-ocean-1:     #0A1018;   /* ocean radial center */
    --map-ocean-2:     #050608;   /* ocean radial edge */
    --map-land-1:      #1A1E29;   /* land fill top */
    --map-land-2:      #0E1118;   /* land fill bottom */
    --map-land-glow:   #2A3142;   /* land top-edge highlight */
    --map-land-shadow: rgba(0,0,0,0.9);
    --map-land-stroke: rgba(255,255,255,0.20);
    --map-graticule:   rgba(255,255,255,0.025);
    --map-equator:     rgba(255,255,255,0.06);
    --map-watermark:   rgba(255,255,255,0.25);
    --map-vignette-color: #000;
    --map-vignette-alpha: 0.55;
    --map-heat-1:      0.22;   /* APJ heat strength */
    --map-heat-2:      0.18;   /* SCS heat */
    --map-heat-3:      0.20;   /* Ladakh heat */
    --map-asset:       #60A5FA; /* friendly asset (blue) */

    /* Typography */
    --font-display: 'Familjen Grotesk', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Motion */
    --ease-out:    cubic-bezier(.16, .8, .24, 1);
    --ease-in-out: cubic-bezier(.65, .05, .36, 1);

    /* Elevation */
    --shadow-lg: 0 1px 0 rgba(255,255,255,0.05) inset,
                 0 24px 60px rgba(0,0,0,0.55),
                 0 6px 16px rgba(0,0,0,0.35);

    /* Surface veils — used by gradients that have to fade-in the page bg */
    --veil:           5, 6, 8;        /* rgb tuple used inside rgba() in gradients */
    --nav-scrolled-bg: rgba(8, 10, 15, 0.78);
    --scanline:        rgba(255,255,255,0.012);
  }

  :root[data-theme="light"] {
    color-scheme: light;

    /* Surfaces — warm off-white architectural palette */
    --bg-obsidian:    #ECEAE4;
    --bg-base:        #F5F2EC;
    --surface-1:      #FAF8F4;
    --surface-2:      #FFFFFF;
    --surface-3:      #F0EDE5;
    --surface-inv:    #0A0C12;

    /* Lines (subtle warm grey) */
    --line-soft:      rgba(10, 12, 18, 0.06);
    --line:           rgba(10, 12, 18, 0.10);
    --line-strong:    rgba(10, 12, 18, 0.18);

    /* Foregrounds — deep ink hierarchy */
    --fg-1:           #0A0C12;
    --fg-2:           #2A2F3A;
    --fg-3:           #5A6070;
    --fg-4:           #8A8F9C;
    --fg-on-cream:    #FAF8F4;
    --fg-on-brand:    #FAF8F4;
    --brand-glow: rgba(188, 24, 35, 0.45);
    --brand-bg:   rgba(188, 24, 35, 0.07);
    --brand-bg-2: rgba(188, 24, 35, 0.12);
    --brand-bd:   rgba(188, 24, 35, 0.35);

    /* Map tokens — light "satellite paper" palette
       Ocean is pale blue-grey, land is darker so it still feels raised. */
    --map-ocean-1:     #E8EEF2;
    --map-ocean-2:     #D6DDE3;
    --map-land-1:      #2A3142;
    --map-land-2:      #1A1E29;
    --map-land-glow:   #3A4254;
    --map-land-shadow: rgba(10, 12, 18, 0.18);
    --map-land-stroke: rgba(10, 12, 18, 0.28);
    --map-graticule:   rgba(10, 12, 18, 0.05);
    --map-equator:     rgba(10, 12, 18, 0.10);
    --map-watermark:   rgba(10, 12, 18, 0.35);
    --map-vignette-color: #B4B4BE;
    --map-vignette-alpha: 0.30;
    --map-heat-1:      0.28;
    --map-heat-2:      0.24;
    --map-heat-3:      0.26;
    --map-asset:       #1E58D6;

    /* Elevation softer on light */
    --shadow-lg: 0 1px 0 rgba(255,255,255,0.9) inset,
                 0 20px 50px rgba(20, 22, 30, 0.10),
                 0 6px 16px rgba(20, 22, 30, 0.06);

    --veil:           245, 242, 236;   /* warm off-white tuple for gradients */
    --nav-scrolled-bg: rgba(250, 248, 244, 0.82);
    --scanline:        rgba(10, 12, 18, 0.020);
  }

  /* Smooth cross-theme transitions on themed properties */
  html { transition: background-color 300ms var(--ease-out); }
  body { transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
  .threatmap, .hero-stage, .nav, footer, section { transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-base); color: var(--fg-1);
    font-family: var(--font-body); font-size: 15px; line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--brand-500); color: white; }

  .container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .narrow    { max-width: 960px;  margin: 0 auto; padding: 0 32px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-400);
  }
  .eyebrow::before {
    content:''; display:block; width: 24px; height: 1px; background: var(--brand-400);
  }
  .eyebrow.centered::before { display: none; }

  /* ── NAV ──────────────────────────────────────────────────── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 32px; height: 72px; display: flex; align-items: center;
    transition: background 250ms var(--ease-out), border-bottom-color 250ms;
    border-bottom: 1px solid transparent;
  }
  .nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
  }
  .nav-inner { max-width: 1240px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 40px; }
  .nav-logo { display: flex; align-items: center; gap: 14px; margin-right: auto; }
  .nav-logo-mark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
  .nav-logo-mark svg { width: 100%; height: 100%; display: block; }
  .nav-logo-word {
    font-family: var(--font-display); font-weight: 700;
    font-size: 16px; letter-spacing: 0.34em; color: var(--fg-1);
  }
  .nav-classified {
    display: none;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.2em; color: var(--fg-4); text-transform: uppercase;
    padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line);
    align-items: center; gap: 8px;
  }
  .nav-classified::before {
    content:''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 8px var(--ok);
    animation: pulse-dot 2.4s infinite;
  }
  @media (min-width: 900px) { .nav-classified { display: inline-flex; } }

  .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
  .nav-links a {
    font-size: 13px; font-weight: 500; color: var(--fg-3);
    transition: color 150ms; padding: 6px 0;
  }
  .nav-links a:hover { color: var(--fg-1); }
  .nav-cta {
    background: var(--surface-inv); color: var(--fg-on-cream);
    padding: 10px 18px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 200ms, box-shadow 200ms;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }
  :root[data-theme="light"] .nav-cta { box-shadow: 0 2px 8px rgba(20,22,30,0.10); }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
  :root[data-theme="light"] .nav-cta:hover { box-shadow: 0 10px 24px rgba(20,22,30,0.18); }
  .nav-cta svg { width: 12px; height: 12px; }

  /* Theme toggle — single icon button, sun ↔ moon crossfade */
  .theme-toggle {
    width: 38px; height: 38px;
    margin-right: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--fg-2);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    position: relative; overflow: hidden;
    transition: color 200ms var(--ease-out),
                border-color 200ms var(--ease-out),
                background 200ms var(--ease-out),
                transform 200ms var(--ease-out);
  }
  .theme-toggle:hover {
    color: var(--fg-1);
    border-color: var(--brand-bd);
    background: var(--brand-bg);
  }
  .theme-toggle:active { transform: scale(0.94); }
  .theme-toggle:focus-visible {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-bg-2);
  }
  .theme-icon {
    width: 16px; height: 16px;
    position: absolute;
    transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out);
  }
  /* Dark mode: show sun (you'd click to go to light) */
  :root[data-theme="dark"] .theme-icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
  :root[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  /* Light mode: show moon (you'd click to go to dark) */
  :root[data-theme="light"] .theme-icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
  :root[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

  /* ── HERO ─────────────────────────────────────────────────── */
  .hero {
    position: relative; padding: 100px 28px 40px;
    display: flex; align-items: center; overflow: hidden;
  }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(188, 24, 35,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(188, 24, 35,0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 75%);
  }
  .hero-bloom {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 80% 50%, rgba(188, 24, 35,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 60% 45% at 50% 100%, rgba(188, 24, 35,0.14) 0%, transparent 65%);
  }
  .hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 95% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.6) 100%);
  }

  .hero-inner {
    position: relative; width: 100%; max-width: 1480px;
    margin: 0 auto;
    display: flex; flex-direction: column; gap: 32px;
  }
  /* Full-bleed hero stage: map fills, headline overlays on the left */
  .hero-stage {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
      inset 0 0 0 1px var(--line),
      0 30px 80px rgba(0,0,0,0.55),
      0 0 0 1px rgba(188,24,35,0.15);
  }
  /* Top hairline gradient — premium "control-surface" detail */
  .hero-stage::before {
    content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 5;
    background: linear-gradient(90deg, transparent 0%, rgba(188,24,35,0.6) 30%, rgba(188,24,35,0.6) 70%, transparent 100%);
    pointer-events: none;
  }
  /* Faint scan-lines overlay across the whole stage — vintage display feel */
  .hero-stage::after {
    content:''; position: absolute; inset: 0; z-index: 3;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      var(--scanline) 3px,
      var(--scanline) 4px
    );
    pointer-events: none;
  }

  /* Headline overlay — sits on the left over the map */
  .hero-overlay {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 54%;
    max-width: 700px;
    padding: 80px 56px 64px;
    display: flex; flex-direction: column; justify-content: center;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(var(--veil), 0.94) 0%,
      rgba(var(--veil), 0.88) 35%,
      rgba(var(--veil), 0.60) 65%,
      rgba(var(--veil), 0.18) 88%,
      rgba(var(--veil), 0.0) 100%
    );
  }
  .hero-overlay > * { pointer-events: auto; }
  /* Subtle left-edge accent line for premium chrome */
  .hero-overlay::before {
    content:''; position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--brand-bd) 30%, var(--brand-bd) 70%, transparent);
    pointer-events: none;
  }
  @media (max-width: 1100px) {
    .hero-overlay {
      position: static; width: 100%; max-width: none;
      padding: 48px 32px 40px;
      background: linear-gradient(180deg, rgba(var(--veil), 0.96), rgba(var(--veil), 0.75));
    }
    .hero-overlay::before { display: none; }
  }

  /* horizontal hero rail (below hero-stage) */
  .hero-rail {
    margin-top: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface-1);
    opacity: 0; animation: heroFade .7s .7s var(--ease-out) both;
  }
  @media (max-width: 760px) { .hero-rail { grid-template-columns: repeat(2, 1fr); } }
  .hero-rail-item {
    padding: 22px 24px;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 6px;
  }
  .hero-rail-item:last-child { border-right: none; }
  @media (max-width: 760px) {
    .hero-rail-item:nth-child(2n) { border-right: none; }
    .hero-rail-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  }
  .hero-rail-l {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-4);
  }
  .hero-rail-v {
    font-family: var(--font-display); font-weight: 600; font-size: 17px;
    color: var(--fg-1); letter-spacing: -0.01em; line-height: 1.3;
  }
  .hero-rail-v .accent { color: var(--brand-400); }

  .hero-classified {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
    padding: 6px 14px; border: 1px solid var(--line);
    border-radius: 4px; background: var(--surface-1);
    margin-bottom: 36px;
    opacity: 0; animation: heroFade .6s 0s var(--ease-out) both;
  }
  .hero-classified-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-400); box-shadow: 0 0 8px var(--brand-400);
    animation: pulse-dot 2s infinite;
  }
  .hero-classified-sep { width: 1px; height: 10px; background: var(--line); }

  .hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(40px, 5vw, 70px); line-height: 0.98; letter-spacing: -0.045em;
    margin-bottom: 26px; color: var(--fg-1);
    opacity: 0; animation: heroFade .7s .1s var(--ease-out) both;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  }
  .hero h1 .strike { color: var(--fg-4); position: relative; display: inline-block; }
  .hero h1 .strike::after {
    content:''; position: absolute; left: -4%; right: -4%; top: 52%;
    height: 2px; background: var(--brand-400); transform-origin: left;
    transform: scaleX(0); animation: strikeIn 1s 1.4s var(--ease-out) forwards;
  }
  .hero h1 .accent { color: var(--brand-400); }

  .hero-sub {
    font-size: clamp(15px, 1.3vw, 17.5px); color: var(--fg-2);
    max-width: 54ch; line-height: 1.6; margin-bottom: 44px;
    opacity: 0; animation: heroFade .7s .25s var(--ease-out) both;
  }
  .hero-sub strong { color: var(--fg-1); font-weight: 500; }

  .hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    opacity: 0; animation: heroFade .7s .4s var(--ease-out) both;
  }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface-inv); color: var(--fg-on-cream);
    padding: 14px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    transition: transform 200ms, box-shadow 200ms;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.55); }
  .btn-primary svg { width: 13px; height: 13px; }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--fg-1);
    padding: 14px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    border: 1px solid var(--line-strong);
    transition: border-color 200ms, transform 200ms, background 200ms;
  }
  .btn-ghost:hover { border-color: var(--brand-bd); background: var(--brand-bg); transform: translateY(-1px); }
  .btn-ghost svg { width: 13px; height: 13px; }

  /* ── THREAT MAP (replaces oscilloscope) ──────────────────────────── */
  .threatmap {
    position: relative;
    background: var(--bg-obsidian);
    overflow: hidden;
    opacity: 0; animation: heroFade .7s .35s var(--ease-out) both;
  }
  .tm-header {
    position: absolute; top: 18px; right: 28px; z-index: 6;
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
    pointer-events: none;
  }
  .tm-header-l { display: flex; align-items: center; gap: 12px; }
  .tm-header .live {
    display: inline-flex; align-items: center; gap: 8px; color: var(--brand-400);
  }
  .tm-header .live::before {
    content:''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-400); animation: pulse-dot 1.6s infinite;
  }
  .tm-header .coord { color: var(--fg-4); }

  .tm-canvas {
    position: relative; width: 100%;
    aspect-ratio: 16/8;
    min-height: 600px;
    background:
      radial-gradient(ellipse 60% 70% at 70% 55%, rgba(188, 24, 35,0.10) 0%, transparent 65%),
      var(--bg-obsidian);
    overflow: hidden;
  }
  @media (max-width: 1100px) { .tm-canvas { aspect-ratio: 16/10; min-height: 520px; } }
  @media (max-width: 600px) { .tm-canvas { aspect-ratio: 4/3; min-height: 360px; } }
  .tm-canvas svg { display:block; width: 100%; height: 100%; position: absolute; inset: 0; }

  /* graticule lines (latitudes/longitudes) */
  .tm-graticule { stroke: rgba(255,255,255,0.04); stroke-width: 0.5; fill: none; }
  /* continent outlines */
  .tm-continent { fill: rgba(255,255,255,0.018); stroke: rgba(255,255,255,0.10); stroke-width: 0.5; }
  .tm-continent-apj { fill: rgba(188,24,35,0.05); stroke: rgba(188,24,35,0.22); stroke-width: 0.6; }

  /* threat arcs */
  .tm-arc {
    fill: none; stroke: var(--brand-400); stroke-width: 1;
    opacity: 0.55;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
  }
  .tm-arc.a1 { animation: arcDraw 3.6s 1.8s var(--ease-out) infinite; }
  .tm-arc.a2 { animation: arcDraw 3.6s 3.0s var(--ease-out) infinite; }
  .tm-arc.a3 { animation: arcDraw 3.6s 4.2s var(--ease-out) infinite; }
  .tm-arc.a4 { animation: arcDraw 3.6s 5.4s var(--ease-out) infinite; }
  .tm-arc.a5 { animation: arcDraw 3.6s 6.6s var(--ease-out) infinite; }
  @keyframes arcDraw {
    0%   { stroke-dashoffset: 900; opacity: 0; }
    20%  { opacity: 0.75; }
    60%  { stroke-dashoffset: 0; opacity: 0.75; }
    100% { stroke-dashoffset: -900; opacity: 0; }
  }

  /* threat nodes */
  .tm-node-core { fill: var(--brand-400); }
  .tm-node-ring {
    fill: none; stroke: var(--brand-400); stroke-width: 1;
    transform-origin: center; transform-box: fill-box;
  }
  .tm-node-pulse {
    fill: var(--brand-400); opacity: 0;
    transform-origin: center; transform-box: fill-box;
  }
  .tm-node-pulse.n1 { animation: nodePulse 2.4s 1.0s infinite; }
  .tm-node-pulse.n2 { animation: nodePulse 2.4s 1.6s infinite; }
  .tm-node-pulse.n3 { animation: nodePulse 2.4s 2.2s infinite; }
  .tm-node-pulse.n4 { animation: nodePulse 2.4s 2.8s infinite; }
  .tm-node-pulse.n5 { animation: nodePulse 2.4s 3.4s infinite; }
  .tm-node-pulse.n6 { animation: nodePulse 2.4s 4.0s infinite; }
  @keyframes nodePulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(6); opacity: 0; }
  }

  /* sector friendly markers (assets) */
  .tm-asset {
    fill: var(--map-asset); opacity: 0.7;
  }
  .tm-asset-ring {
    fill: none; stroke: var(--map-asset); stroke-width: 0.6; opacity: 0.45;
  }

  /* scanner sweep — rotation is now handled by inline SVG animateTransform
     so the pivot lands exactly on India (the sector's vertex). */
  .tm-sweep { opacity: 0.6; }

  /* feed strip */
  .tm-feed {
    border-top: 1px solid var(--line-soft);
    padding: 14px 20px;
    display: flex; flex-direction: column; gap: 6px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-3);
    max-height: 132px;
    overflow: hidden;
    position: relative;
  }
  .tm-feed::after {
    content:''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
    background: linear-gradient(180deg, transparent, var(--surface-1));
    pointer-events: none;
  }
  .tm-feed-row {
    display: grid; grid-template-columns: 56px 70px 1fr auto;
    align-items: baseline; gap: 12px;
    opacity: 0;
  }
  .tm-feed-row.r1 { animation: feedIn .5s 2.4s var(--ease-out) forwards; }
  .tm-feed-row.r2 { animation: feedIn .5s 3.0s var(--ease-out) forwards; }
  .tm-feed-row.r3 { animation: feedIn .5s 3.6s var(--ease-out) forwards; }
  .tm-feed-row.r4 { animation: feedIn .5s 4.2s var(--ease-out) forwards; }
  @keyframes feedIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
  .tm-feed-row .t { color: var(--fg-4); letter-spacing: 0.12em; font-size: 10px; }
  .tm-feed-row .tag { color: var(--brand-400); letter-spacing: 0.14em; font-size: 10px; }
  .tm-feed-row .msg { color: var(--fg-2); letter-spacing: 0.01em; }
  .tm-feed-row .conf { color: var(--fg-4); font-size: 10px; letter-spacing: 0.14em; }
  .tm-feed-row .conf .v { color: var(--brand-400); }

  /* ── HERO INDEX RAIL ──────────────────────────────────────── */
  .hero-index {
    position: relative; max-width: 1240px; margin: 80px auto 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; padding-top: 32px;
    border-top: 1px solid var(--line);
    opacity: 0; animation: heroFade .7s .7s var(--ease-out) both;
  }
  @media (max-width: 760px) { .hero-index { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }
  .hero-index-item { padding: 0 8px; }
  .hero-index-tag {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-4);
    margin-bottom: 8px;
  }
  .hero-index-val {
    font-family: var(--font-display); font-weight: 700;
    font-size: 26px; letter-spacing: -0.03em; color: var(--fg-1); line-height: 1.1;
  }
  .hero-index-val .accent { color: var(--brand-400); }
  .hero-index-hint { font-size: 12px; color: var(--fg-3); margin-top: 4px; }

  /* ── DOCTRINE ─────────────────────────────────────────────── */
  .doctrine {
    position: relative; padding: 140px 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--surface-1) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .doctrine-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
  @media (max-width: 900px) { .doctrine-inner { grid-template-columns: 1fr; gap: 40px; } }
  .doctrine h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
    color: var(--fg-1); margin-top: 20px;
  }
  .doctrine h2 .accent { color: var(--brand-400); }
  .doctrine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  @media (max-width: 640px) { .doctrine-cols { grid-template-columns: 1fr; gap: 32px; } }
  .doctrine-col-label {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-4);
    padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
  }
  .doctrine-col p {
    font-size: 15px; line-height: 1.65; color: var(--fg-2);
    text-wrap: pretty;
  }
  .doctrine-col p strong { color: var(--fg-1); font-weight: 500; }
  .doctrine-col p + p { margin-top: 14px; }
  .doctrine-col .accent { color: var(--brand-400); }

  /* ── FUSION ───────────────────────────────────────────────── */
  .fusion { padding: 140px 0; position: relative; }
  .fusion .section-head { margin-bottom: 64px; max-width: 720px; }
  .fusion .section-head .eyebrow { margin-bottom: 20px; }
  .fusion h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
    color: var(--fg-1); margin-bottom: 20px;
  }
  .fusion h2 .accent { color: var(--brand-400); }
  .fusion .section-head p { font-size: 16px; color: var(--fg-2); line-height: 1.6; max-width: 56ch; }

  .fusion-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  }
  @media (max-width: 900px) { .fusion-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .fusion-grid { grid-template-columns: 1fr; } }
  .fusion-cell {
    background: var(--surface-2); padding: 28px 24px 32px;
    display: flex; flex-direction: column; gap: 12px;
    position: relative; transition: background 250ms var(--ease-out);
  }
  .fusion-cell:hover { background: var(--surface-3); }
  .fusion-cell-tag {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.22em; color: var(--brand-400);
  }
  .fusion-cell-name {
    font-family: var(--font-display); font-size: 17px; font-weight: 700;
    color: var(--fg-1); letter-spacing: -0.01em;
  }
  .fusion-cell-desc {
    font-size: 13px; color: var(--fg-3); line-height: 1.55; margin-top: -2px;
  }
  .fusion-cell-icon { width: 28px; height: 28px; opacity: 0.85; }
  .fusion-cell-icon svg { width: 100%; height: 100%; stroke: var(--brand-400); fill: none; stroke-width: 1.4; }

  .fusion-footer {
    margin-top: 28px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
    color: var(--fg-4); text-transform: uppercase;
  }
  .fusion-footer .arrow { color: var(--brand-400); }
  .fusion-footer .strong { color: var(--fg-1); }

  /* ── INSTRUMENTS ──────────────────────────────────────────── */
  .instruments {
    padding: 140px 0; background: var(--surface-1);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative;
  }
  .instruments::before {
    content:''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0/72px 72px,
      linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0/72px 72px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 80%);
  }
  .instruments .section-head {
    position: relative; margin-bottom: 64px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  }
  @media (max-width: 900px) { .instruments .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; } }
  .instruments h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
    color: var(--fg-1); margin-top: 20px;
  }
  .instruments h2 .accent { color: var(--brand-400); }
  .instruments .section-head p { color: var(--fg-2); font-size: 16px; line-height: 1.6; max-width: 52ch; }

  .instrument-row {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  }
  @media (max-width: 900px) { .instrument-row { grid-template-columns: 1fr; } }
  .instrument {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 14px; padding: 36px 36px 32px;
    display: flex; flex-direction: column; gap: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.45);
    position: relative; overflow: hidden;
    transition: transform 250ms var(--ease-out), border-color 250ms;
  }
  .instrument:hover { transform: translateY(-3px); border-color: var(--line-strong); }
  .instrument::after {
    content:''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-bd), transparent);
    opacity: 0; transition: opacity 250ms;
  }
  .instrument:hover::after { opacity: 1; }
  .instrument-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
    padding-bottom: 22px; border-bottom: 1px solid var(--line-soft);
  }
  .instrument-mark {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--bg-obsidian);
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .instrument-mark svg { width: 30px; height: 30px; }
  .instrument-id {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.22em; color: var(--fg-4); text-transform: uppercase;
    margin-bottom: 4px;
  }
  .instrument-name {
    font-family: var(--font-display); font-weight: 700; font-size: 24px;
    letter-spacing: 0.06em; color: var(--fg-1);
  }
  .instrument-status {
    margin-left: auto; padding: 5px 12px; border-radius: 999px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.16em; text-transform: uppercase;
    border: 1px solid var(--brand-bd); background: var(--brand-bg); color: var(--brand-400);
    display: inline-flex; align-items: center; gap: 7px;
  }
  .instrument-status::before {
    content:''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-400); animation: pulse-dot 1.8s infinite;
  }
  .instrument-status.cohort {
    border-color: var(--line-strong); background: rgba(255,255,255,0.04); color: var(--fg-2);
  }
  .instrument-status.cohort::before { background: var(--warn); animation: none; }

  .instrument-tagline {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.025em;
    color: var(--fg-1); margin-bottom: 14px; text-wrap: balance;
  }
  .instrument-tagline .accent { color: var(--brand-400); }
  .instrument-desc { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin-bottom: 24px; max-width: 44ch; }

  .instrument-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-bottom: 28px;
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  }
  .instrument-stat { padding: 16px 0; padding-right: 16px; border-right: 1px solid var(--line-soft); }
  .instrument-stat:last-child { border-right: none; padding-right: 0; padding-left: 16px; }
  .instrument-stat:nth-child(2) { padding-left: 16px; }
  .instrument-stat-v {
    font-family: var(--font-display); font-weight: 700;
    font-size: 22px; letter-spacing: -0.02em; color: var(--fg-1); line-height: 1;
  }
  .instrument-stat-v .accent { color: var(--brand-400); }
  .instrument-stat-l {
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--fg-4); letter-spacing: 0.16em; text-transform: uppercase;
    margin-top: 6px;
  }

  .instrument-foot { margin-top: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .instrument-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
    color: var(--fg-1); padding-bottom: 2px;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 200ms, color 200ms;
  }
  .instrument-link:hover { border-bottom-color: var(--brand-400); color: var(--brand-400); }
  .instrument-link svg { width: 12px; height: 12px; transition: transform 200ms; }
  .instrument-link:hover svg { transform: translateX(4px); }

  .instrument-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .instrument-tag {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--fg-3);
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px;
  }

  /* ── PRINCIPLES ───────────────────────────────────────────── */
  .principles { padding: 140px 0; position: relative; }
  .principles-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin-top: 56px;
  }
  @media (max-width: 900px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .principles-grid { grid-template-columns: 1fr; } }
  .principle { padding: 40px 24px; border-right: 1px solid var(--line); position: relative; }
  .principle:last-child { border-right: none; }
  @media (max-width: 900px) {
    .principle:nth-child(2n) { border-right: none; }
    .principle { border-bottom: 1px solid var(--line); }
    .principle:nth-last-child(-n+2) { border-bottom: none; }
  }
  @media (max-width: 520px) {
    .principle { border-right: none; border-bottom: 1px solid var(--line); }
    .principle:last-child { border-bottom: none; }
  }
  .principle::before {
    content:''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--brand-500);
    transform: scaleX(0); transform-origin: left;
    transition: transform 350ms var(--ease-out);
  }
  .principle:hover::before { transform: scaleX(1); }
  .principle-num {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; color: var(--brand-400); margin-bottom: 18px;
  }
  .principle-name {
    font-family: var(--font-display); font-weight: 700; font-size: 22px;
    letter-spacing: -0.02em; color: var(--fg-1); margin-bottom: 12px;
  }
  .principle-desc { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }

  /* ── SOVEREIGNTY ──────────────────────────────────────────── */
  .sovereignty {
    padding: 140px 0; background: var(--surface-1);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden;
  }
  .sovereignty::before {
    content:''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/72px 72px,
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/72px 72px;
    mask-image: radial-gradient(ellipse 50% 60% at 30% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 30% 50%, black 20%, transparent 80%);
  }
  .sovereignty-inner {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  }
  @media (max-width: 900px) { .sovereignty-inner { grid-template-columns: 1fr; gap: 56px; } }
  .sovereignty h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
    color: var(--fg-1); margin-top: 20px;
  }
  .sovereignty h2 .accent { color: var(--brand-400); }
  .sovereignty-lead { font-size: 16px; color: var(--fg-2); line-height: 1.65; margin-top: 20px; max-width: 48ch; }

  .sovereignty-list { display: flex; flex-direction: column; }
  .sov-item {
    display: grid; grid-template-columns: 80px 1fr;
    gap: 24px; padding: 24px 0;
    border-bottom: 1px solid var(--line); align-items: start;
  }
  .sov-item:first-child { padding-top: 0; }
  .sov-item:last-child { border-bottom: none; padding-bottom: 0; }
  .sov-item-id {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; color: var(--brand-400); padding-top: 3px;
  }
  .sov-item-name {
    font-family: var(--font-display); font-weight: 700; font-size: 17px;
    color: var(--fg-1); margin-bottom: 6px; letter-spacing: -0.01em;
  }
  .sov-item-desc { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }

  /* ── BRIEF / CTA ──────────────────────────────────────────── */
  .brief { padding: 140px 0; position: relative; overflow: hidden; }
  .brief::before {
    content:''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(188, 24, 35,0.18) 0%, transparent 70%);
  }
  .brief-inner { position: relative; text-align: center; }
  .brief h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em;
    color: var(--fg-1); margin: 24px 0 28px; text-wrap: balance;
  }
  .brief h2 .accent { color: var(--brand-400); }
  .brief p { font-size: 17px; color: var(--fg-2); max-width: 56ch; margin: 0 auto 44px; line-height: 1.6; }

  .brief-card {
    display: inline-grid; grid-template-columns: 1fr 1px 1fr; gap: 0;
    text-align: left;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px; margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
  }
  @media (max-width: 640px) {
    .brief-card { grid-template-columns: 1fr; }
    .brief-card-sep { display: none; }
  }
  .brief-card-cell { padding: 24px 32px; }
  .brief-card-sep { background: var(--line); }
  .brief-card-l {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 8px;
  }
  .brief-card-v {
    font-family: var(--font-mono); font-size: 15px;
    color: var(--brand-400); letter-spacing: 0.02em;
  }

  .brief-meta {
    display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-4);
  }
  .brief-meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }
  .brief-meta-sep { width: 1px; height: 12px; background: var(--line); }

  /* ── FOOTER ───────────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--line); padding: 56px 0 32px;
    background: var(--bg-obsidian);
  }
  .footer-grid {
    max-width: 1240px; margin: 0 auto; padding: 0 32px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
    align-items: start;
  }
  @media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
  }
  .footer-brand { display: flex; flex-direction: column; gap: 20px; }
  .footer-brand-row { display: flex; align-items: center; gap: 14px; }
  .footer-brand-logo { width: 32px; height: 32px; }
  .footer-brand-logo svg { width: 100%; height: 100%; display: block; }
  .footer-brand-word { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.32em; color: var(--fg-1); }
  .footer-brand-tag { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; max-width: 32ch; }

  .footer-col-label {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-4);
    margin-bottom: 18px;
  }
  .footer-col-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
  .footer-col-list a { font-size: 13.5px; color: var(--fg-2); transition: color 150ms; }
  .footer-col-list a:hover { color: var(--fg-1); }

  .footer-bottom {
    max-width: 1240px; margin: 48px auto 0; padding: 24px 32px 0;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-4);
  }
  .footer-bottom-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .footer-bottom-l .sep { width: 1px; height: 10px; background: var(--line); }
  .footer-bottom-l .v   { color: var(--fg-3); }

  /* ── ANIMATIONS ───────────────────────────────────────────── */
  @keyframes heroFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(188, 24, 35,0.45); }
    70% { box-shadow: 0 0 0 9px rgba(188, 24, 35,0); }
    100% { box-shadow: 0 0 0 0 rgba(188, 24, 35,0); }
  }
  @keyframes strikeIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: translateY(0); }
