  :root {
    /* pure black bg · exact match to dragonfly's hero */
    --bg:        #000000;
    --bg-2:      #0a0a0a;
    --bg-deep:   #000000;
    --paper:     #f2f2f2;       /* clean off-white for light blocks */
    --paper-2:   #e8e8e8;
    --paper-ink: #000000;
    --paper-dim: #5a5a5a;
    --paper-line:#d0d0d0;

    --ink:       #f2f2f2;       /* clean white on black */
    --ink-dim:   #8a8a8a;
    --ink-mute:  #4a4a4a;
    --line:      #181818;
    --line-2:    #262626;

    --accent:    #ff4d1c;       /* bright orange, matches dragonfly exactly */
    --accent-2:  #ff6a3d;
    --accent-deep:#c43000;
    --accent-soft: rgba(255, 77, 28, 0.14);
    --accent-line: rgba(255, 77, 28, 0.45);

    --serif: "Instrument Serif", "Times New Roman", Times, serif;
    --sans:  "Geist", -apple-system, "Helvetica Neue", sans-serif;
    --mono:  "Geist Mono", ui-monospace, "SF Mono", monospace;

    --pad-x: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.2,.7,.2,1);
    --ease-wipe: cubic-bezier(.65,.05,.36,1);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent); color: #fff; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* very subtle film grain only · no warm tint */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    opacity: 0.18; mix-blend-mode: overlay;
  }
  body::after { display: none; }
  main, header, footer, nav, section { position: relative; z-index: 2; }

  /* ---------------- TASKBAR (dragonfly-exact: scope · progress · menu) ---------------- */
  .taskbar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    width: 360px;
    height: 38px;
    background: #000;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    font-family: var(--mono);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .taskbar.hidden { transform: translate(-50%, -120%); }
  .tb-cell {
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    border-right: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s var(--ease);
    user-select: none;
  }
  .tb-cell:last-child { border-right: 0; }
  .tb-cell:hover { background: #111; }
  /* scope icon · small >|< */
  .tb-scope {
    display: inline-flex; align-items: center; gap: 2px;
    font-family: var(--mono); font-size: 13px; font-weight: 500;
    color: var(--ink);
    letter-spacing: 0;
  }
  .tb-scope span { display: inline-block; line-height: 1; }
  /* center: animated orange progress dashes */
  .tb-progress {
    display: inline-flex; gap: 4px; align-items: center;
  }
  .tb-progress i {
    display: inline-block;
    width: 5px; height: 2px;
    background: var(--accent);
    opacity: 0.25;
  }
  .tb-progress i.on { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  .tb-menu { font-weight: 500; }

  /* small `+` ticks above the bar, like dragonfly's reg marks */
  .tb-ticks { position: fixed; top: 22px; z-index: 99; pointer-events: none; }
  .tb-ticks.l { left: calc(50% - 220px); }
  .tb-ticks.r { left: calc(50% + 200px); }
  .tb-ticks span { color: var(--ink-mute); font-family: var(--mono); font-size: 11px; }

  /* expanded menu sheet */
  .menu-sheet {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-10px);
    width: 360px;
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 8px;
    z-index: 99;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .menu-sheet.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
  .menu-sheet a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 14px;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-dim);
    border-radius: 3px;
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
  }
  .menu-sheet a:hover { color: var(--accent); background: #0c0c0c; }
  .menu-sheet a .idx { color: var(--ink-mute); font-size: 10px; }
  .menu-sheet a:hover .idx { color: var(--accent); }

  /* ---------------- HERO ---------------- */
  /* Dragonfly-exact minimal hero: pure black, one bold sans wordmark in orange,
     full-viewport. Dithered ASCII placeholder behind. Mask-hover focus effect. */
  .hero {
    min-height: 100dvh;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
    padding: 0 var(--pad-x);
  }
  /* three.js mount sits behind the wordmark */
  #three-hero {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0;
  }
  /* dithered ASCII placeholder · pre-AI computer-art feel */
  .hero-dither {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
      radial-gradient(ellipse 40% 60% at 50% 50%, rgba(180,180,180,0.45), transparent 65%),
      radial-gradient(ellipse 80% 20% at 50% 30%, rgba(200,200,200,0.18), transparent 70%);
    mask-image:
      repeating-radial-gradient(circle at center, #000 0 1px, transparent 1.4px 3px),
      linear-gradient(#000, #000);
    mask-composite: intersect;
    -webkit-mask-image:
      repeating-radial-gradient(circle at center, #000 0 1px, transparent 1.4px 3px),
      linear-gradient(#000, #000);
    -webkit-mask-composite: source-in;
    animation: ditherDrift 24s ease-in-out infinite alternate;
  }
  @keyframes ditherDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 1%) scale(1.04); }
  }

  /* corner letters · A / E / E / R, like dragonfly's D / F / L / Y */
  .corner {
    position: absolute;
    z-index: 3;
    font-family: var(--serif);
    font-weight: 400;
    font-style: normal;
    font-size: 44px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: 0;
  }
  .corner.tl { top: 28px; left: 28px; }
  .corner.tr { top: 28px; right: 28px; transform: scaleX(-1); /* mirrored, like dragonfly's reversed F */ }
  .corner.bl { bottom: 28px; left: 28px; }
  .corner.br { bottom: 28px; right: 28px; transform: scaleX(-1); }
  /* faint `+` registration marks scattered in the field */
  .reg { position: absolute; z-index: 2; color: var(--ink-mute); font-family: var(--mono); font-size: 12px; user-select: none; }

  .hero-title {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    line-height: 0.86;
    pointer-events: auto;
    --x: 50%;
    --y: 50%;
    --r: 320px;
  }
  .hero-title .layer {
    /* SANS-SERIF bold display · Geist Bold, all caps, vivid orange */
    font-family: var(--sans);
    font-weight: 700;
    font-style: normal;
    font-size: clamp(96px, 18vw, 320px);
    letter-spacing: -0.02em;
    line-height: 0.86;
    color: var(--accent);
    user-select: none;
    display: block;
    text-transform: none;
  }
  .hero-title .mask-blur,
  .hero-title .mask-sharp {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-title .mask-blur .layer {
    filter: blur(10px);
    opacity: 0.7;
  }
  .hero-title .mask-sharp {
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%);
            mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%);
  }
  .hero-title .layer-spacer { visibility: hidden; }
  .hero-title .char {
    display: inline-block;
    transform: translateY(110%);
    animation: charRise 1.1s var(--ease-wipe) forwards;
    will-change: transform;
  }
  @keyframes charRise { to { transform: translateY(0); } }

  /* Hero CTA button */
  .hero-cta {
    position: relative;
    z-index: 4;
    margin-top: 32px;
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    opacity: 0;
    animation: ctaFade 0.8s var(--ease) 1.2s forwards;
  }
  .hero-cta:hover { background: var(--accent-2); transform: translateY(-2px); }
  @keyframes ctaFade { to { opacity: 1; } }

  /* Floating "system live" pill in the hero · bottom center */
  .live-pill {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 4;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px 9px 12px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-dim);
    cursor: default;
    user-select: none;
    transition: opacity 0.4s var(--ease);
  }
  .live-pill .live-dot {
    width: 7px; height: 7px; border-radius: 99px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
  }
  .live-pill b { color: var(--ink); font-weight: 500; }
  .live-pill .live-sep { color: #2a2a2a; }
  @keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.45; transform: scale(0.8);} }

  /* small mouse-grab hint on the architecture canvas */
  .three-grab-hint {
    position: absolute; bottom: 14px; right: 14px; z-index: 5;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-mute);
    pointer-events: none;
  }
  .three-grab-hint b { color: var(--accent); font-weight: 500; }

  /* legacy hero-meta · removed in favor of .corner */

  /* ---------------- SECTIONS ---------------- */
  section.block {
    padding: 140px var(--pad-x);
    border-top: 1px solid var(--line);
  }
  section.light {
    background: var(--paper);
    color: var(--paper-ink);
    border-top-color: var(--paper-line);
  }
  .section-head {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 90px;
  }
  .section-num {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-mute);
    display: flex; align-items: center; gap: 14px;
  }
  section.light .section-num { color: var(--paper-dim); }
  .section-num::before { content: ""; width: 38px; height: 1px; background: var(--accent); }
  .section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 7.2vw, 120px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin: 0;
  }
  .section-title .ital { font-style: italic; color: var(--accent); font-weight: 400; }
  @media (max-width: 760px) {
    .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  }

  /* ---------------- 01 OVERVIEW (LIGHT) ---------------- */
  .overview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: start;
  }
  .overview-lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  .overview-lede em { font-style: italic; color: var(--accent); font-weight: 400; }
  .overview-body p { color: var(--paper-dim); font-size: 16px; line-height: 1.65; max-width: 50ch; margin: 0 0 16px; }
  .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
  .pill {
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 7px 12px;
    border: 1px solid var(--paper-ink);
    border-radius: 999px;
    color: var(--paper-ink);
  }
  .pill.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
  @media (max-width: 760px) { .overview-grid { grid-template-columns: 1fr; gap: 32px; } }

  .num-row {
    margin-top: 90px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
  }
  .num-cell { background: var(--paper); padding: 32px 28px; }
  .num-cell .lbl {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--paper-dim); margin-bottom: 14px;
  }
  .num-cell .val {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--paper-ink);
  }
  .num-cell .val sup { color: var(--accent); font-size: 0.45em; vertical-align: super; }
  @media (max-width: 760px) { .num-row { grid-template-columns: repeat(2, 1fr); } }

  /* ---------------- 02 PIPELINE ---------------- */
  .pipeline {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 4px; overflow: hidden;
  }
  .stage {
    background: var(--bg-2);
    padding: 40px 36px 36px;
    min-height: 540px;
    display: flex; flex-direction: column;
    position: relative;
    transition: background 0.3s var(--ease);
  }
  .stage:hover { background: var(--bg); }
  .stage-num {
    position: absolute; top: 18px; right: 22px;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
  }
  .stage-glyph {
    position: relative;
    width: 100%;
    height: 280px;
    border: 1px solid var(--line-2);
    background: #050505;
    margin-bottom: 32px;
    overflow: hidden;
  }
  .stage-glyph canvas { display: block; width: 100% !important; height: 100% !important; }
  .stage-glyph .badge {
    position: absolute; top: 10px; left: 12px; z-index: 2;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-mute);
    display: flex; align-items: center; gap: 6px;
  }
  .stage-glyph .badge::before {
    content: ""; width: 5px; height: 5px; background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
  }
  .stage-glyph .readout {
    position: absolute; bottom: 10px; right: 12px; z-index: 2;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent);
  }
  /* corner brackets · keep design-system motif */
  .stage-glyph::before, .stage-glyph::after,
  .stage-glyph > .br::before, .stage-glyph > .br::after {
    content: ""; position: absolute; width: 8px; height: 8px;
    border-color: var(--accent); border-style: solid;
    z-index: 3;
  }
  .stage-glyph::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
  .stage-glyph::after { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
  .stage-glyph > .br::before { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
  .stage-glyph > .br::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

  /* ---- Sticky tower-build canvas: dedicated 40% column ---- */
  section.light { isolation: isolate; overflow: visible; position: relative; }
  section.light > *:not(.light-bg):not(.section-logo) { position: relative; z-index: 1; }
  .light-bg {
    position: absolute; top: 0; bottom: 0;
    width: 40%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
      linear-gradient(180deg, rgba(20,17,11,0.04) 0%, transparent 8%, transparent 92%, rgba(20,17,11,0.04) 100%);
    border-left: 1px solid rgba(20,17,11,0.08);
    border-right: 1px solid rgba(20,17,11,0.08);
  }
  section.light.tower-right .light-bg { right: 0; border-right: 0; }
  section.light.tower-left  .light-bg { left:  0; border-left:  0; }
  .light-bg-sticky {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100%;
  }
  .light-bg-sticky canvas { display: block; width: 100% !important; height: 100% !important; }
  /* Reserve the 40% column for the tower so content never overlaps */
  section.light.tower-right > .section-head,
  section.light.tower-right > .overview-grid,
  section.light.tower-right > .features,
  section.light.tower-right > .bench-grid,
  section.light.tower-right > .num-row {
    max-width: 58%;
    margin-left: 0;
    margin-right: auto;
  }
  section.light.tower-left > .section-head,
  section.light.tower-left > .overview-grid,
  section.light.tower-left > .features,
  section.light.tower-left > .bench-grid,
  section.light.tower-left > .num-row {
    max-width: 58%;
    margin-left: auto;
    margin-right: 0;
  }
  /* Built By forced to light bg, NO tower column */
  section.builtby-section { background: var(--paper); color: var(--paper-ink); }
  section.builtby-section.light > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  section.builtby-section .section-num { color: var(--paper-dim); }
  section.builtby-section .section-title { color: var(--paper-ink); }
  /* override the dark-card tokens inside builtby when on light bg */
  section.builtby-section .builtby-name-rail .vname { color: var(--paper-ink); }
  section.builtby-section .builtby-name-rail .vrole { color: var(--paper-dim); }
  section.builtby-section .builtby-photo img { filter: grayscale(1) contrast(1) brightness(0.98); }
  section.builtby-section .builtby-photo.colored img { filter: grayscale(0) contrast(1) brightness(1); }
  section.builtby-section .builtby-photo .photo-hint {
    background: rgba(246,243,236,0.85);
    color: var(--paper-ink);
    border-color: rgba(20,17,11,0.18);
  }
  section.builtby-section .builtby-photo-meta { border-top-color: var(--paper-line); }
  section.builtby-section .builtby-photo-meta div { color: var(--paper-dim); }
  section.builtby-section .builtby-photo-meta div b { color: var(--paper-ink); }
  section.builtby-section .builtby-socials a {
    border-color: rgba(20,17,11,0.2);
    color: var(--paper-dim);
  }
  section.builtby-section .builtby-socials a:hover {
    border-color: var(--accent);
    color: var(--paper-ink);
    background: rgba(255, 77, 28, 0.06);
  }
  section.builtby-section .builtby-bio .lede { color: var(--paper-ink); }
  section.builtby-section .builtby-bio .fact-list { border-top-color: rgba(20,17,11,0.15); }
  section.builtby-section .builtby-bio .fact-list li { border-bottom-color: rgba(20,17,11,0.10); }
  section.builtby-section .builtby-bio .fact-list .k { color: var(--paper-dim); }
  section.builtby-section .builtby-bio .fact-list .v { color: var(--paper-ink); }

  @media (max-width: 980px) {
    .light-bg { width: 100%; opacity: 0.18; }
    section.light.tower-right > *, section.light.tower-left > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  }

  .stage h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.05; letter-spacing: -0.025em;
    margin: 0 0 12px;
    color: var(--ink);
  }
  .stage h3 .ital { font-style: italic; color: var(--accent); font-weight: 400; }
  .stage p {
    color: var(--ink-dim); font-size: 14px; line-height: 1.55;
    max-width: 36ch; margin: 0 0 auto;
  }
  .stage-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px;
  }
  .stage-tag {
    font-family: var(--mono);
    font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 5px 9px;
    border: 1px solid var(--line-2);
    color: var(--ink-dim);
    border-radius: 3px;
  }
  @media (max-width: 980px) { .pipeline { grid-template-columns: 1fr; } }
  @media (max-width: 540px) { .pipeline { grid-template-columns: 1fr; } }

  /* ---------------- 03 FEATURES (LIGHT) ---------------- */
  .features {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
  .feat {
    border: 1px solid var(--paper-line);
    background: var(--paper);
    padding: 36px 32px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 320px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  }
  .feat:hover { border-color: var(--accent); background: #fff; }
  .feat::before {
    content: ""; position: absolute; inset: -1px;
    background: radial-gradient(circle 260px at var(--mx,50%) var(--my,50%), var(--accent-soft), transparent 60%);
    opacity: 0; transition: opacity 0.3s var(--ease);
    pointer-events: none;
  }
  .feat:hover::before { opacity: 1; }
  .feat .num {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 28px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .feat .num span:last-child { color: var(--accent); }
  .feat h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.05; letter-spacing: -0.025em;
    margin: 0 0 14px;
    color: var(--paper-ink);
  }
  .feat h4 .ital { font-style: italic; color: var(--accent); font-weight: 400; }
  .feat p {
    color: var(--paper-dim); font-size: 14.5px; line-height: 1.6;
    margin: 0; max-width: 44ch;
  }
  .feat .vis {
    margin-top: 24px;
    min-height: 120px;
    border-top: 1px solid var(--paper-line);
    padding-top: 18px;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.16em;
    color: var(--paper-dim);
  }
  .feat .vis pre {
    font-family: var(--mono); font-size: 11px; line-height: 1.7;
    margin: 0; white-space: pre-wrap; color: var(--paper-ink);
  }
  .feat .vis pre .c { color: var(--accent); }
  .feat .vis pre .m { color: var(--paper-dim); }

  /* feature spans */
  .feat.w-7 { grid-column: span 7; }
  .feat.w-5 { grid-column: span 5; }
  .feat.w-6 { grid-column: span 6; }
  .feat.w-4 { grid-column: span 4; }
  .feat.w-8 { grid-column: span 8; }
  @media (max-width: 980px) {
    .features { grid-template-columns: 1fr 1fr; }
    .feat[class*="w-"] { grid-column: span 2; }
  }
  @media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
    .feat[class*="w-"] { grid-column: span 1; }
  }

  /* ---------------- 04 ARCHITECTURE (THREE.JS SLOT) ---------------- */
  .arch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
  }
  .three-frame {
    position: relative;
    min-height: 540px;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  #three-scene { position: absolute; inset: 0; }
  /* placeholder content shown until your three.js mounts something */
  .three-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 22px;
    color: var(--ink-dim);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  }
  .three-placeholder .crosshair {
    position: absolute; top: 50%; left: 50%; width: 220px; height: 220px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--accent-line);
    animation: rotateSlow 18s linear infinite;
  }
  .three-placeholder .crosshair::before, .three-placeholder .crosshair::after {
    content: ""; position: absolute; background: var(--accent);
  }
  .three-placeholder .crosshair::before { top: 50%; left: -8px; right: -8px; height: 1px; }
  .three-placeholder .crosshair::after { left: 50%; top: -8px; bottom: -8px; width: 1px; }
  .three-placeholder .ping {
    position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    background: var(--accent); border-radius: 99px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 22px var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
  }
  .three-placeholder .corner {
    position: absolute; width: 22px; height: 22px;
    border: 0 solid var(--accent);
  }
  .three-placeholder .tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
  .three-placeholder .tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
  .three-placeholder .bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
  .three-placeholder .br2 { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
  .three-readout {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
  }
  .three-foot {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    text-align: center;
    color: var(--ink-mute);
  }
  @keyframes rotateSlow { to { transform: translate(-50%, -50%) rotate(360deg); } }

  .arch-body { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
  .arch-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05; letter-spacing: -0.015em;
    margin: 0;
  }
  .arch-body h3 .ital { font-style: italic; color: var(--accent); }
  .arch-body p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 52ch; }
  .arch-spec {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 12px;
  }
  .arch-spec div {
    background: var(--bg-2);
    padding: 18px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-dim);
  }
  .arch-spec div b { color: var(--ink); font-weight: 500; display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.08em; }
  @media (max-width: 880px) { .arch { grid-template-columns: 1fr; } .three-frame { min-height: 400px; } }

  /* ---------------- 05 BENCHMARKS (LIGHT) ---------------- */
  .bench-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: stretch;
  }
  .bench-lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15; letter-spacing: -0.025em;
  }
  .bench-lede em { font-style: italic; color: var(--accent); font-weight: 400; }
  .bench-table {
    border-top: 1px solid var(--paper-ink);
  }
  .bench-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 22px 0;
    align-items: end;
    border-bottom: 1px solid var(--paper-line);
  }
  .bench-row .label {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(20px, 1.8vw, 26px);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }
  .bench-row .val {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--paper-dim);
    text-align: right;
  }
  .bench-row .val b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 2.6vw, 38px);
    color: var(--paper-ink);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    text-transform: none;
  }
  .bench-row .val.accent b { color: var(--accent); }

  .sfri {
    background: var(--paper-ink);
    color: var(--paper);
    padding: 36px 32px;
    border-radius: 4px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 320px;
  }
  .sfri .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
  .sfri .formula {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.25;
    margin: 26px 0;
  }
  .sfri .formula b { color: var(--accent); font-style: italic; font-weight: 400; }
  .sfri .bar {
    height: 10px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    position: relative;
    margin-top: 20px;
  }
  .sfri .bar .fill {
    position: absolute; top: 0; bottom: 0; left: 0;
    background: var(--accent);
    width: 0;
    transition: width 1.4s var(--ease);
  }
  .sfri .bar-foot {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .sfri .bar-foot b { color: var(--accent); font-weight: 500; }
  @media (max-width: 880px) { .bench-grid { grid-template-columns: 1fr; gap: 32px; } }

  /* ---------------- 06 INSTALL ---------------- */
  .install {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 60px; align-items: stretch;
  }
  .install-body {
    display: flex; flex-direction: column; justify-content: center; gap: 22px;
  }
  .install-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05; letter-spacing: -0.015em;
    margin: 0;
  }
  .install-body h3 .ital { font-style: italic; color: var(--accent); }
  .install-body p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 50ch; }
  .terminal {
    background: #050403;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 13px; line-height: 1.7;
  }
  .term-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
  }
  .term-bar .lights { display: flex; gap: 6px; }
  .term-bar .lights span { width: 10px; height: 10px; border-radius: 99px; background: #2a2520; }
  .term-bar .lights span:first-child { background: var(--accent); }
  .term-bar .ttl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-left: auto; }
  .term-body { padding: 24px 22px; color: var(--ink); }
  .term-body .ln { display: block; }
  .term-body .pr { color: var(--accent); }
  .term-body .cm { color: var(--ink); }
  .term-body .ok { color: #5fb364; }
  .term-body .mu { color: var(--ink-mute); }
  .term-body .ac { color: var(--accent); }
  .cursor { display: inline-block; width: 8px; height: 1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; margin-left: 2px; }
  @keyframes blink { 50% { opacity: 0; } }

  .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 26px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    border: 1px solid var(--accent);
    border-radius: 999px;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    align-self: flex-start;
  }
  .btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
  .btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
  .btn svg { width: 13px; height: 13px; }

  .install-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
  @media (max-width: 880px) { .install { grid-template-columns: 1fr; gap: 32px; } }

  /* ---------------- INTEGRATIONS (black, AI provider grid) ---------------- */
  .integ-wrap { position: relative; }
  .integ-lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 60px;
  }
  .integ-lede em { color: var(--accent); font-style: italic; }

  .integ-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  .integ-card {
    background: var(--bg-2);
    padding: 30px 30px 30px;
    min-height: 250px;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background 0.3s var(--ease);
  }
  .integ-card:hover { background: #1a1614; }
  .integ-card.featured {
    grid-row: span 2;
    background: #14110d;
    min-height: 500px;
  }
  .integ-card.featured:hover { background: #1a1614; }
  .integ-card .badge {
    position: absolute; top: 16px; right: 18px; z-index: 2;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-mute);
    display: flex; align-items: center; gap: 6px;
  }
  .integ-card .badge.live { color: var(--accent); }
  .integ-card .badge.live::before {
    content: ""; width: 5px; height: 5px; background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
  }
  .integ-card .badge.soon::before {
    content: ""; width: 5px; height: 5px; background: var(--ink-mute);
  }
  .integ-card .logo-wrap {
    height: 64px;
    display: flex; align-items: center; justify-content: flex-start;
    margin-bottom: auto;
  }
  .integ-card.featured .logo-wrap {
    height: 120px;
    margin-bottom: 30px;
  }
  .integ-card .logo-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
  }
  .integ-card.featured .logo-wrap img {
    max-height: 92px;
  }
  .integ-card .logo-wrap.invert img { filter: invert(1) brightness(1); }
  .integ-card h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 24px 0 6px;
    color: var(--ink);
  }
  .integ-card.featured h4 { font-size: clamp(28px, 2.8vw, 40px); }
  .integ-card h4 .ital { color: var(--accent); font-style: italic; }
  .integ-card .desc {
    color: var(--ink-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    max-width: 36ch;
  }
  .integ-card.featured .desc { font-size: 15px; max-width: 44ch; }
  .integ-card .integ-spec {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .integ-card .integ-spec b {
    display: block;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }
  .integ-card .integ-spec b.accent { color: var(--accent); }
  .integ-snippet {
    margin-top: auto;
    padding-top: 22px;
  }
  .integ-snippet pre {
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--ink-dim);
    background: #050403;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    padding: 16px 18px;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
  }
  .integ-snippet pre .k { color: var(--accent); }
  .integ-snippet pre .s { color: #6fb37a; }
  .integ-snippet pre .c { color: var(--ink-mute); }

  .integ-howto {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  .integ-step {
    background: var(--bg-2);
    padding: 30px 28px;
    display: flex; flex-direction: column;
    gap: 10px;
  }
  .integ-step .num {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .integ-step h5 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(20px, 1.9vw, 26px);
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--ink);
  }
  .integ-step p {
    color: var(--ink-dim);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    max-width: 38ch;
  }
  .integ-step code {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    background: #050403;
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--line-2);
    margin-top: 8px;
    align-self: flex-start;
  }
  @media (max-width: 980px) {
    .integ-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .integ-card.featured { grid-row: auto; grid-column: span 2; min-height: 360px; }
    .integ-howto { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .integ-grid { grid-template-columns: 1fr; }
    .integ-card.featured { grid-column: auto; }
  }

  /* ---------------- SECTION LOGOS (top-right of each section) ---------------- */
  .section-logo {
    position: absolute;
    top: 24px;
    right: var(--pad-x);
    width: 72px;
    height: 72px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.95;
    transition: opacity 0.3s var(--ease);
  }
  section.light .section-logo {
    top: 18px;
  }
  .section-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
  }
  section.block { position: relative; }

  /* ---------------- 07 BUILT BY (minimal: photo + vertical name + bio) ---------------- */
  .builtby-wrap {
    display: grid;
    grid-template-columns: 64px 1fr 1.4fr;
    gap: 40px;
    align-items: stretch;
  }
  .builtby-name-rail {
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    padding: 12px 0;
  }
  .builtby-name-rail .vname {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
  }
  .builtby-name-rail .vname .ital { font-style: italic; color: var(--accent); }
  .builtby-name-rail .vrole {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .builtby-name-rail .vtick {
    width: 18px; height: 1px; background: var(--accent);
    margin: 18px 0;
  }

  .builtby-photo {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
  }
  .builtby-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.05) brightness(0.95);
    transition: filter 0.5s var(--ease);
  }
  .builtby-photo.colored img {
    filter: grayscale(0) contrast(1.05) brightness(1);
  }
  .builtby-photo::after {
    content: ""; position: absolute; inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .builtby-photo .photo-hint {
    position: absolute; bottom: 10px; right: 10px;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 99px;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .builtby-photo.colored .photo-hint { opacity: 0; }

  .builtby-socials {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 20px;
  }
  .builtby-socials a {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px;
    padding: 0 20px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-dim);
    transition: all 0.2s var(--ease);
  }
  .builtby-socials a:hover {
    border-color: var(--accent);
    color: var(--ink);
    background: rgba(255, 77, 28, 0.08);
  }
  .builtby-socials a svg { width: 22px; height: 22px; fill: currentColor; }
  .builtby-socials a.uw {
    padding: 0 16px;
  }
  .builtby-socials a.uw img {
    width: 28px; height: 28px;
    object-fit: contain;
  }
  .builtby-photo-meta {
    margin-top: 16px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line-2);
  }
  .builtby-photo-meta div {
    padding: 14px 0 0;
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .builtby-photo-meta div + div {
    text-align: right;
  }
  .builtby-photo-meta div b {
    display: block;
    font-family: var(--mono);
    color: var(--ink);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
  }

  .builtby-bio {
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 28px;
  }
  .builtby-bio .lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    max-width: 22ch;
  }
  .builtby-bio .lede em { font-style: italic; color: var(--accent); }
  .builtby-bio .fact-list {
    list-style: none;
    padding: 0; margin: 0;
    border-top: 1px solid var(--line-2);
  }
  .builtby-bio .fact-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-2);
    align-items: baseline;
  }
  .builtby-bio .fact-list .k {
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .builtby-bio .fact-list .v {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
  }
  .builtby-bio .fact-list .v a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
  }
  .builtby-bio .fact-list .v .tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    vertical-align: 2px;
  }
  @media (max-width: 980px) {
    .builtby-wrap { grid-template-columns: 56px 1fr; }
    .builtby-bio { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    .builtby-wrap { grid-template-columns: 1fr; }
    .builtby-name-rail { flex-direction: row; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
    .builtby-name-rail .vname, .builtby-name-rail .vrole { writing-mode: horizontal-tb; transform: none; }
    .builtby-name-rail .vtick { margin: 0; }
  }

  /* ---------------- FOOTER ---------------- */
  footer.foot {
    background: var(--bg-deep);
    padding: 100px var(--pad-x) 30px;
    border-top: 1px solid var(--line);
  }
  .foot-mega {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(80px, 19vw, 320px);
    line-height: 0.86;
    letter-spacing: -0.05em;
    margin: 0 0 70px;
    color: var(--ink);
  }
  .foot-mega .ital { font-style: italic; color: var(--accent); font-weight: 400; }

  .foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line);
  }
  .foot-col h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 18px; }
  .foot-col p { color: var(--ink-dim); margin: 0; font-size: 13px; line-height: 1.65; max-width: 40ch; }
  .foot-col ul { list-style: none; padding: 0; margin: 0; }
  .foot-col li { padding: 4px 0; }
  .foot-col a { color: var(--ink-dim); font-size: 13px; transition: color 0.15s var(--ease); }
  .foot-col a:hover { color: var(--accent); }
  .cite {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-dim);
    max-width: 56ch;
    white-space: pre;
    overflow-x: auto;
  }
  .cite .k { color: var(--accent); }

  .foot-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .foot-bar .clock { color: var(--accent); }
  @media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

  /* ---------------- REVEAL ---------------- */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ---------------- COMPREHENSIVE RESPONSIVE FIXES ---------------- */
  /* Ensure all elements scale properly across all viewport sizes */
  @media (max-width: 480px) {
    :root { --pad-x: 16px; }
    section.block { padding: 80px var(--pad-x); }
    .taskbar { width: 280px; height: 34px; }
    .menu-sheet { width: 280px; }
    .tb-ticks { display: none; }
    .hero-title .layer { font-size: clamp(56px, 16vw, 96px); }
    .corner { font-size: 28px; }
    .corner.tl { top: 16px; left: 16px; }
    .corner.tr { top: 16px; right: 16px; }
    .corner.bl { bottom: 16px; left: 16px; }
    .corner.br { bottom: 16px; right: 16px; }
    .live-pill { bottom: 20px; font-size: 9px; padding: 7px 12px 7px 10px; gap: 7px; }
    .section-head { margin-bottom: 40px; }
    .section-title { font-size: clamp(36px, 10vw, 60px); }
    .num-row { grid-template-columns: 1fr; }
    .num-cell .val { font-size: clamp(32px, 10vw, 48px); }
    .stage { padding: 28px 20px 24px; min-height: 420px; }
    .stage-glyph { height: 200px; }
    .bench-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bench-row .label { grid-column: 1 / -1; }
    .arch-spec { grid-template-columns: 1fr; }
    .section-logo { width: 48px; height: 48px; top: 18px; }
    .foot-mega { font-size: clamp(48px, 14vw, 100px); }
    .foot-bar { flex-direction: column; gap: 10px; text-align: center; }
    .integ-card { padding: 20px; }
    .builtby-wrap { gap: 16px; }
    .builtby-photo { max-width: 200px; }
  }
  @media (max-width: 360px) {
    .taskbar { width: 260px; }
    .menu-sheet { width: 260px; }
    .hero-title .layer { font-size: clamp(44px, 14vw, 64px); }
    .section-title { font-size: clamp(30px, 9vw, 48px); }
    .stage-glyph { height: 160px; }
  }
  /* Tablet landscape and larger phones */
  @media (min-width: 481px) and (max-width: 768px) {
    section.block { padding: 100px var(--pad-x); }
    .section-head { margin-bottom: 60px; }
    .stage { min-height: 460px; }
  }
  /* Ensure nothing overflows on any width */
  html, body { overflow-x: hidden; width: 100%; }
  img { max-width: 100%; height: auto; }
  .hero, section.block, footer.foot { overflow-x: hidden; }

