:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5e697b;
  --paper: #f6f4ef;
  --panel: #ffffff;
  --line: #dad6cc;
  --accent: #c13f3a;
  --accent-strong: #972922;
  --red: #c13f3a;
  --blue: #315d8d;
  --green: #2f745c;
  --gold: #a86f20;
  --shadow: 0 18px 55px rgba(25, 33, 45, 0.14);
  --content-width: 1320px;
  --content-gutter: 40px;
  --content-gutter-mobile: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(218, 214, 204, 0.9);
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  border-bottom: 2px solid transparent;
  padding: 20px 0 18px;
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image: url("fika_bench_background.jpg");
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 19, 30, 0.68);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - var(--content-gutter)));
  margin: 0 auto;
  padding: 92px 0 68px;
  color: #fffdf7;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3b25d;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 12px;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 760;
  line-height: 1.08;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 253, 247, 0.88);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 253, 247, 0.55);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
  color: #fffdf7;
  font-weight: 760;
  text-shadow: none;
}

.button-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.button.compact {
  flex: 0 0 auto;
  border-color: var(--ink);
  background: var(--ink);
}

.stats-strip {
  width: min(var(--content-width), calc(100% - var(--content-gutter)));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 840;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.section {
  width: min(var(--content-width), calc(100% - var(--content-gutter)));
  margin: 0 auto;
  padding: 88px 0;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

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

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

.section-heading > p:not(.section-kicker):last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.centered-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered-heading h2 {
  margin-right: auto;
  margin-left: auto;
}

.task-section {
  padding-bottom: 54px;
}

.task-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.case-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8f7f2;
  overflow-x: auto;
}

.case-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.case-tab:hover,
.case-tab:focus,
.case-tab.is-active {
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(49, 93, 141, 0.14);
  outline: none;
}

.case-stage {
  display: grid;
  grid-template-columns: minmax(310px, 0.36fr) minmax(0, 1.64fr);
  gap: 1px;
  align-items: stretch;
  background: var(--line);
}

.case-observation,
.case-comparison {
  background: #fff;
}

.case-observation {
  display: grid;
  grid-template-rows: 360px auto 1fr;
  align-content: stretch;
  min-width: 0;
}

.case-image-wrap {
  position: relative;
  height: 360px;
  min-height: 330px;
  background: #efede6;
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
  display: block;
}

.case-domain {
  position: absolute;
  left: 18px;
  top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(23, 32, 51, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(6px);
}

.case-question {
  min-height: 0;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #fbfaf6;
}

.case-question span,
.case-answer-label,
.trace-label,
.case-model-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-question strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.26;
}

.case-comparison {
  display: flex;
  min-width: 0;
  background: #fff;
}

.case-model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  background: #fff;
}

.case-model-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.closed-model .case-model-head {
  gap: 12px;
  min-height: 62px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.case-model-head img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.case-model-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.closed-model .case-model-head img {
  width: 32px;
  height: 32px;
}

.closed-model .case-model-head strong {
  font-size: 14px;
}

.case-answer-card {
  margin: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.case-answer-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.18;
}

.case-answer-card.incorrect {
  border-color: rgba(193, 63, 58, 0.34);
  background: #fff4f2;
}

.case-answer-card.correct {
  border-color: rgba(47, 116, 92, 0.34);
  background: #f2fbf7;
}

.judge-note,
.gold-note {
  margin: 10px 0 0;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 840;
  line-height: 1.25;
}

.judge-note {
  color: var(--red);
}

.correct .judge-note {
  color: var(--green);
}

.gold-note {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.baseline-trace {
  display: grid;
  gap: 10px;
  padding: 12px 18px 0;
}

.baseline-trace section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfaf6;
}

.baseline-trace p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.closed-model .case-answer-card {
  margin: 12px 18px 16px;
  padding: 14px;
}

.closed-model .case-answer-card strong {
  font-size: clamp(17px, 1.15vw, 20px);
}

.agent-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 14px 18px 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.14fr) minmax(190px, 0.86fr);
  gap: 12px;
}

