:root {
  color-scheme: light;
  --ink: #172136;
  --muted: #5e6b7e;
  --blue: #2468ba;
  --blue-dark: #174a8c;
  --line: #e0e7ef;
  --soft: #f5f8fc;
  --max: 1180px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button { font: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(32px, 4.3vw, 50px); line-height: 1.12; letter-spacing: -.045em; }
h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
sup { font-size: .7em; line-height: 0; }
:focus-visible { outline: 3px solid #397dcb; outline-offset: 5px; }
[hidden] { display: none !important; }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 100px; }
.soft-section { background: var(--soft); }
.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: 8px; left: 16px; z-index: 100; padding: 10px 18px; border-radius: 8px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: #fff; }

/* A quiet navigation bar keeps the two-paper story easy to explore. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); }
.nav-shell { width: min(1260px, calc(100% - 40px)); min-height: 68px; margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.brand { color: var(--ink); font-size: 20px; font-weight: 780; letter-spacing: -.04em; white-space: nowrap; }
.brand span { color: var(--blue); font-weight: 550; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-left: auto; }
.nav-links a { padding-block: 10px; color: #4d5b6d; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--blue); }
.nav-paper { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 14px; font-weight: 650; }
.nav-paper:hover { color: #fff; background: var(--blue); text-decoration: none; }

.hero { padding-top: 68px; padding-bottom: 0; text-align: center; }
.eyebrow, .section-kicker, .step-number, .table-label { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin-bottom: 18px; }
h1 { margin-bottom: 18px; font-size: clamp(48px, 7.5vw, 86px); font-weight: 780; line-height: 1.02; letter-spacing: -.065em; }
h1 span { color: var(--blue); }
.subtitle { margin-bottom: 17px; font-size: clamp(24px, 3.2vw, 37px); font-weight: 570; letter-spacing: -.035em; line-height: 1.2; }
.hero-description { max-width: 710px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block: 25px 42px; }
.pill { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 9px 18px; border: 1px solid #d4deea; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 650; background: #fff; transition: border-color .15s, background .15s; }
.pill:hover { text-decoration: none; border-color: #87aedb; background: #f7faff; }
.pill.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.pill.primary:hover { background: var(--blue); border-color: var(--blue); }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; scroll-margin-top: 100px; text-align: left; }
.paper-card { display: flex; flex-direction: column; padding: 26px 28px 23px; border: 1px solid var(--line); border-top: 3px solid #b8c5d6; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(26, 49, 83, .035); }
.family-paper { border-color: #cbdff4; border-top-color: var(--blue); background: linear-gradient(145deg, #fff, #f5f9ff); }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 6px; color: var(--blue-dark); background: #eaf2fc; font-size: 12px; font-weight: 750; }
.paper-card h2 { margin-bottom: 14px; font-size: 23px; line-height: 1.32; letter-spacing: -.025em; text-wrap: initial; }
.authors { margin-bottom: 13px; color: #435064; font-size: 14px; line-height: 1.9; }
.authors span { display: inline-block; }
.authors sup, .affiliations sup { color: var(--blue); margin-left: 2px; }
.paper-description { margin-bottom: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.paper-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.paper-links a { padding-block: 4px; }
.paper-status { padding-block: 4px; color: var(--muted); }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 18px; margin: 20px auto 6px; max-width: 1050px; color: var(--muted); font-size: 14px; }
.correspondence { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: end; gap: 70px; margin-bottom: 40px; }
.section-kicker { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 2px; color: var(--muted); font-size: 17px; }
.promo-section { padding-top: clamp(44px, 7vw, 88px); }
.promo-section .section-heading { margin-bottom: 28px; }
.promo-player video { width: 100%; aspect-ratio: 16 / 9; background: #111827; }
.metrics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 50px; padding-block: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid > div { padding: 4px 24px; border-right: 1px solid var(--line); }
.metrics-grid > div:first-child { padding-left: 0; }
.metrics-grid > div:last-child { border-right: 0; }
.metrics-grid strong { display: block; color: var(--blue); font-size: 41px; line-height: 1.2; letter-spacing: -.04em; }
.metrics-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.roadmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 76px; }
.paper-figure { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px rgba(25, 52, 87, .045); }
.paper-figure > a { display: block; padding: 28px; }
.paper-figure img { width: 100%; }
.paper-figure a:focus-visible { outline-offset: -5px; }
figcaption { padding: 15px 22px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 14px; line-height: 1.6; }
.roadmap-figure > a { padding: 18px; }
.roadmap-story { display: grid; gap: 44px; }
.roadmap-story article { padding-top: 22px; border-top: 2px solid #dce7f4; }
.step-number { display: block; margin-bottom: 10px; }
.roadmap-story h3 { margin-bottom: 12px; font-size: 27px; }
.roadmap-story p:not(.step-number) { margin-bottom: 16px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 700; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-block: 35px 40px; }
.recipe-grid article { padding-top: 22px; border-top: 2px solid #b9cee8; }
.recipe-grid h3, .paradigm-grid h3 { margin-bottom: 11px; font-size: 23px; }
.recipe-grid p, .paradigm-grid p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.paradigms-figure { max-width: 960px; margin-inline: auto; }
.paradigms-figure > a { padding: 30px; }
.paradigm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-block: 38px 58px; }
.paradigm-grid article { padding: 22px 0 14px; border-top: 2px solid #c4d8f0; }

/* Native tables keep every result selectable, searchable, and usable without JS. */
.table-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 45px; margin-bottom: 18px; }
.table-label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .09em; }
.table-heading h3 { margin: 0; font-size: 25px; }
.table-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #d8e2ef; border-radius: 15px; background: #fff; box-shadow: 0 9px 25px rgba(26, 49, 83, .035); scrollbar-width: thin; scrollbar-color: #b7c9df #f2f6fb; }
.data-table { width: 100%; min-width: 640px; border-spacing: 0; border-collapse: separate; color: #3e4b5f; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid #e8edf4; text-align: center; white-space: nowrap; }
.data-table thead th { padding-block: 14px; color: var(--blue-dark); background: #eaf1fa; font-weight: 700; font-size: 13px; }
.data-table thead tr + tr th { border-top: 1px solid #dbe6f3; background: #f0f5fc; }
.data-table tr > :first-child { position: sticky; left: 0; z-index: 2; max-width: 320px; border-right: 1px solid #e8edf4; background: #fff; text-align: left; font-weight: 620; }
.data-table thead tr > :first-child { z-index: 3; background: #eaf1fa; }
.data-table thead tr + tr > :first-child { position: static; text-align: center; border-right: 0; background: #f0f5fc; }
.data-table tbody tr:hover > * { background: #f7faff; }
.data-table .group-row th { position: static; padding-block: 8px; color: #546982; background: #f2f5f9; font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.data-table .group-row:hover th { background: #f2f5f9; }
.data-table .ours > * { color: #214d83; background: #f0f6ff; font-weight: 650; }
.data-table .ours > :first-child { color: var(--blue-dark); background: #eaf3ff; font-weight: 750; }
.data-table td.best { color: #124e96; background: #deecfd; font-weight: 800; }
.data-table tr:last-child > * { border-bottom: 0; }
.data-table td:last-child { font-weight: 700; }
.data-table.wide-table { min-width: 1050px; }
.family-table { min-width: 960px; }
.family-table td:nth-child(2), .family-table td:nth-child(3) { text-align: left; }
.delta { color: #6f5878; font-size: 12px; }
.table-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 13px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.legend-best { display: inline-block; flex-shrink: 0; padding: 3px 9px; border-radius: 5px; color: #124e96; background: #deecfd; font-size: 12px; font-weight: 750; }
.study-list { display: grid; gap: 14px; margin-top: 34px; }
.study-details { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.study-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; cursor: pointer; list-style: none; }
.study-details summary::-webkit-details-marker { display: none; }
.study-details summary strong { display: block; font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.study-details summary .table-label { margin-bottom: 5px; }
.study-details summary:hover { color: var(--blue); }
.study-details summary:focus-visible { outline-offset: -4px; border-radius: 15px; }
.expand-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid #d7e3f2; border-radius: 50%; color: var(--blue); font-size: 23px; line-height: 1; }
.study-details[open] .expand-icon { transform: rotate(45deg); }
.details-body { padding: 0 26px 26px; }
.table-description { max-width: 980px; margin-bottom: 19px; color: var(--muted); font-size: 16px; }
.benchmark-block { margin-top: 72px; padding-top: 72px; border-top: 1px solid #d8e3f0; }

.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.demo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f0f3f7; }
.demo-card video { width: 100%; background: #111827; }
.demo-card figcaption { padding: 13px 15px; font-size: 14px; }
.wide-demo { grid-column: span 2; }
.demo-section { margin-top: 72px; }
.demo-section h3 { margin-bottom: 15px; font-size: 29px; }
.section-description { color: var(--muted); }

.citation-section { background: #111b2c; color: #f4f7fb; }
.citation-section .section-kicker { color: #91beef; }
.citation-section .section-heading > p { color: #b0bed1; }
.citation-block { overflow: hidden; margin-top: 22px; border: 1px solid #334157; border-radius: 15px; background: #182338; scroll-margin-top: 95px; }
.citation-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 22px; border-bottom: 1px solid #334157; }
.citation-heading h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.citation-heading button { min-height: 40px; padding: 6px 12px; border: 1px solid #526780; border-radius: 7px; color: #e0edff; background: #21324b; font-size: 14px; cursor: pointer; }
.citation-heading button:hover { background: #2f4668; }
.citation-block pre { margin: 0; padding: 24px; overflow-x: auto; color: #c8d6eb; font: 13px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-status { min-height: 24px; margin: 14px 0 0; color: #c6dcf7; font-size: 14px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 38px; }
.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.site-footer > a { font-size: 14px; font-weight: 650; }

@media (max-width: 1050px) {
  .nav-shell { gap: 20px; }
  .nav-links { gap: 16px; }
  .section-heading { gap: 40px; }
  .roadmap-layout { gap: 40px; }
  .roadmap-story { gap: 24px; }
  .roadmap-story h3 { font-size: 23px; }
  .roadmap-story p:not(.step-number) { font-size: 16px; }
  .paper-card { padding-inline: 22px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 118px; }
  .section { padding-block: 68px; }
  .nav-shell { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; padding-top: 9px; }
  .nav-links { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 24px; max-width: 100%; margin: 0; overflow-x: auto; }
  .nav-links a { padding-block: 10px; }
  .nav-paper { grid-row: 1; grid-column: 2; padding: 5px 14px; }
  .hero { padding-top: 46px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-card h2 { font-size: 23px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 10px; }
  .metrics-grid > div { padding: 20px !important; }
  .metrics-grid > div:nth-child(even) { border-right: 0; }
  .metrics-grid > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .metrics-grid > div:last-child { grid-column: 1 / -1; text-align: center; }
  .roadmap-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .roadmap-figure { width: min(100%, 560px); margin-inline: auto; }
  .roadmap-story { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .roadmap-story h3 { font-size: 21px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 22px; }
  .table-heading { grid-template-columns: 1fr; gap: 14px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .benchmark-block { margin-top: 52px; padding-top: 52px; }
}
@media (max-width: 600px) {
  .section-shell { width: calc(100% - 32px); }
  .nav-shell { width: calc(100% - 32px); }
  .nav-links { gap: 20px; }
  .hero { padding-top: 36px; }
  .eyebrow { font-size: 12px; letter-spacing: .08em; }
  h1 { font-size: clamp(43px, 10vw, 60px); }
  .hero-actions { margin-bottom: 30px; }
  .paper-card { padding: 21px; }
  .paper-card h2 { font-size: 22px; }
  .paper-meta { justify-content: flex-start; gap: 8px 15px; }
  .affiliations { gap: 5px 14px; }
  .section { padding-block: 55px; }
  .section-heading { margin-bottom: 28px; }
  .metrics-grid { margin-bottom: 30px; }
  .metrics-grid strong { font-size: 34px; }
  .metrics-grid > div { padding: 16px !important; }
  .roadmap-story, .paradigm-grid { grid-template-columns: 1fr; }
  .roadmap-story h3 { font-size: 24px; }
  .paper-figure > a { padding: 12px; }
  .paper-figure { border-radius: 12px; }
  figcaption { padding: 13px 16px; }
  .paradigm-grid { gap: 12px; margin-bottom: 35px; }
  .study-details summary { padding: 19px 17px; gap: 12px; }
  .study-details summary strong { font-size: 17px; }
  .details-body { padding: 0 12px 18px; }
  .details-body > p { padding-inline: 5px; }
  .table-label { letter-spacing: .055em; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .data-table tbody tr:not(.group-row) > :first-child, .data-table thead tr:first-child > :first-child { min-width: 136px; max-width: 175px; white-space: normal; }
  .table-scroll { border-radius: 11px; }
  .video-grid { gap: 12px; }
  .demo-card figcaption { padding: 11px; }
  .wide-demo { grid-column: 1 / -1; }
  .demo-section { margin-top: 48px; }
  .demo-section h3 { font-size: 25px; }
  .citation-heading { padding: 16px; }
  .citation-block pre { padding: 17px; }
  .site-footer { gap: 20px; padding-block: 28px; }
}
@media (max-width: 380px) {
  .video-grid { grid-template-columns: 1fr; }
  .pill { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .hero-actions, .promo-section, .video-grid, .citation-heading button, .skip-link { display: none; }
  .section { padding-block: 30px; }
  .section-shell { width: 100%; }
  .table-scroll { overflow: visible; box-shadow: none; }
  .data-table { min-width: 0 !important; font-size: 9px; }
  .data-table th, .data-table td { padding: 5px; white-space: normal; }
  .data-table tr > :first-child { position: static; }
  .paper-figure { box-shadow: none; }
  .citation-section { color: var(--ink); background: #fff; }
  .citation-block { background: #fff; }
  .citation-block pre { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
}
