/* ==========================================================================
   THEME TOKENS
   --------------------------------------------------------------------------
   Dark is the base. Every value in :root is byte-for-byte what this site
   shipped before light mode existed, so the dark theme cannot regress and a
   visitor who never touches the toggle sees exactly what they saw yesterday.

   Light is applied in two places, and they must stay identical:
     @media (prefers-color-scheme: light) :root:not([data-theme="dark"])
     :root[data-theme="light"]
   The first follows the OS. The second is the explicit toggle, which has to
   win even when the OS disagrees. Plain CSS cannot share one block between a
   media query and an attribute selector, so both are generated from a single
   table and scripts/verify-site.sh fails if they ever drift apart.

   Two rules worth knowing before adding a colour:

   1. --lift-* are overlays that raise a surface off its ground. They are
      white-on-dark and black-on-light. Never write rgba(255,255,255,.0x)
      directly; on a light ground it does nothing at all.
   2. --cyan is for borders and fills (>=3:1), --cyan-ink is for text (>=4.5:1).
      The brand neon #00f2fe measures 1.39:1 on white, so light mode cannot use
      one cyan for both jobs.
   ========================================================================== */

:root {
  /* SURFACES */
  --bg: #0d1117;
  --panel: rgba(22, 27, 34, 0.75);
  --panel-solid: #161b22;
  --well: #04060a;
  --well-deep: #020305;
  --well-mid: #03060a;
  --well-glass: rgba(6, 10, 18, 0.75);
  --well-solid: rgba(8, 12, 20, 0.9);
  --well-frost: rgba(10, 15, 25, 0.95);
  --veil: rgba(4, 6, 10, 0.45);
  --panel-deep: rgba(22, 27, 34, 0.8);
  /* TEXT */
  --text: #c9d1d9;
  --muted: #8b949e;
  --quiet: #8f9aa8;
  --faint: #a1a8b9;
  --on-accent: #05070c;
  --on-fill: #ffffff;
  --text-max: #ffffff;
  --text-soft: #e2e8f0;
  --text-dim: #efefef;
  /* LINES */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  /* LIFT */
  --lift-007: rgba(255, 255, 255, 0.007);
  --lift-01: rgba(255, 255, 255, 0.01);
  --lift-015: rgba(255, 255, 255, 0.015);
  --lift-02: rgba(255, 255, 255, 0.02);
  --lift-03: rgba(255, 255, 255, 0.03);
  --lift-04: rgba(255, 255, 255, 0.04);
  --lift-05: rgba(255, 255, 255, 0.05);
  --lift-06: rgba(255, 255, 255, 0.06);
  --lift-08: rgba(255, 255, 255, 0.08);
  --lift-10: rgba(255, 255, 255, 0.1);
  --lift-15: rgba(255, 255, 255, 0.15);
  /* SHADOW */
  --shadow-02: rgba(0, 0, 0, 0.2);
  --shadow-025: rgba(0, 0, 0, 0.25);
  --shadow-03: rgba(0, 0, 0, 0.3);
  --shadow-04: rgba(0, 0, 0, 0.4);
  --shadow-05: rgba(0, 0, 0, 0.5);
  --shadow-06: rgba(0, 0, 0, 0.6);
  --shadow-08: rgba(0, 0, 0, 0.8);
  --scrim: rgba(0, 0, 0, 0.8);
  /* BRAND */
  --cyan: #00f2fe;
  --cyan-ink: #00f2fe;
  --cyan-bright: #2bf6ff;
  --cyan-deep: #00d6f2;
  --teal: #00b8d4;
  --accent-fill: #00f2fe;
  --accent-fill-from: #00b8d4;
  --accent-fill-to: #00f2fe;
  --success: #00ffaa;
  /* STATUS */
  --orange: #ff9f0a;
  --green: #30d158;
  --blue: #0a84ff;
  --purple: #bf5af2;
  --violet: #a259ff;
  --red: #ff453a;
  --coral: #ff7b72;
  --yellow: #ffd60a;
  --mint: #00c7be;
  --pink: #ff69b4;
  --gray: #8e8e93;
  --scarlet: #ff3b30;
  --alert: #ff0000;
  --accent-magenta: #ff007f;
  --error-body: #f87171;
  --error-subtitle: #fca5a5;
  --tl-red: #ef4444;
  --tl-yellow: #eab308;
  --tl-green: #22c55e;
  /* SYNTAX */
  --syn-keyword: #ff7b72;
  --syn-string: #a5d6ff;
  --syn-type: #79c0ff;
  --syn-comment: #8b949e;
  --syn-number: #d2a8ff;
  --syn-amber: #ffb86c;
  --syn-lime: #50fa7b;
  --syn-jade: #a7f3d0;
  /* alpha ramps */
  --cyan-a0: rgba(0, 242, 254, 0);
  --cyan-a005: rgba(0, 242, 254, 0.005);
  --cyan-a015: rgba(0, 242, 254, 0.015);
  --cyan-a02: rgba(0, 242, 254, 0.02);
  --cyan-a03: rgba(0, 242, 254, 0.03);
  --cyan-a05: rgba(0, 242, 254, 0.05);
  --cyan-a08: rgba(0, 242, 254, 0.08);
  --cyan-a1: rgba(0, 242, 254, 0.1);
  --cyan-a12: rgba(0, 242, 254, 0.12);
  --cyan-a15: rgba(0, 242, 254, 0.15);
  --cyan-a18: rgba(0, 242, 254, 0.18);
  --cyan-a2: rgba(0, 242, 254, 0.2);
  --cyan-a24: rgba(0, 242, 254, 0.24);
  --cyan-a25: rgba(0, 242, 254, 0.25);
  --cyan-a3: rgba(0, 242, 254, 0.3);
  --cyan-a35: rgba(0, 242, 254, 0.35);
  --cyan-a4: rgba(0, 242, 254, 0.4);
  --cyan-a5: rgba(0, 242, 254, 0.5);
  --cyan-a7: rgba(0, 242, 254, 0.7);
  --teal-a12: rgba(0, 184, 212, 0.12);
  --teal-a15: rgba(0, 184, 212, 0.15);
  --sky-a15: rgba(0, 200, 255, 0.15);
  --sky-a25: rgba(0, 200, 255, 0.25);
  --orange-a1: rgba(255, 159, 10, 0.1);
  --orange-a2: rgba(255, 159, 10, 0.2);
  --green-a1: rgba(48, 209, 88, 0.1);
  --blue-a1: rgba(10, 132, 255, 0.1);
  --purple-a1: rgba(191, 90, 242, 0.1);
  --purple-a22: rgba(191, 90, 242, 0.22);
  --violet-a1: rgba(162, 89, 255, 0.1);
  --red-a1: rgba(255, 69, 58, 0.1);
  --yellow-a1: rgba(255, 214, 10, 0.1);
  --mint-a1: rgba(0, 199, 190, 0.1);
  --pink-a1: rgba(255, 105, 180, 0.1);
  --gray-a1: rgba(142, 142, 147, 0.1);
  --muted-a2: rgba(139, 148, 158, 0.2);
  --scarlet-a1: rgba(255, 59, 48, 0.1);
  --success-a02: rgba(0, 255, 170, 0.02);
  --success-a04: rgba(0, 255, 170, 0.04);
  --success-a18: rgba(0, 255, 170, 0.18);
  --success-a35: rgba(0, 255, 170, 0.35);
  --azure-a05: rgba(79, 172, 254, 0.05);
  --magenta-a15: rgba(200, 80, 192, 0.15);
  --magenta-a3: rgba(200, 80, 192, 0.3);
  --mag-a1: rgba(255, 0, 127, 0.1);
  --mag-a15: rgba(255, 0, 127, 0.15);
  --lime-a05: rgba(80, 250, 123, 0.05);
  --lime-a15: rgba(80, 250, 123, 0.15);
  --lime-a3: rgba(80, 250, 123, 0.3);
  --amber-a05: rgba(255, 204, 112, 0.05);
  --alert-a1: rgba(255, 0, 0, 0.1);
  --alert-a2: rgba(255, 0, 0, 0.2);
  --alert-a3: rgba(255, 0, 0, 0.3);
  --alert-a5: rgba(255, 0, 0, 0.5);
  --alert-a6: rgba(255, 0, 0, 0.6);
  --alert-a9: rgba(255, 0, 0, 0.9);

  --glow-cyan: 0 0 16px rgba(0, 242, 254, 0.35);
  --glow-teal: 0 0 16px rgba(0, 184, 212, 0.4);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1200px;
  --scrim-solid: #000;

  /* Alias. Referenced by 6 rules that predate this system and never defined it,
     so they silently inherited. Resolves through --text, so it follows the theme. */
  --fg: var(--text);

  /* Aliases for names 404.html already uses. */
  --bg-panel: var(--panel);
  --text-secondary: var(--muted);
  --glow-magenta: 0 0 12px rgba(255, 0, 127, 0.6);

  /* Tells the browser which native widgets to paint: scrollbars, form controls,
     and the canvas it shows before this stylesheet has parsed. */
  color-scheme: dark;
}

