:root {
  --ink-950: #071622;
  --ink-900: #0c2131;
  --ink-850: #10293b;
  --ink-800: #17354a;
  --paper: #f7f8f5;
  --paper-warm: #f7f3ec;
  --white: #ffffff;
  --text: #173042;
  --muted: #5d7180;
  --line: #d9e2e6;
  --blue: #4d91c9;
  --blue-deep: #2c6fa8;
  --blue-pale: #dcebf6;
  --orange: #dc8549;
  --orange-pale: #f7e4d6;
  --green: #5d9a72;
  --green-pale: #dcebdc;
  --red: #cb5a59;
  --red-pale: #f4d8d6;
  --yellow: #e6b955;
  --shadow: 0 28px 80px rgba(5, 23, 35, 0.16);
  --shadow-soft: 0 16px 40px rgba(18, 47, 66, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1320px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--ink-950);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 22, 34, 0.92);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 30px;
  object-fit: contain;
}

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

.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

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

.language-switcher {
  display: inline-flex;
  margin-left: 22px;
  padding: 3px;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 42px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.4;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--white);
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink-950);
  background: #8cc3ec;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 960px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 38%, rgba(77, 145, 201, 0.18), transparent 30%),
    linear-gradient(115deg, var(--ink-900) 0%, var(--ink-950) 72%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

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

.hero-orb-one {
  top: -240px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: rgba(220, 133, 73, 0.09);
  border: 1px solid rgba(220, 133, 73, 0.18);
}

.hero-orb-two {
  bottom: -260px;
  left: 28%;
  width: 540px;
  height: 540px;
  background: rgba(93, 154, 114, 0.09);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 150px 0 70px;
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(610px, 1.3fr);
  gap: 66px;
  align-items: center;
  min-width: 0;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  padding-bottom: 24px;
}

.eyebrow,
.kicker,
.mini-label,
.step-phase {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8cc3ec;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 6.3vw, 108px);
  font-weight: 790;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: #8cc3ec;
}

