:root {
  --ink: #102033;
  --muted: #5f6d7f;
  --paper: #fbfdff;
  --wash: #edf6ff;
  --wash-2: #effbf6;
  --line: #c9d8e8;
  --blue: #2065c8;
  --blue-deep: #10447f;
  --teal: #28a8a0;
  --green: #8bcf6e;
  --orange: #f59d4a;
  --gold: #eeb94a;
  --violet: #8752bf;
  --red: #e65454;
  --shadow: 0 18px 50px rgba(42, 83, 125, 0.14);
  --soft-shadow: 0 10px 28px rgba(42, 83, 125, 0.12);
  --motion-fast: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --motion-med: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-slow: 680ms cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 101, 200, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40, 168, 160, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #eef5ff 0%, #f9fcff 42%, #f3fbf7 100%);
  background-size: 36px 36px, 36px 36px, auto;
  font-family: "IBM Plex Sans", "Aptos", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(16, 32, 51, 0.07) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.35;
  z-index: -1;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(35, 73, 116, 0.1);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(35, 73, 116, 0.16);
}

.brand,
.nav-paper,
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--blue-deep);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(32, 101, 200, 0.28);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px rgba(32, 101, 200, 0.05);
}

.brand-mark img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 4px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #44566e;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-deep);
  background: rgba(32, 101, 200, 0.09);
  outline: none;
}

.nav-paper {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(16, 32, 51, 0.18);
}

.nav-paper svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.section-pad {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 30px;
  align-items: center;
  min-height: 660px;
  padding-top: 94px;
  padding-bottom: 30px;
}

.hero-copy {
  min-width: 0;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 4.95rem;
}

h2 {
  margin-bottom: 10px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 14px;
  color: #1a4677;
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.28;
}

.hero-text,
.section-heading p,
.evaluation-board p,
.reason-card p,
.step-card p,
.finding-card p,
.result-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 12px 26px rgba(16, 68, 127, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(32, 101, 200, 0.18);
  box-shadow: 0 12px 24px rgba(42, 83, 125, 0.11);
}

.hero-figure,
.wide-figure,
.table-figure,
.leaderboard-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 101, 200, 0.13);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-figure {
  position: relative;
  min-width: 0;
  border-radius: 32px;
  padding: 12px;
}

