:root {
  --ink: #111417;
  --muted: #5b626b;
  --line: #d7dbe0;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --charcoal: #191b1f;
  --teal: #0f8b8d;
  --red: #d84a3a;
  --green: #4f8a3d;
  --expert-spatial: #7c3aed;
  --expert-spatial-soft: rgba(124, 58, 237, 0.12);
  --expert-temporal: #2563eb;
  --expert-temporal-soft: rgba(37, 99, 235, 0.12);
  --expert-guidance: #059669;
  --expert-guidance-soft: rgba(5, 150, 105, 0.14);
  --expert-state: #d84a3a;
  --expert-state-soft: rgba(216, 74, 58, 0.13);
  --shadow: 0 18px 50px rgba(17, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

main {
  display: flex;
  flex-direction: column;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid rgba(17, 20, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 220px;
}

.xpeng-brand img {
  width: 178px;
  height: auto;
}

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

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

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

.hero-section {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 5vw, 64px) clamp(20px, 4.5vw, 64px) clamp(38px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.98), rgba(247, 249, 251, 0.86)),
    radial-gradient(circle at 82% 12%, rgba(15, 139, 141, 0.13), transparent 34%),
    var(--paper);
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.hero-lockup .capek-hero-logo {
  width: min(520px, 88%);
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 740px;
  margin: 22px 0 0;
  color: #20252a;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 760;
}

.hero-summary {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.disabled-hero-button {
  position: relative;
  cursor: default;
}

.disabled-hero-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.disabled-hero-button:hover::after,
.disabled-hero-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary:not(.disabled-hero-button):hover,
.button.small:hover {
  background: rgba(17, 20, 23, 0.06);
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
}

.hero-section {
  order: 0;
}

#results {
  order: 1;
}

#demo {
  order: 2;
}

#statebench {
  order: 3;
}

#static-qa {
  order: 4;
}

#method {
  order: 5;
}

#citation {
  order: 6;
}

.hero-domain-chart,
.overview-main-figure,
.inline-figure {
  padding: 24px;
  border: 1px solid rgba(17, 20, 23, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-side {
  display: grid;
  grid-template-rows: auto;
  align-self: center;
  min-width: 0;
  margin-left: clamp(-36px, -2vw, -16px);
}

.hero-domain-chart {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(500px, 36vw, 640px);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.chart-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: 25px;
  line-height: 1.14;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

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

.legend-capek {
  background: var(--red);
}

.legend-rynnbrain {
  background: #8f99a6;
}

.legend-mimo {
  background: #a8b1bd;
}

.legend-r1 {
  background: #c1c8d0;
}

.legend-rynnbrain11 {
  background: #d0d5dc;
}

.legend-hy {
  background: #b8bec7;
}

.hero-domain-chart[data-hover-model] .chart-legend span {
  opacity: 0.28;
  filter: grayscale(0.6);
}

.hero-domain-chart[data-hover-model="capek"] .chart-legend span:nth-child(1),
.hero-domain-chart[data-hover-model="model-a"] .chart-legend span:nth-child(2),
.hero-domain-chart[data-hover-model="model-b"] .chart-legend span:nth-child(3),
.hero-domain-chart[data-hover-model="model-c"] .chart-legend span:nth-child(4),
.hero-domain-chart[data-hover-model="model-d"] .chart-legend span:nth-child(5),
.hero-domain-chart[data-hover-model="model-e"] .chart-legend span:nth-child(6) {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
  color: var(--ink);
}

.domain-chart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: clamp(270px, 18vw, 360px);
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 6px 36px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.chart-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  min-height: clamp(270px, 18vw, 360px);
  padding: 8px 8px 0;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chart-grid {
  position: absolute;
  inset: 8px 8px 36px 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(17, 20, 23, 0.08) 1px, transparent 1px)
    0 0 / 100% 33.33%;
  pointer-events: none;
}

.domain-group {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  --domain-color: #69727c;
  --domain-soft: rgba(105, 114, 124, 0.08);
}

.domain-group::before {
  content: none;
  position: absolute;
  inset: 10px 5px 34px;
  z-index: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--domain-soft), rgba(255, 255, 255, 0) 72%);
  box-shadow: inset 0 0 0 1px rgba(17, 20, 23, 0.025);
  pointer-events: none;
}