.hero h2 {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 520;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero-question {
  max-width: 650px;
  margin: 28px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.55;
  border-left: 3px solid var(--orange);
}

.hero-question strong {
  color: var(--white);
  font-weight: 720;
}

.authors {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.6;
}

.authors sup,
.affiliations sup {
  color: #8cc3ec;
}

.affiliations,
.author-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.author-note {
  margin-top: 3px;
  font-size: 11px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 730;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-primary {
  color: var(--ink-950);
  background: #8cc3ec;
}

.button-light {
  color: var(--ink-950);
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.hf-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink-950);
  background: var(--yellow);
  font-size: 9px;
  font-weight: 850;
  border-radius: 7px;
}

.hero-visual {
  padding: 12px;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: rotate(0.3deg);
}

.figure-label {
  display: flex;
  padding: 3px 7px 11px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.figure-hint {
  color: var(--blue-deep);
  font-size: 10px;
}

.hero-visual img {
  width: 100%;
  border: 1px solid #d8e1e6;
  border-radius: 13px;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 10px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.hero-stats div {
  padding: 21px 28px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-stats dt {
  color: var(--white);
  font-size: 34px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: 118px 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

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

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

.section-ink {
  color: var(--white);
  background: var(--ink-900);
}

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

.section-heading.narrow {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.metrics-heading h2,
.citation h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(42px, 4.3vw, 68px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.metrics-heading > p,
.resource-layout .section-heading > p:last-child {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.section-heading.narrow > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.section-ink .section-heading h2,
.section-ink .metrics-heading h2,
.section-ink .citation h2 {
  color: var(--white);
}

.section-ink .section-heading > p:last-child,
.section-ink .resource-layout .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.kicker-blue {
  color: #8cc3ec;
}

.kicker-orange {
  color: var(--orange);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comparison-card {
  position: relative;
  min-height: 292px;
  padding: 38px 34px 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.comparison-card::after {
  position: absolute;
  right: -105px;
  bottom: -150px;
  z-index: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.comparison-card > * {
  position: relative;
  z-index: 1;
}

.comparison-card-accent {
  color: var(--white);
  background: var(--ink-850);
  border-color: var(--ink-850);
}

.comparison-card-accent::after {
  border-color: rgba(140, 195, 236, 0.18);
}

.card-index {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--blue-deep);
  background: var(--blue-pale);
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
}

.comparison-card-accent .card-index {
  color: var(--ink-900);
  background: #8cc3ec;
}

.comparison-card h3,
.insight-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.comparison-card p:last-child,
.insight-card p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.comparison-card-accent p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.comparison-card-accent .mini-label {
  color: #8cc3ec;
}

.thesis-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 62px;
  margin-top: 64px;
  padding: 48px 70px;
  align-items: center;
  background: linear-gradient(120deg, #dfeefa, #f7e7dc 58%, #e4eee2);
  border: 1px solid #ccdce4;
  border-radius: var(--radius-lg);
}

.thesis-card img {
  width: 100%;
  filter: drop-shadow(0 20px 24px rgba(13, 44, 66, 0.15));
}

.thesis-card blockquote {
  margin: 0;
  color: var(--ink-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-step {
  position: relative;
  min-height: 350px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
}

.pipeline-step::after {
  position: absolute;
  top: 62px;
  right: -16px;
  z-index: 2;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
}

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

.pipeline-step:nth-child(3)::after {
  top: auto;
  right: 50%;
  bottom: -34px;
  width: auto;
  height: auto;
  content: "↓";
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  border: 0;
  transform: translateX(50%);
}

.step-number {
  position: absolute;
  top: 17px;
  right: 20px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 800;
}

.step-icon {
  position: relative;
  z-index: 3;
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 33px;
  place-items: center;
  color: #9bcbec;
  background: var(--ink-850);
  border: 1px solid rgba(140, 195, 236, 0.34);
  border-radius: 50%;
}

.step-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-phase {
  color: #8cc3ec;
}

.pipeline-step h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.pipeline-step p:last-child {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1.58;
}

.pipeline-callout {
  display: flex;
  max-width: 830px;
  margin: 44px auto 0;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
}

.pipeline-callout strong {
  color: #ffc89f;
  font-size: 12px;
}

.callout-line {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.case-study {
  padding: 38px;
  background: var(--white);
  border: 1px solid #e3ddd3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.sources {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  gap: 18px;
  align-items: stretch;
}

.source-card {
  padding: 29px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.source-blue {
  background: #edf6fc;
  border-color: #a7cde9;
}

.source-orange {
  background: #fcf0e7;
  border-color: #edbb96;
}

.source-head {
  display: flex;
  margin-bottom: 21px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-blue .source-head span {
  color: var(--blue-deep);
}

.source-orange .source-head span {
  color: var(--orange);
}

.source-card p {
  margin: 0;
  color: var(--ink-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.52;
}

.source-card mark {
  padding: 1px 3px;
  color: inherit;
  font-weight: 700;
  background: transparent;
  border-bottom: 3px solid;
}

.source-blue mark {
  border-color: var(--blue);
}

.source-orange mark {
  border-color: var(--orange);
}

.conflict-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: auto;
  place-items: center;
  color: var(--red);
  background: var(--white);
  font-size: 31px;
  font-weight: 700;
  border: 1px solid #e7c4c3;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(131, 59, 58, 0.12);
}

.questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.question-card {
  padding: 25px 28px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.question-card span,
.answer-strip > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card p {
  margin: 0;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}

.answer-strip {
  display: flex;
  margin-top: 18px;
  padding: 17px 21px;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  background: var(--green-pale);
  border: 1px solid #b9d1bd;
  border-radius: var(--radius-sm);
}

.answer-strip > span:first-child {
  margin: 0 8px 0 0;
  color: var(--green);
}

.answer-strip strong {
  color: #2d6541;
  font-size: 16px;
}

.answer-strip i {
  font-family: Georgia, serif;
  font-size: 14px;
}

.closed-book-tag {
  margin-left: auto;
  padding: 5px 10px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  border-radius: 999px;
}

.metrics-heading {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  margin: 100px 0 42px;
  align-items: end;
}

.metrics-heading h2 {
  font-size: clamp(38px, 3.5vw, 56px);
}

.metrics-heading > p {
  margin: 0;
  font-size: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  min-height: 285px;
  padding: 28px;
  background: var(--white);
  border-top: 4px solid;
  border-radius: 8px 8px var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.metric > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  border-radius: 10px;
}

.metric h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.metric p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.metric small {
  display: block;
  margin-top: 19px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-complete { border-color: var(--green); }
.metric-complete > span { color: #2f7146; background: var(--green-pale); }
.metric-partial { border-color: var(--orange); }
.metric-partial > span { color: #a1582c; background: var(--orange-pale); }
.metric-failed { border-color: var(--red); }
.metric-failed > span { color: #9a4140; background: var(--red-pale); }
.metric-conditional { border-color: var(--blue); }
.metric-conditional > span { color: var(--blue-deep); background: var(--blue-pale); }

.leaderboard-section {
  background: #eaf1f4;
}

.leaderboard-toolbar {
  display: flex;
  margin-bottom: 20px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.leaderboard-filters {
  display: flex;
  padding: 4px;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d4e0e5;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(18, 47, 66, 0.06);
}

.leaderboard-filters button {
  padding: 9px 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
  white-space: nowrap;
}

.leaderboard-filters button:hover,
.leaderboard-filters button:focus-visible {
  color: var(--ink-900);
  background: var(--blue-pale);
}

.leaderboard-filters button.active {
  color: var(--white);
  background: var(--ink-850);
}

.leaderboard-toolbar > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.leaderboard-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
}

.leaderboard-table-shell {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d3dfe4;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.leaderboard-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e3eaed;
}

.leaderboard-table th {
  color: var(--muted);
  background: #f4f7f8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.leaderboard-table th:nth-child(n + 4),
.leaderboard-table td:nth-child(n + 4) {
  text-align: right;
}

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

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

.leaderboard-rank {
  width: 78px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.leaderboard-rank span {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  background: #edf2f4;
  border-radius: 50%;
}

.leaderboard-top .leaderboard-rank span {
  color: #765712;
  background: #f5df9e;
}

.leaderboard-model {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.leaderboard-type span {
  display: inline-block;
  padding: 4px 9px;
  color: var(--muted);
  background: #eef3f5;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  border-radius: 999px;
  white-space: nowrap;
}

.leaderboard-value {
  color: #526b7a;
  font-size: 14px;
  font-weight: 660;
}

.leaderboard-value-primary {
  color: var(--blue-deep);
  font-weight: 820;
}

.leaderboard-note {
  margin: 17px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.findings-section {
  overflow: hidden;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.result-panel {
  min-height: 350px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.result-panel-dark {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(220, 133, 73, 0.22), transparent 30%),
    var(--ink-900);
  border-color: var(--ink-900);
}

.result-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.result-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-title h3 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1;
}

.result-title > strong {
  color: var(--green);
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.result-title > strong span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.stacked-bar {
  display: flex;
  height: 74px;
  margin-top: 58px;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
}

.stacked-bar span {
  display: flex;
  padding: 0 14px;
  align-items: center;
}

.bar-c { background: var(--green); }
.bar-p { background: var(--orange); }
.bar-f { min-width: 5px; padding: 0 !important; background: var(--red); }
.bar-f i { display: none; }

.bar-legend {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bar-legend span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  content: "";
  border-radius: 50%;
}

.legend-c::before { background: var(--green); }
.legend-p::before { background: var(--orange); }
.legend-f::before { background: var(--red); }

.result-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.oracle-number {
  display: flex;
  margin-bottom: 27px;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.oracle-number strong {
  color: #8cc3ec;
  font-size: 52px;
}

.oracle-number i {
  color: var(--orange);
  font-weight: 400;
}

.result-panel-dark h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
}

.result-panel-dark p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.insight-card {
  position: relative;
  min-height: 280px;
  padding: 39px;
  overflow: hidden;
  background: #edf2f3;
  border-radius: var(--radius-md);
}

.insight-rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.insight-rule.blue { background: var(--blue); }
.insight-rule.orange { background: var(--orange); }
.insight-rule.green { background: var(--green); }

.insight-card h3 {
  max-width: 480px;
  font-size: 29px;
}

.insight-card p:last-child {
  max-width: 560px;
  font-size: 16px;
}

.insight-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 70px;
  min-height: 315px;
  align-items: center;
  background: #eef4ee;
}

.exposure-viz {
  display: grid;
  gap: 31px;
}

.exposure-viz > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 9px 14px;
  align-items: center;
}

.exposure-viz span {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 780;
}

.exposure-viz i {
  position: relative;
  height: 17px;
  background: rgba(93, 154, 114, 0.15);
  border-radius: 999px;
}

.exposure-viz i::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  content: "";
  background: var(--green);
  border-radius: inherit;
}

.exposure-viz i.orange-bar {
  background: rgba(220, 133, 73, 0.16);
}

.exposure-viz i.orange-bar::before {
  background: var(--orange);
}

.exposure-viz small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resources-section {
  padding-bottom: 78px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 84px;
  align-items: center;
}

.resource-layout .section-heading {
  margin: 0;
}

.resource-links {
  display: grid;
  max-width: 460px;
  margin-top: 37px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.resource-links a {
  display: flex;
  padding: 17px 3px;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 670;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.resource-links a:hover {
  color: #8cc3ec;
}

.resource-links span {
  color: var(--orange);
}

.code-window {
  overflow: hidden;
  background: #071721;
  border: 1px solid rgba(140, 195, 236, 0.17);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.code-head {
  display: flex;
  height: 50px;
  padding: 0 20px;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-head > span {
  width: 9px;
  height: 9px;
  background: #6f8190;
  border-radius: 50%;
}

.code-head > span:first-child { background: var(--red); }
.code-head > span:nth-child(2) { background: var(--yellow); }
.code-head > span:nth-child(3) { background: var(--green); }

.code-head small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-window pre,
.citation-code pre {
  margin: 0;
  overflow: auto;
}

.code-window code {
  display: block;
  min-width: 650px;
  padding: 31px 35px 36px;
  color: #d5e3ec;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.85;
}

.code-comment {
  color: #6d899b;
}

.citation {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 80px;
  margin-top: 105px;
  padding-top: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.citation h2 {
  font-size: 45px;
}

.citation-code {
  position: relative;
  padding: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.citation-code button {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.citation-code button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.citation-code code {
  display: block;
  min-width: 620px;
  padding: 19px 10px 4px;
  color: #b9cbd6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.footer {
  color: rgba(255, 255, 255, 0.45);
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-shell {
  width: var(--shell);
  min-height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.footer p {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.footer-shell > div {
  display: flex;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}

.footer-shell > div a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 48px, 1050px);
  }

  .site-nav {
    gap: 17px;
  }

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

  .language-switcher {
    margin-left: 16px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 132px;
  }

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

  .hero h1 {
    font-size: clamp(70px, 10vw, 108px);
  }

  .hero-visual {
    transform: none;
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline::before,
  .pipeline-step::after {
    display: none;
  }

  .pipeline-step:last-child {
    min-height: 300px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100vw - 34px);
  }

  body {
    font-size: 17px;
  }

  .site-header {
    height: 68px;
  }

  .nav-toggle {
    display: block;
    margin-left: 10px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 17px;
    left: 17px;
    display: none;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 22, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    display: block;
    padding: 112px 0 50px;
  }

  .hero-visual {
    width: 100%;
    margin-top: 46px;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 80px);
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero-question {
    font-size: 16px;
  }

  .authors {
    font-size: 13px;
  }

  .hero-visual {
    padding: 8px;
    overflow-x: auto;
  }

  .hero-visual a {
    display: block;
    width: 700px;
    min-width: 700px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 82px 0;
  }

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

  .section-heading h2,
  .metrics-heading h2 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .section-heading > p:last-child,
  .metrics-heading > p {
    font-size: 17px;
  }

  .comparison-grid,
  .pipeline,
  .questions,
  .metric-grid,
  .result-layout,
  .insight-grid,
  .insight-wide,
  .metrics-heading,
  .citation {
    grid-template-columns: 1fr;
  }

  .comparison-card,
  .pipeline-step,
  .pipeline-step:last-child {
    min-height: auto;
  }

  .insight-wide {
    grid-column: auto;
  }

  .thesis-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 34px 26px;
  }

  .thesis-card img {
    max-width: 330px;
    margin: auto;
  }

  .thesis-card blockquote {
    font-size: 29px;
  }

  .pipeline-callout {
    display: none;
  }

  .case-study {
    padding: 20px;
  }

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

  .conflict-mark {
    margin: -3px auto;
  }

  .source-card p {
    font-size: 19px;
  }

  .answer-strip {
    flex-wrap: wrap;
  }

  .closed-book-tag {
    margin-left: 0;
  }

  .metrics-heading {
    gap: 20px;
    margin-top: 75px;
  }

  .leaderboard-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .leaderboard-filters {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 13px;
  }

  .leaderboard-toolbar > p {
    padding-left: 3px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 13px 15px;
  }

  .result-title {
    gap: 30px;
    align-items: center;
  }

  .result-title > strong {
    font-size: 35px;
  }

  .stacked-bar {
    height: 62px;
    margin-top: 45px;
  }

  .insight-wide {
    gap: 40px;
  }

  .resource-layout {
    gap: 48px;
  }

  .citation {
    gap: 30px;
    margin-top: 76px;
  }

  .footer-shell {
    min-height: 180px;
    padding: 32px 0;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .footer p {
    text-align: center;
  }
}

@media (max-width: 500px) {
  .brand span {
    display: none;
  }

  .language-switcher button {
    min-width: 39px;
    padding: 5px 7px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button-ghost {
    grid-column: 1 / -1;
  }

  .hero-stats div {
    padding: 18px;
  }

  .hero-stats dt {
    font-size: 29px;
  }

  .comparison-card,
  .pipeline-step,
  .metric,
  .result-panel,
  .insight-card {
    padding: 27px 24px;
  }

  .step-icon {
    width: 68px;
    height: 68px;
  }

  .oracle-number strong {
    font-size: 43px;
  }

  .exposure-viz > div {
    grid-template-columns: 108px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