/* Light, following the OS. Excluded when the toggle has pinned dark. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* SURFACES */
    --bg: #fbfcfd;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-solid: #ffffff;
    --well: #f1f4f8;
    --well-deep: #e9eef4;
    --well-mid: #edf1f6;
    --well-glass: rgba(255, 255, 255, 0.82);
    --well-solid: rgba(248, 250, 252, 0.94);
    --well-frost: rgba(250, 251, 253, 0.96);
    --veil: rgba(255, 255, 255, 0.55);
    --panel-deep: rgba(236, 241, 246, 0.85);
    /* TEXT */
    --text: #1c2128;
    --muted: #57606a;
    --quiet: #616a75;
    --faint: #636c77;
    --on-accent: #ffffff;
    --on-fill: #ffffff;
    --text-max: #0b0d11;
    --text-soft: #2c333c;
    --text-dim: #3a424c;
    /* LINES */
    --line: rgba(27, 31, 36, 0.14);
    --line-strong: rgba(27, 31, 36, 0.26);
    /* LIFT */
    --lift-007: rgba(27, 31, 36, 0.012);
    --lift-01: rgba(27, 31, 36, 0.016);
    --lift-015: rgba(27, 31, 36, 0.022);
    --lift-02: rgba(27, 31, 36, 0.03);
    --lift-03: rgba(27, 31, 36, 0.045);
    --lift-04: rgba(27, 31, 36, 0.06);
    --lift-05: rgba(27, 31, 36, 0.07);
    --lift-06: rgba(27, 31, 36, 0.08);
    --lift-08: rgba(27, 31, 36, 0.1);
    --lift-10: rgba(27, 31, 36, 0.12);
    --lift-15: rgba(27, 31, 36, 0.16);
    /* SHADOW */
    --shadow-02: rgba(27, 31, 36, 0.06);
    --shadow-025: rgba(27, 31, 36, 0.07);
    --shadow-03: rgba(27, 31, 36, 0.09);
    --shadow-04: rgba(27, 31, 36, 0.12);
    --shadow-05: rgba(27, 31, 36, 0.14);
    --shadow-06: rgba(27, 31, 36, 0.16);
    --shadow-08: rgba(27, 31, 36, 0.22);
    --scrim: rgba(27, 31, 36, 0.45);
    /* BRAND */
    --cyan: #009fbd;
    --cyan-ink: #005f71;
    --cyan-bright: #00b4d0;
    --cyan-deep: #00819b;
    --teal: #00768c;
    --accent-fill: #00697d;
    --accent-fill-from: #00768c;
    --accent-fill-to: #005f71;
    --success: #0c7650;
    /* STATUS */
    --orange: #8a5c00;
    --green: 22, 111, 47;
    --blue: 10, 92, 184;
    --purple: 117, 57, 196;
    --violet: 109, 40, 217;
    --red: #cf222e;
    --coral: #c4342a;
    --yellow: #7d6300;
    --mint: #00786f;
    --pink: #bf2c7d;
    --gray: #5f666e;
    --scarlet: #c9251b;
    --alert: #ff0000;
    --accent-magenta: #c1006a;
    --error-body: #b91c1c;
    --error-subtitle: #991b1b;
    --tl-red: #ef4444;
    --tl-yellow: #eab308;
    --tl-green: #22c55e;
    /* SYNTAX */
    --syn-keyword: #cf222e;
    --syn-string: #0a3069;
    --syn-type: #0550ae;
    --syn-comment: #6e7781;
    --syn-number: #7539c4;
    --syn-amber: #8a5a00;
    --syn-lime: #177a3a;
    --syn-jade: #0f6b4a;
    /* alpha ramps */
    --cyan-a0: rgba(0, 159, 189, 0);
    --cyan-a005: rgba(0, 159, 189, 0.005);
    --cyan-a015: rgba(0, 159, 189, 0.015);
    --cyan-a02: rgba(0, 159, 189, 0.02);
    --cyan-a03: rgba(0, 159, 189, 0.03);
    --cyan-a05: rgba(0, 159, 189, 0.05);
    --cyan-a08: rgba(0, 159, 189, 0.08);
    --cyan-a1: rgba(0, 159, 189, 0.1);
    --cyan-a12: rgba(0, 159, 189, 0.12);
    --cyan-a15: rgba(0, 159, 189, 0.15);
    --cyan-a18: rgba(0, 159, 189, 0.18);
    --cyan-a2: rgba(0, 159, 189, 0.2);
    --cyan-a24: rgba(0, 159, 189, 0.24);
    --cyan-a25: rgba(0, 159, 189, 0.25);
    --cyan-a3: rgba(0, 159, 189, 0.3);
    --cyan-a35: rgba(0, 159, 189, 0.35);
    --cyan-a4: rgba(0, 159, 189, 0.4);
    --cyan-a5: rgba(0, 159, 189, 0.5);
    --cyan-a7: rgba(0, 159, 189, 0.7);
    --teal-a12: rgba(0, 118, 140, 0.12);
    --teal-a15: rgba(0, 118, 140, 0.15);
    --sky-a15: rgba(0, 125, 160, 0.15);
    --sky-a25: rgba(0, 125, 160, 0.25);
    --orange-a1: rgba(138, 92, 0, 0.1);
    --orange-a2: rgba(138, 92, 0, 0.2);
    --green-a1: rgba(26, 127, 55, 0.1);
    --blue-a1: rgba(9, 105, 218, 0.1);
    --purple-a1: rgba(130, 80, 223, 0.1);
    --purple-a22: rgba(130, 80, 223, 0.22);
    --violet-a1: rgba(124, 58, 237, 0.1);
    --red-a1: rgba(207, 34, 46, 0.1);
    --yellow-a1: rgba(125, 99, 0, 0.1);
    --mint-a1: rgba(0, 120, 111, 0.1);
    --pink-a1: rgba(191, 44, 125, 0.1);
    --gray-a1: rgba(95, 102, 110, 0.1);
    --muted-a2: rgba(87, 96, 106, 0.2);
    --scarlet-a1: rgba(201, 37, 27, 0.1);
    --success-a02: rgba(12, 118, 80, 0.02);
    --success-a04: rgba(12, 118, 80, 0.04);
    --success-a18: rgba(12, 118, 80, 0.18);
    --success-a35: rgba(12, 118, 80, 0.35);
    --azure-a05: rgba(37, 110, 190, 0.05);
    --magenta-a15: rgba(155, 45, 148, 0.15);
    --magenta-a3: rgba(155, 45, 148, 0.3);
    --mag-a1: rgba(193, 0, 106, 0.1);
    --mag-a15: rgba(193, 0, 106, 0.15);
    --lime-a05: rgba(23, 122, 58, 0.05);
    --lime-a15: rgba(23, 122, 58, 0.15);
    --lime-a3: rgba(23, 122, 58, 0.3);
    --amber-a05: rgba(138, 90, 0, 0.05);
    --alert-a1: rgba(200, 0, 0, 0.1);
    --alert-a2: rgba(200, 0, 0, 0.2);
    --alert-a3: rgba(200, 0, 0, 0.3);
    --alert-a5: rgba(200, 0, 0, 0.5);
    --alert-a6: rgba(200, 0, 0, 0.6);
    --alert-a9: rgba(200, 0, 0, 0.9);

    --glow-cyan: 0 0 16px rgba(0, 159, 189, 0.22);
    --glow-teal: 0 0 16px rgba(0, 118, 140, 0.22);
    --scrim-solid: #1c2128;
    --glow-magenta: 0 0 12px rgba(193, 0, 106, 0.28);
    color-scheme: light;
  }
}

