:root {
    --bg: #050910;
    --bg-elev: #0c1424;
    --panel: #09111e;
    --text: #eef3f8;
    --muted: #9aabbf;
    --dim: #7e90a6;
    --cyan: #5eead4;
    --cyan-deep: #14b8a6;
    --violet: #c4b5fd;
    --line: rgba(148, 196, 206, 0.18);
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Instrument Sans", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --nav: 76px;
    --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#overview,
#architecture,
#gennet,
#roadmap {
    scroll-margin-top: 108px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 85% -8%, rgba(45, 212, 191, 0.09), transparent 55%),
        radial-gradient(700px 420px at 8% 12%, rgba(99, 80, 180, 0.08), transparent 50%),
        var(--bg);
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid #99f6e4;
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -40px;
    background: var(--cyan);
    color: #04211e;
    padding: 8px 12px;
    z-index: 20;
}

.skip:focus { top: 12px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--nav);
    background: rgba(5, 9, 16, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 196, 206, 0.1);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.brand-block { justify-self: start; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}

.mark { width: 22px; height: 22px; }

.crumb {
    margin: 2px 0 0 32px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--dim);
}

.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--cyan); }
.crumb span { margin: 0 6px; }

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
    border-bottom-color: var(--cyan);
}

.nav-github {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(226, 232, 240, 0.28);
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.9rem;
    color: var(--text);
}

.nav-github svg,
.btn svg,
.text-link svg { width: 14px; height: 14px; }

.nav-github:hover { border-color: var(--cyan); color: var(--cyan); }

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 52px 24px 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    min-height: 0;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.project-name {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.14em;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.project-name span {
    display: block;
    margin-top: 6px;
    letter-spacing: 0;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    color: var(--muted);
}

h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    max-width: 18ch;
}

.lede {
    margin-top: 22px;
    max-width: 42rem;
    color: #d5dee8;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: #3ee0d2;
    color: #04221f;
}

.btn-primary:hover { background: #7af3e8; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(226, 232, 240, 0.28);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.vision-label {
    margin-top: 22px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--dim);
}

.map-cue {
    margin-top: 10px;
    font-family: var(--display);
    font-weight: 600;
}

.map-cue a {
    color: var(--cyan);
    text-decoration: none;
}

