:root {
  --bg: #f6f7f3;
  --ink: #15191b;
  --muted: #5b6468;
  --surface: #ffffff;
  --line: #d9dfdb;
  --accent: #b93c2f;
  --accent-strong: #8e261f;
  --blue: #225f73;
  --green: #346a38;
  --shadow: 0 24px 70px rgba(20, 26, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5vw;
  color: #ffffff;
  background: rgba(14, 21, 24, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  font-size: 1rem;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  padding: 126px 5vw 74px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(7, 13, 15, 0.88), rgba(7, 13, 15, 0.58) 48%, rgba(7, 13, 15, 0.25)),
    url("assets/figures/motion.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 980px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f0b56c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: 4.35rem;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.authors {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.authors sup,
.affiliation sup {
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations {
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.affiliation {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.affiliation img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.affiliation span {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 112px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.button small {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.72;
}

.button.primary {
  background: #ffffff;
  color: #172024;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 88px 5vw;
}

.section-copy {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.05rem;
}

.overview {
  max-width: 1320px;
  margin: 0 auto;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlight,
.result-grid figure,
.clip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(21, 25, 27, 0.06);
}

.highlight {
  padding: 22px;
}

.highlight span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
}

.highlight p,
.result-grid figcaption,
.wide-figure figcaption,
.clip figcaption,
.task-heading p {
  color: var(--muted);
}

.figure-band {
  padding-top: 28px;
}

.wide-figure {
  max-width: 1320px;
  margin: 0 auto;
}

.wide-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
}

.method,
.video-section,
.results,
.demos,
.citation {
  max-width: 1320px;
  margin: 0 auto;
}

.video-section {
  padding-top: 24px;
}

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #101415;
  border: 1px solid rgba(16, 20, 21, 0.28);
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101415;
}

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

.result-grid figure {
  margin: 0;
  overflow: hidden;
}

.result-grid img {
  width: 100%;
  background: #ffffff;
}

.result-grid figcaption {
  padding: 16px 18px 18px;
}

.demo-gallery {
  display: grid;
  gap: 38px;
}

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

.task-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.task-heading h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.task-heading p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 0.96rem;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.clip {
  margin: 0;
  overflow: hidden;
}

.clip video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #101415;
}

.clip figcaption {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.citation pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111718;
  color: #ecf2ef;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px 5vw 42px;
  color: #ffffff;
  background: #172024;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  font-weight: 800;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 4.8rem;
  }
}

@media (max-width: 980px) {
  .site-nav nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .highlight-grid,
  .clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliations {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

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

  .task-heading {
    display: block;
  }

  .task-heading h3 {
    margin-bottom: 8px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    display: block;
  }

  .site-nav nav {
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 154px;
    padding-bottom: 54px;
    background-position: center top;
  }

  h1 {
    font-size: 2.3rem;
  }

  .hero-lead,
  .section-copy p:not(.section-kicker) {
    font-size: 1rem;
  }

  .section {
    padding: 64px 5vw;
  }

  .highlight-grid,
  .clip-grid {
    grid-template-columns: 1fr;
  }

  .button {
    min-width: 0;
    width: 100%;
  }
}