/* Light, chosen explicitly. Must also win when the OS asks for dark. */
:root[data-theme="light"] {
  /* SURFACES */
  --bg: #fbfcfd;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --well: #f1f4f8;
  --well-deep: #e9eef4;
  --well-mid: #edf1f6;
  --well-glass: rgba(255, 255, 255, 0.82);
  --well-solid: rgba(248, 250, 252, 0.94);
  --well-frost: rgba(250, 251, 253, 0.96);
  --veil: rgba(255, 255, 255, 0.55);
  --panel-deep: rgba(236, 241, 246, 0.85);
  /* TEXT */
  --text: #1c2128;
  --muted: #57606a;
  --quiet: #616a75;
  --faint: #636c77;
  --on-accent: #ffffff;
  --on-fill: #ffffff;
  --text-max: #0b0d11;
  --text-soft: #2c333c;
  --text-dim: #3a424c;
  /* LINES */
  --line: rgba(27, 31, 36, 0.14);
  --line-strong: rgba(27, 31, 36, 0.26);
  /* LIFT */
  --lift-007: rgba(27, 31, 36, 0.012);
  --lift-01: rgba(27, 31, 36, 0.016);
  --lift-015: rgba(27, 31, 36, 0.022);
  --lift-02: rgba(27, 31, 36, 0.03);
  --lift-03: rgba(27, 31, 36, 0.045);
  --lift-04: rgba(27, 31, 36, 0.06);
  --lift-05: rgba(27, 31, 36, 0.07);
  --lift-06: rgba(27, 31, 36, 0.08);
  --lift-08: rgba(27, 31, 36, 0.1);
  --lift-10: rgba(27, 31, 36, 0.12);
  --lift-15: rgba(27, 31, 36, 0.16);
  /* SHADOW */
  --shadow-02: rgba(27, 31, 36, 0.06);
  --shadow-025: rgba(27, 31, 36, 0.07);
  --shadow-03: rgba(27, 31, 36, 0.09);
  --shadow-04: rgba(27, 31, 36, 0.12);
  --shadow-05: rgba(27, 31, 36, 0.14);
  --shadow-06: rgba(27, 31, 36, 0.16);
  --shadow-08: rgba(27, 31, 36, 0.22);
  --scrim: rgba(27, 31, 36, 0.45);
  /* BRAND */
  --cyan: #009fbd;
  --cyan-ink: #005f71;
  --cyan-bright: #00b4d0;
  --cyan-deep: #00819b;
  --teal: #00768c;
  --accent-fill: #00697d;
  --accent-fill-from: #00768c;
  --accent-fill-to: #005f71;
  --success: #0c7650;
  /* STATUS */
  --orange: #8a5c00;
  --green: 22, 111, 47;
  --blue: 10, 92, 184;
  --purple: 117, 57, 196;
  --violet: 109, 40, 217;
  --red: #cf222e;
  --coral: #c4342a;
  --yellow: #7d6300;
  --mint: #00786f;
  --pink: #bf2c7d;
  --gray: #5f666e;
  --scarlet: #c9251b;
  --alert: #ff0000;
  --accent-magenta: #c1006a;
  --error-body: #b91c1c;
  --error-subtitle: #991b1b;
  --tl-red: #ef4444;
  --tl-yellow: #eab308;
  --tl-green: #22c55e;
  /* SYNTAX */
  --syn-keyword: #cf222e;
  --syn-string: #0a3069;
  --syn-type: #0550ae;
  --syn-comment: #6e7781;
  --syn-number: #7539c4;
  --syn-amber: #8a5a00;
  --syn-lime: #177a3a;
  --syn-jade: #0f6b4a;
  /* alpha ramps */
  --cyan-a0: rgba(0, 159, 189, 0);
  --cyan-a005: rgba(0, 159, 189, 0.005);
  --cyan-a015: rgba(0, 159, 189, 0.015);
  --cyan-a02: rgba(0, 159, 189, 0.02);
  --cyan-a03: rgba(0, 159, 189, 0.03);
  --cyan-a05: rgba(0, 159, 189, 0.05);
  --cyan-a08: rgba(0, 159, 189, 0.08);
  --cyan-a1: rgba(0, 159, 189, 0.1);
  --cyan-a12: rgba(0, 159, 189, 0.12);
  --cyan-a15: rgba(0, 159, 189, 0.15);
  --cyan-a18: rgba(0, 159, 189, 0.18);
  --cyan-a2: rgba(0, 159, 189, 0.2);
  --cyan-a24: rgba(0, 159, 189, 0.24);
  --cyan-a25: rgba(0, 159, 189, 0.25);
  --cyan-a3: rgba(0, 159, 189, 0.3);
  --cyan-a35: rgba(0, 159, 189, 0.35);
  --cyan-a4: rgba(0, 159, 189, 0.4);
  --cyan-a5: rgba(0, 159, 189, 0.5);
  --cyan-a7: rgba(0, 159, 189, 0.7);
  --teal-a12: rgba(0, 118, 140, 0.12);
  --teal-a15: rgba(0, 118, 140, 0.15);
  --sky-a15: rgba(0, 125, 160, 0.15);
  --sky-a25: rgba(0, 125, 160, 0.25);
  --orange-a1: rgba(138, 92, 0, 0.1);
  --orange-a2: rgba(138, 92, 0, 0.2);
  --green-a1: rgba(26, 127, 55, 0.1);
  --blue-a1: rgba(9, 105, 218, 0.1);
  --purple-a1: rgba(130, 80, 223, 0.1);
  --purple-a22: rgba(130, 80, 223, 0.22);
  --violet-a1: rgba(124, 58, 237, 0.1);
  --red-a1: rgba(207, 34, 46, 0.1);
  --yellow-a1: rgba(125, 99, 0, 0.1);
  --mint-a1: rgba(0, 120, 111, 0.1);
  --pink-a1: rgba(191, 44, 125, 0.1);
  --gray-a1: rgba(95, 102, 110, 0.1);
  --muted-a2: rgba(87, 96, 106, 0.2);
  --scarlet-a1: rgba(201, 37, 27, 0.1);
  --success-a02: rgba(12, 118, 80, 0.02);
  --success-a04: rgba(12, 118, 80, 0.04);
  --success-a18: rgba(12, 118, 80, 0.18);
  --success-a35: rgba(12, 118, 80, 0.35);
  --azure-a05: rgba(37, 110, 190, 0.05);
  --magenta-a15: rgba(155, 45, 148, 0.15);
  --magenta-a3: rgba(155, 45, 148, 0.3);
  --mag-a1: rgba(193, 0, 106, 0.1);
  --mag-a15: rgba(193, 0, 106, 0.15);
  --lime-a05: rgba(23, 122, 58, 0.05);
  --lime-a15: rgba(23, 122, 58, 0.15);
  --lime-a3: rgba(23, 122, 58, 0.3);
  --amber-a05: rgba(138, 90, 0, 0.05);
  --alert-a1: rgba(200, 0, 0, 0.1);
  --alert-a2: rgba(200, 0, 0, 0.2);
  --alert-a3: rgba(200, 0, 0, 0.3);
  --alert-a5: rgba(200, 0, 0, 0.5);
  --alert-a6: rgba(200, 0, 0, 0.6);
  --alert-a9: rgba(200, 0, 0, 0.9);

  --glow-cyan: 0 0 16px rgba(0, 159, 189, 0.22);
  --glow-teal: 0 0 16px rgba(0, 118, 140, 0.22);
  --scrim-solid: #1c2128;
  --glow-magenta: 0 0 12px rgba(193, 0, 106, 0.28);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(var(--cyan-a015) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-a015) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, var(--cyan-a18), transparent 45rem),
    radial-gradient(circle at 15% 45%, var(--teal-a12), transparent 38rem),
    radial-gradient(circle at 50% 80%, var(--panel-deep), transparent 50rem),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto, auto;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link {
  position: absolute;
  left: 1.5rem;
  top: -100px;
  z-index: 10000;
  background: var(--accent-fill);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: var(--glow-cyan);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1.5rem;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-glyph-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--sky-a15), 0 0 0 1px var(--lift-05);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.brand-glyph-image:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 24px var(--sky-a25), 0 0 0 1px var(--line);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-max) 60%, var(--cyan-ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy span,
.eyebrow,
.site-nav,
.button,
.product-index,
.product-cta,
.site-role,
.status-rail,
.site-footer,
.debugger-step-badge,
.console-header,
.console-body,
.console-btn,
.metric-value,
.metric-label,
.tech-tag {
  font-family: var(--font-mono);
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.8rem;
}

.site-nav a {
  border: 1px solid transparent;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan-ink);
  border-color: var(--line-strong);
  background: var(--cyan-a05);
}

