:root {
  --ink: #0b1830;
  --ink-soft: #26364f;
  --muted: #65738a;
  --line: #dfe5ed;
  --line-strong: #cbd4e1;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --tint: #eef3fb;
  --navy: #0b1830;
  --navy-soft: #132745;
  --blue: #4f7cff;
  --blue-dark: #3159d8;
  --blue-pale: #e7edff;
  --coral: #f26b4f;
  --coral-pale: #ffebe6;
  --green: #16a085;
  --green-pale: #dff6ef;
  --gold: #e7a13a;
  --gold-pale: #fff1d8;
  --shadow-sm: 0 8px 24px rgba(11, 24, 48, 0.07);
  --shadow-md: 0 24px 70px rgba(11, 24, 48, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: 1120px;
  --shell-wide: 1240px;
  --font-sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

sup {
  position: relative;
  top: -0.15em;
  font-size: 0.62em;
}

sub {
  font-size: 0.68em;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

::selection {
  color: #fff;
  background: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid rgba(79, 124, 255, 0.55);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.page-shell--wide {
  width: min(calc(100% - 48px), var(--shell-wide));
}

.content-narrow {
  width: min(calc(100% - 48px), 960px);
}

.hero-copy,
.hero-summary,
.section-heading > *,
.teaser-takeaway > *,
.principle-callout > *,
.formula-card > *,
.reliability-panel > *,
.citation-grid > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(203, 212, 225, 0.72);
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell-wide));
  min-height: 72px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: #42516a;
  font-size: 0.84rem;
  font-weight: 670;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--navy);
  background: #fff;
}

