:root {
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --surface: #ffffff;
  --surface-2: #f7faf9;
  --surface-3: #edf4f2;
  --teal-panel: #eaf6f3;
  --gold-panel: #fff7e5;
  --blue-panel: #eef5fb;
  --ink: #101820;
  --ink-2: #2c3942;
  --muted: #65717a;
  --faint: #87939b;
  --border: #d9e4e1;
  --rule: #c4d1cf;
  --accent: #126a70;
  --accent-2: #0d5159;
  --accent-wash: #eef8f7;
  --gold: #9a6a16;
  --shadow-soft: 0 14px 34px rgba(16, 24, 32, 0.055);
  --shadow-card: 0 8px 24px rgba(16, 24, 32, 0.045);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfc;
  font-family: var(--font-sans);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 5.7rem);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 750;
  line-height: 1.16;
}

h3 {
  margin: 0 0 0.35rem;
  color: var(--ink-2);
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  left: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

.container {
  width: calc(100vw - 1.35rem);
  max-width: 1240px;
  margin: 0 auto;
  min-width: 0;
}

.reading {
  max-width: 1040px;
}

.reading-wide {
  max-width: 1240px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

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

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-links a {
  white-space: nowrap;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.48rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 248, 248, 0.94);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
}

.section-nav a {
  color: var(--muted);
  font-weight: 600;
}

.section-nav a.active,
.section-nav a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 12%, rgba(22, 107, 112, 0.08), transparent 28rem),
    linear-gradient(180deg, #fff, #fbfcfc);
}

.hero-inner {
  padding: 4rem 0 3rem;
  text-align: center;
}

.kicker {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.subtitle {
  width: min(840px, 100%);
  margin: 1rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  line-height: 1.35;
}

.hero-summary {
  width: min(820px, 100%);
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.55rem;
}

.resource-actions-secondary {
  margin-top: 0.55rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  min-height: 2rem;
  padding: 0.46rem 0.78rem;
  border: 1px solid #cbd5d8;
  border-radius: 6px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.1;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.link-chip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-chip:hover {
  border-color: #5e9699;
  color: var(--accent-2);
  background: #eef7f6;
  text-decoration: none;
}

.spec-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(100%, 1040px);
  margin: 1.85rem auto 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(234, 246, 243, 0.76), rgba(255, 247, 229, 0.54));
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.035);
}

.spec-line div {
  text-align: center;
}

.spec-line strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.spec-line span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.spec-line-note strong {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.spec-line-note span {
  max-width: 8.4rem;
  margin: 0.15rem auto 0;
  font-size: 0.75rem;
  line-height: 1.25;
}

.hero-overview-figure {
  width: min(100%, 1040px);
  margin: 1.1rem auto 0;
  padding: 0.58rem;
  border: 1px solid rgba(18, 106, 112, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 249, 0.9));
  box-shadow: var(--shadow-soft);
}

.hero-overview-figure img {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.hero-findings {
  width: min(100%, 1040px);
  margin: 2.05rem auto 0;
}

.hero-findings h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.teaser-banner {
  width: min(100%, 1040px);
  margin: 1.35rem auto 0;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(18, 106, 112, 0.18);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(234, 246, 243, 0.78), rgba(255, 247, 229, 0.5));
  text-align: center;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.035);
}

.teaser-banner p {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.48;
}

.teaser-line-main {
  display: block;
  max-width: 820px;
  text-align: center;
}

.teaser-line-focus {
  display: block;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.section {
  padding: 4.8rem 0;
}

.section-tinted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(247, 250, 249, 0.95)),
    radial-gradient(circle at 12% 8%, rgba(18, 106, 112, 0.08), transparent 26rem),
    var(--surface-2);
}

.section-heading::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 2px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
}

.section p,
.section li {
  color: var(--ink-2);
}

.section-lead {
  max-width: 980px;
  color: var(--muted);
  font-size: 1.02rem;
}

.background-primer {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 0.85fr);
  gap: 1.2rem;
  align-items: center;
  margin: 1.8rem 0 2rem;
}

.background-comparison-figure {
  margin-right: auto;
  margin-left: auto;
}

.background-comparison-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.background-comparison-figure {
  max-width: 820px;
}

.background-primer-copy {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, #f8fcfb);
  box-shadow: var(--shadow-card);
}

.background-primer-copy span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.background-primer-copy p {
  margin-bottom: 0.85rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.58;
}

.background-primer-copy p:last-child {
  margin-bottom: 0;
}

