/* Self-contained: system fonts only, no external requests. */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #14181f;
  --muted: #4b5563;
  --line: rgba(20, 24, 31, 0.13);
  --accent: #0b5f58;
  --accent-ink: #ffffff;
  --band: #0b5f58;
  --band-ink: #ffffff;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --nav: 72px;
  --gut: 80px;
  --padt: 120px;
  --padb: 72px;
  --max: 1280px;

  --r-lg: 20px; --r-md: 12px; --r-btn: 10px;
  --btn-h: 44px;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-h1: clamp(2.375rem, 4.6vw + 0.6rem, 4.5rem);
  --t-h2: clamp(1.875rem, 2vw + 1.2rem, 3rem);
  --t-h3: 1.25rem;
  --t-lead: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #161b22;
    --ink: #eef1f5;
    --muted: #a8b1bf;
    --line: rgba(238, 241, 245, 0.14);
    --accent: #5eead4;
    --accent-ink: #052321;
    --band: #0b3f3b;
    --band-ink: #f2fffd;
  }
}

@media (max-width: 639px) {
  :root { --nav: 56px; --gut: 24px; --padt: 96px; --padb: 48px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  :root { --gut: 40px; --padt: 96px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); hyphens: manual; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.measure { max-width: 62ch; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: var(--gut); top: -80px; z-index: 20; padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--bg); border-radius: var(--r-btn); }
.skip-link:focus { top: var(--s-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { margin: 0 0 var(--s-5); font-size: var(--t-h1); line-height: 1.06; letter-spacing: -0.035em; }
h2 { margin: 0 0 var(--s-3); font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.025em; }
h3 { margin: 0 0 var(--s-2); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; }

/* Header: fixed, opaque, hairline from first paint */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { font: 400 1.25rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover { background-size: 100% 1px; }

/* Buttons: one shape, 44px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h);
  padding: 0 var(--s-5); border-radius: var(--r-btn); font: 500 1rem/1 var(--text);
  text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink); filter: none; }

/* Hero: alone on the first screen */
.hero { min-height: calc(100svh - var(--nav)); display: flex; align-items: center; padding: var(--s-8) 0; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; width: 100%; }
.eyebrow { margin: 0 0 var(--s-5); color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.lead { margin: 0 0 var(--s-6); font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.visual { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.visual svg { display: block; width: 100%; height: auto; }
.visual .grid { stroke: var(--line); }
.visual .bar { fill: var(--line); }
.visual .bar.hi { fill: var(--accent); }
.visual .line { stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
section { padding: var(--padt) 0 var(--padb); }
.hero { padding-top: var(--s-8); }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { margin: 0 0 var(--s-7); color: var(--ink); max-width: 62ch; font-size: 1.125rem; line-height: 1.55; }
h2 + .section-lead { margin-top: var(--s-3); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); transition: transform .2s; }
.card:hover { transform: translateY(-2px); }
.card p { margin: 0; color: var(--ink); }
.tag { display: block; margin-bottom: var(--s-4); color: var(--accent); font-size: 0.8125rem; font-weight: 500; }

.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ticks li { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks strong { display: block; margin-bottom: var(--s-1); font: 400 var(--t-h3)/1.3 var(--display); letter-spacing: -0.01em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--s-4); color: var(--accent); font: 400 1.5rem/1 var(--display); }
.steps p { margin: 0; color: var(--ink); }

/* Contact: the one brand band */
#contact { padding-top: var(--s-9); }
.contact { background: var(--band); color: var(--band-ink); border-radius: var(--r-lg); padding: var(--s-8) var(--s-7); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.contact h2 { margin-bottom: var(--s-3); }
.contact p { margin: 0; max-width: 46ch; }
.contact .btn { background: var(--band-ink); color: #0b3f3b; border-color: var(--band-ink); }

/* Footer */
.site-footer { padding: var(--s-7) 0 var(--s-8); color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--line); margin-top: var(--padt); }
.site-footer p { margin: 0; }

@media (max-width: 1023px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero { min-height: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .nav a:not(.btn) { display: none; }
  .actions .btn { width: 100%; }
  .contact { padding: var(--s-6) var(--s-5); }
  .contact .btn { width: 100%; }
  .section-lead { margin-bottom: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}