:root {
  --text: #20242a;
  --muted: #626a73;
  --border: #dfe3e7;
  --border-strong: #c8ced5;
  --background: #ffffff;
  --background-alt: #f7f8f9;
  --accent: #666d74;
  --accent-soft: #eceeef;
  --failure: #b94a48;
  --success: #347a52;
  --chart-qdeg: #315f78;
  --qdeg-highlight: #e7f0f3;
  --chart-randomization: #b46a28;
  --chart-cmaes: #6e648e;
  --page: 1000px;
  --page-wide: 1160px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  color: #171a1f;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 3.35rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
}

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

sub {
  font-size: 0.72em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: #fff;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

.page-shell,
.nav-shell {
  width: min(calc(100% - 40px), var(--page));
  margin: 0 auto;
}

.page-shell-wide {
  width: min(calc(100% - 40px), var(--page-wide));
}

.narrow-shell {
  max-width: 800px;
}

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

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(20, 25, 30, 0.05);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.85rem;
}

.nav-links a {
  color: #4f565e;
}

.nav-links a.is-current {
  color: var(--accent);
  font-weight: 650;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 205px;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 25, 30, 0.1);
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  right: 0;
  left: 0;
  height: 0.6rem;
}

.nav-dropdown-menu a {
  padding: 0.45rem 0.6rem;
  border-radius: 3px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--background-alt);
  text-decoration: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero-section {
  padding: 5.75rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.project-label,
.section-label,
.toolbar-label {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 900px;
  margin: 0 auto 0.75rem;
}

.project-name {
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 750;
}

.hero-summary {
  max-width: 760px;
  margin: 0 auto 1rem;
  color: #49515a;
  font-size: 1.08rem;
}

.authors {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 650;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.button-primary {
  border-color: var(--border-strong);
  background: #e2e4e6;
  color: #2f353c;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d7dade;
  color: #20242a;
}

.resource-pending {
  color: var(--muted);
  font-size: 0.8rem;
}

.teaser-block {
  max-width: 900px;
  margin-top: 3.25rem;
}

#teaser {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.caption,
.paper-figure figcaption {
  margin: 0.65rem auto 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  text-align: center;
}

.section {
  padding: 5.5rem 0;
}

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

.section-heading {
  max-width: 750px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin-bottom: 0.7rem;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 3rem;
  align-items: start;
}

.prose {
  color: #40474f;
}

.prose p {
  margin-bottom: 1.1rem;
}

.contribution-list {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background-alt);
}

.contribution-list h3 {
  margin-bottom: 0.8rem;
}

.contribution-list ol {
  margin: 0;
  padding-left: 1.25rem;
}

.contribution-list li {
  margin-bottom: 0.8rem;
  color: #49515a;
  font-size: 0.88rem;
}

.contribution-list li:last-child {
  margin-bottom: 0;
}

.paper-figure {
  margin: 3rem 0 0;
}

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

.figure-zoom img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-zoom > span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: rgba(32, 36, 42, 0.86);
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
}

.figure-zoom:hover > span,
.figure-zoom:focus-visible > span {
  opacity: 1;
}

.abstract-block {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.abstract-block summary {
  padding: 0.9rem 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
}

.abstract-content {
  max-width: 850px;
  padding-bottom: 1rem;
  color: #4b535b;
  font-size: 0.92rem;
}

.abstract-content p {
  margin-bottom: 0.9rem;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  counter-reset: method;
  list-style: none;
}

.method-list li {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 3.9rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  counter-increment: method;
}

.method-list li::before {
  content: counter(method, lower-alpha);
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.method-list strong {
  font-size: 0.96rem;
}

.method-list .concept-highlight {
  color: var(--chart-qdeg);
  font-size: inherit;
  font-weight: 750;
}

.method-list p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.study-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.study-details div {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.study-details strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.study-details span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-summary {
  max-width: 850px;
}

.results-phase-copy {
  max-width: 850px;
  margin-bottom: 1.25rem;
  color: #40474f;
}

.results-phase-copy p {
  margin-bottom: 0.9rem;
}

.experiment-baselines {
  max-width: 850px;
  color: #40474f;
}

.experiment-baselines > p {
  margin-bottom: 0.9rem;
}

.baseline-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.1rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.baseline-definitions > div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background-alt);
}

.baseline-definitions strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #2f353c;
  font-size: 0.78rem;
}

