:root {
  --ink: #363636;
  --muted: #4a4a4a;
  --line: #dbdbdb;
  --paper: #ffffff;
  --soft: #ffffff;
  --soft-warm: #ffffff;
  --accent: #3273dc;
  --accent-dark: #2366c5;
  --accent-pale: #ffffff;
  --max-width: 1180px;
  --reading-width: 980px;
  --sans: "Noto Sans", sans-serif;
  --serif: "Google Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-color: rgba(50, 115, 220, 0.4);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid rgba(50, 115, 220, 0.32);
  outline-offset: 4px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 0 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 92px 0 54px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 16px;
  color: #555;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker {
  display: none;
}

.hero h1 {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.35vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero h1 em {
  color: var(--ink);
  font-style: normal;
}

.hero h1 .title-main {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  color: var(--ink);
  transform-origin: center;
  transition: transform 220ms ease;
}

.hero h1 .title-accent {
  font-style: normal;
}

.hero h1 .title-subtitle {
  font-weight: 600;
}

.hero h1 .title-main:hover {
  transform: scale(1.025);
}

.title-icon {
  display: inline-flex;
  width: 0.72em;
  height: 0.72em;
  color: currentColor;
  transition: transform 220ms ease;
}

.title-main:hover .title-icon {
  transform: rotate(-10deg) scale(1.08);
}

.title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.7;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 9px;
  max-width: 1100px;
  margin: 30px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

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

.authors a:not(:last-child)::after {
  content: ",";
  margin-left: 0.2em;
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 400;
}

sup {
  position: relative;
  top: -0.15em;
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
}

.author-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-affiliations {
  max-width: 1120px;
  margin: 12px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions,
.citation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 31px;
}

.hero-actions .button {
  min-height: 48px;
  padding: 11px 21px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 999px;
  font-size: 1rem;
}

.hero-actions .button:hover,
.hero-actions .button-primary:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}

.button-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: var(--soft-warm);
  box-shadow: 0 2px 6px rgba(36, 33, 31, 0.08);
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button-primary:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}

.hero-thesis {
  max-width: 720px;
  margin: 34px auto 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-thesis strong {
  color: var(--ink);
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.figure figcaption {
  margin: 12px auto 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  text-align: center;
}

.hero-figure {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-figure img {
  border-radius: 4px;
}

.hero-figure figcaption {
  margin-bottom: 2px;
}

.section {
  padding: 122px 0 0;
  scroll-margin-top: 84px;
}

.intro-section {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.intro-grid,
.section-heading-row {
  display: block;
  text-align: center;
}

.citation-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: start;
}

.intro-grid .body-copy {
  max-width: 860px;
  margin: 24px auto 0;
  text-align: left;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.body-copy {
  color: var(--muted);
}

.body-copy p,
.section-lede {
  margin: 0 0 17px;
}

.body-copy p:last-child,
.section-lede:last-child {
  margin-bottom: 0;
}

.body-copy strong {
  color: var(--ink);
}

.stat-row {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 20px 22px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  animation: inline-reveal 620ms ease-out both;
}

.stat:last-child {
  border-right: 0;
}

.stat:nth-child(2) {
  animation-delay: 90ms;
}

.stat:nth-child(3) {
  animation-delay: 180ms;
}

.stat:hover,
.stat:focus-within {
  position: relative;
  z-index: 1;
  transform: scale(1.035);
  transition: transform 180ms ease;
}

.stat strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.step-index {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.section-heading-row {
  text-align: center;
}

.benchmark-section .section-heading-row {
  display: block;
}

.section-lede {
  max-width: 660px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.07rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.benchmark-section .section-lede {
  max-width: none;
}

.benchmark-section .category-list {
  justify-content: center;
  margin-top: 20px;
}

.steps-grid h3 {
  text-align: center;
}

.method-figure {
  width: 100%;
  margin-top: 48px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.method-figure img {
  margin: 0 auto;
  border-radius: 5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 43px;
}

.step {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.step-index {
  margin-bottom: 19px;
}

.step p,
.benchmark-copy p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  grid-auto-rows: auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 8px;
  padding-top: 0;
}

.category-item {
  display: contents;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  grid-row: 1;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-tag:hover,
.category-tag:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateX(2px);
}

.category-description {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 960px;
  max-height: 0;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.category-item:hover .category-description,
.category-item:focus-within .category-description {
  max-height: 80px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-list:has(.category-item:hover) .category-item:focus-within:not(:hover) .category-description {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.benchmark-figure {
  margin-top: 47px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.benchmark-figure img {
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.benchmark-copy-wide {
  max-width: 900px;
  margin: 42px auto 0;
}

.example-figure {
  margin-top: 45px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  margin-top: 51px;
}

.result-figure {
  min-width: 0;
}

.result-figure {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.result-figure img {
  border-radius: 4px;
}

.result-figure-wide {
  grid-column: 1 / -1;
}

.qualitative-figure {
  align-self: start;
  grid-column: 1 / -1;
}

.citation-section {
  padding-top: 20px;
  padding-bottom: 100px;
}

.citation-heading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.citation-actions {
  justify-content: flex-start;
}

#copy-status {
  min-width: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
}

.bibtex {
  margin: 0;
  padding: 19px 22px;
  overflow: auto;
  color: var(--ink);
  background: #f5f5f5;
  border: 0;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 27px 24px 35px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
}

@media (max-width: 899px) {
  .intro-grid,
  .section-heading-row,
  .citation-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-list {
    justify-content: flex-start;
  }

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

  .result-figure-wide {
    grid-column: auto;
  }

  .citation-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 719px) {
  .nav-inner,
  .page-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  body.js-enabled .menu-toggle {
    display: inline-flex;
  }

  body.js-enabled .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 28px rgba(36, 33, 31, 0.08);
  }

  body.js-enabled .nav-links.is-open {
    display: flex;
  }

  body.js-enabled .nav-links a {
    padding: 10px 12px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.95rem);
  }

  .authors {
    gap: 5px 12px;
    font-size: 1rem;
  }

  .hero-thesis {
    font-size: 1.1rem;
  }

  .hero-figure,
  .method-figure,
  .benchmark-figure,
  .result-figure {
    padding: 10px;
  }

  .section {
    padding-top: 88px;
  }

  .stat-row {
    display: flex;
    flex-wrap: nowrap;
  }

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

  .stat-row {
    margin-top: 38px;
  }

  .stat {
    padding: 16px 8px;
    text-align: center;
  }

  .stat strong {
    font-size: clamp(1.1rem, 6vw, 2.2rem);
  }

  .stat span {
    font-size: 0.74rem;
  }

  .results-section {
    padding-bottom: 32px;
  }

  .citation-section {
    padding-top: 16px;
    padding-bottom: 75px;
  }

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

  #copy-status {
    min-height: 1.4em;
  }
}

@media (max-width: 479px) {
  .nav-inner,
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .authors {
    font-size: 0.94rem;
  }

  .hero-actions {
    gap: 7px;
  }

  h2 {
    font-size: 2rem;
  }

  .bibtex {
    padding: 16px;
    font-size: 0.75rem;
  }
}

@keyframes inline-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
  }

  .stat,
  .title-main,
  .title-icon {
    animation: none;
    transition: none;
  }
}
