:root {
  --page-bg: #f5f7fb;
  --page-bg-alt: #eef2f8;
  --page-bg-elevated: #ffffff;
  --page-ink: #18212b;
  --page-muted: #5c6878;
  --page-line: rgba(114, 137, 169, 0.16);
  --page-line-strong: rgba(114, 137, 169, 0.24);
  --page-line-cool: rgba(140, 164, 199, 0.22);
  --hero-bg: #eef2f8;
  --hero-ink: #18212b;
  --hero-muted: rgba(56, 69, 87, 0.74);
  --hero-overlay: rgba(255, 255, 255, 0.74);
  --surface-bg: rgba(255, 255, 255, 0.82);
  --surface-bg-strong: rgba(255, 255, 255, 0.94);
  --surface-bg-soft: rgba(238, 242, 248, 0.72);
  --accent-blue: #8ca4c7;
  --accent: #c9ab7d;
  --accent-soft: rgba(201, 171, 125, 0.12);
  --accent-blue-soft: rgba(140, 164, 199, 0.18);
  --neutral-bar: #d8e2ef;
  --neutral-bar-dark: #8fa3be;
  --max-width: 1180px;
  --content-width: 980px;
  --sticky-offset: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(140, 164, 199, 0.1), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(201, 171, 125, 0.08), transparent 20%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 36%, #eef2f8 100%);
  color: var(--page-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

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

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.section[id] {
  scroll-margin-top: var(--sticky-offset);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(114, 137, 169, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease,
    -webkit-backdrop-filter 180ms ease;
}

.site-header--on-hero {
  background: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(140, 164, 199, 0.14);
}

.site-header__inner,
.section__inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}

.site-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--page-ink);
  letter-spacing: 0;
  transition: color 180ms ease;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  position: relative;
  color: rgba(24, 33, 43, 0.72);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 164, 199, 0.12), rgba(201, 171, 125, 0.52), rgba(140, 164, 199, 0.12));
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: rgba(24, 33, 43, 0.96);
}

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

.site-header--on-hero .site-mark {
  color: var(--hero-ink);
}

.site-header--on-hero .site-nav a {
  color: rgba(24, 33, 43, 0.72);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: min(760px, 100vh);
  padding: var(--sticky-offset) 0 56px;
  background: linear-gradient(180deg, #f7f4ee 0%, #f4f7fb 34%, #eef2f8 100%);
  color: var(--hero-ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(140, 164, 199, 0.13), transparent 30%),
    radial-gradient(circle at 80% 14%, rgba(201, 171, 125, 0.16), transparent 23%),
    radial-gradient(circle at 52% 78%, rgba(168, 130, 85, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 48%, rgba(230, 236, 244, 0.36));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(247, 249, 252, 0.88)),
    radial-gradient(circle at 34% 28%, rgba(140, 164, 199, 0.07), transparent 28%),
    radial-gradient(circle at 74% 34%, rgba(201, 171, 125, 0.11), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(160, 123, 83, 0.08), transparent 26%);
  pointer-events: none;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
  filter: blur(30px) saturate(0.92) contrast(0.88) brightness(1.18) opacity(0.18);
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: min(620px, calc(100vh - 144px));
  display: grid;
  align-items: center;
}

.hero__copy {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.hero__copy::before {
  content: "";
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, rgba(150, 170, 194, 0.72), rgba(201, 171, 125, 0.98), rgba(230, 212, 185, 0.76));
}

.hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  max-width: 100%;
  font-size: clamp(2.45rem, 3.25vw, 3.9rem);
  line-height: 1.04;
}

.hero h1 span {
  display: block;
  white-space: normal;
}

.hero__authors {
  display: grid;
  gap: 7px;
  margin: 0;
  justify-items: center;
  color: rgba(49, 61, 77, 0.8);
  font-size: 1.06rem;
}

.hero__authors p {
  margin: 0;
}

.hero__author-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  color: rgba(24, 33, 43, 0.92);
}