.baseline-definitions span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.results-subsection {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.results-subsection-heading {
  max-width: 850px;
  margin-bottom: 1.25rem;
}

.results-subsection-heading .section-label {
  margin-bottom: 0.2rem;
}

.results-subsection-heading h3 {
  margin-bottom: 0.35rem;
}

.results-subsection-heading h3:last-child {
  margin-bottom: 0;
}

.results-subsection-heading > p:last-child:not(.section-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.score-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem 1rem;
  padding: 0 0 1rem;
  color: #4f565e;
  font-size: 0.75rem;
}

.score-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.score-chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.score-chart-controls .score-chart-legend {
  padding: 0;
}

.legend-line {
  display: inline-block;
  width: 22px;
  border-top: 2px solid;
}

.legend-qdeg {
  border-color: var(--chart-qdeg);
}

.legend-randomization {
  border-color: var(--chart-randomization);
  border-top-style: dashed;
}

.legend-cmaes {
  border-color: var(--chart-cmaes);
  border-top-style: dotted;
}

.vla-chart-group {
  padding: 0.4rem 0;
}

.score-charts-caption {
  margin: 0.65rem auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.vla-chart-group h4 {
  margin: 0 0 0.8rem;
  color: #2f353c;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.vla-chart-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.score-chart-card {
  min-width: 0;
  margin: 0;
  padding: 0.95rem 0.95rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.score-chart-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.score-chart-card figcaption strong {
  color: #2f353c;
  font-size: 0.78rem;
  font-weight: 650;
}

.score-chart-card figcaption span {
  color: #858c94;
  font-family: var(--mono);
  font-size: 0.61rem;
  white-space: nowrap;
}

.score-chart-canvas {
  min-height: 270px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.score-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.score-chart-svg text {
  fill: #6b737b;
  font-family: var(--sans);
  font-size: 11px;
}

.score-chart-svg .chart-axis-title {
  fill: #4b535b;
  font-size: 11px;
  font-weight: 600;
}

.score-chart-svg .chart-grid-line {
  stroke: #e8ebee;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.score-chart-svg .chart-axis-line {
  stroke: #aab1b8;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.score-chart-svg .chart-band {
  opacity: 0.14;
}

.score-chart-svg .chart-series-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
}

.score-chart-svg .chart-series-randomization {
  stroke-dasharray: 7 5;
}

.score-chart-svg .chart-series-cmaes {
  stroke-dasharray: 2 4;
}

.score-chart-svg .chart-point {
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.score-chart-svg .chart-point:focus {
  outline: none;
  stroke: #171a1f;
  stroke-width: 2;
}

.score-chart-error {
  max-width: 300px;
  margin: 0;
  color: var(--failure);
  text-align: center;
}

.score-charts-surface,
.results-table-surface {
  padding: 1rem;
  border-radius: 6px;
  background: var(--background-alt);
}

.result-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 0.75rem;
}

.tab-list {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background-alt);
}

.tab-button {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--text);
}

.tab-button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(20, 25, 30, 0.12);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #fff;
}

.result-panel table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.result-panel caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.result-panel th,
.result-panel td {
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-size: 0.84rem;
}

.result-panel th:first-child {
  text-align: left;
}

.result-panel thead th {
  background: var(--background-alt);
  color: #505861;
  font-size: 0.72rem;
  font-weight: 650;
}

.result-panel tbody th {
  font-weight: 550;
}

.result-panel tr:last-child th,
.result-panel tr:last-child td {
  border-bottom: 0;
}

.result-panel .qdeg-column {
  background: var(--qdeg-highlight);
}

.result-panel .best {
  color: var(--accent);
  font-weight: 750;
}

.result-panel .average-row {
  border-top: 2px solid var(--border-strong);
}