.domain-spatial {
  --domain-color: var(--expert-spatial);
  --domain-soft: rgba(124, 58, 237, 0.13);
}

.domain-temporal {
  --domain-color: var(--expert-temporal);
  --domain-soft: rgba(37, 99, 235, 0.12);
}

.domain-guidance {
  --domain-color: var(--expert-guidance);
  --domain-soft: rgba(5, 150, 105, 0.13);
}

.domain-state {
  --domain-color: var(--expert-state);
  --domain-soft: rgba(216, 74, 58, 0.12);
}

.domain-general {
  --domain-color: #69727c;
  --domain-soft: rgba(105, 114, 124, 0.1);
}

.bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-height: clamp(210px, 14vw, 290px);
  padding-top: 26px;
}

.bar {
  position: relative;
  width: min(14px, 11%);
  min-height: 6px;
  border-radius: 4px 4px 0 0;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.bar.capek {
  height: var(--v1);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(216, 74, 58, 0.24);
}

.bar.model-a {
  height: var(--v2);
  background: #8f99a6;
}

.bar.model-b {
  height: var(--v3);
  background: #a8b1bd;
}

.bar.model-c {
  height: var(--v4);
  background: #c1c8d0;
}

.bar.model-d {
  height: var(--v5);
  background: #d0d5dc;
}

.bar.model-e {
  height: var(--v6);
  background: #b8bec7;
}

.bar strong {
  position: absolute;
  left: 50%;
  top: calc(-18px + var(--label-offset, 0px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 7.5px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.bar:not(.capek) strong {
  color: #69727c;
  opacity: 0.76;
}

.bars:has(.bar:hover) .bar {
  opacity: 0.24;
  filter: grayscale(0.55);
}

.bars:has(.bar:hover) .bar strong {
  opacity: 0.16;
}

.bars:has(.bar:hover) .bar:hover {
  z-index: 2;
  opacity: 1;
  filter: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(17, 20, 23, 0.18);
}

.bars:has(.bar:hover) .bar:hover strong {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.domain-group p {
  position: relative;
  z-index: 1;
  min-height: 30px;
  margin: 6px 0 0;
  color: var(--domain-color);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
}

.hero-domain-chart figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.overview-main-figure {
  width: 100%;
  margin: 0 0 18px;
}

.overview-main-figure img,
.inline-figure img {
  width: 100%;
  object-fit: contain;
}

.overview-main-figure img {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin: 0 auto;
}

.overview-main-figure figcaption,
.inline-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.data-composition-figure {
  min-height: 390px;
}

.data-composition-chart {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(320px, 0.88fr);
  gap: 38px;
  align-items: center;
}

.data-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.data-donut {
  width: min(100%, 430px);
  height: auto;
  overflow: visible;
}

.data-composition-chart * {
  outline: none;
}

.donut-guide {
  fill: none;
  stroke: rgba(17, 20, 23, 0.035);
  stroke-width: 58;
}

.donut-segment {
  fill: none;
  stroke-linecap: butt;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    stroke-width 160ms ease;
}

.donut-inner .donut-segment {
  stroke-width: 58;
}

.donut-outer .donut-segment {
  stroke-width: 46;
}

.data-segment-spatial {
  stroke: var(--expert-temporal);
}

.data-segment-spatial.data-shade-1 {
  stroke: #2f71d7;
}

.data-segment-spatial.data-shade-2 {
  stroke: #5b88de;
}

.data-segment-spatial.data-shade-3 {
  stroke: #86a7e4;
}

.data-segment-spatial.data-shade-4 {
  stroke: #b5c9ef;
}

.data-segment-spatial.data-shade-5 {
  stroke: #d8e5fb;
}

.data-segment-temporal {
  stroke: #0f9490;
}

.data-segment-temporal.data-shade-1 {
  stroke: #0b928d;
}

.data-segment-temporal.data-shade-2 {
  stroke: #5ab4ae;
}

.data-segment-temporal.data-shade-3 {
  stroke: #aed6d2;
}

.data-segment-guidance {
  stroke: #5d3eb6;
}

.data-segment-guidance.data-shade-1 {
  stroke: #5539ad;
}

.data-segment-guidance.data-shade-2 {
  stroke: #7c64c7;
}

.data-segment-guidance.data-shade-3 {
  stroke: #aaa0d8;
}

.data-segment-guidance.data-shade-4 {
  stroke: #c9c2e5;
}

.data-segment-state {
  stroke: #c84970;
}

.data-segment-state.data-shade-1 {
  stroke: #cc436a;
}

.data-segment-state.data-shade-2 {
  stroke: #e9b4c4;
}

.donut-labels text {
  fill: #fff;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(17, 20, 23, 0.14);
  stroke-width: 2px;
}

.donut-center text {
  fill: var(--ink);
  text-anchor: middle;
}

.donut-center text:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
}

.donut-center text:not(:first-child) {
  fill: #5f6875;
  font-size: 10px;
  font-weight: 650;
}

.data-note {
  max-width: 330px;
  margin: 6px 0 0;
  color: #6a7280;
  font-size: 7.5px;
  line-height: 1.25;
  text-align: left;
}

.data-breakdown {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.data-family {
  --family-color: var(--muted);
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.data-family h4,
.data-family p {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: baseline;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.data-family h4 {
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(17, 20, 23, 0.12);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
}

.data-family p {
  margin-top: 5px;
  color: #303741;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9.2px;
  line-height: 1.15;
}

.data-family h4 span,
.data-family p span {
  width: 8px;
  height: 8px;
  background: var(--family-color);
}

.data-family h4 strong,
.data-family p strong {
  color: #718094;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.data-family h4 strong {
  color: var(--family-color);
}

.data-family-spatial {
  --family-color: var(--expert-temporal);
}

.data-family-temporal {
  --family-color: #0f9490;
}

.data-family-guidance {
  --family-color: #5d3eb6;
}

.data-family-state {
  --family-color: #c84970;
}

.data-family-spatial p:nth-of-type(1) span {
  background: #2f71d7;
}

.data-family-spatial p:nth-of-type(2) span {
  background: #5b88de;
}

.data-family-spatial p:nth-of-type(3) span {
  background: #86a7e4;
}

.data-family-spatial p:nth-of-type(4) span {
  background: #b5c9ef;
}

.data-family-spatial p:nth-of-type(5) span {
  background: #d8e5fb;
}

.data-family-temporal p:nth-of-type(1) span {
  background: #0b928d;
}

.data-family-temporal p:nth-of-type(2) span {
  background: #5ab4ae;
}

.data-family-temporal p:nth-of-type(3) span {
  background: #aed6d2;
}

.data-family-guidance p:nth-of-type(1) span {
  background: #5539ad;
}

.data-family-guidance p:nth-of-type(2) span {
  background: #7c64c7;
}

.data-family-guidance p:nth-of-type(3) span {
  background: #aaa0d8;
}

.data-family-guidance p:nth-of-type(4) span {
  background: #c9c2e5;
}

.data-family-state p:nth-of-type(1) span {
  background: #cc436a;
}

.data-family-state p:nth-of-type(2) span {
  background: #e9b4c4;
}

.data-composition-chart[data-hover-mode] .donut-segment,
.data-composition-chart[data-hover-mode] .data-family h4,
.data-composition-chart[data-hover-mode] .data-family p {
  opacity: 0.18;
  filter: grayscale(0.65);
}

.data-composition-chart[data-hover-mode] .donut-segment.is-data-active,
.data-composition-chart[data-hover-mode] .data-family h4.is-data-active,
.data-composition-chart[data-hover-mode] .data-family p.is-data-active,
.data-composition-chart[data-hover-mode] .data-family h4.is-data-family-active {
  opacity: 1;
  filter: none;
}

.data-composition-chart[data-hover-mode="family"] .donut-inner .donut-segment.is-data-active {
  stroke-width: 64;
}

.data-composition-chart[data-hover-mode="family"] .donut-outer .donut-segment.is-data-active,
.data-composition-chart[data-hover-mode="detail"] .donut-outer .donut-segment.is-data-active {
  stroke-width: 52;
}

.data-composition-chart[data-hover-mode="detail"] .donut-inner .donut-segment.is-data-family-active {
  opacity: 0.72;
  filter: none;
}

.data-family h4.is-data-active,
.data-family h4.is-data-family-active,
.data-family p.is-data-active {
  transform: translateX(-2px);
  color: var(--ink);
}

.data-family p.is-data-active {
  background: rgba(17, 20, 23, 0.04);
}

.content-section {
  padding: 76px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(17, 20, 23, 0.08);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.capability-grid,
.rank-grid,
.method-steps,
.paper-figure-grid,
.expert-grid,
.overview-figures {
  display: grid;
  gap: 16px;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card,
.rank-card,
.method-steps article,
.paper-figure,
.expert-card,
.sample-panel,
.rollout-panel,
.citation-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.capability-card {
  min-height: 230px;
  padding: 20px;
}

.capability-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  border-radius: 999px;
  background: var(--expert-spatial-soft);
  color: var(--expert-spatial);
  font-size: 12px;
  font-weight: 850;
}

.capability-card:nth-child(2) .capability-index {
  background: var(--expert-temporal-soft);
  color: var(--expert-temporal);
}

.capability-card:nth-child(3) .capability-index {
  background: var(--expert-guidance-soft);
  color: var(--expert-guidance);
}

.capability-card:nth-child(4) .capability-index {
  background: var(--expert-state-soft);
  color: var(--expert-state);
}

.capability-card h3,
.method-steps h3,
.paper-figure h3,
.sample-panel h3,
.table-toolbar h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.capability-card p,
.method-steps p,
.paper-figure p,
.expert-card p,
.results-note,
.sample-field,
.sample-detail {
  margin: 0;
  color: var(--muted);
}

.overview-figures {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.overview-figures .inline-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.overview-figures .inline-figure img {
  max-height: 390px;
}

.overview-story {
  display: grid;
  gap: 20px;
}

.story-opening,
.story-supervision,
.story-consolidation {
  margin-top: 4px;
}

.story-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.story-copy h3 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.15;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
}

.story-copy p + p {
  margin-top: 12px;
}

.story-capabilities {
  margin-top: 0;
}

.capability-contract-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.contract-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contract-figure img {
  max-height: 620px;
}

.capability-contract-row .story-capabilities {
  grid-template-columns: 1fr;
  gap: 12px;
}

.capability-contract-row .capability-card {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-content: center;
  padding: 16px;
}

.capability-contract-row .capability-index {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.capability-contract-row .capability-card h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.capability-contract-row .capability-card p {
  font-size: 13px;
  line-height: 1.35;
}

.story-supervision,
.story-consolidation {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.story-supervision .overview-figures,
.story-consolidation .expert-grid {
  margin: 0;
}

.story-supervision .overview-figures {
  grid-template-columns: 1fr;
}

.story-supervision .story-copy,
.story-consolidation .story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.expert-card {
  overflow: hidden;
}

.expert-card:nth-child(1) {
  border-color: rgba(124, 58, 237, 0.38);
  background: linear-gradient(180deg, var(--expert-spatial-soft), #ffffff 42%);
}

.expert-card:nth-child(2) {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(180deg, var(--expert-temporal-soft), #ffffff 42%);
}

.expert-card:nth-child(3) {
  border-color: rgba(5, 150, 105, 0.38);
  background: linear-gradient(180deg, var(--expert-guidance-soft), #ffffff 42%);
}

.expert-card:nth-child(4) {
  border-color: rgba(216, 74, 58, 0.38);
  background: linear-gradient(180deg, var(--expert-state-soft), #ffffff 42%);
}

.expert-card div {
  min-height: 250px;
  padding: 22px;
}

.expert-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--expert-spatial);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.expert-card:nth-child(2) span {
  color: var(--expert-temporal);
}

.expert-card:nth-child(3) span {
  color: var(--expert-guidance);
}

.expert-card:nth-child(4) span {
  color: var(--expert-state);
}

.figure-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.figure-feature img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.figure-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.figure-copy h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.figure-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.method-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-steps article {
  min-height: 190px;
  padding: 22px;
}

.method-steps span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.statebench-section {
  background: var(--paper);
}

.statebench-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.statebench-figure {
  margin: 0;
}

.statebench-figure img {
  max-height: 520px;
}

.statebench-copy,
.statebench-card,
.statebench-sample-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.statebench-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.statebench-copy h3,
.statebench-card h3,
.statebench-sample-card h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

.statebench-copy h3 {
  font-size: 30px;
}

.statebench-copy p:last-child,
.statebench-card p,
.statebench-sample-card p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.statebench-card {
  min-height: 210px;
  padding: 22px;
}

.statebench-card > span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.formula-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 10px 0 8px;
  padding: 0;
  color: var(--ink);
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-size: 18px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1;
}

.formula-block > span:not(.formula-fraction),
.formula-block var,
.formula-block sub {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
  text-transform: none;
}

.formula-block var {
  font-style: italic;
}

.formula-block .math-var {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
}

.formula-block sub {
  font-size: 0.55em;
  line-height: 1;
  transform: translateY(0.25em);
}

.formula-equals {
  transform: translateY(-1px);
}

.formula-paren {
  font-size: 1.35em;
  font-weight: 400;
}

.formula-block .formula-fraction {
  display: inline-grid;
  grid-template-rows: auto auto;
  min-width: 68px;
  text-align: center;
  vertical-align: middle;
}

.formula-block .formula-fraction > span {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
  text-transform: none;
}

.formula-block .formula-numerator {
  padding: 0 8px 3px;
  border-bottom: 1.3px solid currentColor;
}

.formula-block .formula-denominator {
  padding-top: 3px;
}

.formula-note {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.statebench-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.statebench-sample-card {
  overflow: hidden;
}

.statebench-sample-card img,
.statebench-sample-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.statebench-sample-card div {
  padding: 14px;
}

.statebench-sample-card h3 {
  font-size: 17px;
}

.statebench-sample-card p:last-child {
  font-size: 12px;
  line-height: 1.4;
}

.statebench-sample-card p:last-child span {
  display: block;
}

.rank-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.rank-card {
  min-height: 140px;
  padding: 18px;
}

.rank-card div {
  margin: 8px 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.rank-card span {
  color: var(--muted);
  font-size: 14px;
}

.results-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tab-button,
.scope-button {
  min-width: 108px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active,
.scope-button.active {
  background: var(--ink);
  color: #ffffff;
}

.benchmark-scope-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 12px;
}

.table-toolbar input {
  width: min(340px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.benchmark-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.benchmark-table th,
.benchmark-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff2;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.benchmark-table .family-cell {
  min-width: 150px;
  background: var(--paper);
  color: #2b3035;
  font-weight: 850;
  vertical-align: middle;
  white-space: normal;
}

.benchmark-table .benchmark-cell {
  border-left: 3px solid transparent;
}

.benchmark-table .family-cell.family-spatial,
.benchmark-table .benchmark-cell.family-spatial {
  border-left-color: var(--expert-spatial);
}

.benchmark-table .family-cell.family-temporal,
.benchmark-table .benchmark-cell.family-temporal {
  border-left-color: var(--expert-temporal);
}

.benchmark-table .family-cell.family-guidance,
.benchmark-table .benchmark-cell.family-guidance {
  border-left-color: var(--expert-guidance);
}

.benchmark-table .family-cell.family-state,
.benchmark-table .benchmark-cell.family-state {
  border-left-color: var(--expert-state);
}

.benchmark-table .family-cell.family-spatial {
  background: rgba(124, 58, 237, 0.18);
  color: var(--expert-spatial);
}

.benchmark-table .family-cell.family-temporal {
  background: rgba(37, 99, 235, 0.17);
  color: var(--expert-temporal);
}

.benchmark-table .family-cell.family-guidance {
  background: rgba(5, 150, 105, 0.18);
  color: var(--expert-guidance);
}

.benchmark-table .family-cell.family-state {
  background: rgba(216, 74, 58, 0.17);
  color: var(--expert-state);
}

.benchmark-table .benchmark-cell.family-spatial {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.045));
}

.benchmark-table .benchmark-cell.family-temporal {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.04));
}

.benchmark-table .benchmark-cell.family-guidance {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.16), rgba(5, 150, 105, 0.045));
}

.benchmark-table .benchmark-cell.family-state {
  background: linear-gradient(90deg, rgba(216, 74, 58, 0.15), rgba(216, 74, 58, 0.04));
}

.benchmark-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4f7;
  color: #2b3035;
  font-weight: 850;
}

.benchmark-table .capek-cell {
  background: rgba(15, 139, 141, 0.1);
  color: #075c5e;
}

.benchmark-table .capek-row td {
  background: rgba(15, 139, 141, 0.1);
  color: #075c5e;
  font-weight: 760;
}

.benchmark-table .best-cell {
  font-weight: 900;
}

.benchmark-table .second-cell {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.benchmark-table .capek-cell.best-cell {
  font-weight: 900;
}

.benchmark-table .second-text {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.agentic-results {
  margin-top: 22px;
}

.static-toolbar {
  margin: 0;
}

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

.agentic-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.agentic-card .table-toolbar {
  padding: 14px 14px 8px;
  margin: 0;
}

.agentic-card .table-toolbar h3 {
  font-size: 16px;
}

.agentic-card .table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.agentic-compact-table {
  min-width: 0;
  font-size: 12px;
}

.agentic-compact-table th,
.agentic-compact-table td {
  padding: 7px 9px;
}

.results-note {
  max-width: 980px;
  margin-top: 14px;
  font-size: 14px;
}

#results.content-section {
  padding-top: 54px;
  padding-bottom: 58px;
}

#results > .section-heading {
  max-width: 1040px;
  margin-bottom: 18px;
}

#results > .section-heading h2 {
  font-size: 32px;
}

#results .results-tabs {
  margin-bottom: 12px;
}

#results .rank-grid {
  gap: 10px;
  margin-bottom: 10px;
}

#results .rank-card {
  min-height: 94px;
  padding: 12px;
}

#results .rank-card div {
  margin: 4px 0;
  font-size: 24px;
}

#results .rank-card span {
  font-size: 12px;
  line-height: 1.25;
}

#results > .table-toolbar {
  margin: 10px 0 8px;
}

#results > .table-toolbar h3 {
  font-size: 18px;
}

#benchmarkTable {
  min-width: 920px;
  font-size: 11.5px;
}

