:root {
  --bg: #ffffff;
  --band: #f7f8fb;
  --ink: #171827;
  --muted: #5f6472;
  --line: #dde1ea;
  --blue: #4b63e6;
  --blue-dark: #2f45c2;
  --teal: #168f83;
  --shadow: 0 12px 36px rgba(26, 31, 55, 0.12);
  --radius: 8px;
  --text-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.nav-wrap,
.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--blue);
  font-size: 1.06rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #303244;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.narrow {
  width: min(var(--text-width), calc(100% - 40px));
}

.hero {
  padding: 38px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 82%);
}

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

h1 {
  max-width: var(--text-width);
  margin: 0 auto;
  color: #171827;
  font-size: clamp(1.72rem, 2.7vw, 2.32rem);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 760;
}

.authors {
  max-width: var(--text-width);
  margin: 18px auto 0;
  color: #202232;
  font-size: 0.98rem;
  font-weight: 590;
}

.author-name {
  display: inline-block;
  margin: 0 10px 4px;
  white-space: nowrap;
}

.affiliations,
.notes {
  max-width: var(--text-width);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notes {
  font-style: italic;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  min-width: 104px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: #242536;
  background: #ffffff;
  border: 1px solid #d5d9e4;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(34, 39, 70, 0.08);
  font-size: 0.94rem;
  font-weight: 720;
}

.pill-symbol {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  line-height: 1;
}

.hf-logo {
  object-fit: contain;
}

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

.pill:not(.disabled):hover,
.pill:not(.disabled):focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.pill.primary:hover,
.pill.primary:focus-visible {
  color: #ffffff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.pill.disabled {
  color: #8b90a0;
  background: #f8f9fb;
  opacity: 0.72;
  cursor: default;
  box-shadow: none;
}

figure {
  margin: 0;
}

.paper-figure,
.dataset-figure,
.runtime-figure,
.wide-figure {
  text-align: center;
}

.paper-figure {
  width: min(700px, 100%);
  margin: 0 auto;
}

.dataset-figure {
  width: min(660px, 100%);
  margin: 28px auto 0;
}

.runtime-figure {
  width: min(560px, 100%);
  margin: 0 auto;
}

.results-runtime {
  margin: 8px auto 26px;
}

.wide-figure {
  width: min(780px, 100%);
  margin: 0 auto 28px;
}

.paper-figure img,
.dataset-figure img,
.runtime-figure img,
.wide-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 37, 72, 0.08);
}

figcaption {
  max-width: var(--text-width);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 58px 0;
}

.section.band {
  background: var(--band);
}

h2 {
  max-width: var(--text-width);
  margin: 0 auto 18px;
  color: #171827;
  text-align: center;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 740;
}

h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--blue);
}

.section-text {
  max-width: var(--text-width);
  margin: 0 auto;
  color: #3d4150;
  font-size: 1rem;
  text-align: justify;
}

.section-subtitle {
  max-width: var(--text-width);
  margin: 0 auto 26px;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
}

.table-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: var(--text-width);
  margin: -12px auto 24px;
  color: #586070;
  font-size: 0.86rem;
  font-weight: 680;
}

.legend-swatch {
  width: 18px;
  height: 12px;
  margin-left: 12px;
  border-radius: 3px;
}

.legend-swatch:first-child {
  margin-left: 0;
}

.legend-swatch.best {
  background: #ffe2e2;
}

.legend-swatch.second {
  background: #fff3c8;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.dataset-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 37, 72, 0.07);
}

.dataset-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 1.05rem;
  text-align: center;
}

.dataset-card span {
  display: block;
  color: #4c5260;
  font-size: 0.95rem;
}

.dataset-samples {
  width: min(1040px, 100%);
  margin: 34px auto 0;
}

.dataset-samples h3 {
  margin: 0;
  color: #202336;
  text-align: center;
  font-size: 1.25rem;
}

.dataset-samples > p {
  max-width: var(--text-width);
  margin: 8px auto 22px;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}

.dataset-sample-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dataset-sample-panel {
  margin: 0;
  min-width: 0;
}

