:root {
  --ink: #2a2f3a;
  --ink-soft: #687084;
  --paper: #f6f7f9;
  --paper-deep: #eef0f4;
  --white: #ffffff;
  --night: #2f3858;
  --night-soft: #465372;
  --teal: #52629a;
  --teal-dark: #3f4d7c;
  --title-blue: #52629a;
  --mint: #e5e8f1;
  --coral: #7a86ad;
  --amber: #6978a8;
  --line: #dce0e8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 48px rgba(35, 35, 38, 0.08);
  --content: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, audio { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--night);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand { color: var(--ink); font-size: 19px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 20px;
  background: var(--teal);
}

.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 8px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 17px; }
.brand-mark i:nth-child(3) { height: 24px; background: var(--coral); }

nav { display: flex; align-items: center; gap: 24px; }
nav a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
nav a:hover, nav a:focus-visible { color: var(--teal); }
.nav-paper {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 730px;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 14%, rgba(82, 98, 154, 0.13), transparent 25%),
    radial-gradient(circle at 72% 42%, rgba(111, 124, 166, 0.08), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f6f7f9 55%, #eef0f4 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.55;
  background-image: linear-gradient(rgba(82,98,154,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(82,98,154,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  top: 170px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(82, 98, 154, 0.16);
  box-shadow: inset 0 0 100px rgba(82, 98, 154, 0.05);
}

.hero-glow-two {
  top: 260px;
  right: -38px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(122,134,173,0.22);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 110px 0 64px;
}

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

.hero .eyebrow { color: var(--teal); }

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(47px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 span { color: var(--title-blue); }

.hero-summary {
  max-width: 770px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 8px 22px rgba(82,98,154,0.2); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { border: 1px solid var(--line); color: var(--teal-dark); background: var(--white); }
.button-secondary:hover { border-color: rgba(82,98,154,0.32); background: #eef0f5; }

.authors {
  max-width: 1050px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #505767;
  font-size: 14px;
}

.authors p { margin-bottom: 6px; }
.authors sup { color: var(--teal); }
.affiliations { color: var(--ink-soft); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.hero-metrics div {
  min-height: 105px;
  padding: 22px;
  background: rgba(255,255,255,0.94);
}

.hero-metrics strong { display: block; color: var(--teal-dark); font-size: 25px; line-height: 1.2; }
.hero-metrics span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }

.section { width: var(--content); margin: 0 auto; padding: 104px 0; }
.section-tinted, .section-dark { width: 100%; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); }
.section-tinted { background: var(--paper-deep); }
.section-dark { color: var(--ink); background: linear-gradient(150deg, #eceff5, #f6f7f9 72%); }

.section-heading { max-width: 770px; margin-bottom: 48px; }
.section-heading h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child { color: var(--ink-soft); font-size: 17px; }
.section-dark .section-heading > p:last-child { color: var(--ink-soft); }

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: end;
  gap: 72px;
  max-width: none;
}
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin-bottom: 3px; }

.paper-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.paper-figure img { width: 100%; height: auto; }
.paper-figure figcaption { padding: 16px 20px 18px; color: var(--ink-soft); font-size: 13px; }
.architecture-figure { padding: 28px 28px 0; }
.architecture-figure img { border-radius: 12px; }

.leaderboard-highlight {
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 0.64fr);
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(229,232,241,0.78), rgba(255,255,255,0.88));
  box-shadow: 0 12px 34px rgba(35,35,38,0.05);
}
.highlight-copy { padding: 8px 4px; }
.highlight-copy .section-kicker { margin-bottom: 10px; }
.highlight-copy h3 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }
.highlight-copy > p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.leaderboard-highlight .paper-figure { margin: 0; padding: 12px 12px 0; box-shadow: none; }
.leaderboard-highlight img { border-radius: 10px; }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.concept-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.78);
}