#benchmarkTable th,
#benchmarkTable td {
  padding: 6px 8px;
  line-height: 1.25;
}

#benchmarkTable th {
  white-space: normal;
}

#benchmarkTable .family-cell {
  min-width: 108px;
  vertical-align: middle;
}

#benchmarkTable .benchmark-name {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

#benchmarkTable .benchmark-metric {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

#benchmarkTable th:nth-child(3) {
  background: var(--teal);
  color: #ffffff;
}

#benchmarkTable .capek-cell {
  background: rgba(15, 139, 141, 0.16);
  color: #075c5e;
}

#benchmarkTable .score-cell {
  position: relative;
  cursor: default;
}

#benchmarkTable .score-cell[data-rank-label]::after {
  content: attr(data-rank-label);
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  z-index: 8;
  max-width: 220px;
  padding: 4px 7px;
  border: 1px solid rgba(17, 20, 23, 0.16);
  border-radius: 6px;
  background: rgba(17, 20, 23, 0.94);
  box-shadow: 0 8px 20px rgba(17, 20, 23, 0.18);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  white-space: nowrap;
}

#benchmarkTable .score-cell[data-rank-label]:hover {
  z-index: 9;
  background: rgba(17, 20, 23, 0.06);
}

#benchmarkTable .score-cell[data-rank-label]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