/* ============================================================
   SUBPAGE / DOCS — kept index menu styles
   ============================================================ */
.menu-div { height: 1px; background: #1a1a1a; margin: 6px 8px; }
.menu-sheet a.menu-doc { color: var(--accent); }
.menu-sheet a.menu-doc:hover { background: #160a06; }
.menu-sheet a.menu-doc .idx { color: var(--accent); }

/* ============================================================
   DOCS — clean, minimal, Stripe-style 3-column layout (dark)
   ============================================================ */
:root { --doc-bar-h: 56px; }

/* top bar */
.docbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--doc-bar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.docbar-brand { display: flex; align-items: center; gap: 9px; }
.docbar-brand img { height: 18px; width: auto; }
.docbar-brand .wm { font-family: var(--sans); font-weight: 800; letter-spacing: 0.04em; font-size: 14px; color: var(--ink); }
.doctabs { display: flex; gap: 4px; }
.doctabs a {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-dim);
  padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s;
}
.doctabs a:hover { color: var(--ink); }
.doctabs a.active { color: var(--ink); background: #141414; }
.docbar-cta {
  margin-left: auto; font-family: var(--mono); font-size: 12px;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px;
  transition: background .15s;
}
.docbar-cta:hover { background: var(--accent-2); }

/* 3-column shell */
.docwrap {
  max-width: 1320px; margin: 0 auto;
  padding-top: var(--doc-bar-h);
  display: grid; grid-template-columns: 244px minmax(0,1fr) 200px;
}

/* left nav */
.docnav { border-right: 1px solid var(--line); padding: 30px 22px 80px 4px; }
.docnav-sticky { position: sticky; top: calc(var(--doc-bar-h) + 22px); }
.docnav .group { margin-bottom: 24px; }
.docnav .group h6 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 9px; padding-left: 12px;
}
.docnav a {
  display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-dim);
  padding: 6px 12px; border-radius: 6px; margin-bottom: 1px;
  transition: color .15s, background .15s;
}
.docnav a:hover { color: var(--ink); background: #0f0f0f; }
.docnav a.active { color: var(--accent); background: rgba(255,77,28,0.08); font-weight: 500; }

/* content column */
.doccontent { min-width: 0; padding: 42px 56px 120px; }
.doccontent .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.doccontent h1 {
  font-family: var(--sans); font-weight: 700; font-size: 34px; letter-spacing: -0.02em;
  margin: 0 0 14px; line-height: 1.12; color: var(--ink);
}
.doccontent p.intro { font-size: 17px; line-height: 1.7; color: var(--ink-dim); margin: 0 0 24px; max-width: 70ch; }
.doccontent h2 {
  font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  margin: 46px 0 14px; padding-top: 30px; border-top: 1px solid var(--line);
  scroll-margin-top: 78px; color: var(--ink);
}
.doccontent section:first-of-type h2 { border-top: 0; padding-top: 4px; margin-top: 10px; }
.doccontent h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin: 26px 0 8px; color: var(--ink); }
.doccontent p { font-size: 15px; line-height: 1.7; color: var(--ink-dim); margin: 0 0 14px; max-width: 70ch; }
.doccontent a.lnk { color: var(--accent); }
.doccontent a.lnk:hover { text-decoration: underline; }
.doccontent strong { color: var(--ink); font-weight: 600; }
.doccontent ul, .doccontent ol { color: var(--ink-dim); font-size: 15px; line-height: 1.7; padding-left: 22px; margin: 0 0 16px; max-width: 70ch; }
.doccontent li { margin-bottom: 6px; }
.doccontent li::marker { color: var(--ink-mute); }
.doccontent em { color: var(--ink); font-style: italic; }

