  :root {
    --bg: #080a0e;
    --bg2: #0d1017;
    --surface: #111520;
    --border: #1e2535;
    --accent: #F37021;
    --accent2: #E85A00;
    --green: #00ff88;
    --red: #ff3b5c;
    --text: #e8eaf0;
    --read: #9aa3b8;
    --muted: #5a6278;
    --mono: 'Space Mono', monospace;
    --sans: 'Syne', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(8,10,14,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(243,112,33,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(243,112,33,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  }

  .hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(243,112,33,0.06) 0%, transparent 70%);
    top: 10%; left: -10%;
    pointer-events: none;
  }

  .hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(243,112,33,0.04) 0%, transparent 70%);
    bottom: 10%; right: 5%;
    pointer-events: none;
  }

  .hero-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }

  .hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.35s forwards;
  }

  .hero-title .accent { color: var(--accent); }
  .hero-title .dim { color: var(--muted); }

  .hero-sub {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
  }

  /* ── HERO STATS ── */
  .hero-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.65s forwards;
  }

  .stat-item {
    padding: 1.2rem 2rem;
    border: 1px solid var(--border);
    /* collapse shared borders so wrapping to a second row stays clean */
    margin: 0 -1px -1px 0;
    position: relative;
    min-width: 130px;
    flex: 0 0 auto;
  }

  .stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .stat-item:hover::before { opacity: 1; }

  .stat-value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .stat-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* ── SECTION COMMONS ── */
  section {
    padding: 6rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  /* ── ARCHITECTURE · pinned scroll sequence ── */
  section.arch-scroll {
    position: relative;
    height: calc(var(--steps) * 100vh);
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .arch-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(3.5rem, 7vh, 5rem) clamp(1.5rem, 6vw, 5rem) clamp(1.5rem, 4vh, 3rem);
    background:
      radial-gradient(ellipse 85% 55% at 50% 42%, rgba(243,112,33,0.08), transparent 62%),
      radial-gradient(ellipse 110% 45% at 50% 108%, rgba(120,140,180,0.06), transparent 72%),
      var(--bg);
  }
  .arch-head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
  .arch-head .section-tag { margin: 0; color: var(--accent); }
  .arch-head h2 { font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; margin: 0; color: var(--text); }
  .arch-stage { align-self: center; display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 4vh, 2.6rem); width: 100%; }
  .arch-svg {
    width: min(880px, 92vw);
    background: linear-gradient(160deg, var(--bg2), var(--surface));
    border: 1px solid #2a3346;
    border-radius: 14px;
    padding: clamp(1.1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    box-shadow: 0 24px 70px -32px rgba(0,0,0,0.85), 0 0 0 1px rgba(243,112,33,0.05), inset 0 1px 0 rgba(255,255,255,0.02);
  }
  .arch-svg svg { width: 100%; height: auto; font-family: var(--mono); overflow: visible; }
  .stage { opacity: 0.28; transition: opacity 0.55s cubic-bezier(.22,.61,.36,1), transform 0.55s cubic-bezier(.22,.61,.36,1); transform: translateY(6px); }
  .stage.reached { opacity: 1; transform: translateY(0); }
  .stage.current .node-box { filter: drop-shadow(0 0 10px rgba(243,112,33,0.7)); }
  .node-box { transition: filter 0.5s ease; }
  .caption-deck { position: relative; width: min(880px, 92vw); height: clamp(120px, 18vh, 168px); }
  .cap { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; display: flex; flex-direction: column; gap: 0.55rem; }
  .cap.show { opacity: 1; transform: translateY(0); }
  .cap .step-no { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted); }
  .cap .step-no b { color: var(--accent); }
  .cap .kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
  .cap h4 { font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; margin: 0; line-height: 1.05; color: var(--text); }
  .cap p { font-family: var(--mono); font-size: clamp(0.76rem, 1.4vw, 0.88rem); line-height: 1.75; color: var(--read); margin: 0; max-width: 40rem; }
  .cap .chip { align-self: flex-start; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--accent); border: 1px solid rgba(243,112,33,0.35); background: rgba(243,112,33,0.06); padding: 0.35rem 0.7rem; margin-top: 0.15rem; }
  .cap .chip.green { color: var(--green); border-color: rgba(0,255,136,0.35); background: rgba(0,255,136,0.06); }
  .arch-foot { display: flex; align-items: center; gap: 1rem; }
  .arch-foot .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); white-space: nowrap; }
  .rail { flex: 1; height: 2px; background: var(--border); position: relative; }
  .rail .fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); width: 0; transition: width 0.3s ease; }
  .dots { display: flex; gap: 0.5rem; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.3s ease, transform 0.3s ease; }
  .dots i.on { background: var(--accent); }
  .dots i.cur { transform: scale(1.7); background: var(--accent); }
  @media (prefers-reduced-motion: reduce) {
    .stage, .cap { transition: none; }
  }
  @media (max-width: 768px) {
    .arch-pin { padding-top: clamp(3.5rem, 10vh, 5rem); }
    .arch-svg { padding: 1rem 0.8rem; }
    .cap h4 { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  }

  .section-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
  }

  .section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: var(--text);
  }

  .divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin: 0;
  }

  /* ── BENCHMARK ── */
  #benchmark {
    padding: 5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .bench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .bench-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
  }

  .bench-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }

  .bench-card:hover::after { transform: scaleX(1); }

  .bench-metric {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0.4rem 0 1.4rem;
  }

  .bench-bar-wrap {
    margin-bottom: 0.6rem;
  }

  .bench-bar-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }

  .bench-bar-label .name { color: var(--muted); }
  .bench-bar-label .val { color: var(--text); }

  .bench-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    overflow: hidden;
  }

  .bench-bar-track.empty {
    background: transparent;
    border: 1px dashed var(--border);
  }

  .bench-delta {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .bench-delta .u {
    font-size: 0.66rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .bench-bar-fill {
    height: 100%;
    border-radius: 0;
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  
  .fill-legacy { background: rgba(255,59,92,0.5); }
  .fill-full { background: linear-gradient(90deg, var(--green), #00c853); }
  
  .fill-small { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
  .fill-large { background: rgba(255,59,92,0.5); }

  

  

  /* ── FLOW DIAGRAM ── */
  

  

  /* ── PROJECTS ── */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 2rem;
  }

  .project-card {
    background: var(--bg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
  }

  .project-card:hover { background: var(--surface); }

  .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
  }

  .project-card:hover::before { height: 100%; }

  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
  }

  .project-name {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
  }

  .badge {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
    border: 1px solid;
    text-transform: uppercase;
  }

  .badge-live { color: var(--green); border-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.05); }
  .badge-patent { color: var(--accent); border-color: rgba(243,112,33,0.3); background: rgba(243,112,33,0.06); }
  .badge-lkml { color: var(--accent2); border-color: rgba(232,90,0,0.35); background: rgba(232,90,0,0.06); }
  .badge-mit { color: var(--muted); border-color: var(--border); }

  .project-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .project-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .project-stat {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
  }

  .project-stat span:last-child { color: var(--text); }

  .project-link {
    margin-top: 1.2rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .project-card:hover .project-link,
  .project-card:focus-within .project-link,
  .project-link:focus-visible { opacity: 1; }

  a:focus-visible, .stat-item:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
  }

  /* ── LIVE PULSE ── */
  .live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 6px;
    position: relative;
    vertical-align: middle;
  }

  .live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--green);
    animation: pulse 2s ease-out infinite;
  }

  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
  }

  /* ── TRAJECTORY ── */
  .timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 2rem;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  }

  .tl-item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s, transform 0.5s;
  }

  .tl-item.visible { opacity: 1; transform: translateX(0); }

  .tl-dot {
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    transform: translateX(calc(-50% + 0.5px));
  }

  .tl-dot.highlight { background: var(--green); }

  .tl-month {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
  }

  .tl-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
  }

  .tl-detail {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .tl-highlight-card {
    background: var(--surface);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
    position: relative;
  }

  .tl-highlight-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--green);
  }

  .tl-kv {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }

  .tl-kv-item { font-family: var(--mono); font-size: 0.65rem; }
  .tl-kv-item .k { color: var(--muted); margin-right: 0.4rem; }
  .tl-kv-item .v { color: var(--accent); }
  .tl-kv-item .v.green { color: var(--green); }

  /* ── STACK ── */
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 2rem;
  }

  .stack-item {
    background: var(--bg);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: background 0.2s;
  }

  .stack-item:hover { background: var(--surface); }

  .stack-name {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.3rem;
  }

  .stack-role {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* ── CONTACT ── */
  #contact {
    border-top: 1px solid var(--border);
    padding: 4rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .contact-left .big {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.98;
  }

  .contact-left .big::after {
    content: '';
    display: block;
    width: 180px;
    height: 3px;
    margin-top: 1.4rem;
    background: linear-gradient(90deg, var(--accent), transparent);
  }

  .contact-left .sub {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.8rem;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .contact-link {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
    letter-spacing: 0.08em;
  }

  .contact-link:hover { color: var(--accent); }
  .contact-link .arrow { color: var(--accent); }

  footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-text {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* benchmark cards: subtle staggered entrance (no pin) */
  .bench-grid .bench-card { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .bench-grid.visible .bench-card { opacity: 1; transform: translateY(0); }
  .bench-grid.visible .bench-card:nth-child(1) { transition-delay: 0.05s; }
  .bench-grid.visible .bench-card:nth-child(2) { transition-delay: 0.18s; }
  .bench-grid.visible .bench-card:nth-child(3) { transition-delay: 0.31s; }
  @media (prefers-reduced-motion: reduce) { .bench-grid .bench-card { transition: none; opacity: 1; transform: none; } }

  /* ── TOOLTIP ── */
  [data-tip] { position: relative; cursor: pointer; }

  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
  }

  [data-tip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

  /* scanning line effect on hero */
  @keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
  }

  #hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243,112,33,0.15), transparent);
    animation: scan 8s linear infinite;
    pointer-events: none;
  }

  /* scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); }

  /* ── FMS LIVE WIDGET ── */
  .fms-section {
    padding: 2rem 3rem 0;
    max-width: 1100px;
    margin: 0 auto;
  }

  .fms-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
  }

  .fms-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 3% 50%, rgba(243,112,33,0.04) 0%, transparent 65%);
    pointer-events: none;
  }

  .fms-titlebar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: -2rem -2.5rem 1.6rem;
    padding: 0.7rem 1.2rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .fms-tl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
  .fms-tl-dot.d1 { background: var(--accent2); }
  .fms-tl-dot.d2 { background: #FFB454; }
  .fms-tl-dot.d3 { background: var(--border); }
  .fms-tl-path {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-left: 0.5rem;
  }
  .fms-tl-meta {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-left: auto;
  }

  .fms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .fms-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .fms-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.2em;
  }

  .fms-status-badge {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(0,255,136,0.3);
    color: var(--green);
    background: rgba(0,255,136,0.05);
  }

  .fms-status-badge.connecting {
    border-color: var(--border);
    color: var(--muted);
    background: transparent;
  }

  .fms-product-name {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
  }

  .fms-product-sub {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
  }

  .fms-metrics {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
  }

  .fms-metric {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.4rem;
    border-right: 1px solid var(--border);
    position: relative;
  }

  .fms-metric:last-child { border-right: none; }

  .fms-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .fms-metric:hover::before { opacity: 1; }

  .fms-metric-label {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
  }

  .fms-metric-value {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    transition: color 0.4s;
  }

  .fms-metric-value.bullish  { color: var(--green); }
  .fms-metric-value.bearish  { color: var(--red); }
  .fms-metric-value.neutral  { color: var(--muted); }
  .fms-metric-value.high     { color: var(--red); }
  .fms-metric-value.medium   { color: #f59e0b; }
  .fms-metric-value.low      { color: var(--green); }
  .fms-metric-value.elevated { color: var(--accent); }

  .fms-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .fms-confidence-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .fms-confidence-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  .fms-confidence-val {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.4s;
  }

  .fms-updated {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.06em;
  }

  .fms-cta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: #080a0e;
    background: var(--accent);
    padding: 0.7rem 1.6rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: opacity 0.2s;
  }

  .fms-cta:hover { opacity: 0.85; }

  /* Risk gauge */
  .risk-gauge { margin-top: 0.5rem; }
  .risk-track {
    width: 100%;
    height: 3px;
    background: rgba(217,217,217,0.08);
    border-radius: 999px;
    overflow: hidden;
  }
  .risk-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.7s cubic-bezier(0.16,1,0.3,1), background 0.5s ease;
  }

  /* Direction flash */
  @keyframes border-flash {
    0%   { box-shadow: 0 0 0 1px rgba(243,112,33,0.7), inset 0 0 20px rgba(243,112,33,0.06); }
    100% { box-shadow: none; }
  }
  .fms-widget.direction-changed { animation: border-flash 0.7s ease-out forwards; }

  @keyframes shimmer {
    0%   { opacity: 0.25; }
    50%  { opacity: 0.55; }
    100% { opacity: 0.25; }
  }

  .fms-skeleton { animation: shimmer 1.5s ease-in-out infinite; color: var(--muted) !important; }

  @media (max-width: 640px) {
    .fms-section { padding: 2rem 1.5rem 0; }
    .fms-widget  { padding: 1.5rem; }
    .fms-titlebar { margin: -1.5rem -1.5rem 1.2rem; }
    .fms-product-name { font-size: 1.2rem; }
    .fms-metric { flex: 0 0 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--border); }
    .fms-metric:last-child { border-bottom: none; }
  }

  /* ── PROJECT EXT VALIDATION ── */
  @keyframes ext-link-pulse {
    0%, 100% { border-color: rgba(232,90,0,0.22); }
    50%       { border-color: rgba(232,90,0,0.6); box-shadow: 0 0 7px rgba(232,90,0,0.18); }
  }
  @keyframes ext-link-pulse-orange {
    0%, 100% { border-color: rgba(243,112,33,0.22); }
    50%       { border-color: rgba(243,112,33,0.6); box-shadow: 0 0 7px rgba(243,112,33,0.18); }
  }
  .project-ext-val {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .project-ext-val-title {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.07em;
    margin-bottom: 0.45rem;
    line-height: 1.5;
  }
  .project-ext-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .project-ext-link {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--accent2);
    text-decoration: none;
    border: 1px solid rgba(232,90,0,0.22);
    padding: 0.18rem 0.55rem;
    letter-spacing: 0.06em;
    transition: color 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
    animation: ext-link-pulse 2.8s ease-in-out infinite;
  }
  .project-ext-link:hover {
    color: var(--text);
    border-color: rgba(232,90,0,0.85);
    background: rgba(232,90,0,0.08);
    box-shadow: 0 0 10px rgba(232,90,0,0.28);
  }
  .project-ext-link.lwn {
    color: var(--accent);
    border-color: rgba(243,112,33,0.22);
    animation: ext-link-pulse-orange 2.8s ease-in-out 1.4s infinite;
  }
  .project-ext-link.lwn:hover {
    border-color: rgba(243,112,33,0.85);
    background: rgba(243,112,33,0.08);
    box-shadow: 0 0 10px rgba(243,112,33,0.28);
  }
  .project-ext-sep {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--muted);
    user-select: none;
  }
  .project-ext-date {
    font-size: 0.55rem;
    color: var(--muted);
    margin-left: 0.35rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
  }
  .project-ext-link:hover .project-ext-date { color: rgba(255,255,255,0.5); }

  /* ── MARKET · why verification ── */
  .market-lead {
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--read);
    max-width: 760px;
    margin: 1.6rem 0 0.4rem;
  }
  .market-lead b { color: var(--accent); font-weight: 700; }
  .market-lead .kr { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 0.6rem; line-height: 1.8; }

  .market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 2rem;
  }
  .market-card {
    background: var(--bg);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: background 0.3s;
  }
  .market-card:hover { background: var(--surface); }
  .market-card .mc-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
  }
  .market-card .mc-signal { font-size: 0.86rem; line-height: 1.6; color: var(--text); }
  .market-card .mc-signal b { color: var(--accent); }
  .market-card .mc-src {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: 0.4rem;
    line-height: 1.5;
  }
  .market-card .mc-src a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(90,98,120,0.4); }
  .market-card .mc-src a:hover { color: var(--accent); border-color: var(--accent); }

  .market-quote {
    margin: 2.4rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--accent);
    background: rgba(243,112,33,0.04);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
  }
  .market-quote cite {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-style: normal;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  /* L1 / L2 / L3 — where Scalar sits */
  .layer-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 2rem;
  }
  .layer-row {
    background: var(--bg);
    display: grid;
    grid-template-columns: 138px 1.4fr 1.6fr 124px;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
  }
  .layer-row .lr-tag { color: var(--muted); letter-spacing: 0.04em; }
  .layer-row .lr-tag b { display: block; color: var(--text); font-size: 0.82rem; letter-spacing: 0.08em; }
  .layer-row .lr-tools { color: var(--read); }
  .layer-row .lr-does { color: var(--muted); }
  .layer-row .lr-rel { text-align: right; color: var(--muted); }
  .layer-row.scalar { background: linear-gradient(90deg, rgba(243,112,33,0.1), rgba(243,112,33,0.02)); }
  .layer-row.scalar .lr-tag b { color: var(--accent); }
  .layer-row.scalar .lr-tools { color: var(--text); }
  .layer-row.scalar .lr-does { color: var(--read); }
  .layer-row.scalar .lr-rel { color: var(--accent); }

  .market-close {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.85;
    color: var(--read);
    max-width: 780px;
    margin-top: 2rem;
  }
  .market-close b { color: var(--accent); }
  .market-close .kr { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.5rem; }

  /* ── ABOUT · brand history + founder ── */
  .journey {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 2rem;
  }
  .journey-node {
    flex: 1 1 130px;
    min-width: 130px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .journey-node .jn-step { font-family: var(--mono); font-size: 0.55rem; color: var(--muted); letter-spacing: 0.16em; }
  .journey-node .jn-label { font-family: var(--mono); font-size: 0.74rem; color: var(--text); line-height: 1.4; }
  .journey-node:last-child { border-top-color: var(--green); }
  .journey-node:last-child .jn-label { color: var(--green); }

  .about-lead {
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--read);
    max-width: 780px;
    margin-top: 1.8rem;
  }
  .about-lead em { color: var(--accent); font-style: normal; }
  .about-lead .kr { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 0.6rem; }

  .founder-card {
    margin-top: 2.2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1.8rem 2rem;
  }
  .founder-card .fc-name { font-family: var(--sans); font-weight: 800; font-size: 1.3rem; color: var(--text); }
  .founder-card .fc-role { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.06em; margin-top: 0.3rem; }
  .founder-card .fc-thesis { font-family: var(--mono); font-size: 0.82rem; line-height: 1.8; color: var(--read); margin-top: 1.1rem; max-width: 700px; }
  .founder-card .fc-thesis b { color: var(--accent); }
  .founder-card .fc-thesis .kr { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.5rem; }
  .founder-card .fc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-top: 1.3rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--muted);
  }
  .founder-card .fc-meta a { color: var(--accent); text-decoration: none; }
  .founder-card .fc-meta a:hover { text-decoration: underline; }

  /* ── MOBILE RESPONSIVE ── */
  @media (max-width: 768px) {
    /* nav */
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }

    /* hero */
    #hero { padding: 6rem 1.5rem 3rem; }

    /* sections */
    section { padding: 3.5rem 1.5rem; }
    #benchmark { padding: 3.5rem 1.5rem; }

    /* bench grid: 3 cols → 1 col */
    .bench-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* projects: 2 cols → 1 col */
    .projects-grid { grid-template-columns: 1fr; }

    /* flow diagram: already overflow-x:auto, just limit min width */
    

    /* hero stats: stack on very small */
    .hero-stats { flex-direction: column; gap: 0; }
    .stat-item  { min-width: 0; flex: 0 0 auto; margin: 0 0 -1px 0; }

    /* section title */
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }

    /* market + about: stack everything */
    .market-grid { grid-template-columns: 1fr; }
    .market-quote { font-size: 0.9rem; padding: 1rem 1.2rem; }
    .layer-row { grid-template-columns: 1fr; gap: 0.35rem; }
    .layer-row .lr-rel { text-align: left; }
    .journey-node { flex: 1 1 100%; }
    .founder-card { padding: 1.4rem 1.3rem; }
  }