.hero-figure::before {
  position: absolute;
  top: 18px;
  right: 26px;
  content: "97 tasks | 6 domains";
  padding: 7px 12px;
  border: 1px solid rgba(32, 101, 200, 0.15);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(42, 83, 125, 0.14);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-figure img {
  width: 100%;
  min-height: 430px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
}

.compact {
  padding-top: 12px;
  padding-bottom: 34px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card,
.reason-card,
.step-card,
.finding-card,
.result-card,
.case-card,
.case-workbench,
.domain-panel,
.leaderboard-shell,
.evaluation-board,
.metric-grid article,
.bibtex,
.format-rail span {
  border: 1px solid rgba(32, 101, 200, 0.13);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.stat-card {
  position: relative;
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform var(--motion-med), box-shadow var(--motion-med), border-color var(--motion-med);
}

.stat-card::after {
  position: absolute;
  right: -22px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border: 18px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.14;
  transition: transform var(--motion-slow), opacity var(--motion-med);
}

.stat-card:hover,
.reason-card:hover,
.step-card:hover,
.finding-card:hover,
.result-card:hover,
.metric-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 101, 200, 0.22);
  box-shadow: 0 18px 38px rgba(42, 83, 125, 0.14);
}

.stat-card:hover::after {
  opacity: 0.2;
  transform: translate(-6px, -6px) scale(1.05);
}

.stat-card.blue { color: var(--blue); }
.stat-card.green { color: #4aa16a; }
.stat-card.orange { color: var(--orange); }
.stat-card.violet { color: var(--violet); }

.stat-value {
  display: block;
  margin-bottom: 10px;
  color: currentColor;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 24px;
  align-items: start;
}

.section-title {
  position: sticky;
  top: 116px;
}

.reason-grid,
.finding-grid,
.step-grid {
  display: grid;
  gap: 10px;
}

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

.reason-card,
.step-card,
.finding-card,
.result-card {
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform var(--motion-med), box-shadow var(--motion-med), border-color var(--motion-med);
}

.mini-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--orange);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(232, 248, 246, 0.78) 18%, rgba(238, 245, 255, 0.78) 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 10px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.wide-figure,
.leaderboard-figure,
.table-figure {
  border-radius: var(--radius-lg);
  padding: 8px;
}

.wide-figure img,
.leaderboard-figure img,
.table-figure img {
  width: 100%;
  border-radius: 18px;
  background: #fff;
}

.construction-figure {
  display: grid;
  aspect-ratio: 2.41 / 1;
  place-items: center;
}

.construction-figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.step-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.step-card {
  position: relative;
  min-height: 158px;
  padding-top: 50px;
}

.step-card span {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.step-card.green span { background: #75b95e; }
.step-card.blue span { background: var(--blue); }
.step-card.orange span { background: var(--orange); }
.step-card.violet span { background: var(--violet); }

.benchmark-layout,
.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}

.domain-panel {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.domain-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
}

.domain-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  min-width: 42px;
  content: "";
  background: color-mix(in srgb, var(--c) 28%, transparent);
}

.domain-row span,
.domain-row strong {
  position: relative;
}

.domain-row strong {
  color: var(--c);
  font-size: 1.08rem;
}

.table-figure {
  align-self: stretch;
}

.table-figure img {
  height: 100%;
  object-fit: contain;
}

.format-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.format-rail span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #24415f;
  font-weight: 800;
}

.leaderboard-shell {
  padding: 14px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.92)),
    #fff;
}

.leaderboard-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.leaderboard-toolbar h3 {
  margin-bottom: 4px;
  font-size: 1.22rem;
}

.leaderboard-toolbar p {
  margin: 0;
  color: var(--muted);
}

.sort-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(32, 101, 200, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.sort-button {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: #43617e;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}

.sort-button:hover,
.sort-button:focus-visible {
  color: var(--blue-deep);
  transform: translateY(-1px);
  outline: none;
}

.sort-button.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.18);
}

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

.rank-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(145px, 0.74fr) minmax(190px, 1fr) 72px;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(32, 101, 200, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  animation: list-rise 520ms var(--motion-med) both;
  animation-delay: calc(var(--stagger-index, 0) * 42ms);
  transition: transform var(--motion-med), box-shadow var(--motion-med), border-color var(--motion-med), background var(--motion-med);
}

.rank-row:first-child {
  border-color: rgba(245, 157, 74, 0.38);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--rank-color, var(--blue)) 28%, transparent);
  box-shadow: 0 14px 28px rgba(42, 83, 125, 0.12);
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rank-color, var(--blue));
  font-weight: 900;
}

.rank-model strong,
.leaderboard-table strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.rank-model span,
.leaderboard-table span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.score-bars {
  display: grid;
  gap: 8px;
}

.score-bar {
  display: grid;
  grid-template-columns: 58px 1fr 52px;
  gap: 8px;
  align-items: center;
  color: #49647f;
  font-size: 0.79rem;
  font-weight: 800;
}

.score-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef7;
}

.score-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--rank-color, var(--blue));
  transform-origin: left center;
  animation: score-grow 820ms var(--motion-slow) both;
  animation-delay: calc(120ms + var(--stagger-index, 0) * 42ms);
}

.score-bar.pass .score-fill {
  background: color-mix(in srgb, var(--rank-color, var(--blue)) 58%, var(--teal));
}

.gap-pill {
  justify-self: end;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #eef6ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.leaderboard-table-wrap {
  overflow: auto;
  border: 1px solid rgba(32, 101, 200, 0.12);
  border-radius: 18px;
  background: #fff;
}

