:root {
  --brand-sky: #55afea;
  --brand-sky-strong: #3f9ee7;
  --brand-navy: #081a3f;
  --bg: #f7fbff;
  --paper: #ffffff;
  --ink: var(--brand-navy);
  --muted: #5d6e86;
  --line: #d9e8f7;
  --teal: var(--brand-sky);
  --blue: var(--brand-navy);
  --coral: #2d84d7;
  --gold: #6f93c4;
  --soft-teal: #eaf6ff;
  --soft-blue: #e8f1ff;
  --soft-coral: #edf7ff;
  --soft-gold: #f1f7ff;
  --danger: #b7445f;
  --danger-bg: #fdebed;
  --shadow: 0 18px 44px rgba(8, 26, 63, 0.08);
  --page-max: 1560px;
  --page-gutter: max(clamp(18px, 4vw, 56px), calc((100% - var(--page-max)) / 2));
  --leaderboard-head-row: 43px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(245, 250, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  padding: 12px var(--page-gutter);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  max-width: none;
  width: auto;
}

.brand-divider {
  background: #aeb8c4;
  display: block;
  height: 26px;
  width: 1px;
}

.brand-project {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.brand-sky {
  color: var(--brand-sky);
}

.brand-navy {
  color: var(--brand-navy);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  gap: clamp(18px, 2.8vw, 30px);
  justify-items: center;
  padding: clamp(36px, 5.4vw, 68px) var(--page-gutter) clamp(42px, 5.6vw, 70px);
  position: relative;
  text-align: center;
}

.hero-copy {
  align-self: center;
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(48px, 7.5vw, 92px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 auto;
  max-width: 980px;
}

h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.hero-subtitle {
  color: #33445f;
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 740;
  line-height: 1.22;
  margin: 12px auto 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.button-icon {
  align-items: center;
  background: #e9f5ff;
  border-radius: 5px;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  margin-right: 8px;
  width: 22px;
}

.button.primary {
  background: var(--brand-sky);
  border-color: var(--brand-sky);
  color: #fff;
}

.button.primary .button-icon {
  background: rgba(255, 255, 255, 0.18);
}

.hero-media {
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.hero-media img {
  height: auto;
  margin: 0;
  width: 100%;
}

/* Video inserted between hero copy and teaser image */
.hero-video {
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
  display: block;
}
.hero-video video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.hero-media img,
.paper-figure img,
.figure-card img {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.stats-band {
  padding: 0;
  width: 100%;
}

.hero-stats {
  margin: clamp(-16px, -1.2vw, -8px) auto clamp(-44px, -3.4vw, -28px);
  max-width: min(880px, 100%);
  position: relative;
  z-index: 4;
}

.stats-grid {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(85, 175, 234, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(8, 26, 63, 0.12), 0 8px 20px rgba(85, 175, 234, 0.10);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 880px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.stat {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(85, 175, 234, 0.22);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 18px 14px 16px;
  text-align: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: var(--brand-sky-strong);
  display: block;
  font-size: 42px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.95;
}

.stat b {
  color: var(--brand-navy);
  display: block;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.09em;
  line-height: 1.2;
  margin-top: 9px;
  text-transform: uppercase;
}

.stat span {
  display: none;
}

.section {
  padding: clamp(52px, 7vw, 86px) var(--page-gutter);
  scroll-margin-top: 56px;
}

.hero + .section {
  padding-top: clamp(72px, 6vw, 96px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 850px;
}

.section-heading p:not(.eyebrow),
.split-section > div > p,
.ttt-panel p,
.finding-grid p,
.density-grid p {
  color: var(--muted);
  margin: 0;
}

.density-grid,
.finding-grid,
.figure-grid {
  display: grid;
  gap: 18px;
}

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

.density-grid article,
.finding-grid article,
.figure-card,
.ttt-panel,
.top-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.density-grid article {
  overflow: hidden;
}

.density-grid article h3,
.density-grid article p {
  padding-left: 16px;
  padding-right: 16px;
}

.density-grid article h3 {
  margin-top: 14px;
}

.density-grid article p {
  padding-bottom: 16px;
}

.results-section {
  background: #edf6ff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.detail-results {
  margin-top: 56px;
}

.detail-results-heading {
  margin-bottom: 18px;
  max-width: min(100%, 980px);
}

.detail-results-heading h2 {
  overflow-wrap: normal;
  white-space: nowrap;
}

.detail-results-heading p {
  max-width: 720px;
}

.detail-results-controls {
  grid-template-columns: minmax(240px, 320px);
  max-width: 360px;
}

.detail-results-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}

.detail-results-shell {
  margin-top: 18px;
}

#datasetResultsTable {
  min-width: 1280px;
}

#datasetResultsTable th[rowspan] {
  font-size: 14px;
  vertical-align: middle;
}

#datasetResultsTable th.detail-group {
  background: var(--soft-teal);
  color: var(--brand-navy);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

#datasetResultsTable th.detail-metric {
  font-size: 13px;
  text-align: right;
  text-transform: none;
}

#datasetResultsTable th.detail-metric span {
  color: var(--muted);
  font-weight: 700;
  margin-left: 2px;
}

#datasetResultsTable .sticky-col {
  background: var(--paper);
  box-shadow: 14px 0 18px -18px rgba(8, 26, 63, 0.42);
  left: 0;
  max-width: 260px;
  min-width: 188px;
  overflow: hidden;
  position: sticky;
  text-align: left;
  text-overflow: ellipsis;
  z-index: 1;
}

#datasetResultsTable thead .sticky-col {
  background: #f4f9ff;
  z-index: 2;
}

#datasetResultsTable tbody tr.ours-row .sticky-col {
  background: var(--soft-gold);
}

#datasetResultsTable .detail-cat td {
  background: #f4f9ff;
  color: #33445f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-align: left;
  text-transform: uppercase;
}

