:root {
  --paper: #f6f8fc;
  --ink: #07101f;
  --ink-soft: #526176;
  --night: #020611;
  --night-glass: rgba(5, 13, 28, 0.82);
  --line: rgba(20, 72, 153, 0.18);
  --light-line: rgba(218, 231, 255, 0.22);
  --signal: #2f7cff;
  --mint: #69c7ff;
  --violet: #8eb5ff;
  --sans: "Space Grotesk", sans-serif;
  --serif: "Instrument Serif", serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.section-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.scroll-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 2px; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

.site-header {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 0 32px;
  color: var(--ink);
  mix-blend-mode: normal;
  transition: color 0.3s ease;
}
.site-header.on-dark { color: #f5f8ff; }
.wordmark { font-size: 24px; font-weight: 600; letter-spacing: -0.08em; }
.wordmark span { color: var(--signal); }
.site-header nav { display: flex; gap: 32px; font: 500 10px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.site-header nav a, .header-link { transition: opacity 0.2s ease; }
.site-header nav a:hover, .header-link:hover { opacity: 0.55; }
.header-link { justify-self: end; font: 500 10px/1 var(--mono); letter-spacing: 0.09em; }

.intro { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper); }
.intro-visual { position: absolute; inset: 0; pointer-events: none; }
.intro-visual img {
  position: absolute;
  top: 4%;
  right: -7%;
  width: min(62vw, 900px);
  height: 92%;
  object-fit: contain;
  opacity: 0.58;
  mix-blend-mode: multiply;
  filter: saturate(0.72) contrast(0.92);
  -webkit-mask-image: radial-gradient(ellipse 53% 52% at 57% 50%, black 0%, black 54%, rgba(0, 0, 0, 0.68) 72%, transparent 98%);
  mask-image: radial-gradient(ellipse 53% 52% at 57% 50%, black 0%, black 54%, rgba(0, 0, 0, 0.68) 72%, transparent 98%);
}
.intro-lens { position: absolute; right: 4vw; top: 10vh; width: min(50vw, 760px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(20, 72, 153, 0.1); }
.intro-copy { position: absolute; z-index: 2; left: clamp(32px, 4vw, 64px); top: 50%; width: min(690px, 58vw); transform: translateY(-44%); }
.eyebrow { margin: 0 0 24px; font: 500 10px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 6px rgba(47, 124, 255, 0.14); vertical-align: -1px; }
.intro h1 { margin: 0; font-size: clamp(64px, 7.2vw, 116px); line-height: 0.86; letter-spacing: -0.075em; font-weight: 500; }
h1 em, h2 em, blockquote em { font-family: var(--serif); font-weight: 400; }
.intro-deck { max-width: 600px; margin: 34px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: #3f5069; }
.primary-link { display: inline-flex; align-items: center; gap: 42px; margin-top: 30px; padding: 18px 20px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; }
.primary-link span { color: var(--signal); font-size: 22px; transition: transform 0.2s ease; }
.primary-link:hover span { transform: translateY(4px); }
.intro-meta { position: absolute; left: clamp(32px, 4vw, 64px); bottom: 28px; display: flex; gap: 36px; font: 9px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: 32px; bottom: 26px; display: flex; align-items: center; gap: 14px; font: 9px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 28px; height: 1px; background: #7f9fca; animation: cue 1.8s ease-in-out infinite; transform-origin: right; }
@keyframes cue { 50% { transform: scaleX(0.45); } }

.scale-story { position: relative; height: 1050vh; background: var(--night); }
.microscope-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: #f5f8ff; background: var(--night); isolation: isolate; }
.stage-media, .molecular-scene, .bloodstream-layer, .tissue-clip, .tissue-layer, .patient-scene { position: absolute; inset: 0; }
.molecular-scene, .bloodstream-layer, .cell-cinema, .tissue-clip, .tissue-layer, .patient-scene { backface-visibility: hidden; }
.bloodstream-layer, .tissue-clip, .patient-scene { opacity: 0; }
.story-visible.step-0 .molecular-scene, .story-visible.step-0 .cell-cinema,
.story-visible.step-1 .molecular-scene, .story-visible.step-1 .cell-cinema, .story-visible.step-1 .bloodstream-layer,
.story-visible.step-2 .cell-cinema, .story-visible.step-2 .bloodstream-layer, .story-visible.step-2 .tissue-clip,
.story-visible.step-3 .cell-cinema, .story-visible.step-3 .bloodstream-layer, .story-visible.step-3 .tissue-clip, .story-visible.step-3 .tissue-layer, .story-visible.step-3 .patient-scene,
.story-visible.step-4 .tissue-clip, .story-visible.step-4 .tissue-layer, .story-visible.step-4 .patient-scene { will-change: opacity, transform, clip-path; }
.bloodstream-layer { z-index: 2; overflow: hidden; background: #030712; }
.bloodstream-layer img, .tissue-layer img { width: 100%; height: 100%; object-fit: cover; }
.bloodstream-layer img { filter: saturate(0.9) contrast(1.08) brightness(0.78); transform: scale(1.04); }
.blood-flow { position: absolute; inset: -18%; opacity: 0.26; background: repeating-linear-gradient(101deg, transparent 0 90px, rgba(105, 199, 255, 0.1) 92px, transparent 94px 168px); transform: translateX(-12%); animation: blood-flow 7s linear infinite; animation-play-state: paused; mix-blend-mode: screen; }
.story-visible.step-1 .blood-flow, .story-visible.step-2 .blood-flow, .story-visible.step-3 .blood-flow { animation-play-state: running; }
@keyframes blood-flow { to { transform: translateX(12%); } }

.molecular-scene { z-index: 6; overflow: hidden; background: radial-gradient(circle at 68% 51%, rgba(47, 124, 255, 0.17), transparent 22%), radial-gradient(circle at 69% 51%, rgba(105, 199, 255, 0.07), transparent 41%); pointer-events: none; }
.molecular-canvas { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; }
.molecular-caption { position: absolute; z-index: 4; left: 68%; bottom: 9%; display: flex; align-items: center; gap: 11px; color: rgba(226, 237, 255, 0.68); font: 500 8px/1 var(--mono); letter-spacing: 0.14em; transform: translateX(-50%); }
.molecular-caption i { display: block; width: 32px; height: 1px; background: linear-gradient(90deg, #69c7ff, #2f7cff); }

.cell-cinema { position: absolute; z-index: 5; left: 0; top: 0; width: min(56vw, 760px); opacity: 1; pointer-events: none; transform: translate3d(68vw, 51svh, 0) translate(-50%, -50%) scale(0.62); transform-origin: center; }
.cell-cinema img { width: 100%; height: auto; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 55% 49% at 50% 49%, black 0%, black 66%, rgba(0, 0, 0, 0.88) 76%, transparent 98%); mask-image: radial-gradient(ellipse 55% 49% at 50% 49%, black 0%, black 66%, rgba(0, 0, 0, 0.88) 76%, transparent 98%); filter: saturate(1.05) contrast(1.03) drop-shadow(0 0 34px rgba(47, 124, 255, 0.18)); }
.cell-bloom { position: absolute; z-index: 5; left: 78%; top: 52%; width: 24vmin; aspect-ratio: 1; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, rgba(241, 247, 255, 0.88), rgba(47, 124, 255, 0.34) 28%, rgba(105, 199, 255, 0.14) 49%, transparent 72%); transform: translate(-50%, -50%) scale(0.4); filter: blur(7px); }
.story-visible.step-2 .cell-bloom, .story-visible.step-3 .cell-bloom { will-change: opacity, transform; }

.tissue-clip { z-index: 4; overflow: hidden; background: #eef1f6; clip-path: circle(0% at 88% 53%); transform-origin: 31% 51%; }
.tissue-layer { overflow: hidden; }
.tissue-layer img { width: 100%; height: 100%; object-fit: contain; }
.tissue-he { opacity: 1; }
.tissue-imc { opacity: 0; background: #01050d; }
.patient-scene { z-index: 6; overflow: hidden; background: radial-gradient(circle at 31% 51%, rgba(47, 124, 255, 0.2), transparent 27%), radial-gradient(circle at 28% 58%, rgba(105, 199, 255, 0.08), transparent 39%), var(--night); }
.patient-grid { position: absolute; inset: 0; opacity: 0.24; background-image: linear-gradient(rgba(105, 199, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 199, 255, 0.08) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 31% 52%, black, transparent 41%); mask-image: radial-gradient(circle at 31% 52%, black, transparent 41%); }
.patient-map { position: absolute; left: 31%; top: 53%; width: min(24vw, 270px); height: min(70vh, 620px); overflow: visible; opacity: 0.55; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(105, 199, 255, 0.2)); }
.patient-outline { fill: rgba(8, 30, 66, 0.3); stroke: rgba(160, 204, 255, 0.68); stroke-width: 2; vector-effect: non-scaling-stroke; }
.patient-signal { fill: none; stroke: rgba(105, 199, 255, 0.78); stroke-width: 2; stroke-dasharray: 4 9; vector-effect: non-scaling-stroke; animation: patient-signal 5s linear infinite; animation-play-state: paused; }
.patient-focus { fill: rgba(47, 124, 255, 0.17); stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 11px var(--signal)); animation: patient-focus 2.2s ease-in-out infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: center; }
.story-visible.step-4 .patient-signal, .story-visible.step-4 .patient-focus { animation-play-state: running; }
@keyframes patient-signal { to { stroke-dashoffset: -52; } }
@keyframes patient-focus { 50% { transform: scale(1.25); opacity: 0.62; } }

.stage-vignette { position: absolute; z-index: 9; inset: 0; pointer-events: none; transition: background 0.5s ease; background: linear-gradient(90deg, rgba(1, 8, 13, 0.95) 0%, rgba(1, 8, 13, 0.7) 28%, rgba(1, 8, 13, 0.04) 56%, rgba(1, 8, 13, 0.16) 100%), linear-gradient(180deg, rgba(1, 8, 13, 0.36), transparent 28%, transparent 72%, rgba(1, 8, 13, 0.6)); }
.step-1 .stage-vignette, .step-3 .stage-vignette, .step-4 .stage-vignette { background: linear-gradient(90deg, rgba(1, 8, 13, 0.12) 0%, rgba(1, 8, 13, 0.08) 48%, rgba(1, 8, 13, 0.84) 75%, rgba(1, 8, 13, 0.96) 100%), linear-gradient(180deg, rgba(1, 8, 13, 0.34), transparent 30%, transparent 72%, rgba(1, 8, 13, 0.6)); }
.step-2 .stage-vignette { background: linear-gradient(90deg, rgba(1, 8, 13, 0.94) 0%, rgba(1, 8, 13, 0.78) 28%, rgba(1, 8, 13, 0.05) 59%, rgba(1, 8, 13, 0.12) 100%), linear-gradient(180deg, rgba(1, 8, 13, 0.4), transparent 30%, transparent 72%, rgba(1, 8, 13, 0.62)); }

.stage-hud { position: absolute; z-index: 30; inset: 0; pointer-events: none; }
.hud-top { position: absolute; top: 28px; left: 96px; right: 96px; display: flex; justify-content: space-between; font: 9px/1 var(--mono); letter-spacing: 0.08em; opacity: 0.75; }
.modality-switch { position: absolute; top: 78px; left: 50%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid rgba(218, 231, 255, 0.3); border-radius: 999px; background: rgba(2, 6, 17, 0.9); opacity: 0; transform: translateX(-50%); transition: opacity 0.18s ease; pointer-events: none; }
.step-3 .modality-switch { opacity: 1; pointer-events: auto; }
.modality-switch button { appearance: none; padding: 5px 8px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: 500 9px/1 var(--mono); letter-spacing: 0.08em; opacity: 0.42; transition: color 0.16s ease, opacity 0.16s ease, background 0.16s ease; }
.modality-switch button:hover, .modality-switch button:focus-visible { opacity: 0.8; outline: none; }
.modality-switch button:focus-visible { box-shadow: 0 0 0 1px var(--signal); }
.modality-switch button.active { background: rgba(47, 124, 255, 0.16); color: #a8c9ff; opacity: 1; }
.modality-switch i { width: 18px; height: 1px; background: rgba(218, 231, 255, 0.42); }
.scale-readout { position: absolute; right: 32px; bottom: 30px; display: grid; justify-items: end; gap: 5px; font-family: var(--mono); }
.scale-readout small { font-size: 8px; letter-spacing: 0.1em; opacity: 0.6; }
.scale-readout strong { color: var(--signal); font-size: clamp(24px, 2.1vw, 34px); font-weight: 500; letter-spacing: -0.05em; }
.scale-readout span { font-size: 8px; letter-spacing: 0.11em; opacity: 0.78; }
.depth-rail { position: absolute; right: 34px; top: 28%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 10px; height: 260px; }
.depth-rail::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 50%; width: 1px; background: rgba(218, 231, 255, 0.27); }
.depth-rail > i { position: relative; z-index: 2; width: 7px; height: 7px; border: 1px solid #bfd1eb; border-radius: 50%; background: #07101f; }
.depth-rail > i.active { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 10px rgba(47, 124, 255, 0.62); }
.depth-rail > b { position: absolute; z-index: 1; top: 10px; left: 50%; width: 1px; height: calc(100% - 20px); background: var(--signal); transform: scaleY(0); transform-origin: top; }
.rail-label { position: absolute; top: -34px; font: 8px/1 var(--mono); letter-spacing: 0.12em; writing-mode: vertical-rl; }

.fusion-model { position: absolute; z-index: 16; left: 31%; top: 52%; width: 420px; height: 420px; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.72); transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.step-4 .fusion-model { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fusion-ring { position: absolute; inset: 32px; border: 1px solid rgba(47, 124, 255, 0.42); border-radius: 50%; animation: orbit-centered 18s linear infinite; animation-play-state: paused; }
.story-visible.step-4 .fusion-ring { animation-play-state: running; }
.fusion-ring::before, .fusion-ring::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.fusion-ring::before { top: -3px; left: 50%; }
.fusion-ring::after { right: 12%; bottom: 9%; }
.ring-two { inset: 76px; border-color: rgba(105, 199, 255, 0.34); animation-direction: reverse; animation-duration: 12s; }
@keyframes orbit-centered { to { transform: rotate(360deg); } }
.fusion-core { position: absolute; left: 50%; top: 50%; display: grid; place-content: center; width: 144px; height: 144px; border-radius: 50%; border: 1px solid rgba(47, 124, 255, 0.72); background: rgba(3, 10, 24, 0.94); box-shadow: 0 0 50px rgba(47, 124, 255, 0.24); text-align: center; transform: translate(-50%, -50%); }
.fusion-core small { margin-bottom: 7px; font: 8px/1 var(--mono); letter-spacing: 0.1em; color: var(--mint); }
.fusion-core strong { font-size: 17px; line-height: 1.05; letter-spacing: -0.03em; }
.fusion-node { position: absolute; display: grid; place-content: center; min-width: 58px; height: 30px; padding: 0 9px; border: 1px solid rgba(218, 231, 255, 0.4); border-radius: 999px; background: rgba(3, 10, 24, 0.94); font: 500 8px/1 var(--mono); letter-spacing: 0.08em; color: #f5f8ff; }
.node-dna { top: 2px; left: 50%; transform: translateX(-50%); }
.node-rna { top: 50%; right: -4px; transform: translateY(-50%); }
.node-ctdna { bottom: 2px; left: 50%; transform: translateX(-50%); }
.node-wsi { top: 50%; left: -14px; transform: translateY(-50%); }

.chapters, .scale-chapter { position: absolute; z-index: 20; inset: 0; }
.scale-chapter { display: grid; align-items: center; padding: 80px clamp(60px, 5vw, 86px) 48px; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 0.28s ease, transform 0.38s ease; }
.scale-chapter.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.chapter-inner { width: min(470px, 41vw); }
.chapter-right { margin-left: auto; }
.chapter-index { margin: 0 0 18px; color: var(--signal); font: 500 9px/1 var(--mono); letter-spacing: 0.1em; }
.scale-chapter h2 { margin: 0; font-size: clamp(53px, 5.2vw, 84px); line-height: 0.88; letter-spacing: -0.06em; font-weight: 500; }
.chapter-summary { margin: 24px 0 25px; max-width: 520px; color: rgba(226, 237, 255, 0.8); font-size: 15px; line-height: 1.58; }
.work-card { display: block; width: min(400px, 100%); padding: 22px; border: 1px solid var(--light-line); background: rgba(5, 13, 28, 0.94); transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
a.work-card:hover { border-color: rgba(47, 124, 255, 0.72); background: rgba(8, 22, 48, 0.92); transform: translateY(-3px); }
.work-type { display: block; margin-bottom: 14px; color: #9eb9df; font: 500 8px/1.2 var(--mono); letter-spacing: 0.1em; }
.work-card strong { display: block; font-size: 19px; letter-spacing: -0.03em; }
.work-card p { margin: 10px 0 17px; color: rgba(226, 237, 255, 0.7); font-size: 12px; line-height: 1.55; }
.work-card i { color: var(--signal); font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: 0.07em; }
.flagship-card { border-color: rgba(47, 124, 255, 0.5); background: linear-gradient(135deg, rgba(9, 34, 73, 0.92), rgba(7, 12, 32, 0.94)); }

.statement { display: grid; place-content: center; min-height: 92vh; padding: 100px 32px; background: var(--ink); color: #f5f8ff; text-align: center; }
.statement .eyebrow { color: var(--signal); }
.statement blockquote { margin: 0; font-size: clamp(48px, 6.2vw, 96px); line-height: 0.94; letter-spacing: -0.055em; }
.statement blockquote em { color: var(--signal); }
.about { display: grid; grid-template-columns: 120px 1fr; gap: 40px 16px; padding-block: 160px; }
.section-label { display: flex; gap: 16px; align-items: flex-start; font: 500 9px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.section-label span { color: #6f94c8; }
.section-label p { margin: 0; max-width: 74px; }
.about-copy { display: grid; grid-template-columns: minmax(340px, 1.2fr) minmax(280px, 0.8fr); gap: 60px; align-items: end; }
.about h2, .papers h2, .notes h2, .contact h2 { margin: 0; font-size: clamp(58px, 6.8vw, 106px); line-height: 0.88; letter-spacing: -0.065em; font-weight: 500; }
.about-copy > p { margin: 0; max-width: 500px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.text-link { display: inline-block; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid; font: 500 10px/1.2 var(--mono); letter-spacing: 0.07em; }
.timeline { grid-column: 2; margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 0; padding: 21px 0; border-bottom: 1px solid var(--line); }
.timeline time, .timeline span { font: 9px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.timeline div { display: flex; justify-content: space-between; gap: 20px; }
.timeline strong { font-size: 15px; font-weight: 500; }

.papers { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 130px 170px; border-top: 1px solid var(--line); }
.papers-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.paper-list { grid-column: 2; margin-top: 76px; border-top: 1px solid var(--line); }
.paper-list a { display: grid; grid-template-columns: 200px 1fr 24px; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding 0.25s ease, color 0.25s ease; }
.paper-list a:hover { padding-left: 12px; color: var(--signal); }
.paper-list span { font: 9px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.paper-list strong { font-size: 18px; font-weight: 500; }
.paper-list i { font-size: 22px; font-style: normal; }

.notes { padding: 150px 0; background: #e9eff8; }
.notes-inner { display: grid; grid-template-columns: 120px 1fr 0.8fr; gap: 16px; align-items: center; }
.notes-placeholder { justify-self: end; width: min(350px, 100%); padding: 32px; border: 1px solid rgba(20, 72, 153, 0.24); }
.notes-placeholder > span { color: #628cc5; font-size: 30px; }
.notes-placeholder p { margin: 38px 0 26px; font-size: 17px; line-height: 1.5; }
.notes-placeholder small { font: 8px/1 var(--mono); letter-spacing: 0.09em; }
.contact { min-height: 88vh; display: grid; align-content: center; padding-block: 140px; }
.contact .eyebrow { color: #5e88c2; }
.contact-email { display: flex; justify-content: space-between; margin-top: 70px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 32px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 28px; font: 500 9px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
footer p { justify-self: end; margin: 0; font: 9px/1 var(--mono); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 68px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .site-header nav { display: none; }
  .intro { min-height: max(100svh, 720px); }
  .intro-copy { width: calc(100% - 48px); left: 24px; top: 46%; }
  .intro h1 { font-size: clamp(58px, 12vw, 86px); }
  .intro-visual img {
    top: 0;
    right: -42%;
    width: 142vw;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse 72% 76% at 72% 49%, black 0%, black 52%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 76% at 72% 49%, black 0%, black 52%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
  }
  .intro-lens { right: -9vw; top: 11vh; width: 78vw; }
  .intro-meta { left: 24px; gap: 18px; }
  .scroll-cue { display: none; }
  .scale-chapter { align-items: flex-start; padding: 100px 24px 112px; transition: none; }
  .chapter-inner { width: min(520px, calc(100vw - 48px)); }
  .chapter-right { margin-left: 0; }
  .scale-chapter h2 { font-size: clamp(48px, 11vw, 72px); }
  .chapter-summary { max-width: 440px; }
  .work-card { padding: 18px; }
  .stage-vignette, .step-1 .stage-vignette, .step-2 .stage-vignette, .step-3 .stage-vignette, .step-4 .stage-vignette {
    background:
      linear-gradient(180deg, rgba(1, 8, 13, 0.95) 0%, rgba(1, 8, 13, 0.77) 43%, rgba(1, 8, 13, 0.16) 69%, rgba(1, 8, 13, 0.82) 100%),
      linear-gradient(90deg, rgba(1, 8, 13, 0.22), transparent 50%, rgba(1, 8, 13, 0.12));
  }
  .molecular-scene { background: radial-gradient(circle at 50% 75%, rgba(47, 124, 255, 0.25), transparent 24%), radial-gradient(circle at 50% 75%, rgba(105, 199, 255, 0.09), transparent 42%); }
  .molecular-caption { left: 50%; bottom: 5.5%; }
  .cell-cinema { width: min(92vw, 560px); }
  .cell-bloom { top: 75%; }
  .patient-map { left: 50%; top: 74%; width: 132px; height: 300px; }
  .depth-rail { display: none; }
  .scale-readout { right: 18px; bottom: 17px; }
  .modality-switch { top: auto; bottom: 20px; left: 20px; transform: none; }
  .fusion-model { left: 50%; top: 74%; width: 286px; height: 286px; }
  .fusion-core { width: 112px; height: 112px; }
  .fusion-core strong { font-size: 14px; }
  .hud-top { top: 30px; left: 72px; right: 62px; overflow: hidden; font-size: 8px; white-space: nowrap; }
  .hud-top span:last-child { display: none; }
  .about, .papers { grid-template-columns: 1fr; }
  .about-copy { grid-template-columns: 1fr; gap: 30px; }
  .timeline, .paper-list { grid-column: 1; }
  .papers-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .notes-inner { grid-template-columns: 1fr; gap: 36px; }
  .notes-placeholder { justify-self: start; }
}

@media (max-width: 620px) {
  .section-shell { width: calc(100% - 40px); }
  .intro-copy { top: 45%; width: calc(100% - 40px); left: 20px; transform: translateY(-43%); }
  .intro h1 { font-size: clamp(52px, 15.2vw, 60px); }
  .intro-deck { max-width: 100%; margin-top: 28px; font-size: 15px; }
  .primary-link { margin-top: 26px; }
  .intro-meta { left: 20px; bottom: 24px; }
  .intro-meta span:last-child { display: none; }
  .scale-story { height: 1050vh; }
  .scale-chapter { padding: 92px 20px 116px; }
  .chapter-inner { width: 100%; }
  .scale-chapter h2 { max-width: 360px; font-size: clamp(43px, 13vw, 51px); }
  .chapter-index { margin-bottom: 13px; }
  .chapter-summary { max-width: 355px; margin: 15px 0; font-size: 13px; line-height: 1.45; }
  .work-card { width: min(345px, 100%); padding: 16px; background: rgba(5, 13, 28, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .work-card p { margin-block: 8px 12px; }
  .bloodstream-layer img { object-position: 56% center; }
  .tissue-layer img { object-fit: cover; }
  .fusion-model { top: 76%; width: min(68vw, 252px); height: min(68vw, 252px); }
  .fusion-ring { inset: 24px; }
  .ring-two { inset: 54px; }
  .scale-readout strong { font-size: 22px; }
  .scale-readout small, .scale-readout span { font-size: 7px; }
  .hud-top { left: 68px; right: 52px; }
  .modality-switch { left: 20px; gap: 5px; padding: 2px 5px; }
  .modality-switch button { min-width: 44px; min-height: 44px; padding: 0 7px; font-size: 8px; }
  .about, .papers { padding-block: 100px; }
  .about h2, .papers h2, .notes h2, .contact h2 { font-size: 55px; }
  .timeline { margin-top: 48px; }
  .timeline li { grid-template-columns: 68px 1fr; }
  .timeline div { flex-direction: column; gap: 7px; }
  .paper-list a { grid-template-columns: 1fr 22px; }
  .paper-list span { grid-column: 1 / -1; }
  .paper-list strong { font-size: 16px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (max-width: 620px) and (max-height: 720px) {
  .intro { min-height: 700px; }
  .intro-copy { top: 43%; }
  .intro h1 { font-size: clamp(49px, 14.4vw, 54px); }
  .intro-deck { margin-top: 24px; font-size: 14px; line-height: 1.48; }
  .primary-link { margin-top: 22px; padding-block: 16px; }
  .scale-chapter { padding-top: 82px; padding-bottom: 96px; }
  .chapter-index { margin-bottom: 10px; }
  .scale-chapter h2 { font-size: clamp(40px, 12vw, 46px); }
  .chapter-summary { margin: 12px 0; font-size: 12px; line-height: 1.38; }
  .work-card { padding: 13px 15px; }
  .work-type { margin-bottom: 9px; }
  .work-card strong { font-size: 17px; }
  .work-card p { margin: 7px 0 10px; font-size: 11px; line-height: 1.42; }
  .work-card i { font-size: 8px; }
  .fusion-model { top: 77%; width: 226px; height: 226px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue i, .fusion-ring, .blood-flow, .patient-signal, .patient-focus { animation: none; }
  .scale-chapter, .molecular-scene, .bloodstream-layer, .cell-cinema, .tissue-layer, .patient-scene, .fusion-model { transition: none; }
}