/* inline code */
.doccontent code {
  font-family: var(--mono); font-size: 0.86em;
  background: #141414; border: 1px solid var(--line-2); border-radius: 4px;
  padding: 1px 5px; color: #eaa489;
}
/* code block */
.code { position: relative; margin: 0 0 20px; background: #0b0c0e; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #e6e6e6; }
.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code .pr { color: var(--accent); }
.code .c  { color: var(--ink-mute); }
.code .k  { color: #ff8b6b; }
.code .s  { color: #9fd0a0; }
.code .ok { color: #7fd18a; }
.code .copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); background: #161616; border: 1px solid var(--line-2);
  border-radius: 5px; padding: 4px 8px; cursor: pointer; opacity: 0;
  transition: opacity .15s, color .15s, border-color .15s;
}
.code:hover .copy-btn { opacity: 1; }
.code .copy-btn:hover { color: var(--accent); border-color: var(--accent-line); }

/* simple flat cards */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 18px; }
.gcard { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #0a0a0a; transition: border-color .15s; }
.gcard:hover { border-color: #2a2a2a; }
.gcard h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; margin: 0 0 5px; color: var(--ink); }
.gcard h4 b { color: var(--accent); font-weight: 600; }
.gcard p { font-size: 13.5px; margin: 0; color: var(--ink-dim); line-height: 1.55; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* table */
.doccontent table { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 14px; }
.doccontent th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.doccontent td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; }
.doccontent td code { white-space: nowrap; }

/* note / callout */
.note { display: flex; gap: 12px; margin: 4px 0 20px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 6px; padding: 13px 16px; background: #0b0a09; }
.note .m { color: var(--accent); font-family: var(--mono); }
.note p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; max-width: none; }

/* right toc */
.doctoc { border-left: 1px solid var(--line); padding: 42px 16px 80px; }
.doctoc-sticky { position: sticky; top: calc(var(--doc-bar-h) + 22px); }
.doctoc h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.doctoc a { display: block; font-size: 13px; color: var(--ink-dim); padding: 5px 0 5px 12px; border-left: 1px solid var(--line-2); margin-left: -1px; transition: color .15s, border-color .15s; }
.doctoc a:hover { color: var(--ink); }
.doctoc a.active { color: var(--accent); border-left-color: var(--accent); }

/* footer */
.doc-foot { border-top: 1px solid var(--line); padding: 26px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.doc-foot a { color: var(--ink-dim); }
.doc-foot a:hover { color: var(--accent); }
.doc-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1080px) {
  .docwrap { grid-template-columns: 220px minmax(0,1fr); }
  .doctoc { display: none; }
}
@media (max-width: 760px) {
  .docwrap { grid-template-columns: 1fr; }
  .docnav { display: none; }
  .doccontent { padding: 28px 20px 90px; }
  .doctabs { display: none; }
}

/* ============================================================
   MULTI-PAGE DOCS — prev/next pager + no-TOC layout
   ============================================================ */
.docwrap.no-toc { grid-template-columns: 244px minmax(0,1fr); }
@media (max-width: 1080px) { .docwrap.no-toc { grid-template-columns: 220px minmax(0,1fr); } }
@media (max-width: 760px)  { .docwrap.no-toc { grid-template-columns: 1fr; } }

.pager { display: flex; gap: 14px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.pager a:hover { border-color: var(--accent-line); background: #0d0d0d; }
.pager a.next { text-align: right; align-items: flex-end; }
.pager a span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.pager a b { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.pager a:hover b { color: var(--accent); }
.pager .spacer { flex: 1; }
