:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --panel: #ffffff;
  --panel-strong: #f0f2f5;
  --ink: #17191e;
  --muted: #656b76;
  --line: #d8dde4;
  --soft-line: #e9edf1;
  --header: rgba(255, 255, 255, 0.94);
  --choice: #f8f9fb;
  --choice-correct: #f6f2ff;
  --table-head: #f3f5f8;
  --hover: #f5f6f8;
  --shadow: rgba(33, 39, 52, 0.13);
  --green: #13835b;
  --red: #d2485c;
  --purple: #7047df;
  --content: 1180px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #090a0d;
  --bg-alt: #101219;
  --panel: #161920;
  --panel-strong: #1d2028;
  --ink: #f3f4f7;
  --muted: #a4aab5;
  --line: #353a46;
  --soft-line: #262a33;
  --header: rgba(9, 10, 13, 0.93);
  --choice: #1a1e26;
  --choice-correct: #211d30;
  --table-head: #171a21;
  --hover: #1c2028;
  --shadow: rgba(0, 0, 0, 0.38);
  --green: #51d39a;
  --red: #ff6f82;
  --purple: #8d64f2;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  transition: color 180ms ease, background-color 180ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

figure,
p {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-140%);
}

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

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

.nav-wrap {
  width: min(var(--content), calc(100% - 40px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 760;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  width: 16px;
  height: 16px;
}

.wordmark-mark i:nth-child(1) { background: #ef8a62; }
.wordmark-mark i:nth-child(2) { background: #df579e; }
.wordmark-mark i:nth-child(3) { background: #746fdc; }
.wordmark-mark i:nth-child(4) { background: #2aaebf; }

.nav-links,
.resource-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 21px;
}

.nav-links {
  margin-left: auto;
}

.nav-links a,
.resource-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

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

.resource-links {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.theme-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--ink);
}

.hero {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 22px;
  text-align: center;
}

.hero-rule {
  width: 186px;
  height: 5px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-rule i:nth-child(1) { background: #ef8a62; }
.hero-rule i:nth-child(2) { background: #df579e; }
.hero-rule i:nth-child(3) { background: #a262d0; }
.hero-rule i:nth-child(4) { background: #5d7fdc; }
.hero-rule i:nth-child(5) { background: #2aaebf; }

.eyebrow,
.section-kicker,
.author-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.title-name,
.title-rest {
  display: block;
}

.title-name {
  font-size: 68px;
  line-height: 1;
}

.title-rest {
  max-width: 970px;
  margin: 15px auto 0;
  font-size: 43px;
  line-height: 1.12;
}

.subtitle {
  max-width: 830px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.author-block {
  width: fit-content;
  min-width: 460px;
  margin: 36px auto 0;
  padding: 18px 26px 0;
  border-top: 1px solid var(--line);
}

.authors {
  margin-top: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
}

.authors a {
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

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

.affiliation {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.hero-metrics {
  max-width: 800px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics div {
  min-width: 0;
  padding: 19px 16px;
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 24px;
  line-height: 1.2;
}

.hero-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.summary-section {
  padding: 76px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: var(--bg-alt);
}

.summary-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.4fr);
  gap: 90px;
  align-items: start;
}

.summary-inner h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.16;
}

.summary-copy {
  max-width: 720px;
}

.summary-copy p,
.comparison-copy p {
  color: var(--muted);
}

.summary-copy p {
  font-size: 17px;
  line-height: 1.75;
}

.summary-copy strong,
.comparison-copy strong {
  color: var(--ink);
  font-weight: 750;
}

.section-heading {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 44px;
}

.section-heading h2 {
  max-width: 790px;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 3px;
  color: var(--muted);
}

.examples-section {
  padding: 38px 0 86px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--soft-line);
}

.compact-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.compact-heading h2 {
  max-width: 930px;
}

.carousel-count {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.carousel-count span:first-child {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: 100%;
  padding: 18px max(32px, calc((100vw - 940px) / 2)) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.carousel-track.ready {
  opacity: 1;
}

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

.example-card {
  --accent: #7d73dd;
  flex: 0 0 min(940px, calc(100vw - 96px));
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 46px var(--shadow);
}

.example-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 340px;
  background: #f1f2f4;
  border-bottom: 1px solid var(--line);
}

.example-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.example-image:first-child {
  border-right: 1px solid #d7dbe1;
}

.example-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(20, 22, 27, 0.9);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.example-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 248px;
}

.example-meta {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.category-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-label::before {
  content: "";
  width: 5px;
  height: 20px;
  background: currentColor;
}

.example-meta h3 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.25;
}

.example-meta p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
}

.example-question {
  min-width: 0;
  padding: 17px 24px 15px;
}

.choice-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.choice-row:last-of-type {
  border-bottom: 0;
}

.choice-row strong {
  color: var(--muted);
}

.choice-row.correct {
  background: var(--choice-correct);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--ink);
  font-weight: 670;
}

.choice-row.correct strong {
  color: var(--accent);
}

.model-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  align-items: center;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.model-outcome {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.model-outcome img,
.bar-model-label img,
.model-cell img {
  width: 19px;
  height: 19px;
  padding: 2px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
}

.bar-model-label img[src$="/seed.png"],
.model-cell img[src$="/seed.png"] {
  padding: 1px;
  border-radius: 0;
}

.bar-model-label img[src$="/internvl.png"],
.model-cell img[src$="/internvl.png"] {
  width: 22px;
  padding: 0;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
}

.model-outcome img {
  width: 17px;
  height: 17px;
}

.model-outcome b {
  font-size: 13px;
}

.model-outcome.correct b { color: var(--green); }
.model-outcome.incorrect b { color: var(--red); }

.carousel-button {
  position: absolute;
  z-index: 3;
  top: 47%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 24px var(--shadow);
  cursor: pointer;
  font-size: 22px;
}

.carousel-button:hover {
  background: var(--ink);
  color: var(--bg);
}

.carousel-button.previous { left: 18px; }
.carousel-button.next { right: 18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 26px;
  border-radius: 4px;
  background: #746fdc;
}

.comparison-section,
.data-section,
.results-section,
.leaderboard-section {
  padding: 104px 0;
}

.comparison-figure-section {
  padding: 68px 0 62px;
  background: var(--bg);
  border-bottom: 1px solid var(--soft-line);
}

.comparison-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--soft-line);
}

.comparison-heading {
  align-items: flex-start;
}

.comparison-copy {
  max-width: 690px;
  font-size: 15px;
  line-height: 1.72;
}

.paper-figure {
  width: min(1260px, calc(100% - 40px));
  margin: 54px auto 0;
}

.comparison-figure-section .paper-figure {
  margin-top: 0;
}

.paper-figure-frame {
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.paper-figure figcaption,
.comparison-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.benchmark-table-scroller,
.table-scroller {
  width: min(1320px, calc(100% - 24px));
  margin: 54px auto 0;
  overflow: auto;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benchmark-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.benchmark-table th,
.benchmark-table td {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  white-space: nowrap;
}

.benchmark-table th:nth-child(n+3),
.benchmark-table td:nth-child(n+3) {
  text-align: center;
}

.benchmark-table thead th {
  background: var(--table-head);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.benchmark-table thead .group-header th {
  height: 42px;
  border-bottom-color: var(--line);
}

.benchmark-table thead th[rowspan] {
  vertical-align: middle;
}

.benchmark-table td.yes,
.benchmark-table td.no {
  font-size: 18px;
  font-weight: 850;
}

.benchmark-table td.yes { color: var(--green); }
.benchmark-table td.no { color: var(--red); }

.benchmark-table .ours-row {
  background: var(--choice-correct);
  color: var(--ink);
  font-weight: 720;
}

.ours-row td:first-child {
  box-shadow: inset 4px 0 0 #8b64e8;
}

.ours-row td:first-child span {
  color: var(--muted);
  font-size: 11px;
}

.table-yes,
.table-no {
  font-size: 20px;
  font-weight: 850;
}

.table-yes { color: var(--green); }
.table-no { color: var(--red); }

.comparison-note {
  width: min(1320px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.data-section {
  background: var(--bg);
  border-bottom: 1px solid var(--soft-line);
}

.taxonomy-layout {
  width: min(1060px, calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(430px, 1fr);
  gap: 82px;
  align-items: center;
}

.pie-wrap {
  position: relative;
  min-width: 0;
}

.category-pie {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  overflow: visible;
}

.pie-segment {
  stroke: var(--bg);
  stroke-width: 2;
  cursor: pointer;
  transition: opacity 140ms ease, filter 140ms ease;
}

.pie-segment:hover,
.pie-segment:focus,
.pie-segment.active {
  filter: brightness(1.16) saturate(1.1);
  outline: none;
}

.pie-segment.muted {
  opacity: 0.34;
}

.pie-tooltip,
.chart-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 220px;
  max-width: 285px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
  pointer-events: none;
}

.pie-tooltip strong,
.pie-tooltip span,
.pie-tooltip small,
.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.pie-tooltip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.pie-tooltip strong i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.pie-tooltip span {
  color: var(--muted);
  font-size: 12px;
}

.pie-tooltip small {
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.taxonomy-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.taxonomy-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.taxonomy-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.taxonomy-item > i {
  width: 6px;
  height: 25px;
}

.taxonomy-item span,
.taxonomy-item b,
.taxonomy-item small {
  min-width: 0;
  display: block;
}

.taxonomy-item b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-item small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.taxonomy-item > strong {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.taxonomy-item:hover,
.taxonomy-item:focus-visible,
.taxonomy-item.active {
  background: var(--hover);
  outline: none;
}

.category-legend,
.chart-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.category-legend {
  width: min(1060px, calc(100% - 40px));
  justify-content: flex-end;
  margin: 24px auto 0;
}

.category-legend span,
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.semantic-key,
.low-level-key,
.bar-key,
.baseline-key,
.category-score-key {
  display: inline-block;
  width: 16px;
  height: 4px;
}

.semantic-key { background: #df6689; }
.low-level-key { background: #6f76d8; }
.bar-key { height: 12px; background: #d65a9d; }
.baseline-key { height: 0; border-top: 1px dashed var(--muted); }
.category-score-key { height: 12px; background: #6087df; }

.diamond-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--purple);
  transform: rotate(45deg);
}

.results-section {
  background: var(--bg-alt);
}

.chart-legend {
  width: min(var(--content), calc(100% - 40px));
  margin: -10px auto 20px;
}

.chart-scroller {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-chart {
  position: relative;
  min-width: 1110px;
  height: 530px;
  padding: 54px 30px 88px 70px;
}

.chart-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(68px, 1fr));
  gap: 18px;
  height: 388px;
  align-items: end;
  border-bottom: 1px solid var(--muted);
}

.grid-line {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: var(--line-y);
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.grid-line span {
  position: absolute;
  right: calc(100% + 12px);
  top: -10px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.grid-line.baseline {
  border-top: 1px dashed var(--muted);
}

.bar-group {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bar-group:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.score-label {
  position: absolute;
  left: 50%;
  bottom: calc(var(--score) + 8px);
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.bar-fill {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: var(--score);
  background: var(--bar-color);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px);
  transition: filter 160ms ease, transform 160ms ease;
}

.bar-group:hover .bar-fill,
.bar-group:focus .bar-fill {
  filter: saturate(1.12) brightness(1.08);
  transform: translateY(-2px);
}

.low-level-marker {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(var(--marker) - 6px);
  width: 12px;
  height: 12px;
  background: var(--purple);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(47, 34, 100, 0.35);
  transform: translateX(-50%) rotate(45deg);
}

.bar-model-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 94px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.bar-model-label img {
  margin: 0 auto 5px;
}

.model-monogram {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  margin: 0 auto 5px;
  background: #2d313a;
  color: white;
  border: 1px solid #555b68;
  font-size: 8px;
  font-weight: 800;
}

.chart-tooltip strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 12px;
}

.category-explorer {
  width: min(1280px, calc(100% - 24px));
  margin: 94px auto 0;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.explorer-heading {
  width: min(var(--content), calc(100% - 16px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 42px;
}

.explorer-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.2;
}

.explorer-heading > div > p:last-child {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.category-select-label {
  display: grid;
  gap: 7px;
  flex: 0 0 240px;
}

.category-select-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-select-label select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.category-explorer > .chart-legend {
  width: min(var(--content), calc(100% - 16px));
  margin-top: 0;
}

.leaderboard-section {
  background: var(--bg);
  border-top: 1px solid var(--soft-line);
}

.filter-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.filter-control button {
  padding: 8px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-control button:last-child {
  border-right: 0;
}

.filter-control button.active {
  background: var(--ink);
  color: var(--bg);
}

.table-scroller {
  margin-top: 0;
}

.leaderboard-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th,
.leaderboard-table td {
  height: 54px;
  padding: 0 13px;
  border-bottom: 1px solid var(--soft-line);
  text-align: right;
  white-space: nowrap;
}

.leaderboard-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--table-head);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 48px;
  background: inherit;
  text-align: center;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  position: sticky;
  z-index: 2;
  left: 48px;
  min-width: 250px;
  background: inherit;
  box-shadow: 10px 0 18px -18px rgba(0, 0, 0, 0.7);
  text-align: left;
}

.leaderboard-table thead th:first-child,
.leaderboard-table thead th:nth-child(2) {
  z-index: 4;
  background: var(--table-head);
}

.leaderboard-table tbody tr {
  background: var(--panel);
}

.leaderboard-table tbody tr:hover,
.leaderboard-table tbody tr:hover td {
  background: var(--hover);
}

.rank-cell {
  color: var(--muted);
  font-weight: 650;
}

.model-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-cell .model-monogram {
  flex: 0 0 auto;
  margin: 0;
}

.model-name {
  font-weight: 680;
}

.access-tag {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.overall-cell {
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.best-score {
  color: #9a76f4;
  font-weight: 800;
}

.table-note {
  width: min(1320px, calc(100% - 40px));
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
}

footer {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

footer strong,
footer span {
  display: block;
}

footer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.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;
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .resource-links {
    margin-left: auto;
  }

  .summary-inner,
  .taxonomy-layout {
    gap: 44px;
  }

  .comparison-copy {
    max-width: 560px;
  }
}

@media (max-width: 800px) {
  .title-name {
    font-size: 56px;
  }

  .title-rest {
    font-size: 36px;
  }

  .section-heading,
  .comparison-heading,
  .explorer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .compact-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .summary-inner {
    grid-template-columns: 1fr;
  }

  .taxonomy-layout {
    grid-template-columns: 1fr;
  }

  .category-pie {
    max-width: 420px;
  }

  .comparison-copy {
    max-width: none;
  }

  .example-content {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: calc(100% - 28px);
    height: 60px;
    gap: 14px;
  }

  .resource-links {
    gap: 12px;
    padding-left: 14px;
  }

  .resource-links a {
    font-size: 12px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 48px 0 20px;
  }

  .title-name {
    font-size: 44px;
  }

  .title-rest {
    margin-top: 12px;
    font-size: 29px;
    line-height: 1.15;
  }

  .subtitle {
    font-size: 17px;
  }

  .author-block {
    min-width: 0;
    width: 100%;
    padding-inline: 0;
  }

  .authors {
    flex-wrap: wrap;
    gap: 5px 8px;
    font-size: 15px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics div:nth-child(2) {
    border-right: 0;
  }

  .hero-metrics div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .summary-section,
  .examples-section,
  .comparison-figure-section,
  .comparison-section,
  .data-section,
  .results-section,
  .leaderboard-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .examples-section {
    padding-top: 34px;
  }

  .comparison-figure-section {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .summary-inner,
  .section-heading,
  .taxonomy-layout,
  .category-legend {
    width: calc(100% - 32px);
  }

  .summary-copy,
  .comparison-copy {
    max-width: none;
  }

  .summary-inner h2,
  .section-heading h2 {
    font-size: 30px;
  }

  .compact-heading h2 {
    font-size: 28px;
  }

  .carousel-track {
    gap: 14px;
    padding-inline: 16px;
  }

  .example-card {
    flex-basis: calc(100vw - 32px);
  }

  .example-images {
    height: 220px;
  }

  .example-content {
    display: block;
  }

  .example-meta {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .example-meta h3 {
    margin-top: 10px;
    font-size: 21px;
  }

  .example-question {
    padding: 12px 12px 15px;
  }

  .choice-row {
    font-size: 13px;
  }

  .carousel-button {
    top: 190px;
    width: 40px;
    height: 40px;
  }

  .carousel-button.previous { left: 6px; }
  .carousel-button.next { right: 6px; }

  .paper-figure {
    width: calc(100% - 20px);
    margin-top: 38px;
  }

  .paper-figure-frame {
    padding: 5px;
  }

  .paper-figure img {
    min-width: 760px;
  }

  .paper-figure-frame {
    overflow-x: auto;
  }

  .taxonomy-layout {
    margin-top: 30px;
    gap: 34px;
  }

  .taxonomy-legend {
    grid-template-columns: 1fr;
  }

  .taxonomy-item:nth-child(odd) {
    border-right: 0;
  }

  .category-legend {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .chart-legend {
    width: calc(100% - 32px);
    flex-wrap: wrap;
  }

  .category-explorer {
    width: calc(100% - 12px);
  }

  .explorer-heading,
  .category-explorer > .chart-legend {
    width: calc(100% - 20px);
  }

  .category-select-label {
    width: 100%;
    flex-basis: auto;
  }

  .filter-control {
    width: 100%;
  }

  .filter-control button {
    flex: 1;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

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

  body,
  .bar-fill,
  .pie-segment {
    transition: none;
  }
}