.leaderboard-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(32, 101, 200, 0.1);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #3f5874;
  background: #f5f9fe;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-table td {
  font-weight: 800;
}

.leaderboard-table tr:last-child td {
  border-bottom: 0;
}

.leaderboard-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.cases-section {
  padding-top: 10px;
}

.case-board {
  display: grid;
  gap: 8px;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 8px;
  min-height: 190px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(32, 101, 200, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(24, 39, 75, 0.05);
  animation: list-rise 560ms var(--motion-med) both;
  animation-delay: calc(var(--stagger-index, 0) * 70ms);
  transition: border-color var(--motion-med), box-shadow var(--motion-med), transform var(--motion-med), background var(--motion-med);
}

.case-entry-board .case-card {
  grid-template-rows: auto auto 1fr auto;
  min-height: 128px;
  padding: 11px;
}

.case-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  content: "";
  opacity: 0.58;
  transition: height var(--motion-fast), opacity var(--motion-fast);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(24, 39, 75, 0.12);
}

.case-card:hover::before,
.case-card:focus-visible::before {
  height: 5px;
  opacity: 1;
}

.case-card.is-active {
  border-color: rgba(40, 168, 160, 0.48);
  background: linear-gradient(180deg, #f4fffb 0%, #fff 46%);
}

.case-card.is-active::before {
  opacity: 1;
}

.case-card-meta,
.case-source {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card h3 {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.28;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.42;
}

.case-entry-board .case-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.case-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.case-entry-board .case-card-stats {
  display: none;
}

.case-card-stats span {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(32, 101, 200, 0.11);
  border-radius: 9px;
  color: #4f6379;
  background: #f6f9fc;
  font-size: 0.74rem;
  font-weight: 800;
}

.case-card-stats b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.1;
}

.case-start {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(16, 32, 51, 0.15);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.case-start svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.case-start:hover,
.case-start:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(16, 68, 127, 0.22);
}

body.case-modal-open {
  overflow: hidden;
}

.case-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(13, 18, 28, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--motion-med), visibility var(--motion-med);
}

.case-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.case-modal {
  display: flex;
  overflow: hidden;
  width: min(1080px, 100%);
  height: min(84vh, 780px);
  flex-direction: column;
  border-radius: 16px;
  background: #0f141b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(18px) scale(0.982);
  transition: opacity var(--motion-med), transform var(--motion-slow);
}

.case-modal-overlay.is-open .case-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-modal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #1e2733;
  color: #e7edf5;
}

.case-modal-head > div {
  min-width: 0;
}

.case-modal-kicker {
  margin: 0 0 2px;
  color: #6fe0ad;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.case-modal-head h3 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-modal-head p:last-child {
  overflow: hidden;
  margin: 2px 0 0;
  color: #8a97a8;
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-modal-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #cdd6e2;
  background: #1c2530;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--motion-fast), background var(--motion-fast), color var(--motion-fast);
}

.case-modal-close:hover,
.case-modal-close:focus-visible {
  outline: none;
  background: #2a3543;
  transform: rotate(90deg);
}

.case-modal-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #0f141b;
}

.case-modal .case-workbench {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.case-workbench-compact .case-trajectory {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.case-workbench-compact .case-trajectory-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
}

.case-workbench-compact .case-model-panel {
  flex: 0 0 auto;
  max-height: 132px;
  margin-top: 0;
  overflow: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.case-workbench-compact .case-model-panel-header {
  padding: 6px 10px;
}

.case-workbench-compact .case-model-panel-header p,
.case-workbench-compact .case-model-panel-header > span {
  display: none;
}

.case-workbench-compact .case-model-row {
  grid-template-columns: minmax(122px, 0.54fr) 68px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 10px;
}

.case-workbench-compact .case-model-field:nth-child(3) {
  display: none;
}

.case-workbench {
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(32, 101, 200, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 254, 0.92)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.case-workbench-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 101, 200, 0.12);
}

.case-source {
  margin: 0 0 6px;
}

.case-workbench h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.case-chips span {
  padding: 7px 10px;
  border: 1px solid rgba(32, 101, 200, 0.12);
  border-radius: 9px;
  color: #24415f;
  background: #f2f8ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.case-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
}

.case-overview-grid section,
.case-process {
  min-width: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--teal);
}

