:root {
  --ink: #152936;
  --ink-soft: #536774;
  --navy: #102f45;
  --navy-2: #174b68;
  --blue: #19769d;
  --teal: #188977;
  --paper: #f6f8f8;
  --white: #ffffff;
  --line: #ced9dc;
  --line-dark: #a7b7bd;
  --green: #17805c;
  --green-soft: #e4f3ed;
  --yellow: #d88a00;
  --yellow-soft: #fff3d8;
  --red: #b7392f;
  --red-soft: #fbe8e6;
  --shadow: 0 18px 55px rgba(16, 47, 69, 0.09);
  --radius: 14px;
  color-scheme: light;
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 7px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 4vw;
  color: white;
  background: rgba(12, 39, 57, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 720;
  letter-spacing: .01em;
  text-decoration: none;
}
.wordmark:hover { color: white; }
.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: #9de1d5;
  border-radius: 9px 3px 9px 3px;
  font: italic 700 16px Georgia, serif;
}

.site-header nav { display: flex; gap: clamp(16px, 2.3vw, 34px); }
.site-header nav a {
  color: #d9e7ec;
  font-size: .86rem;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  min-height: 630px;
  padding: clamp(78px, 10vw, 145px) max(5vw, calc((100vw - 1480px) / 2));
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(11, 42, 60, .98), rgba(17, 66, 88, .92)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.05) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.05) 80px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -26vw;
  width: 62vw;
  height: 62vw;
  border: 1px solid rgba(139, 219, 205, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(139, 219, 205, .03), 0 0 0 14vw rgba(139, 219, 205, .025);
  pointer-events: none;
}
.hero-copy, .funding-card { position: relative; z-index: 1; }
.eyebrow, .section-number {
  margin: 0 0 16px;
  color: #82d4c5;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow a {
  color: inherit;
  text-decoration-color: rgba(130, 212, 197, .6);
  text-underline-offset: .2em;
}
.eyebrow a:hover, .eyebrow a:focus-visible { color: white; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.4vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .99;
}
.hero-lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: #d8e6ea;
  font-size: clamp(1rem, 1.35vw, 1.26rem);
}
.paper-reference {
  max-width: 810px;
  margin: 28px 0 0;
  padding: 17px 20px 18px;
  border-left: 3px solid #82d4c5;
  background: rgba(4, 29, 43, .32);
}
.paper-kicker {
  margin: 0 0 7px;
  color: #9cdbd0;
  font-size: .73rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.paper-title {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.2;
}
.paper-authors {
  margin: 11px 0 0;
  color: #e4eff1;
  font-weight: 650;
}
.paper-reference a {
  color: #9ce1d5;
  text-decoration-color: rgba(156, 225, 213, .62);
  text-underline-offset: .18em;
}
.paper-reference a:hover, .paper-reference a:focus-visible { color: white; }
.paper-reference sup, .paper-affiliations sup { font-size: .72em; }
.paper-affiliations {
  margin: 10px 0 0;
  color: #c4d7dc;
  font-size: .78rem;
  line-height: 1.48;
}
.hero-actions, .form-actions, .download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, a:focus-visible, .support-marker:focus-visible {
  outline: 3px solid #57b9df;
  outline-offset: 3px;
}
.button-primary { color: white; background: var(--teal); box-shadow: 0 8px 22px rgba(4, 58, 55, .22); }
.button-primary:hover { color: white; background: #116f64; }
.button-secondary { color: var(--navy); background: white; border-color: var(--line); }
.button-secondary:hover { color: var(--navy); background: #eef7f6; }
.button-quiet { color: var(--navy); background: transparent; border-color: var(--line-dark); }
.button:disabled { opacity: .56; cursor: wait; }

.funding-card {
  padding: clamp(24px, 3vw, 38px);
  color: var(--ink);
  background: rgba(255,255,255,.97);
  border-top: 4px solid #ffcf00;
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 26px 70px rgba(0, 19, 30, .28);
}
.funding-card img { display: block; width: min(100%, 360px); height: auto; }
.funding-card p { margin: 25px 0 0; color: var(--ink-soft); font-size: .93rem; }

.section {
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 140px) clamp(20px, 5vw, 74px);
}
.section-heading { max-width: 900px; margin-bottom: 48px; }
.section-heading.compact { max-width: 1050px; }
.section-heading .section-number { color: var(--teal); }
.section h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.section-heading > p:last-child { max-width: 820px; margin: 21px 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.system-figure {
  margin: 0;
  padding: clamp(14px, 2.5vw, 36px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.system-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
}
.system-figure figcaption {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.figure-parameters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1100px;
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.figure-parameters > div {
  min-width: 0;
  padding: 14px 16px;
  background: #f8fbfb;
}
.figure-parameters dt {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}
.figure-parameters dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.36;
}

.formulation-section {
  max-width: none;
  padding-right: max(5vw, calc((100vw - 1380px) / 2));
  padding-left: max(5vw, calc((100vw - 1380px) / 2));
  background: #eaf0f1;
  border-block: 1px solid #d7e1e3;
}
.formula-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; }
.formula-card {
  padding: clamp(25px, 3vw, 43px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.formula-card.accent-card { border-top: 4px solid var(--teal); }
.formula-card h3 { margin: 0 0 22px; color: var(--navy); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.formula-card > p { margin: 18px 0 0; color: var(--ink-soft); font-size: .9rem; }
.formula-card > p strong { color: var(--ink); }
.equation {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 34px;
  align-items: center;
  color: #0b3045;
  font: italic clamp(1.18rem, 2vw, 1.6rem) Georgia, serif;
}
.equation > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fraction { display: inline-grid; grid-template-rows: auto auto; text-align: center; line-height: 1.15; vertical-align: middle; }
.fraction > span:first-child { padding: 0 5px 3px; border-bottom: 1px solid currentColor; }
.fraction > span:last-child { padding: 3px 5px 0; }
.hat { position: relative; display: inline-block; }
.hat::after { content: "^"; position: absolute; top: -.62em; left: 50%; transform: translateX(-50%); font: normal .72em/1 Georgia, serif; }
.mu-equation { justify-content: space-between; margin-top: 24px; }
.radical { position: relative; font-size: 1.5em; font-style: normal; }
.root { position: absolute; top: -.1em; left: -.18em; font-size: .35em; }
.parenthesized::before { content: "("; margin-right: 3px; font-size: 1.7em; font-style: normal; font-weight: 300; }
.parenthesized::after { content: ")"; margin-left: 3px; font-size: 1.7em; font-style: normal; font-weight: 300; }
.demonstrator-section { max-width: 1740px; }
.runtime-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px 18px;
  color: var(--ink-soft);
  background: #edf2f3;
  border: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  font-size: .84rem;
}
.model-state { display: flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 700; }
.state-dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(216,138,0,.13); }
.state-ready .state-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(23,128,92,.13); }
.state-error .state-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(183,57,47,.13); }
.state-loading .state-dot { animation: pulse 1.3s ease-in-out infinite; }

.parameter-panel {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.table-header, .parameter-row {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(350px, 1.75fr) minmax(200px, .65fr);
  column-gap: 24px;
  align-items: center;
  padding: 15px 24px;
}
.table-header {
  color: #6b7b83;
  background: #f1f5f5;
  border-bottom: 1px solid var(--line);
  font-size: .71rem;
  font-weight: 780;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.table-header span:last-child { text-align: right; }
.parameter-row { min-height: 83px; border-bottom: 1px solid #e2e9eb; }
.parameter-row label { display: contents; }
.parameter-symbol { color: var(--navy); font: 600 1.02rem Georgia, serif; }
.parameter-name { color: var(--ink-soft); font-size: .89rem; }
.input-shell { display: grid; justify-items: end; gap: 4px; }
.input-shell input {
  width: min(100%, 190px);
  height: 44px;
  padding: 8px 12px;
  color: var(--navy);
  background: #fbfdfd;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font: 650 .98rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: right;
}
.input-shell span { color: #74858d; font-size: .7rem; }
.form-actions { margin: 0; padding: 22px 24px 26px; }
.predict-button { min-width: 230px; }
.predict-button.is-predicting .button-icon { animation: slide-arrow .8s ease-in-out infinite alternate; }
.form-error {
  margin: 18px 24px 0;
  padding: 12px 15px;
  color: #7f1f19;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  font-size: .88rem;
}

.support-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  padding: 17px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.support-summary p { margin: 0; color: var(--ink-soft); font: .78rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.domain-badge { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 770; }
.domain-symbol { font-size: 1.1rem; line-height: 1; }
.domain-badge.status-green { color: var(--green); }
.domain-badge.status-yellow { color: #9b6200; }
.domain-badge.status-red { color: var(--red); }
.domain-badge.status-neutral { color: var(--ink-soft); }
.ood-warning { margin: 13px 0 0; padding: 13px 17px; color: #7f1f19; background: var(--red-soft); border-left: 5px solid var(--red); border-radius: 5px; }

.prediction-pipeline {
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(260px, .54fr) minmax(430px, 1.08fr);
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}
.pipeline-panel {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(16, 47, 69, .06);
}
.panel-heading { display: flex; gap: 13px; align-items: center; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; color: var(--navy); font-size: .97rem; }
.panel-heading p { margin: 2px 0 0; color: var(--ink-soft); font-size: .72rem; }
.panel-step { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; color: white; background: var(--navy-2); border-radius: 50%; font: 750 .77rem ui-monospace, monospace; }
.plot-host, .architecture-host { min-height: 390px; }
.architecture-host { min-height: 510px; padding: 10px; }
.panel-placeholder { display: grid; min-height: 390px; padding: 35px; place-items: center; color: #7b8c94; text-align: center; }
.panel-placeholder p { max-width: 250px; margin: 0; font-size: .84rem; }
.panel-placeholder.active { align-content: center; gap: 15px; }
.panel-error { color: var(--red); }
.spinner { width: 28px; height: 28px; border: 3px solid #cbd9dd; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }

.scientific-plot, .architecture-svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot-grid line { stroke: #e4eaec; stroke-width: 1; }
.plot-axes text { fill: #60747e; font: 12px Inter, "Segoe UI", sans-serif; }
.plot-axes .axis-line { stroke: #526973; stroke-width: 1.2; }
.plot-axes .axis-label { fill: #263f4c; font: italic 15px Georgia, serif; }
.plot-axes .axis-hat { font-size: 11px; font-style: normal; }
.protocol-line { fill: none; stroke: #83939a; stroke-width: 1.4; }
.phase-label { fill: #203e4e; font: 700 13px Inter, sans-serif; }
.support-marker { stroke: white; stroke-width: 1; cursor: help; }
.support-marker:focus-visible { stroke: var(--navy); stroke-width: 2.4; outline: none; }
.status-green { fill: var(--green); }
.status-yellow { fill: var(--yellow); }
.status-red { fill: var(--red); }
.zero-line { stroke: #84959c; stroke-dasharray: 4 4; stroke-width: 1; }
.force-line { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.force-marker { fill: white; stroke-width: 1.5; }
.phase-loading { stroke: #277fa4; }
.phase-dwell { stroke: #725ea8; }
.phase-unloading { stroke: #d16a3a; }
.force-legend text { fill: #415965; font: 11px Inter, sans-serif; }
.pull-off-marker circle { fill: white; stroke: var(--navy); stroke-width: 2.2; }
.pull-off-marker text { fill: var(--navy); font: 700 11px Inter, sans-serif; }

.architecture-svg { max-height: 510px; }
.network-node rect { stroke-width: 1.3; }
.network-node.type-input rect, .network-node.type-output rect { fill: #e8f4f7; stroke: #4d8ea8; }
.network-node.type-concat rect { fill: #f0eaf7; stroke: #8469a8; }
.network-node.type-lstm rect { fill: #e5f3ed; stroke: #4d9278; }
.network-node.type-dense rect { fill: #fff0df; stroke: #c98743; }
.network-title { fill: var(--navy); font: 700 15px Inter, sans-serif; }
.network-detail { fill: #60757e; font: 11px Inter, sans-serif; }
.network-link { fill: none; stroke: #79909a; stroke-width: 1.8; }
.network-arrowhead { fill: #79909a; }
.mu-chip rect { fill: #f0eaf7; stroke: #8469a8; }
.mu-chip text { fill: #5f477c; font: italic 700 18px Georgia, serif; }
.architecture-svg.is-running .network-node, .architecture-svg.is-running .network-link {
  animation: network-flow .65s ease both;
  animation-delay: var(--delay);
}

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.metrics div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.metrics div:last-child { border-right: 0; }
.metrics span { display: block; color: var(--ink-soft); font-size: .67rem; }
.metrics strong { display: block; overflow: hidden; margin-top: 4px; color: var(--navy); font: 700 .88rem ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; }

.method-note { margin-top: 22px; padding: 24px 27px; background: #eef3f3; border-left: 4px solid var(--navy-2); border-radius: 5px; }
.method-note h3 { margin: 0 0 13px; color: var(--navy); font-size: .95rem; }
.method-note p { max-width: 1200px; margin: 16px 0 0; color: var(--ink-soft); font-size: .85rem; }
.status-legend { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: .78rem; font-weight: 680; }
.legend-green b { color: var(--green); }
.legend-yellow b { color: var(--yellow); }
.legend-red b { color: var(--red); }

.provenance-section { max-width: none; padding-right: max(5vw, calc((100vw - 1380px) / 2)); padding-left: max(5vw, calc((100vw - 1380px) / 2)); background: white; }
.provenance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.provenance-grid > div { min-height: 120px; padding: 23px; background: white; }
.provenance-key { display: block; margin-bottom: 13px; color: var(--teal); font-size: .7rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.provenance-grid strong { color: var(--navy); font-size: .94rem; }
.download-row .text-link { margin-left: 9px; font-size: .86rem; font-weight: 700; }

.references-section { max-width: none; padding-right: max(5vw, calc((100vw - 1380px) / 2)); padding-left: max(5vw, calc((100vw - 1380px) / 2)); background: #eaf0f1; border-top: 1px solid #d7e1e3; }
.reference-list {
  display: grid;
  gap: 1px;
  max-width: 1120px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.reference-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  background: white;
}
.reference-year {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px 16px;
  color: #aee7dc;
  background: var(--navy);
  font: 700 1.14rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.reference-body {
  min-width: 0;
  padding: 22px 28px;
  color: var(--ink-soft);
  background: white;
  font-size: .93rem;
  line-height: 1.58;
}
.reference-authors { display: block; color: var(--navy); font-size: .8rem; font-weight: 750; letter-spacing: .01em; }
.reference-title { display: block; margin-top: 5px; color: var(--ink); font: 500 1.05rem/1.32 Georgia, "Times New Roman", serif; text-decoration-color: rgba(24, 116, 108, .45); text-underline-offset: .17em; }
.reference-title:hover, .reference-title:focus-visible { color: #126c66; text-decoration-color: currentColor; }
.reference-publication { display: block; margin-top: 7px; color: var(--ink-soft); font-size: .86rem; }
.reference-doi { display: inline-block; margin-top: 8px; color: #126c66; font: 700 .72rem ui-monospace, SFMono-Regular, Consolas, monospace; text-decoration-color: rgba(18, 108, 102, .42); text-underline-offset: .18em; }
.reference-doi:hover, .reference-doi:focus-visible { color: var(--navy); text-decoration-color: currentColor; }

.site-footer { padding: 55px max(5vw, calc((100vw - 1380px) / 2)); color: #cbdce2; background: #0a293b; }
.footer-funding { display: grid; grid-template-columns: 240px minmax(0, 850px); gap: 36px; align-items: center; }
.footer-funding img { width: 220px; height: auto; padding: 14px; background: white; border-radius: 3px; }
.footer-funding p, .footer-meta p { margin: 0; font-size: .74rem; }
.footer-meta { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.14); }
.site-footer a { color: #a6ddd4; }

@keyframes pulse { 50% { transform: scale(.78); opacity: .65; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-arrow { to { transform: translateX(4px); } }
@keyframes network-flow {
  from { opacity: .25; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1280px) {
  .prediction-pipeline { grid-template-columns: 1fr .62fr; }
  .force-panel { grid-column: 1 / -1; }
  .force-panel .plot-host { max-width: 900px; margin: 0 auto; }
  .provenance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .funding-card { max-width: 560px; }
  .figure-parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula-layout { grid-template-columns: 1fr; }
  .table-header { display: none; }
  .parameter-row { grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr); }
  .parameter-name { grid-column: 1; margin-top: 5px; }
  .input-shell { grid-column: 2; grid-row: 1 / span 2; }
  .prediction-pipeline { grid-template-columns: 1fr; }
  .force-panel { grid-column: auto; }
  .architecture-host { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .site-header { min-height: 60px; padding: 0 18px; }
  .hero { padding: 72px 22px 80px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-actions .button { width: 100%; }
  .section { padding: 78px 18px; }
  .formulation-section, .provenance-section { padding-right: 18px; padding-left: 18px; }
  .section h2 { font-size: 2.35rem; }
  .system-figure { padding: 9px; }
  .system-figure figcaption { padding: 15px 8px 4px; }
  .figure-parameters { grid-template-columns: 1fr; margin: 18px 8px 4px; }
  .equation { gap: 24px; }
  .mu-equation { align-items: flex-start; flex-direction: column; }
  .runtime-bar { align-items: flex-start; flex-direction: column; }
  .parameter-row { display: block; padding: 20px; }
  .parameter-row label { display: block; }
  .parameter-symbol, .parameter-name { display: block; }
  .input-shell { display: grid; justify-items: stretch; margin-top: 13px; }
  .input-shell input { width: 100%; max-width: none; text-align: left; }
  .input-shell span { text-align: left; }
  .form-actions { align-items: stretch; flex-direction: column; padding: 20px; }
  .support-summary { align-items: flex-start; flex-direction: column; }
  .pipeline-panel { border-radius: 9px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }
  .provenance-grid { grid-template-columns: 1fr; }
  .download-row { align-items: flex-start; flex-direction: column; }
  .download-row .text-link { margin-left: 0; }
  .reference-list li { grid-template-columns: 1fr; }
  .reference-year { justify-self: start; padding: 8px 14px; font-size: .9rem; }
  .reference-body { padding: 19px 20px 22px; }
  .footer-funding { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; }
}

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