/* Hero Section */
.hero-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 5rem 0 3rem;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--cyan-ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-shadow: 0 0 8px var(--cyan-a3);
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-max) 40%, var(--cyan-ink) 75%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  color: var(--text-soft);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  margin-bottom: 2rem;
}

.hero-action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-fill-from) 0%, var(--accent-fill-to) 100%);
  color: var(--on-accent);
  border-color: var(--cyan-ink);
  box-shadow: var(--glow-teal);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--cyan-bright) 100%);
  box-shadow: 0 0 20px var(--cyan-a5);
  transform: translateY(-2px);
}

.button-secondary {
  background: var(--lift-03);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--lift-08);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* Interactive Playground/Debugger Widget */
.playground-section {
  padding: 2rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.playground-container {
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 50px var(--shadow-05), inset 0 1px 1px var(--lift-08);
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.playground-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.playground-title span:first-child {
  font-size: 0.85rem;
  color: var(--cyan-ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.playground-title span:last-child {
  font-size: 0.68rem;
  color: var(--quiet);
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.segmented-control {
  display: inline-flex;
  background: var(--lift-03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  box-shadow: inset 0 2px 4px var(--shadow-02);
}

.segment {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: inherit;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment:hover {
  color: var(--text);
}

.segment.active {
  background: var(--line);
  color: var(--text-max);
  box-shadow: 0 1px 3px var(--shadow-03), inset 0 0 0 1px var(--lift-05);
}

#strategy-control .segment.active {
  background: linear-gradient(180deg, var(--cyan-a15) 0%, var(--azure-a05) 100%);
  color: var(--cyan-ink);
  box-shadow: 0 1px 3px var(--shadow-03), inset 0 0 0 1px var(--cyan-a3);
}

#target-control .segment.active {
  background: linear-gradient(180deg, var(--magenta-a15) 0%, var(--amber-a05) 100%);
  color: var(--syn-amber);
  box-shadow: 0 1px 3px var(--shadow-03), inset 0 0 0 1px var(--magenta-a3);
}

.ingestion-group {
  justify-content: flex-end;
  align-items: flex-end;
  flex: 1;
}

.segment.standalone {
  background: var(--lift-03);
  border: 1px solid var(--line);
  box-shadow: none;
}
.segment.standalone:hover {
  background: var(--lift-08);
  border-color: var(--line-strong);
}
.segment.standalone.active {
  background: linear-gradient(180deg, var(--lime-a15) 0%, var(--lime-a05) 100%);
  color: var(--syn-lime);
  border-color: var(--lime-a3);
}

/* Debugger Progress Bar Layout */
.debugger-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.debugger-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: width 0.3s ease;
  box-shadow: var(--glow-cyan);
}

/* Widescreen SVG Diagram Workspace */
.diagram-canvas-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--well-mid);
  background-image: 
    linear-gradient(var(--lift-007) 1px, transparent 1px),
    linear-gradient(90deg, var(--lift-007) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--cyan-a02) 0%, transparent 80%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  box-shadow: inset 0 20px 40px var(--shadow-05);
}

.diagram-canvas-wrapper::-webkit-scrollbar {
  height: 6px;
}
.diagram-canvas-wrapper::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}

.diagram-workspace {
  position: relative;
  width: 1260px;
  height: 650px;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.diagram-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  stroke: var(--lift-04);
  stroke-width: 1.5px;
  fill: none;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.connection-line.active {
  stroke: var(--cyan);
  stroke-width: 2.5px;
  stroke-dasharray: 6 12;
  animation: flow-beam 1s linear infinite;
  filter: drop-shadow(0 0 3px var(--cyan));
}

.connection-line.done {
  stroke: var(--success-a35);
  stroke-width: 1.5px;
}

@keyframes flow-beam {
  to {
    stroke-dashoffset: -18;
  }
}

.diagram-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border-right: 1px dashed var(--lift-03);
  padding-right: 0.75rem;
  background: linear-gradient(180deg, var(--cyan-a005) 0%, transparent 100%);
}

.diagram-stage:last-child {
  border-right: none;
  padding-right: 0;
  background: none;
}

.stage-title {
  font-size: 0.62rem;
  color: var(--teal);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: left;
  background: var(--lift-01);
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.stage-nodes {
  position: relative;
  flex-grow: 1;
  height: calc(100% - 35px);
}

.diagram-node {
  position: absolute;
  width: 145px;
  height: 38px;
  padding: 0 0.75rem;
  background: var(--well-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--lift-06);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  user-select: none;
  box-shadow: 0 4px 12px var(--shadow-04);
}

.diagram-node:hover {
  border-color: var(--cyan-a4);
  color: var(--text-max);
  background: var(--cyan-a03);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 15px var(--cyan-a08);
}

.diagram-node.active {
  border-color: var(--cyan-ink);
  color: var(--text-max);
  background: var(--cyan-a12);
  box-shadow: 0 0 20px var(--cyan-a25), inset 0 0 8px var(--cyan-a1);
  text-shadow: 0 0 4px var(--cyan-a4);
}

.diagram-node.done {
  border-color: var(--success-a35);
  color: var(--text-max);
  background: var(--success-a02);
  box-shadow: 0 0 10px var(--success-a04);
}

.diagram-node.selected {
  border-color: var(--text-max);
  box-shadow: 0 0 15px var(--lift-15);
  background: var(--lift-04);
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lift-15);
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.diagram-node.active .node-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.5s infinite;
}

.diagram-node.done .node-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--cyan-a7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--cyan-a0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--cyan-a0);
  }
}

