:root {
  --text: #202124;
  --muted: #5f6368;
  --line: #dfe3ea;
  --surface: #ffffff;
  --soft-surface: #f6f8fb;
  --accent: #2f6f9f;
  --accent-dark: #234f72;
  --accent-soft: #e8f2f8;
  --shadow: 0 18px 50px rgba(31, 45, 61, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 32px), 1040px);
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 32px), 920px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-logo {
  color: var(--text);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a.active {
  color: var(--accent-dark);
}

.hero {
  padding: 78px 0 52px;
  text-align: center;
}

.leaderboard-hero {
  padding: 78px 0 28px;
  text-align: center;
}

.venue {
  margin: 0 0 12px;
  color: #b33939;
  font-weight: 700;
}

h1,
h2,
h3,
.comparison-title {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.15;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
}

.subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 28px;
  font-size: 1.05rem;
}

.authors a {
  color: var(--accent);
  font-weight: 500;
}

.authors a:hover {
  color: var(--accent-dark);
}

.affiliation {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: #252a31;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.14);
}

.button:hover {
  color: #ffffff;
  background: var(--accent-dark);
  text-decoration: none;
}

.section {
  padding: 62px 0;
}

.section-muted {
  background: var(--soft-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figure-panel {
  margin-bottom: 32px;
}

.overview-figure {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-placeholder,
.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 330px;
  color: var(--accent-dark);
  background:
    linear-gradient(135deg, rgba(47, 111, 159, 0.12), rgba(116, 151, 132, 0.18)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(47, 111, 159, 0.08) 18px 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.caption {
  max-width: 780px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.lead {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: 1.12rem;
}

.task-definitions {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 4px auto 0;
  font-size: 1.12rem;
}

.task-definitions div {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.task-definitions dt {
  color: var(--text);
  font-weight: 700;
}

.task-definitions dd {
  margin: 0;
}

.subagent-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 22px;
  align-items: center;
  max-width: 900px;
  margin: 22px auto 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f8fbfd, #ffffff);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.subagent-callout-copy > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subagent-callout h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.subagent-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.subagent-scenarios {
  display: grid;
  gap: 8px;
}

.subagent-scenarios span {
  display: block;
  padding: 8px 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 111, 159, 0.16);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.section-intro {
  max-width: 780px;
  margin: -4px 0 28px;
  color: var(--muted);
}

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

.demo-list {
  display: grid;
  gap: 30px;
}

.demo-subsection {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.demo-subsection > h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.subagent-effects-subsection > h3,
.ablation-subsection > h3 {
  margin-bottom: 20px;
}

.subagent-comparison + .subagent-comparison,
.ablation-comparison + .ablation-comparison {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

@media (min-width: 1080px) {
  .subagent-effects-subsection .subagent-comparison-grid {
    width: min(calc(100vw - 48px), 1480px);
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.comparison-title {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
}

.subagent-comparison-grid,
.ablation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 22px;
  align-items: stretch;
}

.subagent-comparison-card,
.ablation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.subagent-comparison-card .demo-video-frame,
.subagent-comparison-card .demo-video,
.ablation-card .demo-video-frame,
.ablation-card .demo-video {
  min-height: 0;
}

.subagent-comparison-card .demo-video-frame,
.subagent-comparison-card .trace-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.subagent-effects-subsection .subagent-comparison-card .demo-video-frame {
  flex: 0 0 auto;
  height: auto;
}

.subagent-comparison-card .demo-video,
.ablation-card .demo-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (min-width: 761px) {
  .subagent-effects-subsection .subagent-comparison-card .demo-video-frame-stacked .demo-video {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.subagent-comparison-card .trace-panel,
.ablation-card .trace-panel {
  min-height: 330px;
  max-height: 380px;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.subagent-comparison-card .trace-list p,
.ablation-card .trace-list p {
  padding: 0;
}

.demo-card,
.stat-card,
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-card {
  overflow: hidden;
}

.demo-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.85fr);
  min-height: 420px;
  border-bottom: 1px solid var(--line);
}

.demo-card h3,
.demo-card p {
  padding: 0 18px;
}

.demo-card h3 {
  margin-top: 18px;
}

.demo-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.media-placeholder {
  min-height: clamp(260px, 52vw, 560px);
  border-width: 0 0 1px;
  border-radius: 0;
  font-size: 1.15rem;
}

.demo-video-frame {
  position: relative;
  display: flex;
  min-height: 420px;
  height: 100%;
  background: #111827;
}

.demo-prompt-box {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 20px 42px;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  color: #27313d;
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
}

.demo-prompt-box strong {
  color: var(--text);
  font-weight: 800;
}

.demo-video-frame-stacked {
  flex-direction: column;
}

.demo-video-frame-stacked .demo-prompt-box {
  position: static;
  z-index: auto;
  display: block;
  min-height: 0;
  max-height: 172px;
  overflow-y: auto;
  padding: 14px 18px 16px;
  background: #f8fafc;
  box-shadow: none;
  color: var(--text);
  text-align: left;
}

.demo-video-frame-stacked .demo-prompt-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.demo-prompt-content {
  display: grid;
  gap: 8px;
}

.demo-card .demo-prompt-content p {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.42;
}

.demo-video-frame-stacked .demo-video {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #111827;
  object-fit: contain;
}

.trace-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 620px;
  background: #f8fafc;
  border-left: 1px solid var(--line);
}

.trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.trace-header strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
}

.trace-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  margin: 0;
  padding: 14px;
  list-style: none;
  scroll-behavior: smooth;
}

.trace-list li {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.46;
  transition: opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.trace-list li.trace-note {
  cursor: default;
  opacity: 1;
  background: #eef3f8;
}

.trace-list li.trace-note:hover,
.trace-list li.trace-note:focus-visible {
  border-color: var(--line);
  box-shadow: none;
  outline: none;
  transform: none;
}

.trace-list li:hover,
.trace-list li:focus-visible {
  border-color: rgba(47, 111, 159, 0.5);
  box-shadow: 0 8px 20px rgba(47, 111, 159, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.trace-list li.is-visible {
  opacity: 1;
}

.trace-list li.is-active {
  border-color: rgba(47, 111, 159, 0.5);
  box-shadow: 0 10px 24px rgba(47, 111, 159, 0.12);
}

.trace-list li > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.trace-list p {
  margin: 0;
  color: #27313d;
  font-size: 0.92rem;
  line-height: 1.5;
}

.trace-danger {
  color: #b42318;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 30px;
}

.key-results-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.key-results-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  background: #eef3f8;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: var(--accent-dark);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.key-results-list h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.key-results-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.result-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.result-highlight {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.result-highlight span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-highlight h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.result-highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.result-figure {
  margin: 34px 0 0;
}

.result-figure img {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-figure figcaption {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.result-figure-wide {
  margin-top: 28px;
}

.result-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  margin: 38px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-explainer h3 {
  margin-bottom: 10px;
}

.result-explainer p {
  margin: 0;
  color: var(--muted);
}

.result-explainer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-weight: 500;
}

.leaderboard-summary {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1.25fr;
  gap: 16px;
  margin-bottom: 28px;
}

.summary-metric {
  padding: 20px;
  background: var(--soft-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.stat-card {
  padding: 22px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--accent-dark);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

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

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

.bar-track span {
  display: block;
  height: 100%;
  background: #b33939;
  border-radius: inherit;
}

.leaderboard-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.chart-panel {
  overflow: hidden;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chart-heading {
  margin-bottom: 22px;
}

.chart-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.chart-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ranked-bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranked-bars li {
  display: grid;
  grid-template-columns: 28px minmax(210px, 0.42fr) minmax(260px, 1fr) 58px;
  gap: 16px;
  align-items: center;
  min-height: 36px;
}

.rank,
.ranked-bars strong {
  color: var(--muted);
  font-weight: 700;
}

.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--soft-surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.88rem;
}

.model-name {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.ranked-bars .bar-track {
  height: 14px;
}

.ranked-bars .bar-track span {
  width: calc(var(--value) * 1%);
}

.ranked-bars strong {
  color: var(--text);
  text-align: right;
}

.scatter-wrap {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: minmax(480px, 1fr) auto;
  gap: 10px 12px;
  min-height: 550px;
}

.scatter-y-label,
.scatter-x-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.scatter-y-label {
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}

.scatter-x-label {
  grid-column: 2;
  text-align: center;
}

.scatter-legend {
  display: none;
}

.scatter-plot {
  position: relative;
  min-height: 480px;
  margin: 0 36px 24px 48px;
  background:
    linear-gradient(to right, rgba(95, 99, 104, 0.14) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(to top, rgba(95, 99, 104, 0.14) 1px, transparent 1px) 0 0 / 100% 25%;
  border-left: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
}

.scatter-plot::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(95, 99, 104, 0.35) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}

.scatter-point {
  position: absolute;
  left: var(--cap);
  bottom: var(--misalignment);
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--point-color, var(--accent));
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.22);
  transform: translate(-50%, 50%);
}

.scatter-point::after {
  position: absolute;
  left: 18px;
  top: 50%;
  width: max-content;
  max-width: 150px;
  padding: 3px 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  content: attr(data-label);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  transform: translateY(-50%);
  white-space: normal;
}

.scatter-point.gpt {
  --point-color: #2e86ab;
}

.scatter-point.gpt::after {
  left: 18px;
  top: 5px;
}

.scatter-point.mini {
  --point-color: #8e5ea2;
}

.scatter-point.mini::after {
  left: 18px;
  top: 24px;
}

.scatter-point.gemini {
  --point-color: #f0a202;
}

.scatter-point.gemini::after {
  left: auto;
  right: 18px;
  top: 8px;
}

.scatter-point.qwen {
  --point-color: #c4512d;
}

.scatter-point.qwen::after {
  top: -10px;
}

.scatter-point.kimi {
  --point-color: #4c78a8;
}

.scatter-point.kimi::after {
  top: 18px;
}

.scatter-point.claude {
  --point-color: #2f9c4f;
}

.scatter-point.claude::after {
  top: -8px;
}

.legend-dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--point-color);
}

.legend-dot.gpt {
  --point-color: #2e86ab;
}

.legend-dot.mini {
  --point-color: #8e5ea2;
}

.legend-dot.gemini {
  --point-color: #f0a202;
}

.legend-dot.qwen {
  --point-color: #c4512d;
}

.legend-dot.kimi {
  --point-color: #4c78a8;
}

.legend-dot.claude {
  --point-color: #2f9c4f;
}

.tick,
.axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.tick.y {
  left: -38px;
  transform: translateY(50%);
}

.tick.x {
  bottom: -24px;
  transform: translateX(-50%);
}

.y0 {
  bottom: 0;
}

.y25 {
  bottom: 25%;
}

.y50 {
  bottom: 50%;
}

.y75 {
  bottom: 75%;
}

.y100 {
  bottom: 100%;
}

.x0 {
  left: 0;
}

.x25 {
  left: 25%;
}

.x50 {
  left: 50%;
}

.x75 {
  left: 75%;
}

.x100 {
  left: 100%;
}

.axis-label.top {
  right: 2px;
  top: 2px;
}

.axis-label.bottom {
  right: 2px;
  bottom: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.callout {
  padding: 24px;
}

.callout ul {
  margin: 0;
  padding-left: 20px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: #1f2933;
  background: #f3f5f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: flex-start;
    gap: 10px 16px;
    width: 100%;
  }

  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 44px 0;
  }

  .card-grid,
  .stats-grid,
  .result-highlights,
  .result-explainer,
  .key-results-list li,
  .leaderboard-summary,
  .leaderboard-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .image-placeholder {
    min-height: 230px;
  }

  .demo-media-grid {
    grid-template-columns: 1fr;
  }

  .subagent-comparison-grid,
  .ablation-grid {
    grid-template-columns: 1fr;
  }

  .subagent-comparison-card .demo-video-frame,
  .subagent-comparison-card .demo-video,
  .ablation-card .demo-video-frame,
  .ablation-card .demo-video {
    min-height: 0;
  }

  .demo-video-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .demo-video-frame-stacked {
    aspect-ratio: auto;
  }

  .demo-prompt-box {
    min-height: 82px;
    flex-wrap: wrap;
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .demo-video-frame-stacked .demo-prompt-box {
    max-height: 142px;
    padding: 12px 14px;
  }

  .demo-video {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .trace-panel {
    min-height: 340px;
    max-height: 420px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .task-definitions div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .subagent-callout {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .chart-panel {
    padding: 18px;
  }

  .ranked-bars li {
    grid-template-columns: 28px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .ranked-bars .bar-track {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .ranked-bars strong {
    grid-column: 3;
    grid-row: 1;
  }

  .scatter-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .scatter-y-label {
    align-self: start;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .scatter-x-label,
  .scatter-plot,
  .scatter-legend {
    grid-column: 1;
  }

  .scatter-plot {
    height: 300px;
    min-height: 300px;
    margin-left: 40px;
  }

  .scatter-point::after {
    display: none;
  }

  .scatter-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    list-style: none;
  }
}
