@font-face {
  font-family: "Optimistic";
  src: url("assets/Optimistic.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #0064e0;
  --blue-bright: #2f80ff;
  --purple: #7a5195;
  --teal: #009e73;
  --amber: #e29400;
  --ink: #17203a;
  --ink-soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e5eaf2;
  --line-strong: #d7deeb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --shadow-sm: 0 8px 30px rgba(31, 45, 77, 0.06);
  --shadow-md: 0 20px 55px rgba(31, 45, 77, 0.09);
  --radius: 22px;
  --font-display: "Optimistic", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  vertical-align: middle;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a,
summary {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid rgba(0, 100, 224, 0.3);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(0, 100, 224, 0.15);
  color: var(--ink);
}

.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 28px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 234, 242, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-musical-d {
  display: inline-block;
  margin-inline: 0.04em 0.04em;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", sans-serif;
  font-size: 1.6em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-note {
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 100, 224, 0.035), transparent 44%),
    #ffffff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-orb-blue {
  top: -180px;
  left: -190px;
  background: radial-gradient(circle, rgba(0, 100, 224, 0.09), rgba(0, 100, 224, 0) 68%);
}

.hero-orb-purple {
  top: -120px;
  right: -200px;
  background: radial-gradient(circle, rgba(122, 81, 149, 0.09), rgba(122, 81, 149, 0) 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow,
.workspace-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-content > .eyebrow {
  text-transform: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero-title-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-size: clamp(3.6rem, 8.2vw, 6.8rem);
  line-height: 0.98;
}

.word-what {
  color: var(--blue);
}

.word-and {
  color: #a1a9b8;
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 0;
}

.word-where {
  color: var(--purple);
}

.hero-title-sub {
  display: block;
  margin-top: 26px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero-summary {
  max-width: 730px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-summary strong {
  color: var(--ink-soft);
  font-weight: 650;
}

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

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

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 22px;
  max-width: 940px;
  margin: 38px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.authors a {
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.authors a:hover {
  border-bottom-color: currentColor;
  color: var(--blue);
}

.authors sup {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10px;
}

.email-icon {
  display: inline-block;
  width: 12px;
  height: 10px;
  vertical-align: -1px;
}

.affiliation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.affiliation img {
  width: 21px;
  height: auto;
}

.author-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a.button:hover,
button.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(0, 100, 224, 0.2);
  color: #ffffff;
}

.button-primary:hover {
  background: #075cc4;
  box-shadow: 0 12px 28px rgba(0, 100, 224, 0.25);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink-soft);
}

.button-secondary:hover {
  border-color: #b9c5d8;
  box-shadow: var(--shadow-sm);
}

.button-disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  cursor: default;
}

.soon {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f3f7;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-metrics {
  display: grid;
  max-width: 1080px;
  margin: 64px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  --accent: var(--blue);
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
  content: "";
}

.metric-card::after {
  position: absolute;
  top: -45px;
  right: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0.035;
}

.metric-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.metric-purple {
  --accent: var(--purple);
}

.metric-teal {
  --accent: var(--teal);
}

.metric-amber {
  --accent: var(--amber);
}

.metric-value {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-unit {
  margin-left: 2px;
  font-size: 20px;
}

.metric-label {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.metric-detail {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.citation-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-lede {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.abstract-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 20%, rgba(0, 158, 115, 0.035), transparent 25%),
    radial-gradient(circle at 95% 80%, rgba(122, 81, 149, 0.035), transparent 25%),
    #ffffff;
}

.abstract-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.inline-token {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  font-weight: 650;
  white-space: nowrap;
}

.inline-token-patch {
  background: rgba(122, 81, 149, 0.1);
  color: var(--purple);
}

.inline-token-composer {
  background: rgba(0, 100, 224, 0.09);
  color: var(--blue);
}

.training-facts {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.fact strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.fact span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.method-section {
  background: #ffffff;
}

.method-workspace {
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 30%, #fbfcff 100%);
  box-shadow: var(--shadow-md);
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.workspace-kicker {
  margin-bottom: 8px;
  font-size: 10px;
}

.workspace-header h3,
.radar-panel-header h3,
.results-summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.workspace-header p:not(.workspace-kicker) {
  max-width: 670px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-button {
  display: inline-flex;
  min-width: 94px;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.icon-button:hover {
  border-color: #b5c2d8;
  background: #f8faff;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button .play-icon {
  display: none;
}

.icon-button[aria-pressed="true"] .pause-icon {
  display: none;
}

.icon-button[aria-pressed="true"] .play-icon {
  display: block;
}

.flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.segmented-control {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f6fb;
}

.flow-button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.flow-button:hover {
  color: var(--ink);
}

.flow-button.is-active {
  background: #ffffff;
  box-shadow: 0 2px 9px rgba(31, 45, 77, 0.1);
  color: var(--blue);
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: default;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.legend-chip:hover,
.legend-chip:focus-visible {
  border-color: var(--line);
  background: #ffffff;
}

.legend-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
}

.line-blue {
  background: var(--blue);
}

.line-purple {
  background: var(--purple);
}

.line-amber {
  background: var(--amber);
}

.line-teal {
  background: var(--teal);
}

.flow-canvas {
  overflow-x: auto;
  margin: 4px -6px 0;
  padding: 0 6px;
  scrollbar-color: #c7d2e4 transparent;
  scrollbar-width: thin;
}

.flow-svg {
  display: block;
  width: 100%;
  min-width: 830px;
  height: auto;
}

.flow-svg text {
  font-family: var(--font-body);
  user-select: none;
}

.svg-eyebrow {
  fill: #7a8498;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.svg-label {
  fill: var(--ink);
  font-size: 19px;
  font-weight: 650;
}

.svg-label-small {
  font-size: 16px;
}

.svg-subtitle {
  fill: #6d7687;
  font-size: 12px;
}

.flow-base,
.flow-dashes {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-base {
  stroke-width: 3;
  opacity: 0.25;
}

.flow-dashes {
  stroke-width: 2.5;
  stroke-dasharray: 7 11;
  animation: dash-flow 1.1s linear infinite;
}

.flow-read {
  stroke: var(--blue);
}

.flow-write {
  stroke: var(--purple);
}

.flow-caption {
  stroke: var(--amber);
}

.flow-spatial {
  stroke: var(--teal);
}

.flow-particle {
  stroke: #ffffff;
  stroke-width: 1.1;
}

.particle-read {
  fill: var(--blue-bright);
}

.particle-write {
  fill: #9a68bd;
}

.particle-caption {
  fill: #f2a900;
}

.particle-spatial {
  fill: #00b986;
}

.flow-group {
  transition: opacity 240ms ease;
}

.flow-group.is-dimmed {
  opacity: 0.055;
}

.flow-note {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.note-blue {
  fill: var(--blue);
}

.note-purple {
  fill: var(--purple);
}

.token-pulse {
  animation: token-pulse 2.6s ease-in-out infinite;
}

.token-delay {
  animation-delay: -1.3s;
}

.flow-svg.is-paused .flow-dashes,
.flow-svg.is-paused .token-pulse {
  animation-play-state: paused;
}

.flow-scroll-hint {
  display: none;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.workspace-caption {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.workspace-caption strong {
  color: var(--ink-soft);
}

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

.method-card {
  --card-accent: var(--blue);
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.method-card::after {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: var(--card-accent);
  content: "";
}

.method-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 28%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.card-purple {
  --card-accent: var(--purple);
}

.card-teal {
  --card-accent: var(--teal);
}

.card-number {
  color: var(--card-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.method-card h3 {
  margin: 22px 0 12px;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.results-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 100, 224, 0.04), transparent 33%),
    radial-gradient(circle at 0% 100%, rgba(122, 81, 149, 0.035), transparent 30%),
    #fbfcff;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.radar-panel,
.results-summary {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.radar-panel {
  min-width: 0;
  padding: 28px;
}

.radar-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.radar-panel-header h3 {
  font-size: 25px;
}

.hover-hint {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.radar-wrap {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

#radar-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#radar-chart text {
  font-family: var(--font-body);
}

.radar-grid {
  fill: none;
  stroke: #e2e7f0;
  stroke-width: 1;
}

.radar-grid-outer {
  stroke: #cfd8e6;
  stroke-width: 1.3;
}

.radar-axis {
  stroke: #dfe5ee;
  stroke-width: 1;
}

.radar-ring-label {
  fill: #a0a9b9;
  font-size: 10px;
}

.radar-axis-label {
  fill: #475467;
  font-size: 14px;
  font-weight: 650;
}

.radar-series {
  transform-box: fill-box;
  transform-origin: center;
  animation: radar-enter 550ms ease backwards;
  transition: opacity 180ms ease;
}

.radar-series.is-dimmed {
  opacity: 0.09;
}

.radar-series.is-hidden {
  display: none;
}

.radar-area {
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.radar-point {
  cursor: pointer;
  outline: none;
  stroke: #ffffff;
  stroke-width: 2;
  transition: stroke-width 150ms ease;
}

.radar-point:hover,
.radar-point:focus-visible {
  stroke-width: 4;
}

.radar-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 126px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #17203a;
  box-shadow: 0 10px 25px rgba(23, 32, 58, 0.18);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  transform: translate(-50%, -115%);
}

.radar-tooltip strong {
  display: block;
  font-size: 12px;
}

.radar-tooltip span {
  color: #dce5f5;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -8px;
}

.radar-legend-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.radar-legend-button:hover,
.radar-legend-button.is-highlighted {
  border-color: var(--legend-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--legend-color) 12%, transparent);
}

.radar-legend-button.is-off {
  opacity: 0.42;
}

.radar-legend-button.is-off .method-swatch {
  background: transparent;
}

.method-swatch {
  width: 9px;
  height: 9px;
  border: 2px solid var(--legend-color);
  border-radius: 50%;
  background: transparent;
}

.chart-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.results-summary {
  padding: 32px 28px;
}

.results-summary h3 {
  font-size: 32px;
  line-height: 1.16;
}

.results-summary > p:not(.workspace-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.comparison-list {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.comparison-item > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comparison-item span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.comparison-item strong {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.comparison-item p {
  margin: 4px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.comparison-track {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #edf1f7;
}

.comparison-track span {
  display: block;
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #66a6ff);
  transform-origin: left;
  animation: bar-enter 900ms ease both;
}

.comparison-muted strong {
  color: var(--purple);
}

.comparison-muted .comparison-track span {
  background: linear-gradient(90deg, var(--purple), #b18bc8);
}

.chart-data {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.chart-data summary {
  padding: 14px 18px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 18px 18px;
}

.chart-data table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.chart-data th,
.chart-data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.chart-data thead th {
  color: var(--muted);
  font-weight: 650;
}

.chart-data tbody th {
  color: var(--ink-soft);
  text-align: left;
}

.citation-section {
  background: #ffffff;
}

.citation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.citation-heading .eyebrow {
  margin-bottom: 10px;
}

.citation-heading h2 {
  font-size: 42px;
}

.copy-button {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}

.copy-button.is-copied {
  border-color: rgba(0, 158, 115, 0.3);
  background: #effaf6;
  color: var(--teal);
}

.bibtex-block {
  overflow-x: auto;
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: #f8faff;
  color: #344054;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.footer-inner {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner .brand {
  font-size: 22px;
}

.footer-affiliation {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-affiliation img {
  width: 17px;
  height: auto;
}

.back-to-top {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.back-to-top:hover {
  color: var(--blue);
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes token-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes radar-enter {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bar-enter {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1050px) {
  .radar-layout {
    grid-template-columns: 1fr;
  }

  .radar-panel {
    max-width: 790px;
    width: 100%;
    margin-inline: auto;
  }

  .results-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
    column-gap: 36px;
  }

  .results-summary .workspace-kicker,
  .results-summary h3,
  .results-summary > p:not(.workspace-kicker) {
    grid-column: 1;
  }

  .comparison-list {
    grid-row: 1 / span 3;
    grid-column: 2;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 80px;
  }

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

  .metric-card {
    min-height: 155px;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }

  .method-card {
    padding: 24px;
  }

  .method-card h3 {
    margin-top: 16px;
  }

  .flow-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    padding-inline: 20px;
  }

  .nav-inner {
    min-height: 64px;
    gap: 18px;
  }

  .nav-note {
    display: none;
  }

  .nav-links {
    gap: 19px;
  }

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

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .hero {
    padding: 68px 0 56px;
  }

  .hero-title-main {
    flex-wrap: wrap;
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .hero-title-sub {
    margin-top: 20px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .authors {
    gap: 5px 15px;
    margin-top: 30px;
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 12px;
  }

  .hero-metrics {
    margin-top: 46px;
    gap: 12px;
  }

  .metric-card {
    min-height: 148px;
    padding: 22px 18px 18px;
  }

  .metric-value {
    font-size: 32px;
  }

  .metric-label {
    font-size: 12px;
  }

  .metric-detail {
    font-size: 10px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-lede,
  .abstract-copy {
    font-size: 15px;
  }

  .training-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
  }

  .method-workspace,
  .radar-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .workspace-header h3 {
    font-size: 24px;
  }

  .workspace-header p:not(.workspace-kicker) {
    font-size: 12px;
  }

  .flow-scroll-hint {
    display: block;
  }

  .workspace-caption {
    font-size: 11px;
    text-align: left;
  }

  .results-summary {
    display: block;
    padding: 26px 22px;
  }

  .comparison-list {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .radar-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  #radar-chart {
    min-width: 490px;
  }

  .radar-legend {
    margin-top: 2px;
  }

  .citation-heading h2 {
    font-size: 34px;
  }

  .bibtex-block {
    padding: 20px;
    font-size: 11px;
  }

  .footer-inner {
    min-height: 130px;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 24px;
  }

  .footer-affiliation {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero-title-main {
    font-size: 3.35rem;
  }

  .hero-title-sub {
    font-size: 1.45rem;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    width: calc(50% - 6px);
  }

  .button-disabled {
    flex: 1;
  }

  .metric-card {
    min-height: 142px;
    padding-inline: 15px;
  }

  .metric-value {
    font-size: 29px;
  }

  .metric-label {
    min-height: 32px;
  }

  .workspace-header {
    gap: 12px;
  }

  .icon-button {
    min-width: 42px;
    padding-inline: 11px;
  }

  .icon-button span {
    display: none;
  }

  .segmented-control {
    width: 100%;
  }

  .flow-button {
    flex: 1;
    padding-inline: 7px;
    font-size: 10px;
  }

  .legend-chip {
    padding-inline: 5px;
    font-size: 10px;
  }

  .radar-panel-header h3 {
    font-size: 22px;
  }

  .hover-hint {
    display: none;
  }

  .citation-heading {
    align-items: center;
  }
}

/* Paper title and hero radar */
.hero-paper-title {
  display: block;
  max-width: 1080px;
  margin: 20px auto 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4.7vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-transform: none;
}

.hero-title-sub {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.title-colon {
  margin-left: -0.12em;
  color: var(--ink);
  font-size: 0.65em;
}

.hero-radar {
  max-width: 850px;
  margin: 52px auto 0;
  text-align: left;
}

.hero-radar .radar-panel {
  box-shadow: var(--shadow-md);
}

.hero-radar .radar-panel-header {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-radar .radar-wrap {
  max-width: 580px;
  margin-inline: auto;
}

.hero-radar .radar-legend {
  margin-top: -10px;
}

/* Draggable PCA comparisons */
.pca-heading {
  margin: 64px 0 26px;
  text-align: center;
}

.pca-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.pca-heading > p:not(.workspace-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pca-heading strong:first-of-type {
  color: var(--teal);
}

.pca-heading strong:last-of-type {
  color: var(--blue);
}

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

.pca-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pca-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}

.pca-scene {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.pca-scene > img {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.pca-index {
  display: block;
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pca-scene h4 {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.pca-drag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.pca-compare {
  --split: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eef1f6;
  isolation: isolate;
}

.pca-compare:focus-within {
  outline: 3px solid rgba(0, 100, 224, 0.42);
  outline-offset: -3px;
}

.pca-base,
.pca-overlay,
.pca-overlay img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.pca-overlay {
  clip-path: inset(0 0 0 var(--split));
}

.pca-method-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(23, 32, 58, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.pca-left {
  left: 12px;
}

.pca-right {
  right: 12px;
  background: rgba(0, 100, 224, 0.86);
}

.pca-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(23, 32, 58, 0.12), 0 0 14px rgba(23, 32, 58, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}

.pca-divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 32, 58, 0.12);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(23, 32, 58, 0.2);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.16em;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.pca-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  opacity: 0;
}

.pca-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.pca-range::-webkit-slider-thumb {
  width: 24px;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.pca-range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.pca-range::-moz-range-thumb {
  width: 24px;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Original paper framework */
.framework-workspace {
  padding: 28px;
}

.framework-figure {
  overflow: hidden;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.framework-figure > img {
  display: block;
  width: 100%;
  height: auto;
}

.framework-figure > figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.method-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.method-facts > span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
}

.method-facts strong {
  margin-right: 3px;
  color: var(--ink-soft);
}

/* Full-width controlled results */
.results-summary-wide {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: center;
  padding: 36px;
}

.results-summary-intro > p:not(.workspace-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.results-summary-wide .comparison-list {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}

@media (max-width: 900px) {
  .results-summary-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .results-summary-intro h3 br {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-paper-title {
    margin-top: 16px;
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  }

  .hero-title-sub {
    font-size: 0.95rem;
  }

  .hero-radar {
    margin-top: 40px;
  }

  .pca-heading {
    margin-top: 48px;
  }

  .pca-heading h3 {
    font-size: 27px;
  }

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

  .framework-workspace {
    padding: 18px;
  }

  .framework-figure {
    margin-top: 20px;
  }

  .framework-figure > figcaption {
    font-size: 11px;
  }

  .results-summary-wide {
    padding: 26px 22px;
  }

  .results-summary-wide .comparison-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .pca-card-header {
    padding: 11px;
  }

  .pca-scene > img {
    width: 38px;
    height: 38px;
  }

  .pca-drag {
    display: none;
  }
}

/* Compact title treatment and paper-style radar labels */
.hero-title-main {
  font-size: clamp(2.7rem, 5.2vw, 4.5rem);
}

.hero-paper-title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3.1vw, 2.65rem);
  white-space: nowrap;
}

.hero-title-sub {
  margin-top: 10px;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

.radar-value-label {
  font-size: 11px;
  font-weight: 650;
  paint-order: stroke;
  pointer-events: none;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 3px;
}

@media (max-width: 760px) {
  .hero-title-main {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .hero-paper-title {
    font-size: clamp(1.35rem, 6.3vw, 1.9rem);
    white-space: normal;
  }

  .hero-title-sub {
    font-size: 0.9rem;
  }
}

/* Side-by-side overview and spatial intelligence charts */
.hero-charts {
  display: grid;
  max-width: 1240px;
  margin: 52px auto 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  text-align: left;
}

.hero-charts .hero-radar {
  max-width: none;
  margin: 0;
}

.spatial-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.spatial-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.spatial-panel-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.spatial-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spatial-chart {
  min-width: 0;
  padding: 3px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fbfcff;
}

.spatial-legend {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 12px 10px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #ffffff;
}

.spatial-legend-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.spatial-legend-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.spatial-chart > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.spatial-chart-title {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
}

.spatial-baseline {
  stroke: #dfe5ee;
  stroke-width: 1;
}

.spatial-bar {
  cursor: pointer;
  outline: none;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: spatial-bar-enter 550ms ease backwards;
  transition: transform 160ms ease, filter 160ms ease;
}

.spatial-bar:hover,
.spatial-bar:focus-visible {
  filter: brightness(1.07);
  transform: scale(1.14, 1.08);
}

.spatial-value {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 750;
  pointer-events: none;
}

.spatial-method {
  font-family: var(--font-body);
  font-size: 8.3px;
  font-weight: 650;
  pointer-events: none;
}

@keyframes spatial-bar-enter {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .hero-charts {
    max-width: 850px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .spatial-grid {
    grid-template-columns: 1fr;
  }
}

/* Equal-height chart cards and larger radar typography */
.hero-charts {
  align-items: stretch;
}

@media (min-width: 981px) {
  .hero-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-charts .hero-radar {
  display: flex;
}

.hero-charts .radar-panel {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 20px;
}

.hero-charts .radar-wrap {
  display: flex;
  width: 100%;
  max-width: none;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.hero-charts .spatial-panel {
  display: flex;
  flex-direction: column;
}

.spatial-grid {
  flex: 1;
  align-content: space-around;
}

.radar-axis-label {
  font-size: 18px;
}

.radar-value-label {
  font-size: 13.5px;
}

/* Keep every PCA card and comparison image exactly the same size */
.pca-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.pca-card-header {
  height: 66px;
  flex: 0 0 66px;
  padding: 10px 12px;
}

.pca-scene h4 {
  white-space: nowrap;
}

.pca-compare {
  width: 100%;
  height: clamp(180px, 19vw, 250px);
  aspect-ratio: auto;
}

/* Animated biological pathways and token-flow schematic */
.biological-flow .flow-svg {
  min-width: 920px;
}

.brain-outline {
  fill: url(#brain-fill);
  stroke: #526078;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brain-detail {
  fill: none;
  stroke: #b3bac8;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.brain-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.4;
  stroke-dasharray: 5 7;
  animation: dash-flow 1.3s linear infinite;
}

.encoder-title {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brain-where {
  stroke: #7a5195;
}

.brain-what {
  stroke: #2f6fa3;
}

.flow-svg.is-paused .brain-path {
  animation-play-state: paused;
}

.label-what {
  fill: #2f6fa3;
}

.label-where {
  fill: #7a5195;
}

.brain-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
}

.brain-output {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
}

.flow-cat {
  stroke: #7a8494;
}

.particle-cat {
  fill: #7a8494;
}

.biological-flow .composer-token-stack rect,
.biological-flow .patch-token-stack rect {
  filter: drop-shadow(0 3px 4px rgba(31, 45, 77, 0.06));
}

.biological-flow .workspace-caption {
  margin-top: 8px;
}

/* Full benchmark grids */
.benchmark-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: -12px 0 38px;
}

.benchmark-legend .spatial-legend-item {
  gap: 9px;
  font-size: 14px;
}

.benchmark-legend .spatial-legend-swatch {
  width: 13px;
  height: 13px;
}

.benchmark-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 38px 24px;
}

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

.benchmark-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.benchmark-group-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.025em;
}

.benchmark-group-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.benchmark-grid-vqa {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.benchmark-card {
  margin: 0;
}

@media (max-width: 1100px) {
  .benchmark-grid-vqa {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .benchmark-group-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .benchmark-group-header p {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .benchmark-grid,
  .benchmark-grid-vqa {
    grid-template-columns: 1fr;
  }
}

/* Original-image dialog with a working comparison slider */
.modal-open {
  overflow: hidden;
}

.pca-scene > img {
  cursor: zoom-in;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pca-scene > img:hover,
.pca-scene > img:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 100, 224, 0.2);
  transform: scale(1.06);
}

.pca-thumb {
  position: relative;
  display: inline-flex;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
}

.pca-thumb > img {
  width: 100% !important;
  height: 100% !important;
}

.pca-zoom-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(23, 32, 58, 0.12);
  color: var(--blue);
  pointer-events: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pca-thumb:hover .pca-zoom-badge {
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(0, 100, 224, 0.26);
  color: #ffffff;
  transform: scale(1.18);
}

.pca-zoom-badge svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 430px) {
  .pca-thumb {
    width: 38px;
    height: 38px;
  }
}

.pca-dialog {
  width: min(1080px, 92vw);
  max-width: 1080px;
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 30px 90px rgba(23, 32, 58, 0.24);
  overflow: hidden;
}

.pca-dialog::backdrop {
  background: rgba(23, 32, 58, 0.42);
  backdrop-filter: blur(6px);
}

.pca-dialog-shell {
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: #ffffff;
  overflow-y: auto;
}

.pca-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.pca-dialog-header .workspace-kicker {
  margin-bottom: 4px;
}

.pca-dialog-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.pca-dialog-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.pca-dialog-close:hover {
  background: #f4f6fa;
  color: var(--ink);
}

.pca-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.pca-dialog-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.pca-original {
  min-width: 0;
  margin: 0;
}

.pca-original img {
  display: block;
  width: 100%;
  height: min(60vh, 520px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f8fb;
  object-fit: contain;
}

.pca-original figcaption,
.pca-dialog-comparison > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pca-dialog-comparison {
  min-width: 0;
}

.pca-dialog-comparison-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.pca-dialog-comparison .pca-compare {
  height: min(60vh, 520px);
  border-radius: 16px;
}

@media (max-width: 760px) {
  .pca-dialog-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .pca-original img {
    height: auto;
    max-height: 38vh;
  }

  .pca-dialog-comparison .pca-compare {
    height: 44vh;
  }
}

/* Match the original and comparison image boxes exactly */
.pca-original img,
.pca-dialog-comparison .pca-compare {
  width: 100%;
  height: min(60vh, 520px);
  aspect-ratio: auto;
}

@media (max-width: 760px) {
  .pca-original img,
  .pca-dialog-comparison .pca-compare {
    height: 44vh;
    max-height: none;
  }
}

.benchmark-count {
  color: #111827;
  font-weight: 800;
}

/* Results radar layouts */
.result-radar {
  max-width: 760px;
  margin-inline: auto;
}

.result-radar-vqa {
  max-width: 900px;
}

.result-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.result-axis-label {
  fill: #475467;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
}

.result-axis-small {
  font-size: 10px;
}

@media (max-width: 760px) {
  .result-axis-label {
    font-size: 11px;
  }

  .result-axis-small {
    font-size: 8px;
  }
}

/* Vertical legend inside each results radar */
.result-radar {
  position: relative;
}

.result-radar-legend {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(23, 32, 58, 0.05);
  backdrop-filter: blur(6px);
}

.result-radar-legend .spatial-legend-item {
  gap: 6px;
  font-size: 11px;
  line-height: 1.2;
}

.result-radar-legend .spatial-legend-swatch {
  width: 9px;
  height: 9px;
}

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

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