.background-usecase-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(18rem, 0.78fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(234, 246, 243, 0.7), rgba(255, 247, 229, 0.42)),
    #fff;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.usecase-main-figure {
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  min-height: 25rem;
  aspect-ratio: 4 / 3;
  padding: 0.85rem;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 250, 249, 0.35), rgba(255, 255, 255, 0.95));
  min-width: 0;
}

.usecase-main-figure img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  transform-origin: center;
  transition: opacity 0.18s ease;
}

.usecase-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem;
  border-left: 1px solid var(--border);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.74);
  min-width: 0;
}

.usecase-copy-panel span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.usecase-copy-panel h3 {
  margin-top: 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.12;
}

.usecase-copy-panel p {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.usecase-button-row {
  display: grid;
  gap: 0.48rem;
  margin-top: 1.25rem;
}

.usecase-switch {
  min-height: 2.35rem;
  padding: 0.54rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.usecase-switch:hover,
.usecase-switch:focus-visible,
.usecase-switch.is-active {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-wash);
  outline: none;
}

.usecase-switch:hover,
.usecase-switch:focus-visible {
  transform: translateX(2px);
}

.vision-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin: 2.25rem auto 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.vision-flow span,
.vision-flow strong {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  line-height: 1;
}

.vision-flow b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.vision-flow strong {
  border-color: rgba(22, 107, 112, 0.34);
  color: var(--accent-2);
  background: var(--accent-wash);
}

.world-model-figure {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.world-model-figure img {
  width: 100%;
  aspect-ratio: 1916 / 821;
  border: 0;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.contrib-list {
  margin: 1.6rem 0 0;
  border-top: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 253, 252, 0.92));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.contrib-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.contrib-row:nth-child(2n) {
  background: rgba(238, 248, 247, 0.45);
}

.contrib-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.figure-block {
  margin: 0;
}

.figure-block img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.figure-large {
  margin-top: 2rem;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
}

.explorer-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.explorer-callout strong,
.explorer-callout span {
  display: block;
}

.explorer-callout span {
  color: var(--muted);
  font-size: 0.92rem;
}

.explorer-showcase {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.explorer-screenshot {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.explorer-screenshot img {
  border: 0;
  border-radius: 8px;
}

.figure-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

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

.event-figure img {
  box-shadow: var(--shadow-soft);
}

.summary-panel {
  margin-bottom: 1.5rem;
}

.summary-panel img {
  box-shadow: var(--shadow-soft);
}

.gantt-hd-gallery {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.event-figure-primary {
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.event-figure-primary img {
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.event-figure-primary figcaption {
  margin: 0.75rem 0 0.2rem;
  font-style: normal;
}

.gantt-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.gantt-thumb {
  display: grid;
  gap: 0.16rem;
  min-height: 5.8rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s, background 0.16s;
}

.gantt-thumb:hover,
.gantt-thumb:focus-visible {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.gantt-thumb.is-active {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 4px 0 0 var(--accent);
}

.gantt-thumb span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 750;
}

.gantt-thumb strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.18;
}

.gantt-thumb em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.evaluation-framework {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 2rem 0 1.4rem;
}

.framework-step {
  position: relative;
  min-height: 10.4rem;
  padding: 1rem 0.95rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, #f9fcfb);
  box-shadow: var(--shadow-card);
}

.framework-step::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: -0.54rem;
  width: 0.54rem;
  height: 2px;
  background: var(--rule);
}

.framework-step:last-child::after {
  display: none;
}

.framework-step span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.framework-step strong {
  display: block;
  margin: 0.75rem 0 0.4rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.15;
}

.framework-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.result-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 1rem;
}

.result-snapshot div {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 247, 0.9));
}

.result-snapshot div:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 229, 0.82));
}

.result-snapshot strong {
  display: block;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
}

.result-snapshot span {
  display: block;
  margin-top: 0.42rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.22;
}

.results-thesis {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  margin: 1rem 0 2rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(90deg, var(--teal-panel), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-card);
}

.results-thesis strong {
  color: var(--accent-2);
  white-space: nowrap;
}

.results-thesis span {
  color: var(--ink-2);
}

.subsection-heading {
  margin-bottom: 0.9rem;
}

.subsection-heading span {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.subsection-heading p {
  max-width: 46rem;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.model-trace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.68fr);
  gap: 1rem;
  align-items: start;
  margin: 2rem 0 2.2rem;
}