.case-overview-grid section:nth-child(2) {
  border-left-color: var(--red);
}

.case-workbench h4 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-overview-grid p,
.case-overview-grid ul,
.case-process ol {
  margin: 0;
}

.case-overview-grid ul,
.case-process ol {
  padding-left: 18px;
}

.case-overview-grid li + li,
.case-process li + li {
  margin-top: 6px;
}

.case-process {
  margin-top: 20px;
  border-left-color: var(--orange);
}

.case-trajectory {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.18);
  border-radius: 14px;
  color: #d8e2ee;
  background: #0f141b;
  box-shadow: 0 22px 48px rgba(16, 32, 51, 0.22);
}

.case-trajectory-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #1e2733;
}

.case-trajectory h4 {
  margin: 0 0 2px;
  color: #e7edf5;
  font-size: 0.92rem;
  line-height: 1.1;
}

.case-trajectory-header p {
  margin: 0;
  color: #8a97a8;
  font-size: 0.74rem;
  font-weight: 800;
}

.trajectory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  min-width: 170px;
}

.trajectory-play,
.trajectory-next {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2f8a57;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.trajectory-next {
  color: #dce8f4;
  background: #1c2530;
}

.trajectory-play:disabled,
.trajectory-next:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.trajectory-controls span {
  color: #8a97a8;
  font-size: 0.74rem;
  font-weight: 900;
  min-width: 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.case-run-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  min-height: 0;
  padding: 6px;
}

.case-run-tabs::before {
  content: "Models";
  margin: 0 3px 1px;
  color: #6fe0ad;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.case-run-tab {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #233040;
  border-radius: 8px;
  color: #c8d2df;
  background: #161f2a;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.case-run-tab strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-run-tab span {
  color: #8a97a8;
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.case-run-tab.is-active {
  border-color: #2f8a57;
  color: #e1f6ec;
  background: #15241c;
  box-shadow: inset 0 0 0 1px rgba(47, 138, 87, 0.45);
}

.case-run-tab.is-active span {
  color: #a3d6b7;
}

.case-run-tab.is-muted {
  color: #748294;
  background: #121922;
}

.case-run-tab:hover,
.case-run-tab:focus-visible {
  outline: none;
  border-color: #2f3e54;
  background: #1b2735;
  transform: translateX(2px);
}

.trajectory-progress {
  overflow: hidden;
  height: 4px;
  background: #1e2733;
}

.trajectory-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #3aaf85, #eeb94a);
  transition: width 360ms var(--motion-med);
}

.case-trajectory.is-playing .trajectory-progress span {
  background-size: 180% 100%;
  animation: trajectory-shimmer 1.2s linear infinite;
}

.case-trajectory-grid {
  display: grid;
  grid-template-columns: minmax(156px, 0.22fr) minmax(230px, 0.38fr) minmax(0, 1fr);
  min-height: 610px;
  max-height: 760px;
}

.case-replay-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0e131b;
  border-right: 1px solid #1e2733;
}

.case-prompt-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px 10px;
  border-top: 1px solid #1e2733;
}

.case-prompt-panel h5 {
  margin: 0 0 5px;
  color: #6fe0ad;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  line-height: 1;
  text-transform: uppercase;
}

.case-prompt-panel p {
  margin: 0;
  color: #cdd6e2;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.58;
}

.trajectory-steps {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  margin: 0;
  padding: 8px 10px 12px;
  list-style: none;
  scroll-behavior: smooth;
  background: #11171f;
  border-right: 1px solid #1e2733;
}

