@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --indigo: #4f46e5;
  --indigo-light: #eef2ff;
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #059669;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 68px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-700);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, video { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(14px);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-light);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-full);
  padding: 3px 8px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.nav-toggle {
  display: none;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
}

.hero {
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 68%);
  border-bottom: 1px solid var(--slate-200);
  padding: 56px 0 28px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo {
  width: min(560px, 100%);
  margin: 28px auto 8px;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  max-width: 17em;
  margin: 8px auto 0;
}
@media (max-width: 700px) {
  .hero h1 br { display: none; }
}
.authors {
  max-width: 860px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--slate-800);
}
.authors span { white-space: nowrap; }
.authors sup, .affiliations sup {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 1px;
}
.affiliations {
  max-width: 900px;
  margin: 8px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 13.5px;
  color: var(--slate-500);
}
.affiliations span { white-space: nowrap; }
.affiliations sup { margin-left: 0; margin-right: 2px; }
.lede {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--slate-600);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-700);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; background: var(--slate-100); color: var(--dark); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-hover); color: white; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}
.stat {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
}
.stat:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); }
.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 6px; color: var(--slate-600); font-size: 13px; font-weight: 600; }
.stat small { display: block; color: var(--slate-400); font-size: 12px; line-height: 1.4; margin-top: 2px; }

.reel { padding: 8px 0 64px; background: linear-gradient(#f8fafc, #ffffff); }
.stage {
  position: relative;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stage video { width: 100%; display: block; background: #0f172a; max-height: 78vh; }
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  padding: 0;
}
.play-btn i {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.92);
  border: 3px solid white;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-style: normal;
}
.play-btn i svg { margin-left: 3px; }
.play-btn:hover i { background: var(--primary-hover); }
.play-btn b {
  font-size: 14px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.72);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.play-btn[hidden] { display: none; }
.reel-caption, .switch-caption {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--slate-600);
  font-size: 15px;
}

.section { padding: 76px 0; }
.section.tint { background: white; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); letter-spacing: -0.03em; font-weight: 600; }
.section-head p { margin-top: 12px; color: var(--slate-600); }