#benchmarkTable tbody tr.family-spatial td:not(.capek-cell):not(.family-cell):not(.benchmark-cell) {
  background: rgba(124, 58, 237, 0.03);
}

#benchmarkTable tbody tr.family-temporal td:not(.capek-cell):not(.family-cell):not(.benchmark-cell) {
  background: rgba(37, 99, 235, 0.03);
}

#benchmarkTable tbody tr.family-guidance td:not(.capek-cell):not(.family-cell):not(.benchmark-cell) {
  background: rgba(5, 150, 105, 0.035);
}

#benchmarkTable tbody tr.family-state td:not(.capek-cell):not(.family-cell):not(.benchmark-cell) {
  background: rgba(216, 74, 58, 0.03);
}

#benchmarkTable .score-cell.capek-cell[data-rank-label]:hover {
  background: rgba(15, 139, 141, 0.26);
}

#benchmarkTable tbody tr.family-spatial td.score-cell[data-rank-label]:not(.capek-cell):hover {
  background: rgba(124, 58, 237, 0.13);
}

#benchmarkTable tbody tr.family-temporal td.score-cell[data-rank-label]:not(.capek-cell):hover {
  background: rgba(37, 99, 235, 0.13);
}

#benchmarkTable tbody tr.family-guidance td.score-cell[data-rank-label]:not(.capek-cell):hover {
  background: rgba(5, 150, 105, 0.14);
}

