  :root {
    --bg: #0A0E14;
    --bg-grid: rgba(255, 255, 255, 0.035);
    --paper: #11161E;
    --paper-2: #161C26;
    --ink: #F2F4F7;
    --ink-soft: #C7CDD6;
    --muted: #7A8593;
    --border: rgba(255, 255, 255, 0.10);
    --border-soft: rgba(255, 255, 255, 0.06);
    --accent: #4DD9C7;
    --accent-soft: #6FE3D3;
    --accent-deep: #2BB8A6;
    --accent-on: #0A0E14;
    --tag-bg: rgba(77, 217, 199, 0.10);
    --nav-bg: rgba(10, 14, 20, 0.78);
    --accent-glow: rgba(77, 217, 199, 0.25);
    --accent-pulse: rgba(77, 217, 199, 0.45);
    --accent-shadow: 0 0 0 1px rgba(77, 217, 199, 0.25), 0 8px 24px rgba(77, 217, 199, 0.12);
  }

  [data-theme="light"] {
    --bg: #FFFFFF;
    --bg-grid: rgba(15, 23, 42, 0.04);
    --paper: #F7F8FA;
    --paper-2: #EEF1F4;
    --ink: #0F172A;
    --ink-soft: #334155;
    --muted: #64748B;
    --border: rgba(15, 23, 42, 0.12);
    --border-soft: rgba(15, 23, 42, 0.08);
    --accent: #0F766E;
    --accent-soft: #115E59;
    --accent-deep: #134E4A;
    --accent-on: #FFFFFF;
    --tag-bg: rgba(15, 118, 110, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --accent-glow: rgba(15, 118, 110, 0.20);
    --accent-pulse: rgba(15, 118, 110, 0.55);
    --accent-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 118, 110, 0.10);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    background-image:
      linear-gradient(var(--bg-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: -1px -1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
  }

  /* ===== LINK BASELINE =====
     Default link identity so anchors are visually distinct from prose.
     Specialised classes (.nav-link, .btn, .kit-link, .feed-link, .article-link,
     .foot-social a, .skip-link, .brand) override these as needed. */
  a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
  }
  a:hover { color: var(--accent-soft); text-decoration: underline; }
  a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* ===== ANIMATED AURORA BACKGROUND ===== */
  .bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.3s ease;
  }
  [data-theme="light"] .bg-aurora { opacity: 0.85; }

  .bg-aurora .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    mix-blend-mode: screen;
  }
  [data-theme="light"] .bg-aurora .orb {
    mix-blend-mode: multiply;
    filter: blur(80px);
  }

  .bg-aurora .orb-1 {
    width: 520px; height: 520px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    animation: drift1 4s ease-in-out infinite alternate;
  }
  .bg-aurora .orb-2 {
    width: 640px; height: 640px;
    top: 30%; right: -200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.7;
    animation: drift2 5s ease-in-out infinite alternate;
  }
  .bg-aurora .orb-3 {
    width: 480px; height: 480px;
    bottom: -160px; left: 25%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    opacity: 0.6;
    animation: drift3 4.5s ease-in-out infinite alternate;
  }
  .bg-aurora .orb-4 {
    width: 380px; height: 380px;
    top: 60%; left: -120px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.5;
    animation: drift4 5.5s ease-in-out infinite alternate;
  }

  @keyframes drift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(180px, 120px) scale(1.15); }
  }
  @keyframes drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-220px, 140px) scale(0.9); }
  }
  @keyframes drift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(140px, -180px) scale(1.1); }
  }
  @keyframes drift4 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(200px, -120px) scale(1.2); }
  }

  @media (prefers-reduced-motion: reduce) {
    .bg-aurora .orb { animation: none; }
  }

  .page { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

  .serif { font-family: 'Fraunces', 'Times New Roman', serif; font-optical-sizing: auto; }
  .italic-accent { font-style: italic; color: var(--accent); }

  .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    display: inline-flex; align-items: center; gap: 12px;
  }
  .eyebrow::before {
    content: ''; width: 28px; height: 1.5px;
    background: var(--accent); display: inline-block;
  }
  .eyebrow.no-dash::before { display: none; }

  /* ===== NAV ===== */
  nav.top {
    position: sticky; top: 0; z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background-color 0.3s ease;
  }
  nav.top.scrolled { border-bottom-color: var(--border-soft); }

  .nav-inner {
    max-width: 1180px; margin: 0 auto;
    padding: 22px 56px;
    display: flex; align-items: center; justify-content: space-between;
  }

  .brand {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 500;
    color: var(--ink); text-decoration: none;
    letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .brand,
  .brand:hover,
  .brand:hover * { text-decoration: none !important; }
  .brand em { font-style: italic; color: var(--accent); font-weight: 500; }
  .brand img {
    width: 28px; height: 28px;
    object-fit: contain;
    display: block;
    transition: filter 0.2s ease;
  }
  [data-theme="light"] .brand img,
  [data-theme="light"] .foot-brand img {
    filter: invert(1);
  }

  .nav-links { display: flex; gap: 36px; align-items: center; }
  .nav-links a.nav-link {
    font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    transition: color 0.15s;
  }
  .nav-links a.nav-link:hover { color: var(--accent); }

  .nav-cta {
    background: var(--accent); color: var(--accent-on) !important;
    padding: 12px 20px; border-radius: 6px;
    font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--accent-shadow);
  }
  .nav-cta,
  .nav-cta:hover,
  .nav-cta:hover * { text-decoration: none !important; }
  .nav-cta:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    animation: btnPrimaryPulse 1.6s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-cta:hover { animation: none; }
  }

  .theme-toggle {
    position: relative;
    width: 64px; height: 30px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--paper);
    cursor: pointer;
    padding: 0;
    display: inline-flex; align-items: center;
    transition: border-color 0.15s, background 0.15s;
  }
  .theme-toggle:hover { border-color: var(--accent); }
  .theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .theme-toggle .tt-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--accent-shadow);
    transition: transform 0.25s ease;
  }
  .theme-toggle .tt-opt {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 13px; line-height: 1;
    color: var(--muted);
    transition: color 0.2s ease;
    pointer-events: none;
  }
  /* dark mode active = moon highlighted (thumb on left) */
  .theme-toggle .tt-moon { color: var(--accent-on); }
  [data-theme="light"] .theme-toggle .tt-moon { color: var(--muted); }
  [data-theme="light"] .theme-toggle .tt-sun { color: var(--accent-on); }
  [data-theme="light"] .theme-toggle .tt-thumb { transform: translateX(34px); }

  /* ===== HERO ===== */
  .hero { padding: 96px 0 120px; position: relative; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: end;
  }
  .hero-left .eyebrow { margin-bottom: 28px; }

  .hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 7.2vw, 96px);
    font-weight: 500; line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--ink);
  }
  .hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

  .hero-right { padding-bottom: 8px; }

  .hero-sub {
    font-size: 17px; color: var(--ink-soft);
    font-weight: 400; max-width: 440px;
    line-height: 1.55; margin-bottom: 36px;
  }
  .hero-actions {
    display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: transform 0.15s, background 0.15s, color 0.15s;
    border: none;
  }
  .btn-primary {
    background: var(--accent); color: var(--accent-on);
    padding: 14px 22px; border-radius: 6px;
    font-weight: 600;
    box-shadow: var(--accent-shadow);
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .btn-primary,
  .btn-primary:hover { color: var(--accent-on); }
  .btn-primary:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    animation: btnPrimaryPulse 1.6s ease-in-out infinite;
  }
  /* Hover-only pulse variant */
  .btn-primary--pulse { animation: none !important; }
  .btn-primary--pulse:hover {
    animation: btnPrimaryPulse 1.6s ease-in-out infinite !important;
  }
  @keyframes btnPrimaryPulse {
    0%, 100% {
      box-shadow: var(--accent-shadow), 0 0 0 0 var(--accent-pulse);
    }
    50% {
      box-shadow: var(--accent-shadow), 0 0 0 14px transparent, 0 0 32px 6px var(--accent-pulse);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .btn-primary:hover { animation: none; }
  }
  .btn-link {
    color: var(--ink); padding: 14px 0;
    border-radius: 0;
    text-decoration: none !important;
  }
  .btn,
  .btn:hover,
  .btn:hover * { text-decoration: none !important; }
  .btn-link__label {
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 4px;
    transition: border-color 0.15s;
  }
  .btn-link:hover { color: var(--accent); text-decoration: none !important; }
  .btn-link:hover .btn-link__label { border-bottom-color: var(--accent); }

  /* ===== SECTION ===== */
  section { padding: 64px 0 96px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head .eyebrow { color: var(--ink); }

  /* ===== ARTICLE CARDS ===== */
  .article-stack { display: flex; flex-direction: column; gap: 20px; }
  .article {
    background: var(--paper);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px; align-items: start;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .article:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    animation: articlePulse 1.8s ease-in-out infinite;
  }
  @keyframes articlePulse {
    0%, 100% {
      box-shadow: 0 0 0 0 var(--accent-glow), 0 0 0 1px var(--accent-glow);
    }
    50% {
      box-shadow: 0 0 0 8px transparent, 0 0 24px 2px var(--accent-glow);
    }
  }

  .article-num {
    font-family: 'Fraunces', serif;
    font-size: 12px; color: var(--muted);
    margin-bottom: 18px; letter-spacing: 0.05em;
  }
  .article-tag {
    display: inline-block;
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    background: var(--tag-bg);
    border: 1px solid var(--accent-glow);
    padding: 5px 11px; border-radius: 3px;
    margin-bottom: 24px;
  }
  .article h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.3vw, 44px);
    font-weight: 500; line-height: 1.06;
    letter-spacing: -0.015em;
    color: var(--ink); max-width: 9ch;
  }
  .article h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .article.wide h3 { max-width: 14ch; }
  .article-body { padding-top: 6px; }
  .article-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
  .article-arrow {
    position: absolute; bottom: 22px; right: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 24px; line-height: 1; font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .article:hover .article-arrow {
    color: var(--accent-soft);
    transform: translate(3px, -3px);
  }

  .article-link { display: block; text-decoration: none; color: inherit; }
  .article-link,
  .article-link:hover,
  .article-link:hover * { text-decoration: none; }

  .article.coming-soon { opacity: 0.7; }
  .article.coming-soon:hover { transform: none; border-color: var(--border-soft); }
  .article.coming-soon h3 { color: var(--muted); }
  .article.coming-soon h3 em { color: var(--accent-soft); }
  .article.coming-soon .article-tag {
    color: var(--muted);
    background: var(--paper-2);
    border-color: var(--border-soft);
  }

  /* ===== PRODUCT PREVIEW ===== */
  #preview { padding: 80px 0 24px; }
  .preview-window {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px var(--accent-shadow), 0 1px 0 var(--border-soft);
  }
  .preview-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--border-soft);
  }
  .preview-chrome .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border-soft);
  }
  .preview-chrome .dot:first-child { background: #ff5f57; opacity: 0.7; }
  .preview-chrome .dot:nth-child(2) { background: #febc2e; opacity: 0.7; }
  .preview-chrome .dot:nth-child(3) { background: #28c840; opacity: 0.7; }
  .preview-chrome .pv-url {
    margin-left: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .preview-chrome .pv-status {
    margin-left: auto;
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 500;
  }
  .preview-chrome .pv-status::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--tag-bg);
    animation: pulse 2s ease-in-out infinite;
  }

  .preview-body {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 1px;
    background: var(--border-soft);
    min-height: 380px;
  }
  .preview-body-image {
    display: block;
    grid-template-columns: none;
    background: #000;
    min-height: 0;
    padding: 0;
  }
  .preview-body-image img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* Theme-aware preview image swap */
  .preview-body-image .preview-img-light { display: none; }
  .preview-body-image .preview-img-dark { display: block; }
  [data-theme="light"] .preview-body-image .preview-img-light { display: block; }
  [data-theme="light"] .preview-body-image .preview-img-dark { display: none; }
  [data-theme="light"] .preview-body-image { background: var(--paper); }
  .pv-panel {
    background: var(--paper);
    padding: 20px;
    display: flex; flex-direction: column;
  }
  .pv-panel h6 {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
  }

  /* LEFT: live data streams */
  .pv-streams { gap: 10px; }
  .pv-stream {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--paper-2);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 12px;
  }
  .pv-stream .pv-name { color: var(--ink); font-weight: 500; }
  .pv-stream .pv-meta { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }
  .pv-stream .pv-bars {
    display: flex; align-items: flex-end; gap: 2px;
    height: 22px;
  }
  .pv-stream .pv-bars span {
    display: block;
    width: 3px;
    background: var(--accent);
    border-radius: 1px;
    animation: bar 1.2s ease-in-out infinite;
    opacity: 0.85;
  }
  .pv-stream .pv-bars span:nth-child(1) { animation-delay: 0s; }
  .pv-stream .pv-bars span:nth-child(2) { animation-delay: 0.15s; }
  .pv-stream .pv-bars span:nth-child(3) { animation-delay: 0.30s; }
  .pv-stream .pv-bars span:nth-child(4) { animation-delay: 0.45s; }
  .pv-stream .pv-bars span:nth-child(5) { animation-delay: 0.60s; }
  @keyframes bar {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
  }

  /* CENTER: scene/canvas with sweeping radar */
  .pv-scene {
    position: relative;
    background:
      linear-gradient(var(--bg-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
      var(--paper);
    background-size: 24px 24px;
    overflow: hidden;
  }
  .pv-scene-label {
    position: absolute; top: 16px; left: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    z-index: 2;
  }
  .pv-radar {
    position: absolute;
    top: 50%; left: 50%;
    width: 240px; height: 240px;
    transform: translate(-50%, -50%);
  }
  .pv-radar-ring {
    position: absolute; inset: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.25;
  }
  .pv-radar-ring.r2 { inset: 30px; opacity: 0.18; }
  .pv-radar-ring.r3 { inset: 60px; opacity: 0.12; }
  .pv-radar-sweep {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 60deg, transparent 90deg);
    mask: radial-gradient(circle, transparent 0, black 30%, black 100%);
    -webkit-mask: radial-gradient(circle, transparent 0, black 30%, black 100%);
    opacity: 0.45;
    animation: radarSpin 4s linear infinite;
    transform-origin: center;
  }
  @keyframes radarSpin { to { transform: rotate(360deg); } }
  .pv-blip {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent);
    transform: translate(-50%, -50%);
    animation: blipFade 4s linear infinite;
  }
  .pv-blip.b1 { top: 30%; left: 60%; animation-delay: 0.5s; }
  .pv-blip.b2 { top: 65%; left: 35%; animation-delay: 1.8s; }
  .pv-blip.b3 { top: 45%; left: 78%; animation-delay: 2.6s; }
  .pv-blip.b4 { top: 70%; left: 62%; animation-delay: 3.2s; }
  @keyframes blipFade {
    0%, 60%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    65%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  /* RIGHT: inference / decisions feed */
  .pv-feed { gap: 8px; overflow: hidden; }
  .pv-event {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-soft);
    opacity: 0;
    animation: feedIn 12s linear infinite;
  }
  .pv-event:nth-child(2) { animation-delay: 0s; }
  .pv-event:nth-child(3) { animation-delay: 3s; }
  .pv-event:nth-child(4) { animation-delay: 6s; }
  .pv-event:nth-child(5) { animation-delay: 9s; }
  @keyframes feedIn {
    0% { opacity: 0; transform: translateY(8px); }
    4%, 25% { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0.25; }
  }
  .pv-event .pv-time {
    font-family: 'Fraunces', serif;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.05em;
    padding-top: 2px;
  }
  .pv-event .pv-msg {
    font-size: 12px;
    color: var(--ink);
    line-height: 1.45;
  }
  .pv-event .pv-msg em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
  }

  .preview-cap {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
  }
  .preview-cap em { color: var(--accent); font-style: normal; }

  .preview-lede {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
  }
  .preview-lede strong {
    color: var(--ink);
    font-weight: 500;
  }

  .preview-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
  }
  .preview-pillars .pillar {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 18px 20px;
    background: var(--paper);
  }
  .preview-pillars .pillar-tag {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
  }
  .preview-pillars .pillar p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
  }
  @media (max-width: 720px) {
    .preview-pillars { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    .pv-stream .pv-bars span,
    .pv-radar-sweep,
    .pv-blip,
    .pv-event,
    .preview-chrome .pv-status::before { animation: none; }
    .pv-event { opacity: 1; }
  }

  @media (max-width: 880px) {
    .preview-body { grid-template-columns: 1fr; }
    .pv-scene { min-height: 260px; }
  }

  /* ===== KITS ===== */
  .kits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .kit {
    background: var(--paper);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 36px;
    display: flex; flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .kit,
  .kit:hover,
  .kit:hover * { text-decoration: none; }
  .kit:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    animation: articlePulse 1.8s ease-in-out infinite;
  }
  .kit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  .kit-tag {
    display: inline-block;
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    background: var(--tag-bg);
    border: 1px solid var(--accent-glow);
    padding: 5px 11px; border-radius: 3px;
    margin-bottom: 20px; align-self: flex-start;
  }
  .kit h4 {
    font-family: 'Fraunces', serif;
    font-size: 30px; font-weight: 500;
    line-height: 1.1;
    margin-bottom: 12px; letter-spacing: -0.01em;
  }
  .kit h4 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .kit p {
    color: var(--ink-soft); font-size: 14.5px;
    line-height: 1.6; margin-bottom: 24px;
  }
  .kit-link {
    margin-top: auto;
    color: var(--ink); font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.15s;
  }
  /* Underline only the text label, not the trailing arrow span */
  .kit-link__label {
    padding-bottom: 4px;
    transition: border-color 0.15s;
  }
  .kit-link:hover { color: var(--accent); }
  .kit-link:hover .kit-link__label { border-bottom-color: var(--accent); }

  /* ===== LOOP ===== */
  .loop-diagram {
    margin: 24px auto 56px;
    max-width: 560px;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
  }
  .loop-diagram svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .loop-ring {
    fill: none;
    stroke: var(--border);
    stroke-width: 1.4;
    stroke-dasharray: 4 6;
    animation: ringSpin 60s linear infinite;
    transform-origin: 50% 50%;
  }
  [data-theme="light"] .loop-ring { stroke: var(--border); stroke-width: 1.4; }
  .loop-ring-glow {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 60 880;
    animation: ringTrace 8s linear infinite;
    transform-origin: 50% 50%;
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent));
  }
  [data-theme="light"] .loop-ring-glow {
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent-deep));
  }
  @keyframes ringSpin {
    to { transform: rotate(360deg); }
  }
  @keyframes ringTrace {
    to { stroke-dashoffset: -940; }
  }
  .loop-node {
    transform-box: fill-box;
    transform-origin: center;
  }
  .loop-node circle.node-bg {
    fill: var(--paper);
    stroke: var(--accent);
    stroke-width: 1.6;
    transition: stroke 0.3s, fill 0.3s;
  }
  [data-theme="light"] .loop-node circle.node-bg {
    fill: #FFFFFF;
    stroke: var(--accent);
    stroke-width: 1.6;
  }
  .loop-node circle.node-pulse {
    fill: var(--accent);
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
  }
  .loop-node text.node-num {
    font-family: 'Fraunces', serif;
    font-size: 13px;
    font-weight: 500;
    fill: var(--accent);
    text-anchor: middle;
    dominant-baseline: central;
  }
  [data-theme="light"] .loop-node text.node-num { fill: var(--accent-deep); font-weight: 600; }
  .loop-node text.node-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    fill: var(--ink);
    text-anchor: middle;
    text-transform: uppercase;
  }
  /* Directional anchoring so every label sits a uniform radial distance
     outside its node and aligns to the node's vertical/horizontal centre. */
  .loop-node text.node-label--top,
  .loop-node text.node-label--bottom {
    text-anchor: middle;
  }
  .loop-node text.node-label--top    { dominant-baseline: alphabetic; }
  .loop-node text.node-label--bottom { dominant-baseline: hanging; }
  .loop-node text.node-label--right {
    text-anchor: start;
    dominant-baseline: central;
  }
  .loop-node text.node-label--left {
    text-anchor: end;
    dominant-baseline: central;
  }
  /* Trace starts at 3 o'clock and travels clockwise (8s lap).
     Delay = (angle from 3oc CW / 360) * 8s, minus 0.64s so the pulse PEAK
     (at 8% of keyframes) lands on the moment the trace head crosses the node. */
  .loop-node:nth-of-type(1) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 5.36s; } /* 01 · 270° */
  .loop-node:nth-of-type(2) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 6.69s; } /* 02 · 330° */
  .loop-node:nth-of-type(3) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 7.36s; } /* 03 ·  30° (0.67−0.64+8 wrap) */
  .loop-node:nth-of-type(4) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 1.36s; } /* 04 ·  90° */
  .loop-node:nth-of-type(5) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 2.69s; } /* 05 · 150° */
  .loop-node:nth-of-type(6) .node-pulse { animation: nodePulse 8s linear infinite; animation-delay: 4.03s; } /* 06 · 210° */
  @keyframes nodePulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    8% { opacity: 0.55; transform: scale(1.35); }
    16% { opacity: 0; transform: scale(1.6); }
  }
  .loop-center {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-style: italic;
    fill: var(--ink);
    text-anchor: middle;
    dominant-baseline: central;
  }
  .loop-center-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    fill: var(--muted);
    text-anchor: middle;
    dominant-baseline: central;
  }
  @media (prefers-reduced-motion: reduce) {
    .loop-ring, .loop-ring-glow, .loop-node .node-pulse { animation: none; }
  }
  @media (max-width: 720px) {
    .loop-diagram { max-width: 360px; }
    .loop-node text.node-label { font-size: 9px; }
  }

  .loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
  }
  .loop-stage {
    background: var(--paper);
    padding: 32px 28px;
    transition: background 0.2s;
  }
  .loop-stage:hover { background: var(--paper-2); }
  .loop-num {
    font-family: 'Fraunces', serif;
    font-size: 13px; color: var(--accent);
    margin-bottom: 14px;
  }
  .loop-stage h5 {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 500;
    line-height: 1.15;
    margin-bottom: 10px; letter-spacing: -0.01em;
  }
  .loop-stage p { font-size: 14px; color: var(--muted); line-height: 1.55; }

  /* ===== RELEASE NOTES ===== */
  .releases {
    display: flex; flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-soft);
  }
  .release {
    display: grid;
    grid-template-columns: 220px 120px 1fr;
    gap: 32px;
    padding: 28px 4px;
    border-bottom: 1px solid var(--border-soft);
    align-items: start;
    transition: background 0.15s;
  }
  .release:hover { background: var(--paper); }
  .release-meta {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
    padding-top: 4px;
  }
  .release-version {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    padding-top: 0;
  }
  .release-version .release-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
    background: var(--tag-bg);
    border: 1px solid var(--accent-glow);
    vertical-align: middle;
  }
  .release-body h4 {
    font-family: 'Fraunces', serif;
    font-size: 19px; font-weight: 500;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.005em;
  }
  .release-body h4 em { font-style: italic; color: var(--accent); }
  .release-body p {
    color: var(--ink-soft); font-size: 14.5px;
    line-height: 1.6; margin-bottom: 14px;
  }
  .release-body ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .release-body ul li {
    color: var(--ink-soft); font-size: 14px;
    line-height: 1.55;
    padding-left: 22px; position: relative;
  }
  .release-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.6em;
    width: 10px; height: 1.5px;
    background: var(--accent);
  }
  .release-tag {
    display: inline-block;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--border-soft);
    padding: 3px 8px; border-radius: 3px;
    margin-right: 6px; margin-bottom: 4px;
  }
  .release-tag.tag-new { color: var(--accent); border-color: var(--accent-glow); background: var(--tag-bg); }
  .release-tag.tag-fix { /* default muted */ }
  .release-tag.tag-improved { /* default muted */ }

  .release-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: var(--tag-bg);
    border: 1px solid var(--accent-glow);
    border-radius: 8px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.5;
  }
  .release-banner strong { color: var(--accent); font-weight: 600; }
  .release-banner .banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--tag-bg);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ===== SCROLL ARROW ===== */
  .scroll-down { display: flex; justify-content: center; margin-top: 24px; }
  .scroll-down a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink); text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s, border-color 0.2s;
  }
  .scroll-down a:hover { transform: translateY(2px); border-color: var(--ink); }

  /* ===== TRUST STRIP ===== */
  .trust-strip {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
  }
  .trust-label {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
  }
  .trust-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 10px 14px;
  }
  .trust-list li {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
    padding: 4px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--paper);
  }

  /* ===== RELEASES HEAD ===== */
  .releases-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .feed-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .feed-link:hover {
    color: var(--accent);
    border-color: var(--accent-glow);
    background: var(--tag-bg);
  }
  .feed-link span { font-size: 14px; line-height: 1; }

  /* ===== FOOTER ===== */
  footer {
    padding: 64px 0 56px;
    border-top: 1px solid var(--border-soft);
    margin-top: 48px;
  }
  .foot-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px; align-items: start;
  }
  .foot-brand {
    font-family: 'Fraunces', serif;
    font-size: 28px; color: var(--ink);
    display: inline-flex; align-items: center; gap: 14px;
  }
  .foot-brand em { font-style: italic; color: var(--accent); }
  .foot-brand img {
    width: 32px; height: 32px;
    object-fit: contain;
    display: block;
  }
  .foot-meta {
    font-size: 12px; color: var(--muted);
    margin-top: 8px; letter-spacing: 0.04em;
  }
  .foot-social {
    display: flex; gap: 10px;
    margin-top: 18px;
  }
  .foot-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .foot-social a:hover {
    color: var(--accent);
    border-color: var(--accent-glow);
    background: var(--tag-bg);
  }
  .foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .foot-col { display: flex; flex-direction: column; gap: 8px; }
  .foot-h {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .foot-col a {
    font-size: 13.5px; font-weight: 500;
    color: var(--ink-soft); text-decoration: none;
    transition: color 0.2s;
  }
  .foot-col a:hover { color: var(--accent); }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero .eyebrow  { animation: fadeUp 0.6s 0.05s ease both; }
  .hero h1        { animation: fadeUp 0.7s 0.15s ease both; }
  .hero-right *   { animation: fadeUp 0.6s 0.3s ease both; }
  /* Prevent the universal hero-right entry animation from re-running on
     hover-out of buttons (which replace `animation` while :hover, then fall
     back to fadeUp and replay it). The pulse variant keeps its own animation. */
  .hero-right .hero-actions,
  .hero-right .hero-actions .btn-link,
  .hero-right .hero-actions .btn-link *,
  .hero-right .hero-actions .btn-primary:not(.btn-primary--pulse) { animation: none; }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 960px) {
    .page, .nav-inner { padding-left: 28px; padding-right: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .article { grid-template-columns: 1fr; gap: 20px; padding: 32px 28px; }
    .kits-grid { grid-template-columns: 1fr; }
    .loop-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 18px; }
    .nav-links a.nav-link { display: none; }
    .hero { padding: 56px 0 72px; }
    section { padding: 40px 0 72px; }
    .foot-inner { grid-template-columns: 1fr; align-items: start; gap: 36px; }
    .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .release { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
    .release-meta, .release-version { padding-top: 0; }
    .release-banner { flex-direction: column; align-items: flex-start; }
    .releases-head { justify-content: flex-start; }
    .trust-strip { margin-top: 40px; padding-top: 24px; }
  }

  /* ===== SKIP LINK (a11y) ===== */
  .skip-link {
    position: absolute;
    top: -40px; left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-on);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: var(--accent-shadow);
    transition: top 0.2s ease;
  }
  .skip-link:focus {
    top: 12px;
    outline: 2px solid var(--accent-on);
    outline-offset: 2px;
  }

  /* ===== SCROLL ANCHORS (offset for sticky nav) ===== */
  section[id], header[id] {
    scroll-margin-top: 88px;
  }

  /* ===== GLOBAL REDUCED-MOTION SAFETY NET ===== */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
  }