.two, .three, .split { display: grid; gap: 18px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 1.35fr 0.8fr; align-items: center; gap: 28px; margin-top: 22px; }
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.section.tint .card { background: var(--slate-50); }
.card h3 { font-size: 18px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.card p { font-size: 14.5px; color: var(--slate-600); }
.card .index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.card.idea { border-top: 3px solid var(--primary); }
.card.problem { border-top: 3px solid var(--slate-200); }

.figure-btn {
  display: block;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: white;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.figure-btn img { width: 100%; height: auto; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}
figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
}
.paper-figure { margin-top: 28px; }
.sub-panel {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.sub-panel h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.sub-panel > p { font-size: 14px; color: var(--slate-600); margin-bottom: 14px; }
.sub-panel .table-scroll { margin-top: auto; max-height: none; }
.ablation-figs { margin-top: 20px; align-items: start; }
.ablation-figs .figure-btn { padding: 14px; }

.dims { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.dims article {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-sm);
}
.section.tint .dims article { background: var(--slate-50); }
.dims h3 { font-size: 15px; margin: 4px 0 6px; }
.dims p { font-size: 13px; color: var(--slate-600); }
.task-names { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.steps article {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--slate-200);
}
.section:not(.tint) .steps article { background: white; }
.steps strong { display: block; color: var(--dark); font-size: 15px; margin-bottom: 4px; }
.steps p { font-size: 13px; color: var(--slate-600); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 28px 0 8px;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}
.metric-row div { padding: 16px 8px; }
.metric-row div + div { border-left: 1px solid var(--slate-200); }
.metric-row b { display: block; color: var(--primary); font-size: 26px; letter-spacing: -0.03em; }
.metric-row span { font-size: 12px; color: var(--slate-500); }

.table-scroll {
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  max-height: 680px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--slate-100); white-space: nowrap; }
th { font-weight: 600; color: var(--slate-600); background: var(--slate-50); }
thead th { position: sticky; top: 0; z-index: 2; }
.leaderboard thead tr:nth-child(2) th { top: 41px; }
.leaderboard th:first-child,
.leaderboard td:first-child,
.compare th:first-child,
.compare td:first-child,
.native th:first-child,
.native td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
}
thead th:first-child { z-index: 3; background: var(--slate-50); }
.group-head { text-align: center !important; color: var(--slate-500); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--slate-200); }
.sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1.2;
}
.sort-btn .submode {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate-400);
}
.sort-btn[aria-sort="descending"] .arrow::after,
.sort-btn[aria-sort="ascending"] .arrow::after { content: ""; }
.model-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--dark); }
.rank { width: 1.6em; color: var(--slate-400); font-weight: 600; font-size: 12px; }
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  background: var(--slate-100);
  color: var(--slate-500);
}
.pill.closed { background: #fef3c7; color: #92400e; }
.pill.open { background: var(--indigo-light); color: #4338ca; }
.pill.ours { background: var(--primary); color: white; }
tr.ours td { background: var(--primary-light); }
tr.ours td:first-child { background: #dbeafe; }
tr.ours .model-cell { color: #1e3a8a; }
td.best { font-weight: 700; color: var(--dark); }
td.second { text-decoration: underline; text-underline-offset: 3px; }
td.missing { color: var(--slate-400); }
.table-notes { margin-top: 12px; color: var(--slate-500); font-size: 12.5px; line-height: 1.6; }
.table-notes strong { color: var(--slate-700); }

.controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn, .search input {
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
}
.filter-btn[aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); }
.search { position: relative; }
.search input { padding-left: 34px; min-width: 240px; font-weight: 500; color: var(--dark); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.empty-row { text-align: center !important; color: var(--slate-500); padding: 28px !important; }

.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 8px; }
.findings article {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
}
.findings h3 { font-size: 15px; margin-bottom: 6px; }
.findings p { font-size: 13.5px; color: var(--slate-600); }

.mark { font-weight: 700; }
.mark.yes { color: var(--green); }
.mark.no { color: var(--slate-300); font-weight: 500; }
.compare td:first-child, .compare th:first-child { min-width: 180px; }
.venue { display: block; font-weight: 500; color: var(--slate-400); font-size: 11px; }
tr.highlight td { background: var(--primary-light); font-weight: 600; color: var(--dark); }
tr.highlight td:first-child { background: #dbeafe; }

.switcher { margin-top: 8px; }
.switcher + .switcher, .block-title { margin-top: 48px; }
.block-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.block-title + p { color: var(--slate-600); margin-bottom: 16px; max-width: 760px; }
.block-title + p.bench-note { max-width: 920px; }
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tabs button {
  text-align: left;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 14px;
  padding: 12px 14px 13px;
  color: var(--slate-600);
  border-bottom: 3px solid var(--slate-200);
}
.tabs button[aria-selected="true"] {
  border-color: var(--primary-border);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
  color: var(--dark);
}
.tabs .kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.tabs strong { display: block; font-size: 15px; margin-top: 2px; }
.tabs small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--slate-500); font-weight: 400; }
.media-error {
  display: none;
  margin-top: 8px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.media-error.show { display: block; }

.footer {
  text-align: center;
  padding: 36px 16px 42px;
  color: var(--slate-500);
  font-size: 13px;
}
.footer strong { display: block; color: var(--dark); font-size: 16px; letter-spacing: -0.03em; }
.footer p { margin: 6px 0 0; }

dialog {
  border: 0;
  padding: 36px 16px 16px;
  border-radius: 14px;
  max-width: min(1400px, 96vw);
  background: white;
}
dialog::backdrop { background: rgba(15, 23, 42, 0.72); }
dialog img { max-height: 82vh; margin: 0 auto; object-fit: contain; }
.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--slate-600);
  padding: 4px 8px;
}

@media (max-width: 980px) {
  .stats, .three, .findings, .steps, .dims, .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row div:nth-child(odd) { border-left: 0; }
  .metric-row div:nth-child(n + 3) { border-top: 1px solid var(--slate-200); }
  .split, .two { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 8px 12px 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .site-header { position: sticky; }
  .nav { position: static; }
  .site-header { height: var(--nav-h); }
}
@media (max-width: 640px) {
  .three, .findings, .steps, .metric-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .metric-row div + div { border-left: 0; border-top: 1px solid var(--slate-200); }
  .container, .container-wide { width: min(100% - 28px, var(--content)); }
  .hero { padding-top: 36px; }
  .section { padding: 56px 0; }
  .search input { min-width: 0; width: 100%; }
}

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

/* Current editorial shell: hero, navigation, and Citation */
/* ==========================================================================
   LookAnything Project Page — Editorial Academic Styling
   Harmonized with AIRIS Editorial System & LookAnything Brand Palette
   ========================================================================== */

@font-face {
  font-family: InterLocal;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: InterLocal;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: InterLocal;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: InterLocal;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  /* Core Surfaces & Ink */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --ink-strong: #0f172a;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  /* LookAnything Brand Accents (Harmonized with Red/Navy Logo & Paper) */
  --brand-navy: #162b4d;
  --brand-blue: #1d5fa7;
  --brand-crimson: #c8333b;
  --brand-amber: #c25e22;

  /* 5 Capability Dimension Palette (Matching Fig. 2 Taxonomy Panels) */
  --dim-target-ink: #9f1239;
  --dim-target-accent: #e11d48;
  --dim-target-bg: #fff1f2;
  --dim-target-border: #fecdd3;

  --dim-source-ink: #1e40af;
  --dim-source-accent: #2563eb;
  --dim-source-bg: #eff6ff;
  --dim-source-border: #bfdbfe;

  --dim-spatial-ink: #5b21b6;
  --dim-spatial-accent: #7c3aed;
  --dim-spatial-bg: #f5f3ff;
  --dim-spatial-border: #ddd6fe;

  --dim-social-ink: #9a3412;
  --dim-social-accent: #d97706;
  --dim-social-bg: #fffbeb;
  --dim-social-border: #fde68a;

  --dim-answer-ink: #166534;
  --dim-answer-accent: #16a34a;
  --dim-answer-bg: #ecfdf5;
  --dim-answer-border: #bbf7d0;

  /* Model Family Colors (Okabe-Ito colorblind-safe) */
  --cat-ours: #c8333b;
  --cat-closed: #0072b2;
  --cat-general: #009e73;
  --cat-embodied: #d55e00;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', InterLocal, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Layout & Elevation */
  --max-width: 1180px;
  --nav-h: 62px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-body);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 90% 540px at 50% -130px, rgba(29, 95, 167, 0.095), transparent 70%),
    radial-gradient(ellipse 55% 420px at 88% 70px, rgba(200, 51, 59, 0.055), transparent 65%);
  line-height: 1.68;
}

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