.trajectory-step-button {
  --event-color: var(--blue);
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 2px 5px;
  min-height: 66px;
  padding: 7px 8px 9px 31px;
  border: 0;
  border-radius: 8px;
  color: #cdd6e2;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  opacity: 0.64;
  transition: opacity var(--motion-fast), background var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}

.trajectory-step-button::before {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid color-mix(in srgb, var(--event-color), #101720 16%);
  border-radius: 50%;
  background: #11171f;
  content: "";
}

.trajectory-step-button::after {
  position: absolute;
  top: 24px;
  bottom: -10px;
  left: 16px;
  width: 1px;
  background: #253140;
  content: "";
  transition: background var(--motion-fast);
}

.trajectory-steps li:last-child .trajectory-step-button::after {
  display: none;
}

.trajectory-step-button span {
  grid-column: 1 / 2;
  color: #7fe3b1;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trajectory-step-button mark {
  grid-column: 2 / 3;
  align-self: start;
  padding: 2px 5px;
  border-radius: 6px;
  color: color-mix(in srgb, var(--event-color), #fff 28%);
  background: color-mix(in srgb, var(--event-color), transparent 78%);
  font-size: 0.64rem;
  font-weight: 900;
}

.trajectory-step-button strong {
  grid-column: 1 / 3;
  color: #e2eaf4;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.22;
}

.trajectory-step-button small {
  grid-column: 1 / 3;
  color: #9fb0c3;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.38;
}

.trajectory-step-button em {
  grid-column: 1 / 3;
  color: #6f7d8f;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.trajectory-step-button.user { --event-color: var(--teal); }
.trajectory-step-button.assistant { --event-color: var(--blue); }
.trajectory-step-button.tool-call { --event-color: var(--violet); }
.trajectory-step-button.tool-result { --event-color: var(--green); }
.trajectory-step-button.judge { --event-color: var(--red); }
.trajectory-step-button.meta { --event-color: #7c6f64; }

.trajectory-step-button.is-active {
  opacity: 1;
  background: color-mix(in srgb, var(--event-color), transparent 88%);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--event-color), #fff 12%);
}

.trajectory-step-button.is-active::before {
  border-color: color-mix(in srgb, var(--event-color), #fff 16%);
  background: var(--event-color);
}

.case-trajectory.is-playing .trajectory-step-button.is-active::before {
  animation: trajectory-pulse 1s ease-in-out infinite;
}

.trajectory-step-button:hover,
.trajectory-step-button:focus-visible {
  outline: none;
  opacity: 1;
  background: #1b2735;
  transform: translateX(3px);
}

.trajectory-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  color: #eaf2fb;
  background: #0b0f15;
}

.case-trajectory.is-refreshing .trajectory-detail h5,
.case-trajectory.is-refreshing .trajectory-detail pre,
.case-trajectory.is-refreshing .trajectory-detail dl {
  animation: detail-rise 360ms var(--motion-med) both;
}

.case-trajectory.is-refreshing .trajectory-detail pre {
  animation-delay: 45ms;
}

.case-trajectory.is-refreshing .trajectory-detail dl {
  animation-delay: 90ms;
}

.trajectory-detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 5px;
}

.trajectory-detail-topline span,
.trajectory-kind {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 6px;
  color: #d9ecff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trajectory-kind.user { color: #d7fff3; background: rgba(40, 168, 160, 0.22); }
.trajectory-kind.assistant { color: #d9ecff; background: rgba(32, 101, 200, 0.3); }
.trajectory-kind.tool-call { color: #f3e5ff; background: rgba(135, 82, 191, 0.32); }
.trajectory-kind.tool-result { color: #e5ffef; background: rgba(45, 132, 85, 0.3); }
.trajectory-kind.judge { color: #ffe3e3; background: rgba(230, 84, 84, 0.32); }
.trajectory-kind.meta { color: #f8eedf; background: rgba(124, 111, 100, 0.32); }

.trajectory-detail h5 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
}

.trajectory-detail pre {
  min-height: 190px;
  max-height: 460px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(3, 10, 20, 0.46);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.case-trajectory.is-playing .trajectory-detail pre {
  box-shadow: inset 0 0 0 1px rgba(245, 157, 74, 0.22);
}

.trajectory-detail p {
  margin: 0;
  color: #dbeafe;
}

.trajectory-detail dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
}

.trajectory-detail div {
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.trajectory-detail dt {
  margin-bottom: 2px;
  color: #93b7dd;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trajectory-detail dd {
  margin: 0;
  color: #eef6ff;
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@keyframes trajectory-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 180% 50%; }
}

@keyframes trajectory-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--event-color), transparent 56%); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--event-color), transparent 100%); }
}

.case-model-panel {
  margin-top: 12px;
  border: 1px solid rgba(32, 101, 200, 0.12);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.case-model-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-end;
  padding: 6px 8px;
  background: #f6f9fc;
  border-bottom: 1px solid rgba(32, 101, 200, 0.1);
}

.case-model-panel-header h4 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.1;
}

