@font-face {
  font-family: ProductSans;
  src: url("/MaskVLA/static/ttf/ProductSans-Regular-BfzloKF4.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: ProductSans;
  src: url("/MaskVLA/static/ttf/ProductSans-Bold-CscMlwGr.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ee;
  --accent: #1f6fff;
  --accent-2: #0b9a9a;
  --shadow: 0 18px 60px rgba(23, 32, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 227, 238, 0.85);
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

.section-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.hero {
  padding-top: 58px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 970px;
  margin: 12px auto 22px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

.authors,
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 980px;
  margin: 0 auto;
}

.authors {
  color: #1e6bc8;
  font-size: 16px;
}

sup {
  font-size: 0.65em;
  vertical-align: super;
}

.author-note {
  margin: 14px auto 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.affiliations {
  color: var(--muted);
  font-size: 15px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 126px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(23, 32, 51, 0.08);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button img {
  width: 21px;
  height: 21px;
}

.hero-video {
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 0;
}

.metric {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric strong {
  display: block;
  color: var(--accent);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.prose p,
.section-heading p,
.result-copy p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.media-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(23, 32, 51, 0.08);
}

.media-figure img {
  width: 100%;
}

.media-figure figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}

.media-figure.wide {
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h3,
h4 {
  margin: 8px 0 10px;
  line-height: 1.2;
}

.feature-grid p,
.check-list,
.video-card span {
  color: var(--muted);
}

.results-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.results-layout.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.result-copy {
  padding: 10px 6px;
}

.check-list {
  margin: 18px 0 0;
  padding-left: 19px;
}

.check-list li {
  margin: 8px 0;
}

.media-figure.compact {
  margin-top: 22px;
  box-shadow: none;
}

.subheading {
  margin: 36px 0 16px;
  font-size: 22px;
}

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

.compare-grid {
  grid-template-columns: repeat(2, 1fr);
}

.real-grid {
  grid-template-columns: repeat(4, 1fr);
}

.video-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #000;
  object-fit: cover;
}

.video-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.video-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.citation {
  padding-bottom: 96px;
}

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #e6edf7;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-shell {
    padding: 54px 0;
  }

  .hero {
    padding-top: 50px;
  }

  .summary-grid,
  .two-column,
  .feature-grid,
  .results-layout,
  .results-layout.reverse,
  .compare-grid,
  .real-grid {
    grid-template-columns: 1fr;
  }

  .video-pair {
    grid-template-columns: 1fr;
  }

  .authors {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }
}
