@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url("assets/fonts/source-serif-4-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url("assets/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #fcf8f3;
  --ink: #28251f;
  --muted: #565044;
  --green: #244c3b;
  --rule: #d9d0c3;
  --surface: #f2eee6;
  --halftone-dot: rgba(58, 49, 42, 0.11);
  --halftone-size: 5px;
  --label: var(--serif);
  --serif: Source, Georgia, serif;
  --heading: Cormorant, Georgia, serif;
  --content-width: 960px;
  color-scheme: light;
  /* One shared type scale for prose, controls, and figure labels. */
  font-size: 112.5%;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--paper);
  font: 500 0.9375rem/1.72 var(--serif);
  -webkit-font-smoothing: antialiased;
}
/* Match the quiet halftone paper background of the personal website. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 50% 50%,
      var(--halftone-dot) 0.9px,
      transparent 1px
    ),
    radial-gradient(
      ellipse 120% 80% at 50% 0%,
      rgba(255, 250, 240, 0.45) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 100% 100%,
      rgba(208, 90, 22, 0.035) 0%,
      transparent 50%
    );
  background-size:
    var(--halftone-size) var(--halftone-size),
    100% 100%,
    100% 100%;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  font: 600 0.9375rem/1.5 var(--serif);
  margin-bottom: 8px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: #a34c28;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
::selection {
  background: #dce6d9;
}
strong {
  font-weight: 600;
}
/* Editorial emphasis follows the personal site's fine dashed underlines. */
.text-underline,
em,
i,
.chart-guide {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: #887b66;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
}
.text-accent,
.paper-section em,
.teaser-caption em {
  color: var(--green);
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container,
.reading-width {
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}
.container .reading-width {
  width: 100%;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--green);
  color: white;
  padding: 10px 20px;
}
.skip-link:focus {
  top: 12px;
}
.paper-header {
  text-align: center;
  padding: 44px 0 25px;
}
h1 {
  font: 600 clamp(2.4rem, 4.5vw, 3.6rem) / 1.08 var(--heading);
  letter-spacing: -0.024em;
}
.title-line {
  display: block;
}
.method-name {
  color: var(--green);
}
.authors {
  font-size: 1rem;
  margin-top: 18px;
  color: var(--green);
}
.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 20px;
  line-height: 1.85;
}
.author {
  white-space: nowrap;
}
.author a {
  text-decoration: underline;
  text-decoration-color: rgba(36, 76, 59, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.author a:hover,
.author a:focus-visible {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}
.author sup,
.affiliations sup,
.contribution-note sup {
  font: 500 0.625rem/0 var(--label);
  vertical-align: super;
}
.author sup {
  margin-left: 2px;
}
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 24px;
  margin-top: 11px;
  color: var(--ink);
  font-size: 0.875rem;
}
.contribution-note {
  margin-top: 5px;
  color: var(--muted);
  font: 500 0.6875rem/1.6 var(--label);
}
.paper-status {
  font: 500 0.8125rem/1.5 var(--label);
  color: var(--muted);
  margin-top: 7px;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 20px auto 0;
}
.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid #8b8a7e;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.publication-links .resource-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
a.resource-button::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-left: 2px;
  background: currentColor;
  clip-path: polygon(20% 0,100% 0,100% 80%,86% 80%,86% 24%,10% 100%,0 90%,76% 14%,20% 14%);
}
a.resource-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
a.resource-button:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.resource-button.unavailable {
  color: #6a6c63;
  border-bottom-color: #c7c5bb;
  cursor: default;
}
@media (max-width: 600px) {
  .paper-header .publication-links { gap: 20px; }
}
.teaser-section {
  padding-top: 2px;
}
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #cfcbbc;
  background: #f1f0e8;
  color: #697561;
}
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed #d5d4c7;
  pointer-events: none;
  z-index: -1;
}
.teaser-placeholder {
  aspect-ratio: 16/9;
  background: #e9ede4;
  border-color: #c5cdbc;
}
.teaser-placeholder::after {
  border-color: #cbd3c3;
  inset: 13px;
}
.placeholder-meta {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 500 0.6875rem/1.5 var(--label);
  color: #626957;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder-meta > span:last-child {
  letter-spacing: 0.02em;
  text-transform: none;
}
.placeholder-center {
  text-align: center;
  padding: 60px 30px;
  max-width: 100%;
}
.media-symbol {
  width: 42px;
  height: 42px;
  stroke-width: 1.15;
  margin: 0 auto 13px;
  display: block;
  color: #899580;
}
.placeholder-title {
  display: block;
  font: 500 1.875rem/1.2 var(--heading);
  color: #617159;
}
.teaser-placeholder .placeholder-title {
  font-size: 2.25rem;
}
.placeholder-center p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #626957;
  max-width: 640px;
  margin: 12px auto 0;
}
.placeholder-foot {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: center;
  font: 500 0.6875rem/1.5 var(--label);
  color: #626957;
  letter-spacing: 0.03em;
}
.placeholder-kicker {
  display: block;
  font: 500 0.625rem/1.5 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 14px;
  color: #626957;
}
.teaser-caption {
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: center;
  margin: 16px auto 0;
  max-width: 760px;
}
.teaser-caption strong {
  color: var(--green);
}
.paper-section {
  padding-block: 36px;
}
.paper-section.ruled {
  border-top: 1px solid var(--rule);
}
h2 {
  font: 600 2rem/1.15 var(--heading);
  text-align: center;
  letter-spacing: -0.012em;
  margin-bottom: 20px;
}
h3 {
  font: 600 1.375rem/1.3 var(--heading);
  letter-spacing: -0.008em;
  margin-bottom: 10px;
}
h4 {
  font: 600 1.125rem/1.5 var(--serif);
  margin-bottom: 10px;
}
p + p {
  margin-top: 12px;
}
.abstract-text {
  font-size: 0.9375rem;
  line-height: 1.78;
  text-align: justify;
  hyphens: auto;
}
.abstract-text p + p {
  margin-top: 13px;
}
.project-address {
  color: var(--green);
  overflow-wrap: anywhere;
}
.section-lead {
  font-size: 0.9375rem;
  line-height: 1.72;
}
.research-figure {
  margin-top: 18px;
}
.figure-wide {
  aspect-ratio: 3.8;
  min-height: 180px;
}
.research-figure figcaption,
.figure-note {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
}
.research-figure figcaption strong,
.figure-note strong {
  color: var(--ink);
}
.contributions {
  margin-top: 22px;
}
.contributions h3 {
  font-size: 1.3rem;
}
.contributions ol {
  margin: 0;
  padding-left: 23px;
  font-size: 0.9375rem;
  line-height: 1.72;
}
.contributions li + li {
  margin-top: 7px;
}
.contributions li::marker {
  color: var(--green);
}
.subsection + .subsection {
  margin-top: 30px;
}
.subsection > p {
  font-size: 0.9375rem;
  line-height: 1.72;
}
.method-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}
.method-columns p {
  font-size: 0.9375rem;
  line-height: 1.72;
}
.method-columns h4 {
  font-size: 1rem;
  color: var(--green);
}
.equation {
  position: relative;
  text-align: center;
  margin-top: 19px;
  padding: 15px 40px;
  border-block: 1px solid #e4ded2;
  font: 500 1.0625rem/1.6 var(--serif);
}
.equation sup {
  font-size: 0.75em;
}
.equation-number {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: var(--muted);
}
#experiments > .section-lead {
  margin-bottom: 34px;
}
.task-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.task-tabs button {
  cursor: pointer;
  font: 500 0.75rem/1.5 var(--label);
  padding: 8px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
}
.task-tabs button:hover {
  color: var(--green);
}
.task-tabs button[aria-selected="true"] {
  background: #e8ede2;
  border-color: #c9d1c0;
  color: var(--green);
}
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.media-pair h4 {
  text-align: center;
  font: 500 1rem/1.5 var(--serif);
  margin-bottom: 12px;
}
.video-small {
  aspect-ratio: 16/9;
}
.video-small .placeholder-center {
  padding: 24px;
}
.video-small .placeholder-title {
  font-size: 1.625rem;
}
.video-small .placeholder-center p {
  font-size: 0.8125rem;
}
.deployment-placeholder {
  aspect-ratio: 3.8;
  min-height: 180px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.45;
}
caption {
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  padding-bottom: 9px;
}
caption strong {
  color: var(--ink);
}
th,
td {
  text-align: center;
  padding: 9px 12px;
  border-bottom: 1px solid #e4ddd1;
  font-weight: 400;
  white-space: nowrap;
}
thead th {
  border-top: 1px solid #a69d8e;
  border-bottom: 1px solid #a69d8e;
  font: 500 0.8125rem/1.6 var(--label);
  color: #625b50;
}
th:first-child {
  text-align: left;
}
tbody th span {
  font-size: 0.8125rem;
  color: var(--muted);
}
tr.ours {
  background: #eaf0e5;
  color: var(--green);
}
tr.ours th,
tr.ours td {
  font-weight: 600;
}
tbody tr:last-child > * {
  border-bottom: 1px solid #a69d8e;
}
.table-note {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
}
.ablation-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.ablation-figures .research-figure {
  margin-top: 0;
}
.chart-placeholder {
  aspect-ratio: 1.6;
}
.chart-placeholder .placeholder-meta {
  left: 22px;
  right: 22px;
  top: 20px;
  font-size: 0.625rem;
}
.chart-placeholder .placeholder-title {
  font-size: 1.75rem;
}
.ablation-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px;
}
.ablation-tables h3 {
  font-size: 1.375rem;
}
.ablation-tables p {
  font-size: 0.9375rem;
  line-height: 1.72;
}
.compact-table {
  font-size: 0.8125rem;
}
.compact-table th,
.compact-table td {
  padding: 8px 10px;
}
.compact-table td:nth-child(2) {
  text-align: center;
}
.compact-table th[rowspan] {
  vertical-align: middle;
}
.group-start > * {
  border-top: 1px solid #b9b0a1;
}
/* Interactive results: shared 0–100% scales and manuscript-exact values. */
.result-chart {
  --chart-label-width: 156px;
  --chart-value-width: 42px;
  --chart-gap: 14px;
  container-type: inline-size;
  margin-top: 18px;
  padding: 20px 23px 16px;
  border: 1px solid var(--rule);
  background: rgba(254, 251, 246, 0.94);
}
.result-chart:empty {
  display: none;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.chart-source {
  font: 500 0.625rem/1.5 var(--label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart-title {
  margin: 4px 0 0;
  font: 600 1.25rem/1.25 var(--heading);
}
.chart-replay {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--label);
  padding: 4px 0 4px 8px;
  cursor: pointer;
}
.chart-replay:hover {
  color: var(--green);
}
.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 14px;
}
.chart-select-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--label);
}
.chart-select {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: var(--green);
  background: #fcfaf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23244c3b' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #d6cebf;
  border-radius: 0;
  min-height: 31px;
  padding: 4px 34px 4px 9px;
  cursor: pointer;
}
@media (forced-colors: active) {
  .chart-select { appearance: auto; background-image: none; }
}
.chart-select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.chart-segments {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ded7ca;
  border-radius: 0;
  background: #f5f1e9;
}
.chart-segments button {
  font: 500 0.6875rem/1.5 var(--label);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 12px;
  cursor: pointer;
}
.chart-segments button[aria-pressed="true"] {
  color: var(--green);
  background: #e3eadd;
  box-shadow: 0 1px 2px #39332d0a;
}
.chart-axis-heading {
  font: 500 0.6875rem/1.5 var(--label);
  color: var(--muted);
  text-align: right;
  margin-bottom: 9px;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-left: calc(var(--chart-label-width) + var(--chart-gap));
  margin-right: calc(var(--chart-value-width) + var(--chart-gap));
  font: 500 0.625rem/1 var(--label);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-bottom: 7px;
}
.chart-axis span {
  width: 0;
  display: flex;
  justify-content: center;
}
.chart-source,
.chart-axis,
.chart-axis-heading,
.bar-group-caption {
  font-weight: 600;
}
.chart-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--chart-label-width) minmax(0, 1fr) var(
      --chart-value-width
    );
  align-items: center;
  column-gap: var(--chart-gap);
  min-height: 47px;
  border-radius: 0;
}
.chart-row:hover,
.chart-row:focus-visible {
  background: #e6ebdf66;
  z-index: 2;
}
.bar-meta {
  line-height: 1.4;
  padding-right: 5px;
}
.bar-name {
  display: block;
  font-size: 0.8125rem;
}
.bar-hint {
  display: block;
  color: var(--muted);
  font: 500 0.625rem/1.5 var(--label);
  margin-top: 2px;
}
.bar-track {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 38px;
  background-image: linear-gradient(to right, #e4ded3 1px, transparent 1px);
  background-size: 25% 100%;
  border-right: 1px solid #e4ded3;
}
.chart-bar {
  height: 16px;
  background: #b7a58a;
  border-radius: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition:
    width 450ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease;
}
.is-visible .chart-bar {
  transform: scaleX(1);
  animation: chart-grow 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--row-delay);
}
.is-ours .chart-bar {
  background: linear-gradient(90deg, #315e4a, #63816a);
}
.is-original .chart-bar {
  background: #b8c4ad;
}
.is-ours .bar-name,
.is-ours .bar-value {
  color: var(--green);
  font-weight: 600;
}
.chart-row:hover .chart-bar {
  filter: brightness(1.08);
}
.bar-value {
  text-align: right;
  font: 500 1rem/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.chart-tooltip {
  position: absolute;
  bottom: calc(100% - 2px);
  right: 0;
  max-width: 100%;
  padding: 10px 13px;
  background: #314b3e;
  color: #fcf8f3;
  border-radius: 0;
  box-shadow: 0 5px 18px #39332d15;
  font: 500 0.6875rem/1.7 var(--label);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 140ms,
    transform 140ms,
    visibility 140ms;
  pointer-events: none;
}
.chart-row:hover .chart-tooltip,
.chart-row:focus-visible .chart-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chart-caption {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #e4ded2;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes chart-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@container (max-width: 400px) {
  .chart-row {
    grid-template-columns: minmax(0, 1fr) var(--chart-value-width);
    row-gap: 8px;
    padding: 12px 0;
  }
  .bar-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
  }
  .bar-name {
    font-size: 0.875rem;
  }
  .bar-hint {
    margin-top: 0;
  }
  .bar-track {
    min-height: 28px;
  }
  .chart-bar {
    height: 20px;
  }
  .chart-axis {
    margin-left: 0;
  }
  .chart-title {
    font-size: 1.375rem;
  }
  .chart-replay {
    font-size: 0;
  }
  .chart-replay::before {
    content: "↻";
    font-size: 1.25rem;
  }
  .chart-axis-heading {
    text-align: left;
  }
}
@media (max-width: 760px) {
  .result-chart {
    padding: 22px 20px 19px;
    --chart-gap: 12px;
    --chart-value-width: 43px;
  }
  .chart-controls {
    margin-block: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chart-bar,
  .chart-tooltip {
    animation: none !important;
    transition: none !important;
  }
}
#limitations > p {
  font-size: 0.9375rem;
}
/* Complete scaling and steering studies, with publication-style axes. */
.experiment-index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0;
  font: 500 0.6875rem/1.5 var(--label);
}
.experiment-index a {
  border-bottom: 1px solid #c5d0bd;
  padding-bottom: 3px;
}
.evaluation-protocol {
  padding: 12px 0;
  margin-bottom: 26px;
  border-block: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.evaluation-protocol strong {
  color: var(--ink);
}
.scaling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.curve-panel {
  min-width: 0;
  padding: 19px 20px 16px;
  border: 1px solid var(--rule);
  background: rgba(254, 251, 246, 0.94);
}
.scientific-plot {
  --plot-stroke-curve: 1.5px;
  --plot-stroke-key: 2px;
  --plot-stroke-selected: 2.8px;
  --plot-stroke-point: 1.2px;
  --plot-stroke-point-active: 1.7px;
  --plot-stroke-error: 0.85px;
  --plot-stroke-grid: 0.65px;
  --plot-stroke-guide: 0.8px;
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 9px;
  overflow: visible;
}
/* The 300-unit scaling plots and 880-unit steering plot share screen-space
   stroke weights, even when responsive panels enlarge their SVG geometry. */
.scientific-plot :is(.plot-curve, .plot-dot, .plot-grid, .plot-default-guide,
  .replay-baseline, .default-setting-ring),
.scientific-plot .plot-error-bars path {
  vector-effect: non-scaling-stroke;
}
.plot-label {
  stroke: none;
  fill: var(--muted);
  font:
    400 1rem var(--serif);
  letter-spacing: 0;
}
.plot-grid {
  stroke: #e3ddd1;
  stroke-width: var(--plot-stroke-grid);
}
.plot-default-guide {
  stroke: #b8c5ac;
  stroke-width: var(--plot-stroke-guide);
  stroke-dasharray: 4 5;
}
.plot-error-bars {
  stroke: #b3a28a;
  stroke-width: var(--plot-stroke-error);
}
.plot-curve {
  fill: none;
  stroke-width: var(--plot-stroke-curve);
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Solid geometry stays complete at every responsive SVG scale. */
  stroke-dasharray: none;
}
.scaling-curve {
  stroke: var(--green);
}
.is-visible .plot-curve {
  animation: draw-research-curve 1000ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.plot-dot {
  fill: #fcfaf5;
  stroke: var(--point-color, var(--green));
  stroke-width: var(--plot-stroke-point);
  transition:
    fill 160ms,
    stroke-width 160ms;
}
.plot-dot.is-default,
.plot-dot.is-active,
.plot-point.is-active .plot-dot {
  fill: var(--point-color, var(--green));
}
.plot-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}
.plot-point {
  cursor: pointer;
}
.plot-point:focus {
  outline: none;
}
.plot-point:focus-visible .plot-dot,
.plot-point:hover .plot-dot {
  stroke-width: var(--plot-stroke-point-active);
  fill: var(--point-color, var(--green));
}
.plot-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  padding-top: 10px;
  border-top: 1px solid #e4ded2;
  min-height: 48px;
}
.plot-readout-label {
  color: var(--ink);
  font: 500 0.6875rem/1.5 var(--label);
}
.plot-readout-value {
  color: var(--green);
  font: 600 1.125rem/1.3 var(--heading);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.plot-readout-detail {
  grid-column: 1 / -1;
  color: var(--muted);
  font: 500 0.6875rem/1.6 var(--label);
}
.plot-key {
  color: var(--muted);
  font: 500 0.625rem/1.6 var(--label);
  margin-top: 7px;
}
.plot-provenance a {
  border-bottom: 1px solid #b9c7b1;
}
.experiment-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 17px;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.experiment-findings p + p {
  margin-top: 0;
}
.experiment-findings strong {
  color: var(--green);
}
.steering-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
}
.steering-viewport:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.steering-panel {
  margin-top: 18px;
  padding: 21px 24px 17px;
}
.curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}
.curve-budget {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 7px 9px;
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--label);
  cursor: pointer;
}
.curve-budget::before {
  content: "";
  width: 15px;
  height: 3px;
  background: var(--curve-color);
}
.curve-budget[aria-pressed="true"] {
  background: #e9eee2;
  border-color: #c7d2bd;
  color: var(--green);
}
.steering-curve {
  opacity: 0.55;
  transition:
    opacity 160ms,
    stroke-width 160ms;
}
.steering-curve.is-selected {
  opacity: 1;
  stroke-width: var(--plot-stroke-selected);
}
.replay-baseline {
  stroke: #b28c59;
  stroke-width: var(--plot-stroke-curve);
  stroke-dasharray: 4 5;
}
.replay-label {
  fill: #725a38;
  font-size: 0.6875rem;
}
.default-setting-ring {
  fill: #fcfaf5;
  stroke: var(--green);
  stroke-width: var(--plot-stroke-curve);
}
.steering-controls {
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 14px 0 21px;
}
.weight-label {
  font: 500 0.75rem/1.6 var(--label);
  color: var(--muted);
  flex-shrink: 0;
}
.weight-value {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  min-width: 32px;
  margin-left: 8px;
}
.weight-slider {
  width: 100%;
  min-width: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.weight-slider:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.steering-readout {
  min-height: 48px;
}
#ablations .ablation-tables {
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}
/* Reveal by clipping, not dash length: non-scaling strokes make normalized
   dashes shorter than enlarged SVG paths in some browsers. The clip disappears
   after the animation, so endpoints and round caps remain fully visible. */