.site-nav .nav-cta {
  margin-left: 5px;
  padding-inline: 15px;
  color: #fff;
  background: var(--navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  color: #fff;
  background: #1a2e4f;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--navy);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 104px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 80% 5%,
      rgba(79, 124, 255, 0.17),
      transparent 31%
    ),
    radial-gradient(
      circle at 12% 90%,
      rgba(22, 160, 133, 0.11),
      transparent 32%
    ),
    linear-gradient(145deg, #f9fbff 0%, #edf3ff 65%, #f7f8fb 100%);
}

.hero::before {
  position: absolute;
  top: -250px;
  right: -200px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(79, 124, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: 160px;
  bottom: -390px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(22, 160, 133, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 72px;
  align-items: center;
}

.hero-formula {
  position: absolute;
  z-index: 0;
  color: var(--blue-dark);
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.08;
  user-select: none;
}

.hero-formula--one {
  top: 55px;
  left: 57%;
  font-size: 2.4rem;
  transform: rotate(-5deg);
}

.hero-formula--two {
  bottom: 55px;
  left: 4%;
  font-size: 1.8rem;
  transform: rotate(4deg);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(79, 124, 255, 0.22);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.76);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(79, 124, 255, 0.13);
}

.hero h1 {
  margin: 24px 0 0;
  color: var(--navy);
  font-size: clamp(3.7rem, 7vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.hero h1 > span {
  display: block;
}

.hero h1 small {
  display: block;
  margin-top: 26px;
  color: #1d2d48;
  font-size: clamp(1.55rem, 3vw, 2.38rem);
  font-weight: 720;
  letter-spacing: -0.042em;
  line-height: 1.12;
}

.hero-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: #43526a;
  font-size: 1.08rem;
  line-height: 1.72;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin-top: 28px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 740;
  list-style: none;
}

.authors a {
  border-bottom: 1px solid transparent;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.authors a:hover {
  color: var(--blue-dark);
  border-color: currentColor;
}

.affiliation,
.author-notes {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 3px;
  font-size: 0.76rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.resource-button {
  --resource-color: var(--blue-dark);
  --resource-pale: var(--blue-pale);
  border-color: color-mix(in srgb, var(--resource-color) 22%, var(--line));
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(11, 24, 48, 0.06);
}

.resource-button:hover {
  border-color: color-mix(in srgb, var(--resource-color) 55%, var(--line));
  background: #fff;
  box-shadow: 0 11px 26px rgba(11, 24, 48, 0.12);
  transform: translateY(-2px);
}

.resource-button__mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--resource-color);
  background: var(--resource-pale);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.resource-button__mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.resource-button--paper {
  --resource-color: #cf4d37;
  --resource-pale: var(--coral-pale);
}

.resource-button--arxiv {
  --resource-color: #b31b1b;
  --resource-pale: #f9e4e4;
}

.resource-button--huggingface {
  --resource-color: #9a6700;
  --resource-pale: #fff3bf;
}

.resource-button--huggingface .resource-button__mark {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(154, 103, 0, 0.2);
}

.resource-button--bibtex {
  --resource-color: #ad7419;
  --resource-pale: var(--gold-pale);
}

.resource-button--github {
  --resource-color: var(--navy);
  --resource-pale: #e8ebf0;
}

.hero-summary {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(79, 124, 255, 0.31),
      transparent 36%
    ),
    var(--navy);
  box-shadow: 0 32px 90px rgba(11, 24, 48, 0.24);
}

.hero-summary::after {
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.summary-heading {
  position: relative;
  z-index: 1;
}

.summary-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9db6e7;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-heading strong {
  display: block;
  max-width: 280px;
  font-size: 1.46rem;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.summary-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 28px 0 26px;
  list-style: none;
}

.summary-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-flow li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #bcd0f8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  animation: trace-stage 6s ease-in-out infinite;
}

.summary-flow li:nth-child(2) > span {
  animation-delay: 2s;
}

.summary-flow li:nth-child(3) > span {
  animation-delay: 4s;
}

@keyframes trace-stage {
  0%,
  18% {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(79, 124, 255, 0.14);
  }
  30%,
  100% {
    color: #bcd0f8;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0 rgba(79, 124, 255, 0);
  }
}

.summary-flow strong,
.summary-flow small {
  display: block;
}

.summary-flow strong {
  font-size: 0.92rem;
}

.summary-flow small {
  margin-top: 3px;
  color: #aebcd1;
  font-size: 0.77rem;
  line-height: 1.45;
}

.mini-operators {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-operators li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
}

.mini-operators i {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.op-anchor {
  color: #fff;
  background: var(--blue);
}

.op-disentangle {
  color: #fff;
  background: var(--coral);
}

.op-apply {
  color: #fff;
  background: var(--green);
}

.op-compose {
  color: #fff;
  background: var(--gold);
}

.teaser-section {
  padding: 94px 0 108px;
  background: var(--paper);
}

.teaser-takeaway {
  display: grid;
  grid-template-columns: 0.62fr 1.45fr 0.8fr;
  gap: 36px;
  align-items: end;
  margin: 0 auto 38px;
}

.teaser-takeaway h2,
.section-heading h2,
.citation-grid h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  font-weight: 830;
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.teaser-takeaway h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.teaser-takeaway > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.paper-figure {
  margin: 42px 0 0;
}

.figure-viewport {
  width: 100%;
  min-width: 0;
}

.figure-viewport img {
  display: block;
}

.paper-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.paper-figure--hero {
  margin-top: 0;
}

.paper-figure--hero img {
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.paper-figure figcaption,
.diagnostic-chart figcaption {
  max-width: 940px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.paper-figure figcaption strong {
  color: var(--ink-soft);
}

.section {
  padding: 108px 0;
}

.section--paper {
  background: var(--paper);
}

.section--tint {
  background: var(--tint);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading .section-kicker {
  margin-bottom: 14px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.section-heading--center {
  display: block;
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.abstract-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  color: #35445c;
  font-size: 1.02rem;
  line-height: 1.82;
}

.abstract-copy p {
  margin: 0;
}

.abstract-copy strong {
  color: var(--navy);
}

.abstract-copy i {
  font-family: var(--font-serif);
}

.problem-card h3,
.pipeline-grid h3,
.finding-card h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.024em;
}

.problem-card p,
.pipeline-grid p,
.finding-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 0 rgba(11, 24, 48, 0.02);
}

.problem-number {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  font-size: 0.72rem;
  font-weight: 850;
}

.problem-card:nth-child(2) .problem-number {
  color: #c64a34;
  background: var(--coral-pale);
}

.problem-card:nth-child(3) .problem-number {
  color: #08735f;
  background: var(--green-pale);
}

.benchmark-comparison {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.benchmark-comparison__header {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 24px;
}

.benchmark-comparison__header .section-kicker {
  margin-bottom: 9px;
}

.benchmark-comparison__header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.benchmark-comparison__header > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.comparison-table-wrap {
  box-shadow: none;
}

.comparison-table {
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  text-align: center;
}

.comparison-table th:first-child {
  min-width: 145px;
  text-align: left;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  color: #56647a;
}

.comparison-table .comparison-highlight th,
.comparison-table .comparison-highlight td {
  color: var(--blue-dark);
  background: #edf3ff;
  font-weight: 800;
}

.comparison-table .comparison-highlight th span {
  color: #5d6b80;
  font-size: 0.64rem;
  font-weight: 750;
}

.comparison-mark {
  font-size: 1rem;
  font-weight: 850;
}

.comparison-mark--yes {
  color: #08735f;
}

.comparison-mark--no {
  color: #a1abba;
}

.principle-callout {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 34px 38px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--navy);
}

.principle-label {
  color: #9fb4d9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.principle-callout p {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 1.04rem;
}

.principle-callout del {
  color: #7f8da6;
  font-size: 0.9rem;
}

.principle-callout strong {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.operator-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 18px;
  padding: 24px;
  border: 1px solid rgba(11, 24, 48, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.operator-symbol {
  display: grid;
  grid-row: span 2;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
}

.operator-card--anchor .operator-symbol {
  color: var(--blue-dark);
  background: var(--blue-pale);
}

.operator-card--disentangle .operator-symbol {
  color: #c64a34;
  background: var(--coral-pale);
}

.operator-card--apply .operator-symbol {
  color: #08735f;
  background: var(--green-pale);
}

.operator-card--compose .operator-symbol {
  color: #a86a0a;
  background: var(--gold-pale);
}

.operator-card > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.operator-card h3 {
  margin: 1px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.operator-card > p {
  grid-column: 2;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.operator-card code {
  grid-column: 2;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: rgba(11, 24, 48, 0.055);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.formula-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  margin-top: 16px;
  padding: 35px 38px;
  border: 1px solid rgba(79, 124, 255, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff 0%, #f7f9ff 100%);
}

.formula-label {
  margin: 0 0 7px;
  color: var(--blue-dark);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.formula {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.7vw, 2.05rem);
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.formula-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.formula-card > p strong {
  color: var(--ink);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--navy);
  list-style: none;
}

.stat-band > li {
  min-width: 0;
  padding: 27px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.stat-band > li:last-child {
  border-right: 0;
}

.stat-band strong,
.stat-band span {
  display: block;
}

.stat-band strong {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.stat-band span {
  margin-top: 8px;
  color: #aebbd0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  list-style: none;
}

.pipeline-grid li {
  min-height: 230px;
  padding: 26px 24px;
  background: #fff;
}

.pipeline-grid li > span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.quality-panel {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid #cfd9ec;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
}

.quality-panel__header {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: end;
}

.quality-panel__header .section-kicker {
  margin-bottom: 8px;
}

.quality-panel__header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.quality-panel__header > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.quality-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid #d7dfed;
  border-radius: 15px;
  background: #d7dfed;
  list-style: none;
}

.quality-flow li {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.93);
}

.quality-flow span,
.quality-flow strong,
.quality-flow small {
  display: block;
}

.quality-flow span {
  color: var(--blue-dark);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.quality-flow strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.quality-flow small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.quality-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.6;
}

.quality-note strong {
  color: var(--ink-soft);
}

.paper-figure--compact {
  margin-top: 46px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.criteria-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.criteria-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
}

.criteria-grid h3 {
  margin: 0;
  font-size: 0.93rem;
}

.criteria-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reliability-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
  margin-top: 46px;
  padding: 30px;
  border: 1px solid #cfd9ec;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f7faff 0%, #f1f5fc 100%);
}

.reliability-copy .section-kicker {
  margin-bottom: 10px;
}

.reliability-copy h3 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.reliability-copy > p:not(.section-kicker, .reliability-takeaway) {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.reliability-takeaway {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 22px 0 12px;
}

.reliability-takeaway strong {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.reliability-takeaway span {
  color: #59677d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reliability-note {
  padding-top: 13px;
  border-top: 1px solid #d7dfed;
}

.reliability-note strong {
  color: var(--ink-soft);
}

.alignment-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scrollbar-color: #aab6c8 transparent;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-align: right;
}

.alignment-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.alignment-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.alignment-table th,
.alignment-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7ebf1;
  text-align: right;
  white-space: nowrap;
}

.alignment-table thead th {
  color: #536078;
  background: #f7f9fc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.alignment-table abbr {
  text-decoration: none;
}

.alignment-table th:first-child {
  min-width: 160px;
  text-align: left;
}

.alignment-table tbody th {
  color: var(--ink-soft);
  font-weight: 700;
}

.alignment-table tr:last-child th,
.alignment-table tr:last-child td {
  border-bottom: 0;
}

.alignment-table .judge-used th,
.alignment-table .judge-used td {
  background: #f2f8f6;
}

.alignment-table .alignment-ensemble th,
.alignment-table .alignment-ensemble td {
  background: #f2f6ff;
}

.table-badge.table-badge--judge {
  background: #08735f;
}

.result-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scrollbar-color: #aab6c8 transparent;
  -webkit-overflow-scrolling: touch;
}

.result-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.result-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.result-table th,
.result-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e7ebf1;
  text-align: right;
  white-space: nowrap;
}

.result-table thead th {
  padding-top: 17px;
  padding-bottom: 17px;
  color: #536078;
  background: #f7f9fc;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.result-table th:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 235px;
  text-align: left;
  background: #fff;
}

.result-table thead th:first-child {
  z-index: 4;
  background: #f7f9fc;
}

.result-table tbody th {
  color: var(--ink-soft);
  font-weight: 700;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
  border-bottom: 0;
}

.result-table .group-row th {
  position: static;
  padding-top: 9px;
  padding-bottom: 9px;
  color: #6f7c92;
  background: #eef2f7;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-table .model-winner th,
.result-table .model-winner td {
  background: #f2f6ff;
}

.result-table .model-winner th:first-child {
  background: #f2f6ff;
}

.result-table .open-winner th,
.result-table .open-winner td {
  background: #f1fbf7;
}

.result-table .open-winner th:first-child {
  background: #f1fbf7;
}

.score-best {
  color: #204bbb;
  font-weight: 850;
}

.table-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 99px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  text-transform: uppercase;
}

.table-badge--open {
  background: #08735f;
}

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

.finding-card {
  min-height: 245px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.finding-card--primary {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.finding-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.finding-card > strong {
  display: block;
  margin: 25px 0 20px;
  color: var(--blue-dark);
  font-size: 2.6rem;
  letter-spacing: -0.065em;
  line-height: 1;
}

.finding-card--primary > span,
.finding-card--primary p {
  color: #aabbd4;
}

.finding-card--primary > strong,
.finding-card--primary h3 {
  color: #fff;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.analysis-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.analysis-figure--wide {
  grid-column: 1 / -1;
}

.analysis-figure img {
  width: 100%;
  height: 410px;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.analysis-figure figcaption {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.section--dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 93% 8%,
      rgba(79, 124, 255, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at 5% 95%,
      rgba(22, 160, 133, 0.16),
      transparent 30%
    ),
    var(--navy);
}

.section--dark::before {
  position: absolute;
  top: 210px;
  right: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.section-heading--dark {
  position: relative;
  z-index: 1;
}

.section-heading--dark h2 {
  color: #fff;
}

.section-heading--dark > p {
  color: #aebbd0;
}

.section--dark .section-kicker {
  color: #8fafff;
}

.paper-figure--dark {
  position: relative;
  z-index: 1;
}

.paper-figure--dark img {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.paper-figure--dark figcaption {
  color: #9eacc1;
}

.paper-figure--dark figcaption strong {
  color: #e9eef8;
}

.diagnostic-outcomes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.66fr) minmax(0, 1.34fr);
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.065);
}

.diagnostic-outcomes__copy h3 {
  max-width: 430px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.diagnostic-outcomes__copy > p:not([class]) {
  margin: 17px 0 0;
  color: #aebbd0;
  font-size: 0.8rem;
  line-height: 1.65;
}

.diagnostic-outcomes__metric {
  display: flex;
  gap: 11px;
  align-items: baseline;
  margin: 25px 0 13px;
}

.diagnostic-outcomes__metric strong {
  color: #fff;
  font-size: clamp(2.35rem, 4.8vw, 3.6rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.diagnostic-outcomes__metric span {
  max-width: 150px;
  color: #8fafff;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.diagnostic-outcomes__note {
  padding-top: 13px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9facbf;
  font-size: 0.75rem;
  line-height: 1.55;
}

.diagnostic-outcomes__note strong {
  color: #e9eef8;
}

.diagnostic-outcomes__table {
  min-width: 0;
}

.table-scroll-hint--dark {
  color: #9facbf;
}

.diagnostic-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
  scrollbar-color: #8090aa transparent;
  -webkit-overflow-scrolling: touch;
}

.diagnostic-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

.diagnostic-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.diagnostic-table th,
.diagnostic-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e7ebf1;
  text-align: right;
  white-space: nowrap;
}

.diagnostic-table thead th {
  color: #536078;
  background: #f7f9fc;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.diagnostic-table th:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 165px;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 750;
  text-align: left;
}

.diagnostic-table thead th:first-child {
  z-index: 3;
  color: #536078;
  background: #f7f9fc;
}

.diagnostic-table tr:last-child th,
.diagnostic-table tr:last-child td {
  border-bottom: 0;
}

.diagnostic-table .diagnostic-row-key th,
.diagnostic-table .diagnostic-row-key td {
  color: #204bbb;
  background: #edf3ff;
  font-weight: 820;
}

.diagnostic-table .diagnostic-row-key th:first-child {
  background: #edf3ff;
}

.diagnostic-table .diagnostic-score-key {
  color: #a13b27;
  background: var(--coral-pale);
  font-weight: 850;
}

.diagnostic-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.1fr;
  gap: 14px;
  margin-top: 30px;
}

.diagnostic-stat,
.diagnostic-chart,
.diagnostic-insight {
  min-height: 370px;
  margin: 0;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.diagnostic-stat > strong {
  display: block;
  margin: 38px 0 15px;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 5.7rem);
  font-weight: 840;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.diagnostic-stat > strong span {
  color: var(--blue);
  font-size: 0.47em;
}

.diagnostic-stat h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.diagnostic-stat > p:last-child {
  margin: 15px 0 0;
  color: #9facbf;
  font-size: 0.78rem;
  line-height: 1.6;
}

.diagnostic-chart {
  display: flex;
  flex-direction: column;
}

.diagnostic-chart img {
  width: 100%;
  min-height: 250px;
  flex: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.diagnostic-chart figcaption {
  margin-top: 14px;
  color: #9facbf;
  font-size: 0.76rem;
}

.diagnostic-insight ul {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.diagnostic-insight li {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diagnostic-insight li strong,
.diagnostic-insight li span {
  display: block;
}

.diagnostic-insight li strong {
  color: #fff;
  font-size: 0.84rem;
}

.diagnostic-insight li span {
  margin-top: 4px;
  color: #9facbf;
  font-size: 0.75rem;
  line-height: 1.5;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.application-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.application-name {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-formula {
  margin: 22px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-style: italic;
  overflow-wrap: anywhere;
}

.application-grid article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.citation-section {
  color: #fff;
  background: #101f38;
}

.citation-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 72px;
  align-items: center;
}

.citation-grid h2 {
  margin-top: 14px;
  color: #fff;
}

.citation-grid > div:first-child > p:last-child {
  max-width: 380px;
  margin: 22px 0 0;
  color: #9facbf;
  font-size: 0.88rem;
}

.citation-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #0a1529;
}

.citation-box pre {
  padding: 30px;
  margin: 0;
  overflow-x: auto;
  color: #d7e3f6;
  font-size: 0.76rem;
  line-height: 1.72;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd8ec;
  background: #172844;
  font-size: 0.65rem;
  font-weight: 760;
  cursor: pointer;
}

.copy-button:hover {
  color: #fff;
  background: #203654;
}

.site-footer {
  padding: 52px 0;
  color: #8f9db2;
  background: #081225;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand-mark {
  color: var(--navy);
  background: #fff;
}

.footer-grid > div:first-child > p {
  max-width: 360px;
  margin: 13px 0 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer-credit {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 7.4vw, 5.5rem);
  }

  .section-heading {
    gap: 42px;
  }

  .stat-band {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-band > li:nth-child(3) {
    border-right: 0;
  }

  .stat-band > li:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diagnostic-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .diagnostic-insight {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .diagnostic-insight ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-credit {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 70px;
  }

  .page-shell,
  .page-shell--wide,
  .content-narrow,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a,
  .site-nav .nav-cta {
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
  }

  .table-scroll-hint {
    display: block;
  }

  .hero {
    padding: 80px 0 84px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-summary {
    max-width: 650px;
  }

  .hero-formula {
    display: none;
  }

  .teaser-section,
  .section {
    padding: 80px 0;
  }

  .teaser-takeaway,
  .section-heading,
  .citation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teaser-takeaway > p:last-child,
  .section-heading > p {
    max-width: 660px;
  }

  .abstract-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .problem-grid,
  .finding-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 0;
  }

  .problem-number {
    margin-bottom: 28px;
  }

  .principle-callout,
  .formula-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benchmark-comparison__header,
  .reliability-panel {
    grid-template-columns: 1fr;
  }

  .quality-panel__header,
  .diagnostic-outcomes {
    grid-template-columns: 1fr;
  }

  .quality-panel__header {
    gap: 14px;
  }

  .quality-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .diagnostic-outcomes {
    gap: 24px;
    align-items: stretch;
  }

  .benchmark-comparison__header {
    gap: 12px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-figure img {
    height: 360px;
  }

  .citation-grid {
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-credit {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .page-shell,
  .page-shell--wide,
  .content-narrow,
  .nav-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .hero h1 small {
    margin-top: 22px;
    font-size: clamp(1.35rem, 7.4vw, 2rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .authors {
    gap: 7px 16px;
    font-size: 0.92rem;
  }

  .affiliation,
  .author-notes {
    font-size: 0.76rem;
  }

  .author-notes {
    display: grid;
    gap: 2px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .resource-button:last-child {
    grid-column: 1 / -1;
  }

  .hero-summary {
    padding: 25px;
    border-radius: 24px;
  }

  .teaser-section,
  .section {
    padding: 66px 0;
  }

  .teaser-takeaway,
  .section-heading {
    margin-bottom: 34px;
  }

  .paper-figure {
    margin-top: 30px;
  }

  .paper-figure img,
  .paper-figure--hero img {
    border-radius: 14px;
  }

  .figure-viewport {
    max-width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #aab6c8 transparent;
    -webkit-overflow-scrolling: touch;
  }

  .figure-viewport--wide img {
    width: 760px;
    min-width: 760px;
    max-width: none;
  }

  .figure-viewport--medium img {
    width: 620px;
    min-width: 620px;
    max-width: none;
  }

  .operator-grid,
  .criteria-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .principle-callout,
  .formula-card {
    padding: 28px 24px;
  }

  .benchmark-comparison,
  .reliability-panel,
  .quality-panel,
  .diagnostic-outcomes {
    padding: 24px;
  }

  .operator-card {
    grid-template-columns: 52px 1fr;
    padding: 20px;
  }

  .operator-symbol {
    width: 50px;
    height: 50px;
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band > li,
  .stat-band > li:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .stat-band > li:nth-child(even) {
    border-right: 0;
  }

  .stat-band > li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-grid li {
    min-height: 0;
  }

  .pipeline-grid li > span {
    margin-bottom: 26px;
  }

  .finding-card {
    min-height: 0;
  }

  .analysis-figure {
    padding: 14px;
  }

  .analysis-figure img {
    height: auto;
    max-height: 380px;
  }

  .alignment-table th:first-child {
    min-width: 145px;
  }

  .result-table th:first-child {
    min-width: 195px;
  }

  .formula,
  .application-formula {
    font-size: 1.1rem;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-stat,
  .diagnostic-chart,
  .diagnostic-insight {
    min-height: 0;
  }

  .diagnostic-insight {
    grid-column: auto;
  }

  .diagnostic-insight ul {
    display: block;
  }

  .diagnostic-table {
    min-width: 650px;
  }

  .application-grid article {
    min-height: 0;
  }

  .citation-box pre {
    padding: 58px 20px 24px;
    font-size: 0.68rem;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .resource-button:last-child {
    grid-column: auto;
  }

  .button {
    width: 100%;
  }

  .hero-summary,
  .principle-callout,
  .formula-card,
  .benchmark-comparison,
  .reliability-panel,
  .quality-panel,
  .diagnostic-outcomes,
  .diagnostic-stat,
  .diagnostic-chart,
  .diagnostic-insight,
  .citation-box {
    border-radius: 16px;
  }

  .result-table th:first-child {
    min-width: 175px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .table-scroll-hint,
  .copy-button,
  .site-footer {
    display: none !important;
  }

  body,
  .section,
  .section--dark,
  .citation-section {
    color: #000;
    background: #fff;
  }

  .hero,
  .section,
  .teaser-section {
    padding: 32px 0;
  }

  .paper-figure img {
    box-shadow: none;
  }
}