button, video, input, select {
  font-family: inherit;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-navy);
}

:focus-visible {
  outline: 3px solid rgba(29, 95, 167, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 200;
  background: var(--ink-strong);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Sticky Top Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.nav-brand:hover {
  color: var(--ink-strong);
}

.nav-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 58%, var(--brand-crimson) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(22, 43, 77, 0.2);
}

.nav-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eff8;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 11px;
  border-radius: 8px;
  transition: all 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-strong);
  background: rgba(15, 23, 42, 0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.81rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: var(--ink-strong) !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  border-radius: 9px;
  padding: 6px 12px;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Header
   ========================================================================== */

.hero {
  padding: 50px 0 36px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-crimson);
  box-shadow: 0 0 0 3px rgba(200, 51, 59, 0.16);
}

.hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 18px;
}

.hero-logo {
  width: min(320px, 74vw);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(22, 43, 77, 0.1));
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.hero-title .title-line {
  display: block;
}

@media (max-width: 760px) {
  .hero-title .title-line {
    display: inline;
  }
}

.hero-title .acronym {
  background: linear-gradient(125deg, #c8333b 0%, #1d5fa7 55%, #162b4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: 1.06rem;
  color: var(--ink-muted);
  line-height: 1.62;
}

.hero-subtitle strong {
  color: var(--ink-strong);
  font-weight: 650;
}

.authors-block {
  max-width: 920px;
  margin: 0 auto 24px;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.author-item {
  white-space: nowrap;
}

.author-item sup,
.affiliation-line sup {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-left: 1px;
}

.author-link {
  color: var(--ink-strong);
  border-bottom: 1.5px dashed rgba(29, 95, 167, 0.42);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.author-link:hover {
  color: var(--brand-blue);
  border-bottom-style: solid;
  border-bottom-color: var(--brand-blue);
}

.affiliation-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.affiliation-line span {
  white-space: nowrap;
}

.affiliation-line sup {
  margin-left: 0;
  margin-right: 2px;
}

.author-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.author-note sup {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-right: 1px;
}

/* Primary Resource & Action Buttons (arXiv, Code, Dataset, Video, Cite) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-strong);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-primary {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.btn-muted {
  color: var(--ink-body);
  background: #f8fafc;
  cursor: default;
}

.btn-muted:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
  border-color: var(--border-strong);
  color: var(--ink-body);
}

.pill-soon {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

/* Key Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
  text-align: left;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.s-target::before { background: var(--dim-target-accent); }
.stat-card.s-source::before { background: var(--dim-source-accent); }
.stat-card.s-model::before { background: var(--dim-spatial-accent); }
.stat-card.s-bench::before { background: var(--dim-answer-accent); }

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink-strong);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 3px;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.44;
}

/* Hero Demo Video Showcase Card */
.demo-showcase {
  margin-top: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-title {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
}

.stage {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow-md);
}

.stage video {
  width: 100%;
  display: block;
  background: #0f172a;
  max-height: 74vh;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.play-btn i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 95, 167, 0.92);
  border: 3px solid #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.36);
  font-style: normal;
  transition: transform 0.18s ease, background 0.18s ease;
}

.play-btn i svg {
  margin-left: 3px;
}

.play-btn:hover i {
  background: var(--brand-navy);
  transform: scale(1.05);
}

.play-btn[hidden] {
  display: none;
}

.media-error {
  display: none;
  margin: 8px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.media-error.show {
  display: block;
}

.reel-caption {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.56;
}

.reel-caption strong {
  color: var(--ink-strong);
}

/* ==========================================================================
   Generic Editorial Sections & Figure Frames
   ========================================================================== */

.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.7) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
}

.section-lead {
  margin: 0;
  max-width: 850px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.fig-frame {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.fig-img-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  position: static;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  text-align: left;
  color: inherit;
}

.fig-img-btn img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform 0.22s ease;
}

.fig-img-btn:hover img {
  transform: scale(1.006);
}

.zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-body);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 9px;
  box-shadow: var(--shadow-xs);
}

