:root {
  --paper: #ffffff;
  --surface: #f6f7f5;
  --ink: #1a2320;
  --muted: #5d6963;
  --line: #dde3de;
  --line-strong: #c6cfc9;
  --accent: #2b5c8a;
  --accent-soft: #e8eff5;
  --green: #2b765c;
  --green-soft: #e3efe9;
  --rust: #b75343;
  --gold: #a87316;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --page: 880px;
  --page-wide: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(43, 92, 138, 0.4);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p:last-child {
  margin-bottom: 0;
}

section[id] {
  scroll-margin-top: 76px;
}

.page-width,
.page-wide {
  width: calc(100% - 48px);
  margin-right: auto;
  margin-left: auto;
}

.page-width {
  max-width: var(--page);
}

.page-wide {
  max-width: var(--page-wide);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.site-nav {
  display: flex;
  width: calc(100% - 48px);
  max-width: var(--page-wide);
  min-height: 56px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-mark-image {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  position: relative;
  flex: 0 0 auto;
  padding: 17px 0 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  opacity: 0;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  opacity: 1;
}

/* ---------- Title block ---------- */

.masthead {
  padding-top: 58px;
}

.masthead-copy {
  max-width: 860px;
  text-align: center;
}

.venue-line {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.masthead h1 {
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.title-mark {
  white-space: nowrap;
}

.authors {
  margin-bottom: 4px;
  font-size: 17px;
}

.authors sup {
  color: var(--muted);
  font-size: 11px;
}

.affiliations {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.affiliations sup {
  font-size: 10px;
}

.resource-links {
  display: flex;
  margin: 0 0 8px;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.resource-link {
  display: inline-flex;
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.resource-link em {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.resource-link:hover {
  background: #32423b;
}

.resource-link.is-disabled {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--muted);
  cursor: default;
}

.resource-link.is-disabled em {
  color: var(--muted);
}

.resource-symbol-icon,
.resource-brand-icon {
  display: block;
  flex: 0 0 auto;
}

.resource-symbol-icon {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.resource-brand-icon {
  width: 18px;
  height: 17px;
}

/* ---------- Figures ---------- */

.overview-video {
  max-width: 654px;
  margin-top: 40px;
}

.overview-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 544;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #101412;
}

.teaser {
  max-width: var(--page-wide);
  margin-top: 44px;
}

.figure-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: zoom-in;
}

.figure-button img {
  width: 100%;
}

.figure-button:focus-visible,
.video-button:focus-visible,
.resource-link:focus-visible,
.nav-links a:focus-visible,
.site-mark:focus-visible,
.site-footer a:focus-visible,
.lightbox-close:focus-visible,
.bibtex-copy:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.zoom-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(26, 35, 32, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  place-items: center;
  transition: opacity 160ms ease;
}

.figure-button:hover .zoom-mark,
.figure-button:focus-visible .zoom-mark {
  opacity: 1;
}

figcaption {
  max-width: 820px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.fig-label,
.tab-label {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Metric strip ---------- */

.metric-strip {
  display: grid;
  width: calc(100% - 48px);
  max-width: var(--page-wide);
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  min-width: 0;
  padding: 22px 18px;
  text-align: center;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.metric dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

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

.section + .section:not(.section-alt) {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 34px;
  text-align: center;
}

.section-number {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.section-summary {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.contribution-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fef9f5;
  border-left: 3px solid #b96420;
  font-size: 14px;
  line-height: 1.6;
  color: #3a2817;
}

.contribution-note strong {
  color: #2b1d14;
}

/* ---------- Abstract ---------- */

.abstract-body {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  text-align: justify;
}

.abstract-body p {
  margin-bottom: 18px;
}

.contribution {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 15px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Method ---------- */

.component-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.component {
  position: relative;
  min-width: 0;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 4px;
  background: var(--white);
}

.component-point {
  border-top-color: var(--green);
}

.component-think {
  border-top-color: var(--rust);
}

.component-memory {
  border-top-color: var(--accent);
}

.component-align {
  border-top-color: var(--gold);
}

.component-letter {
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.component h3 {
  font-size: 19px;
}

.component p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.component .component-effect {
  margin-top: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.method-figure,
.analysis-figure {
  margin-top: 48px;
}

.reward-grid {
  display: grid;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reward-grid > div {
  padding: 26px 30px;
}

.reward-grid > div + div {
  border-left: 1px solid var(--line);
}

.reward-kicker {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reward-grid h3 {
  font-size: 18px;
}

.reward-grid p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.section-note {
  max-width: 760px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.section-note strong {
  color: var(--ink);
}

/* ---------- Results ---------- */

.setup-note {
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.setup-note strong {
  color: var(--ink);
}

.table-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-block {
  min-width: 0;
}

.table-caption {
  min-height: 84px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-scroll {
  min-width: 0;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

tbody th {
  font-size: 13px;
  font-weight: 500;
}

tbody td {
  font-size: 13px;
}

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

tr.baseline-ours th,
tr.baseline-ours td {
  color: var(--muted);
  font-style: italic;
}

tr.ours {
  background: var(--green-soft);
}

tr.ours th,
tr.ours td {
  color: #17472f;
  font-weight: 700;
}

.result-callout {
  display: grid;
  margin-top: 34px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 4px;
  align-items: center;
  gap: 24px;
  grid-template-columns: 140px minmax(0, 1fr);
  background: var(--green-soft);
}

.result-callout p {
  margin-bottom: 0;
  font-size: 15px;
}

.result-callout-value {
  color: var(--green);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.table-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.compact-table {
  margin-top: 14px;
  margin-bottom: 14px;
}

.compact-table table {
  font-size: 13px;
}

.compact-table th,
.compact-table td {
  padding: 8px 10px;
}

/* ---------- Analysis ---------- */

.analysis-figure {
  margin-bottom: 42px;
}

.analysis-triptych {
  margin: 0;
}

.analysis-chart-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-chart {
  min-width: 0;
}

.analysis-chart-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.analysis-chart-label span {
  margin-right: 5px;
  color: var(--rust);
  font-weight: 800;
}

.analysis-chart .figure-button {
  display: grid;
  aspect-ratio: 2 / 1;
  place-items: center;
}

.analysis-chart .figure-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.analysis-triptych > figcaption {
  max-width: 1040px;
  margin-top: 18px;
}

.analysis-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-block {
  min-width: 0;
  padding: 24px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.analysis-label {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-block h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.analysis-block .table-caption {
  min-height: 0;
}

.block-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.review-evidence {
  margin-top: 44px;
}

.review-evidence-head {
  max-width: var(--page);
  margin: 0 auto 24px;
}

.review-evidence-head h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.review-evidence-head > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.review-table-block {
  padding: 24px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.review-table-block + .review-table-block {
  margin-top: 22px;
}

.review-table-block .table-caption {
  max-width: 940px;
  min-height: 0;
}

.detailed-table table {
  min-width: 1050px;
}

.teacher-table table {
  min-width: 900px;
}

.detailed-table th,
.detailed-table td {
  padding: 8px 10px;
  font-size: 12px;
}

.detailed-table thead tr:first-child th {
  border-bottom-color: var(--line);
}

.detailed-table thead tr:last-child th {
  border-bottom-color: var(--ink);
}

.detailed-table .metric-group {
  text-align: center;
}

.detailed-table .variant-header,
.detailed-table tbody th[scope="row"] {
  text-align: left;
}

.detailed-table .block-name {
  border-right: 1px solid var(--line);
  color: var(--rust);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.detailed-table .block-name span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.detailed-table tr.group-start > * {
  border-top: 1px solid var(--ink);
}

.review-table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.mobile-scroll-hint {
  display: none;
}

.deployment-video {
  margin: 48px auto 0;
}

.deployment-video figcaption {
  max-width: 620px;
  text-align: center;
}

.video-heading {
  margin: 56px 0 0;
  font-size: 22px;
  text-align: center;
}

.video-intro {
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
}

.video-grid {
  display: grid;
  max-width: 900px;
  margin: 28px auto 0;
  gap: 24px 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid .deployment-video {
  min-width: 0;
  margin: 0;
}

.video-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #101412;
  cursor: zoom-in;
}

.video-button video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 1380;
  pointer-events: none;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(16, 20, 18, 0.65);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
  padding-left: 4px;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, background-color 160ms ease;
}

.video-button:hover .play-mark,
.video-button:focus-visible .play-mark {
  background: rgba(16, 20, 18, 0.85);
  opacity: 1;
}

.video-grid .deployment-video figcaption {
  margin-top: 10px;
  font-size: 13px;
}

.failure-case .video-button {
  border-color: var(--rust);
}

.failure-case .fig-label {
  color: var(--rust);
}

.evidence-strip {
  margin-top: 42px;
}

.evidence-grid {
  display: grid;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-grid > div {
  min-width: 0;
  padding: 24px 22px;
}

.evidence-grid > div + div {
  border-left: 1px solid var(--line);
}

.evidence-grid dd {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.evidence-grid dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.evidence-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Qualitative ---------- */

.example-figure {
  max-width: 860px;
  margin: 0 auto 56px;
}

.real-world-grid {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.75fr);
}

.real-world-grid figure {
  min-width: 0;
}

.real-world-grid .figure-button {
  aspect-ratio: 1.98 / 1;
}

.real-world-grid figure:last-child .figure-button {
  aspect-ratio: 1.2 / 1;
}

.real-world-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

/* ---------- BibTeX ---------- */

.bibtex-block {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.bibtex-block pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
}

.bibtex-block code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.bibtex-copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.bibtex-copy.is-copied {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- Artifact ---------- */

.artifact-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.artifact-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 0.8fr 1.2fr;
}

.artifact-kicker {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.artifact-grid h2 {
  font-size: 26px;
}

.artifact-grid p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

.site-footer .page-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

.site-footer a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 70px 34px 34px;
  background: rgba(16, 22, 19, 0.94);
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  display: flex;
  width: min(96vw, 1500px);
  height: min(86vh, 980px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(100% - 52px);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.lightbox-content video {
  max-width: 100%;
  max-height: calc(100% - 52px);
  border-radius: 4px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-content video[hidden] {
  display: none;
}

.lightbox-content p {
  max-width: 980px;
  margin: 14px auto 0;
  color: #dbe4df;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #6d7b74;
  border-radius: 50%;
  background: #232d28;
  color: var(--white);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  place-items: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .masthead h1 {
    font-size: 33px;
  }

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

  .table-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-chart-grid {
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .analysis-chart .figure-button {
    aspect-ratio: auto;
  }

  .analysis-chart .figure-button img {
    height: auto;
  }

  .table-caption {
    min-height: 0;
  }

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

  .evidence-grid > div:nth-child(3) {
    border-left: 0;
  }

  .evidence-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .real-world-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  }

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

@media (max-width: 720px) {
  .page-width,
  .page-wide {
    width: calc(100% - 30px);
  }

  .site-nav {
    width: calc(100% - 24px);
    min-height: 52px;
    gap: 14px;
  }

  .site-mark span:last-child {
    display: none;
  }

  .nav-links {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-links a {
    padding: 15px 0 13px;
    font-size: 12px;
  }

  .nav-links a::after {
    bottom: 8px;
  }

  .masthead {
    padding-top: 40px;
  }

  .venue-line {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .masthead h1 {
    font-size: 26px;
  }

  .authors {
    font-size: 15px;
  }

  .affiliations {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .resource-link {
    min-height: 36px;
    padding: 5px 13px;
    font-size: 12px;
  }

  .teaser {
    margin-top: 30px;
  }

  .overview-video {
    margin-top: 30px;
  }

  .zoom-mark {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    opacity: 0.9;
  }

  .metric-strip {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    padding: 17px 12px;
  }

  .metric:nth-child(3) {
    border-left: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .metric dd {
    font-size: 24px;
  }

  .section {
    padding: 54px 0;
  }

  h2 {
    font-size: 26px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-summary {
    font-size: 15px;
  }

  .abstract-body {
    font-size: 16px;
    text-align: left;
  }

  .component-grid,
  .reward-grid,
  .evidence-grid,
  .real-world-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .component {
    padding: 20px 18px 18px;
  }

  .component-letter {
    margin-bottom: 14px;
  }

  .method-figure,
  .analysis-figure {
    margin-top: 36px;
  }

  .reward-grid > div {
    padding: 22px 20px;
  }

  .reward-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .setup-note {
    margin-bottom: 26px;
  }

  .result-callout {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .result-callout-value {
    font-size: 28px;
  }

  th,
  td {
    padding: 8px 10px;
  }

  .analysis-block {
    padding: 21px 18px;
  }

  .review-evidence {
    margin-top: 34px;
  }

  .review-evidence-head h3 {
    font-size: 21px;
  }

  .review-table-block {
    padding: 20px 18px 18px;
  }

  .mobile-scroll-hint {
    display: block;
    margin: -2px 0 8px;
    color: var(--rust);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .evidence-grid > div {
    padding: 20px 15px;
  }

  .evidence-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .example-figure {
    margin-bottom: 40px;
  }

  .real-world-grid .figure-button,
  .real-world-grid figure:last-child .figure-button {
    aspect-ratio: auto;
  }

  .video-grid {
    max-width: 420px;
    gap: 26px;
    grid-template-columns: 1fr;
  }

  .artifact-grid {
    gap: 22px;
  }

  .bibtex-block pre {
    padding: 18px 16px;
  }

  .site-footer .page-width {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lightbox {
    padding: 62px 12px 20px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .zoom-mark,
  .site-footer,
  .bibtex-copy,
  .lightbox {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .masthead,
  .section {
    padding: 28px 0;
  }

  .section-alt,
  .artifact-section,
  .setup-note {
    background: #ffffff;
  }

  .resource-link {
    border: 1px solid #888888;
    background: #ffffff;
    color: #000000;
  }

  .resource-link em {
    color: #555555;
  }
}
