:root {
  --ink: #17202c;
  --paper: #ffffff;
  --warm: #f5f3ee;
  --line: #d9d6ce;
  --muted: #66717d;
  --coral: #f29e92;
  --coral-dark: #9d4139;
  --coral-soft: #fbe3df;
  --blue: #8faadc;
  --blue-dark: #405f91;
  --blue-soft: #e4eaf6;
  --sand: #d4c18a;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  --shell: min(1280px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
h1 { max-width: 760px; font-size: clamp(3.6rem, 6.8vw, 6.7rem); }
h2 { font-size: clamp(2.45rem, 4.5vw, 4.65rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
.shell { width: var(--shell); margin-inline: auto; }
.section-rule { border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(217,214,206,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.nav-shell { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 1.24rem; font-weight: 500; }
.brand small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: .55rem; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { position: relative; width: 37px; height: 37px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: rotate(45deg); }
.brand-mark i { display: block; background: var(--ink); }
.brand-mark i:nth-child(1) { background: var(--coral); border-radius: 12px 0 0 0; }
.brand-mark i:nth-child(2) { background: var(--blue); border-radius: 0 12px 0 0; }
.brand-mark i:nth-child(3) { border-radius: 0 0 0 12px; }
.brand-mark i:nth-child(4) { background: var(--sand); border-radius: 0 0 12px 0; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 35px); font-size: .91rem; }
nav a { text-decoration: none; }
nav a:not(.nav-cta) { position: relative; padding-block: 10px; }
nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--coral-dark); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 17px; border: 1px solid var(--ink); transition: .2s ease; }
.nav-cta:hover { background: var(--ink); color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; }
.nav-toggle span { display: block; width: 20px; height: 1px; margin: 5px auto; background: var(--ink); }

.hero { overflow: hidden; padding: clamp(56px, 7vw, 108px) 0 clamp(68px, 8vw, 124px); background: linear-gradient(125deg, #fff 0 56%, #f8f6f2 56%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(480px, .96fr); align-items: center; gap: clamp(42px, 6vw, 95px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--coral-dark); font-family: var(--mono); font-size: .69rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 29px; height: 2px; background: currentColor; }
.hero h1 { margin-bottom: 30px; }
.lede { max-width: 660px; color: #4c5967; font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 19px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.button-quiet:hover { background: var(--warm); }
.boundary-note { max-width: 620px; display: flex; align-items: flex-start; gap: 9px; margin: 30px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.open-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 5px; border: 2px solid var(--blue-dark); border-radius: 50%; }

.hero-visual { position: relative; min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,.78); box-shadow: 20px 20px 0 var(--coral-soft), -12px -12px 0 var(--blue-soft); }
.visual-topline { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 14px 9px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.motion-controls { display: flex; gap: 4px; }
.motion-controls button { padding: 5px 8px; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; cursor: pointer; }
.motion-controls button:hover { color: var(--ink); }
.pipeline-stage { position: relative; aspect-ratio: 720 / 510; overflow: hidden; }
.pipeline-stage svg { width: 100%; height: 100%; }
.stage { opacity: 0; transition: opacity .55s ease, transform .55s ease; transform: translateY(8px); pointer-events: none; }
.stage.active { opacity: 1; transform: none; }
.svg-kicker, .map-label { fill: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; }
.svg-caption { fill: var(--muted); font-family: var(--sans); font-size: 15px; }
.edges path, .small-graph path { fill: none; stroke: #8e98a3; stroke-width: 2; }
.nodes circle { fill: var(--coral); stroke: var(--coral-dark); stroke-width: 2; }
.nodes circle:nth-child(2n) { fill: var(--blue); stroke: var(--blue-dark); }
.nodes circle:nth-child(3n) { fill: var(--sand); stroke: #8f7b48; }
.attribute-bars rect { fill: var(--coral); }
.attribute-bars rect:nth-child(2) { fill: var(--blue); }
.attribute-bars rect:nth-child(3) { fill: var(--sand); }
.flow { fill: none; stroke-width: 2; stroke-dasharray: 5 6; }
.coral-stroke { stroke: var(--coral-dark); }
.blue-stroke { stroke: var(--blue-dark); }
.ink-stroke { stroke: var(--ink); }
.map-feature rect, .coral-pixels rect { fill: var(--coral); opacity: .2; }
.map-feature rect.hot, .coral-pixels rect.hot { opacity: .9; }
.map-structure rect, .blue-pixels rect { fill: var(--blue); opacity: .18; }
.map-structure rect.hot, .blue-pixels rect.hot { opacity: .86; }
.coral-fill { fill: var(--coral-dark); }
.blue-fill { fill: var(--blue-dark); }
.image-back, .image-front { stroke: var(--ink); stroke-width: 1.5; }
.image-back.blue { fill: #f1f4fa; }
.image-front.coral { fill: rgba(251,227,223,.93); }
.bracket { fill: none; stroke: var(--ink); stroke-width: 2; }
.mini-image > rect { fill: var(--coral-soft); stroke: var(--ink); }
.cnn-stack rect { fill: var(--ink); opacity: .82; }
.cnn-stack rect:nth-child(2) { fill: var(--coral-dark); }
.cnn-stack rect:nth-child(3) { fill: var(--blue-dark); }
.prediction-bars rect { fill: var(--line); }
.prediction-bars rect:first-child { fill: var(--coral-dark); }
.attribution-map { fill: #f2f3f5; stroke: var(--ink); }
.pulse { fill: url(#blend); opacity: .68; filter: url(#soft); }
.result-title { fill: var(--ink); font-family: var(--serif); font-size: 26px; }
.result-card rect { fill: url(#blend); }
.result-copy { fill: var(--muted); font-family: var(--sans); font-size: 17px; }
.feature-key rect, .node-feature-table rect { fill: var(--coral); }
.feature-key rect:nth-of-type(2), .node-feature-table rect:nth-of-type(2) { fill: var(--blue); }
.feature-key rect:nth-of-type(3), .node-feature-table rect:nth-of-type(3) { fill: var(--sand); }
.feature-key rect:nth-of-type(4), .node-feature-table rect:nth-of-type(4) { fill: var(--blue-dark); }
.cluster-halo circle { opacity: .14; }
.coral-halo circle { fill: var(--coral); }
.blue-halo circle { fill: var(--blue); }
.sand-halo circle { fill: var(--sand); }
.cluster-edges path, .community-summary path { fill: none; stroke: #7a8590; stroke-width: 2; }
.cluster-nodes circle, .community-summary circle { stroke: var(--ink); stroke-width: 1.5; }
.cluster-nodes .c1, .community-summary .c1 { fill: var(--coral); }
.cluster-nodes .c2, .community-summary .c2 { fill: var(--blue); }
.cluster-nodes .c3, .community-summary .c3 { fill: var(--sand); }
.cluster-label { font-family: var(--mono); font-size: 10px; letter-spacing: .8px; }
.sand-fill { fill: #846f38; }
.solid-flow { fill: none; stroke: var(--ink); stroke-width: 2; }
.channel-frame { stroke: var(--ink); stroke-width: 1.5; }
.channel-frame.blue { fill: var(--blue-soft); }
.channel-frame.coral { fill: var(--coral-soft); }
.channel-frame.back { opacity: .92; }
.structure-map rect, .stack-structure rect { fill: var(--blue); opacity: .18; }
.structure-map rect.hot, .stack-structure rect.hot { opacity: .9; }
.feature-map rect, .stack-feature rect { fill: var(--coral); opacity: .17; }
.feature-map rect.hot, .stack-feature rect.hot { opacity: .92; }
.epoch-loop path { fill: none; stroke: var(--coral-dark); stroke-width: 2; stroke-dasharray: 7 7; }
.scale-lane .lane-title { fill: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
.scale-lane .lane-line { fill: none; stroke-width: 2.5; }
.scale-lane circle, .scale-lane rect { fill: white; stroke: var(--ink); stroke-width: 1.5; }
.g2i-lane circle { fill: var(--coral); stroke: var(--coral-dark); }
.g2i-lane rect { fill: var(--coral-soft); }
.gnn-lane rect { fill: var(--blue-soft); stroke: var(--blue-dark); }
.lane-copy { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.edge-burden { fill: none; stroke: var(--blue-dark); stroke-width: 2; }
.oom-copy { fill: var(--blue-dark); font-family: var(--mono); font-size: 14px; font-weight: 600; }
.step-dots { display: flex; justify-content: center; gap: 7px; padding: 0 0 16px; }
.step-dots i { width: 24px; height: 2px; background: var(--line); transition: background .2s ease; }
.step-dots i.active { background: var(--coral-dark); }
.visual-footnote { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; }

.evidence-band { padding: clamp(76px, 9vw, 130px) 0; background: var(--ink); color: white; }
.section-intro { max-width: 860px; margin-bottom: clamp(42px, 5vw, 70px); }
.section-intro.inverse .eyebrow { color: var(--coral); }
.section-intro h2 { margin-bottom: 24px; }
.section-intro > p:last-child { max-width: 720px; color: var(--muted); font-size: 1.12rem; }
.section-intro.inverse > p:last-child { color: #b9c2cc; }
.section-intro.compact { max-width: 690px; margin-bottom: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #46505d; border-left: 1px solid #46505d; }
.metric-card { min-height: 300px; padding: 28px 30px; border-right: 1px solid #46505d; border-bottom: 1px solid #46505d; }
.metric-label, .metric-context, .metric-uncertainty { font-family: var(--mono); }
.metric-label { color: #bfc7d0; font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.metric-value { margin: 54px 0 9px; color: var(--coral); font-family: var(--serif); font-size: clamp(4.6rem, 7vw, 7.3rem); line-height: .75; letter-spacing: -.06em; }
.metric-value span { margin-left: 4px; font-family: var(--mono); font-size: .22em; letter-spacing: 0; }
.metric-value .metric-multiplier { font-size: .43em; vertical-align: .08em; }
.blue-text { color: #b8cbef; }
.sand-text { color: #decf9d; }
.metric-uncertainty { color: white; font-size: .73rem; }
.metric-context { max-width: 280px; margin: 36px 0 0; color: #98a3ae; font-size: .65rem; line-height: 1.55; }

.atlas, .method, .scalability, .biology, .examples, .channels, .paper, .limitations, .team { padding: clamp(76px, 10vw, 150px) 0; }
.atlas { overflow: hidden; background: linear-gradient(180deg, #fff, #faf9f6); }
.atlas-heading { display: flex; justify-content: space-between; align-items: end; gap: 45px; margin-bottom: 65px; }
.atlas-toggle { flex: 0 0 auto; margin: 0; border-color: var(--line); }
.atlas-toggle button { border-color: var(--line); color: var(--muted); }
.atlas-toggle button.active { background: var(--ink); color: white; }
.atlas-chart { border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; }
.atlas-scale { min-height: 52px; display: grid; grid-template-columns: minmax(210px,.65fr) repeat(5, 1fr); align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .58rem; }
.atlas-scale span { padding-left: 22px; color: var(--ink); letter-spacing: .07em; text-transform: uppercase; }
.atlas-scale i { border-left: 1px solid #ebe8e1; font-style: normal; text-align: center; }
.atlas-row { min-height: 128px; display: grid; grid-template-columns: minmax(210px,.65fr) 2.5fr; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.atlas-row > div:first-child { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 20px 22px; border-right: 1px solid var(--line); }
.atlas-row > div:first-child strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.atlas-row > div:first-child span { color: var(--muted); font-family: var(--mono); font-size: .55rem; text-transform: uppercase; }
.paired-bars { display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: 21px 24px; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), #ebe8e1 25%); }
.paired-bars p { display: grid; grid-template-columns: 94px minmax(80px,1fr) 54px; align-items: center; gap: 12px; margin: 0; }
.paired-bars span, .paired-bars strong { font-family: var(--mono); font-size: .59rem; font-weight: 500; }
.paired-bars i { height: 11px; background: #eeece7; }
.paired-bars b { display: block; width: 0; height: 100%; background: var(--blue-dark); transition: width 1s cubic-bezier(.22,.8,.24,1); }
.paired-bars b.g2i { background: var(--coral-dark); }
.atlas-chart.drawn .paired-bars b { width: var(--score); }
.evidence-ledger { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ledger-card { min-height: 300px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.ledger-card > span { color: var(--coral-dark); font-family: var(--mono); font-size: .61rem; letter-spacing: .07em; text-transform: uppercase; }
.ledger-card h3 { margin: 48px 0 25px; font-family: var(--serif); font-size: 2.45rem; font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.ledger-card h3 i { color: var(--muted); font-family: var(--mono); font-size: .39em; font-style: normal; letter-spacing: 0; }
.ledger-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: clamp(30px, 5vw, 74px); align-items: start; }
.video-frame { position: relative; background: var(--ink); box-shadow: 18px 18px 0 var(--warm); }
.video-frame::before { position: absolute; z-index: -1; inset: -12px 12px 12px -12px; border: 1px solid var(--line); content: ""; }
.video-frame video { width: 100%; aspect-ratio: 16/9; background: var(--ink); }
.method-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.method-steps li > span { color: var(--coral-dark); font-family: var(--mono); font-size: .67rem; }
.method-steps h3 { margin-bottom: 7px; font-family: var(--serif); font-weight: 400; }
.method-steps p { margin: 0; color: var(--muted); font-size: .91rem; }

.scalability { overflow: hidden; background: var(--ink); color: white; }
.scale-grid { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr); gap: clamp(34px,6vw,86px); align-items: center; }
.scalability .eyebrow { color: var(--coral); }
.scalability .section-intro > p:last-of-type { color: #b9c2cc; }
.scale-controls { margin-top: 30px; }
.scale-controls button { border: 1px solid #54606d; color: #c8d0d8; }
.scale-controls button:hover { border-color: var(--coral); color: white; }
.scale-animation { min-width: 0; overflow: hidden; border: 1px solid #4d5865; background: #111b29; }
.scale-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 17px; border-bottom: 1px solid #3d4855; font-family: var(--mono); font-size: .59rem; letter-spacing: .06em; text-transform: uppercase; }
.scale-head span { color: #9da8b4; }
.scale-head b { color: var(--coral); font-weight: 500; }
.scale-pipeline { position: relative; min-height: 152px; display: grid; grid-template-columns: 118px 92px 26px 112px 26px 82px 26px minmax(72px,1fr); align-items: center; gap: 9px; padding: 20px; border-bottom: 1px solid #3d4855; }
.scale-pipeline > strong { color: white; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.network-glyph { position: relative; width: 88px; height: 68px; display: grid; grid-template-columns: repeat(3,1fr); place-items: center; }
.network-glyph::before, .network-glyph::after { position: absolute; inset: 13px 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .55; content: ""; transform: rotate(24deg); }
.network-glyph::after { transform: rotate(-27deg); }
.network-glyph i { position: relative; z-index: 1; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; background: #111b29; }
.coral-network { color: var(--coral); }
.blue-network { color: #a8bce3; }
.pipeline-arrow { color: #7e8995; font-family: var(--mono); text-align: center; }
.precompute-box { padding: 13px 11px; border: 1px solid var(--coral-dark); background: rgba(242,158,146,.08); color: white; font-family: var(--mono); font-size: .58rem; line-height: 1.45; text-align: center; }
.precompute-box small { display: block; color: var(--coral); font-size: .8em; text-transform: uppercase; }
.image-deck { position: relative; width: 72px; height: 68px; }
.image-deck i { position: absolute; width: 52px; height: 52px; border: 1px solid var(--blue); background: repeating-linear-gradient(45deg,rgba(143,170,220,.4) 0 5px,transparent 5px 10px); }
.image-deck i:first-child { top: 0; left: 0; }
.image-deck i:last-child { right: 0; bottom: 0; border-color: var(--coral); background: repeating-linear-gradient(-45deg,rgba(242,158,146,.42) 0 5px,transparent 5px 10px); }
.cnn-glyph { height: 72px; display: flex; align-items: center; gap: 7px; }
.cnn-glyph i { width: 18px; height: 66px; background: var(--coral-dark); }
.cnn-glyph i:nth-child(2) { height: 46px; background: var(--blue-dark); }
.cnn-glyph i:nth-child(3) { height: 28px; background: var(--coral); }
.gnn-pipeline { grid-template-columns: 150px 120px minmax(145px,1fr) minmax(100px,1fr); }
.repeat-label { color: #aeb8c3; font-family: var(--mono); font-size: .58rem; line-height: 1.45; }
.memory-meter { position: relative; height: 18px; border: 1px solid #607083; background: #172334; }
.memory-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--blue),var(--coral)); }
.memory-meter b { position: absolute; right: 0; bottom: 27px; color: var(--coral); font-family: var(--mono); font-size: .64rem; font-weight: 500; opacity: 0; }
.scale-axis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #3d4855; }
.scale-axis span { display: flex; justify-content: space-between; gap: 16px; padding: 16px 19px; background: #111b29; color: #98a3ae; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; }
.scale-axis strong { color: white; font-weight: 500; }
.scale-facts { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 8px; border-top: 1px solid #4d5865; border-left: 1px solid #4d5865; }
.scale-facts article { min-width: 0; padding: 25px; border-right: 1px solid #4d5865; border-bottom: 1px solid #4d5865; }
.scale-facts strong { display: block; color: var(--coral); font-family: var(--serif); font-size: clamp(2.4rem,4vw,4rem); font-weight: 400; line-height: 1; }
.scale-facts span { display: block; margin-top: 9px; color: #aeb8c3; font-family: var(--mono); font-size: .58rem; line-height: 1.5; text-transform: uppercase; }
.scale-animation.playing .coral-network i { animation: node-cluster 6.8s ease-in-out infinite; }
.scale-animation.playing .precompute-box { animation: precompute-pulse 6.8s ease-in-out infinite; }
.scale-animation.playing .image-deck { animation: image-arrive 6.8s ease-in-out infinite; }
.scale-animation.playing .cnn-glyph i { animation: cnn-read 1.1s ease-in-out infinite alternate; }
.scale-animation.playing .blue-network { animation: edge-work 1s linear infinite; }
.scale-animation.playing .memory-meter i { animation: memory-rise 6.8s ease-in-out infinite; }
.scale-animation.playing .memory-meter b { animation: oom-label 6.8s ease-in-out infinite; }
@keyframes node-cluster { 0%,18% { transform: translate(0); } 35%,100% { transform: translate(calc((var(--n,0) - 2) * 2px),0); } }
@keyframes precompute-pulse { 0%,20% { background: rgba(242,158,146,.05); } 34%,48% { background: rgba(242,158,146,.26); } 62%,100% { background: rgba(242,158,146,.08); } }
@keyframes image-arrive { 0%,34% { opacity: .15; transform: translateX(-12px); } 52%,100% { opacity: 1; transform: none; } }
@keyframes cnn-read { from { opacity: .45; transform: scaleY(.78); } to { opacity: 1; transform: scaleY(1); } }
@keyframes edge-work { to { filter: brightness(1.45); transform: rotate(.01deg); } }
@keyframes memory-rise { 0%,34% { width: 8%; } 72%,100% { width: 100%; } }
@keyframes oom-label { 0%,68% { opacity: 0; transform: translateY(4px); } 78%,100% { opacity: 1; transform: none; } }

.biology { background: var(--warm); }
.story-grid { display: grid; gap: 26px; }
.story { min-height: 520px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); background: white; }
.story-copy { padding: clamp(32px, 5vw, 68px); }
.story-index { margin-bottom: 45px; color: var(--coral-dark); font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.story-blue .story-index { color: var(--blue-dark); }
.story h3 { max-width: 540px; margin-bottom: 25px; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.35rem); font-weight: 400; letter-spacing: -.025em; }
.story-copy > p:not(.story-index) { max-width: 610px; color: var(--muted); }
.text-button { padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: .86rem; font-weight: 600; cursor: pointer; }
.complex-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: #ead9d5; }
.complex { position: relative; min-height: 255px; display: grid; place-items: center; background: var(--coral-soft); }
.complex b { position: absolute; top: 17px; left: 18px; max-width: 62%; color: var(--coral-dark); font-family: var(--serif); font-size: .94rem; font-weight: 400; line-height: 1.1; }
.complex em { position: absolute; top: 19px; right: 16px; color: #9b6a64; font-family: var(--mono); font-size: .47rem; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.complex svg { position: absolute; inset: 52px 8% 16px; width: 84%; height: calc(100% - 68px); overflow: visible; }
.complex path { fill: none; stroke: var(--coral-dark); stroke-width: 1.4; }
.complex circle { fill: white; stroke: var(--coral-dark); stroke-width: 1.5; }
.complex .gene { position: absolute; z-index: 2; padding: 4px 7px; border: 1px solid var(--coral-dark); background: white; color: var(--coral-dark); font-family: var(--mono); font-size: .5rem; white-space: nowrap; }
.complex-wide .g1 { left: 6%; bottom: 16%; }.complex-wide .g2 { top: 26%; left: 42%; }.complex-wide .g3 { right: 3%; bottom: 20%; }
.complex-tall .g1 { top: 47%; left: 2%; }.complex-tall .g2 { top: 29%; right: 3%; }.complex-tall .g3 { right: 12%; bottom: 8%; }
.complex-four .g1 { top: 35%; left: 1%; }.complex-four .g2 { top: 35%; right: 1%; }.complex-four .g3 { right: 1%; bottom: 8%; }.complex-four .g4 { left: 1%; bottom: 8%; }
.complex-low .g1 { top: 34%; left: 3%; }.complex-low .g2 { top: 43%; right: 2%; }.complex-low .g3 { left: 30%; bottom: 7%; }
.association-plot { display: flex; flex-direction: column; justify-content: center; gap: 29px; padding: clamp(30px, 6vw, 84px); background: var(--blue-soft); }
.association-plot div { display: grid; grid-template-columns: 136px minmax(120px, 1fr) 65px; align-items: center; gap: 17px; }
.association-plot span, .association-plot b { font-family: var(--mono); font-size: .63rem; font-weight: 500; }
.association-plot i { position: relative; height: 10px; background: rgba(64,95,145,.11); }
.association-plot i::after { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--blue-dark); content: ""; }
.association-plot .negative::after { background: var(--coral-dark); }

.examples-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(44px, 6vw, 78px); }
.carousel-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 13px; }
.carousel-controls button { width: 48px; height: 48px; border: 1px solid var(--ink); background: white; cursor: pointer; }
.carousel-controls button:hover { background: var(--ink); color: white; }
.carousel-controls span { min-width: 62px; color: var(--muted); font-family: var(--mono); font-size: .64rem; text-align: center; }
.carousel-controls b { color: var(--ink); font-weight: 500; }
.carousel-controls i { font-style: normal; }
.example-viewer { min-height: 590px; }
.example-shell { display: grid; grid-template-columns: minmax(370px, .72fr) minmax(0, 1.28fr); border: 1px solid var(--line); background: var(--warm); }
.example-sidebar { padding: clamp(30px, 4vw, 56px); border-right: 1px solid var(--line); }
.example-tag { display: inline-flex; gap: 8px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); color: var(--coral-dark); background: white; font-family: var(--mono); font-size: .59rem; letter-spacing: .05em; text-transform: uppercase; }
.example-tag::before { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-dark); content: ""; }
.example-sidebar h3 { margin: 37px 0 16px; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.9rem); font-weight: 400; letter-spacing: -.035em; }
.example-subtitle { color: var(--muted); }
.example-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 38px 0; background: var(--line); border: 1px solid var(--line); }
.example-facts div { min-height: 89px; padding: 14px; background: white; }
.example-facts span { display: block; color: var(--muted); font-family: var(--mono); font-size: .57rem; letter-spacing: .05em; text-transform: uppercase; }
.example-facts b { display: block; margin-top: 9px; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.stored-note { display: flex; gap: 9px; margin: 0; color: var(--muted); font-size: .8rem; }
.stored-note::before { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; background: var(--blue-dark); content: ""; }
.example-main { min-width: 0; background: white; }
.example-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.example-tabs button { min-width: 126px; padding: 17px 22px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--muted); cursor: pointer; }
.example-tabs button.active { background: var(--ink); color: white; }
.example-panel { min-height: 510px; padding: clamp(25px, 4vw, 52px); }
.comparison-chart { width: 100%; }
.chart-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.chart-head h4 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.mini-toggle { display: flex; border: 1px solid var(--line); }
.mini-toggle button { padding: 7px 10px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--muted); font-size: .69rem; cursor: pointer; }
.mini-toggle button:last-child { border-right: 0; }
.mini-toggle button.active { background: var(--ink); color: white; }
.chart-scale { display: grid; grid-template-columns: repeat(5,1fr); padding-left: 102px; color: var(--muted); font-family: var(--mono); font-size: .52rem; }
.chart-scale span { text-align: right; }
.bar-table { margin-top: 8px; border-top: 1px solid var(--line); }
.bar-row { display: grid; grid-template-columns: 90px 1fr 50px; align-items: center; gap: 12px; min-height: 37px; border-bottom: 1px solid #ebe8e1; }
.bar-row > span, .bar-row > strong { font-family: var(--mono); font-size: .57rem; font-weight: 500; }
.bar-row > i { height: 9px; background: repeating-linear-gradient(to right, #eeece7 0, #eeece7 calc(25% - 1px), #d8d5cd 25%); }
.bar-row > i b { display: block; width: 0; height: 100%; background: var(--blue-dark); transition: width .85s cubic-bezier(.22,.8,.24,1); }
.bar-row.featured > span, .bar-row.featured > strong { color: var(--coral-dark); }
.bar-row.featured > i b { background: var(--coral-dark); }
.example-viewer.drawn .bar-row > i b { width: var(--score); }
.comparison-chart .protocol { margin-top: 22px; }
.example-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.score-card { padding: 25px; border: 1px solid var(--line); }
.score-card.highlight { border-color: var(--coral); background: var(--coral-soft); }
.score-label { color: var(--muted); font-family: var(--mono); font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; }
.score { margin: 27px 0 12px; font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .9; letter-spacing: -.06em; }
.score span { font-family: var(--mono); font-size: .2em; letter-spacing: 0; }
.score-card p:last-child { margin: 0; color: var(--muted); font-size: .79rem; }
.baseline-row { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 21px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.baseline-row p { margin: 0; }
.baseline-row strong { font-family: var(--mono); font-size: .85rem; }
.channel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.channel-pair figure { margin: 0; }
.channel-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); image-rendering: pixelated; }
.channel-pair figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: .57rem; text-transform: uppercase; }
.artifact-note { margin: 20px 0 0; color: var(--muted); font-family: var(--mono); font-size: .58rem; line-height: 1.6; text-transform: uppercase; }
.generated-channel { min-width: 0; margin: 0; }
.generated-grid { display: grid; grid-template-columns: repeat(var(--grid),1fr); gap: 2px; aspect-ratio: 1; padding: 7px; border: 1px solid var(--line); background: var(--warm); }
.generated-grid i { opacity: var(--alpha); background: var(--blue-dark); animation: grid-breathe 3.8s ease-in-out infinite alternate; animation-delay: calc(var(--alpha) * -2s); }
.coral-grid .generated-grid i { background: var(--coral-dark); }
.sand-grid .generated-grid i { background: #927a3d; }
.generated-channel figcaption { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.multiomic-channels { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@keyframes grid-breathe { from { transform: scale(.82); } to { transform: scale(1); } }
.biology-native { width: 100%; max-width: 100%; display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,1.35fr); gap: clamp(25px,4vw,54px); align-items: center; overflow: hidden; }
.biology-native > * { min-width: 0; }
.biology-copy h4 { margin: 12px 0 18px; font-family: var(--serif); font-size: clamp(1.85rem,3vw,2.8rem); font-weight: 400; line-height: 1.05; }
.biology-copy p { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.biology-visual { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
.correlation-bars { display: grid; gap: 17px; }
.correlation-bars > div { display: grid; grid-template-columns: 110px 1fr 55px; gap: 12px; align-items: center; }
.correlation-bars span, .correlation-bars strong { font-family: var(--mono); font-size: .58rem; font-weight: 500; }
.correlation-bars i { height: 10px; background: #eeece7; }
.correlation-bars b { display: block; width: 0; height: 100%; background: var(--blue-dark); transition: width 1s ease; }
.correlation-bars .negative b { background: var(--coral-dark); }
.example-viewer.drawn .correlation-bars b { width: var(--score); }
.corum-number { padding: 24px; border: 1px solid var(--line); background: var(--coral-soft); }
.corum-number strong { display: block; color: var(--coral-dark); font-family: var(--serif); font-size: 5.4rem; font-weight: 400; line-height: .85; letter-spacing: -.06em; }
.corum-number small { margin-left: .08em; font-family: var(--mono); font-size: .5em; vertical-align: .08em; }
.corum-number span { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; }
.corum-number p { margin: 18px 0 0; color: var(--muted); font-family: var(--mono); font-size: .57rem; }
.complex-list { margin-top: 10px; border-top: 1px solid var(--line); }
.complex-list div { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr); padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .55rem; }
.complex-list i { color: var(--coral-dark); font-style: normal; }
.complex-list span { min-width: 0; overflow-wrap: anywhere; }
.systems-map { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.system-group { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px; border: 1px solid var(--line); background: var(--warm); transform: rotate(var(--turn)); transition: transform .4s ease; }
.system-group:hover { transform: rotate(0) translateY(-4px); }
.system-group strong { margin-bottom: 13px; color: var(--coral-dark); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; text-align: center; }
.system-group span { max-width: 100%; padding: 4px 6px; border: 1px solid var(--line); background: white; font-family: var(--mono); font-size: .52rem; text-align: center; overflow-wrap: anywhere; }
.omics-stack { display: grid; gap: 5px; perspective: 500px; }
.omics-stack div { min-height: 54px; display: flex; align-items: center; gap: 18px; padding: 12px 18px; border: 1px solid var(--line); background: var(--coral-soft); transform: rotateX(2deg) translateX(calc(var(--layer, 0) * 8px)); }
.omics-stack .layer-2 { margin-left: 16px; background: var(--blue-soft); }
.omics-stack .layer-3 { margin-left: 32px; background: #f2ecd9; }
.omics-stack span { font-family: var(--mono); font-size: .56rem; }
.omics-stack strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.scale-comparison { display: grid; gap: 10px; margin-top: 26px; }
.scale-comparison > div { display: grid; grid-template-columns: 135px 1fr 60px; align-items: center; gap: 10px; }
.scale-comparison span, .scale-comparison strong, .scale-comparison p { font-family: var(--mono); font-size: .53rem; font-weight: 500; }
.scale-comparison i { height: 8px; background: #eeece7; }
.scale-comparison b { display: block; width: 0; height: 100%; background: var(--blue-dark); transition: width 1s ease; }
.scale-comparison > div:first-child b { background: var(--coral-dark); }
.example-viewer.drawn .scale-comparison b { width: var(--score); }
.scale-comparison p { margin: 6px 0 0; color: var(--muted); }
.biology-panel { display: grid; grid-template-columns: minmax(230px,.8fr) 1.2fr; gap: 30px; align-items: center; }
.biology-panel img { width: 100%; max-height: 370px; object-fit: contain; border: 1px solid var(--line); }
.biology-panel h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.biology-panel p { color: var(--muted); }
.protocol { padding: 19px 21px; border-left: 3px solid var(--blue-dark); background: var(--blue-soft); font-family: var(--mono); font-size: .63rem; line-height: 1.7; }

.channels { overflow: hidden; background: var(--ink); color: white; }
.channel-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.channels .section-intro > p:last-of-type { color: #b9c2cc; }
.channels .eyebrow { color: var(--coral); }
.segmented { display: inline-flex; margin-top: 34px; border: 1px solid #65707c; }
.segmented button { min-height: 47px; padding: 10px 17px; border: 0; border-right: 1px solid #65707c; background: transparent; color: #bdc6d0; cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: white; color: var(--ink); }
.channel-note { margin-top: 20px !important; color: #8f9aa6 !important; font-family: var(--mono); font-size: .61rem !important; text-transform: uppercase; }
.channel-inspector { position: relative; max-width: 650px; margin: 0 auto; }
.channel-inspector img { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; border: 1px solid #59636f; image-rendering: pixelated; transition: opacity .2s ease; }
.channel-glow { position: absolute; inset: 15%; background: var(--coral); filter: blur(90px); opacity: .25; transition: background .3s; }
.channel-inspector figcaption { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-top: 12px; color: #9da7b1; font-family: var(--mono); font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; }

.paper { background: var(--warm); }
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 118px); align-items: start; }
.paper-lead h2 { margin-bottom: 29px; font-size: clamp(2.4rem, 4.2vw, 4.45rem); }
.authors { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.citation-note { max-width: 590px; margin: 20px 0 0; color: var(--muted); font-size: .78rem; }
.paper-detail details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper-detail summary { display: flex; justify-content: space-between; padding: 22px 0; font-family: var(--serif); font-size: 1.25rem; cursor: pointer; }
.paper-detail summary::marker { content: ""; }
.paper-detail details[open] summary span { transform: rotate(45deg); }
.paper-detail details p { max-height: 320px; overflow-y: auto; padding: 0 20px 20px 0; color: var(--muted); font-size: .86rem; }
pre { max-width: 100%; overflow: auto; margin: 28px 0 0; padding: 24px; border: 1px solid var(--line); background: white; font-family: var(--mono); font-size: .66rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

.analyze { padding: clamp(75px, 9vw, 130px) 0; background: linear-gradient(105deg, var(--coral-dark), #71383b); color: white; }
.analyze-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.analyze .eyebrow { color: white; opacity: .8; }
.analyze h2 { max-width: 780px; margin-bottom: 20px; }
.analyze p:last-child { max-width: 760px; margin: 0; color: #f5d9d4; }
.button-light { border-color: white; background: white; color: var(--coral-dark); white-space: nowrap; }
.button-light:hover { background: var(--ink); color: white; border-color: var(--ink); }
.limitations-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; }
.limitations h2 { font-size: clamp(2.1rem, 3.6vw, 3.8rem); }
.limitations-grid div { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; color: var(--muted); }
.team { background: linear-gradient(180deg,#fff,var(--warm)); }
.team-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.team-card { min-width: 0; min-height: 285px; display: flex; flex-direction: column; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.team-card > span { color: var(--coral-dark); font-family: var(--mono); font-size: .58rem; }
.team-card h3 { margin: 48px 0 16px; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.08; }
.team-card h3 small { display: block; margin-top: 9px; color: var(--blue-dark); font-family: var(--mono); font-size: .34em; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.team-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.team-card a { margin-top: auto; padding-top: 22px; color: var(--coral-dark); font-family: var(--mono); font-size: .56rem; text-decoration: none; overflow-wrap: anywhere; }
.team-card a:hover { text-decoration: underline; }
.team-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 22px; }
.team-links a { width: 100%; display: flex; justify-content: space-between; gap: 12px; margin-top: 0; padding: 7px 0 0; border-top: 1px solid var(--line); }
.team-links a span { flex: 0 0 auto; }

footer { padding: 75px 0 25px; border-top: 1px solid var(--line); background: var(--warm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid > div:first-child p { max-width: 330px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.footer-grid a:not(.brand) { color: var(--muted); font-size: .84rem; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-label { margin-bottom: 9px; font-family: var(--mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .57rem; letter-spacing: .05em; text-transform: uppercase; }

dialog { width: min(1040px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: clamp(25px, 4vw, 50px); border: 1px solid var(--line); color: var(--ink); background: white; }
dialog::backdrop { background: rgba(23,32,44,.8); backdrop-filter: blur(5px); }
dialog h2 { padding-right: 50px; font-size: 2.5rem; }
dialog img { max-height: 67vh; width: 100%; object-fit: contain; border: 1px solid var(--line); }
dialog p { margin: 17px 0 0; color: var(--muted); font-size: .76rem; }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 43px; height: 43px; border: 1px solid var(--ink); background: white; font-size: 1.6rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }

@media (max-width: 1040px) {
  :root { --shell: min(100% - 42px, 930px); }
  .hero { background: linear-gradient(180deg, white, var(--warm)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-visual { width: min(100%, 720px); }
  .metric-card { padding-inline: 22px; }
  .video-grid { grid-template-columns: 1fr; }
  .method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-steps li { min-width: 0; grid-template-columns: 1fr; padding-right: 22px; overflow-wrap: anywhere; }
  .scale-grid { grid-template-columns: 1fr; }
  .scale-grid .section-intro { max-width: 760px; }
  .evidence-ledger { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .complex-visual { min-height: 500px; }
  .example-shell { grid-template-columns: 340px 1fr; }
  .paper-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  :root { --shell: calc(100% - 34px); }
  body { font-size: 16px; }
  .nav-shell { min-height: 72px; }
  .nav-toggle { display: block; }
  nav { position: absolute; top: 72px; right: 0; left: 0; display: none; padding: 18px 17px 25px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 12px 20px rgba(23,32,44,.08); }
  nav.open { display: grid; }
  nav a { padding: 10px 8px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  h1 { font-size: clamp(3.1rem, 13vw, 5.8rem); }
  h2 { font-size: clamp(2.35rem, 9vw, 4rem); }
  .hero { padding-top: 55px; }
  .hero-grid { gap: 58px; }
  .hero-visual { box-shadow: 10px 10px 0 var(--coral-soft), -7px -7px 0 var(--blue-soft); }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: auto; }
  .metric-value { margin-top: 38px; }
  .atlas-heading { display: grid; }
  .atlas-toggle { justify-self: start; }
  .atlas-row { grid-template-columns: 180px 1fr; }
  .atlas-scale { grid-template-columns: 180px repeat(5,1fr); }
  .paired-bars { padding-inline: 16px; }
  .paired-bars p { grid-template-columns: 76px minmax(60px,1fr) 48px; gap: 8px; }
  .biology-native { grid-template-columns: 1fr; }
  .scale-pipeline { display: flex; flex-wrap: wrap; }
  .scale-pipeline > strong { width: 100%; }
  .gnn-pipeline { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .gnn-pipeline > strong { grid-column: 1/-1; width: auto; }
  .multiomic-channels { grid-template-columns: 1fr 1fr 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .story { min-height: 0; }
  .complex-visual { min-height: auto; }
  .complex { min-height: 210px; }
  .examples-heading { align-items: flex-start; }
  .example-shell { grid-template-columns: 1fr; }
  .example-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .channel-grid { grid-template-columns: 1fr; }
  .analyze-grid { grid-template-columns: 1fr; }
  .analyze-grid .button { justify-self: start; }
  .limitations-grid { grid-template-columns: 1fr; gap: 25px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 28px); }
  h1 { font-size: 3.35rem; }
  .brand strong { font-size: 1.13rem; }
  .brand-mark { width: 32px; height: 32px; }
  .button-row .button { width: 100%; }
  .visual-topline { align-items: flex-start; }
  .motion-controls { display: grid; }
  .pipeline-stage { aspect-ratio: 720/575; }
  .pipeline-stage svg { transform: scale(1.08); }
  .metric-value { font-size: 5rem; }
  .atlas-chart { overflow-x: auto; }
  .atlas-scale, .atlas-row { min-width: 650px; }
  .evidence-ledger { grid-template-columns: 1fr; }
  .ledger-card { min-height: 250px; }
  .chart-head { display: grid; }
  .mini-toggle { justify-self: start; }
  .chart-scale { padding-left: 83px; }
  .bar-row { grid-template-columns: 72px 1fr 44px; gap: 8px; }
  .bar-row > span, .bar-row > strong { font-size: .51rem; }
  .story-copy { padding: 31px 23px 36px; }
  .story-index { margin-bottom: 29px; }
  .story h3 { font-size: 2.25rem; }
  .complex-visual { grid-template-columns: 1fr; }
  .complex { min-height: 225px; }
  .association-plot { padding: 34px 20px; }
  .association-plot div { grid-template-columns: 101px 1fr 51px; gap: 9px; }
  .association-plot span, .association-plot b { font-size: .54rem; }
  .examples-heading { display: grid; }
  .carousel-controls { justify-self: start; }
  .example-sidebar { padding: 28px 22px; }
  .example-facts { grid-template-columns: 1fr; }
  .example-panel { min-width: 0; padding: 24px 18px; overflow: hidden; }
  .example-metrics, .channel-pair, .biology-panel { grid-template-columns: 1fr; }
  .multiomic-channels, .systems-map { grid-template-columns: 1fr; }
  .system-group { min-height: 160px; transform: none; }
  .correlation-bars > div { grid-template-columns: 88px 1fr 49px; gap: 8px; }
  .omics-stack .layer-2, .omics-stack .layer-3 { margin-left: 0; }
  .scale-comparison > div { grid-template-columns: minmax(0,1fr) 52px; gap: 7px; }
  .scale-comparison > div > span { grid-column: 1/-1; overflow-wrap: anywhere; }
  .scale-comparison > div > i { min-width: 0; }
  .scale-axis { grid-template-columns: 1fr; }
  .scale-axis span { flex-direction: column; gap: 5px; }
  .scale-facts { grid-template-columns: 1fr; }
  .scale-pipeline { display: grid; grid-template-columns: 1fr 1fr; padding: 18px; }
  .scale-pipeline > strong { grid-column: 1/-1; }
  .scale-pipeline .pipeline-arrow { display: none; }
  .gnn-pipeline { grid-template-columns: 1fr; }
  .gnn-pipeline > strong { grid-column: auto; }
  .repeat-label { text-align: center; }
  .corum-number { padding: 20px; }
  .corum-number strong { font-size: 4.7rem; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 235px; }
  .baseline-row { grid-column: auto; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 8px; }
  .paper-lead .button-row .button { width: auto; }
  .limitations-grid div { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Islam Lab project-system alignment (shared with Dynomap) */
:root {
  --soft: #465262;
  --muted: #707a86;
  --accent: #a83f35;
  --accent-dark: #7d2d27;
  --coral: #d98a7e;
  --coral-dark: #a83f35;
  --coral-soft: #f5dfda;
  --blue: #7894a9;
  --blue-dark: #476d89;
  --blue-soft: #e1e8ed;
  --sand: #b38536;
  --shell: min(1160px, calc(100vw - 44px));
}

body { color: var(--ink); font-size: 16px; }
h1, h2 { font-weight: 600; line-height: 1.06; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-weight: 600; }

.site-header { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.nav-shell { min-height: 68px; gap: 25px; }
.brand { gap: 10px; font: 1.28rem var(--serif); }
.brand b { color: var(--accent); font-weight: 600; }
.glyph { width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 12px 4px 0 -4px var(--sand), 5px 12px 0 -4px var(--blue-dark); }
nav { gap: 25px; color: var(--soft); font-size: .87rem; }
nav a:not(.nav-cta)::after { display: none; }
nav a:hover { color: var(--accent); }
.nav-cta { padding: 9px 14px; border-color: var(--accent); background: var(--accent); color: white; font-weight: 600; }
.nav-cta:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: white; }
.nav-disabled, .button-disabled { cursor: default; opacity: .68; }
.nav-disabled:hover, .button-disabled:hover { transform: none; }
.lab-link { padding-left: 25px !important; border-left: 1px solid var(--line); }

.hero { padding: 30px 0 42px; border-bottom: 1px solid var(--line); background: white; }
.project-cover { margin: 0; border: 1px solid #ded9ce; background: #f8f5ef; }
.project-cover img { width: 100%; height: auto; }
.hero-callout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 28px 54px; align-items: start; margin-top: 25px; }
.hero-callout h1 { max-width: 560px; margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.45rem); letter-spacing: -.035em; }
.hero-callout .eyebrow { margin-bottom: 8px; }
.hero-callout .lede { max-width: 690px; margin: 0; color: var(--soft); font: 1.08rem/1.58 var(--serif); }
.eyebrow { margin-bottom: 13px; color: var(--accent); font-size: .72rem; font-weight: 700; }
.eyebrow span { width: 24px; height: 1px; }
.button-row { gap: 10px; margin-top: 18px; }
.button { min-height: 46px; gap: 12px; padding: 11px 17px; border-color: var(--line); font-size: .9rem; }
.button:hover { transform: none; }
.button-primary { border-color: var(--accent); background: var(--accent); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-accent { border-color: var(--blue-dark); background: var(--blue-dark); color: white; }
.button-accent:hover { border-color: #35566f; background: #35566f; }
.button-disabled.button-accent:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.boundary-note { margin-top: 13px; font-size: .76rem; }

.evidence-band { padding: 48px 0 38px; }
.evidence-band .section-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px 54px; max-width: none; margin-bottom: 28px; }
.evidence-band .section-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
.evidence-band .section-intro h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.8rem); }
.evidence-band .section-intro > p:last-child { align-self: end; margin: 0; font-size: .94rem; }
.metric-card { min-height: 210px; padding: 24px 26px; }
.metric-value { font-size: clamp(2.5rem, 4.8vw, 4.4rem); }

.atlas, .method, .scalability, .biology, .examples, .channels, .paper, .limitations, .team { padding: 82px 0; }
.section-intro { max-width: 850px; margin-bottom: 38px; }
.section-intro h2 { margin-bottom: 18px; }
.section-intro > p:last-child { color: var(--soft); font: 1.03rem/1.62 var(--serif); }
.atlas { background: white; }
.atlas-heading, .examples-heading { margin-bottom: 38px; }
.atlas-row { min-height: 104px; }
.evidence-ledger { margin-top: 18px; }
.ledger-card { min-height: 210px; }

.video-grid { grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 42px; }
.video-frame { border: 1px solid var(--line); box-shadow: none; }
.video-frame::before { display: none; }
.method-steps li { padding: 18px 0; }
.method-steps h3 { font-weight: 600; }

.scalability { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: white; }
.scalability .eyebrow { color: #e4a89f; }
.scalability .section-intro > p:last-of-type { color: #b9c2cc; }

.biology { background: white; }
.story { min-height: 440px; }
.story h3 { font-size: clamp(1.8rem, 2.7vw, 2.8rem); font-weight: 600; }
.story-copy { padding: clamp(30px, 4vw, 50px); }
.story-index { margin-bottom: 28px; }
.example-viewer { min-height: 530px; }

.channels { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: white; }
.channels .eyebrow { color: #e4a89f; }
.channels .section-intro > p:last-of-type { color: #b9c2cc; }
.channel-inspector { box-shadow: none; }
.channel-inspector::before { display: none; }
.channel-inspector figcaption { color: #9da7b1; }

.paper { background: white; }
.paper-grid { gap: 64px; }
.paper-lead h2 { font-size: clamp(2.15rem, 3.5vw, 3.55rem); }
.analyze { padding: 72px 0; background: var(--ink); }
.analyze p:last-child { color: #c2c9d0; }
.limitations-grid { gap: 60px; }
.team { background: var(--warm); }
.team-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.team-card { min-height: 260px; padding: 22px; }
.team-card h3 { margin-top: 36px; font-weight: 600; }

footer { background: #101721; color: white; padding: 45px 0; }
.footer-brand { color: white; }
.footer-grid > div:first-child p, .footer-grid a:not(.brand), .footer-bottom { color: #aeb8c2; }
.footer-bottom { border-color: #303a45; }

@media (max-width: 1050px) {
  nav { gap: 17px; }
  .lab-link { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .hero-callout, .evidence-band .section-intro { grid-template-columns: 1fr; }
  .evidence-band .section-intro .eyebrow { grid-column: auto; }
  .video-grid { grid-template-columns: 1fr; }
  .project-cover img { width: 100%; max-width: 100%; transform: none; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 28px); }
  .nav-shell { min-height: 62px; }
  .hero { padding-top: 16px; }
  .project-cover img { width: 100%; transform: none; }
  .hero-callout { gap: 18px; }
  .hero-callout h1 { font-size: 1.7rem; }
  .button-row { display: grid; }
  .metric-grid, .team-grid { grid-template-columns: 1fr; }
  .atlas, .method, .scalability, .biology, .examples, .channels, .paper, .limitations, .team { padding: 60px 0; }
}

@media print {
  .site-header, .motion-controls, .carousel-controls, .button-row, .analyze { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