.fig-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.58;
  text-align: left;
}

.fig-caption strong {
  color: var(--ink-strong);
}

.fig-caption code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-strong);
}

/* ==========================================================================
   Section 01 · TL;DR Banner, Abstract & Contributions
   ========================================================================== */

.tldr-banner {
  background: linear-gradient(135deg, #0f172a 0%, #172e54 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
}

.tldr-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fbd38d;
  flex-shrink: 0;
  margin-top: 2px;
}

.tldr-banner p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.64;
  color: #e2e8f0;
}

.tldr-banner strong {
  color: #ffffff;
}

.abstract-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.abstract-card p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.78;
  color: var(--ink-body);
  text-align: justify;
}

.abstract-card strong {
  color: var(--ink-strong);
}

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

.contrib-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.contrib-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.contrib-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.contrib-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

/* ==========================================================================
   Section 02 · HoliGaze Interactive Taxonomy, Engine & Comparison Matrix
   ========================================================================== */

.ontology-panel {
  margin-top: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ontology-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.ontology-top strong {
  font-size: 1.02rem;
  color: var(--ink-strong);
}

.ontology-top span {
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-pill:hover {
  color: var(--ink-strong);
  border-color: var(--border-strong);
}

.tab-pill.active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #ffffff;
}

.tab-pill[data-dim="target"].active { background: var(--dim-target-accent); border-color: var(--dim-target-accent); }
.tab-pill[data-dim="source"].active { background: var(--dim-source-accent); border-color: var(--dim-source-accent); }
.tab-pill[data-dim="spatial"].active { background: var(--dim-spatial-accent); border-color: var(--dim-spatial-accent); }
.tab-pill[data-dim="social"].active { background: var(--dim-social-accent); border-color: var(--dim-social-accent); }
.tab-pill[data-dim="answer"].active { background: var(--dim-answer-accent); border-color: var(--dim-answer-accent); }

.ontology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cap-item {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fcfdff;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cap-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cap-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.cap-item.st-target .cap-id { background: var(--dim-target-bg); color: var(--dim-target-ink); border: 1px solid var(--dim-target-border); }
.cap-item.st-source .cap-id { background: var(--dim-source-bg); color: var(--dim-source-ink); border: 1px solid var(--dim-source-border); }
.cap-item.st-spatial .cap-id { background: var(--dim-spatial-bg); color: var(--dim-spatial-ink); border: 1px solid var(--dim-spatial-border); }
.cap-item.st-social .cap-id { background: var(--dim-social-bg); color: var(--dim-social-ink); border: 1px solid var(--dim-social-border); }
.cap-item.st-answer .cap-id { background: var(--dim-answer-bg); color: var(--dim-answer-ink); border: 1px solid var(--dim-answer-border); }

.cap-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.cap-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.cap-desc {
  font-size: 0.81rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* 4-Stage Pipeline Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.step-card h4 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.step-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.52;
}

/* Dataset Statistics & Comparison Split */
.comp-split {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 20px;
  margin-top: 22px;
  align-items: stretch;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.quota-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ctx-row {
  display: grid;
  grid-template-columns: 118px 1fr 64px;
  align-items: center;
  gap: 10px;
  font-size: 0.81rem;
}

.ctx-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--ink-strong);
  white-space: nowrap;
}

.ctx-bar-wrap {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.ctx-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d5fa7, #4f86c6);
}

.ctx-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-align: right;
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.format-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--ink-body);
}

