:root {
  --paper: #f4efe3;
  --paper-deep: #e9dfcd;
  --ink: #172019;
  --ink-soft: #4c594e;
  --forest: #173f35;
  --forest-light: #255d50;
  --lime: #d9ef72;
  --coral: #eb765b;
  --gold: #d9a52c;
  --sky: #74b6bd;
  --line: rgba(23, 32, 25, 0.16);
  --white: #fffdf7;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1180px;
  --radius: 26px;
  --shadow: 0 26px 70px rgba(23, 32, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 100;
  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='.17'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 180ms ease, border-color 180ms ease, transform 220ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 227, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  width: 35px;
  height: 35px;
  position: relative;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.brand-mark i {
  width: 7px;
  height: 7px;
  position: absolute;
  border-radius: 50%;
  background: currentColor;
}
.brand-mark i:nth-child(1) { top: 6px; left: 14px; }
.brand-mark i:nth-child(2) { bottom: 7px; left: 7px; }
.brand-mark i:nth-child(3) { right: 7px; bottom: 7px; }
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.brand-mark::before { left: 16px; top: 14px; transform: rotate(58deg); }
.brand-mark::after { left: 9px; top: 25px; transform: rotate(-1deg); }
.navigation { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.language-switch[hidden] { display: none; }
.language-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: var(--white); background: var(--forest); }
.academia-link { display: block; width: fit-content; margin-top: 18px; }
.navigation a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.navigation a:not(.nav-cta) { position: relative; }
.navigation a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--coral);
  transition: right 180ms ease;
}
.navigation a:hover::after { right: 0; }
.nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-cta:hover { color: var(--paper); background: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 70px;
  background:
    radial-gradient(circle at 75% 24%, rgba(217, 239, 114, 0.34), transparent 27%),
    radial-gradient(circle at 8% 74%, rgba(235, 118, 91, 0.18), transparent 24%),
    linear-gradient(120deg, var(--paper) 0 64%, #ebe5d3 64% 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -170px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(23, 63, 53, 0.025), 0 0 0 180px rgba(23, 63, 53, 0.018);
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 32, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 25, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  align-items: center;
  gap: 64px;
}
.kicker,
.section-index,
.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(235, 118, 91, 0.14);
}
h1, h2, h3, blockquote {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.5rem, 6.4vw, 6.6rem);
  line-height: 0.91;
}
h1 em {
  display: block;
  color: var(--forest);
  font-weight: 600;
}
h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 4.5rem);
  line-height: 1.02;
}
h3 { line-height: 1.15; }
.hero-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.34rem);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(23, 63, 53, 0.22);
}
.button-primary:hover { background: var(--forest-light); box-shadow: 0 15px 34px rgba(23, 63, 53, 0.28); }
.button-dark { color: var(--paper); background: var(--ink); }
.text-link {
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.micro-note { margin: 24px 0 0; color: #69736b; font-size: 12px; }

.hero-field {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(23, 32, 25, 0.14);
  border-radius: 50% 50% 42% 58% / 48% 42% 58% 52%;
  background: rgba(255, 253, 247, 0.5);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.7), var(--shadow);
}
.field-label {
  position: absolute;
  z-index: 2;
  color: var(--forest-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field-label-top { top: 58px; right: 80px; }
.field-lines { width: 100%; }
.orbit-lines path {
  stroke: rgba(23, 63, 53, 0.24);
  stroke-width: 1.2;
  stroke-dasharray: 3 8;
  animation: dash 18s linear infinite;
}
.loose-nodes circle { fill: var(--coral); opacity: 0.75; animation: pulse 3s ease-in-out infinite alternate; }
.loose-nodes circle:nth-child(2n) { fill: var(--gold); animation-delay: -1.2s; }
.core-links path { stroke: var(--forest); stroke-width: 3; fill: rgba(217, 239, 114, 0.13); }
.core-nodes circle { fill: var(--lime); stroke: var(--forest); stroke-width: 3; }
.core-nodes .core-center { fill: var(--forest); stroke: var(--lime); stroke-width: 7; filter: drop-shadow(0 12px 20px rgba(23, 63, 53, 0.28)); }
.field-annotation {
  position: absolute;
  right: -14px;
  bottom: 42px;
  max-width: 330px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--forest);
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow);
}
.field-annotation strong { display: block; font-size: 13px; }
.field-annotation span { display: block; margin-top: 5px; color: #d5e2d8; font-size: 13px; line-height: 1.45; }
.hero-foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  gap: 28px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-foot > p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
blockquote { margin: 0; max-width: 870px; font-size: clamp(1.55rem, 2.5vw, 2.4rem); line-height: 1.22; }

.section { padding: 112px 0; }
.section-heading { max-width: 800px; margin-bottom: 54px; }
.section-heading h2 + p { margin: 22px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.section-heading-wide { max-width: 930px; }
.section-index { color: var(--coral); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.45);
}
.story-card-accent { background: var(--lime); }
.story-number { color: var(--forest); font-family: var(--mono); font-size: 13px; }
.story-card h3 { max-width: 290px; margin: 0; font-size: 1.8rem; }
.story-card p { margin: 15px 0 0; color: var(--ink-soft); font-size: 15px; }
.plain-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 38px;
  color: var(--paper);
  border-radius: var(--radius);
  background: var(--ink);
}
.compare-label { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.plain-compare p { margin: 8px 0 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }
.compare-arrow { color: var(--coral); font-size: 2.2rem; }

.diagnostics { color: var(--paper); background: var(--forest); }
.diagnostics .section-index, .diagnostics .eyebrow { color: var(--lime); }
.diagnostics .section-heading h2 + p { color: #c6d4c9; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.diagnostic-card {
  position: relative;
  min-height: 405px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, background 180ms ease;
}
.diagnostic-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.diagnostic-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.28;
}
.letter { color: var(--lime); font-family: var(--display); font-size: 6.4rem; line-height: 1; }
.card-b .letter { color: var(--coral); }
.card-s .letter { color: #efc452; }
.card-v .letter { color: var(--sky); }
.diagnostic-name { margin: 2px 0 28px; color: #b7c9bc; font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.diagnostic-card h3 { margin: 0; font-size: 1.55rem; }
.diagnostic-card > p:not(.diagnostic-name) { color: #d6e0d8; font-size: 14px; }
.diagnostic-card > span { position: absolute; bottom: 24px; left: 25px; right: 25px; color: #aebfb2; font-size: 12px; }
.robustness-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 26px 30px;
  color: var(--ink);
  border-radius: 22px;
  background: var(--paper);
}
.robustness-symbol {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: var(--coral);
  font-family: var(--display);
  font-size: 2.6rem;
}
.robustness-note .eyebrow { margin-bottom: 3px; color: var(--coral); }
.robustness-note h3 { margin: 0; font-size: 1.55rem; }
.robustness-note p:last-child { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.robustness-note code { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; white-space: nowrap; }

.lab { background: var(--paper-deep); }
.lab-grid { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 70px; align-items: center; }
.lab-copy h2 { max-width: 540px; }
.lab-copy > p:not(.section-index) { color: var(--ink-soft); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.preset {
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.preset:hover, .preset.is-active { color: var(--paper); background: var(--ink); }
.lab-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(230px, 0.72fr);
  align-items: center;
  gap: 12px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.radar-wrap { position: relative; }
.radar { width: 100%; }
.radar-grid polygon, .radar-grid path { fill: none; stroke: rgba(23, 32, 25, 0.15); stroke-width: 1; }
.radar-shape { fill: rgba(23, 63, 53, 0.22); stroke: var(--forest); stroke-width: 3; transition: points 180ms ease; }
.radar-points circle { fill: var(--coral); stroke: var(--white); stroke-width: 3; }
.radar-labels { font-family: var(--display); font-size: 23px; font-weight: 700; fill: var(--forest); }
.score-disc {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: var(--white);
  border: 6px solid var(--lime);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(23, 63, 53, 0.25);
}
.score-disc span { font-family: var(--mono); font-size: 11px; }
.score-disc strong { font-family: var(--display); font-size: 2.25rem; line-height: 1; }
.score-disc small { color: var(--lime); font-size: 10px; text-transform: uppercase; }
.controls { display: grid; gap: 18px; }
.control span { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.control b { width: 24px; color: var(--forest); font-family: var(--display); font-size: 1.3rem; }
.control output { margin-left: auto; font-family: var(--mono); }
input[type="range"] {
  width: 100%;
  height: 5px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest) var(--fill, 80%), #d8d7ce var(--fill, 80%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--ink);
}
.lab-disclaimer { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 16px; color: #6b746d; border-top: 1px solid var(--line); font-size: 11px; }

.domains { background: var(--white); }
.domain-list { border-top: 1px solid var(--line); }
.domain-row {
  display: grid;
  grid-template-columns: 70px 0.75fr 1.45fr 190px;
  align-items: center;
  gap: 24px;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
}
.domain-row h3 { margin: 0; font-size: 1.45rem; }
.domain-row p { color: var(--ink-soft); font-size: 14px; }
.domain-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: var(--forest);
  font-family: var(--display);
  font-size: 1.6rem;
}
.domain-status { justify-self: end; padding: 7px 10px; color: var(--forest); border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.status-mixed { color: #a24d3d; }

.research { background: var(--lime); }
.research-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 90px; align-items: start; }
.research-copy { position: sticky; top: 125px; }
.research-copy > p:not(.section-index) { color: #435043; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(23, 32, 25, 0.25); }
.method-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid rgba(23, 32, 25, 0.25); }
.method-steps li > span { font-family: var(--mono); font-size: 11px; }
.method-steps strong { font-family: var(--display); font-size: 1.55rem; }
.method-steps p { margin: 4px 0 0; color: #536052; font-size: 14px; }
.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}
.evidence-strip > div { min-height: 220px; padding: 28px; border-right: 1px solid var(--ink); }
.evidence-strip > div:last-child { border-right: 0; }
.evidence-big { display: block; color: var(--forest); font-family: var(--display); font-size: 2.6rem; }
.evidence-strip p { margin: 34px 0 0; font-size: 14px; }

.evolution { overflow: hidden; }
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  overflow-x: auto;
  padding: 18px 0 25px;
  scrollbar-color: var(--forest) transparent;
}
.timeline article { min-height: 250px; padding: 25px; border-top: 2px solid var(--forest); border-right: 1px solid var(--line); }
.timeline article:first-child { border-left: 1px solid var(--line); }
.timeline span { color: var(--coral); font-family: var(--mono); font-size: 12px; }
.timeline strong { display: block; margin-top: 50px; font-family: var(--display); font-size: 1.35rem; }
.timeline p { color: var(--ink-soft); font-size: 13px; }
.timeline-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; }

.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 90px; }
.faq .section-heading { position: sticky; top: 125px; height: fit-content; }
.accordion { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  padding: 26px 55px 26px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.4rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: var(--forest);
  font-family: var(--body);
  font-size: 20px;
}
details[open] summary::after { content: "−"; }
details p { max-width: 720px; margin: -8px 55px 27px 0; color: var(--ink-soft); font-size: 14px; }

.closing {
  padding: 120px 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 239, 114, 0.14), transparent 22%),
    radial-gradient(circle at 10% 90%, rgba(235, 118, 91, 0.18), transparent 30%),
    var(--forest);
}
.closing-inner { max-width: 970px; margin-inline: auto; text-align: center; }
.closing .kicker { justify-content: center; color: var(--lime); }
.closing h2 { font-size: clamp(2.7rem, 5.8vw, 5.6rem); }
.closing-inner > p:not(.kicker) { color: #c6d4c9; font-size: 1.1rem; }
.closing .hero-actions { justify-content: center; }
.closing .button-primary { color: var(--ink); background: var(--lime); }
.text-link-light { color: var(--paper); }

.site-footer { padding: 60px 0 28px; color: #d6ded8; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-brand { color: var(--paper); }
.footer-grid > div > p { max-width: 280px; color: #aeb8b0; font-size: 12px; }
.footer-grid strong { display: block; margin-bottom: 14px; color: var(--lime); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; margin: 7px 0; color: #d6ded8; font-size: 13px; text-underline-offset: 3px; }
.footer-legal span { color: #859087; font-size: 11px; }

.reveal { transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.has-reveal .reveal { opacity: 0; transform: translateY(24px); }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

@keyframes dash { to { stroke-dashoffset: -120; } }
@keyframes pulse { from { transform: scale(0.8); opacity: 0.42; } to { transform: scale(1.18); opacity: 0.95; } }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 30px; }
  .hero-field { min-height: 460px; }
  .diagnostic-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-copy { max-width: 740px; }
  .domain-row { grid-template-columns: 60px 0.8fr 1.2fr; }
  .domain-status { grid-column: 2 / -1; justify-self: start; margin: -18px 0 18px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-legal { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header { background: rgba(244, 239, 227, 0.92); backdrop-filter: blur(16px); }
  .nav-shell { min-height: 70px; gap: 10px; }
  .language-switch { margin-left: auto; }
  .menu-button { order: 3; }
  .menu-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; cursor: pointer; }
  .menu-button span:not(.sr-only) { width: 24px; height: 2px; display: block; background: var(--ink); transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .navigation {
    position: absolute;
    inset: 70px 20px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .navigation.is-open { display: flex; }
  .navigation a { padding: 10px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-field { max-width: 620px; min-height: auto; margin-inline: auto; }
  .hero-foot { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 85px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 230px; }
  .plain-compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .robustness-note { grid-template-columns: auto 1fr; }
  .robustness-note code { grid-column: 1 / -1; }
  .lab-panel { grid-template-columns: 1fr; }
  .radar-wrap { max-width: 460px; margin-inline: auto; }
  .domain-row { grid-template-columns: 52px 1fr; gap: 10px 18px; padding: 22px 0; }
  .domain-row p, .domain-status { grid-column: 2; margin: 0; }
  .research-grid, .faq-grid { grid-template-columns: 1fr; gap: 45px; }
  .research-copy, .faq .section-heading { position: static; }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .evidence-strip > div:last-child { border-bottom: 0; }
  .evidence-strip p { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-legal { grid-column: auto; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero { padding-top: 108px; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .field-annotation { position: static; max-width: none; margin: -30px 12px 12px; border-radius: 16px; }
  .field-label-top { top: 34px; right: 54px; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .diagnostic-card { min-height: 355px; }
  .robustness-note { grid-template-columns: 1fr; }
  .lab-panel { padding: 18px; border-radius: 24px; }
  .score-disc { width: 95px; height: 95px; }
  .score-disc strong { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child, .footer-legal { grid-column: auto; }
}

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

:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