.concept-number { color: var(--teal-dark); font-family: Georgia, serif; font-size: 14px; }
.concept-grid h3 { margin: 38px 0 9px; font-size: 20px; }
.concept-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }

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

.generation-card { box-shadow: 0 10px 28px rgba(35,35,38,0.045); }
.generation-card .model-label em { letter-spacing: 0.06em; }
audio { display: block; width: 100%; min-height: 42px; margin-top: 18px; }

.sample-context {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 32px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.78);
}
.sample-context p { margin-bottom: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.55; }
.context-label { display: block; margin-bottom: 10px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.sample-context dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.sample-context dl div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sample-context dt { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; }
.sample-context dd { margin: 2px 0 0; font-weight: 750; }

.pair-heading {
  margin: 0 0 18px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.comparison-grid { display: grid; gap: 16px; }
.comparison-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.comparison-card.is-playing { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 15px 38px rgba(82,98,154,0.14); }
.comparison-primary { border-color: rgba(82,98,154,0.34); background: linear-gradient(145deg, rgba(229,232,241,0.76), var(--white) 60%); }
.model-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model-label span { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--white); background: var(--night); font-size: 11px; font-weight: 800; }
.model-label em { color: var(--ink-soft); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.comparison-card h3, .comparison-card h4 { margin: 24px 0 6px; font-size: 21px; }
.comparison-card p { min-height: 48px; margin-bottom: 0; color: var(--ink-soft); font-size: 13px; }

.section-dark .section-kicker { color: var(--teal); }
.pair-block { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.82); box-shadow: 0 12px 34px rgba(35,35,38,0.05); }
.pair-heading > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.pair-heading span { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pair-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.section-dark .comparison-card { color: var(--ink); }

.results-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
#results .section-heading { max-width: 920px; }
.results-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.results-table { width: 100%; min-width: 930px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.results-table caption { padding: 18px 20px; color: var(--ink-soft); background: #f1f3f7; font-size: 13px; text-align: left; caption-side: top; }
.results-table th, .results-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.results-table thead th { color: var(--white); background: var(--teal-dark); font-size: 11px; letter-spacing: 0.04em; }
.results-table th:first-child, .results-table th:nth-child(2) { text-align: left; }
.results-table tbody th[scope="rowgroup"] { color: var(--teal-dark); background: #f1f3f7; vertical-align: top; }
.results-table tbody th[scope="row"] { color: #505767; font-weight: 650; }
.results-table tbody tr:hover { background: #f7f8fa; }
.results-table tbody tr.group-start > * { border-top: 2px solid #cbd1df; }
.results-table tbody tr:last-child > * { border-bottom: 0; }
.results-table strong { color: var(--teal-dark); }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
}
footer p { margin: 0; text-align: center; }
footer a { color: var(--teal); font-weight: 800; text-decoration: none; }
.footer-brand { color: var(--ink); font-size: 16px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@media (max-width: 980px) {
  nav a:not(.nav-paper) { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .split-heading, .sample-context { grid-template-columns: 1fr; gap: 28px; }
  .generation-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .leaderboard-highlight { grid-template-columns: 1fr; }
  .concept-grid article { min-height: 0; }
  .concept-grid h3 { margin-top: 20px; }
}

@media (max-width: 720px) {
  :root { --content: min(100% - 32px, 1180px); }
  .site-header { min-height: 60px; padding: 0 16px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 72px 0 40px; }
  h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero-summary { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics div { min-height: 95px; padding: 18px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-tinted, .section-dark { padding-left: 16px; padding-right: 16px; }
  .architecture-figure { padding: 12px 12px 0; }
  .comparison-grid-four, .comparison-grid-two { grid-template-columns: 1fr; }
  .sample-context { padding: 20px; }
  .sample-context dl { grid-template-columns: 1fr 1fr; }
  .pair-block { padding: 16px; }
  .pair-heading > div:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p { text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 420px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .sample-context dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