.format-pill b {
  color: var(--ink-strong);
  font-family: var(--font-mono);
}

/* Comparison Table (Table 1) */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.comp-table th,
.comp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: center;
  white-space: nowrap;
}

.comp-table th:first-child,
.comp-table td:first-child {
  text-align: left;
  padding-left: 14px;
  font-weight: 650;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 2;
}

.comp-table thead tr:first-child th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.comp-table thead tr:nth-child(2) th {
  font-size: 0.73rem;
  font-weight: 650;
  color: var(--ink-body);
  background: #f8fafc;
  border-bottom: 1.5px solid var(--border-light);
}

.th-prof { background: #fef9e7 !important; color: #7d5a10; }
.th-ref  { background: var(--dim-source-bg) !important; color: var(--dim-source-ink); }
.th-out  { background: var(--dim-target-bg) !important; color: var(--dim-target-ink); }
.th-qa   { background: var(--dim-answer-bg) !important; color: var(--dim-answer-ink); }

.comp-table tbody tr {
  background: #ffffff;
}

.comp-table tbody tr:hover {
  background: #f8fafc;
}

.comp-table tbody tr.ours-row {
  background: #f3f9f1;
  font-weight: 750;
}

.comp-table tbody tr.ours-row td {
  border-top: 1.5px solid #86efac;
  border-bottom: none;
  color: var(--ink-strong);
}

.venue-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}

.ck-yes { color: #16a34a; font-weight: 800; }
.ck-no { color: #cbd5e1; }

/* ==========================================================================
   Section 03 · LookAnything Model Formulation & Architecture
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.metric-box h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-blue);
}

.formula-chip {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 10px 0;
  color: var(--ink-strong);
  overflow-x: auto;
}

.metric-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.56;
}

.mech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.mech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.mech-card.highlight-border {
  border-top: 3px solid var(--brand-blue);
}

.mech-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.mech-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.mech-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.56;
}

/* ==========================================================================
   Section 04 · Interactive Leaderboard, Multi-Model Comparator & Insights
   ========================================================================== */

.lb-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.lb-row-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lb-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink-strong);
}

.filter-chip.active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #ffffff;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lb-right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lb-search {
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-strong);
  min-width: 230px;
  outline: none;
}

.lb-search:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 167, 0.12);
}

.lb-view-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.lb-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.view-tab {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.14s ease;
}

.view-tab:hover {
  background: #f1f5f9;
  color: var(--ink-strong);
}

.view-tab.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-blue);
}

.lb-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.lb-table-wrap {
  overflow: auto;
  max-height: 560px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.81rem;
  min-width: 880px;
}

