:root {
  color-scheme: light;
  --ink: #172b40;
  --muted: #53657a;
  --blue: #286ab0;
  --line: #dee6ee;
  --paper: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f7f9fc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
sup { font-size: 0.65em; vertical-align: super; line-height: 0; }
strong { font-weight: 650; }
.site-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 20px; }
.nav-home, .research-menu summary { display: flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--muted); font-size: 0.9rem; border-radius: 8px; }
.nav-home { text-decoration: none; }
.nav-home:hover, .research-menu summary:hover { background: #f1f6fb; color: var(--blue); }
.research-menu { position: relative; }
.research-menu summary { cursor: pointer; list-style: none; }
.research-menu summary::-webkit-details-marker { display: none; }
.research-menu summary svg { width: 0.7em; }
.research-menu[open] summary svg { transform: rotate(180deg); }
.research-links { position: absolute; z-index: 10; top: calc(100% + 5px); right: 0; min-width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 24px #172b4014; }
.research-links a { display: block; padding: 10px 13px; border-radius: 6px; color: var(--ink); font-size: 0.9rem; text-decoration: none; }
.research-links a:hover { color: var(--blue); background: #f1f6fb; }
.hero {
  padding: 55px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #fff 65%, #f7f9fc);
}
.project-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.project-name span {
  padding-left: 12px;
  border-left: 1px solid #bccbd9;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); font-weight: 750; letter-spacing: -0.035em; }
h1 > span { display: inline-block; margin-top: 6px; font-size: 0.77em; font-weight: 650; line-height: 1.28; letter-spacing: -0.025em; }
.publication-authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 9px; margin: 25px auto 12px; font-size: 1.13rem; color: var(--blue); }
.publication-authors > span { white-space: nowrap; }
.publication-authors a { color: inherit; text-decoration: none; }
.publication-authors a:hover, .publication-authors a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.affiliations { max-width: 970px; margin: auto; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.affiliations p + p { margin-top: 5px; }
.affiliations .corresponding { margin-top: 10px; font-size: 0.8rem; }
.publication-links { display: flex; justify-content: center; gap: 11px; margin-top: 23px; }
.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #263a50;
  color: #fff;
  font-size: 1.2rem;
  opacity: 1;
  cursor: default;
}
.resource-note { margin-top: 8px; color: var(--muted); font-size: 0.75rem; }
a.resource-icon { cursor: pointer; text-decoration: none; }
a.resource-icon:hover { background: var(--blue); }
.hero-summary { margin-top: 31px; font-size: 1.3rem; font-weight: 650; }
.hero-summary span { font-size: 0.88rem; font-weight: 400; color: var(--muted); }
.teaser { padding: 22px 25px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
img { display: block; width: 100%; height: auto; }
figcaption { max-width: 960px; margin: 19px auto 0; color: var(--muted); font-size: 0.91rem; line-height: 1.65; text-align: center; }
figcaption strong { color: var(--ink); }
.section-panel { margin-top: 32px; padding: 38px 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.section-panel.main-demo { margin-top: 0; scroll-margin-top: 24px; }
.main-demo .video-card { margin-top: 24px; }
.main-demo .experiment-media { min-height: 200px; }
.main-demo + .teaser { margin-top: 32px; }
.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.17em; text-transform: uppercase; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.05rem); letter-spacing: -0.035em; font-weight: 700; }
.section-intro { max-width: 970px; margin: 17px 0 26px; color: var(--muted); font-size: 1rem; }
.abstract-text { margin-top: 22px; color: #405367; font-size: 1.03rem; line-height: 1.85; }
.abstract-text p + p { margin-top: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 24px 22px; background: #edf4fb; border-radius: 12px; }
.feature-card:nth-child(2) { background: #f1f5ed; }
.feature-card:nth-child(3) { background: #fcf3e9; }
.feature-number { color: #476682; font-size: 0.65rem; font-weight: 750; letter-spacing: 0.09em; }
.feature-card:nth-child(2) .feature-number { color: #546b40; }
.feature-card:nth-child(3) .feature-number { color: #88551c; }
.feature-card h3 { margin: 15px 0 10px; font-size: 1.12rem; letter-spacing: -0.02em; }
.feature-card p { color: #475b6d; font-size: 0.89rem; line-height: 1.75; }
.paper-figure { margin-top: 32px; padding: 16px 5px 0; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.simulation-grid > :last-child { grid-column: 1 / -1; width: calc((100% - 24px) / 2); justify-self: center; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.experiment-media { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; }
.video-caption { padding: 18px 20px 22px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-heading h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.scene-index { flex-shrink: 0; font-size: 0.6rem; color: #60768a; letter-spacing: 0.07em; font-weight: 700; }
.video-caption p { margin-top: 8px; color: var(--muted); font-size: 0.87rem; line-height: 1.7; }
.video-caption .scene-dimensions { margin-top: 5px; color: var(--blue); font-size: 0.78rem; }
.experiment-media { background: #111d29; }
.experiment-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.experiment-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-error { margin: 12px 18px; color: #915028; font-size: 0.85rem; }
.results-block { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.results-block > h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.results-block > p { margin: 12px 0 20px; color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; white-space: nowrap; }
caption { caption-side: bottom; padding: 13px 16px; font-size: 0.76rem; color: var(--muted); white-space: normal; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead { background: #f1f6fb; color: #36536e; font-size: 0.78rem; }
tbody td:last-child { font-weight: 650; color: var(--blue); }
.acknowledgements-text { margin-top: 20px; color: var(--muted); line-height: 1.85; }
.acknowledgements-text a { color: var(--blue); text-decoration: none; }
.acknowledgements-text a:hover, .acknowledgements-text a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bibtex-entry { margin: 22px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: #f5f8fb; color: #36536e; overflow-x: auto; font-size: 0.85rem; line-height: 1.75; tab-size: 2; }
.bibtex-entry code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.footer { padding: 43px 24px 36px; text-align: center; color: var(--muted); font-size: 0.75rem; }
.footer a { color: inherit; text-decoration-color: #bbc9d7; text-underline-offset: 3px; }
.footer a:hover { color: var(--blue); }
.footer-name { margin-bottom: 10px; font-size: 0.88rem; color: var(--blue); font-weight: 750; letter-spacing: 0.08em; }
.footer-name span { margin-left: 9px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 3px solid #367bbd; outline-offset: 4px; }
@media (max-width: 900px) {
  .section-panel { padding: 30px 28px; }
  .desktop-break { display: none; }
  .feature-grid { gap: 12px; }
  .feature-card { padding: 20px 17px; }
  .card-heading { flex-wrap: wrap; gap: 5px 10px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .hero { padding-top: 32px; }
  .project-name { margin-bottom: 19px; gap: 8px; font-size: 0.8rem; }
  .project-name span { font-size: 0.58rem; padding-left: 8px; }
  h1 { font-size: 2.05rem; }
  h1 > span { margin-top: 9px; font-size: 0.68em; }
  .publication-authors { font-size: 1rem; margin-top: 21px; }
  .affiliations { font-size: 0.77rem; padding-inline: 6px; }
  .hero-summary { font-size: 1.18rem; }
  .hero-summary span { font-size: 0.79rem; }
  .teaser { padding: 15px 12px 18px; border-radius: 12px; }
  figcaption { font-size: 0.8rem; margin-top: 13px; }
  .section-panel { margin-top: 20px; padding: 25px 19px; border-radius: 12px; }
  .main-demo + .teaser { margin-top: 20px; }
  .abstract-text { font-size: 0.94rem; line-height: 1.8; }
  .section-intro { font-size: 0.93rem; }
  .feature-grid, .video-grid { grid-template-columns: 1fr; gap: 17px; }
  .simulation-grid > :last-child { width: 100%; }
  .feature-card { padding: 21px; }
  .feature-card h3 { margin-top: 9px; }
  .paper-figure { margin-top: 24px; padding: 0; }
  .bibtex-entry { padding: 16px; font-size: 0.78rem; }
  .section-heading-row { gap: 13px; }
  .video-caption { padding: 16px 17px 20px; }
  .card-heading { flex-wrap: nowrap; }
  .card-heading h3 { font-size: 1rem; }
  th, td { padding: 12px; }
}
