:root {
  --ink: #202323;
  --muted: #585e60;
  --line: #dbdedb;
  --accent: #a64f47;
  --soft: #f5f6f3;
  --tint: #f8eeeb;
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, h1, h2, h3, figure, p, dl, dd, pre { margin: 0; }
body { background: white; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #236e91; outline-offset: 4px; }
[hidden], .interactive-only { display: none !important; }
.js .interactive-only:not([hidden]) { display: inline-flex !important; }
.js .static-baseline { display: none; }
.container { width: min(100% - 3rem, 67rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; top: .4rem; left: .4rem; z-index: 2; background: white; padding: .5rem; }
h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; }
.resources, .gallery-bar, .gallery-footer, .footer { display: flex; align-items: center; }
.wordmark, .mast-logo { font-weight: 750; letter-spacing: -.077em; }
.wordmark { font-size: 1.25rem; text-decoration: none; }
.wordmark span, .mast-logo span { color: var(--accent); }
.masthead { text-align: center; padding: clamp(2rem, 4.5vw, 3.55rem) 0 2.25rem; }
.masthead h1 { font-weight: 570; }
.mast-logo { display: block; font-size: clamp(3.7rem, 6.4vw, 5.7rem); line-height: .98; }
.paper-title { display: block; margin: .85rem auto 1.05rem; line-height: 1.12; font-size: clamp(1.56rem, 3vw, 2.65rem); letter-spacing: -.048em; text-wrap: balance; }
.authors { font-size: 1.08rem; line-height: 1.6; }
.authors a { color: #82453f; text-decoration: none; white-space: nowrap; }
.authors a:hover { text-decoration: underline; }
.affiliation { color: var(--muted); font-size: .96rem; }
.publication-status { margin-top: .35rem; font-size: 1rem; font-weight: 600; }
.resources { justify-content: center; gap: .55rem; margin-top: 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; padding: .42rem 1.05rem; border-radius: 2rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: #444a49; }
.button.secondary { border-color: #c8cdca; }
.button.secondary:hover { border-color: var(--accent); }
.button svg { width: 1.06rem; height: 1.06rem; }
.braces { font: bold 1.05rem/1 ui-monospace, monospace; }
.gallery { background: var(--soft); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem .95rem; }
.gallery-bar, .gallery-footer { justify-content: space-between; gap: 1rem; }
.gallery-bar { margin-bottom: .9rem; }
.gallery-bar h2 { font-size: 1.18rem; }
.scene-control { align-items: center; gap: .24rem; }
.scene-control span { color: var(--muted); font-size: .88rem; margin-right: .25rem; }
.scene-control button { padding: 0; width: 2rem; height: 2rem; border: 1px solid transparent; border-radius: 50%; background: transparent; font-size: .92rem; }
.scene-control button:hover { border-color: var(--line); }
.scene-control button[aria-pressed=true] { background: var(--ink); color: white; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .68rem; }
.views figure { background: white; border: 1px solid var(--line); border-radius: .58rem; overflow: hidden; display: flex; flex-direction: column; }
.view { padding: .62rem .7rem 0; }
.view img { width: 100%; height: clamp(10rem, 19vw, 15rem); object-fit: contain; }
.views figcaption { display: flex; justify-content: center; align-items: center; min-height: 2.65rem; font-size: .91rem; font-weight: 620; }
.ours-label { gap: .3rem; color: #91433c; }
.ours-label span { font-weight: 450; }
.baseline-control select { background: #f3f4f2; border-radius: .3rem; border: 1px solid #c6cac7; font-size: .88rem; font-weight: 580; padding: .1rem 1.7rem .1rem .48rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #4c5250 50%), linear-gradient(135deg, #4c5250 50%, transparent 50%); background-position: calc(100% - .74rem) 53%, calc(100% - .5rem) 53%; background-size: .25rem .25rem; background-repeat: no-repeat; }
.gallery-footer { margin-top: .7rem; color: var(--muted); font-size: .88rem; }
.text-link { white-space: nowrap; font-weight: 580; color: var(--ink); }
.abstract-band { margin-top: clamp(2.8rem, 6vw, 4.7rem); border-block: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; padding-block: clamp(2.4rem, 5vw, 3.9rem); }
.prose p, .intro, .analysis-copy p, .disclosure > p, .reward-detail dd, .method-pair figcaption p { color: #414848; }
.prose { font-size: 1.04rem; }
.section { padding-block: clamp(3rem, 6.5vw, 5rem); }
.intro { margin: .85rem 0 1.75rem; font-size: 1.07rem; max-width: 52rem; }
.paper-figure > a, .diagram, .attention > a { display: block; padding: clamp(.7rem, 2vw, 1.6rem); border: 1px solid var(--line); border-radius: .65rem; background: white; }
.paper-figure img, .attention img { width: 100%; }
figure a:hover img { opacity: .95; }
.paper-figure figcaption, .attention figcaption, .reward-detail figcaption { font-size: .925rem; color: var(--muted); margin-top: .65rem; }
.paper-figure figcaption strong { color: var(--ink); }
.method-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 2.25rem 0 1.7rem; }
.diagram { display: flex; aspect-ratio: 2.25; align-items: center; justify-content: center; }
.diagram img { width: 100%; height: 100%; object-fit: contain; }
.method-pair figcaption h3 { margin: 1rem 0 .4rem; }
.disclosure { border-bottom: 1px solid #cdd2ce; }
.disclosure:first-of-type { border-top: 1px solid #cdd2ce; }
.disclosure summary { display: flex; gap: 1.3rem; align-items: center; justify-content: space-between; list-style: none; padding: 1.02rem 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 1.35rem; line-height: 1; color: var(--muted); }
details[open] > summary::after { content: "−"; }
details[open] { padding-bottom: 1rem; }
summary:hover { color: var(--accent); }
.reward-detail { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; align-items: center; padding: .4rem 0; }
.reward-detail dt { font-weight: 630; }
.reward-detail dd + dt { margin-top: .47rem; }
.results-band { background: var(--soft); border-block: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.8rem 0 2.3rem; }
.metrics > div { border-left: 2px solid #babfba; padding-left: clamp(.7rem, 2vw, 1.2rem); }
.metrics dt { font-size: .92rem; font-weight: 630; }
.metrics dd:first-of-type { display: block; margin: .35rem 0 .15rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; font-weight: 580; letter-spacing: -.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.metrics dd:first-of-type span { font-size: .55em; letter-spacing: -.015em; }
.metrics .baseline-stat { font-size: .86rem; color: var(--muted); }
.tabs { gap: .25rem; max-width: 100%; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs button { background: transparent; border: 1px solid transparent; border-radius: 2em; padding: .48rem .9rem; font-size: .93rem; font-weight: 570; }
.tabs button:hover { border-color: #c6cbc7; }
.tabs button[aria-selected=true] { background: var(--ink); color: white; }
.panel { padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--line); border-radius: .65rem; background: white; margin-bottom: 1rem; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
caption { text-align: left; margin: .05rem 0 .9rem; font-weight: 630; font-size: 1.03rem; }
th, td { padding: .6rem .55rem; text-align: right; vertical-align: middle; }
thead th { font-size: .86rem; font-weight: 575; color: var(--muted); border-bottom: 1px solid #a5aaa6; }
th:first-child { text-align: left; }
tbody th { font-weight: 450; }
tbody tr + tr { border-top: 1px solid #e4e6e2; }
tbody tr.ours { background: var(--tint); }
tbody tr.ours th { color: #843f39; font-weight: 650; }
.best { font-weight: 700; }
.note, .table-key { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.note { margin-top: .85rem; }
.table-key { margin: .55rem 0 0; }
.ablations { margin-top: 2.5rem; }
.ablations h3 { margin-bottom: .85rem; }
.disclosure .table-scroll { background: white; margin: 1rem 0; padding: .8rem; border: 1px solid var(--line); border-radius: .45rem; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; margin-top: 1.6rem; }
.analysis-copy h3 { margin-bottom: .5rem; }
.analysis-copy p + h3 { margin-top: 1.5rem; }
.gate { margin: .85rem 0 0; }
.gate img { width: min(100%, 18rem); }
.citation-band { background: var(--soft); border-block: 1px solid var(--line); }
.bib-block { min-width: 0; }
.bib-tools { display: flex; gap: .65rem; align-items: center; margin-bottom: .55rem; }
.bib-tools button { border: 1px solid #c4c9c5; background: white; font-size: .84rem; padding: .22rem .65rem; border-radius: .35rem; }
.bib-tools button:hover { border-color: var(--accent); }
#copy-status { color: var(--muted); font-size: .87rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.footer { justify-content: space-between; gap: 1.5rem; padding-block: 1.6rem; }
.footer p { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) {
  .container { width: min(100% - 2rem, 67rem); }
  .gallery { padding: .75rem; }
  .view { padding: .2rem; }
  .view img { height: auto; aspect-ratio: 640 / 523; }
  .split-section, .analysis-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .method-pair { gap: 1.15rem; }
  .panel { padding: .85rem; }
  table { min-width: 35rem; }
  .note { font-size: .84rem; }
  .reward-detail { grid-template-columns: 11rem 1fr; gap: 1rem; }
  .analysis-copy { margin-top: .4rem; }
  .gate img { width: min(100%, 22rem); }
}
@media (max-width: 490px) {
  .container { width: calc(100% - 1.75rem); }
  .masthead { padding-bottom: 1.65rem; }
  .wide { display: none; }
  .authors { font-size: 1rem; }
  .gallery-bar { gap: .3rem; }
  .gallery-bar h2 { font-size: 1rem; }
  .scene-control { gap: .05rem; }
  .scene-control button { width: 1.75rem; height: 1.75rem; }
  .scene-control span { font-size: .79rem; }
  .views { gap: .35rem; }
  .views figure { border-radius: .35rem; }
  .views figcaption { min-height: 2.15rem; font-size: .8rem; }
  .ours-label span { display: none; }
  .baseline-control select { font-size: .79rem; }
  .gallery-footer { align-items: flex-start; flex-direction: column; gap: .3rem; font-size: .85rem; }
  .method-pair, .reward-detail { grid-template-columns: minmax(0, 1fr); }
  .reward-detail figure { max-width: 15rem; }
  .metrics { gap: .45rem; }
  .metrics dt, .metrics .baseline-stat { font-size: .78rem; }
  .metrics dd:first-of-type { font-size: 1.8rem; }
  .tabs { gap: .2rem; }
  .tabs button { font-size: .81rem; padding: .42rem .53rem; }
  .footer { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
@media print {
  .resources, .interactive-only, .js .interactive-only:not([hidden]), .bib-tools { display: none !important; }
  .js .static-baseline { display: inline; }
  .panel[hidden] { display: block !important; }
  .section, .split-section { padding-block: 1.5rem; }
  .table-scroll { overflow: visible; }
  .gallery, table, .method-pair figure { break-inside: avoid; }
}
@media (max-width: 490px) {
  .views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .views > figure:first-child { grid-column: 1 / -1; }
  .views > figure:first-child img { height: 9.2rem; }
  .views > figure:first-child figcaption { min-height: 1.75rem; }
}
