:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #646464;
  --line: #dedbd5;
  --soft: #f0efec;
  --accent: #0f766e;
  --accent-ink: #0b4f4a;
  --shadow: 0 18px 48px rgba(25, 25, 25, 0.08);
}

* {
  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;
  font-size: 16px;
  line-height: 1.55;
}

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

.project-home-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(25, 25, 25, 0.08);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  left: 16px;
  line-height: 1;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  z-index: 20;
}

.project-home-link:hover {
  background: var(--ink);
  color: var(--panel);
}

video {
  display: block;
  width: 100%;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 28px 0;
}

.site-header > a {
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 28px 56px;
}

.hero-copy {
  padding-bottom: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 6.75rem);
  line-height: 0.92;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
  margin-bottom: 14px;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  color: #3d3d3d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 680px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-actions a {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  gap: 9px;
  font-weight: 650;
  padding: 7px 14px 7px 7px;
}

.project-actions a:hover {
  background: var(--ink);
  color: var(--panel);
}

.action-label {
  background: var(--ink);
  border-radius: 999px;
  color: var(--panel);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.project-actions a:hover .action-label {
  background: var(--panel);
  color: var(--ink);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pill-row span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #404040;
  font-size: 0.88rem;
  padding: 7px 11px;
}

.hero-video {
  margin: 0;
}

.hero-video video {
  box-shadow: var(--shadow);
}

.hero-video p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 0;
}

.section {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 28px;
}

.section.compact {
  padding-top: 36px;
  padding-bottom: 36px;
}

.section-heading {
  margin-bottom: 24px;
  max-width: 820px;
}

.pipeline {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pipeline span {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #333;
  display: flex;
  font-weight: 650;
  min-height: 72px;
  padding: 16px;
}

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

.video-grid.four-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid article,
.pair > div,
.method-grid article {
  min-width: 0;
}

.paired-list {
  display: grid;
  gap: 30px;
}

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

.comparison-block {
  margin-top: 30px;
}

.comparison-block:first-of-type {
  margin-top: 0;
}

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

.method-grid span {
  color: var(--accent-ink);
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  margin-bottom: 8px;
}

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px 0;
  }

  .hero,
  .pair,
  .video-grid.four-up,
  .method-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 46px 18px 38px;
  }

  .section {
    padding: 42px 18px;
  }

  h1 {
    font-size: 3.15rem;
  }
}
