:root {
  --ink: #17181a; --ink-2: #46474b; --muted: #8b8f90; --line: #e1e2dc; --bg: #f2f1ec; --panel: #e6e7e2;
  --blue: #3e6fa7; --orange: #e1582c;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 40px; --max: 1200px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 24px; height: 24px; display: block; }
.wordmark { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; transform: translateY(-1px); }
.nav { display: flex; align-items: center; gap: 28px; font-size: .875rem; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 4px;
  font-family: inherit; font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #2c2e31; border-color: #2c2e31; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.accent:hover { background: #c94b22; border-color: #c94b22; }
.btn.sm { height: 34px; padding: 0 12px; font-size: .8125rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* type */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: none; }
.mono { font-family: var(--mono); }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }

/* map */
.map { position: relative; background: var(--panel); overflow: hidden; }
.map > .gl { position: absolute; inset: 0; }
.legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 12px;
  background: rgba(242,241,236,.94); border: 1px solid var(--line); border-radius: 4px;
  font: 400 .6875rem/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-2);
}
.legend b { font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; display: inline-block; }
.maplibregl-ctrl-group { border-radius: 4px !important; box-shadow: none !important; border: 1px solid var(--line); }

/* layers: four ruled columns */
.layers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.layer { padding: 20px 24px 8px 0; }
.layer + .layer { padding-left: 24px; border-left: 1px solid var(--line); }
.layer .n { font: 500 .75rem/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.layer h3 { margin: 28px 0 8px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.layer p { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }

/* stats: mono key numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 24px 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .v { font: 500 clamp(1.75rem, 3vw, 2.5rem)/1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.stat .k { margin-top: 10px; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }

/* closing call to action */
.cta { background: var(--ink); color: var(--bg); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta .h2 { max-width: 16em; }
.cta p { margin-top: 12px; color: #a9abab; font-size: 1rem; line-height: 1.5; }
.cta .brandmark { width: 34px; height: 34px; margin-bottom: 24px; }

/* footer */
.foot .wrap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 32px; font: 400 .6875rem/1.4 var(--mono); color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-2); }

/* intake forms */
.intake { display: grid; gap: 18px; margin-top: 28px; }
.intake label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 500; }
.intake label small { font-weight: 400; color: var(--muted); }
.intake input, .intake select, .intake textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.intake textarea { min-height: 120px; resize: vertical; }
.intake fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-size: .9375rem; }
.intake legend { margin-bottom: 6px; font-weight: 500; }
.intake fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.intake fieldset input { width: auto; }
.intake .btn { justify-self: start; }
.intake .btn:disabled { opacity: .6; cursor: default; }
.intake .status { min-height: 1.4em; font-size: .9375rem; color: var(--orange); }
.intake input.invalid, .intake textarea.invalid { border-color: #d4351c; }
.intake .field-error { margin: 0; font-size: .8125rem; font-weight: 400; color: #d4351c; }
.sent { margin-top: 28px; font-size: 1.125rem; }

@media (max-width: 860px) {
  .nav .link { display: none; }
  .layers, .stats { grid-template-columns: 1fr 1fr; }
  .layer:nth-child(3), .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .layer:nth-child(n+3), .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .top .wrap { height: 60px; }
  .brand img { width: 22px; height: 22px; }
  .wordmark { font-size: 1.375rem; }
  .lede { font-size: 1rem; }
  .ctas .btn { flex: 1; }
  .layers { grid-template-columns: 1fr; }
  .layer, .layer + .layer { padding: 18px 0 14px; border-left: 0; }
  .layer + .layer { border-top: 1px solid var(--line); }
  .layer h3 { margin-top: 12px; }
  .stat, .stat + .stat { padding: 18px 16px 18px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .cta .wrap { padding-top: 56px; padding-bottom: 56px; }
  .foot .wrap { flex-direction: column; gap: 6px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
