:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #101827;
  --muted: #4b5563;
  --muted-light: #6b7280;
  --accent: #1f6feb;
  --accent-hover: #1859bd;
  --accent-soft: #eaf2ff;
  --accent-line: #c9dcfb;
  --danger: #d1432f;
  --danger-soft: #fcece8;
  --success: #138a57;
  --success-soft: #e7f6ef;
  --amber: #d99100;
  --amber-soft: #fff6dc;
  --violet: #7b61a8;
  --border: #e4e7ec;
  --border-strong: #d4d9e1;
  --shadow: 0 12px 30px rgba(15, 24, 46, 0.07);
  --shadow-small: 0 6px 18px rgba(15, 24, 46, 0.06);
  --radius: 8px;
  --max-width: 1100px;
  --header-height: 64px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

img {
  max-width: 100%;
}

svg {
  width: 1.08em;
  height: 1.08em;
  stroke-width: 1.9;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(31, 111, 235, 0.22);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-paper {
  padding: 8px 14px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(31, 111, 235, 0.18);
}

.site-nav .nav-paper:hover {
  color: #ffffff;
  background: var(--accent-hover);
}

.site-nav .nav-paper::after {
  display: none;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 7px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.hero-grid,
.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  padding: 66px 0 0;
  text-align: center;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0;
  color: var(--muted-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--success-soft);
}

.hero h1 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 4rem;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 780px;
  margin: 14px auto 22px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 620;
  line-height: 1.35;
}

.authors {
  display: flex;
  max-width: 920px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 15px;
  color: var(--muted);
  font-size: 1rem;
}

