:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #586474;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --line: #d9e0ea;
  --accent: #0f766e;
  --accent-2: #b45309;
  --blue: #1d4ed8;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 15px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 224, 234, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 61px);
  padding: 58px max(22px, calc((100vw - 1180px) / 2)) 72px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(29, 78, 216, 0.05) 54%, rgba(180, 83, 9, 0.08)),
    #fbfcfe;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 106px);
  line-height: 0.92;
  font-weight: 850;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.18;
}

.deck {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.authors {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.authors a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.authors a:hover {
  color: var(--accent);
}

.affiliation {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  color: #8993a1;
  background: #f1f4f8;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 234, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article {
  background: #ffffff;
}

.section {
  padding: 78px max(22px, calc((100vw - 980px) / 2));
}

.section:nth-of-type(2n + 4) {
  background: var(--soft);
}

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

.intro {
  max-width: none;
}

.intro p,
.narrow p,
.method-copy p {
  margin: 0 0 20px;
  color: #253041;
  font-size: 20px;
}

.intro p:last-child,
.narrow p:last-child,
.method-copy p:last-child {
  margin-bottom: 0;
}

.figure-section {
  padding-top: 24px;
  padding-bottom: 46px;
}

.paper-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.08);
}

.paper-figure img {
  width: 100%;
  background: #ffffff;
}

.paper-figure figcaption,
.animation figcaption {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.paper-figure.full {
  margin-right: auto;
  margin-left: auto;
  max-width: 1100px;
}

.bridge {
  color: var(--ink);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
}

.narrow {
  max-width: none;
  padding-top: 38px;
}

.observations {
  padding-right: max(22px, calc((100vw - 1120px) / 2));
  padding-left: max(22px, calc((100vw - 1120px) / 2));
}

.observation {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 34px;
  align-items: center;
  margin-top: 44px;
}

.observation:first-of-type {
  margin-top: 0;
}

.observation.flip {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.observation.flip .observation-copy {
  order: 2;
}

.observation-copy {
  max-width: 620px;
}

.observation-copy p,
.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.figure-stack {
  display: grid;
  gap: 16px;
}

.combined-assets {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.combined-assets img {
  width: 100%;
}

.combined-assets .stats-panel {
  padding: 0 12px;
}

.statekv {
  padding-right: max(22px, calc((100vw - 1120px) / 2));
  padding-left: max(22px, calc((100vw - 1120px) / 2));
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  gap: 34px;
  align-items: start;
}

.method-copy {
  max-width: 640px;
}

.method-figure {
  align-self: center;
}

.animation {
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.animation img {
  width: 100%;
}

.results {
  padding-right: max(22px, calc((100vw - 1120px) / 2));
  padding-left: max(22px, calc((100vw - 1120px) / 2));
}

.lead {
  margin-bottom: 30px;
}

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

.wide-result {
  margin-top: 26px;
}

.table-figure {
  margin-top: 30px;
  max-width: 750px;
  margin-right: auto;
  margin-left: auto;
}

.table-figure img {
  width: 100%;
}

.runtime {
  padding-right: max(22px, calc((100vw - 1120px) / 2));
  padding-left: max(22px, calc((100vw - 1120px) / 2));
}

.runtime-figure {
  margin-top: 30px;
}

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

.resource-list a,
.resource-list span {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.resource-list span {
  color: var(--muted);
  background: #f8fafc;
}

.citation pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(22px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .observation,
  .observation.flip,
  .method-grid,
  .pareto-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-top: 46px;
  }

  .observation.flip .observation-copy {
    order: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 23px;
  }

  .deck {
    font-size: 19px;
  }

  .intro p,
  .narrow p,
  .method-copy p {
    font-size: 18px;
  }

  .bridge {
    font-size: 23px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .figure-section {
    padding-top: 14px;
    padding-bottom: 30px;
  }
}