#datasetResultsTable td.bold {
  font-weight: 900;
}

#datasetResultsTable td.muted {
  color: var(--line);
}

#datasetResultsTable td.rank-1 {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

#datasetResultsTable td.rank-2 {
  background: rgba(85, 175, 234, 0.34);
  color: #0d3a73;
  font-weight: 850;
}

#datasetResultsTable td.rank-3 {
  background: rgba(85, 175, 234, 0.16);
  color: #0d3a73;
  font-weight: 800;
}

#datasetResultsTable tbody tr:hover td:not(.rank-1):not(.rank-2):not(.rank-3):not(.detail-cat) {
  background: #fafdff;
}

.tag-leaderboard {
  margin-top: 56px;
}

.tag-leaderboard-controls {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
}

.tag-leaderboard-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 14px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  margin-top: 2px;
  max-width: 920px;
  text-transform: uppercase;
}

.tag-leaderboard-shell {
  margin-top: 18px;
}

#tagLeaderboardTable {
  min-width: 980px;
}

#tagLeaderboardTable .sticky-col {
  background: var(--paper);
  box-shadow: 14px 0 18px -18px rgba(8, 26, 63, 0.42);
  left: 0;
  max-width: 260px;
  min-width: 188px;
  overflow: hidden;
  position: sticky;
  text-align: left;
  text-overflow: ellipsis;
  z-index: 1;
}

#tagLeaderboardTable thead .sticky-col {
  background: #f4f9ff;
  z-index: 2;
}

#tagLeaderboardTable tbody tr.ours-row .sticky-col {
  background: var(--soft-gold);
}

#tagLeaderboardTable td.rank-1 {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

#tagLeaderboardTable td.rank-2 {
  background: rgba(85, 175, 234, 0.34);
  color: #0d3a73;
  font-weight: 850;
}

#tagLeaderboardTable td.rank-3 {
  background: rgba(85, 175, 234, 0.16);
  color: #0d3a73;
  font-weight: 800;
}

#tagLeaderboardTable td.muted {
  color: var(--line);
}

#tagLeaderboardTable td.scene-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

#tagLeaderboardTable tbody tr:hover td:not(.rank-1):not(.rank-2):not(.rank-3) {
  background: #fafdff;
}

.controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  margin-bottom: 18px;
  max-width: 920px;
}

label span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

input,
select {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.top-models {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.top-card {
  padding: 18px;
}

.top-card .rank {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.top-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.16;
  margin: 4px 0 10px;
}

.bar {
  background: var(--soft-blue);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bar span {
  background: linear-gradient(90deg, var(--brand-sky), var(--brand-navy));
  display: block;
  height: 100%;
}

.table-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 14px 34px rgba(8, 26, 63, 0.07);
}

.leaderboard-shell {
  max-height: min(90vh, 1440px);
  overscroll-behavior: contain;
  position: relative;
  scrollbar-gutter: stable;
}

table {
  border-collapse: collapse;
  min-width: 1280px;
  width: 100%;
}

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

th {
  background: #f4f9ff;
  color: #33445f;
  font-size: 13px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

.metric-arrow {
  color: var(--muted);
  font-weight: 700;
  margin-left: 2px;
}

#leaderboardTable {
  min-width: 1480px;
}

#leaderboardTable thead th {
  z-index: 4;
}

#leaderboardTable thead tr:first-child th {
  top: 0;
}