/* Widescreen split-pane and controls */
.playground-split-pane {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(400px, 1.8fr);
  gap: 1.5rem;
  align-items: start;
}

.playground-metrics-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--veil);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.pipeline-control-panel {
  display: flex;
  align-items: center;
  /* Without wrap this row is nowrap, and on a phone the label + slider +
     50px .control-val exceed the panel, pushing "800ms" 56px outside its own
     parent and past the viewport edge. Wrapping is a no-op on wide screens. */
  flex-wrap: wrap;
  gap: 0.85rem;
  background: var(--shadow-025);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.control-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.speed-slider {
  flex-grow: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--cyan-ink);
  cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  cursor: pointer;
}

.control-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-ink);
  min-width: 50px;
  text-align: right;
  font-weight: 600;
}

/* Inspector HUD HUD styling */
.inspector-hud {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  box-shadow: inset 0 1px 1px var(--lift-02);
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.hud-step-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--cyan-ink);
  border: 1px solid var(--cyan);
  background: var(--cyan-a08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.hud-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-max);
}

.hud-meta {
  font-size: 0.68rem;
  color: var(--quiet);
  margin-top: -0.2rem;
}

.hud-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.hud-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.hud-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--lift-015);
  border: 1px solid var(--lift-03);
  padding: 0.75rem;
  border-radius: 6px;
}

.hud-section-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--teal-a15);
  padding-bottom: 0.25rem;
}

.section-icon {
  font-size: 0.75rem;
}

@media (max-width: 990px) {
  .hud-content-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.hud-log-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.hud-log-title {
  font-size: 0.62rem;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-log {
  background: var(--well-deep);
  border: 1px solid var(--lift-02);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  white-space: pre-wrap;
  margin: 0;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
}

/* Console log controls and metrics */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.metric-item {
  background: var(--lift-02);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.4rem;
  text-align: center;
}

.metric-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-ink);
}

.metric-label {
  font-size: 0.55rem;
  color: var(--quiet);
  text-transform: uppercase;
  margin-top: 0.1rem;
  letter-spacing: 0.05em;
}

.console-btn {
  background: linear-gradient(135deg, var(--accent-fill-from) 0%, var(--accent-fill-to) 100%);
  color: var(--on-accent);
  border: none;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: var(--glow-teal);
}

.console-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

.console-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Philosophy Section */
.philosophy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.code-panel {
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--well-solid);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 12px 36px var(--shadow-04);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.code-panel pre {
  margin: 0;
  color: var(--syn-jade);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--well);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--cyan-a15);
}

.philosophy-copy h2,
.section-heading h2,
.status-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-max) 60%, var(--cyan-ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.philosophy-copy p,
.section-heading p,
.status-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.philosophy-copy p:last-child {
  margin-bottom: 0;
}

/* Systems Section */
.systems-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.section-heading.compact {
  max-width: 640px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  min-height: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px var(--lift-05);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-a08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-a35);
  box-shadow: 0 16px 36px var(--cyan-a08), inset 0 1px 1px var(--line);
}

.product-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-03);
  transition: transform 0.3s ease;
}

.product-card:hover .product-icon-img {
  transform: scale(1.08) rotate(3deg);
}

.product-index {
  color: var(--cyan-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-card h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--text-max);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-ink);
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tech-tag {
  font-size: 0.6rem;
  color: var(--quiet);
  background: var(--lift-02);
  border: 1px solid var(--line);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.product-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.product-cta {
  flex-grow: 1;
  text-align: center;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.75rem;
  color: var(--cyan-ink);
  font-size: 0.72rem;
  border-radius: 6px;
  background: var(--lift-01);
}

.product-cta:hover {
  background: var(--accent-fill);
  color: var(--on-accent);
  border-color: var(--cyan-ink);
  box-shadow: var(--glow-cyan);
}

.product-cta-secondary {
  color: var(--muted);
  border-color: var(--line);
}

.product-cta-secondary:hover {
  color: var(--text-max);
  border-color: var(--line-strong);
  background: var(--lift-04);
}

/* Ecosystem Section */
.ecosystem-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ecosystem-card {
  padding: 1.5rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
}

.ecosystem-card.active {
  border-color: var(--cyan-a3);
  box-shadow: inset 0 0 16px var(--cyan-a05);
}

.site-role {
  color: var(--teal);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ecosystem-card h3 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-max);
}

.ecosystem-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.ecosystem-card a {
  margin-top: auto;
  color: var(--cyan-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ecosystem-card a:hover {
  gap: 0.65rem;
  text-shadow: var(--glow-cyan);
}

/* Status Section */
.status-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem;
  margin: 6rem 0;
  border-radius: 14px;
}

.status-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.status-rail {
  display: grid;
  gap: 0.75rem;
}

.status-rail span {
  border-left: 3px solid var(--cyan);
  background: var(--lift-02);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  border-radius: 0 6px 6px 0;
  border-top: 1px solid var(--lift-02);
  border-right: 1px solid var(--lift-02);
  border-bottom: 1px solid var(--lift-02);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 4rem;
  color: var(--quiet);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan-ink);
}

/* Animations / Reveal */
.hero-copy,
.hero-visual,
.code-panel,
.philosophy-copy,
.product-card,
.ecosystem-card,
.status-section {
  opacity: 1;
}

html[data-runtime="ready"] .hero-copy,
html[data-runtime="ready"] .hero-visual,
html[data-runtime="ready"] .code-panel,
html[data-runtime="ready"] .philosophy-copy,
html[data-runtime="ready"] .product-card,
html[data-runtime="ready"] .ecosystem-card,
html[data-runtime="ready"] .status-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-runtime="ready"] .is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero-section,
  .philosophy-section,
  .status-section,
  .ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2rem;
    gap: 2.5rem;
  }

  .site-nav {
    justify-content: start;
  }

  .ecosystem-grid {
    gap: 1rem;
  }

  .ecosystem-card {
    min-height: 200px;
  }
}

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

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1.5rem, var(--max));
  }

  .site-nav a {
    padding: 0.4rem 0.6rem;
  }
}