.evidence-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f5fbf7;
}

.agent-model {
  flex: 1;
}

.evidence-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.evidence-card-head > span:not(.tool-name) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-card-head strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}

.tool-name {
  display: inline-flex;
  max-width: 100%;
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(47, 116, 92, 0.1);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tool-input,
.fetch-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.36;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.search-result {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(47, 116, 92, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.search-result img {
  width: 116px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #ede9df;
}

.search-result strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.search-result span {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 840;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.fetch-url {
  display: block;
  margin-top: 11px;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fetch-url:hover,
.fetch-url:focus {
  text-decoration: underline;
}

.page-evidence-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fbfaf6;
}

.page-region {
  margin-top: 11px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(25, 33, 45, 0.12);
  border-radius: 8px;
  background: #fff;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: #f2efe8;
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c9c2b7;
}

.browser-bar span {
  min-width: 0;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-fields {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1px;
  flex: 1;
  background: var(--line);
}

.page-field {
  display: grid;
  grid-template-columns: minmax(88px, 0.34fr) minmax(0, 0.66fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  background: #fff;
}

.page-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-field strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.task-visual figcaption {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.case-board-mount {
  background: #fff;
}

.case-flow-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.case-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px 0 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.case-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eee9de;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.case-flow-step:hover,
.case-flow-step:focus,
.case-flow-step.is-active {
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(49, 93, 141, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.case-flow-step.is-active span {
  background: var(--ink);
  color: #fff;
}

.agent-board {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.agent-board-header,
.agent-row {
  background: #fff;
}

.agent-board-header {
  display: grid;
  grid-template-columns: 168px minmax(230px, 0.68fr) minmax(380px, 1.2fr);
  gap: 12px;
  align-items: stretch;
  padding: 13px 16px;
}

.agent-board.stage-input .agent-row {
  display: none;
}

.agent-board.stage-input .agent-gemini-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.agent-board.stage-input .question-evidence,
.agent-board.stage-gemini .question-evidence {
  display: none;
}

.agent-board.stage-gemini .agent-row {
  display: none;
}

.agent-board.stage-agent .agent-gemini-panel,
.agent-board.stage-agent .agent-row,
.agent-board.stage-gemini .agent-gemini-panel {
  animation: caseReveal 360ms ease both;
}

@keyframes caseReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-photo {
  overflow: hidden;
  border-radius: 8px;
  background: #ece7dc;
}

.agent-board-header .case-photo {
  height: auto;
  min-height: 132px;
}

.case-photo img,
.evidence-shot img {
  width: 100%;
  height: 100%;
}

.case-photo img {
  object-fit: contain;
}

.evidence-shot {
  overflow: hidden;
  border: 1px solid rgba(25, 33, 45, 0.12);
  border-radius: 8px;
  background: #f1eee7;
}

.evidence-shot img {
  object-fit: cover;
  object-position: top center;
}

.question-panel {
  display: grid;
  min-width: 0;
}

.centered-domain {
  align-content: center;
  justify-items: start;
}

.agent-board-header .question-panel {
  align-content: start;
  gap: 8px;
}

.question-label,
.mini-label,
.tool-chip,
.domain-pill {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.domain-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(23, 32, 51, 0.08);
  color: var(--ink);
}

.question-text {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
}

.question-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.12fr);
  gap: 7px;
  margin-top: 4px;
}

.question-evidence div {
  min-width: 0;
  border: 1px solid rgba(25, 33, 45, 0.08);
  border-radius: 7px;
  padding: 7px 8px;
  background: #fff;
}

.question-evidence span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.question-evidence strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.model-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.model-line img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.model-line span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.model-line strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.agent-gemini-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(193, 63, 58, 0.28);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
}

.agent-gemini-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.28;
}

.gemini-substeps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 8px;
}

.gemini-substeps > section,
.gemini-substeps > .model-answer-box {
  min-width: 0;
  border: 1px solid rgba(193, 63, 58, 0.18);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff4f2;
}

.model-answer-box strong,
.agent-direct-answer {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.model-answer-box small,
.answer-substep small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gemini-answer-box small {
  color: var(--red);
}

.agent-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.agent-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.agent-row-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-substeps {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(350px, 1.35fr) minmax(260px, 1fr) minmax(210px, 0.84fr);
  gap: 10px;
}

.agent-substeps.compact {
  grid-template-columns: minmax(160px, 0.68fr) minmax(320px, 1.18fr) minmax(245px, 0.94fr) minmax(200px, 0.76fr);
}

.agent-substep {
  min-width: 0;
  border: 1px solid rgba(47, 116, 92, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: #f5fbf7;
}

.agent-substeps.compact .agent-substep {
  padding: 11px;
}

.agent-substep p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 10px;
}

.step-title b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.step-title h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tool-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(47, 116, 92, 0.1);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.1;
  text-transform: none;
  overflow-wrap: anywhere;
}

.representative-pair {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(145px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 9px;
}

.representative-shot {
  height: 112px;
}

.representative-shot img {
  object-fit: contain;
  background: #f7f3ec;
}

.representative-copy {
  border: 1px solid rgba(25, 33, 45, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.representative-copy p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 650;
}

.url-chip {
  display: block;
  margin-top: 9px;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.fact-list {
  display: grid;
  gap: 7px;
}

.fact-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(25, 33, 45, 0.08);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.fact-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.fact-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.answer-substep {
  display: grid;
  align-content: start;
}

.answer-substep small {
  color: var(--green);
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.info-panel,
.result-callout,
.bar-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 33, 45, 0.08);
}

.info-panel {
  min-height: 245px;
  padding: 24px;
}

.metric-list {
  margin: 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.metric-list dt {
  color: var(--muted);
  font-weight: 680;
}

.metric-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.process-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.process-list li {
  margin-bottom: 14px;
}

.taxonomy-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(300px, 0.7fr);
  gap: 24px;
  margin: 34px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.taxonomy-chart-wrap {
  display: grid;
  place-items: center;
  min-height: 480px;
}

.taxonomy-chart {
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.taxonomy-ring,
.taxonomy-subring {
  cursor: pointer;
  outline: none;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.taxonomy-ring {
  opacity: 0.94;
  stroke: #fff;
  stroke-width: 4;
}

.taxonomy-subring {
  opacity: 0.72;
  stroke: #fff;
  stroke-width: 3;
}

.taxonomy-ring:hover,
.taxonomy-ring:focus,
.taxonomy-subring:hover,
.taxonomy-subring:focus,
.taxonomy-ring.is-active,
.taxonomy-subring.is-active {
  opacity: 1;
  filter: drop-shadow(0 8px 14px rgba(23, 32, 51, 0.22));
  transform: scale(1.012);
}

.taxonomy-core {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 2;
}

.taxonomy-core-number {
  fill: var(--ink);
  font-size: 42px;
  font-weight: 850;
}

.taxonomy-core-label {
  fill: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.taxonomy-label {
  pointer-events: none;
  fill: #fff;
  font-size: 16px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(23, 32, 51, 0.34);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.taxonomy-count-label {
  display: none;
  pointer-events: none;
  fill: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(23, 32, 51, 0.28);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.taxonomy-sub-label {
  pointer-events: none;
  fill: var(--ink);
  font-size: 11px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.taxonomy-details {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 12px 4px;
}

.taxonomy-details h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.taxonomy-details p {
  color: var(--muted);
}

.taxonomy-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.taxonomy-total span:first-child {
  color: var(--accent-strong);
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
}

.taxonomy-total span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.subcat-list {
  display: grid;
  gap: 10px;
}

.subcat-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.subcat-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.subcat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subcat-count {
  color: var(--ink);
  font-weight: 850;
}

.results-section {
  border-top: 1px solid var(--line);
  padding-bottom: 48px;
}

.dataset-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.leaderboard-visual {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.chart-panel,
.leaderboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 33, 45, 0.08);
}

.chart-panel {
  padding: 26px 28px 22px;
}

.chart-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.chart-panel-head h3 {
  margin: 0;
  font-size: 22px;
}

.chart-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.accuracy-chart-scroller,
.leaderboard-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.accuracy-chart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-width: 940px;
}

.chart-axis {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  height: 410px;
  padding: 25px 0 70px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-align: right;
}

.chart-plot {
  position: relative;
  min-width: 0;
}

.chart-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(25, 33, 45, 0.09);
}

.line-30 {
  top: 25px;
}

.line-20 {
  top: 130px;
}

.line-10 {
  top: 235px;
}

.line-0 {
  top: 340px;
  background: rgba(25, 33, 45, 0.18);
}

.bar-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(15, minmax(54px, 1fr));
  gap: 10px;
  height: 410px;
  padding: 0 8px;
}

.chart-bar {
  position: relative;
  display: grid;
  grid-template-rows: 25px 315px 42px 18px;
  min-width: 0;
  text-align: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.chart-bar:hover,
.chart-bar:focus,
.chart-bar.is-hovered {
  z-index: 3;
  transform: translateY(-5px);
  filter: drop-shadow(0 12px 18px rgba(25, 33, 45, 0.16));
  outline: none;
}

.chart-bar::after {
  content: none;
}

.bar-value {
  align-self: end;
  color: var(--ink);
  font-size: 12px;
  font-weight: 880;
  line-height: 1;
}

.bar-column {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 0;
}

.bar-column span {
  display: block;
  width: min(100%, 42px);
  height: var(--bar-height);
  min-height: 5px;
  border-radius: 5px 5px 0 0;
  background: var(--bar-color, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: width 160ms ease, box-shadow 160ms ease;
}

.chart-bar:hover .bar-column span,
.chart-bar:focus .bar-column span,
.chart-bar.is-hovered .bar-column span {
  width: min(100%, 50px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88), 0 12px 22px rgba(25, 33, 45, 0.18);
}

.chart-bar strong {
  align-self: start;
  min-width: 0;
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.chart-bar em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bar-open {
  --bar-color: var(--blue);
}

.bar-closed {
  --bar-color: var(--accent);
}

.bar-agent {
  --bar-color: var(--green);
}

.bar-fine {
  --bar-color: var(--gold);
}

.chart-bar.is-best .bar-column span {
  background: linear-gradient(180deg, #d9983d, var(--accent-strong));
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

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

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.chart-tooltip {
  position: fixed;
  z-index: 80;
  max-width: min(280px, calc(100vw - 32px));
  border: 1px solid rgba(25, 33, 45, 0.1);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 26px rgba(25, 33, 45, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity 120ms ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.legend-open {
  background: var(--blue);
}

.legend-closed {
  background: var(--accent);
}

.legend-agent {
  background: var(--green);
}

.legend-fine {
  background: var(--gold);
}

.leaderboard-panel {
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  font-size: 12px;
}

.leaderboard-table th {
  border-right: 1px solid rgba(25, 33, 45, 0.08);
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  background: #f8f7f2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 880;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  border-right: 0;
}

.leaderboard-table td {
  border-right: 1px solid rgba(25, 33, 45, 0.06);
  border-bottom: 1px solid rgba(25, 33, 45, 0.08);
  padding: 9px 8px;
  color: var(--muted);
  font-weight: 720;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table tbody tr:hover {
  background: #fbfaf6;
}

.leaderboard-table td:nth-child(1),
.leaderboard-table td:nth-child(2),
.leaderboard-table td:nth-child(14) {
  color: var(--ink);
  font-weight: 880;
}

.leaderboard-table td:nth-child(2) {
  min-width: 262px;
  text-align: left;
}

.leaderboard-table td:nth-child(3) {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-table .rank-one {
  background: #fffaf5;
}

.results-list {
  display: grid;
  gap: 14px;
}

.result-system {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 33, 45, 0.08);
}

.result-system.is-best {
  border-color: rgba(151, 41, 34, 0.28);
  background: #fffaf5;
}

.result-system-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.result-group {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-system h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.overall-score {
  color: var(--accent-strong);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 880;
  line-height: 0.95;
  text-align: right;
}

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

.overall-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

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

.result-summary div {
  min-width: 0;
  border: 1px solid rgba(25, 33, 45, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfaf6;
}

.result-summary span,
.split-grid > section > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.split-grid section {
  min-width: 0;
  border: 1px solid rgba(25, 33, 45, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.split-grid dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0 0;
}

.split-grid dl div {
  min-width: 0;
  border-radius: 7px;
  padding: 8px 7px;
  background: #f5f2eb;
}

.split-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.split-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 870;
  line-height: 1;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.result-callout {
  padding: 28px;
  background: #1c2636;
  color: #fffdf7;
}

.callout-number {
  display: block;
  margin-bottom: 18px;
  color: #f3b25d;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 860;
  line-height: 0.95;
}

.result-callout p {
  color: rgba(255, 253, 247, 0.78);
}

.bar-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(120px, 1fr) 44px;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.bar-row strong {
  color: var(--ink);
  text-align: right;
}

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

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.score-kimi {
  width: 84%;
}

.score-gemini {
  width: 69%;
  background: var(--blue);
}

.score-openclaw {
  width: 63%;
  background: var(--green);
}

.score-gpt {
  width: 58%;
  background: var(--gold);
}

.score-agent8b {
  width: 46%;
}

.comparison-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #efeae0;
}

.comparison-band p {
  margin-bottom: 0;
  color: var(--muted);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid #2d3646;
  border-radius: 8px;
  background: #111827;
  color: #eef2f7;
  font-size: 14px;
  line-height: 1.55;
}

.prose pre {
  margin: 22px 0;
}

.citation-section pre {
  width: 100%;
  margin: 0 auto;
}

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

.citation-section .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 34px 20px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.site-footer span {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 20px 0;
  }

  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
  }

  .nav a {
    padding: 8px 0 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: 70vh;
  }

  .stats-strip,
  .dataset-grid,
  .case-stage,
  .case-comparison,
  .result-layout,
  .taxonomy-panel,
  .two-column,
  .agent-board-header,
  .agent-substeps,
  .agent-substeps.compact,
  .gemini-substeps,
  .representative-pair,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .case-observation {
    grid-template-rows: auto auto auto;
  }

  .case-image-wrap,
  .case-image-wrap img {
    height: 320px;
    min-height: 280px;
  }

  .agent-board-header .case-photo {
    height: 210px;
  }

  .agent-board.stage-input .agent-gemini-panel {
    display: none;
  }

  .agent-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-substep .representative-shot,
  .agent-substeps.compact .representative-shot {
    height: 180px;
  }

  .stats-strip {
    box-shadow: none;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .two-column {
    gap: 24px;
  }

  .comparison-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .taxonomy-chart-wrap {
    min-height: auto;
  }

  .taxonomy-details {
    padding: 4px 0 0;
  }

  .taxonomy-label {
    font-size: 15px;
  }

  .taxonomy-count-label,
  .taxonomy-sub-label {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .section,
  .stats-strip {
    width: min(calc(100% - var(--content-gutter-mobile)), var(--content-width));
  }

  .hero-inner {
    padding: 68px 0 48px;
  }

  .hero-copy,
  .prose,
  .section-heading p:last-child {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .bar-panel {
    padding: 20px;
  }

  .case-tabs {
    padding: 12px;
  }

  .result-system-head,
  .result-summary,
  .split-grid dl {
    grid-template-columns: 1fr;
  }

  .overall-score {
    text-align: left;
  }

  .case-question {
    min-height: auto;
    padding: 18px;
  }

  .case-question strong {
    font-size: 18px;
  }

  .case-model-head,
  .case-answer-card {
    margin-left: 16px;
    margin-right: 16px;
  }

  .case-model-head {
    padding: 16px 0;
  }

  .baseline-trace,
  .agent-workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .search-result {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .search-result img {
    width: 88px;
    height: 66px;
  }

  .case-answer-card {
    padding: 17px;
  }

  .bar-row {
    grid-template-columns: 1fr 44px;
    gap: 8px 12px;
  }

  .bar-row span {
    min-width: 0;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