#benchmarkTable tbody tr.family-state td.score-cell[data-rank-label]:not(.capek-cell):hover {
  background: rgba(216, 74, 58, 0.13);
}

#results > .results-note {
  margin-top: 8px;
  font-size: 12px;
}

.paper-figure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paper-figure {
  overflow: hidden;
}

.paper-figure.wide {
  grid-column: 1 / -1;
}

.paper-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.paper-figure div {
  padding: 18px;
}

.demo-section {
  background: var(--paper);
  padding-top: 48px;
  padding-bottom: 52px;
}

.sample-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(96px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.rollout-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.static-qa-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 340px);
  gap: clamp(16px, 1.8vw, 28px);
  align-items: stretch;
}

.sample-dashboard-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.sample-selector-column {
  min-width: 0;
}

.sample-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.sample-viewer {
  overflow: hidden;
  height: clamp(360px, 42vw, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sample-viewer img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
}

.sample-viewer.multi-image-viewer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 12px;
}

.sample-viewer.multi-image-viewer img {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-width: 0;
  padding: 0;
  object-fit: contain;
}

.sample-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.sample-panel-head {
  margin-bottom: 18px;
}

.sample-columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.sample-column {
  min-width: 0;
  padding: 14px;
  border-left: 4px solid var(--expert-temporal);
  border-radius: 6px;
  background: var(--paper);
}