.dataset-sample-panel h4 {
  margin: 0 0 10px;
  color: #303548;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 760;
}

.dataset-sample-panel .compare-stage,
.dataset-sample-panel .cloud-card {
  min-height: 300px;
}

.dataset-sample-panel .compare-stage {
  aspect-ratio: 1 / 1;
}

.lazy-media-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7dce7;
  border-radius: var(--radius);
  background: #11131c;
  box-shadow: 0 8px 22px rgba(31, 37, 72, 0.12);
}

.lazy-media-card.kind-video {
  aspect-ratio: 1 / 1;
}

.lazy-media-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: 0.94;
}

.lazy-media-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(20, 23, 34, 0.66);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 760;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 37, 72, 0.08);
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 760;
}

.prompt-card p {
  width: 100%;
  margin: 18px 0 0;
  color: #424958;
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-switcher-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2f8;
}

.model-switcher-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  color: #475066;
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 760;
}

.model-switcher-tabs button.active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(75, 99, 230, 0.22);
}

.dataset-sample-tabs {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.dataset-sample-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  min-height: 220px;
  padding: 10px 2px;
  overflow: hidden;
  scrollbar-width: none;
  will-change: transform, opacity;
}

.dataset-sample-track::-webkit-scrollbar {
  display: none;
}