.hero__author-line sup,
.hero__affiliation-line sup {
  color: var(--accent-blue);
  font-size: 0.72em;
}

.author-envelope {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82em;
  line-height: 1;
  transform: translateY(-0.02em);
}

.hero__author-line .author-envelope {
  margin-left: 2px;
}

.hero__note-line .author-envelope {
  margin-left: 6px;
  font-size: 0.9em;
}

.hero__affiliation-line,
.hero__contact-line,
.hero__note-line {
  color: var(--page-muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.hero__contact-line {
  color: rgba(63, 89, 124, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(140, 164, 199, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--hero-ink);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button small {
  color: rgba(92, 104, 120, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 171, 125, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 244, 249, 0.96));
}

.button--disabled {
  cursor: default;
  border-color: rgba(167, 177, 191, 0.18);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.88), rgba(238, 242, 248, 0.84));
  color: rgba(92, 104, 120, 0.76);
  opacity: 0.86;
}

.section {
  position: relative;
  padding: 72px 0 84px;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px), var(--max-width));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 164, 199, 0.18) 20%,
    rgba(201, 171, 125, 0.3) 50%,
    rgba(140, 164, 199, 0.18) 80%,
    transparent
  );
}

#overview,
#method,
#citation {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(245, 247, 251, 0));
}

#video,
#results {
  background: linear-gradient(180deg, rgba(240, 244, 249, 0.82), rgba(233, 239, 246, 0.96));
}

.section__inner {
  display: grid;
  gap: 24px;
}

.section__inner--wide {
  max-width: var(--max-width);
}

.section__inner--narrow {
  max-width: var(--max-width);
}

.section-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.section__inner > .section-title {
  position: relative;
  padding-bottom: 14px;
}

.section__inner > .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 171, 125, 0.75), rgba(140, 164, 199, 0.38));
}

.abstract-copy,
.results-lead,
.figure-caption,
.table-caption,
.citation-panel pre,
.method-notes {
  font-size: 1.12rem;
}

.abstract-copy {
  margin: 0;
  color: rgba(24, 33, 43, 0.88);
  line-height: 1.72;
}

.figure-inline,
.supporting-figure {
  margin: 0;
}

.figure-surface {
  margin: 0;
}

.figure-inline {
  padding-top: 6px;
}

.figure-inline--overview,
.figure-inline--method,
.supporting-figure,
.video-shell {
  padding: 14px;
  border: 1px solid rgba(214, 223, 235, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.figure-inline--overview,
.figure-inline--method {
  gap: 14px;
}

.figure-inline--overview img,
.figure-inline--method img,
.supporting-figure img {
  border-color: rgba(201, 171, 125, 0.11);
}

.figure-inline--overview .figure-caption,
.figure-inline--method .figure-caption,
.supporting-figure .figure-caption {
  color: rgba(70, 83, 99, 0.82);
}

.figure-inline img,
.supporting-figure img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(201, 171, 125, 0.1);
  background: rgba(244, 247, 252, 0.96);
}

.figure-inline--method img {
  background: rgba(246, 248, 252, 0.98);
}

.figure-inline--method {
  display: grid;
  width: 100%;
  margin: 0 auto;
}

.figure-inline--overview {
  display: grid;
  width: 100%;
  margin: 0 auto;
}

.figure-caption--overview,
.figure-caption--method {
  width: 100%;
}

.video-shell,
.citation-panel {
  border: 1px solid var(--page-line-strong);
  background: var(--surface-bg);
}

.video-shell {
  overflow: clip;
  gap: 12px;
}

.video-shell video {
  width: 100%;
  height: auto;
  border: 1px solid rgba(214, 223, 235, 0.96);
  background: #f6f8fb;
  object-fit: contain;
}

.video-fallback {
  display: none;
}

.video-fallback:not([hidden]) {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 32px;
  color: var(--page-muted);
  text-align: center;
}

#results .section__inner {
  gap: 28px;
}