.map-cue a:hover { color: #bffcf4; }

.hero-foundations {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    text-underline-offset: 4px;
}
.hero-foundations:hover { color: var(--cyan); }
.hero-visual {
    margin: 0;
    min-width: 0;
    padding: 24px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 40%, rgba(34, 132, 131, 0.1), transparent 65%), rgba(9, 17, 30, 0.7);
}
.hero-viz-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-viz-heading .kicker { margin: 0; }
.hero-visual h2 { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -0.025em; margin-top: 8px; }
.hero-diagram { overflow-x: auto; overscroll-behavior-x: contain; }
#hero-svg { display: block; width: 100%; height: auto; overflow: visible; margin: 4px 0 0; }
#hero-svg text { fill: #b9c9d7; font-family: var(--sans); font-size: 15px; }
#hero-svg .svg-layer { fill: #ecf4fa; font-family: var(--display); font-size: 17px; font-weight: 600; }
#hero-svg .svg-strong { fill: #e9f6f6; font-family: var(--display); font-size: 16px; font-weight: 600; }
#hero-svg .svg-small { font-size: 13px; }
#hero-svg .svg-caption { fill: var(--cyan); font-size: 16px; }
.hero-prior rect { fill: #181c32; stroke: #7f71ae; stroke-width: 1; }
.hero-prior path { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 4 5; }
.hero-edge { fill: none; stroke: #38616b; stroke-width: 1.35; }
.hero-edge.is-signal { stroke: var(--cyan); stroke-width: 2.8; stroke-dasharray: 8 7; animation: signal-flow 2.5s linear infinite; }
.hero-regulatory { display: none; stroke: var(--violet); stroke-dasharray: 4 5; }
.hero-visual[data-mode="regulatory"] .hero-regulatory { display: block; }
.hero-visual[data-mode="regulatory"] .hero-edge.is-signal { stroke: var(--violet); }
.neuron-ring { fill: #133038; stroke: #335c68; stroke-width: 1; }
.neuron-core { fill: #69b1b6; }
.hero-neuron.is-active .neuron-ring { fill: #134b48; stroke: var(--cyan); }
.hero-neuron.is-active .neuron-core { fill: #d6fff6; }
.hero-visual[data-mode="regulatory"] .hero-neuron.is-active .neuron-ring { fill: #302944; stroke: var(--violet); }
.hero-omics { display: none; }
.hero-visual[data-mode="multiomics"] .hero-omics { display: block; }
.hero-omics rect { fill: #102d30; stroke: var(--cyan); }
.hero-omics path { fill: none; stroke: var(--cyan); stroke-width: 2.8; stroke-dasharray: 8 7; animation: signal-flow 2.5s linear infinite; }
.hero-interpretation rect { fill: #0d1b28; stroke: #42616d; }
.hero-interpretation path { fill: none; stroke: #66858e; stroke-width: 1.3; stroke-dasharray: 2 4; }
.hero-viz-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-modes { justify-content: flex-start; gap: 6px; }
.hero-modes button { padding: 0 10px; font-size: 0.86rem; }
.motion-toggle { color: var(--muted); background: none; border: 0; padding: 0 6px; min-height: 44px; font-family: var(--sans); font-size: 0.86rem; cursor: pointer; }
.motion-toggle:hover { color: var(--text); }
#hero-explanation { font-size: 0.97rem; color: #cbd8e3; line-height: 1.5; margin-top: 12px; min-height: 4.5em; }
.hero-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.hero-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hero-legend i { display: inline-block; width: 18px; border-top: 2px solid #69b1b6; }
.hero-legend .legend-prior { border-top: 2px dashed var(--violet); }
@keyframes signal-flow { to { stroke-dashoffset: -60; } }
.hero-visual.is-paused *, .hero-visual.is-offscreen * { animation-play-state: paused; }

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 24px 10px;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-lead {
    max-width: 44rem;
    color: #d5dee8;
    margin-bottom: 22px;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
}

.steps li {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: rgba(12, 20, 36, 0.72);
}

.steps h3 {
    font-family: var(--display);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.steps p { color: #d5dee8; margin: 0; }

#arch-graph[data-topology="proximity"] #arch-wires path.is-hot { stroke: #5eead4; }
#arch-graph[data-topology="regulatory"] #arch-wires path.is-hot { stroke: #c4b5fd; }
#arch-graph[data-topology="tissue"] #arch-wires path { stroke: rgba(148, 184, 198, 0.12); }
#arch-graph[data-topology="tissue"] #arch-wires path.is-hot,
#arch-graph[data-topology="tissue"] #arch-wires path.is-touch { stroke: #86efac; }

.panel {
    background:
        linear-gradient(180deg, rgba(94, 234, 212, 0.05), transparent 120px),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 28px 28px 22px;
}

.arch-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.arch-head h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    font-weight: 600;
}

.arch-head p { color: var(--muted); margin-top: 6px; }

.arch-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pills button {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 196, 206, 0.22);
    background: transparent;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.92rem;
    cursor: pointer;
}

.pills button[aria-checked="true"] {
    color: #d9fff8;
    border-color: rgba(94, 234, 212, 0.85);
    background: rgba(20, 80, 78, 0.55);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.15);
}

.pills button:hover { border-color: rgba(94, 234, 212, 0.55); color: var(--text); }

.concept-badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
}

.arch-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 22px;
    align-items: start;
}

.graph {
    position: relative;
    min-height: 390px;
}

#arch-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

#arch-wires path {
    fill: none;
    stroke: rgba(148, 184, 198, 0.38);
    stroke-width: 1.25;
}

#arch-wires path.is-hot {
    stroke: url(#arch-hot);
    stroke-width: 2.35;
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.75));
    stroke-dasharray: 7 9;
    animation: flow 6s linear infinite;
}

#arch-wires path.is-touch {
    stroke: #7ef3e8;
    stroke-width: 1.7;
    stroke-dasharray: 5 8;
    animation: flow 7.5s linear infinite;
}

#arch-wires path.is-prior,
#arch-wires path.is-train {
    stroke: rgba(94, 234, 212, 0.28);
    stroke-dasharray: 2 7;
}

#arch-wires path.is-prior.is-emphasis,
#arch-wires path.is-train.is-emphasis {
    stroke: #99f6e4;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.6));
}

@keyframes flow {
    to { stroke-dashoffset: -180; }
}

.graph-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 8px;
    min-height: 390px;
}

.gcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gcol-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8ea0b5;
}