.lb-table th,
.lb-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lb-table th.col-rank,
.lb-table td.col-rank {
  text-align: center;
  width: 40px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.lb-table th.col-model,
.lb-table td.col-model {
  text-align: left;
  min-width: 215px;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 2;
  border-right: 1px solid #f1f5f9;
}

.lb-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fafc;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.lb-table thead tr:nth-child(2) th {
  position: sticky;
  top: 33px;
  z-index: 3;
  background: #f8fafc;
  color: var(--ink-strong);
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
  border-bottom: 1.5px solid var(--border-light);
  transition: background 0.14s ease;
}

.lb-table thead tr:first-child th.col-rank,
.lb-table thead tr:first-child th.col-model {
  z-index: 6;
  border-bottom: 1.5px solid var(--border-light);
}

.lb-table thead tr:first-child th.col-model {
  text-align: left;
}

.lb-table thead tr:nth-child(2) th:hover {
  background: #eef2f6;
}

.lb-table thead tr:nth-child(2) th.sorted {
  background: #e8f0fe;
  color: var(--brand-blue);
}

.th-submode {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-faint);
  line-height: 1.1;
}

.lb-table tbody tr {
  background: #ffffff;
  transition: background 0.12s ease;
}

.lb-table tbody tr:hover {
  background: #f8fafc;
}

.lb-table tbody tr.ours-row {
  background: #f0fdf4;
}

.lb-table tbody tr.ours-row:hover {
  background: #dcfce7;
}

.model-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--ink-strong);
}

.cat-badge-mini {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.cb-ours { background: rgba(200, 51, 59, 0.14); color: #9f1239; }
.cb-closed { background: rgba(0, 114, 178, 0.12); color: #005b8f; }
.cb-general { background: rgba(0, 158, 115, 0.12); color: #007856; }
.cb-embodied { background: rgba(213, 94, 0, 0.12); color: #b04c00; }

.val-cell {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-body);
}

.val-best {
  font-weight: 800;
  color: #0f172a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 5px;
}

.val-second {
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.val-missing {
  color: var(--ink-faint);
}

.overall-bar-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.mini-bar {
  width: 44px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-blue);
}

.ours-row .mini-bar-fill {
  background: #16a34a;
}

.table-notes {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

.table-notes strong {
  color: var(--ink-strong);
}

/* Interactive Multi-Model Capability Profile Comparator */
.comparator-card {
  margin-top: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.comp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.comp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comp-select {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue);
  background: #eff6ff;
  color: var(--brand-blue);
  cursor: pointer;
  outline: none;
}

.comp-select:hover {
  background: #dbeafe;
}

.comp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--border-strong);
  background: #eef2f6;
  color: var(--ink-strong);
}

.comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.comp-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  font-size: 0.79rem;
  font-weight: 650;
  color: var(--ink-strong);
}

.comp-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comp-chip-remove {
  border: none;
  background: rgba(15, 23, 42, 0.07);
  color: var(--ink-muted);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.14s ease;
}

.comp-chip-remove:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
}

.comp-chip-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.profile-chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.svg-chart-box {
  width: 100%;
  background: #fcfdff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
}

.comp-takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.comp-stat-row {
  padding: 11px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  font-size: 0.81rem;
}

/* Empirical Insights Cards */
.insights-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 22px;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.insight-metric-highlight {
  font-family: var(--font-serif);
  font-size: 1.68rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.12;
  margin-bottom: 6px;
}

.insight-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.insight-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.56;
}

.insight-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-strong);
}

.sub-heading {
  margin: 38px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.sub-lead {
  margin: 0 0 14px;
  max-width: 860px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Native 5-Benchmark Table */
.native-table th,
.native-table td {
  padding: 8px 9px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
}

.native-table th:first-child,
.native-table td:first-child {
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

/* ==========================================================================
   Section 05 · OOD Generalization & Architectural Ablations
   ========================================================================== */

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.sub-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sub-panel h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.sub-panel > p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.sub-panel .table-scroll {
  margin-top: auto;
}

.ablation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

/* ==========================================================================
   Section 06 · Real-World Unitree G1 Video Switchers
   ========================================================================== */

.switcher-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
}

.switcher-card + .switcher-card {
  margin-top: 22px;
}

.switcher-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.switcher-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--ink-strong);
}

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

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tabs button {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.18s ease;
}