/* Roadmap Section */
.roadmap-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

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

.roadmap-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roadmap-column h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.roadmap-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-a05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.roadmap-card:hover::before {
  opacity: 1;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-a3);
  box-shadow: 0 8px 24px var(--cyan-a05), inset 0 1px 1px var(--line);
}

.roadmap-card .card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.roadmap-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.roadmap-card .card-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.5rem;
  display: block;
  text-align: right;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.high { background: var(--red-a1); color: var(--red); }
.badge.medium { background: var(--orange-a1); color: var(--orange); }
.badge.low { background: var(--gray-a1); color: var(--gray); }

.badge.ios-macos-26-5-only { background: var(--orange-a1); color: var(--orange); }
.badge.ios-macos-27-only { background: var(--blue-a1); color: var(--blue); }
.badge.all-26-5-27 { background: var(--green-a1); color: var(--green); }

.badge.comp-ingestion { background: var(--violet-a1); color: var(--violet); }
.badge.comp-chunking { background: var(--orange-a1); color: var(--orange); }
.badge.comp-indexing { background: var(--blue-a1); color: var(--blue); }
.badge.comp-retrieval { background: var(--green-a1); color: var(--green); }
.badge.comp-orchestration { background: var(--red-a1); color: var(--red); }
.badge.comp-shortcuts { background: var(--yellow-a1); color: var(--yellow); }
.badge.comp-general { background: var(--gray-a1); color: var(--gray); }

.badge.rel-v4-0 { background: var(--gray-a1); color: var(--gray); }
.badge.rel-v4-1 { background: var(--violet-a1); color: var(--violet); }
.badge.rel-v4-2 { background: var(--orange-a1); color: var(--orange); }
.badge.rel-v4-3 { background: var(--mint-a1); color: var(--mint); }
.badge.rel-v4-3-1 { background: var(--green-a1); color: var(--green); }
.badge.rel-v4-4 { background: var(--blue-a1); color: var(--blue); }
.badge.rel-v4-5-phase-2b { background: var(--scarlet-a1); color: var(--scarlet); }
.badge.rel-future-backlog { background: var(--pink-a1); color: var(--pink); }

/* HUD Code Block & Syntax Highlighting */
.hud-code-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.hud-code-title {
  font-size: 0.62rem;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-code {
  background: var(--well-deep);
  border: 1px solid var(--lift-02);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  overflow-x: auto;
  margin: 0;
  min-height: 110px;
  max-height: 180px;
  line-height: 1.5;
  text-align: left;
  white-space: pre;
}

/* Syntax Highlighting Tokens */
.code-keyword { color: var(--coral); font-weight: 600; }
.code-string { color: var(--syn-string); }
.code-type { color: var(--syn-type); }
.code-comment { color: var(--muted); font-style: italic; }
.code-number { color: var(--syn-number); }
.code-call { color: var(--syn-number); }
.code-preprocessor { color: var(--coral); }
.code-keyword-secondary { color: var(--coral); }

/* ==========================================================================
   MOBILE UX 10X RESPONSIVENESS OVERHAUL
   ========================================================================== */

/* 1. Global Navigation & Hero Resizing */
@media (max-width: 900px) {
  /* Navigation: Let it wrap nicely */
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  /* Hero Font Resizing */
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subheadline {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 650px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subheadline {
    font-size: 1.05rem;
  }
  .hero-section {
    padding-top: 1.5rem;
    gap: 1.5rem;
  }
  /* Ensure app store badges wrap elegantly */
  .app-store-badges {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1.5rem;
  }
  .app-store-badges a {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* 2. Playground Controls & Trace Visualizer (Tablets & Mobile) */
@media (max-width: 1080px) {
  /* Stack the playground split pane */
  .playground-split-pane {
    /* minmax(0, 1fr), not 1fr. A bare 1fr means minmax(auto, 1fr), and that auto
       floor is the track's min-content width -- here ~390px from the panels
       below -- so the column grew past its own container and pushed the page
       44px wider than the viewport on every phone in portrait. */
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  /* Metrics Panel layout adjustment */
  .playground-metrics-pane {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  /* min() so the 300px wrapping threshold never exceeds the space actually
     available. A flat 300px still overflows once the content box drops below
     it (~277px at a 375px viewport), which no grid fix above can absorb. */
  .metrics-panel {
    flex-direction: row;
    flex: 1;
    min-width: min(300px, 100%);
    justify-content: space-around;
  }

  .pipeline-control-panel {
    flex: 1;
    min-width: min(300px, 100%);
  }
}

@media (max-width: 900px) {
  /* Reduce playground padding for screen real estate */
  .playground-container {
    padding: 1.25rem;
  }
  .playground-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  #run-pipeline-btn {
    width: 100%;
    text-align: center;
  }
  .control-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group {
    width: 100%;
  }
  .segmented-control {
    display: flex;
    width: 100%;
  }
  .segmented-control .segment {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
  }
}

@media (max-width: 650px) {
  .playground-container {
    padding: 1rem;
    border-radius: 12px;
  }
  .playground-title {
    font-size: 0.9rem;
  }
  .playground-title span:last-child {
    font-size: 1.2rem;
  }
  .metrics-panel {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .metric-item {
    flex: 1 1 45%;
    padding: 0.75rem;
  }
}

/* 3. HUD Inspector Refinements */
@media (max-width: 800px) {
  .hud-content-grid {
    grid-template-columns: 1fr; /* Stack What, Why, How */
    gap: 0.75rem;
  }
  .hud-code {
    font-size: 0.62rem;
    padding: 0.6rem 0.8rem;
    min-height: 80px;
  }
}

/* 4. Roadmap and Section padding */
@media (max-width: 650px) {
  .roadmap-section, .capabilities-section, .media-showcase {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .roadmap-card {
    padding: 1rem;
  }
  .capabilities-grid, .video-grid {
    gap: 1.25rem;
  }
}

/* Scrollbar cues for SVG diagram wrapper on mobile */
@media (max-width: 900px) {
  .diagram-canvas-wrapper {
    box-shadow: inset -20px 0 20px -20px var(--cyan-a4), inset 0 20px 40px var(--shadow-05);
  }
}


/* Pipeline Executing Animation */
.playground-container.executing {
  box-shadow: 0 0 40px var(--cyan-a15), inset 0 1px 1px var(--line);
  border-color: var(--cyan-a3);
  transition: all 0.5s ease;
}

@media (max-width: 900px) {
  .inspector-hud {
    padding: 1.2rem;
    margin-top: 1rem;
    border-radius: 12px;
    background: var(--well-frost);
    border: 1px solid var(--cyan-a2);
    box-shadow: 0 10px 30px var(--shadow-08);
  }
}

/* Roadmap Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--shadow-08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 45px var(--shadow-06), inset 0 1px 1px var(--line);
  animation: slideUp 0.3s ease forwards;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--fg);
  transform: rotate(90deg);
}

.modal-body {
  color: var(--fg);
  line-height: 1.6;
}

.modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.modal-body h3 {
  font-size: 1.2rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.modal-body p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.modal-body ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* The timeline cards are laid out with inline styles in index.html that set
   flex-grow:1 but no min-width. A flex item's default min-width is auto, i.e.
   its min-content, so a long release title (~323px) refused to shrink and
   pushed the card past the viewport on phones. No inline min-width exists, so
   this rule wins without !important. */
.timeline-content {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Responsive Changelog Timeline */
@media (max-width: 600px) {
  .changelog-timeline {
    gap: 2rem !important;
  }
  .timeline-line {
    left: 15px !important;
  }
  .timeline-item {
    gap: 1rem !important;
  }
  .timeline-dot {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }
  .timeline-content {
    padding: 1rem !important;
  }
  .timeline-content h3 {
    font-size: 1.1rem !important;
  }
}

/* YouTube Facade Styling */
.youtube-facade {
  cursor: pointer;
  background: var(--scrim-solid);
}
.youtube-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.youtube-facade:hover img {
  opacity: 1;
  transform: scale(1.02);
}
.youtube-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: var(--alert-a9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-fill);
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px var(--shadow-03);
  pointer-events: none;
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
}
.youtube-facade:hover .play-button {
  background: var(--alert);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 15px var(--alert-a5);
}

/* ==========================================================================
   Roadmap (.rm-*)
   The roadmap was rewritten in app.js from a card/column layout to a
   tab/chip/row layout, but no stylesheet rules were ever written for the new
   class names -- `git log -S"rm-chip" -- styles.css` returns nothing. The old
   .roadmap-grid / .roadmap-column / .roadmap-card rules above now match zero
   elements in the DOM, so 34 of the page's 48 controls were falling back to
   browser default chrome: var(--text-dim) fill, 2px outset bevel, black Arial text, on
   a var(--bg) background.

   Palette mirrors ROADMAP_LANE_STYLE in app.js (progress var(--cyan), shipped
   var(--success), planned/all var(--muted)). Rows carry --rm-status, --rm-glow and
   --rm-priority as inline custom properties; tiles carry --rm-accent.
   ========================================================================== */

/* --- summary tiles ------------------------------------------------------- */
.rm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.rm-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--rm-accent, var(--line-strong));
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.rm-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rm-accent, var(--text));
  line-height: 1.1;
}

.rm-stat-value.is-text {
  font-size: 0.95rem;
  padding-top: 0.4rem;
}

.rm-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* --- status tabs --------------------------------------------------------- */
.rm-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--shadow-025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.25rem;
}

.rm-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-tab:hover { color: var(--text); }

.rm-tab[aria-selected="true"] {
  background: var(--line);
  color: var(--cyan-ink);
}

.rm-tab-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--quiet);
}

.rm-tab[aria-selected="true"] .rm-tab-count { color: var(--cyan-ink); }

/* --- component chips ----------------------------------------------------- */
.rm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.rm-chip,
.rm-reset {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-chip:hover,
.rm-reset:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.rm-chip[aria-pressed="true"] {
  background: var(--cyan-a1);
  border-color: var(--cyan-a4);
  color: var(--cyan-ink);
}

/* --- keyword search ------------------------------------------------------ */
.rm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
}

.rm-search-icon {
  position: absolute;
  left: 0.75rem;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.rm-search input {
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 0.75rem 0.5rem 2.1rem;
  background: var(--shadow-025);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  -webkit-appearance: none;
  appearance: none;
}

.rm-search input::placeholder { color: var(--quiet); }

.rm-search input:focus {
  outline: none;
  border-color: var(--cyan-a5);
  box-shadow: var(--glow-cyan);
}

.rm-count {
  font-size: 0.72rem;
  color: var(--quiet);
  font-family: var(--font-mono);
}

/* --- release groups ------------------------------------------------------ */
.rm-group { margin-top: 1.5rem; }

.rm-group-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 40px;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.rm-caret {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.rm-group-head[aria-expanded="true"] .rm-caret { transform: rotate(90deg); }
.rm-group-head:hover .rm-caret { stroke: var(--cyan); }

.rm-group-title { white-space: nowrap; }

.rm-group-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rm-group-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--quiet);
}

.rm-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* --- entry rows ---------------------------------------------------------- */
.rm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--rm-status, var(--line-strong));
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-row:hover {
  border-color: var(--line-strong);
  border-left-color: var(--rm-status, var(--cyan));
  transform: translateX(2px);
}

