:root {
  --bg: #0c0e11;
  --panel: #14171b;
  --slot: #1c2026;
  --fg: #e4e8ed;
  --fg-soft: #8b95a1;
  --fg-dim: #616b78;
  --line: #232931;
  --gap: 3px;
  --gap-pair: 16px;
  --page: 1380px;
  --measure: 68ch;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--fg-dim);
}
a:hover { text-decoration-color: var(--fg); }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.wrap p { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.section { padding: 0 0 96px; }
.section { scroll-margin-top: 70px; }

.jump {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 17, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.jump-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.jump a {
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jump a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent, var(--fg-dim));
  opacity: .65;
}
.jump a:hover { color: var(--fg); }
.jump a:hover::before { opacity: 1; }

h2 {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 16px;
}
h2.major { font-size: 1rem; margin-bottom: 20px; }

p { margin: 0 0 14px; }

.note { color: var(--fg-soft); font-size: .9rem; max-width: 60ch; text-wrap: balance; }

.figure figcaption strong,
.wrap p.prose strong { color: var(--fg); font-weight: 600; }

.warn .note { color: #e0736b; font-size: 1rem; max-width: 66ch; }
.warn { padding-bottom: 44px; }

.head { padding: 84px 0 44px; }

.title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 auto 26px;
  max-width: 30ch;
  text-wrap: balance;
}

.authors { font-size: 1.02rem; line-height: 1.9; margin: 0 auto 10px; max-width: 74ch; }
.authors a { text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--fg-dim); }
.authors a:hover { border-bottom-color: var(--fg); }
.authors sup { font-size: .68em; color: var(--fg-dim); }

.affil { color: var(--fg-soft); font-size: .88rem; margin: 0; }
.affil sup { font-size: .72em; }

.links { display: flex; justify-content: center; gap: 10px; margin: 26px 0 0; max-width: none; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: #1b2027;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: .92rem;
  text-decoration: none;
}
.btn:hover { background: #242a33; border-color: var(--fg-dim); }
.btn.off { color: var(--fg-dim); cursor: default; }

.figure { margin: 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
}
.figure figcaption {
  margin: 20px auto 0;
  max-width: 88%;
  text-align: justify;
  hyphens: auto;
  color: var(--fg-soft);
  font-size: .95rem;
  line-height: 1.75;
}

.wrap p.prose {
  text-align: justify;
  hyphens: auto;
  max-width: 88ch;
  color: var(--fg-soft);
  line-height: 1.8;
}

.bibtex {
  text-align: left;
  max-width: 88ch;
  margin: 0 auto;
  background: var(--panel);
  border-top: 2px solid var(--line);
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--fg-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.block { margin: 0 0 40px; }
.block:last-child { margin-bottom: 0; }

.block-head { margin-bottom: 14px; }
.block-head h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.block-head h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent, var(--fg-dim));
}
.block-head p { margin: 0 auto; font-size: .88rem; color: var(--fg-soft); }

.panel.narrow { max-width: 860px; margin: 0 auto; }

#motion .panel,
#motion .nav { max-width: 1120px; margin-left: auto; margin-right: auto; }

.panel {
  background: var(--panel);
  padding: 16px;
  border-top: 2px solid var(--accent, transparent);
}

.heads {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: 9px;
}
.heads span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heads span.main { color: var(--fg); }
.heads span.main::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 5px;
  height: 5px;
  margin: -2px 6px 0 0;
  background: var(--accent, var(--fg-soft));
}

.row + .row { margin-top: 18px; }
.rows.tight .row + .row { margin-top: var(--gap); }
.rows.snug .row + .row { margin-top: 9px; }
.rows.snug .row-label { margin-bottom: 4px; }

.row-label {
  font-size: .8rem;
  color: var(--fg-dim);
  margin-bottom: 7px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
}
.row-label b { color: var(--fg-soft); font-weight: 500; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--gap);
}

.tile { margin: 0; min-width: 0; }

.block.stacked .heads { display: none; }
.block.stacked .tile-label { display: block; }
.block.stacked .tile.split { margin-left: 0; }
.tile.split, .heads span.split { margin-left: var(--gap-pair); }

.tile-label {
  display: none;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
  text-align: center;
}
.tile.main .tile-label { color: var(--fg); }

.frame {
  position: relative;
  aspect-ratio: var(--aspect, 16 / 9);
  background: var(--slot);
  overflow: hidden;
  cursor: zoom-in;
}
.tile.main .frame {
  outline: 1px solid var(--accent, var(--fg-soft));
  outline-offset: -1px;
}
.tile.mark .frame {
  background: var(--accent, var(--fg-soft));
}
.tile.mark .frame video,
.tile.mark .frame .empty {
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}

.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .3s ease;
}
.group.ready .frame video { opacity: 1; }

.carousel { position: relative; outline: none; }
.carousel + .carousel { margin-top: 52px; }
.viewport { overflow: hidden; }
.track {
  display: flex;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.slide { flex: 0 0 100%; min-width: 0; }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 18px;
}
.nav-center { display: flex; align-items: center; gap: 14px; }

.arrow {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.arrow:hover { color: var(--fg); border-color: var(--fg-dim); }
.arrow:disabled { opacity: .3; cursor: default; }
.arrow svg { width: 12px; height: 12px; fill: currentColor; }

.dots { display: flex; gap: 7px; align-items: center; }
.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--line);
  cursor: pointer;
  transition: background .2s ease;
}
.dot:hover { background: var(--fg-dim); }
.dot.active { background: var(--accent, var(--fg)); }

.counter {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--fg-dim);
  justify-self: start;
  padding-left: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 9, .96);
  display: grid;
  place-items: center;
  padding: 4vmin;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { max-width: 94vw; max-height: 90vh; }
.lightbox-inner video {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--fg-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--fg); }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 60px;
  font-size: .82rem;
  color: var(--fg-dim);
}
.foot p { margin: 0 auto; }

@media (max-width: 1000px) {
  .heads { display: none; }
  .tile-label { display: block; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
  .tile.split { margin-left: 0; }
  .row + .row { margin-top: 26px; }
}

@media (max-width: 620px) {
  .head { padding: 56px 0 40px; }
  .section { padding-bottom: 46px; }
  .panel { padding: 12px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}