.dataset-sample-track.slide-next {
  animation: datasetThumbsNext 320ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.dataset-sample-track.slide-prev {
  animation: datasetThumbsPrev 320ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

@keyframes datasetThumbsNext {
  from {
    opacity: 0.78;
    transform: translateX(84px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes datasetThumbsPrev {
  from {
    opacity: 0.78;
    transform: translateX(-84px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dataset-sample-track.slide-next,
  .dataset-sample-track.slide-prev {
    animation: none;
  }
}

.sample-carousel-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dce7;
  border-radius: 999px;
  color: #3f4966;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 37, 72, 0.12);
  cursor: pointer;
}

.sample-carousel-button:hover,
.sample-carousel-button:focus-visible {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.sample-carousel-arrow {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.sample-carousel-arrow.prev {
  left: 16px;
  transform: translateY(-50%) rotate(-45deg);
}

.sample-carousel-arrow.next {
  right: 16px;
  transform: translateY(-50%) rotate(135deg);
}

.dataset-sample-track .cloud-thumb {
  flex: 0 0 220px;
  min-height: 164px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  will-change: transform, opacity;
  transition: flex-basis 220ms cubic-bezier(0.2, 0.72, 0.18, 1), min-height 220ms cubic-bezier(0.2, 0.72, 0.18, 1), padding 220ms cubic-bezier(0.2, 0.72, 0.18, 1), background 220ms ease, box-shadow 220ms ease;
}

.dataset-sample-track .cloud-thumb img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 37, 72, 0.13);
  transition: height 220ms cubic-bezier(0.2, 0.72, 0.18, 1), box-shadow 220ms ease;
}

.dataset-sample-track .cloud-thumb.active {
  flex-basis: 184px;
  min-height: 210px;
  padding: 10px;
  background: #78b7ef;
  box-shadow: 0 14px 34px rgba(69, 133, 208, 0.28);
}

.dataset-sample-track .cloud-thumb.active img {
  height: 184px;
  box-shadow: none;
}

.dataset-sample-track .cloud-thumb:focus-visible {
  outline: 3px solid rgba(75, 99, 230, 0.42);
  outline-offset: 4px;
}

.results-tables {
  display: grid;
  gap: 22px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.results-tables > * {
  min-width: 0;
}

.wide-table {
  width: 100%;
  margin: 0 auto;
}

.primary-table {
  width: min(680px, 100%);
  margin: 0 auto;
}

.geometry-card {
  width: min(780px, 100%);
  margin: 0 auto;
}

.table-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 37, 72, 0.07);
}

.table-card h3 {
  margin: 0;
  color: #202336;
  font-size: 1.05rem;
}

.table-card p {
  max-width: var(--text-width);
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-scroll {
  width: 100%;
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #2e3342;
  font-size: 0.82rem;
}

th,
td {
  padding: 8px 8px;
  border-bottom: 1px solid #e8ebf2;
  text-align: center;
  white-space: nowrap;
}

.delete-table th:first-child,
.delete-table td:first-child,
.geometry-table th:first-child,
.geometry-table td:first-child,
.region-table th:nth-child(2),
.region-table td:nth-child(2) {
  text-align: left;
}

th {
  color: #4d5570;
  background: #f7f8fb;
  font-weight: 760;
}

.metric-dataset,
.metric-order {
  display: block;
}

.metric-order {
  margin-top: 3px;
  color: #70778b;
  font-size: 0.68rem;
  font-weight: 700;
}

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

tr.ours td {
  color: #1f2534;
  font-weight: 800;
}

.metric-best,
.metric-second {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 4px;
  text-align: center;
  font-weight: 800;
}

.metric-best {
  background: #ffe2e2;
  color: #1f2534;
}

.metric-second {
  background: #fff3c8;
  color: #252a38;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(880px, 100%);
  margin: 0 auto;
}

.inference-sample-stage {
  min-width: 0;
}

.compare-card {
  position: relative;
  min-width: 0;
}

.paired-inference-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.paired-inference-panel {
  min-width: 0;
}

.paired-inference-panel h4 {
  margin: 0 0 10px;
  color: #303548;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 760;
}

.paired-inference-panel .compare-stage,
.paired-inference-panel .cloud-card {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.paired-inference-panel .cloud-card model-viewer {
  height: 100%;
}

.inference-sample-tabs {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.inference-sample-track {
  gap: 18px;
  min-height: 184px;
}

.inference-sample-track .cloud-thumb {
  flex-basis: 180px;
  min-height: 132px;
}

.inference-sample-track .cloud-thumb img {
  height: 116px;
}

.inference-sample-track .cloud-thumb.active {
  flex-basis: 158px;
  min-height: 184px;
  padding: 9px;
}

.inference-sample-track .cloud-thumb.active img {
  height: 158px;
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #d7dce7;
  border-radius: var(--radius);
  background: #11131c;
  box-shadow: 0 8px 22px rgba(31, 37, 72, 0.12);
  touch-action: none;
  user-select: none;
}

.compare-media,
.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-media {
  object-fit: cover;
}

.compare-layer.after {
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 7;
  width: 3px;
  background: #ffffff;
  transform: translateX(-1.5px);
  box-shadow: 0 0 0 1px rgba(20, 23, 34, 0.18);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.compare-handle::before,
.compare-handle::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.compare-handle::before {
  left: 10px;
  border-right: 7px solid #ffffff;
}

.compare-handle::after {
  right: 10px;
  border-left: 7px solid #ffffff;
}

.compare-label,
.demo-tag {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(20, 23, 34, 0.7);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 760;
}

.compare-label.before {
  right: 10px;
  top: 10px;
}

.compare-label.after {
  left: 10px;
  top: 10px;
}

.demo-tag {
  right: 10px;
  bottom: 10px;
  background: rgba(20, 23, 34, 0.62);
}

.compare-title {
  margin: 0 0 12px;
  color: #252838;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 720;
}

.video-toggle {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 9;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, 100%);
  margin: 30px auto 0;
}

.cloud-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid #e4e7ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 37, 72, 0.14);
}

.cloud-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: #ffffff;
  background: #5a6e99;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 760;
  box-shadow: 0 4px 14px rgba(24, 31, 54, 0.12);
}

.cloud-card model-viewer {
  display: block;
  width: 100%;
  height: 320px;
  background: #eef2f8;
  cursor: grab;
}

.cloud-card model-viewer:active {
  cursor: grabbing;
}

.cloud-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: #8a90a2;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}

.cloud-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.cloud-thumb {
  width: 132px;
  min-height: 118px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.cloud-thumb img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(31, 37, 72, 0.12);
}

.cloud-thumb span {
  display: -webkit-box;
  min-height: 2.35em;
  margin-top: 7px;
  color: #4a5060;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.18;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cloud-thumbs .cloud-thumb.active {
  background: #a9cffc;
  box-shadow: 0 8px 24px rgba(75, 99, 230, 0.18);
}

.results-carousel {
  position: relative;
  width: min(930px, 100%);
  margin: 0 auto;
  padding: 0 48px;
}

.results-carousel-window {
  overflow: hidden;
}

.results-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.results-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 0 2px 4px;
  scroll-snap-align: center;
}

.carousel-slide img {
  width: min(820px, 100%);
  max-height: 620px;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3f4966;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 37, 72, 0.12);
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.carousel-arrow.prev {
  left: 15px;
  transform: translateY(-50%) rotate(-45deg);
}

.carousel-arrow.next {
  right: 15px;
  transform: translateY(-50%) rotate(135deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: var(--text-width);
  margin: 18px auto 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd5e3;
  cursor: pointer;
}

.carousel-dot.active {
  width: 22px;
  background: var(--blue);
}

pre {
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 20px;
  overflow-x: auto;
  color: #f5f7ff;
  background: #171827;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.footer {
  padding: 28px 0 42px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer .container {
  max-width: var(--text-width);
  display: grid;
  gap: 6px;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

.icon-reset,
.icon-spin,
.icon-play,
.icon-pause {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.icon-reset::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
}

.icon-reset::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid currentColor;
  transform: rotate(26deg);
}

.icon-spin::before,
.icon-spin::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.icon-spin::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-left-color: transparent;
}

.icon-spin::after {
  top: 1px;
  right: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
}

.icon-play::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.icon-pause::before,
.icon-pause::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 4px;
  height: 12px;
  background: currentColor;
}

.icon-pause::before {
  left: 4px;
}

.icon-pause::after {
  right: 4px;
}

@media (max-width: 980px) {
  .cloud-grid,
  .dataset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .link-row {
    gap: 10px;
  }

  .pill {
    min-width: 104px;
    min-height: 42px;
    padding: 0 18px;
  }

  .section {
    padding: 54px 0;
  }

  .cloud-grid,
  .dataset-grid,
  .dataset-sample-stage {
    grid-template-columns: 1fr;
  }

  .paired-inference-body {
    grid-template-columns: 1fr;
  }

  .table-card {
    padding: 12px;
  }

  .results-tables {
    width: 100%;
  }

  table {
    font-size: 0.66rem;
  }

  th,
  td {
    padding: 6px 4px;
    white-space: normal;
  }

  .metric-best,
  .metric-second {
    min-width: 0;
    padding: 0 3px;
  }

  .runtime-figure {
    width: 100%;
  }

  .results-carousel {
    padding: 0 34px;
  }

  .dataset-sample-tabs {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .dataset-sample-track {
    gap: 12px;
    min-height: 176px;
  }

  .sample-carousel-button {
    width: 34px;
    height: 34px;
  }

  .sample-carousel-arrow {
    width: 10px;
    height: 10px;
  }

  .sample-carousel-arrow.prev {
    left: 13px;
  }

  .sample-carousel-arrow.next {
    right: 13px;
  }

  .dataset-sample-track .cloud-thumb {
    flex-basis: 140px;
    min-height: 124px;
  }

  .dataset-sample-track .cloud-thumb img {
    height: 104px;
  }

  .dataset-sample-track .cloud-thumb.active {
    flex-basis: 142px;
    min-height: 158px;
    padding: 8px;
  }

  .dataset-sample-track .cloud-thumb.active img {
    height: 142px;
  }

  .inference-sample-track .cloud-thumb {
    flex-basis: 128px;
    min-height: 112px;
  }

  .inference-sample-track .cloud-thumb img {
    height: 94px;
  }

  .inference-sample-track .cloud-thumb.active {
    flex-basis: 128px;
    min-height: 146px;
    padding: 8px;
  }

  .inference-sample-track .cloud-thumb.active img {
    height: 128px;
  }

  .carousel-button {
    top: 38%;
    width: 32px;
    height: 32px;
  }

  .carousel-arrow.prev {
    left: 13px;
  }

  .carousel-arrow.next {
    right: 13px;
  }

  .cloud-card {
    min-height: 310px;
  }

  .cloud-card model-viewer {
    height: 310px;
  }

  .cloud-thumb {
    width: 112px;
  }
}