#leaderboardTable thead tr:nth-child(2) th {
  box-shadow: 0 1px 0 var(--line), 0 10px 18px rgba(8, 26, 63, 0.08);
  top: var(--leaderboard-head-row);
  z-index: 3;
}

#leaderboardTable th[rowspan] {
  font-size: 14px;
  top: 0;
  vertical-align: middle;
  z-index: 5;
}

#leaderboardTable th.leaderboard-group {
  background: var(--soft-teal);
  color: var(--brand-navy);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

#leaderboardTable th.leaderboard-metric {
  font-size: 13px;
  text-align: right;
  text-transform: none;
}

#leaderboardTable .sticky-col {
  background: var(--paper);
  box-shadow: 14px 0 18px -18px rgba(8, 26, 63, 0.42);
  left: 0;
  max-width: 260px;
  min-width: 188px;
  overflow: hidden;
  position: sticky;
  text-align: left;
  text-overflow: ellipsis;
  z-index: 1;
}

#leaderboardTable thead .sticky-col {
  background: #f4f9ff;
  z-index: 6;
}

#leaderboardTable tbody tr:nth-child(even) {
  background: #fafdff;
}

#leaderboardTable tbody tr:nth-child(even) .sticky-col {
  background: #fafdff;
}

#leaderboardTable tbody tr.ours-row {
  background: var(--soft-gold);
}

#leaderboardTable tbody tr.ours-row .sticky-col {
  background: var(--soft-gold);
}

tbody tr:hover {
  background: #fafdff;
}

.method-name {
  font-weight: 850;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ours-row {
  background: var(--soft-gold);
}

.tag {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  padding: 3px 8px;
}

.tag.optimization-based {
  background: var(--soft-blue);
  color: #244f91;
}

.tag.end-to-end-feed-forward {
  background: var(--soft-teal);
  color: #0d3a73;
}

.tag.online {
  background: var(--soft-coral);
  color: #236faf;
}

.tag.chunk-wise {
  background: #eef4ff;
  color: #385e9e;
}

.tag.slam-based {
  background: var(--soft-gold);
  color: #31527d;
}

.tag.test-time-training {
  background: #eaf6ff;
  color: #1a6599;
}

.bad-cell {
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 850;
  border-radius: 4px;
  padding: 2px 6px;
}

.incomplete {
  color: var(--muted);
}

.good {
  color: var(--teal);
  font-weight: 850;
}

.regress {
  color: var(--danger);
  font-weight: 850;
}

.split-section {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.compact {
  margin-top: 22px;
}

.compact table {
  min-width: 760px;
}

.compact th,
.compact td {
  font-size: 13px;
  padding: 8px 10px;
}

.paper-figure {
  margin: 0;
}

.dataset-section .paper-figure {
  margin: 0 auto;
  max-width: var(--page-max);
}

.dataset-section .section-heading,
.dataset-section .table-caption,
.dataset-section .table-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--page-max);
  width: 100%;
}

.dataset-section .paper-figure-grid {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--page-max);
  width: 100%;
}

.dataset-section .paper-figure-grid .paper-figure-embed {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  max-width: none;
  overflow: visible;
}

.dataset-section .paper-figure-grid .autosize-iframe {
  background: transparent;
  border: 0;
  display: block;
  height: 1180px;
  width: 100%;
}

.dataset-section .paper-figure-grid + .table-caption {
  margin-top: 24px;
}

.dataset-section .paper-figure-grid + .table-caption + .table-shell {
  margin-top: 28px;
}

.dataset-section .compact table {
  min-width: 680px;
}

.dataset-section .compact th,
.dataset-section .compact td {
  padding: 7px 9px;
}

.findings-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

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

.finding-grid article {
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.finding-copy {
  padding: 20px 20px 16px;
}

.finding-number {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.finding-card h3 {
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.24;
  margin: 0 0 8px;
}

.finding-card p {
  font-size: 15px;
  line-height: 1.5;
}

.finding-card img {
  aspect-ratio: 16 / 10;
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: auto;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.ttt-panel {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.7fr) minmax(380px, 1fr);
  margin-top: 18px;
  padding: 18px;
}

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

.figure-card {
  padding: 16px;
}

.figure-card h3 {
  margin-top: 14px;
}

.citation-section {
  background: #07162f;
  color: #fff;
}

.citation-section .eyebrow,
.citation-section p {
  color: #9fd6ff;
}

pre {
  background: #061026;
  border: 1px solid #1c315b;
  border-radius: 8px;
  overflow: auto;
  padding: 18px;
}

code {
  color: #eaf6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  padding: 24px var(--page-gutter);
}

.viewer-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.section-kicker {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.explorer-heading {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  margin-bottom: clamp(28px, 3.4vw, 42px);
  max-width: none;
}

.explorer-heading h2 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  margin: 0;
}

.explorer-heading > p {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.42;
  margin: 10px 0 0;
  text-align: right;
}

.explorer-layout {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
}

.explorer-panel,
.viewer-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 1.7vw, 22px);
}