.case-model-panel-header p,
.case-model-panel-header span {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.case-model-list {
  display: grid;
}

.case-model-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) 84px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-top: 1px solid rgba(32, 101, 200, 0.1);
  background: #fff;
  cursor: pointer;
  transition: background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}

.case-model-row:first-child {
  border-top: 0;
}

.case-model-row:hover,
.case-model-row:focus-visible {
  outline: none;
  background: #f7fbff;
  transform: translateX(3px);
}

.case-model-row.is-active {
  background: #f1fbf6;
  box-shadow: inset 4px 0 0 #3aaf85;
}

.case-model-identity strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.18;
}

.case-model-identity span,
.case-model-field span {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
}

.case-model-field p {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 0;
  color: #264058;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.case-model-score {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.case-score-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--blue-deep) !important;
  background: #eef6ff;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
}

.case-score-pill.is-muted {
  color: #6f7f8e !important;
  background: #eef1f4;
}

.result-stack {
  display: grid;
  gap: 14px;
}

.result-card {
  min-height: 150px;
}

.result-card.navy {
  color: var(--blue-deep);
}

.result-card.blue {
  color: var(--blue);
}

.result-card.orange {
  color: var(--orange);
}

.result-number {
  display: block;
  margin-bottom: 12px;
  color: currentColor;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
}

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

.finding-card {
  min-height: 210px;
  border-top: 5px solid var(--teal);
}

.finding-card:nth-child(2) { border-top-color: var(--orange); }
.finding-card:nth-child(3) { border-top-color: var(--blue); }
.finding-card:nth-child(4) { border-top-color: var(--violet); }
.finding-card:nth-child(5) { border-top-color: var(--red); }
.finding-card:nth-child(6) { border-top-color: var(--green); }

.evaluation-section {
  padding-top: 40px;
}

.evaluation-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 251, 246, 0.94)),
    #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.metric-grid article {
  min-height: 130px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.metric-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
}

.metric-grid p,
.bibtex {
  margin: 0;
}

.citation-section {
  padding-top: 48px;
}

.bibtex {
  overflow-x: auto;
  padding: 24px;
  border-radius: var(--radius-md);
  color: #193049;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(32, 101, 200, 0.16);
  color: var(--muted);
  font-weight: 700;
}

