:root {
  --ink: #142e45;
  --muted: #617180;
  --teal: #238c89;
  --teal-dark: #1a7775;
  --purple: #7558a8;
  --line: #e0e7ed;
  --bg: #fff;
  --pale: #f5f8fa;
  --font: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
select {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #338cbd;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 750;
}
h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.17;
}
h3 {
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin: auto;
}
.section {
  padding-top: 108px;
  padding-bottom: 108px;
}
.eyebrow {
  font: 700 0.78rem/1.5 var(--font);
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--teal-dark);
}
.section-heading .eyebrow {
  margin-bottom: 20px;
}
.section-heading p {
  margin-top: 23px;
}
.mono {
  font:
    600 0.75rem/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.1em;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.4rem var(--display);
  letter-spacing: -0.055em;
}
.brand img {
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.brand-accent {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-links a {
  color: #657580;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
}
.nav-paper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 17px;
  border: 1px solid #d6dfe6;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-paper:hover {
  background: var(--pale);
}
.nav-paper svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 58px;
  padding-top: 76px;
  padding-bottom: 54px;
  align-items: center;
  position: relative;
}
.venue {
  background: #e9f4f2;
  border: 1px solid #d1e8e2;
  border-radius: 5px;
  padding: 4px 9px;
  letter-spacing: 0.08em;
}
.hero .eyebrow > span + span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(5rem, 7.8vw, 7rem);
  line-height: 1.12;
  letter-spacing: -0.075em;
  margin: 19px 0 13px;
  font-weight: 800;
}
.hero h1 > span:first-child {
  color: var(--teal);
}
.title-period {
  color: #a8b7c1;
}
.paper-title {
  font-size: 1.52rem;
  letter-spacing: -0.025em;
  line-height: 1.45;
  max-width: 520px;
  font-weight: 600;
}
.hero-description {
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1.35;
  letter-spacing: -0.035em;
  margin-top: 24px;
  color: var(--muted);
}
.hero-description strong {
  font-weight: 650;
  color: var(--ink);
}
.hero-explainer {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 13px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.button {
  padding: 12px 19px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  border: 1px solid transparent;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px #142e4514;
}
.button.primary {
  background: var(--ink);
  color: #fff;
}
.button.primary:hover {
  background: #234762;
}
.button.secondary {
  border-color: #d7e1e7;
  background: #fff;
}
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.hero-visual {
  position: relative;
  border: 1px solid #dfe7ed;
  border-radius: 20px;
  background: linear-gradient(155deg, #fff, #f0f6f8);
  padding: 24px 0 20px;
  box-shadow: 0 28px 75px -30px #284c6c38;
  margin-top: 10px;
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: -35px;
  z-index: -1;
  background: radial-gradient(ellipse at 75% 60%, #daf0ed80, transparent 65%);
}
.visual-topline {
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.visual-topline .mono {
  color: #657c8b;
  font-size: 0.7rem;
}
.visual-badge {
  color: #597786;
  border: 1px solid #dce7eb;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
}
.graph-stage {
  margin-top: 16px;
}
.graph-stage svg {
  width: 100%;
  height: auto;
}
.graph-labels {
  font: 600 10px var(--font);
  letter-spacing: 1.2px;
  fill: #69808e;
}
.graph-wires {
  stroke: #a5b9c6;
}
.skill-node rect,
.output-node rect {
  fill: #fff;
  stroke: #b8cbdc;
  stroke-width: 1.1;
}
.skill-node text,
.output-node text {
  font: 600 12px var(--font);
  fill: #30546f;
}
.teal rect {
  stroke: #9ac9c5;
  fill: #f5fbfa;
}
.teal text {
  fill: #307c79;
}
.purple rect {
  stroke: #c8b9dc;
  fill: #faf8fe;
}
.purple text {
  fill: #795c9a;
}
.macro-name {
  font: 600 13px var(--font);
  fill: #fff;
}
.macro-detail {
  font: 500 8px var(--font);
  letter-spacing: 0.8px;
  fill: #a3c7d1;
}
.port-label {
  font: 500 11px var(--font);
  fill: #547786;
}
.graph-footer {
  font: 600 10px var(--font);
  letter-spacing: 1.4px;
  fill: #69808e;
}
.raw-content,
.compressed-content,
.graph-wires {
  transition: opacity 0.5s;
}
.raw-content {
  opacity: 0;
}
.graph-stage[data-state="raw"] .raw-content {
  opacity: 1;
}
.graph-stage[data-state="raw"] .compressed-content,
.graph-stage[data-state="raw"] .graph-wires {
  opacity: 0;
}
.raw-node rect {
  fill: #fff;
  stroke: #a5bfc9;
  stroke-width: 1.2;
}
.raw-node text {
  font: 600 9px var(--font);
  fill: #477283;
}
.graph-controls {
  display: flex;
  justify-content: center;
  gap: 3px;
  background: #e5edf1;
  border: 1px solid #dce6ec;
  border-radius: 7px;
  padding: 4px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}
.graph-controls button {
  border: 0;
  background: transparent;
  padding: 7px 15px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #6b7c89;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.graph-controls button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 4px #1b3c4f12;
  font-weight: 700;
}
.visual-caption {
  font-size: 0.76rem;
  text-align: center;
  margin: 15px 25px 0;
  min-height: 2.5em;
  line-height: 1.6;
}
.illustration-label {
  display: block;
  text-align: center;
  color: #78909b;
  font-size: 0.7rem;
  margin-top: 8px;
}
.authors {
  padding-top: 20px;
  padding-bottom: 29px;
  border-top: 1px solid var(--line);
}
.authors p {
  display: flex;
  justify-content: center;
  gap: 6px 21px;
  flex-wrap: wrap;
  color: #344f63;
  font-size: 0.9rem;
  font-weight: 500;
}
.authors a:hover {
  text-decoration: underline;
}
.authors sup {
  font-size: 0.6rem;
  margin-left: 2px;
  color: #708698;
}
.affiliations {
  display: flex;
  justify-content: center;
  gap: 23px;
  font-size: 0.8rem;
  color: #768793;
  margin-top: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 30px;
}
.metrics > div {
  padding: 3px 25px;
  border-right: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
}
.metrics > div:last-child {
  border: 0;
  padding-right: 0;
}
.metrics strong {
  font: 650 2.9rem/1.15 var(--display);
  letter-spacing: -0.06em;
  color: var(--ink);
}
.metrics strong span {
  font-size: 1.45rem;
  color: var(--teal);
  letter-spacing: -0.03em;
  margin-left: 3px;
}
.metrics p {
  font-size: 0.87rem;
  font-weight: 500;
  margin-top: 9px;
  color: #435d71;
}
.metrics small {
  font-size: 0.69rem;
  display: block;
  line-height: 1.6;
  color: #788a98;
  margin-top: 5px;
}
.overview {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 100px;
}
.lead {
  font-size: 1.28rem;
  line-height: 1.6;
  color: #28465c;
  letter-spacing: -0.02em;
}
.overview-copy > p + p {
  margin-top: 19px;
}
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 24px;
}
.principles i {
  font-style: normal;
  color: var(--teal);
  margin-right: 7px;
}
.abstract {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.abstract summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 0;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.abstract summary::-webkit-details-marker {
  display: none;
}
.abstract summary > span {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--teal);
}
.abstract[open] summary > span {
  transform: rotate(45deg);
}
.abstract #abstract-text {
  color: var(--muted);
  padding-bottom: 12px;
}
.method-section {
  background: #f5f8fa;
  border-top: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
}
.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 43px;
}
.heading-row > p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 5px;
}
.method-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #cfdae2;
}
.method-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  text-align: left;
  padding: 21px 25px 20px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 9px;
  color: #677c8a;
  font-weight: 600;
}
.method-tabs small {
  grid-column: 2;
  font-weight: 400;
  font-size: 0.79rem;
  color: #7c8d98;
  margin-top: 3px;
}
.tab-symbol {
  grid-row: span 2;
  font-size: 1.7rem;
  line-height: 1.4;
  color: #8197a5;
}
.method-tabs button[aria-selected="true"] {
  background: #e7f1f1;
  border-bottom-color: var(--teal);
  color: var(--ink);
  border-radius: 8px 8px 0 0;
}
.method-tabs button[aria-selected="true"] .tab-symbol {
  color: var(--teal);
}
.method-tabs button:hover {
  background: #ebf1f4;
}
.method-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 45px 42px;
  min-height: 340px;
  background: white;
  border: 1px solid #e0e7ed;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.panel-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--teal);
}
.method-text h3 {
  font-size: 1.65rem;
  margin: 12px 0;
}
.method-text p {
  font-size: 0.93rem;
  line-height: 1.8;
}
.method-text .method-takeaway {
  border-left: 2px solid var(--teal);
  padding-left: 15px;
  margin-top: 20px;
  color: #335d70;
  font-size: 0.86rem;
  font-weight: 500;
}
/* AI-generated stage artwork retains readable captions in the document. */
.method-demo {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e8ed;
  border-radius: 12px;
  background: #f6fafc;
}
.method-demo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.method-demo figcaption {
  padding: 15px 18px 16px;
  border-top: 1px solid #e0e8ed;
  background: #fff;
  color: #466777;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}
.method-demo figcaption small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #7a8f9c;
}
.framework {
  margin-top: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 25px;
}
.figure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.figure-header > span {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  font-weight: 600;
  color: #68818e;
}
.figure-header button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  color: #537585;
  padding: 3px 0;
}
.figure-header svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.figure-button {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  padding: 0;
  border-radius: 5px;
  cursor: zoom-in;
}
.figure-button img {
  display: block;
  width: 100%;
  height: auto;
}
.framework figcaption {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 19px;
  color: #6b8190;
}
.results-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
}
.benchmark-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.chart-toolbar {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.segmented {
  display: flex;
  background: #f0f4f6;
  border: 1px solid #e4eaee;
  padding: 3px;
  border-radius: 6px;
}
.segmented button {
  font-size: 0.78rem;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 3px;
  color: #627b8b;
}
.segmented button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 4px #213d4f12;
  color: var(--ink);
  font-weight: 700;
}
.model-select {
  position: relative;
}
.model-select select {
  appearance: none;
  border: 1px solid #dce5eb;
  border-radius: 5px;
  background: #fff;
  font-size: 0.75rem;
  padding: 9px 26px 9px 10px;
  max-width: 175px;
}
.model-select svg {
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  fill: none;
  stroke: #6a8390;
  stroke-width: 1.5;
}
.chart-heading {
  margin-top: 30px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.chart-heading h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.chart-heading > span {
  font-size: 0.68rem;
  color: #7c8e9b;
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 91px 1fr 37px;
  gap: 15px;
  align-items: center;
  font-size: 0.8rem;
}
.bar-label {
  color: #627789;
}
.bar-track {
  background: #f3f6f8;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  background: #bbcbd6;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.bar-row.ours .bar-fill {
  background: linear-gradient(90deg, #258b88, #55aaa0);
}
.bar-row.ours .bar-label,
.bar-row.ours .bar-value {
  color: var(--teal-dark);
  font-weight: 700;
}
.bar-value {
  font-variant-numeric: tabular-nums;
  color: #586e7f;
  text-align: right;
}
.chart-summary {
  font-size: 0.85rem;
  background: #edf7f4;
  padding: 12px 15px;
  margin-top: 28px;
  border-radius: 6px;
  color: #4f7e76;
}
.chart-summary strong {
  color: #237d70;
}
.source-note {
  font-size: 0.72rem;
  color: #81909a;
  margin-top: 17px;
}
.source-note a,
.fidelity-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fidelity-card {
  background: #132f46;
  color: #fff;
  border-radius: 12px;
  padding: 32px 32px 27px;
  position: relative;
  overflow: hidden;
}
.fidelity-card:before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid #3d5c7045;
  right: -120px;
  top: -130px;
  box-shadow:
    0 0 0 25px #3d5c701a,
    0 0 0 50px #3d5c7010;
  pointer-events: none;
}
.fidelity-card .eyebrow {
  font-size: 0.67rem;
  color: #8bbdbb;
}
.fidelity-card h3 {
  font-size: 2rem;
  line-height: 1.23;
  margin: 19px 0 15px;
}
.fidelity-card > p {
  color: #afc1ce;
  font-size: 0.9rem;
  line-height: 1.7;
}
.fidelity-legend {
  display: flex;
  gap: 17px;
  margin: 25px 0 19px;
  font-size: 0.68rem;
  color: #b8cbd6;
  flex-wrap: wrap;
}
.fidelity-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fidelity-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.legend-text {
  background: #6f8b9f;
}
.legend-skillzip {
  background: #74cdbd;
}
.fidelity-metric {
  margin: 17px 0;
}
.fidelity-metric > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  margin-bottom: 8px;
  color: #ccdae3;
}
.fidelity-metric > div > span {
  font-size: 0.7rem;
  color: #a5bbc9;
  white-space: nowrap;
}
.fidelity-metric strong {
  color: #8de0cf;
}
.fidelity-bar {
  height: 7px;
  background: #244258;
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.fidelity-bar > span {
  display: block;
  height: 100%;
  background: #6f8b9f;
  border-radius: 2px;
}
.fidelity-bar.ours > span {
  background: #74cdbd;
}
.fidelity-card .fidelity-note {
  font-size: 0.68rem;
  color: #a9bdc9;
  margin-top: 20px;
  line-height: 1.9;
}
.scale-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 37px;
}
.scale-icon {
  font-size: 2rem;
  width: 53px;
  height: 53px;
  border: 1px solid #d9e6e9;
  border-radius: 11px;
  text-align: center;
  line-height: 50px;
  color: var(--teal);
  background: #f3f9f8;
  flex-shrink: 0;
}
.scale-strip h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.scale-strip p {
  font-size: 0.85rem;
  margin-top: 4px;
}
.scale-strip > a {
  font-size: 0.8rem;
  margin-left: auto;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.citation-section {
  background: #f5f8fa;
  border-top: 1px solid #e9eff3;
}
.citation-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 65px;
  align-items: center;
}
.citation-layout h2 {
  font-size: 2.6rem;
}
.citation-layout .section-heading p {
  font-size: 0.9rem;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.citation-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
}
.citation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6edf1;
  padding: 16px 21px;
}
.citation-toolbar > .mono {
  color: #718693;
  font-size: 0.7rem;
}
.citation-toolbar button {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 500;
  color: #4c7083;
}
.citation-toolbar svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
pre {
  margin: 0;
  padding: 24px;
  font:
    0.75rem/1.85 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-x: auto;
  color: #45677c;
  tab-size: 2;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 29px;
  padding-bottom: 29px;
}
.footer .brand {
  font-size: 1.17rem;
}
.footer .brand img {
  width: 36px;
  height: 36px;
}
.footer p,
.footer > a:last-child {
  font-size: 0.78rem;
  color: #788b97;
}
.footer > a:last-child:hover {
  color: var(--teal);
}
dialog {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 14px;
  width: min(1500px, 95vw);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #102d4540;
}
dialog::backdrop {
  background: #0d263bc9;
  backdrop-filter: blur(5px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-header button {
  border: 1px solid var(--line);
  background: #f7fafb;
  padding: 6px 13px;
  border-radius: 5px;
  font-size: 0.85rem;
}
.dialog-header button span {
  font-size: 1.2rem;
  margin-left: 8px;
}
.dialog-image {
  overflow: auto;
}
.dialog-image img {
  display: block;
  min-width: 900px;
  width: 100%;
}
dialog p {
  font-size: 0.8rem;
  margin-top: 15px;
}
.sr-only,
.skip-link:not(:focus) {
  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:focus {
  position: fixed;
  top: 15px;
  left: 20px;
  background: var(--ink);
  color: #fff;
  padding: 10px;
  z-index: 30;
  border-radius: 4px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 65px;
  }
  .hero h1 {
    font-size: 7.4rem;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 6rem;
  }
  .paper-title {
    font-size: 1.3rem;
  }
  .hero-description {
    font-size: 1.45rem;
  }
  .hero-visual {
    padding-top: 18px;
  }
  .visual-topline {
    padding: 0 16px;
  }
  .visual-topline .mono {
    font-size: 0.62rem;
  }
  .visual-badge {
    font-size: 0.63rem;
  }
  .overview {
    gap: 55px;
  }
  .method-panel {
    padding: 35px;
    gap: 35px;
  }
  .results-layout {
    grid-template-columns: 1.25fr 1fr;
  }
  .chart-toolbar {
    flex-wrap: wrap;
  }
  .benchmark-card {
    padding: 23px;
  }
  .fidelity-card {
    padding: 27px 24px;
  }
  .fidelity-metric > div:first-child {
    flex-wrap: wrap;
    gap: 3px;
  }
  .citation-layout {
    gap: 40px;
  }
  .citation-layout h2 {
    font-size: 2.2rem;
  }
  .metrics > div {
    padding: 3px 18px;
  }
  .metrics strong {
    font-size: 2.6rem;
  }
  .nav-links {
    gap: 23px;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    height: 70px;
    gap: 15px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .nav-links {
    gap: 17px;
    font-size: 0.8rem;
  }
  .nav-paper {
    font-size: 0.78rem;
    padding: 7px 11px;
  }
  .nav-paper svg {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 46px;
    padding-bottom: 40px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero h1 {
    font-size: 6.5rem;
    margin-top: 18px;
  }
  .paper-title {
    font-size: 1.65rem;
    max-width: 640px;
  }
  .hero-description {
    font-size: 1.6rem;
    margin-top: 22px;
  }
  .hero-description br {
    display: none;
  }
  .hero-description strong {
    margin-left: 5px;
  }
  .hero-explainer {
    max-width: 520px;
  }
  .hero-visual {
    width: 100%;
    max-width: 560px;
    justify-self: center;
    margin-top: 10px;
  }
  .visual-topline {
    padding: 0 25px;
  }
  .visual-topline .mono {
    font-size: 0.73rem;
  }
  .visual-badge {
    font-size: 0.7rem;
  }
  .authors {
    padding-top: 23px;
  }
  .authors p {
    gap: 5px 17px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 26px;
  }
  .metrics > div {
    padding: 0 23px;
  }
  .metrics strong {
    font-size: 2.9rem;
  }
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .overview h2 br {
    display: none;
  }
  .heading-row {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }
  .heading-row > p {
    margin-top: 0;
  }
  .method-tabs button {
    padding: 17px 12px;
    font-size: 0.85rem;
    grid-template-columns: 1fr;
  }
  .method-tabs .tab-symbol {
    display: none;
  }
  .method-tabs small {
    grid-column: 1;
    font-size: 0.7rem;
  }
  .method-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
    min-height: 485px;
  }
  .method-text h3 {
    margin-top: 10px;
  }
  .framework {
    padding: 18px;
  }
  .results-layout {
    grid-template-columns: 1fr;
  }
  .chart-toolbar {
    flex-wrap: nowrap;
  }
  .chart-heading > span {
    font-size: 0.72rem;
  }
  .fidelity-card {
    padding: 30px;
  }
  .fidelity-card h3 br {
    display: none;
  }
  .fidelity-metric > div:first-child {
    flex-wrap: nowrap;
  }
  .scale-strip {
    flex-wrap: wrap;
    gap: 16px;
  }
  .scale-strip > div {
    flex: 1;
  }
  .scale-strip > a {
    margin-left: 69px;
  }
  .citation-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .citation-layout h2 {
    font-size: 2.7rem;
  }
  .footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer p {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 101px;
    padding-top: 12px;
    padding-bottom: 11px;
    row-gap: 8px;
  }
  .nav .brand {
    font-size: 1.18rem;
  }
  .nav-links {
    order: 3;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    font-size: 0.79rem;
  }
  .nav-paper {
    margin-left: auto;
  }
  .hero {
    padding-top: 34px;
    gap: 25px;
  }
  .hero h1 {
    font-size: 5.3rem;
    letter-spacing: -0.075em;
  }
  .paper-title {
    font-size: 1.28rem;
  }
  .hero-description {
    font-size: 1.36rem;
  }
  .hero-explainer {
    font-size: 0.94rem;
  }
  .hero .eyebrow {
    font-size: 0.7rem;
    gap: 10px;
  }
  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }
  .button {
    font-size: 0.8rem;
    padding: 11px 13px;
  }
  .hero-visual {
    border-radius: 13px;
  }
  .visual-topline {
    padding: 0 15px;
  }
  .visual-topline .mono {
    font-size: 0.62rem;
  }
  .visual-badge {
    font-size: 0.6rem;
  }
  .graph-controls button {
    font-size: 0.72rem;
    padding: 7px 12px;
  }
  .visual-caption {
    font-size: 0.72rem;
    margin: 13px 16px 0;
  }
  .illustration-label {
    font-size: 0.65rem;
  }
  .authors p {
    font-size: 0.78rem;
    gap: 5px 13px;
  }
  .affiliations {
    font-size: 0.75rem;
  }
  .metrics {
    padding-top: 24px;
    padding-bottom: 24px;
    row-gap: 22px;
  }
  .metrics > div {
    padding: 0 16px;
  }
  .metrics strong {
    font-size: 2.4rem;
  }
  .metrics strong span {
    font-size: 1.15rem;
  }
  .metrics p {
    font-size: 0.78rem;
  }
  .metrics small {
    font-size: 0.65rem;
  }
  .section {
    padding-top: 57px;
    padding-bottom: 57px;
  }
  h2 {
    font-size: 2.2rem;
  }
  .section-heading .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 14px;
  }
  .lead {
    font-size: 1.13rem;
  }
  .overview-copy > p + p {
    font-size: 0.96rem;
  }
  .principles {
    font-size: 0.76rem;
    gap: 11px 6px;
  }
  .method-tabs button {
    font-size: 0.75rem;
    padding: 15px 7px;
  }
  .method-tabs small {
    font-size: 0.63rem;
  }
  .method-panel {
    padding: 24px 18px;
    min-height: 520px;
  }
  .method-text h3 {
    font-size: 1.45rem;
  }
  .panel-tag {
    font-size: 0.62rem;
  }
  .framework {
    padding: 15px;
  }
  .figure-header > span {
    font-size: 0.6rem;
  }
  .figure-header button {
    font-size: 0.72rem;
  }
  .framework figcaption {
    font-size: 0.72rem;
  }
  .benchmark-card {
    padding: 21px 17px;
  }
  .chart-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .segmented button {
    font-size: 0.72rem;
    padding: 7px 9px;
  }
  .model-select select {
    font-size: 0.68rem;
    max-width: 151px;
  }
  .chart-heading {
    flex-wrap: wrap;
    gap: 4px;
  }
  .chart-heading h3 {
    font-size: 1rem;
  }
  .bar-row {
    grid-template-columns: 80px 1fr 32px;
    gap: 10px;
    font-size: 0.73rem;
  }
  .bar-track {
    height: 25px;
  }
  .chart-summary {
    font-size: 0.77rem;
    padding: 11px;
  }
  .fidelity-card {
    padding: 27px 23px;
  }
  .scale-strip h3 {
    font-size: 0.99rem;
  }
  .scale-strip p {
    font-size: 0.79rem;
  }
  .scale-strip > a {
    font-size: 0.76rem;
  }
  .citation-layout h2 {
    font-size: 2.25rem;
  }
  pre {
    padding: 20px 16px;
    font-size: 0.69rem;
  }
  .footer > a:last-child {
    font-size: 0.72rem;
  }
  dialog {
    padding: 15px;
  }
  .dialog-header strong {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Keep body copy readable and secondary labels at a legible minimum. */
.method-text p,
.heading-row > p,
.fidelity-card > p,
.citation-layout .section-heading p,
.overview-copy > p + p {
  font-size: 1rem;
}
.nav-links,
.nav-paper,
.button,
.authors p,
.graph-controls button,
.principles,
.abstract summary,
.method-tabs button,
.segmented button,
.model-select select,
.bar-row,
.chart-summary,
.scale-strip p,
.scale-strip > a,
.citation-toolbar button {
  font-size: 0.875rem;
}
.method-text .method-takeaway {
  font-size: 0.875rem;
}
.metrics small,
.illustration-label,
.panel-tag,
.figure-header > span,
.chart-heading > span,
.source-note,
.fidelity-card .eyebrow,
.fidelity-legend,
.fidelity-card .fidelity-note,
.fidelity-metric > div > span,
.citation-toolbar > .mono,
.footer p,
.footer > a:last-child {
  font-size: 0.75rem;
}
.visual-caption,
.affiliations,
.method-tabs small,
.framework figcaption,
.figure-header button,
.fidelity-metric > div:first-child {
  font-size: 0.875rem;
}
@media (max-width: 800px) {
  .hero-visual:before {
    inset: 0;
  }
  .method-tabs button {
    font-size: 0.875rem;
  }
  .method-tabs small {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .chart-toolbar {
    flex-wrap: wrap;
  }
  .method-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border-bottom: 0;
  }
  .method-tabs button {
    border-radius: 6px;
    border-bottom-width: 2px;
    padding: 13px 12px;
  }
  .method-panel {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    border-radius: 10px;
  }
  .graph-controls button {
    font-size: 0.8rem;
  }
  .model-select select {
    max-width: none;
  }
  .hero-actions .button {
    padding: 11px 12px;
  }
  .visual-caption,
  .framework figcaption {
    font-size: 0.8rem;
  }
  .hero-description {
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .metrics {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .metrics > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .metrics > div:last-child {
    border-bottom: 0;
  }
  .metrics strong {
    grid-row: span 2;
    align-self: center;
    font-size: 2.4rem;
  }
  .metrics p {
    margin-top: 0;
    font-size: 0.875rem;
  }
  .metrics small {
    margin-top: 4px;
  }
}
