:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --paper: #ffffff;
  --paper-soft: #f4f8f6;
  --ink: #20302e;
  --muted: #60706d;
  --line: #dbe5e2;
  --line-strong: #b8cbc5;
  --green: #47786a;
  --green-dark: #2e5a50;
  --blue: #4f728e;
  --gold: #b79047;
  --shadow: 0 18px 46px rgba(45, 74, 67, 0.11);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(236, 246, 242, 0.72) 0, rgba(251, 253, 251, 0.92) 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(185, 203, 197, 0.72);
  background: rgba(251, 253, 251, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 6px 0;
}

.nav a:hover {
  color: var(--green-dark);
}

.section,
.section-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px;
}

.section-tint {
  max-width: none;
  border-block: 1px solid rgba(219, 229, 226, 0.75);
  background: #f5faf8;
}

.section-tint > * {
  max-width: var(--max);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
  gap: 48px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 42px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.2vw, 48px);
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.lead {
  margin: 20px 0 0;
  color: #435451;
  font-size: 18px;
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.icon {
  flex: 0 0 auto;
}

.icon-arxiv,
.icon-hf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-arxiv {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.icon-hf {
  border: 1px solid #e5c76f;
  background: #fff6cf;
  color: #6c5520;
}

.icon-github {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button.primary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45, 74, 67, 0.12);
}

.hero-figure,
.media-panel,
.table-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  background: #ffffff;
}

figcaption {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: #fbfdfb;
}

.metrics-strip {
  max-width: var(--max);
  margin: -18px auto 30px;
  padding: 0 24px 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metrics-strip div {
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(45, 74, 67, 0.07);
}

.metrics-strip strong {
  display: block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.metrics-strip span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.media-grid,
.analysis-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.benchmark-figures {
  display: grid;
  gap: 22px;
}

.wide {
  grid-column: 1 / -1;
}

.media-panel img,
.table-figure img,
.hero-figure img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  background: #ffffff;
}

.table-figure {
  width: min(100%, 1120px);
  margin: 28px auto 0;
}

.matrix-figure {
  width: min(100%, 1040px);
}

.figure-centered {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.pipeline-figure {
  width: min(100%, 940px);
}

.statistics-figure {
  width: min(100%, 1120px);
}

.preference-figure {
  width: min(100%, 980px);
  margin-inline: auto;
}

.centered-wide {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  margin-inline: auto;
}

.efficiency-figure {
  width: min(100%, 620px);
}

.error-figure img {
  max-height: 430px;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.finding {
  min-height: 238px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 74, 67, 0.08);
}

.finding span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.finding p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.examples {
  padding-top: 76px;
}

.demo-section {
  padding-block: 58px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
}

.demo-copy {
  max-width: 430px;
}

.demo-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.demo-video-panel {
  width: min(100%, 680px);
  justify-self: end;
}

.demo-video-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d1513;
}

.demo-video-panel figcaption {
  padding-block: 10px 12px;
}

.examples > .media-panel + .media-panel {
  margin-top: 22px;
}

/* Qualitative video comparison */
.qual-examples {
  margin-top: 22px;
  display: grid;
  gap: 40px;
}

.qual-compare + .qual-compare {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.qual-source {
  width: min(100%, 920px);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}

.qual-source video,
.qual-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d1513;
}

.qual-source video {
  height: 100%;
}

.edit-instruction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border-top: none;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .qual-source {
    grid-template-columns: 1fr;
  }

  .qual-source video {
    height: auto;
  }

  .edit-instruction {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

.edit-label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.qual-clip {
  margin: 0;
}

.qual-clip figcaption {
  padding: 9px 10px 11px;
  text-align: center;
  font-weight: 700;
  color: var(--green-dark);
}

@media (max-width: 980px) {
  .qual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .qual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.citation-section {
  padding-top: 56px;
}

.citation-box {
  width: min(100%, 860px);
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 74, 67, 0.08);
  color: #263b37;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
}

.citation-box code {
  font-family: inherit;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 58px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer strong {
  display: block;
  color: var(--ink);
}

.footer a {
  color: var(--green-dark);
  font-weight: 700;
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure {
    max-width: 820px;
  }

  .metrics-strip,
  .finding-grid,
  .media-grid,
  .analysis-layout {
    grid-template-columns: 1fr 1fr;
  }

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

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    max-width: 760px;
  }

  .demo-video-panel {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }

  .section,
  .section-band {
    padding: 58px 18px;
  }

  .hero {
    padding-top: 44px;
    gap: 30px;
  }

  .lead {
    font-size: 17px;
  }

  .metrics-strip,
  .media-grid,
  .analysis-layout {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .metrics-strip {
    margin-top: 0;
  }

  .metrics-strip div {
    min-height: 104px;
  }

  .table-figure,
  .media-panel {
    overflow-x: auto;
  }

  .table-figure img,
  .media-panel img {
    min-width: 720px;
  }

  .hero-figure img,
  .examples .media-panel img {
    min-width: 0;
  }

  .footer {
    flex-direction: column;
  }
}
