:root {
  --accent: #e87513;
  --accent-dark: #c75d05;
  --link: #0878c9;
  --ink: #343638;
  --body: #4c4e50;
  --muted: #74777a;
  --line: #d9dbdd;
  --soft: #f5f5f4;
  --page: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: #fff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

sup {
  position: relative;
  top: -0.25em;
  font-size: 0.64em;
  line-height: 0;
}

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

.hero { padding: 72px 0 30px; }

.project-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--accent);
  text-align: center;
}

.project-mark {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.subtitle {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 7px;
  max-width: 1040px;
  margin: 42px auto 0;
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
}

.affiliations {
  margin: 24px 0 0;
  color: var(--link);
  font-size: 19px;
  text-align: center;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 28px 0 0;
}

.resource-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  padding: 9px 23px;
  border: 1px solid #e0e1e2;
  border-radius: 999px;
  color: #3d3e40;
  background: #f4f4f3;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.resource-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 24, 28, 0.1);
  text-decoration: none;
}

.resource-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

figure { margin: 0; }

.video-figure {
  margin-top: 60px;
  scroll-margin-top: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: #101112;
  box-shadow: 0 10px 32px rgba(20, 24, 28, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tldr {
  width: 100%;
  margin: 34px auto 0;
  text-align: center;
}

.tldr h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tldr p {
  margin: 0;
  color: #343638;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.tldr p strong {
  color: var(--accent-dark);
  font-weight: 400;
}

figcaption {
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.abstract-section { padding: 42px 0 58px; }

.centered-heading,
.centered-subheading {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
}

.abstract-copy {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: #4c4e4e;
  text-align: justify;
}

.abstract-copy p { margin: 0 0 15px; }

.content-section {
  padding: 46px 0 50px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-index {
  margin: 0;
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.section-intro {
  margin: 22px 0 26px;
  font-size: 19px;
  line-height: 1.75;
}

.full-figure { margin: 24px 0 35px; }

.full-figure img {
  width: 100%;
  border-radius: 3px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.method-grid article {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #f0b579;
}

.method-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.method-grid h3 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.method-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 26px 0 38px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 0 18px;
  text-align: center;
}

.metrics div + div { border-left: 1px solid var(--line); }

.metrics strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.2;
}

.metrics span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.figure-grid figure {
  display: flex;
  flex-direction: column;
}

.figure-grid img {
  width: 100%;
  border-radius: 3px;
}

.figure-grid figcaption { margin-top: auto; }

.centered-subheading {
  margin-top: 54px;
  font-size: 27px;
}

.simulation-heading {
  margin-top: 28px;
  margin-bottom: 8px;
}

.simulation-description {
  max-width: 760px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.simulation-video {
  display: block;
  width: 100%;
  aspect-ratio: 1586 / 720;
  border-radius: 3px;
  background: #101112;
  object-fit: contain;
}

.demo-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.demo-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.demo-row img,
.task-video {
  width: 100%;
  border-radius: 3px;
}

.task-video {
  display: block;
  aspect-ratio: 16 / 9;
  background: #101112;
  object-fit: contain;
}

.task-video--compact {
  width: 88%;
  justify-self: center;
}

.demo-label {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.demo-copy p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.bibtex-wrap {
  position: relative;
  margin-top: 26px;
}

.bibtex-wrap pre {
  overflow-x: auto;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid #e0e1e2;
  border-radius: 5px;
  color: #343638;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.bibtex-wrap code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 13px;
  border: 1px solid #d5d6d6;
  border-radius: 999px;
  color: #55585a;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.copy-button:hover { background: #fafafa; }

.copy-button:focus-visible,
.resource-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(8, 120, 201, 0.28);
  outline-offset: 3px;
}

.footer {
  margin-top: 42px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: #858789;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.footer p { margin: 3px 0; }

@media (max-width: 800px) {
  .hero { padding-top: 48px; }
  .project-mark { width: 70px; height: 70px; }
  .authors { max-width: 760px; }
  .method-grid { grid-template-columns: 1fr; gap: 22px; }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .metrics div:nth-child(3) { border-left: 0; }
  .metrics div:nth-child(n + 3) { padding-top: 22px; border-top: 1px solid var(--line); }
  .demo-row { grid-template-columns: 1fr; gap: 18px; }
  .demo-copy { max-width: 560px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-width { width: min(100% - 30px, var(--page)); }
  .hero { padding-top: 34px; }
  .project-title { display: block; }
  .project-mark { width: 60px; height: 60px; margin-bottom: 12px; }
  h1 { font-size: 1.65rem; }
  .subtitle { margin-top: 8px; font-size: 1.65rem; }
  .authors { gap: 7px 5px; margin-top: 32px; font-size: 16px; }
  .affiliations { font-size: 16px; }
  .publication-links { gap: 12px; }
  .resource-button { min-width: 118px; padding: 8px 19px; font-size: 16px; }
  .video-figure { margin-top: 48px; }
  .tldr { margin-top: 28px; }
  .tldr h2 { font-size: 17px; }
  .tldr p { font-size: 17px; line-height: 1.6; }
  .abstract-section, .content-section { padding-block: 34px; }
  .centered-heading { font-size: 27px; }
  .abstract-copy { text-align: left; }
  .section-heading { gap: 11px; }
  .section-heading h2 { font-size: 27px; }
  .section-index { font-size: 27px; }
  .section-intro { font-size: 17px; }
  .metrics strong { font-size: 25px; }
  .metrics div { padding-inline: 10px; }
  .figure-grid { grid-template-columns: 1fr; gap: 32px; }
  .centered-subheading { margin-top: 40px; font-size: 24px; }
  .demo-row { padding-block: 24px; }
  .bibtex-wrap pre { padding: 48px 18px 20px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resource-button { transition: none; }
}