.table-note {
  flex: 1;
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.archive-shell {
  overflow: visible;
}

.archive-surface {
  padding: 1rem;
  border-radius: 6px;
  background: var(--background-alt);
}

.archive-surface-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

.archive-caption {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.archive-control-stack {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: flex-end;
  flex-direction: column;
  justify-self: end;
  gap: 0;
}

.archive-model-control,
.archive-method-controls,
.archive-method-panel,
.archive-method-bar {
  width: 100%;
}

.archive-panel {
  padding: 0;
}

.archive-method-bar {
  margin: 0;
}

.archive-model-tabs {
  display: flex;
  width: 100%;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.archive-method-tabs {
  display: flex;
  width: 100%;
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.archive-model-tabs .tab-button,
.archive-method-tabs .tab-button {
  flex: 1 1 auto;
}

.archive-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

.heatmap-card,
.archive-preview {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.heatmap-card {
  display: flex;
}

.heatmap-layout {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.35rem;
}

.heatmap-scale {
  display: grid;
  grid-template-columns: 14px 16px 10px;
  align-items: stretch;
  gap: 0.15rem;
  min-height: 240px;
}

.heatmap-scale img {
  display: block;
  width: 16px;
  height: 100%;
  min-height: 240px;
  object-fit: fill;
}

.heatmap-scale-values {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1;
}

.heatmap-image-column {
  min-width: 0;
}

.heatmap-image-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.heatmap-image-wrap > img {
  display: block;
  width: 100%;
  height: auto;
}

.heatmap-scale-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.66rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.heatmap-scale-label {
  position: static;
  height: 100%;
  white-space: nowrap;
}

.heatmap-hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #42a69a;
  box-shadow: 0 0 0 1px rgba(30, 35, 40, 0.8);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.heatmap-hotspot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.heatmap-hotspot:hover,
.heatmap-hotspot:focus-visible,
.heatmap-hotspot.is-active {
  z-index: 2;
  background: var(--failure);
  outline: 2px solid rgba(185, 74, 72, 0.25);
  outline-offset: 2px;
}

.archive-preview {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f0f2f3;
}

.archive-placeholder {
  display: grid;
  min-height: 330px;
  flex: 1;
  place-items: center;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  text-align: center;
}

.archive-placeholder span {
  display: block;
  max-width: 260px;
  font-size: 0.82rem;
}

.archive-placeholder strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.archive-preview.is-playing .archive-placeholder {
  display: none;
}

.preview-task {
  display: none;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--background-alt);
  color: #454c54;
  font-size: 0.78rem;
}

.archive-preview.is-playing .preview-task.has-instruction {
  display: block;
}

.preview-task strong {
  color: var(--accent);
}

.preview-videos {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.archive-preview.is-playing .preview-videos {
  display: grid;
  min-height: 0;
  flex: 1;
}

.preview-video-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.preview-video-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.preview-video-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--failure);
}

.preview-video-label.is-success::before {
  background: var(--success);
}

.preview-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  border-radius: 4px;
  background: #151918;
  object-fit: contain;
}

.real-world-summary {
  max-width: 850px;
  margin-bottom: 1.5rem;
}

#real-world .section-heading {
  margin-bottom: 0.7rem;
}

.real-world-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.real-world-explorer {
  max-width: 1000px;
  margin: 0;
  padding: 1rem;
  border-radius: 6px;
  background: var(--background);
}

.real-world-explorer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.real-world-legends {
  display: grid;
  gap: 0.4rem;
}

.real-world-task-legend {
  display: grid;
  align-items: start;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.real-world-task-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.real-world-task-key {
  width: 19px;
  height: 11px;
  border: 2px dotted;
}

.real-world-task-key.is-task-one {
  border-color: #945200;
}

.real-world-task-key.is-task-two {
  border-color: #0433ff;
}

.real-world-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.real-world-overview {
  min-width: 0;
  margin: 0;
}

.real-world-overview-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.real-world-overview-wrap > img {
  display: block;
  width: 100%;
  height: auto;
}

.real-world-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0.75px rgba(30, 35, 40, 0.75);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.real-world-marker::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.real-world-marker.is-failure {
  background: var(--failure);
}

.real-world-marker:hover,
.real-world-marker:focus-visible,
.real-world-marker.is-active {
  z-index: 2;
  outline: 2px solid rgba(51, 58, 65, 0.28);
  outline-offset: 2px;
}

.real-world-rollout-window {
  display: flex;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1614 / 1208;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f2f3;
}

.real-world-rollout-placeholder {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 1.5rem;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
}

.real-world-rollout-video {
  display: none;
  width: 100%;
  height: 100%;
  background: #151918;
  object-fit: contain;
}

.real-world-rollout-window.is-playing .real-world-rollout-placeholder {
  display: none;
}

.real-world-rollout-window.is-playing .real-world-rollout-video {
  display: block;
}

.citation-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background-alt);
}