.sample-column:nth-child(2) {
  border-color: var(--expert-state);
}

.sample-column:nth-child(3) {
  border-color: var(--expert-guidance);
}

.sample-column .label {
  margin-bottom: 12px;
  color: var(--expert-temporal);
}

.sample-column:nth-child(2) .label {
  color: var(--expert-state);
}

.sample-column:nth-child(3) .label {
  color: var(--expert-guidance);
}

.sample-field {
  font-size: 14px;
  line-height: 1.45;
  color: #2c3237;
}

.sample-detail {
  line-height: 1.55;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sample-thumb {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.sample-thumb span {
  white-space: pre-line;
}

.sample-thumb.active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.sample-subheading {
  margin: 0 0 8px;
}

.rollout-sample-card .eyebrow {
  margin-bottom: 4px;
}

.sample-subheading h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.rollout-sample-card .sample-subheading h3 {
  font-size: 19px;
}

.static-sample-content {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.static-sample-main {
  display: grid;
  grid-template-columns: minmax(clamp(320px, 24vw, 520px), 0.55fr) minmax(0, 1fr);
  align-content: stretch;
  align-items: stretch;
  gap: clamp(16px, 1.6vw, 28px);
  flex: 1;
  height: 100%;
  min-width: 0;
}

.static-qa-card .sample-panel {
  min-height: 300px;
  height: 100%;
  min-width: 0;
}

.static-qa-card .sample-viewer {
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 0;
  aspect-ratio: 4 / 3;
  align-self: center;
  justify-self: stretch;
}

.static-qa-card .sample-column {
  padding: 10px 12px;
}

.static-qa-card .sample-column .label {
  margin-bottom: 6px;
}

.static-qa-card .sample-detail {
  font-size: 13px;
}

.rollout-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 18px;
  margin-top: 0;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-rollout {
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 1;
  grid-template-rows: auto 1fr;
}

.rollout-viewer {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.rollout-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embodied-block {
  margin-top: 0;
}

.embodied-block .rollout-viewer {
  background: #ffffff;
}

.embodied-block .rollout-viewer img {
  object-fit: contain;
  background: #ffffff;
}

.rollout-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 16px;
  background: var(--panel);
}

.rollout-sample-card .rollout-panel {
  min-height: 0;
  justify-content: flex-start;
  padding: 8px;
}

.rollout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rollout-header h3 {
  margin: 0;
  font-size: 22px;
}

.rollout-sample-card .rollout-header h3 {
  font-size: 19px;
}

.rollout-sample-card .button.small {
  min-height: 28px;
  padding: 0 9px;
}

.rollout-command {
  margin: 6px 0 0;
  padding: 6px 8px;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rollout-command::before {
  content: "MODEL ACTION";
  display: block;
  margin-bottom: 2px;
  color: var(--expert-state);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.rollout-question {
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid var(--expert-temporal);
  border-radius: 6px;
  background: var(--paper);
}

.rollout-question .label {
  margin-bottom: 2px;
  color: var(--expert-temporal);
}

.rollout-question p:last-child {
  margin: 0;
  color: #2c3237;
  font-size: 13px;
  line-height: 1.45;
}

.rollout-outcome {
  min-height: 30px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.rollout-range {
  width: 100%;
  margin: 8px 0 5px;
  accent-color: var(--red);
}

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

.compact-steps {
  grid-template-columns: repeat(7, 1fr);
}

.step-buttons button {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #cfd4d8;
  cursor: pointer;
}

.step-buttons button.active {
  background: var(--red);
}

.citation-box {
  padding: 18px;
}

.citation-box pre {
  overflow: auto;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 6px;
  background: rgba(15, 139, 141, 0.055);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.citation-box .button.primary {
  background: var(--teal);
  color: #ffffff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(17, 20, 23, 0.08);
  background: #eef4f7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.zoomable-image {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(17, 20, 23, 0.86);
}

.image-lightbox.open {
  display: flex;
}

.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(100%, 1480px);
  max-height: calc(100vh - 64px);
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  cursor: zoom-out;
}

.lightbox-figure figcaption {
  max-width: 980px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .rollout-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .hero-section,
  .capability-contract-row,
  .figure-feature,
  .statebench-feature,
  .story-supervision,
  .story-consolidation,
  .sample-dashboard,
  .static-qa-dashboard,
  .sample-layout,
  .rollout-block {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-side {
    margin-left: 0;
  }

  .hero-domain-chart {
    min-height: auto;
  }

  .capability-grid,
  .rank-grid,
  .paper-figure-grid,
  .expert-grid,
  .overview-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-composition-chart {
    grid-template-columns: 1fr;
  }

  .statebench-grid,
  .agentic-grid {
    grid-template-columns: 1fr;
  }

  .statebench-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-lockup,
  .hero-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .xpeng-brand img {
    width: 220px;
  }

  .hero-lockup .capek-hero-logo {
    width: min(340px, 92vw);
  }

  h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .chart-heading {
    flex-direction: column;
  }

  .domain-chart {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 240px;
  }

  .chart-area {
    gap: 5px;
    min-height: 240px;
    padding-inline: 5px;
  }

  .bars {
    gap: 4px;
    min-height: 190px;
  }

  .bar strong {
    top: calc(-18px + var(--label-offset, 0px));
    font-size: 7.5px;
  }

  .domain-group p {
    font-size: 10px;
  }

  .capability-grid,
  .rank-grid,
  .method-steps,
  .statebench-grid,
  .statebench-samples,
  .paper-figure-grid,
  .expert-grid,
  .overview-figures,
  .sample-grid {
    grid-template-columns: 1fr;
  }

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

  .table-toolbar,
  .rollout-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-viewer {
    height: 320px;
  }

  .paper-figure.wide {
    grid-column: auto;
  }

  .rollout-panel {
    min-height: 0;
  }

  .static-qa-card .sample-panel {
    min-height: 0;
  }

  .compact-rollout {
    grid-template-rows: auto;
  }
}

@media (max-width: 980px) {
  .static-sample-main {
    grid-template-columns: 1fr;
  }

  .static-qa-card .sample-viewer {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .rollout-showcase-grid {
    grid-template-columns: 1fr;
  }

  .static-sample-main {
    grid-template-columns: 1fr;
  }

  .static-qa-card .sample-viewer {
    max-width: none;
  }
}