.model-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.model-card {
  position: relative;
  display: grid;
  gap: 0.74rem;
  width: 100%;
  min-height: 12.4rem;
  padding: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.model-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 10px 0 0 10px;
  background: var(--model-accent, var(--accent));
}

.model-card:hover,
.model-card.is-active {
  border-color: var(--model-accent, var(--accent));
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.model-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.model-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.14;
}

.model-card small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
}

.model-rank {
  color: var(--model-accent, var(--accent));
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.model-score-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.model-score-row div {
  padding: 0.55rem 0.58rem;
  border-radius: 8px;
  background: var(--surface-2);
}

.model-score-row strong {
  display: block;
  color: var(--model-accent, var(--accent));
  font-family: var(--font-mono);
  font-size: 1.14rem;
  line-height: 1;
}

.model-score-row span {
  display: block;
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.mini-bars {
  display: grid;
  gap: 0.34rem;
}

.mini-bar {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 2.25rem;
  gap: 0.38rem;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.mini-bar-track {
  height: 0.38rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9efee;
}

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

.model-bottleneck {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.model-detail-panel {
  position: sticky;
  top: 5.5rem;
  min-height: 31rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f9fbfb);
  box-shadow: var(--shadow-soft);
}

.detail-kicker {
  color: var(--detail-accent, var(--accent));
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.model-detail-panel h3 {
  margin: 0.25rem 0 0.85rem;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.detail-metric-grid div {
  padding: 0.68rem;
  border-radius: 9px;
  background: var(--surface-2);
}

.detail-metric-grid strong {
  display: block;
  color: var(--detail-accent, var(--accent));
  font-family: var(--font-mono);
  font-size: 1.26rem;
  line-height: 1;
}

.detail-metric-grid span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
}

.detail-score-bars,
.failure-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-score-bars h4,
.failure-list h4 {
  margin: 0 0 0.25rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.failure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem;
  gap: 0.5rem;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.failure-row span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 750;
  text-align: right;
}

.leaderboard-container {
  margin: 0.85rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.diagnostic-section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.15rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(238, 248, 247, 0.76), rgba(255, 247, 229, 0.4)),
    #fff;
}

.diagnostic-section-intro span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.diagnostic-section-intro p {
  max-width: 44rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.46;
}

.diagnostic-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
  gap: 1.15rem;
  align-items: start;
}

.diagnostic-overview-side {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.diagnostic-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  margin-top: 1.15rem;
}

.diagnostic-card {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.76rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.diagnostic-image-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(33, 53, 49, 0.1);
  border-radius: 8px;
  background: #fff;
}

.diagnostic-frame-wide {
  aspect-ratio: 16 / 8.4;
}

.diagnostic-frame-compact {
  aspect-ratio: 16 / 8.8;
}

.diagnostic-frame-balanced {
  aspect-ratio: 16 / 11;
}

.diagnostic-grid-two .diagnostic-card {
  height: 100%;
}

.diagnostic-grid-two .diagnostic-image-frame {
  aspect-ratio: 16 / 10.2;
}

.diagnostic-grid-two .diagnostic-note {
  display: block;
  min-height: 3.7rem;
  padding: 0.66rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.34;
}

.diagnostic-grid-two .diagnostic-note strong,
.diagnostic-grid-two .diagnostic-note span {
  display: inline;
}

.diagnostic-grid-two .diagnostic-note strong {
  margin-right: 0.24rem;
  font-size: 0.86rem;
}

.diagnostic-frame-profile {
  aspect-ratio: 900 / 470;
}

.diagnostic-frame-spread-wide {
  aspect-ratio: 2092 / 3043;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.diagnostic-image-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.diagnostic-text-card {
  gap: 0.46rem;
  padding: 1rem 1.05rem;
  background:
    linear-gradient(135deg, rgba(238, 248, 247, 0.86), rgba(255, 247, 229, 0.46)),
    #fff;
}

.diagnostic-text-card span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.diagnostic-text-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.2;
}

.diagnostic-text-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.52;
}

.diagnostic-instance-card {
  padding: 0.86rem;
}

.diagnostic-note {
  display: grid;
  gap: 0.28rem;
  margin-top: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 8px;
  color: var(--ink-2);
  background: #f6faf8;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
  text-align: left;
}

.diagnostic-note strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0;
}

.diagnostic-note span {
  color: var(--muted);
}

.full-table-block {
  margin-top: 2.2rem;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.55rem;
}

.finding-card {
  min-height: 12.1rem;
  padding: 1.35rem 1.45rem 1.42rem;
  border: 1px solid rgba(187, 67, 67, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 238, 238, 0.82));
  box-shadow: var(--shadow-card);
}