.rm-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rm-status, var(--muted));
  box-shadow: 0 0 8px var(--rm-glow, transparent);
}

.rm-row-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.rm-row-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.rm-row-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--quiet);
  white-space: nowrap;
}

.rm-more {
  align-self: flex-start;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.rm-more:hover { color: var(--cyan-ink); }

.rm-empty {
  padding: 2rem 0;
  color: var(--quiet);
  font-size: 0.85rem;
  text-align: center;
}

/* --- detail modal -------------------------------------------------------- */
.rm-modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.rm-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 1.25rem;
}

/* --- release progress ----------------------------------------------------
   Shown on the lead summary tile and under any release still in flight. The
   percentage is computed from that release's own entries, so it stays honest
   when work carries between versions.
   ------------------------------------------------------------------------- */
.rm-progress {
  height: 3px;
  margin-top: 0.6rem;
  background: var(--lift-08);
  border-radius: 999px;
  overflow: hidden;
}

.rm-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rm-accent, var(--cyan));
  box-shadow: 0 0 10px var(--rm-accent, var(--cyan));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rm-progress.is-group {
  margin: 0 0 0.5rem;
  --rm-accent: var(--rm-state, var(--cyan));
}

/* --- release state chip --------------------------------------------------
   Says in words what the dot colour says in colour, so the board is readable
   without decoding a legend.
   ------------------------------------------------------------------------- */
.rm-group-state {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--rm-state, var(--muted)) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--rm-state, var(--muted)) 12%, transparent);
  color: var(--rm-state, var(--muted));
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tabs adopt their lane's colour so the strip reads as a progression rather
   than four interchangeable filters. */
.rm-tab[data-lane="now"][aria-selected="true"] { color: var(--cyan-ink); }
.rm-tab[data-lane="next"][aria-selected="true"] { color: var(--orange); }
.rm-tab[data-lane="later"][aria-selected="true"] { color: var(--muted); }
.rm-tab[data-lane="shipped"][aria-selected="true"] { color: var(--success); }
.rm-tab[data-lane="now"][aria-selected="true"] .rm-tab-count { color: var(--cyan-ink); }
.rm-tab[data-lane="next"][aria-selected="true"] .rm-tab-count { color: var(--orange); }
.rm-tab[data-lane="later"][aria-selected="true"] .rm-tab-count { color: var(--muted); }
.rm-tab[data-lane="shipped"][aria-selected="true"] .rm-tab-count { color: var(--success); }

/* --- how-to-read line ----------------------------------------------------- */
.rm-legend {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--quiet);
}

.rm-legend b {
  font-weight: 600;
  color: var(--text);
}