.gcol.is-current .gcol-label { color: var(--cyan); }

.node-stack {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    min-height: 300px;
}

.source-btn {
    width: 100%;
    text-align: left;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 196, 206, 0.2);
    background: rgba(6, 12, 22, 0.55);
    color: var(--text);
    cursor: pointer;
    min-height: 64px;
}

.source-btn strong {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
}

.source-btn span {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--dim);
}

.source-btn:hover { border-color: rgba(94, 234, 212, 0.45); }

.source-btn.is-selected,
.node.is-selected {
    border-color: rgba(94, 234, 212, 0.8);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25), 0 0 22px rgba(45, 212, 191, 0.14);
}

.node {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.node-caption { position: absolute; left: calc(100% - 2px); top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 0.67rem; color: #9ebbc7; }
.node.is-selected .node-caption { color: var(--cyan); }

.node::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1d4e58;
    box-shadow: 0 0 0 5px rgba(45, 180, 180, 0.08);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.node:hover::before {
    background: #7dd3c7;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.45);
}

.node.is-selected::before {
    width: 16px;
    height: 16px;
    background: #f4fffd;
    box-shadow: 0 0 16px #5eead4, 0 0 32px rgba(167, 139, 250, 0.55);
}

.node-out::before { width: 14px; height: 14px; background: #245e68; }

.arch-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 62rem;
}

.inspector {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
    background: rgba(5, 10, 18, 0.55);
    min-height: 280px;
}

.kicker {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.inspector h3 {
    font-family: var(--display);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 12px;
}

.inspector p { color: #d5dee8; }

.topo-line {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.split-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 26px 26px 22px;
    border-radius: 22px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
}

.card-live { box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.08); }
.card-plan { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.1); }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.45);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-plan {
    border-color: rgba(196, 181, 253, 0.5);
    color: var(--violet);
}

.split-card h3 {
    margin: 14px 0 10px;
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    font-weight: 600;
    max-width: 16ch;
}

.split-card p,
.split-card li {
    color: #d5dee8;
    max-width: 36rem;
}

.split-card ul,
.split-card ol {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.split-card li {
    padding: 5px 0 5px 16px;
    position: relative;
}

.split-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    position: absolute;
    left: 0;
    top: 0.72em;
}

.card-plan li::before { background: var(--violet); }

.card-meta {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.card-meta a { color: var(--cyan); }

.paper-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.paper-list li {
    margin: 0 0 8px;
    color: #d5dee8;
}

.paper-list a { color: var(--cyan); }

.paper-list span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.text-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    min-height: 44px;
    color: var(--cyan);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
}

.text-link:hover { color: #bffcf4; }

.card-art {
    position: absolute;
    right: -10px;
    bottom: -20px;
    width: min(240px, 52%);
    height: auto;
    pointer-events: none;
    opacity: 0.9;
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.foundation-card,
.bridge {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: rgba(12, 20, 36, 0.72);
}

.foundation-card.is-featured { grid-column: 1 / -1; }

.topic-label {
    margin: 0;
    color: var(--cyan);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.foundation-card h3,
.bridge h3 {
    font-family: var(--display);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 8px 0;
}

.venue { color: var(--muted); margin: 0 0 8px; }

.bridge { margin-top: 14px; }

.bridge-map { display: grid; grid-template-columns: 1fr 0.9fr 1fr; align-items: stretch; gap: 18px; margin: 20px 0; }
.bridge-lane, .bridge-shared { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #0b1523; }
.bridge-lane.is-selected { border-color: var(--cyan); background: #0e232b; }
.bridge-map h4, .bridge-detail h4 { margin: 0 0 10px; font-family: var(--display); font-size: 1.05rem; line-height: 1.35; }
.bridge-map p { color: #cbd8e3; font-size: 1rem; }
.bridge-map .kicker { color: var(--cyan); font-size: 0.7rem; }
.bridge-shared { border-color: #6b6093; background: #181c30; }
.bridge-connector { color: var(--violet) !important; font-size: 1.8rem !important; line-height: 1; margin-bottom: 12px; }
.bridge-result { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.bridge-result span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.bridge-detail { padding: 18px 20px; border-left: 2px solid var(--cyan); background: rgba(19, 78, 74, 0.12); }
.bridge-detail p { margin: 0 0 8px; color: #d5dee8; }
.bridge-detail p:last-child { margin-bottom: 0; }

.bridge .pills { margin: 12px 0; }

.bridge-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

.bridge-links a { color: var(--cyan); }

.collaborate {
    max-width: var(--max);
    margin: 18px auto 0;
    padding: 54px 24px 36px;
}

.collaborate h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    font-weight: 600;
    max-width: 18ch;
}

.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 24px 36px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(148, 196, 206, 0.1);
    color: var(--dim);
    font-size: 0.92rem;
}

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

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

@media (max-width: 900px) {
    .nav-inner { grid-template-columns: 1fr auto; }
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .nav { height: auto; }
    .hero,
    .arch-body,
    .split,
    .steps,
    .foundation-grid,
    .bridge-map { grid-template-columns: 1fr; }
    .hero { min-height: 0; padding-top: 28px; }
    .hero-visual { max-width: 680px; width: 100%; justify-self: center; }
    .arch-tools { align-items: flex-start; }
    .pills { justify-content: flex-start; }
    .arch-main {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    .graph,
    .graph-grid { min-width: 680px; }
    .graph-grid {
        grid-template-columns: 168px repeat(4, 1fr);
        min-height: 340px;
    }
    .node-stack { min-height: 280px; }
    .card-art { opacity: 0.45; }
    h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #arch-wires path.is-hot,
    #arch-wires path.is-touch {
        animation: none;
        stroke-dasharray: none;
    }
    .node::before { transition: none; }
}


@media (max-width: 560px) {
    .hero { padding: 32px 18px 24px; gap: 28px; }
    .hero-visual { padding: 18px 12px; border-radius: 18px; }
    .hero-viz-heading { gap: 6px; }
    .hero-viz-heading .kicker { font-size: 0.62rem; letter-spacing: 0.08em; }
    .hero-viz-heading .concept-badge { font-size: 0.56rem; }
    #hero-svg .svg-layer, #hero-svg .svg-caption { font-size: 24px; }
    #hero-svg .svg-strong { font-size: 23px; }
    #hero-svg .hero-prior .svg-strong { font-size: 21px; }
    .hero-prior text:not(.svg-strong), .hero-interpretation text:not(.svg-strong) { display: none; }
    .hero-viz-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .hero-modes { gap: 4px; }
    .hero-modes button { padding: 0 9px; font-size: 0.8rem; }
    .motion-toggle { margin-left: auto; }
    .nav-inner { padding: 8px 18px 0; gap: 6px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.86rem; }
    .section { padding: 26px 18px 10px; }
    .panel { padding: 20px 16px; }
    .bridge-map { gap: 10px; }
    .bridge-lane, .bridge-shared { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-edge.is-signal, .hero-omics path { animation: none; }
}