.footer a {
  color: var(--blue-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.992);
  filter: blur(3px);
  transition: opacity var(--motion-slow), transform var(--motion-slow), filter var(--motion-slow);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.is-visible > :is(.stat-card, .reason-card, .step-card, .finding-card, .result-card, .domain-row, .format-rail span),
.reveal.is-visible :is(.metric-grid article) {
  animation: item-rise 620ms var(--motion-slow) both;
  animation-delay: calc(var(--stagger-index, 0) * 70ms);
}

@keyframes item-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes list-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes score-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes detail-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero,
  .split-section,
  .benchmark-layout,
  .leaderboard-layout,
  .leaderboard-grid,
  .case-board,
  .evaluation-board {
    grid-template-columns: 1fr;
  }

  .case-trajectory-grid {
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    max-height: none;
  }

  .trajectory-detail {
    grid-column: 1 / -1;
  }

  .case-model-row {
    grid-template-columns: minmax(130px, 0.55fr) 84px minmax(0, 1fr);
  }

  .case-model-field:nth-of-type(3),
  .case-model-field:nth-of-type(4),
  .case-model-field:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 0;
    padding-top: 118px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .reason-grid,
  .step-grid,
  .finding-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    position: static;
  }

  .leaderboard-layout {
    gap: 12px;
  }

  .case-trajectory-header {
    flex-direction: column;
  }

  .case-run-tabs,
  .trajectory-controls {
    justify-content: flex-start;
    max-width: none;
  }

  .result-stack,
  .leaderboard-metrics,
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

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

  .section-pad {
    width: min(calc(100% - 24px), var(--max));
    padding: 30px 0;
  }

  .tinted {
    width: 100%;
    max-width: none;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    gap: 12px;
    padding-top: 82px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .hero-figure {
    padding: 8px;
    border-radius: 24px;
  }

  .hero-figure::before {
    display: none;
  }

  .hero-figure img {
    min-height: 0;
    border-radius: 17px;
  }

  .stat-strip,
  .reason-grid,
  .step-grid,
  .finding-grid,
  .result-stack,
  .leaderboard-metrics,
  .case-list,
  .case-overview-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .compact {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .stat-card {
    min-height: 98px;
  }

  .wide-figure,
  .leaderboard-figure,
  .table-figure {
    padding: 8px;
    border-radius: 22px;
  }

  .leaderboard-shell {
    padding: 9px;
    border-radius: 18px;
  }

  .leaderboard-toolbar {
    flex-direction: column;
  }

  .case-workbench {
    padding: 16px;
    border-radius: 18px;
  }

  .case-workbench-header {
    flex-direction: column;
  }

  .case-trajectory-header,
  .case-model-panel-header {
    align-items: flex-start;
  }

  .case-trajectory-grid,
  .case-model-row {
    grid-template-columns: 1fr;
  }

  .case-replay-side {
    border-right: 0;
    border-bottom: 1px solid #1e2733;
  }

  .case-run-tabs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
  }

  .case-run-tabs::before {
    display: none;
  }

  .case-run-tab {
    min-width: 156px;
  }

  .case-prompt-panel {
    max-height: 200px;
  }

  .trajectory-detail dl {
    grid-template-columns: 1fr;
  }

  .trajectory-steps {
    height: auto;
    max-height: 340px;
    border-right: 0;
    border-bottom: 1px solid #1e2733;
  }

  .trajectory-detail pre {
    min-height: 160px;
    max-height: 280px;
  }

  .case-model-panel-header {
    flex-direction: column;
  }

  .case-chips {
    justify-content: flex-start;
  }

  .sort-controls {
    width: 100%;
  }

  .sort-button {
    flex: 1 1 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .rank-row {
    grid-template-columns: 38px 1fr;
    gap: 10px 12px;
  }

  .score-bars,
  .gap-pill {
    grid-column: 2 / -1;
  }

  .gap-pill {
    justify-self: start;
  }

  .leaderboard-figure img {
    min-height: 0;
  }

  .domain-panel,
  .evaluation-board {
    padding: 18px;
    border-radius: 24px;
  }

  .result-card,
  .finding-card,
  .step-card,
  .reason-card {
    min-height: auto;
  }

  .footer {
    width: min(calc(100% - 24px), var(--max));
    flex-direction: column;
    padding-bottom: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
