@font-face {
  font-family: "QUAD Menlo";
  src: local("Menlo-Regular"), local("Menlo");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "QUAD Menlo";
  src: local("Menlo-Bold"), local("Menlo Bold"), local("Menlo");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --text: #222;
  --muted: #666;
  --link: #3273dc;
  --light: #f5f5f5;
  --border: #e1e1e1;
  --dark: #363636;
  --page: 1080px;
  --content: 840px;
  --font-heading: "QUAD Menlo", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.container,
.container-wide {
  width: calc(100% - 40px);
  margin-right: auto;
  margin-left: auto;
}

.container { max-width: var(--content); }
.container-wide { max-width: var(--page); }

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  max-width: 1050px;
  margin: 0 auto 24px;
  font-size: clamp(1.85rem, 3.7vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

h2 {
  margin: 0 0 30px;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-align: center;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.publication-header {
  padding: 58px 0 28px;
  text-align: center;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: center;
  color: var(--link);
  font-size: 1.12rem;
}

sup {
  position: relative;
  top: -0.15em;
  font-size: 0.65em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: center;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.93rem;
}

.status {
  margin: 11px 0 0;
  color: #888;
  font-size: 0.85rem;
  font-style: italic;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 21px;
}

.publication-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--dark);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
}

.publication-link small {
  color: #bbb;
  font-size: 0.63rem;
  font-weight: 500;
  text-transform: uppercase;
}

.project-thesis {
  max-width: 720px;
  margin: 28px auto 0;
  color: #444;
  font-size: 1.02rem;
  line-height: 1.55;
}

.section {
  padding-top: 62px;
  padding-bottom: 18px;
}

.intro-section {
  padding-top: 18px;
}

.section-rule {
  margin-top: 58px;
  border-top: 1px solid var(--border);
}

figure {
  margin: 0;
}

figure > img {
  width: 100%;
  margin: 0 auto;
}

.graphical-abstract img {
  border-radius: 6px;
}

figcaption {
  max-width: 880px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
  text-align: center;
}

.abstract {
  margin-top: 68px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.subsection > h3,
.force-figure > h3,
.taxonomy-figure > h3 {
  text-align: center;
}

.abstract p { margin: 0; }

.abstract p,
.design-intro,
.results-intro,
.acknowledgments p {
  text-align: justify;
}

.demos {
  margin-top: 22px;
}

.subsection {
  margin-top: 58px;
}

.video-grid {
  display: grid;
  gap: 18px;
}

.video-grid-three { grid-template-columns: repeat(3, 1fr); }
.video-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
  background: #111;
}

.video-grid video {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.video-frame-right video {
  object-position: right center;
}

.mechanism-video {
  max-width: 620px;
  margin-top: 34px;
  margin-right: auto;
  margin-left: auto;
}

.mechanism-video video {
  width: 100%;
  border-radius: 6px;
}

.design-figure {
  margin-top: 64px;
}

.design-intro,
.results-intro {
  margin-top: -5px;
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}

.design-intro { margin-bottom: 0; }
.results-intro { margin-bottom: 34px; }

.section-intro {
  max-width: 680px;
  margin: -3px auto 20px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.viewer-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.viewer-tab {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #555;
  background: #fff;
  font: inherit;
  font-size: 0.81rem;
  cursor: pointer;
}

.viewer-tab:hover { border-color: #aaa; }
.viewer-tab:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.viewer-tab.is-active {
  border-color: var(--dark);
  color: #fff;
  background: var(--dark);
  font-weight: 600;
}

.viewer-frame {
  height: min(68vh, 650px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
}

.viewer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: center;
}

.force-figure img {
  margin-top: 15px;
}

.taxonomy-figure {
  max-width: 790px;
  margin: 66px auto 0;
}

.citation-placeholder {
  padding: 18px 22px;
  border-radius: 5px;
  color: #555;
  background: var(--light);
  font-family: var(--font-heading);
  font-size: 0.83rem;
}

.acknowledgments {
  padding-bottom: 68px;
}

.acknowledgments p {
  margin: 0;
  color: #555;
  font-size: 0.91rem;
}

footer {
  padding: 24px 0;
  color: #777;
  background: var(--light);
  font-size: 0.77rem;
  text-align: center;
}

footer p { margin: 0; }
footer a { color: var(--link); }

@media (max-width: 700px) {
  .publication-header { padding-top: 40px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.55rem; }

  .authors {
    gap: 4px 14px;
    font-size: 1rem;
  }

  .affiliations { display: block; }
  .affiliations span { display: block; }
  .section { padding-top: 48px; }
  .section-rule { margin-top: 42px; }
  .video-grid-three {
    grid-template-columns: 1fr;
  }

  .viewer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .viewer-frame {
    height: 60vh;
    min-height: 420px;
  }

  .taxonomy-figure { margin-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