.results-lead {
  width: 100%;
  margin: -4px 0 4px;
  color: rgba(70, 83, 99, 0.82);
}

.results-subsection {
  position: relative;
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(140, 164, 199, 0.18);
}

.results-subsection--demo {
  padding-top: 16px;
}

.results-subtitle,
.chart-title,
.mini-bar-group__title {
  margin: 0;
  letter-spacing: 0;
}

.results-subtitle {
  position: relative;
  padding-left: 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.16;
}

.results-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 171, 125, 0.56), rgba(140, 164, 199, 0.18));
}

.results-grid {
  display: grid;
  gap: 24px;
}

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

.chart-panel,
.task-panel {
  display: grid;
  gap: 16px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(140, 164, 199, 0.18);
}

.chart-panel--benchmark {
  gap: 18px;
  padding: 18px 18px 16px;
  border-top: 0;
  border: 1px solid rgba(214, 223, 235, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.chart-panel--task {
  background: transparent;
}

.chart-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.14;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 128px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.bar-row__label,
.bar-row__value {
  font-size: 1.02rem;
}

.bar-row__label {
  color: rgba(24, 33, 43, 0.86);
}

.bar-row__value {
  text-align: right;
  color: var(--page-muted);
}

.bar-row__track {
  height: 10px;
  border: 1px solid rgba(140, 164, 199, 0.18);
  background: rgba(226, 233, 242, 0.92);
  overflow: hidden;
}

.bar-row__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(108, 128, 156, 0.92), rgba(127, 149, 179, 0.96));
}

.bar-row__fill--accent {
  background: linear-gradient(90deg, rgba(140, 164, 199, 0.96), rgba(201, 171, 125, 0.92));
}

.supporting-figure {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.figure-caption {
  margin: 0;
  color: rgba(70, 83, 99, 0.8);
  line-height: 1.6;
}

.paper-table-image {
  width: 100%;
  height: auto;
}

.table-shell {
  display: grid;
  gap: 12px;
}

.table-caption {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.55;
}

.citation-panel {
  position: relative;
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
}

.citation-panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
  border: 1px solid rgba(214, 223, 235, 0.96);
  border-left: 2px solid rgba(201, 171, 125, 0.34);
  line-height: 1.55;
}

.citation-panel__code {
  display: block;
}

.citation-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(140, 164, 199, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  color: rgba(92, 104, 120, 0.84);
  display: inline-grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.citation-panel:hover .citation-copy,
.citation-panel:focus-within .citation-copy {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.citation-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.citation-copy:hover {
  color: rgba(24, 33, 43, 0.88);
  border-color: rgba(201, 171, 125, 0.28);
  background: rgba(248, 249, 252, 1);
}

.citation-copy:active {
  transform: scale(0.98);
}

.citation-copy.is-copied {
  color: rgba(214, 198, 171, 0.96);
  border-color: rgba(201, 171, 125, 0.34);
}

.button:focus-visible,
.site-nav a:focus-visible,
.site-mark:focus-visible,
.citation-copy:focus-visible {
  outline: 2px solid rgba(201, 171, 125, 0.42);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 620px;
    padding-top: var(--sticky-offset);
  }

  .hero__inner {
    min-height: 500px;
  }

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

@media (max-width: 720px) {
  .site-header__inner,
  .section__inner,
  .hero__inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-nav {
    gap: 12px 16px;
  }

  .hero {
    min-height: 540px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero h1 span {
    display: inline;
    white-space: normal;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .button {
    width: 100%;
  }

  .section {
    padding: 60px 0 68px;
  }

  .figure-inline--overview,
  .figure-inline--method,
  .supporting-figure,
  .video-shell {
    padding: 10px;
  }

  .section__inner > .section-title {
    padding-bottom: 12px;
  }

  .section__inner > .section-title::after {
    width: 72px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bar-row__value {
    text-align: left;
  }

  .citation-panel pre {
    padding: 14px;
  }
}