.finding-card:nth-child(2) {
  border-color: rgba(43, 126, 186, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(229, 243, 252, 0.88));
}

.finding-card:nth-child(3) {
  border-color: rgba(60, 153, 93, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 247, 236, 0.86));
}

.finding-card:nth-child(4) {
  border-color: rgba(203, 125, 45, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 242, 225, 0.86));
}

.finding-card span {
  display: inline-flex;
  align-items: center;
  min-height: 1.68rem;
  margin-bottom: 0.82rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  color: #7a1d23;
  background: rgba(255, 181, 185, 0.62);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.finding-card:nth-child(2) span {
  color: #164c83;
  background: rgba(159, 211, 252, 0.72);
}

.finding-card:nth-child(3) span {
  color: #145b32;
  background: rgba(152, 224, 171, 0.7);
}

.finding-card:nth-child(4) span {
  color: #71360c;
  background: rgba(255, 203, 151, 0.76);
}

.finding-card h3 {
  margin: 0 0 0.64rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.26rem;
  line-height: 1.14;
}

.finding-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.01rem;
  line-height: 1.52;
}

.loading-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.62rem 0.76rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--ink-2);
  background: var(--surface-3);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

td:first-child,
th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 13rem;
  text-align: left;
  background: inherit;
}

th:first-child {
  z-index: 4;
  background: var(--surface-3);
}

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

tbody tr:hover td {
  background: var(--accent-wash);
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.sort-button {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.sort-button:hover {
  color: var(--accent-2);
}

.boundary-showcase {
  margin-top: 1.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: var(--shadow-soft);
}

.boundary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(18, 106, 112, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal-panel), rgba(255, 247, 229, 0.78));
  color: var(--ink-2);
  font-size: 0.86rem;
}

.boundary-strip span {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.boundary-strip strong {
  color: var(--ink);
  font-weight: 750;
}

.boundary-strip b {
  color: var(--gold);
}

.construction-boundary-figure {
  margin: 0;
}

.construction-boundary-figure img {
  border: 0;
  border-radius: 8px;
}

.boundary-copy {
  margin: 0.85rem auto 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
  text-align: center;
}

.model-detail-note {
  display: block;
  margin: 1rem 0 0;
  padding: 0.78rem 0.85rem;
}

.model-detail-note span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.38;
}

.access-list {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 2rem;
}

.access-list a {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.access-list a:last-child {
  border-bottom: 1px solid var(--border);
}

.access-list a:hover {
  text-decoration: none;
}

.access-list span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.access-list strong {
  color: var(--ink-2);
  font-weight: 650;
}

.bibtex {
  overflow-x: auto;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #e9f1f1;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-2);
  font-weight: 650;
}

@media (max-width: 900px) {
  .section-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .topbar-links {
    justify-content: flex-start;
  }

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

  .contrib-row,
  .access-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .figure-grid-three,
  .diagnostic-overview-grid,
  .diagnostic-grid-two,
  .findings-grid,
  .background-primer,
  .background-usecase-switcher,
  .evaluation-framework,
  .result-snapshot,
  .model-trace-layout,
  .model-card-grid {
    grid-template-columns: 1fr;
  }

  .framework-step {
    min-height: auto;
  }

  .framework-step::after {
    display: none;
  }

  .results-thesis {
    display: block;
  }

  .results-thesis span {
    display: block;
    margin-top: 0.25rem;
  }

  .model-detail-panel {
    order: -1;
    position: static;
    min-height: 0;
  }

  .usecase-copy-panel {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .usecase-button-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .usecase-switch {
    text-align: center;
  }

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

  .explorer-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100vw - 1rem);
    max-width: 420px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.35rem;
    line-height: 1.04;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .hero-inner {
    padding: 3rem 0 2.2rem;
  }

  .subtitle,
  .hero-summary {
    max-width: 100%;
    padding-inline: 0.35rem;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

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

  .background-primer-copy,
  .usecase-copy-panel {
    padding: 1rem;
  }

  .usecase-main-figure {
    min-height: 14rem;
  }

  .usecase-main-figure img {
    height: 100%;
  }

  .usecase-button-row {
    grid-template-columns: 1fr;
  }

  .spec-line {
    grid-template-columns: 1fr;
  }

  .publication-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .link-chip {
    width: 100%;
  }

  .gantt-thumb-grid {
    grid-template-columns: 1fr;
  }
}

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

  .scroll-progress {
    display: none;
  }
}