/* --- touch targets -------------------------------------------------------
   Keyed on pointer, not width, so a touchscreen laptop or an iPad in landscape
   gets the larger targets too. Apple's HIG asks for 44x44pt; these controls
   were as small as 19x20 and the speed slider was 129x4.
   ------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .rm-tab,
  .rm-chip,
  .rm-reset,
  .rm-more,
  .rm-group-head,
  .rm-row { min-height: 44px; }

  .rm-chip,
  .rm-reset { min-width: 44px; padding: 0.6rem 0.9rem; }

  .rm-search input { min-height: 44px; }

  .segment,
  .console-btn { min-height: 44px; }

  .site-nav a,
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Links sitting inline inside prose are deliberately left alone -- WCAG 2.2
     exempts inline targets, and padding a word mid-sentence breaks the line box. */
  .site-footer p a {
    display: inline;
    min-height: 0;
  }

  /* The slider's own box was the 4px track. Give the input a 44px grabbable
     height and move the thin visual track to the pseudo-elements. */
  .speed-slider {
    height: 44px;
    background: transparent;
  }

  .speed-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
  }

  .speed-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -8px;
  }

  .speed-slider::-moz-range-track {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
  }

  .speed-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
  }
}


/* ==========================================================================
   THEME TOGGLE
   Cycles System -> Light -> Dark -> System. "System" is the default and is
   represented by the ABSENCE of data-theme, so a visitor who never touches
   this control keeps following their OS forever.
   ========================================================================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lift-02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  color: var(--cyan-ink);
  border-color: var(--line-strong);
  background: var(--lift-04);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.theme-icon {
  width: 15px;
  height: 15px;
  display: none;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon .theme-icon-fill {
  fill: currentColor;
  stroke: none;
}

/* No data-theme attribute means "follow the system", which is the default. */
:root:not([data-theme]) .theme-icon-auto,
:root[data-theme="light"] .theme-icon-light,
:root[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* The nav is tight on small screens; the icon alone still carries the state. */
@media (max-width: 900px) {
  .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Cross-fade the swap, but only for the ~200ms the class is applied and only
   for people who have not asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .theme-switching,
  .theme-switching .site-header,
  .theme-switching .site-footer,
  .theme-switching section,
  .theme-switching .product-card,
  .theme-switching .ecosystem-card,
  .theme-switching .rm-entry,
  .theme-switching .timeline-content {
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }
}


/* ---- The interactive trace (2026-09-05). Tokens only; both themes. ---- */
.trace-section { padding: 4rem 0 1rem; }
.trace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto 1fr; grid-template-areas: "controls controls" "stage panel" "log panel"; gap: 1.25rem; margin-top: 2rem; }
.trace-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.trace-seg { display: inline-flex; align-items: center; gap: .25rem; }
.trace-seg-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: .35rem; }
.trace-seg button { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: .4rem .8rem; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.trace-seg button:hover { color: var(--text); }
.trace-seg button[aria-pressed="true"] { color: var(--cyan-ink); background: var(--cyan-a1); border-color: var(--cyan-a3); }
.trace-run { display: inline-flex; align-items: center; gap: 1rem; margin-left: auto; }
.trace-run-btn { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--cyan-ink); background: var(--cyan-a1); border: 1px solid var(--cyan); border-radius: 999px; padding: .5rem 1.4rem; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.trace-run-btn:hover { background: var(--cyan-a2); box-shadow: var(--glow-cyan); transform: translateY(-1px); }
.trace-run-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.trace-speed { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.trace-speed input { accent-color: var(--cyan); width: 120px; }
.trace-speed output { min-width: 4.5ch; color: var(--text); }

.trace-stage { grid-area: stage; align-self: start; display: grid; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.trace-lane-label { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.trace-lane-label span { color: var(--cyan-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.trace-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; position: relative; }
.trace-nodes::before { content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px; background: var(--line); z-index: 0; }
.trace-progress { position: absolute; left: 6%; top: 26px; height: 2px; width: 0; max-width: 88%; background: var(--cyan); box-shadow: var(--glow-cyan); z-index: 0; transition: width .45s ease; }
.trace-node { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: .45rem; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.trace-node-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); background: var(--well); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.trace-node-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; text-align: center; line-height: 1.2; }
.trace-node:hover .trace-node-n { border-color: var(--cyan-a5); transform: translateY(-2px); }
.trace-node.is-done .trace-node-n { border-color: var(--cyan-a3); color: var(--cyan-ink); background: linear-gradient(var(--cyan-a05), var(--cyan-a05)) var(--well); }
.trace-node.is-active .trace-node-n { border-color: var(--cyan); background: linear-gradient(var(--cyan-a1), var(--cyan-a1)) var(--well); box-shadow: var(--glow-cyan); color: var(--cyan-ink); }
.trace-node.is-active .trace-node-label, .trace-node.is-selected .trace-node-label { color: var(--text); }
.trace-node.is-selected .trace-node-n { border-color: var(--cyan); }

.trace-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.trace-target { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); display: grid; gap: .2rem; transition: border-color .2s, background .2s, color .2s; }
.trace-target b { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--text); }
.trace-target.is-lit { border-color: var(--cyan); background: var(--cyan-a08); box-shadow: var(--glow-cyan); }
.trace-target.is-lit b { color: var(--cyan-ink); }
.trace-target.is-future { opacity: .55; }
.trace-target small { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }

.trace-panel { grid-area: panel; align-self: start; position: sticky; top: 5.5rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.trace-panel-kicker { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); margin: 0 0 .5rem; }
.trace-panel h3 { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; margin: 0 0 .75rem; color: var(--text-max); letter-spacing: -.01em; }
.trace-panel p { font-size: .92rem; line-height: 1.6; color: var(--text); margin: 0; }
.trace-panel h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .45rem; }
.trace-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.trace-chips code { font-family: var(--font-mono); font-size: .72rem; color: var(--text-soft); background: var(--cyan-a08); border: 1px solid var(--cyan-a15); border-radius: 6px; padding: .12rem .4rem; overflow-wrap: anywhere; }
.trace-numbers { margin: 0; padding-left: 1.05rem; display: grid; gap: .35rem; font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; color: var(--text); }
.trace-drops { font-size: .85rem; color: var(--muted); }
.trace-gates { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.trace-gates li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; font-size: .82rem; line-height: 1.45; color: var(--text); }
.trace-gates b { font-family: var(--font-display); color: var(--cyan-ink); }
.trace-gates li.is-pass b::after { content: " ✓"; color: var(--green); }
.trace-toggles { display: grid; gap: .45rem; }
.trace-toggle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.trace-toggle .trace-seg button { padding: .3rem .6rem; font-size: .72rem; }
.trace-route { margin-top: .9rem; padding: .8rem .9rem; border: 1px solid var(--cyan-a3); border-radius: 10px; background: var(--cyan-a05); font-family: var(--font-mono); font-size: .78rem; line-height: 1.55; color: var(--text); }
.trace-route b { color: var(--cyan-ink); }
.trace-panel-empty { color: var(--muted); font-size: .92rem; }

.trace-log { grid-area: log; align-self: start; font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--well); color: var(--muted); max-height: 240px; overflow: auto; }
.trace-log p { margin: 0; display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; }
.trace-log p b { color: var(--cyan-ink); font-weight: 600; }
.trace-log p.is-route b { color: var(--green); }
.trace-log p.trace-log-empty { display: block; color: var(--muted); }

@media (max-width: 1080px) {
  .trace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "controls" "stage" "panel" "log"; }
  .trace-panel { position: static; }
  .trace-run { margin-left: 0; }
}
@media (max-width: 640px) {
  .trace-nodes { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .trace-nodes::before, .trace-progress { display: none; }
  .trace-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trace-node-n { width: 44px; height: 44px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trace-progress, .trace-node-n, .trace-run-btn { transition: none; }
}
