:root {
  --cream: #f4f0e6;
  --cream-deep: #ebe4d6;
  --ink: #1a1a1a;
  --muted: #5c574e;
  --rust: #b85a3a;
  --rust-hot: #c96a48;
  --line: rgba(26, 26, 26, 0.14);
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    linear-gradient(rgba(244, 240, 230, 0.92), rgba(244, 240, 230, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(26,26,26,0.04) 23px, rgba(26,26,26,0.04) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(26,26,26,0.04) 23px, rgba(26,26,26,0.04) 24px);
  background-color: var(--cream);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 180px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #161410;
  color: #f4ede2;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}
.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-text span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
}
.nav a:hover, .nav a.active { color: var(--rust); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.btn-rust { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-hot); border-color: var(--rust-hot); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(26,26,26,0.15);
}
.btn-ghost:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(26,26,26,0.18); }
.mobile-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sheet {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  margin: 28px auto;
  max-width: var(--max);
}
.sheet-inner { padding: 28px 24px 34px; }

/* Full-bleed hero with blueprint video behind the sheet */
.hero-stage {
  position: relative;
  overflow: hidden;
  margin: 0 0 8px;
  min-height: 720px;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video video,
.hero-video .poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video .poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video video { position: relative; z-index: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(244,240,230,0.72) 0%, rgba(244,240,230,0.55) 40%, rgba(244,240,230,0.78) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(26,26,26,0.035) 23px, rgba(26,26,26,0.035) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(26,26,26,0.035) 23px, rgba(26,26,26,0.035) 24px);
}
.hero-stage .wrap {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero-stage .sheet.hero {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
  margin: 0 auto;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.badge {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero h1 em {
  color: var(--rust);
  font-style: italic;
}
.lede {
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 42rem;
}
.spec {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 12px;
  margin: 0 0 18px;
  max-width: 46rem;
}
.spec-bar { background: var(--rust); }
.spec p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.body-copy {
  max-width: 46rem;
  margin: 0 0 22px;
  color: #2c2a26;
}
.body-copy a { text-decoration: underline; text-underline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.metric {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  padding: 14px;
}
.metric .label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.metric .value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.metric .hint {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 10px;
  line-height: 1.2;
}
.section-sub {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.card .stack {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.include-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.include-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  padding: 16px;
}
.include-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.include-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.process {
  display: grid;
  gap: 12px;
}
.process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.process-step .phase {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.06em;
}
.process-step h3 { margin: 0 0 6px; font-size: 18px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 16px;
  align-items: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; }
.cta-band p { margin: 0; color: #cfc8bb; }
.cta-band .btn-rust { justify-self: end; }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
.footer h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--rust); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 6px; }

@media (max-width: 900px) {
  .mobile-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .metrics, .grid-3, .grid-2, .include-list, .footer-grid, .cta-band, .process-step {
    grid-template-columns: 1fr;
  }
  .cta-band .btn-rust { justify-self: start; }
}