/* ── multi-page additions ── */
.badge-rc { color: var(--muted); border-color: var(--border); background: rgba(255,255,255,0.02); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #080a0e; padding: 0.5rem 1rem; z-index: 999; font-family: 'Space Mono', monospace; font-size: 0.72rem; }
.skip-link:focus { left: 0; }
.kr-sub { color: var(--read); font-size: 0.82rem; }
.btn-row { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn { font-family: 'Space Mono', monospace; font-size: 0.72rem; padding: 0.7rem 1.4rem; text-decoration: none; letter-spacing: 0.08em; transition: opacity 0.2s, background 0.2s, color 0.2s; }
.btn-primary { color: #080a0e; background: var(--accent); }
.btn-primary:hover { opacity: 0.85; }
.btn-accent { color: var(--accent); border: 1px solid var(--accent); }
.btn-accent:hover { background: rgba(243,112,33,0.1); }
.btn-ghost { color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: center; padding: 1.6rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; }
.trust-strip a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.trust-strip a:hover { color: var(--accent); }
.trust-strip .sep { color: var(--border); }
.page-head { padding: 8rem 2rem 3rem; max-width: 1060px; margin: 0 auto; }
.page-head h1 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.page-head p { color: var(--read); font-size: 0.9rem; line-height: 1.8; max-width: 640px; }
