:root {
  --paper: #faf9f5;
  --paper-2: #f2eee5;
  --ink: #1b1a18;
  --muted: #6f6e69;
  --faint: #9a9891;
  --line: #e4ded1;
  --line-soft: #ede9dd;
  --plum: #6d5b75;
  --moss: #75805e;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 26, 24, 0.05);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* overflow:clip avoids creating a scroll container that can break
   position:sticky on mobile browsers; hidden stays as fallback. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
::selection { background: #e8e2d4; color: var(--ink); }

/* ---------- progress + header (Anthropic-quiet) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; pointer-events: none; }
.progress__bar { width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; opacity: 0.7; }

.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 90;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 800; letter-spacing: 0.06em; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.site-header nav { display: flex; gap: 26px; font-size: 14.5px; position: absolute; left: 50%; transform: translateX(-50%); }
.site-header nav a { opacity: 0.72; }
.site-header nav a:hover { opacity: 1; }
.paper-link { font-size: 13.5px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 15px; white-space: nowrap; flex-shrink: 0; }
.paper-link:hover { border-color: #cfc8b6; }

/* ---------- layout ---------- */
.section-pad { padding: 96px clamp(20px, 5vw, 56px); max-width: var(--max); margin: 0 auto; }

/* ---------- hero base ---------- */
.hero {
  min-height: 0;
  padding: 120px clamp(20px, 5vw, 56px) 56px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 28px 48px;
  align-items: center;
  position: relative;
}

/* ---------- hero: landing composition (Image 1) ----------
   Left: full-height generative canvas on graph paper.
   Right: quiet editorial column with serif title + pill buttons. */
.hero--landing {
  max-width: none;
  margin: 0;
  padding: 64px 0 0;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 470px);
  gap: 0;
  align-items: stretch;
  min-height: 94vh;
  min-height: 94svh;
}
.hero--landing .hero__art--canvas {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  padding: 0;
  min-height: 78vh;
  min-height: 78svh;
  overflow: hidden;
}
.hero-canvas-frame {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.hero-canvas-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__main--landing {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px) clamp(24px, 3.5vw, 56px);
  border-left: 1px solid var(--line-soft);
}
.hero--landing .hero__title {
  font-size: clamp(30px, 2.9vw, 42px);
  max-width: 16ch;
}
.hero--landing .hero__lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: #2b2a28;
}
.hero--landing .hero__lede--2 { margin-top: 18px; }
.hero--landing .hero__actions { margin-top: 26px; }
.hero--landing .hero__strip {
  grid-column: 1 / -1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 26px clamp(20px, 5vw, 56px) 34px;
}
/* The hero has no decorative ring overlay. */
.hero::before { content: none; }
.hero__art {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 22px;
}
.pair-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.pair-tile { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.pair-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pair-tile img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--line); border-radius: 10px; background: #e7e0d1;
}
.pair-meta { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.pair-meta strong { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.25; }
.pair-meta span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pair-op { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 24px; }
.pair-dose { font-family: var(--mono); font-size: 11.5px; font-weight: 600; background: #f4f1e9; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.pair-arrow { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--faint); }
.pair-switch { font-size: 11px; font-weight: 650; color: var(--plum); border: 1px solid #d9cfdd; background: rgba(109, 91, 117, 0.08); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.hero__art-cap {
  grid-column: 1;
  font-size: 12px; color: var(--muted); line-height: 1.5;
  margin: -18px 4px 0; max-width: 70ch;
}
.hero__lede--2 { margin-top: 14px; }

.hero__eyebrow, .eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--muted); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 19ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--plum); }
.hero__lede {
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0;
  color: #3f3e3b;
}
.hero__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 550;
  border: 1px solid #d8d2c2;
  background: var(--white); color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.button:hover { transform: none; border-color: #b9b1a0; }
.button--dark { background: var(--ink); border-color: var(--ink); color: #faf9f5; }
.button--ghost { background: transparent; }
.button--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--outline-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: transparent; }

/* full-width stat strip under the hero grid */
.hero__strip {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px 20px; margin-top: 6px;
}
.hero__strip > div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.hero__strip .kicker { font-family: var(--serif); font-size: 24px; line-height: 1; font-weight: 400; }
.hero__strip span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.scroll-cue { display: none; }

/* ---------- intro ---------- */
.intro-note { padding-top: 40px; padding-bottom: 72px; }
.intro-note p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.42; letter-spacing: -0.01em;
  max-width: 860px; margin: 0; color: #2b2a28;
}
.dropcap { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }

/* ---------- scrollytelling ---------- */
.story, .transform-story {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: 56px; padding: 0 clamp(20px, 5vw, 56px);
  max-width: var(--max); margin: 0 auto;
}
.story__visual-wrap { min-height: 100vh; }
.story__visual {
  position: sticky; top: 92px; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.panel__topline {
  display: flex; justify-content: space-between; gap: 24px;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.pair-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.image-card { border: 1px solid var(--line); background: #f4f1e9; border-radius: 10px; overflow: hidden; }
.image-card__label { font-size: 11.5px; font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.6); }
.image-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.image-card__meta { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.image-card__meta strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.image-card__meta span { font-size: 12px; color: var(--muted); }
.pair-arrow { font-family: var(--serif); font-size: 22px; color: var(--faint); }
.caption { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: 62ch; line-height: 1.55; }
.visual-note { font-size: 11.5px; color: var(--faint); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.mobile-story-card { display: none; }

.story__copy { padding-bottom: 20vh; }
.story-step {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 480px; opacity: 0.3; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-step.is-active { opacity: 1; transform: translateY(0); }
.step-number { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.story-step h2, .transform-step h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.story-step p, .transform-step p { font-size: 15.5px; color: #45443f; line-height: 1.65; margin: 0; }

/* ---------- section headings: one quiet scale ---------- */
.section-heading { max-width: 820px; margin-bottom: 40px; }
.section-heading--wide { max-width: 900px; }
.section-heading h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 16px; text-wrap: balance;
}
.section-heading p { font-size: 16.5px; color: var(--muted); max-width: 68ch; line-height: 1.6; margin: 0; }

/* ---------- contrast: calmer numbers ---------- */
.contrast-section { padding-top: 96px; }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contrast-card {
  min-height: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
  background: var(--white); box-shadow: var(--shadow);
}
.contrast-card--dark { background: #1c1b19; color: #f3f0e8; border-color: #1c1b19; }
.contrast-card__eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.duo-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-stat span { display: flex; flex-direction: column; font-size: 13px; opacity: 0.75; gap: 4px; }
.duo-stat b { font-family: var(--serif); font-size: clamp(38px, 4vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -0.03em; opacity: 1; }
.contrast-card p { font-size: 15px; max-width: 52ch; opacity: 0.8; line-height: 1.6; margin: 0; }
.fineprint { font-size: 12.5px; color: var(--muted); max-width: 900px; margin-top: 16px; line-height: 1.6; }

/* ---------- method: light, not black slab ---------- */
.method-section { background: var(--paper-2); color: var(--ink); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-section .eyebrow { color: var(--muted); }
.method-section .section-heading p { color: var(--muted); }
.pipeline {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pipeline__lane { min-height: 0; padding: 22px; background: var(--white); display: flex; flex-direction: column; gap: 0; }
.pipeline__lane h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.pipeline__lane p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.lane-index { font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }
.lane-stat { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 12px; font-size: 12px; color: #3f3e3b; font-weight: 600; }
.pipeline__rail { position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: var(--line-soft); }
.pipeline__rail span { display: block; width: 0; height: 100%; background: #b9b1a0; }

/* ---------- transform story ---------- */
.transform-story { background: var(--paper); padding-top: 96px; padding-bottom: 96px; }
.transform-story__visual { min-height: 100vh; position: relative; }
.transform-orbit {
  position: sticky; top: 100px; height: 72vh;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.satellite-tile { width: min(30vw, 360px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; z-index: 3; background: #e9e2d4; border: 1px solid var(--line); box-shadow: none; }
.satellite-tile img { width: 100%; height: 100%; object-fit: cover; }
.transform-orbit__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(27,26,24,0.1); }
.ring-a { width: 62%; aspect-ratio: 1; }
.ring-b { width: 82%; aspect-ratio: 1; }
.transform-meter {
  position: absolute; z-index: 5; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; display: flex; gap: 14px; min-width: 240px; max-width: calc(100% - 32px);
  justify-content: space-between; font-size: 12.5px; box-shadow: var(--shadow);
  white-space: nowrap;
}
.transform-meter strong { font-weight: 650; }
.transform-story__copy { padding-bottom: 12vh; }
.transform-step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); max-width: 480px; }
.transform-step.is-active { opacity: 1; transform: translateY(0); }

/* ---------- visual method: dose-driven operator flows ---------- */
.severity-section { max-width: none; background: #f6f3ec; border-top: 1px solid var(--line-soft); }
.severity-section > .section-heading { max-width: 1128px; margin-left: auto; margin-right: auto; }
.severity-lab { max-width: 1440px; margin: 0 auto; }
.severity-toolbar {
  position: sticky; top: 64px; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 18px; padding: 12px 18px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,253,249,.96); backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(36,29,20,.06);
}
.severity-switch { grid-column: 2; display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: #f3f0e8; border-radius: 999px; }
.severity-btn { appearance: none; border: 0; background: transparent; color: #57554f; padding: 10px 19px; border-radius: 999px; font: 600 13px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.severity-btn:hover { background: #e8e2d5; }
.severity-btn.is-active, .severity-btn.is-active:hover { background: var(--ink); color: var(--white); }
.family-nav { grid-column: 3; justify-self: end; display: flex; gap: 17px; align-items: center; font-size: 12px; font-weight: 650; white-space: nowrap; }
.family-nav a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.family-nav a:hover, .family-nav a.is-current { border-color: currentColor; }
.family-slide {
  --accent: #aa625c; --accent-light: #e8c5bb;
  position: relative; isolation: isolate; min-height: min(710px, calc(100svh - 158px));
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: clamp(24px,3vw,46px); margin-bottom: 18px; scroll-margin-top: 148px;
  background: #fffdfa; border: 1px solid #ded8cb; border-radius: 18px;
  box-shadow: 0 16px 42px rgba(45,35,24,.045); overflow: hidden;
}
.family-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right,rgba(95,82,59,.055) 1px,transparent 1px),linear-gradient(to bottom,rgba(95,82,59,.055) 1px,transparent 1px); background-size: 38px 38px; }
.family-slide--amp { --accent: #75648e; --accent-light: #d6c9e1; background: #fcfafc; }
.family-slide--res { --accent: #527d91; --accent-light: #c7dfe8; background: #f9fcfc; }
.family-slide__heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.family-slide__index, .family-slide__dose > span, .family-tile figcaption, .flow-board__top, .family-slide__foot { font: 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.family-slide__index { color: var(--accent); }
.family-slide__heading h3 { margin: 7px 0 0; font: 400 clamp(36px,4vw,56px)/1.08 var(--serif); letter-spacing: -.035em; }
.family-slide__dose { display: flex; flex-direction: column; align-items: end; flex-shrink: 0; }
.family-slide__dose > span { color: var(--muted); }
.family-slide__dose strong { color: var(--accent); font: 400 clamp(28px,3vw,42px)/1.1 var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; }
.family-visual { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,1.7fr) minmax(0,1fr); align-items: center; gap: clamp(15px,2vw,34px); }
.family-tile { margin: 0; min-width: 0; }
.family-tile__image { padding: 7px; border: 1px solid #d9d0c2; background: #fffdfa; border-radius: 9px; box-shadow: 0 12px 30px rgba(39,28,23,.08); }
.family-tile__image--result { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light),0 12px 30px rgba(39,28,23,.08); }
.family-tile__image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.family-tile figcaption { display: flex; justify-content: space-between; gap: 5px; color: #625d56; margin-top: 15px; font-size: 10px; }
.family-tile figcaption b { color: var(--accent); font-weight: 600; }
.flow-board { min-width: 0; border-top: 1px solid #dcd6ca; border-bottom: 1px solid #dcd6ca; padding: 16px 0 12px; }
.flow-board__top { display: flex; justify-content: space-between; gap: 8px; color: #7b756e; font-size: 10px; }
.flow-board svg { width: 100%; height: auto; display: block; overflow: visible; margin: 2px 0; }
.flow-board__tail { display: flex; justify-content: space-between; gap: 8px; color: #7b756e; font: 10px/1.4 var(--mono); letter-spacing: .07em; }
.flow-board--rgb { position: relative; isolation: isolate; overflow: hidden; padding: 18px; border: 1px solid #ded8cb; border-radius: 14px; background: #fffdfa; box-shadow: 0 12px 28px rgba(50,35,30,.06); }
.flow-board--rgb::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(118,104,82,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(118,104,82,.055) 1px,transparent 1px); background-size: 28px 28px; }
.gain-chart { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 22px 0 16px; }
.gain-channel { --gain: #f15d68; margin: 0; min-width: 0; }
.gain-channel--g { --gain: #56ca7d; }
.gain-channel--b { --gain: #6caeff; }
.gain-channel__plot { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--gain); border-radius: 9px; background: #101620; box-shadow: 0 8px 20px color-mix(in srgb,var(--gain) 20%,transparent); }
.gain-channel__plot::after { content: ""; position: absolute; z-index: 2; top: 50%; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,.67); pointer-events: none; }
.gain-channel canvas { display: block; width: 100%; height: 100%; aspect-ratio: 1; filter: saturate(.72) contrast(.85) brightness(1.08); }
.gain-channel__track { position: absolute; z-index: 3; top: 8px; right: 8px; width: 26px; height: calc(100% - 16px); overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; background: rgba(13,16,25,.53); backdrop-filter: blur(5px); box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.gain-channel__bar { position: absolute; left: 0; right: 0; height: 0; background: var(--gain); box-shadow: 0 0 14px var(--gain); transition: height .55s ease; }
.gain-channel figcaption { display: flex; justify-content: space-between; gap: 4px; color: #5f5a54; margin-top: 10px; font: 11px var(--mono); white-space: nowrap; }
.gain-channel figcaption span { color: var(--gain); font-weight: 700; }
.gain-channel--g figcaption span { color: #328b55; }
.gain-channel--b figcaption span { color: #376fae; }
.gain-channel figcaption strong { color: #292827; font-weight: 600; font-variant-numeric: tabular-nums; }
.spectrum-panel { margin: 0; min-width: 0; }
.flow-board--amp { position: relative; isolation: isolate; overflow: hidden; padding: 18px; border: 1px solid #dfd7e6; border-radius: 14px; color: #302b35; background: #fffdfa; box-shadow: 0 12px 28px rgba(43,29,52,.06); }
.flow-board--amp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 44%,transparent 0 29px,rgba(128,96,159,.055) 30px,transparent 31px); }
.flow-board--amp .flow-board__top, .flow-board--amp .flow-board__tail { color: #655c70; }
.spectrum-composition { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 18px minmax(0,1fr); align-items: center; gap: 7px; padding: 23px 0 18px; }
.spectrum-panel { --spectrum-accent: var(--moss); }
.spectrum-panel--donor { --spectrum-accent: var(--plum); }
.spectrum-panel--mix { --spectrum-accent: #91818f; }
.spectrum-panel__image { position: relative; aspect-ratio: 1; padding: 4px; border: 1px solid var(--spectrum-accent); border-radius: 9px; background: #21192e; box-shadow: 0 9px 22px rgba(45,25,61,.14); }
.spectrum-panel__image::after { content: ""; position: absolute; inset: 4px; border-radius: 5px; pointer-events: none; box-shadow: inset 0 0 20px rgba(0,0,0,.28); }
.spectrum-panel .spectrum-map { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.spectrum-panel .spectrum-inset { position: absolute; z-index: 1; right: 9px; bottom: 9px; width: 30%; min-width: 32px; aspect-ratio: 1; object-fit: cover; border: 2px solid #faf6ef; border-radius: 4px; box-shadow: 0 5px 14px rgba(0,0,0,.65); }
.spectrum-panel__tag { position: absolute; z-index: 1; left: 8px; top: 8px; padding: 4px 6px; border-radius: 4px; color: #fff; background: rgba(13,11,26,.72); font: 11px var(--mono); }
.spectrum-operator { color: #756387; text-align: center; font: 400 23px var(--serif); }
.spectrum-change { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 15px; margin-bottom: 12px; padding: 9px; border: 1px solid #e6dbe6; border-radius: 9px; background: rgba(255,255,255,.9); }
.spectrum-change img { display: block; width: 88px; aspect-ratio: 1; border: 1px solid #d6bfd0; border-radius: 5px; }
.spectrum-change > div > span { display: block; color: #825d78; font: 11px/1.3 var(--mono); letter-spacing: .03em; }
.spectrum-change strong { display: block; margin-top: 5px; color: #51324b; font: 500 19px var(--serif); }
.spectrum-change p { margin: 4px 0 0; color: #67616c; font: 12px/1.45 var(--sans); }
.mix-flow { margin-bottom: 15px; padding-top: 13px; border-top: 1px solid #e5dce9; }
.mix-flow__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #6e6576; font: 10px/1.4 var(--mono); letter-spacing: .05em; }
.mix-flow__caption strong { color: #362c40; font: 500 16px var(--serif); white-space: nowrap; }
.mix-flow__track { --source-share: 90%; display: flex; height: 8px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #ece4f1; }
.mix-flow__source { width: var(--source-share); background: linear-gradient(90deg,#697455,#9ba686); transition: width .55s ease; }
.mix-flow__donor { flex: 1; background: linear-gradient(90deg,#ae9ab2,#76617e); }
.flow-res-band { fill: #c7e2eb; }
.flow-res-grid { fill: url(#sample-grid); opacity: .85; }
.flow-res-marker { stroke: #527d91; stroke-width: 2; stroke-dasharray: 4 5; }
.flow-res-readout { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 11px var(--mono); color: #657981; }
.flow-res-readout strong { font: 400 26px var(--serif); color: var(--accent); white-space: nowrap; }
.family-slide__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #ded8cb; color: #66615a; }
.family-slide__foot span:last-child { color: var(--accent); }
.severity-note { font-size: 12px; color: var(--muted); max-width: 90ch; line-height: 1.6; margin: 20px auto 0; }
.severity-note summary { cursor: pointer; width: fit-content; }
.severity-note p { margin: 8px 0 0; }
@media (max-width: 1050px) {
  .family-visual { grid-template-columns: minmax(0,1fr) minmax(280px,1.5fr) minmax(0,1fr); }
}

/* ---------- measures ---------- */
.measures-section { padding-top: 96px; }
.measure-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.measure-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--white); min-height: 172px; display: grid; grid-template-columns: 34px minmax(0,1fr) minmax(350px,1.1fr); align-items: center; column-gap: 24px; box-shadow: var(--shadow); }
.measure-index { align-self: start; margin-top: 6px; font-family: var(--serif); font-size: 17px; color: var(--muted); letter-spacing: 0.08em; }
.measure-grid h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; }
.measure-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 49ch; }
.measure-equation { min-width: 0; min-height: 106px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; background: #f4f1e9; border: 1px solid var(--line-soft); padding: 18px 24px; border-radius: 8px; overflow-x: auto; font-size: 26px; white-space: nowrap; }
.measure-equation .katex { font-size: 1.05em; }
.measure-equation small { color: var(--muted); font-size: .85em; }
.failure-definition { margin-top: 12px; border-radius: var(--radius); background: #1c1b19; color: #f3f0e8; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; }
.failure-definition span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.failure-definition strong { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
.failure-definition p { grid-column: 2; max-width: 70ch; margin: 0; opacity: 0.72; font-size: 14px; line-height: 1.6; }
@media (max-width: 950px) {
  .measure-grid article { grid-template-columns: 34px minmax(0,1fr); row-gap: 6px; }
  .measure-index { grid-row: 1 / span 2; }
  .measure-equation { grid-column: 2; margin-top: 10px; }
}

/* ---------- findings: full-bleed scenes ---------- */
.findings-scenes { background: var(--paper); }
.fscene { height: 300vh; position: relative; }
.fscene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fscene__paper {
  position: absolute; inset: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(27, 26, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 24, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.fscene__topline {
  position: absolute; z-index: 3;
  top: 78px; left: clamp(20px, 5vw, 56px); right: clamp(20px, 5vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  will-change: opacity;
}
/* HTML chart legend lives in the topline so it never collides with the
   floating card and stays visible on every viewport. Swatch colors match
   the SVG series colors (plum = ResNet-50, moss = ViT-Small/16). */
.topline-legend {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: #4c4b47;
}
.topline-legend .lg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lg-swatch { width: 22px; height: 3px; border-radius: 2px; }
.lg-resnet { background: var(--plum); }
.lg-vit { background: var(--moss); }
.fscene__chart { position: absolute; inset: 0; z-index: 1; }
.fscene__chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Inset the desktop chart to keep titles, labels, and footnotes legible. */
@media (min-width: 861px) {
  .fscene__chart { inset: 108px 32px 32px 0; }
}
.fscene__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  pointer-events: none;
}
.fscene__card {
  pointer-events: auto;
  margin-left: clamp(20px, 5vw, 56px);
  max-width: 390px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow);
  will-change: opacity, transform;
}
.fscene__card .eyebrow { margin-bottom: 12px; }
.fscene__card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.16; letter-spacing: -0.02em;
  margin: 0 0 12px; text-wrap: balance;
}
.fscene__card p { font-size: 15px; color: #45443f; line-height: 1.65; margin: 0; }
.scene-title { font-family: var(--serif); font-size: 22px; fill: var(--ink); }
.scene-subtitle { font-size: 11.5px; fill: #8a8880; }
/* Keep the card inside the empty left gutter as the viewport narrows. */
@media (max-width: 1250px) {
  .fscene__card { max-width: 300px; padding: 22px; }
}
@media (max-width: 1000px) {
  .fscene__card { max-width: 272px; padding: 20px; }
}
.fscene__hint { display: none; }
@media (max-width: 860px) {
  .fscene { height: auto; }
  .fscene__sticky { position: relative; height: auto; display: flex; flex-direction: column; overflow: visible; }
  .fscene__topline { position: relative; top: auto; padding: 84px 20px 0; flex-wrap: wrap; row-gap: 8px; font-size: 10.5px; }
  .fscene__topline .topline-legend { order: 3; flex-basis: 100%; }
  .fscene__overlay { position: relative; order: 2; padding: 20px 20px 0; display: block; }
  .fscene__card { margin-left: 0; max-width: none; padding: 22px; }
  .fscene__hint { position: relative; z-index: 2; order: 3; display: block; margin: 14px 20px 0; color: var(--muted); font: 11px/1.4 var(--mono); }
  /* Keep one SVG unit per CSS pixel; shrinking an 860-unit figure made its
     annotations illegible at phone width. The figure scrolls within the page. */
  .fscene__chart { position: relative; order: 4; min-width: 0; max-width: 100%; height: 640px; margin-top: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .fscene__chart svg { width: 860px; height: 640px; max-width: none; }
}
.axis-text { font-size: 11px; fill: #8a8880; }
.grid-line { stroke: #e7e1d3; stroke-width: 1; }
.model-resnet { stroke: var(--plum); fill: var(--plum); }
.model-vit { stroke: var(--moss); fill: var(--moss); }
.chart-line { fill: none; stroke-width: 2; }
.chart-dot { stroke: var(--white); stroke-width: 1.5; }
.legend-label { font-size: 12px; fill: #4c4b47; }
.bar-value { font-size: 11px; font-weight: 700; fill: #2b2a28; }
.ci-line { stroke-width: 2; }
.ci-dot { stroke: white; stroke-width: 1.5; }

/* ---------- heatmap ---------- */
.heatmap-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.heatmap-section .section-heading, .heatmap-section .heatmap-wrap { max-width: var(--max); margin-left: auto; margin-right: auto; }
.heatmap-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.heatmap-grid { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(6, minmax(88px, 1fr)); min-width: 820px; }
.heatmap-cell { min-height: 64px; border-right: 1px solid #ece7da; border-bottom: 1px solid #ece7da; display: flex; align-items: center; justify-content: center; padding: 8px; font-size: 12px; }
.heatmap-cell.head { min-height: 72px; font-weight: 650; align-items: flex-end; text-align: center; background: #f7f4ec; font-size: 11.5px; }
.heatmap-cell.rowlabel { justify-content: flex-start; font-family: var(--serif); font-size: 14px; background: #fdfbf7; }
.heatmap-cell.value { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---------- attention: light audit ---------- */
.attention-section { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line-soft); max-width: none; }
.attention-section .section-heading { max-width: 900px; margin-left: auto; margin-right: auto; }
.attention-section .section-heading p, .attention-section .eyebrow, .attention-section .fineprint { color: var(--muted); }
.attention-section .fineprint { max-width: 900px; margin-left: auto; margin-right: auto; }
.attention-controls { max-width: 900px; margin: 0 auto 24px; padding: 18px 22px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.attention-controls label { display: flex; justify-content: space-between; gap: 16px; font: 500 16px var(--serif); }
.attention-controls output { color: #72516e; font: 12px var(--mono); }
.attention-controls__range { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; margin-top: 14px; }
.attention-controls__range span { color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.attention-controls input { width: 100%; margin: 0; accent-color: #8b517e; cursor: ew-resize; }
.attention-controls input:focus-visible { outline: 2px solid #8b517e; outline-offset: 5px; border-radius: 4px; }
.attention-controls p { margin: 12px 0 0; color: var(--muted); font: 12px/1.5 var(--sans); }
.attention-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.attention-pair { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.attention-pair__viewport { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: #dedbd6; }
.attention-pair__viewport img { display: block; width: 100%; height: 100%; object-fit: cover; }
.attention-pair__rollout { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--reveal)); }
.attention-pair__divider { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--reveal); width: 2px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 0 1px #332836, 0 0 12px #21151c; pointer-events: none; }
.attention-pair figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 5px 4px; }
.attention-pair figcaption strong { font: 500 19px var(--serif); }
.attention-pair figcaption span { color: var(--muted); font: 11px var(--mono); }
.attention-caveat { max-width: 900px; margin: 22px auto 10px; padding: 13px 16px; border-left: 3px solid #8b517e; background: #f3edf2; color: #514750; font: 13px/1.6 var(--sans); }

/* ---------- limits ---------- */
.limits-section { padding-top: 96px; }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--white); }
.limits-grid article { padding: 24px; min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.limits-grid h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.limits-grid p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ---------- provenance: single quiet dark card ---------- */
.provenance-section { padding-top: 32px; }
.provenance-card { background: #1c1b19; color: #f3f0e8; border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: end; }
.provenance-card .eyebrow { color: #a8a49c; }
.provenance-card h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 400; margin: 0 0 14px; text-wrap: balance; }
.provenance-card p { max-width: 62ch; color: #c9c4b9; font-size: 15px; line-height: 1.6; margin: 0; }
.provenance-links { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.site-footer strong { font-size: 13px; letter-spacing: 0.06em; }
.site-footer span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.site-footer p { font-size: 13px; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.community-bar { padding: 38px clamp(18px,4vw,64px) 48px; background: #171716; color: #eeeae3; }
.community-bar__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr); align-items: center; gap: 20px; max-width: var(--max); margin: 0 auto; padding-top: 36px; border-top: 1px solid #35332f; }
.community-bar__link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font: 500 clamp(15px,1.2vw,18px)/1.35 var(--sans); color: #e6e2dc; transition: color .18s ease; }
.community-bar__link:hover { color: #fff; }
.community-bar__link img { display: block; width: 29px; height: 27px; object-fit: contain; }
.community-bar__link svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.community-bar__note { margin: 0; text-align: right; color: #aaa69f; font: 14px/1.5 var(--sans); }

@media (max-width: 1050px) {
  .severity-toolbar__label { display: none; }
  .family-nav { margin-left: auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 108px; }
  .hero--landing { padding-top: 58px; min-height: 0; }
  .hero--landing .hero__art--canvas { min-height: 62vh; min-height: 62svh; }
  .hero__main--landing { border-left: 0; border-top: 1px solid var(--line-soft); }
  .pair-meta strong { font-size: 15px; }
  .hero__art-cap { grid-column: 1 / -1; margin-top: -14px; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .story, .transform-story { grid-template-columns: 1fr; }
  .story__visual-wrap, .transform-story__visual { min-height: auto; }
  .story__visual, .transform-orbit { position: relative; top: auto; height: auto; min-height: 0; }
  .story__copy, .transform-story__copy { padding-bottom: 0; }
  .story-step, .transform-step { min-height: 0; padding: 56px 0; opacity: 1; max-width: 640px; }
  .transform-orbit { padding: 48px 0; height: auto; }
  .satellite-tile { width: min(72vw, 380px); }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .limits-grid { grid-template-columns: 1fr 1fr; }
  .provenance-card { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .story--problem, .transform-story { display: block; }
  .story--problem, .transform-story, .story-step, .transform-step { scroll-margin-top: 76px; }
  .story--problem .story__visual-wrap, .transform-story__visual { display: none; }
  .story--problem .story-step, .transform-story .transform-step { min-height: 0; max-width: 640px; padding: 36px 0; opacity: 1; transform: none; transition: none; }
  .story--problem .story-step + .story-step, .transform-story .transform-step + .transform-step { border-top: 1px solid var(--line); }
  .mobile-story-card { display: block; max-width: 640px; margin: 20px 0; }
  .mobile-story-card .pair-stage { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 10px; align-items: stretch; }
  .mobile-story-card .pair-arrow { align-self: center; }
  .mobile-story-card .image-card { display: flex; flex-direction: column; min-width: 0; }
  .mobile-story-card .image-card img { flex: 0 0 auto; }
  .mobile-story-card .image-card__meta { flex: 1; }
}
@media (max-width: 700px) {
  .site-header { height: 58px; }
  .section-pad { padding: 72px 18px; }
  .hero { padding: 108px 18px 48px; }
  .hero--landing { padding: 58px 0 0; }
  .hero--landing .hero__art--canvas { min-height: 52vh; min-height: 52svh; }
  .hero__art { padding: 14px; }
  .pair-grid { gap: 10px; }
  .pair-op { padding-top: 20px; }
  .pair-stage { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 6px; }
  .pair-arrow { transform: none; justify-self: center; font-size: 16px; }
  .story--problem .story-step, .transform-story .transform-step { padding: 26px 0 30px; }
  .story--problem, .transform-story, .story-step, .transform-step { scroll-margin-top: 70px; }
  .transform-story { padding-top: 28px; padding-bottom: 42px; }
  .mobile-story-card { margin: 18px 0 16px; padding: 12px; }
  .mobile-story-card .pair-stage { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 6px; }
  .mobile-story-card .panel__topline { gap: 8px; padding-bottom: 8px; margin-bottom: 9px; font-size: 9px; }
  .mobile-story-card .image-card__label { padding: 6px 7px; font-size: 10px; }
  .mobile-story-card .image-card__meta { padding: 7px; gap: 2px; }
  .mobile-story-card .image-card__meta strong { font-size: 12px; line-height: 1.2; }
  .mobile-story-card .image-card__meta span { font-size: 9px; line-height: 1.35; }
  .mobile-story-card .caption { margin-top: 9px; font-size: 11px; line-height: 1.45; }
  .contrast-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .measure-grid, .limits-grid, .attention-grid { grid-template-columns: 1fr; }
  .measure-grid article { grid-template-columns: 1fr; padding: 22px; }
  .measure-index { grid-row: auto; margin: 0 0 13px; }
  .measure-copy, .measure-equation { grid-column: 1; }
  .measure-equation { min-height: 72px; margin-top: 18px; padding: 15px 11px; font-size: 16px; }
  .severity-toolbar { display: flex; top: 58px; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px; margin-bottom: 12px; }
  .severity-switch { width: 100%; justify-content: space-between; }
  .severity-btn { flex: 1; padding: 10px 6px; font-size: 12px; }
  .family-nav { margin: 0; width: 100%; justify-content: center; gap: 22px; }
  .family-slide { min-height: 0; gap: 25px; padding: 23px 18px; scroll-margin-top: 165px; }
  .family-slide__heading { align-items: start; }
  .family-slide__heading h3 { font-size: clamp(27px, 7vw, 40px); }
  .family-slide__dose strong { font-size: 23px; }
  .family-slide__dose > span { font-size: 9px; }
  .family-visual { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
  .family-visual > .family-tile:last-child { grid-column: 2; grid-row: 1; }
  .flow-board { grid-column: 1 / -1; grid-row: 2; }
  .family-tile__image { padding: 4px; }
  .family-tile figcaption { font-size: 9px; letter-spacing: 0; flex-wrap: wrap; margin-top: 8px; }
  .flow-board--rgb { padding: 12px; }
  .gain-chart { gap: 8px; }
  .gain-channel__track { top: 4px; right: 4px; width: 14px; height: calc(100% - 8px); }
  .gain-channel figcaption { flex-direction: column; gap: 4px; font-size: 10px; }
  .flow-board--amp { padding: 12px; }
  .spectrum-composition { grid-template-columns: minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr); gap: 4px; padding: 16px 0; }
  .spectrum-panel__image { width: 100%; padding: 3px; }
  .spectrum-panel .spectrum-inset { right: 5px; bottom: 5px; min-width: 0; width: 34%; border-width: 1px; }
  .spectrum-panel__tag { top: 5px; left: 5px; padding: 2px 3px; font-size: 9px; }
  .spectrum-operator { align-self: center; width: auto; margin: 0; font-size: 17px; line-height: 1; }
  .spectrum-change { grid-template-columns: 58px minmax(0,1fr); gap: 9px; padding: 7px; }
  .spectrum-change img { width: 58px; }
  .spectrum-change > div > span { font-size: 9px; }
  .spectrum-change strong { font-size: 14px; }
  .spectrum-change p { font-size: 10px; }
  .mix-flow__caption { font-size: 9px; flex-wrap: wrap; }
  .mix-flow__caption strong { font-size: 14px; }
  .family-slide__foot { font-size: 9px; }
  .failure-definition { grid-template-columns: 1fr; }
  .failure-definition p { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .community-bar { padding: 30px 18px 36px; }
  .community-bar__inner { grid-template-columns: 1fr 1fr; gap: 20px 12px; padding-top: 25px; }
  .community-bar__link { gap: 8px; font-size: 14px; }
  .community-bar__link img { width: 25px; height: 24px; }
  .community-bar__link svg { width: 22px; height: 22px; }
  .community-bar__note { grid-column: 1 / -1; border-top: 1px solid #35332f; padding-top: 16px; text-align: left; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- cinematic intro (satellite -> highway -> site) ---------- */
.intro-lock, .intro-lock body { overflow: hidden !important; height: 100%; overscroll-behavior: none; }
#intro { touch-action: none; }
#intro { position: fixed; inset: 0; z-index: 200; background: #04060c; overflow: hidden; }
#intro-stage, #intro-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#intro-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(2, 3, 6, 0.55) 100%); }
#intro-grain { position: absolute; inset: -60px; pointer-events: none; z-index: 4; opacity: 0.08;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.55"/></svg>');
  animation: introGrain 0.9s steps(3) infinite; }
@keyframes introGrain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-18px, 10px); }
  66% { transform: translate(12px, -14px); } 100% { transform: translate(0, 0); } }
.intro-bar { display: none !important; }
.intro-bar--top { top: 0; } .intro-bar--bottom { bottom: 0; }
#intro-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  padding: 12px 14px 0 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: #cfe3ff; opacity: 0.9; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.hud-top i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5d5d; margin-right: 8px; animation: hudBlink 1.2s steps(2) infinite; }
@keyframes hudBlink { 50% { opacity: 0.15; } }
/* Fullscreen viewfinder: künclər viewport-un 4 küncünə dirənir. */
.hud-corner { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(207, 227, 255, 0.55); }
.hud-corner--tl { top: 32px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner--tr { top: 32px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner--bl { top: auto; bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner--br { top: auto; bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
#intro-cover { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; background: #04060c; }
.intro-cover__logo { width: min(34vw, 128px); height: auto; border-radius: 26px; filter: drop-shadow(0 0 28px rgba(150, 175, 255, 0.35)); }
.intro-cover__title { font-weight: 800; letter-spacing: 0.28em; font-size: 15px; color: #f2ede2; padding-left: 0.28em; }
.intro-cover__sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: #7f8db0; padding-left: 0.3em; animation: hudBlink 1.4s steps(2) infinite; }
#intro-cap { position: absolute; z-index: 5; left: clamp(24px, 6vw, 84px); bottom: 30px;
  max-width: 520px; pointer-events: none; opacity: 0; }
#intro-cap-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: #e8c98a; margin-bottom: 12px; }
#intro-cap-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04; letter-spacing: -0.02em; color: #faf7ef; margin: 0 0 12px; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
#intro-cap-sub { font-size: 14px; letter-spacing: 0.06em; color: rgba(250, 247, 239, 0.72); margin: 0; }
#intro-road { display: none !important; }
#intro-flash { position: absolute; inset: 0; z-index: 8; background: #faf7ef; opacity: 0; pointer-events: none; }
#intro-skip { position: absolute; z-index: 9; right: 16px; bottom: 22px;
  appearance: none; border: 1px solid rgba(250, 247, 239, 0.35); background: rgba(4, 6, 12, 0.45);
  color: #faf7ef; border-radius: 999px; padding: 10px 18px; font: 600 13px/1 var(--sans);
  letter-spacing: 0.04em; cursor: pointer; backdrop-filter: blur(6px); }
#intro-skip:hover { border-color: rgba(250, 247, 239, 0.8); }
@media (max-width: 700px) {
  #intro-cap { bottom: 76px; }
  #intro-skip { bottom: 16px; right: 16px; }
}