.citation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.citation-heading h2 {
  margin: 0;
}

.citation-heading .section-label {
  margin-bottom: 0.2rem;
}

.copy-button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 650;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.citation-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  color: #32383f;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.citation-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  background: var(--background-alt);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-content p {
  margin: 0;
}

.footer-content div {
  display: flex;
  gap: 1rem;
}

.image-dialog {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.image-dialog::backdrop {
  background: rgba(15, 18, 20, 0.82);
}

.image-dialog img {
  display: block;
  max-width: 94vw;
  max-height: 88vh;
  margin: auto;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #24292f;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .overview-grid,
  .real-world-stage,
  .archive-stage {
    grid-template-columns: 1fr;
  }

  .contribution-list {
    max-width: 650px;
  }

  .archive-preview {
    min-height: 420px;
  }

  .archive-placeholder {
    min-height: 170px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 58px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 25, 30, 0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0.7rem;
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: -0.15rem 0 0.25rem 0.7rem;
    padding: 0 0 0 0.45rem;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .method-list,
  .study-details,
  .baseline-definitions {
    grid-template-columns: 1fr;
  }

  .score-chart-controls,
  .result-table-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .score-chart-controls {
    gap: 0.8rem;
  }

  .result-table-controls {
    gap: 0.75rem;
  }

  .score-chart-legend {
    justify-content: flex-start;
  }

  .vla-chart-pair {
    grid-template-columns: 1fr;
  }

  .score-chart-controls .tab-list,
  .result-table-controls .tab-list,
  .archive-model-tabs {
    align-self: flex-start;
    max-width: 100%;
    overflow-x: auto;
  }

  .result-table-controls,
  .archive-control-stack {
    justify-content: flex-start;
  }

  .archive-surface-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
  }

  .archive-control-stack {
    align-items: flex-start;
    justify-self: start;
    max-width: 100%;
  }

  .real-world-explorer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .real-world-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

}

@media (max-width: 560px) {
  .page-shell,
  .page-shell-wide,
  .nav-shell {
    width: min(calc(100% - 28px), var(--page));
  }

  .hero-section {
    padding: 4rem 0 3.5rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-summary {
    margin-left: 0;
  }

  .resource-links {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .resource-pending {
    width: 100%;
  }

  .teaser-block {
    margin-top: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .method-list li {
    padding-right: 1rem;
  }

  .score-charts-surface,
  .results-table-surface,
  .archive-surface,
  .real-world-explorer,
  .score-chart-card {
    padding: 0.75rem;
  }

  .tab-button {
    flex: 1 0 auto;
  }

  .archive-method-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .heatmap-layout {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .heatmap-scale,
  .heatmap-scale img {
    min-height: 150px;
  }

  .preview-videos {
    grid-template-columns: 1fr;
  }

  .archive-preview {
    min-height: 0;
  }

  .archive-preview.is-playing .preview-videos {
    flex: none;
  }

  .preview-video {
    height: auto;
    flex: none;
    aspect-ratio: 16 / 11;
  }

  .citation-card {
    padding: 1rem;
  }

  .citation-card pre {
    font-size: 0.67rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-close {
    top: -10px;
    right: -2px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