.explorer-panel {
  min-height: 0;
}

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

.explorer-controls select {
  min-height: 48px;
}

.scene-summary {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 20px 0 16px;
  padding: 16px 0;
}

.scene-summary strong {
  color: var(--brand-navy);
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1;
}

.scene-summary button {
  background: var(--brand-navy);
  border: 0;
  border-radius: 8px;
  color: var(--brand-sky);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  min-width: 88px;
  padding: 9px 16px;
}

.scene-bars {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.scene-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 84px minmax(0, 1fr) 42px;
}

.scene-bar span,
.scene-bar b {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 750;
}

.scene-bar b {
  text-align: right;
}

.scene-bar-track {
  background: #eef2f5;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.scene-bar-track i {
  background: var(--brand-sky);
  display: block;
  height: 100%;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0;
  max-height: 440px;
  overflow-y: auto;
  padding: 0 8px 0 0;
}

.viewer-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.viewer-controls .search {
  grid-column: span 2;
}

.viewer-shell {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
}

.viewer-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.viewer-list-head {
  align-items: center;
  background: #f4f9ff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.viewer-reset {
  background: transparent;
  border: none;
  color: var(--brand-sky-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0;
  text-transform: uppercase;
}

.viewer-reset:hover {
  text-decoration: underline;
}

.viewer-list ul {
  flex: 0 0 auto;
  height: clamp(620px, 78vh, 920px);
  list-style: none;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
}

.viewer-list li {
  margin: 0;
}

.scene-list .viewer-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 7px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.scene-list .viewer-item:hover {
  border-color: rgba(85, 175, 234, 0.6);
}

.scene-list .viewer-item.active {
  background: var(--soft-teal);
  border-color: rgba(85, 175, 234, 0.72);
}

.viewer-item-name {
  color: var(--brand-navy);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-item-size,
.viewer-item-dataset,
.viewer-item-view {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.viewer-item-size,
.viewer-item-view {
  text-align: right;
}

.tag.density-single { background: var(--soft-blue); color: #244f91; }
.tag.density-sparse { background: var(--soft-teal); color: #0d3a73; }
.tag.density-medium { background: var(--soft-gold); color: #31527d; }
.tag.density-dense { background: var(--soft-coral); color: #236faf; }

.dataset-table-shell .tag {
  font-size: 12.5px;
  padding: 4px 8px;
}

.tag.tag-env-indoor    { background: var(--soft-teal); color: #0d3a73; }
.tag.tag-env-outdoor   { background: var(--soft-blue); color: #244f91; }
.tag.tag-env-both      { background: #eef4ff;          color: #385e9e; }

.tag.tag-dyn-static    { background: #eef5fb;          color: #405872; }
.tag.tag-dyn-dynamic   { background: var(--soft-coral); color: #236faf; }

.tag.tag-view-normal     { background: #eef5fb;          color: #405872; }
.tag.tag-view-egocentric { background: var(--soft-blue); color: #244f91; }
.tag.tag-view-wrist      { background: var(--soft-gold); color: #31527d; }
.tag.tag-view-mixed      { background: #eef4ff;          color: #385e9e; }

.tag.tag-src-real        { background: var(--soft-teal); color: #0d3a73; }
.tag.tag-src-simulation  { background: var(--soft-gold); color: #31527d; }
.tag.tag-src-mixed       { background: #eef4ff;          color: #385e9e; }

.table-caption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 36px 0 14px;
}

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

.table-caption em {
  color: #33445f;
  font-style: italic;
  font-weight: 700;
}

.dataset-section .dataset-table-shell {
  max-width: var(--page-max);
}

.dataset-table-shell table {
  min-width: 800px;
  table-layout: fixed;
}

.dataset-table-shell .dataset-name-col {
  width: 132px;
}

.dataset-table-shell .dataset-tag-col {
  width: 94px;
}

.dataset-table-shell .dataset-scene-col {
  width: 50px;
}

.dataset-table-shell .dataset-frames-col {
  width: 92px;
}

.dataset-table-shell th,
.dataset-table-shell td {
  font-size: 12.5px;
  line-height: 1.2;
  padding: 6px 8px;
}

.dataset-table-shell th[rowspan] {
  vertical-align: middle;
}

.dataset-table-shell th.dataset-group {
  background: var(--soft-teal);
  color: var(--brand-navy);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.dataset-table-shell th.dataset-subhead {
  font-size: 11.5px;
  text-align: right;
  text-transform: none;
}

.dataset-table-shell td.dataset-name {
  font-weight: 850;
}

.dataset-table-shell td.dataset-frames {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.dataset-table-shell .density-cell {
  background: var(--soft-teal);
  border-radius: 999px;
  color: #0d3a73;
  display: inline-block;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  min-width: 26px;
  padding: 2px 7px;
  text-align: center;
}

.dataset-table-shell .density-cell.empty {
  background: transparent;
  color: var(--line);
}

.dataset-table-shell tbody tr:nth-child(even) {
  background: #fafdff;
}

.viewer-empty-row {
  color: var(--muted);
  font-size: 14px;
  padding: 16px;
}

.viewer-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: clamp(560px, 44vw, 720px);
}

.viewer-panel-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.console-label {
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.viewer-panel-head h3 {
  color: var(--brand-navy);
  font-size: clamp(22px, 1.8vw, 30px);
  margin: 0;
  overflow-wrap: anywhere;
}

.model-stage {
  background:
    linear-gradient(135deg, rgba(85, 175, 234, 0.20), rgba(8, 26, 63, 0.08)),
    #f7fbff;
  border: 1px solid #cdddee;
  border-radius: 8px;
  flex: 1;
  min-height: clamp(420px, 36vw, 600px);
  overflow: hidden;
  position: relative;
}

.model-stage model-viewer {
  background: transparent;
  display: block;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  width: 100%;
}

.model-stage model-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.viewer-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 900;
  inset: 0;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  position: absolute;
  text-align: center;
}

.viewer-status {
  background: rgba(8, 26, 63, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  left: 14px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  pointer-events: none;
  position: absolute;
  top: 14px;
  backdrop-filter: blur(6px);
}

.viewer-meta {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
}

.viewer-meta div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.viewer-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.viewer-meta dd {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .ttt-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .explorer-heading,
  .explorer-layout,
  .dataset-section .paper-figure-grid,
  .viewer-shell {
    grid-template-columns: 1fr;
  }

  .explorer-heading > p {
    margin-top: 0;
    text-align: left;
  }

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

  .viewer-controls .search {
    grid-column: span 2;
  }

  .viewer-list ul,
  .scene-list {
    max-height: 340px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: clamp(44px, 4.8vw, 74px);
    padding-bottom: clamp(44px, 5.4vw, 68px);
  }

  .section {
    padding-top: clamp(64px, 6.4vw, 96px);
    padding-bottom: clamp(64px, 6.4vw, 96px);
  }

  .section-heading {
    margin-bottom: 34px;
    max-width: 940px;
  }

  .findings-section .section-heading {
    max-width: 980px;
  }

  .finding-grid {
    gap: 24px;
  }

  .finding-copy {
    padding: 22px 24px 18px;
  }

  .results-section > .controls {
    gap: 14px;
    grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.7fr) minmax(240px, 0.7fr);
    max-width: none;
    width: 100%;
  }

  .top-models {
    gap: 16px;
    margin-bottom: 22px;
  }

  .top-card {
    padding: 20px;
  }

  .explorer-layout {
    gap: 28px;
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  }

  .explorer-panel,
  .viewer-panel {
    padding: 24px;
  }

  .model-stage {
    min-height: clamp(500px, 34vw, 640px);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-divider {
    height: 24px;
  }

  .brand-project {
    font-size: 17px;
  }

  nav {
    gap: 12px;
  }

  .controls,
  .density-grid,
  .explorer-controls,
  .finding-grid,
  .figure-grid,
  .top-models,
  .viewer-controls {
    grid-template-columns: 1fr;
  }

  .viewer-controls .search {
    grid-column: span 1;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .hero-media img {
    max-height: none;
  }

  .detail-results-heading h2 {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .explorer-heading h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .explorer-panel,
  .viewer-panel {
    padding: 16px;
  }

  .viewer-panel {
    min-height: 0;
  }

  .model-stage {
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    min-height: 320px;
  }

  .stats-band {
    padding: 0;
  }

  .hero-stats {
    margin: -4px auto -30px;
  }

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

  .stat {
    border-bottom: 0;
    border-right: 1px solid rgba(85, 175, 234, 0.22);
    min-height: 76px;
    padding: 12px 6px 10px;
  }

  .stat:last-child {
    border-right: 0;
  }

  .stat strong {
    font-size: 29px;
  }

  .stat b {
    font-size: 8px;
    letter-spacing: 0.06em;
    margin-top: 7px;
  }
}