.authors sup,
.affiliations sup {
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations {
  display: flex;
  margin: 8px auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  color: var(--muted-light);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  font-size: 0.9rem;
  font-weight: 740;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  border-color: #bdc6d3;
  box-shadow: 0 10px 24px rgba(15, 24, 46, 0.11);
  transform: translateY(-2px);
}

.button-primary {
  color: var(--text);
  background: #ffffff;
}

.button-primary svg {
  color: var(--danger);
}

.button-dark {
  color: var(--text);
  background: #ffffff;
}

.button-dark:first-of-type svg {
  color: #24292f;
}

.button[aria-disabled="true"] {
  color: var(--muted);
}

.signal-strip {
  padding: 38px 0 20px;
  color: var(--text);
  background: #ffffff;
  border: 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.signal-grid div {
  display: block;
  min-height: 126px;
  padding: 24px 18px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.signal-grid div:last-child,
.signal-grid div:nth-child(2),
.signal-grid div:nth-child(n + 3) {
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.signal-grid strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 2.1rem;
  line-height: 1.1;
}

.signal-grid div:nth-child(2) strong {
  color: var(--danger);
}

.signal-grid div:nth-child(3) strong {
  color: var(--success);
}

.signal-grid div:nth-child(4) strong {
  color: var(--amber);
}

.signal-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.section {
  padding: 90px 0;
}

.section-intro,
.section-intro.light {
  display: block;
  max-width: 840px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-intro .section-kicker,
.section-intro.light .section-kicker {
  display: block;
  padding: 0;
  color: var(--accent);
}

.section-intro h2,
.section-intro.light h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-intro > p:last-child,
.section-intro.light > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-lifecycle {
  background: #ffffff;
}

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

.phase {
  position: relative;
  min-height: 226px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--phase-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.phase::after {
  display: none;
}

.phase-config { --phase-color: var(--danger); --phase-soft: var(--danger-soft); }
.phase-extension { --phase-color: var(--amber); --phase-soft: var(--amber-soft); }
.phase-runtime { --phase-color: var(--accent); --phase-soft: var(--accent-soft); }
.phase-state { --phase-color: var(--violet); --phase-soft: #f0ecf8; }
.phase-action { --phase-color: #b65078; --phase-soft: #f8eaf0; }
.phase-recovery { --phase-color: var(--success); --phase-soft: var(--success-soft); }

.phase-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #a0a7b0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.phase > svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--phase-color);
  background: var(--phase-soft);
  border-radius: 8px;
}

.phase h3 {
  max-width: 230px;
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

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

.case-count {
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: var(--phase-color);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 750;
}

.paper-figure {
  margin: 0;
}

.wide-figure {
  margin-top: 42px;
}

.figure-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.figure-open img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  transition: transform 220ms ease;
}

.figure-open > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: rgba(16, 24, 39, 0.82);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 160ms ease;
}

.figure-open:hover img {
  transform: scale(1.01);
}

.figure-open:hover > span,
.figure-open:focus-visible > span {
  opacity: 1;
}

figcaption {
  max-width: 940px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

figcaption strong {
  color: var(--text);
}

.section-benchmark {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.protocol::before {
  display: none;
}

.protocol-step {
  position: relative;
  z-index: 1;
  min-height: 205px;
  padding: 22px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.protocol-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 0 22px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.protocol-step h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1rem;
}

.protocol-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-band {
  display: grid;
  margin-top: 34px;
  padding: 30px;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 38px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}

.metric-intro .mini-label {
  color: var(--accent);
}

.metric-intro h3 {
  margin: 9px 0 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.3;
}

.metric-list {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 26px;
}

.metric-list div {
  padding-left: 13px;
  border-left: 2px solid var(--accent-line);
}

.metric-list dt {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.metric-list dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.direction {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  place-items: center;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.direction.up {
  color: var(--success);
  background: var(--success-soft);
}

.direction.down {
  color: var(--danger);
  background: var(--danger-soft);
}

.evaluation-scope {
  display: grid;
  margin-top: 30px;
  grid-template-columns: 0.75fr 1.7fr 1.1fr;
  background: transparent;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.evaluation-scope > div {
  padding: 20px 22px;
  border-right: 1px solid var(--border-strong);
}

.evaluation-scope > div:first-child {
  padding-left: 0;
}

.evaluation-scope > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.scope-value {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 650;
}

.section-results {
  color: var(--text);
  background: #ffffff;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.result-stat {
  position: relative;
  min-height: 252px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-stat .stat-index {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #a1a8b2;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.result-stat > strong {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 2.45rem;
  line-height: 1;
}

.result-stat:nth-child(2) > strong {
  color: var(--danger);
}

.result-stat:nth-child(3) > strong {
  color: var(--success);
}

.result-stat h3 {
  margin: 35px 0 7px;
  color: var(--text);
  font-size: 1rem;
}

.result-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.finding-list {
  max-width: 940px;
  margin: 54px auto;
  border-top: 1px solid var(--border);
}

.finding-row {
  display: grid;
  padding: 24px 0;
  grid-template-columns: 44px 1.15fr 1fr;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.finding-no {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
}

.finding-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.finding-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.result-figure .figure-open {
  border-color: var(--border);
}

.result-figure figcaption,
.result-figure figcaption strong {
  color: var(--muted);
}

.result-figure figcaption strong {
  color: var(--text);
}

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

.table-heading {
  display: flex;
  margin-top: 76px;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.table-heading .mini-label {
  color: var(--accent);
}

.table-heading h3 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.45rem;
}

.table-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.82rem;
}

th,
td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th:first-child,
th:nth-child(2),
td:first-child,
td:nth-child(2) {
  text-align: left;
}

thead th {
  color: var(--text);
  background: #f3f5f8;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

tbody td {
  color: var(--muted);
  background: #ffffff;
}

tbody td[rowspan] {
  color: var(--text);
  font-weight: 750;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #f8fafc;
}

.risk-row td:not(:first-child) {
  background: var(--danger-soft);
}

.safe-row td:not(:first-child) {
  background: var(--success-soft);
}

.section-abstract {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.abstract-layout {
  display: block;
  max-width: 980px;
}

.abstract-layout .section-intro {
  display: block;
  margin: 0 auto 28px;
}

.abstract-layout .section-kicker {
  margin-bottom: 7px;
  color: var(--accent);
}

.abstract-copy {
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.abstract-copy p {
  margin: 0 0 19px;
  color: #303846;
  font-size: 0.96rem;
  text-align: justify;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

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

.section-citation {
  color: var(--text);
  background: #ffffff;
  border-top: 0;
}

.citation-layout {
  display: block;
  max-width: 920px;
}

.citation-copy {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.citation-copy .section-kicker {
  color: var(--accent);
}

.citation-copy h2 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.25;
}

.citation-copy > p:last-child {
  margin: 0;
  color: var(--muted);
}

.bibtex-block {
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #1f2a44;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bibtex-bar {
  display: flex;
  min-height: 48px;
  padding: 0 10px 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #aeb8c8;
  background: #172033;
  border-bottom: 1px solid #29354b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.copy-button {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 10px;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: #0f172a;
  border: 1px solid #39465d;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.7rem;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

code {
  color: #dce5f1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-footer {
  padding: 38px 0;
  color: var(--muted);
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: var(--text);
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 0.76rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 2px 0;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  color: #ffffff;
  background: #172033;
  border: 1px solid #39465d;
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(15, 24, 46, 0.2);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 52px 14px 14px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(15, 24, 46, 0.24);
}

.lightbox::backdrop {
  background: rgba(15, 24, 46, 0.72);
  backdrop-filter: blur(4px);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text);
  border-color: var(--border-strong);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.reveal-pending.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

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

  .metric-band {
    grid-template-columns: 1fr;
  }

  .evaluation-scope {
    grid-template-columns: 1fr;
  }

  .evaluation-scope > div,
  .evaluation-scope > div:first-child,
  .evaluation-scope > div:last-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .evaluation-scope > div:last-child {
    border-bottom: 0;
  }

  .finding-row {
    grid-template-columns: 44px 1fr;
  }

  .finding-row p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 16px;
  }

  .shell,
  .nav-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-toggle {
    display: inline-grid;
    color: var(--text);
    border-color: var(--border-strong);
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 10px 14px 16px;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-paper {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0;
  }

  .hero-inner {
    padding: 46px 0 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    max-width: 360px;
    font-size: 1.1rem;
  }

  .authors {
    font-size: 0.86rem;
    gap: 3px 11px;
  }

  .affiliations {
    display: block;
    font-size: 0.78rem;
  }

  .affiliations span {
    display: block;
  }

  .signal-strip {
    padding-top: 28px;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .signal-grid div {
    min-height: 110px;
    padding: 19px 12px;
  }

  .signal-grid strong {
    font-size: 1.7rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-intro,
  .section-intro.light {
    margin-bottom: 30px;
  }

  .section-intro h2,
  .section-intro.light h2 {
    font-size: 1.8rem;
  }

  .section-intro > p:last-child,
  .section-intro.light > p:last-child {
    font-size: 0.94rem;
  }

  .phase-grid,
  .protocol,
  .result-stats,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .phase {
    min-height: 205px;
  }

  .protocol-step {
    min-height: auto;
  }

  .metric-band {
    padding: 24px;
    gap: 25px;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }

  .result-stat {
    min-height: 220px;
  }

  .finding-row {
    display: block;
  }

  .finding-no {
    margin-bottom: 12px;
  }

  .finding-row h3 {
    margin-bottom: 8px;
  }

  .table-heading {
    display: block;
  }

  .table-heading > p {
    margin-top: 9px;
    text-align: left;
  }

  .abstract-copy {
    padding: 23px 21px;
  }

  .abstract-copy p {
    text-align: left;
  }

  .footer-grid {
    display: block;
  }

  .footer-meta {
    margin-top: 22px;
    text-align: left;
  }

  .figure-open > span {
    display: none;
  }
}

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

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

  .signal-grid span {
    font-size: 0.7rem;
  }

  .result-stat > strong {
    font-size: 2.15rem;
  }

  pre {
    padding: 18px;
  }

  code {
    font-size: 0.7rem;
  }
}

@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-iteration-count: 1 !important;
  }

  .reveal,
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}