@keyframes draw-research-curve {
  from { clip-path: inset(-4px 100% -4px -4px); }
  to { clip-path: inset(-4px -4px -4px -4px); }
}
@media (min-width: 761px) and (max-width: 900px) {
  .scaling-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .scaling-grid,
  .experiment-findings {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .curve-panel {
    padding: 21px 17px 18px;
  }
  .steering-svg {
    min-width: 650px;
    margin-top: 22px;
  }
  .steering-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .curve-budget {
    padding: 7px;
    font-size: 0.625rem;
  }
  .plot-readout {
    column-gap: 8px;
  }
  .plot-readout-value {
    font-size: 1.25rem;
  }
  .steering-svg .plot-label {
    font-size: 1.0625rem;
  }
  .scaling-panel .plot-label {
    font-size: 0.875rem;
  }
  .steering-svg .replay-label {
    font-size: 0.9375rem;
  }
  .experiment-index {
    justify-content: flex-start;
    font-size: 0.6875rem;
    gap: 9px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plot-curve {
    animation: none !important;
  }
}
.citation-section {
  padding-bottom: 50px;
}
.citation-note {
  border: 1px solid var(--rule);
  background: #f5f1e9;
  padding: 25px 28px;
  font-size: 0.9375rem;
}
.citation-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.citation-note p + p {
  margin-top: 6px;
}
.citation-note .muted {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 16px;
}
.citation-note a {
  display: inline-block;
  font: 500 0.8125rem/1.5 var(--label);
  margin-top: 19px;
  border-bottom: 1px solid #a9bba6;
}
.page-footer {
  padding: 23px 0 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 22px;
  font: 500 0.75rem/1.5 var(--label);
  color: var(--muted);
}
.page-footer > span:first-child {
  font: 600 1.375rem/1.2 var(--heading);
  color: var(--green);
}
.page-footer a {
  margin-left: auto;
}
@media (min-width: 1500px) {
  .paper-header {
    padding-top: 75px;
  }
}
@media (max-width: 760px) {
  .container,
  .reading-width {
    width: calc(100% - 40px);
  }
  .paper-header {
    padding: 40px 0 28px;
  }
  h1 {
    font-size: 2.9rem;
    line-height: 1.1;
  }
  .title-line {
    display: inline;
  }
  .title-line + .title-line::before {
    content: " ";
  }
  .authors {
    font-size: 1rem;
    margin-top: 20px;
  }
  .paper-status {
    font-size: 0.75rem;
  }
  .publication-links {
    gap: 8px;
    margin-top: 22px;
  }
  .teaser-placeholder {
    aspect-ratio: 16/10;
    min-height: 265px;
  }
  .placeholder-meta {
    left: 20px;
    right: 20px;
    top: 19px;
    font-size: 0.625rem;
  }
  .placeholder-meta > span:last-child {
    font-size: 0.5625rem;
  }
  .placeholder-center {
    padding: 57px 21px;
  }
  .media-symbol {
    width: 31px;
    height: 31px;
    margin-bottom: 10px;
  }
  .teaser-placeholder .placeholder-title {
    font-size: 1.875rem;
  }
  .placeholder-center p {
    font-size: 0.8125rem;
    margin-top: 10px;
  }
  .placeholder-foot {
    font-size: 0.5625rem;
    bottom: 20px;
  }
  .teaser-caption {
    font-size: 1rem;
    text-align: left;
    margin-top: 19px;
  }
  .paper-section {
    padding-block: 40px;
  }
  h2 {
    font-size: 2.25rem;
    margin-bottom: 23px;
  }
  h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  .abstract-text {
    font-size: 1rem;
    line-height: 1.85;
    text-align: left;
  }
  .section-lead,
  .subsection > p,
  #limitations > p {
    font-size: 1rem;
    line-height: 1.85;
  }
  .figure-wide {
    aspect-ratio: auto;
    min-height: 235px;
  }
  .placeholder-title {
    font-size: 1.625rem;
  }
  .placeholder-kicker {
    font-size: 0.5625rem;
  }
  .research-figure {
    margin-top: 22px;
  }
  .research-figure figcaption,
  .figure-note {
    font-size: 0.75rem;
  }
  .contributions {
    margin-top: 27px;
  }
  .contributions h3 {
    font-size: 1.375rem;
  }
  .contributions ol {
    font-size: 1rem;
  }
  .subsection + .subsection {
    margin-top: 34px;
  }
  .method-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 27px;
  }
  .equation {
    padding: 18px 30px;
    font-size: 1.1rem;
  }
  .task-tabs {
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 20px 0;
  }
  .task-tabs button {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
  .media-pair {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .media-pair h4 {
    font-size: 0.9375rem;
    margin-bottom: 9px;
  }
  .video-small {
    aspect-ratio: 16/9;
  }
  .video-small .placeholder-center {
    padding: 30px 20px;
  }
  .deployment-placeholder {
    aspect-ratio: auto;
    min-height: 240px;
  }
  .table-wrap {
    margin-top: 22px;
  }
  table {
    font-size: 0.8125rem;
  }
  th,
  td {
    padding: 12px 13px;
  }
  thead th {
    font-size: 0.75rem;
  }
  tbody th span {
    font-size: 0.75rem;
  }
  caption {
    font-size: 0.75rem;
  }
  .table-note {
    font-size: 0.6875rem;
  }
  .ablation-figures,
  .ablation-tables {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .chart-placeholder {
    aspect-ratio: 1.7;
    min-height: 230px;
  }
  .ablation-tables {
    margin-top: 32px;
    gap: 32px;
  }
  .citation-note {
    padding: 21px;
  }
  .citation-title {
    font-size: 1rem;
  }
  .page-footer {
    gap: 15px;
    font-size: 0.6875rem;
    padding-top: 21px;
  }
}
@media (max-width: 380px) {
  .container,
  .reading-width {
    width: calc(100% - 32px);
  }
  h1 {
    font-size: 2.5rem;
  }
  .task-tabs button {
    font-size: 0.6875rem;
    padding: 9px 7px;
  }
  .placeholder-meta {
    left: 19px;
    right: 19px;
  }
  .placeholder-meta > span:last-child {
    max-width: 135px;
    text-align: right;
  }
  .equation {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .teaser-placeholder {
    aspect-ratio: 16/9;
    min-height: 0;
  }
  .teaser-placeholder .placeholder-center {
    padding: 42px 18px 26px;
  }
  .teaser-placeholder .media-symbol,
  .teaser-placeholder .placeholder-foot {
    display: none;
  }
  .teaser-placeholder .placeholder-title {
    font-size: 1.6rem;
  }
  .teaser-placeholder .placeholder-center p {
    font-size: 0.75rem;
    margin-top: 9px;
  }
  .teaser-placeholder .placeholder-meta {
    top: 17px;
  }
}
/* Explicit grid tracks prevent wide figure captions from widening narrow screens. */
.media-placeholder {
  width: 100%;
}
.research-figure,
.ablation-tables > article,
.media-pair > figure {
  min-width: 0;
}
.ablation-figures,
.ablation-tables,
.media-pair,
.method-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .ablation-figures,
  .ablation-tables,
  .media-pair,
  .method-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact editorial rhythm and clearer experiment comparisons. */
.chart-guide,
.plot-takeaway {
  font: 500 0.75rem/1.6 var(--serif);
  color: var(--muted);
  margin-top: 6px;
  max-width: 760px;
}
.plot-takeaway {
  min-height: 2.9em;
  margin-top: 5px;
}
.chart-guide {
  font-style: italic;
}
.plot-takeaway .text-accent {
  color: var(--green);
}
.bar-group-caption {
  color: var(--muted);
  font: 500 0.625rem/1.5 var(--label);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  padding: 10px 0 5px;
  border-top: 1px solid #e6e0d5;
  margin-top: 7px;
}
.bar-group-caption:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 3px;
}
.steering-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 17px 0 13px;
}
.steering-filters .chart-select-label {
  gap: 8px;
}
.curve-all-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 500 0.6875rem/1.5 var(--label);
  cursor: pointer;
  margin-left: auto;
}
.curve-all-label input {
  accent-color: var(--green);
  margin: 0;
}
.curve-all-label input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.steering-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  padding-top: 11px;
  border-top: 1px solid #e5dfd3;
  font: 500 0.6875rem/1.5 var(--label);
  color: var(--muted);
}
.steering-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.steering-key-item::before {
  content: "";
  width: 17px;
  height: 2px;
  background: var(--curve-color);
}
.steering-key-item.is-replay::before {
  height: 0;
  background: none;
  border-top: 1px dashed #b28c59;
}
.legend-note {
  color: var(--muted);
}
.steering-curve {
  opacity: 0.24;
  stroke-width: var(--plot-stroke-curve);
}
.steering-curve.is-key {
  opacity: 0.8;
  stroke-width: var(--plot-stroke-key);
}
.steering-curve.is-selected {
  opacity: 1;
  stroke-width: var(--plot-stroke-selected);
}
.steering-curve.is-hidden {
  display: none;
}
.plot-endpoint {
  font-size: 0.6875rem;
  fill: var(--muted);
}
.scaling-panel .plot-dot.is-active:not(.is-default) {
  fill: #fcfaf5;
  stroke-width: var(--plot-stroke-point-active);
}
.chart-row.is-zero .bar-track::before {
  content: "";
  height: 16px;
  border-left: 1px solid #b7a58a;
}
.is-visible .chart-bar {
  animation-duration: 550ms;
}
@media (min-width: 1500px) {
  .paper-header {
    padding-top: 48px;
  }
}
@container (max-width: 400px) {
  .chart-row {
    padding: 7px 0;
    row-gap: 4px;
    min-height: 45px;
  }
  .bar-name {
    font-size: 0.8125rem;
  }
  .chart-bar {
    height: 16px;
  }
  .bar-track {
    min-height: 23px;
  }
  .chart-title {
    font-size: 1.2rem;
  }
}
@media (max-width: 760px) {
  .container,
  .reading-width {
    width: calc(100% - 32px);
  }
  .paper-header {
    padding: 30px 0 20px;
  }
  h1 {
    font-size: 2.35rem;
  }
  .paper-section {
    padding-block: 28px;
  }
  h2 {
    font-size: 1.8rem;
    margin-bottom: 17px;
  }
  h3,
  .ablation-tables h3 {
    font-size: 1.3rem;
    margin-bottom: 9px;
  }
  .abstract-text,
  .section-lead,
  .subsection > p,
  #limitations > p,
  .ablation-tables p,
  .contributions ol,
  .method-columns p {
    font-size: 0.9375rem;
    line-height: 1.72;
  }
  .subsection + .subsection {
    margin-top: 26px;
  }
  .contributions {
    margin-top: 20px;
  }
  .research-figure {
    margin-top: 16px;
  }
  .teaser-caption {
    font-size: 0.9rem;
    margin-top: 14px;
  }
  .figure-wide,
  .deployment-placeholder {
    min-height: 170px;
  }
  .result-chart,
  .curve-panel {
    padding: 17px 16px 14px;
    margin-top: 16px;
  }
  .scaling-panel {
    margin-top: 0;
  }
  .chart-controls {
    margin-block: 12px;
  }
  .chart-title {
    font-size: 1.2rem;
  }
  .scientific-plot {
    margin-block: 11px 7px;
  }
  .plot-takeaway {
    min-height: 0;
  }
  .plot-readout-value {
    font-size: 1.1rem;
  }
  .plot-readout {
    min-height: 45px;
  }
  .steering-readout {
    min-height: 48px;
  }
  .steering-filters {
    gap: 9px 15px;
    margin: 13px 0 10px;
  }
  .steering-filters .chart-select-label {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .steering-filters select {
    width: 160px;
  }
  .curve-all-label {
    margin-left: 0;
  }
  .steering-key {
    gap: 5px 12px;
  }
  .steering-svg {
    min-width: 600px;
  }
  th,
  td,
  .compact-table th,
  .compact-table td {
    padding: 8px 9px;
  }
  #ablations .ablation-tables {
    margin-top: 26px;
    gap: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plot-curve,
  .chart-bar {
    animation: none !important;
  }
}
.plot-scroll-hint {
  display: none;
}
@media (max-width: 760px) {
  .plot-scroll-hint {
    display: block;
    margin: 0 0 9px;
    color: var(--muted);
    font: 500 0.6875rem/1.5 var(--label);
  }
}
.result-chart .chart-guide,
.curve-panel .chart-guide,
.subsection > .figure-note {
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Small multiples: compare studies across a row before opening numeric tables. */
.scaling-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.scaling-panel {
  display: flex;
  flex-direction: column;
  padding: 15px 14px 12px;
  margin-top: 0;
}
.scaling-panel .chart-source {
  font-size: 0.5625rem;
  letter-spacing: 0.045em;
}
.scaling-panel .chart-title {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-top: 5px;
  margin-bottom: 0;
}
.scaling-panel .plot-takeaway {
  font-size: 0.6875rem;
  min-height: 3.2em;
  margin-top: 7px;
}
.scaling-panel .scientific-plot {
  margin: 9px 0 7px;
}
.scaling-panel .plot-label {
  font-size: 0.875rem;
}
.scaling-panel .plot-readout {
  margin-top: auto;
  min-height: 42px;
  padding-top: 8px;
}
.scaling-panel .plot-readout-label,
.scaling-panel .plot-readout-detail {
  font-size: 0.625rem;
}
.scaling-panel .plot-readout-value {
  font-size: 1.1rem;
}
#ablations .ablation-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.ablation-tables > article {
  display: flex;
  flex-direction: column;
}
.ablation-tables > article > p {
  min-height: 3.44em;
}
.ablation-tables .result-chart {
  --chart-label-width: 116px;
  --chart-value-width: 36px;
  --chart-gap: 10px;
  padding: 18px 18px 14px;
  margin-top: 14px;
}
.ablation-tables .chart-title {
  font-size: 1.2rem;
}
.ablation-tables .chart-controls {
  margin-block: 12px;
  gap: 10px;
}
.ablation-tables .chart-row {
  min-height: 39px;
}
.ablation-tables .bar-track {
  min-height: 29px;
}
.steering-panel {
  margin-top: 18px;
}
@media (min-width: 1100px) {
  .scaling-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .scaling-panel {
    padding-inline: 10px;
  }
  .scaling-panel .plot-label {
    font-size: 1rem;
  }
}
@media (max-width: 760px) {
  #ablations .ablation-tables {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .ablation-tables > article > p {
    min-height: 0;
  }
}
@media (max-width: 599px) {
  .scaling-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scaling-panel .plot-takeaway {
    min-height: 0;
  }
}