.tabs button:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.tabs button[aria-selected="true"] {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 6px 18px rgba(29, 95, 167, 0.11);
}

.tabs .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.tabs strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--ink-strong);
}

.tabs small {
  display: block;
  margin-top: 3px;
  font-size: 0.77rem;
  line-height: 1.44;
  color: var(--ink-muted);
}

.switch-caption {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section 07 · BibTeX Citation, Footer & Lightbox
   ========================================================================== */

.bibtex-box {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.68;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.bibtex-box pre {
  margin: 0;
  font-family: inherit;
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
  background: var(--bg-surface);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Full-Resolution Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 94vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-cap {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-body);
  max-width: 880px;
  text-align: center;
  line-height: 1.52;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--ink-strong);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1040px) {
  .stats-ribbon,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contrib-grid,
  .insights-cards,
  .comp-split,
  .profile-chart-grid,
  .dual-grid,
  .ablation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 18px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
    justify-content: center;
    margin-top: 4px;
  }
  .metrics-grid,
  .mech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-ribbon,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 16px;
  }
  .hero {
    padding-top: 34px;
  }
  .section {
    padding: 44px 0;
  }
  .abstract-card {
    padding: 20px 18px;
  }
  .tldr-banner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
  }
  .lb-search {
    min-width: 0;
    width: 100%;
  }
}

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

/* ==========================================================================
   Middle Content: anonymous1541paper structure + AIRIS typography
   ========================================================================== */

.section-head h2,
.block-title,
.attention-explainer h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.section-head > p:last-child {
  font-family: var(--font-sans);
  line-height: 1.68;
}

.eyebrow,
.card .index,
.task-names,
.group-head,
.venue,
.tabs .kicker {
  font-family: var(--font-mono);
}

.eyebrow {
  letter-spacing: 0.1em;
}

.figure-btn {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

figcaption {
  font-family: var(--font-sans);
}

.metric-row b {
  font-family: var(--font-serif);
  font-weight: 700;
}

.leaderboard td:not(:first-child),
.native td:not(:first-child),
.compare td:not(:first-child) {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.attention-explainer {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  margin-top: 20px;
}

.attention-explainer > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px;
}

.attention-explainer h3 {
  margin: 5px 0 8px;
  font-size: 1.45rem;
  color: var(--ink-strong);
}

.attention-explainer > div > p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .attention-explainer {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Figure panels, dataset stats, and contained tables
   Image and caption share one panel. The inner wrap gives <button> a
   definite height in Safari, where a replaced child otherwise collapses
   the button and lets the caption paint over the figure.
   ========================================================================== */

.fig-frame {
  margin: 28px 0 0;
}

.section-head + .fig-frame {
  margin-top: 0;
}

.fig-img-wrap {
  display: block;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  line-height: 0;
}

.fig-img-wrap img,
.fig-img-btn img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.fig-frame .fig-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
  text-align: left;
  color: var(--ink-muted);
  font-size: 0.87rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

.zoom-badge {
  line-height: 1.4;
  pointer-events: none;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  text-align: center;
  overflow: hidden;
}

.metric-row div {
  padding: 16px 12px;
  min-width: 0;
}

.metric-row b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-strong);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.metric-row span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-muted);
}

.table-scroll,
.compare-scroll {
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-scroll {
  margin-top: 22px;
  max-height: none;
}

.compare {
  width: max-content;
  min-width: 100%;
}

.leaderboard,
.native {
  width: max-content;
  min-width: 100%;
}

@media (max-width: 860px) {
  .nav-inner {
    padding: 8px 14px;
  }
  .nav-brand {
    min-width: 0;
  }
  .nav-brand-tag {
    display: none;
  }
  .author-item,
  .affiliation-line span {
    white-space: normal;
  }
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .metric-row div:nth-child(odd) {
    border-left: 0;
  }
  .metric-row div:nth-child(n + 3) {
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 360px) {
  .metric-row {
    grid-template-columns: 1fr;
  }
  .metric-row div + div {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }
  .fig-frame {
    padding: 12px;
  }
}
