/* ── Reset + Root ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink:         #0e0c0a;
  --ink-2:       #151210;
  --ink-3:       #1c1916;
  --paper:       #fafaf7;
  --paper-2:     #f1efe8;
  --text:        #f1ebdf;
  --text-soft:   rgba(241,235,223,.62);
  --text-mute:   rgba(241,235,223,.55);
  --rule:        rgba(241,235,223,.1);
  --rule-light:  rgba(26,22,18,.12);
  --accent:      #079aa7;
  --accent-tint: rgba(7,154,167,.1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

/*
  Agent note:
  - This file is the shared visual system for homepage and generated pages.
  - Keep page-wide responsive fixes here rather than in generated HTML.
  - Mobile/tablet overrides are grouped near the bottom under
    "Mobile and tablet polish" to make responsive intent easy to review.
*/

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { display: block; }
main:focus { outline: none; }
img { max-width: 100%; }

.wrap,
.hero-text,
.stage,
.quote-card,
.svc-item,
.faq-item,
.stat-card,
.coverage-grid > *,
.page-hero-grid > *,
.content-grid > * {
  min-width: 0;
}

p,
h1,
h2,
h3,
.btn,
.nav-links a,
.nav-cta,
.svc-name,
.meta-val,
.stat-val {
  overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.text-link-inherit {
  color: inherit;
  text-underline-offset: 3px;
}

section[id] { scroll-margin-top: 112px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Utilities ──────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 900px) { .wrap { padding: 0 28px; } }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Nav ──────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 82px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.96);
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid rgba(26,22,18,.1);
  box-shadow: 0 10px 34px rgba(14,12,10,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#site-nav.scrolled {
  background: rgba(255,255,255,.98);
  border-color: rgba(26,22,18,.13);
}
#site-nav .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-logo-wrap {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
#site-nav .nav-cta {
  justify-self: end;
}
.nav-logo-wrap img {
  height: 54px;
  max-width: 184px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-wordmark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,22,18,.66);
  text-decoration: none;
  transition: color .18s, background .18s, border-color .18s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7,154,167,.24);
  transition: opacity .18s;
}
.nav-cta:hover { opacity: .85; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s, border-color .18s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: .85; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(241,235,223,.28);
}
.btn-ghost:hover { border-color: rgba(241,235,223,.55); }
.btn-ghost-dark {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid rgba(26,22,18,.25);
}
.btn-ghost-dark:hover { border-color: rgba(26,22,18,.55); }

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  padding: 138px 0 92px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
#hero .wrap { position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  gap: 64px;
  align-items: center;
}
.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(241,235,223,.16);
  border-radius: 8px;
  background: var(--ink-2);
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.hero-photo-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 68%;
  display: block;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,12,10,.58));
  pointer-events: none;
}
.hero-photo-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 10px 14px;
  background: rgba(14,12,10,.78);
  border: 1px solid rgba(241,235,223,.12);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(241,235,223,.72);
}

.hero-eyebrow { }
.hero-h1 {
  font-size: clamp(50px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  margin-top: 18px;
  text-wrap: pretty;
  max-width: 860px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 620px;
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  margin-top: 88px;
  position: relative;
}
.timeline-connector {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 15px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(241,235,223,.15) 60%, transparent 100%);
  pointer-events: none;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.stage {
  padding-top: 46px;
  position: relative;
  min-height: 100%;
}
.stage-dot {
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(241,235,223,.25);
  background: var(--ink);
}
.stage-dot.lit {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6,129,142,.18);
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stage-when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.badge-req {
  border: 1px solid rgba(241,235,223,.5);
  color: var(--text);
  background: rgba(241,235,223,.08);
}
.badge-rec {
  border: 1px solid rgba(6,129,142,.5);
  color: var(--accent);
  background: var(--accent-tint);
}
.stage-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 10px;
}
.stage-body {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-soft);
  margin-top: 10px;
}
.stage-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.meta-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.meta-val {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Mid-check callout ──────────────────────────────────── */
#midcheck {
  background: var(--ink-2);
  padding: 82px 0;
  position: relative;
}
.midcheck-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.midcheck-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  opacity: .16;
  display: block;
}
.midcheck-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,12,10,.88), rgba(14,12,10,.68));
}
.midcheck-box {
  display: grid;
  grid-template-columns: 290px 1fr;
  border: 1px solid rgba(6,129,142,.35);
  background: rgba(14,12,10,.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 8px;
  overflow: hidden;
}
.midcheck-lede {
  padding: 40px 36px;
  border-right: 1px solid rgba(6,129,142,.2);
}
.midcheck-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.midcheck-h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
  margin-top: 14px;
}
.midcheck-sub {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-top: 12px;
}
.midcheck-reasons {
  padding: 40px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-content: start;
}
.reason-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.reason-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.reason-body {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-top: 9px;
}

/* ── Credentials strip ──────────────────────────────────── */
#credentials {
  background: var(--paper-2);
  color: #1a1a1a;
  padding: 32px 0;
}
.cred-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px dashed rgba(26,22,18,.15);
}
.cred-row:first-child { border-top: none; }
.cred-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5c5347;
  padding-top: 2px;
}
.cred-vals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 18px;
  font-size: 13.5px;
  color: #1a1a1a;
}
.cred-sep { color: #cfcfcf; }

/* ── Drawings CTA ───────────────────────────────────────── */
#drawings {
  background: var(--ink);
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.drawings-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.drawings-h2 {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}
.drawings-h2 em { font-style: italic; color: var(--accent); }
.drawings-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 500px;
}
.stat-row {
  display: flex;
  margin-top: 32px;
  border-left: 1px solid var(--rule);
}
.stat-cell {
  padding: 0 22px;
  border-right: 1px solid var(--rule);
}
.stat-cell:first-child { padding-left: 0; }
.stat-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(241,235,223,.55);
}
.stat-val {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  margin-top: 6px;
  line-height: 1.4;
}
.quote-card {
  border: 1.5px solid rgba(6,129,142,.42);
  background: linear-gradient(180deg, rgba(6,129,142,.1), rgba(6,129,142,.045));
  padding: 36px 34px;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0,0,0,.16);
}
.quote-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.quote-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
  margin-top: 12px;
}
.quote-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-top: 12px;
}
.quote-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.quote-list div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--text-soft);
}
.quote-list span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  padding-top: 2px;
}
.quote-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.quote-email {
  font-size: 15px;
  color: var(--text-soft);
}
.quote-email a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(6,129,142,.45);
  padding-bottom: 1px;
}

/* ── Services ───────────────────────────────────────────── */
#services {
  background: var(--ink-2);
  padding: 88px 0;
}
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.services-h2 {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
}
.services-h2 em { font-style: italic; color: var(--accent); }
.services-sub {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  text-align: right;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--rule);
}
.svc-col {
  padding: 28px 28px 32px;
  background: rgba(255,255,255,.018);
}
.svc-phase {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.svc-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
}
.svc-item:last-child { border-bottom: none; }
.svc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.svc-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.svc-id {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--text-mute);
  flex-shrink: 0;
}
.svc-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 3px;
}

/* ── Builder FAQ ────────────────────────────────────────── */
#builder-faq {
  background: var(--ink);
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.faq-head {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 56px;
  align-items: end;
}
.faq-h2 {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  margin-top: 14px;
}
.faq-h2 em { font-style: italic; color: var(--accent); }
.faq-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 560px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--rule);
  overflow: hidden;
}
.faq-item {
  padding: 28px;
  background: rgba(241,235,223,.018);
}
.faq-q {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
.faq-a {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ── Differentiator ─────────────────────────────────────── */
#differentiator {
  background: var(--paper);
  color: #1a1a1a;
  padding: 88px 0;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.diff-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.diff-h2 {
  font-size: clamp(32px, 3.4vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  margin-top: 14px;
}
.diff-h2 em { font-style: italic; color: var(--accent); }
.diff-body {
  font-size: 14px;
  line-height: 1.72;
  color: #555;
  margin-top: 18px;
  max-width: 480px;
}
.diff-body + .diff-body { margin-top: 10px; }

.stat-card {
  border: 1.5px solid #1a1a1a;
  background: #fff;
  padding: 32px 32px 28px;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(26,22,18,.12);
}
.stat-card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a7f6e;
}
.big-num {
  font-family: var(--mono);
  font-size: 88px;
  line-height: .9;
  letter-spacing: 0;
  color: var(--accent);
  margin-top: 16px;
}
.big-unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a7f6e;
  margin-top: 8px;
}
.big-desc {
  font-size: 13.5px;
  color: #555;
  margin-top: 5px;
}
.stat-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(26,22,18,.12);
}
.tl-item + .tl-item { border-left: 1px solid rgba(26,22,18,.12); padding-left: 16px; }
.tl-key {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a7f6e;
}
.tl-val {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 5px;
  color: #1a1a1a;
}

/* ── Coverage + About ───────────────────────────────────── */
#coverage {
  background: var(--paper-2);
  color: #1a1a1a;
  padding: 88px 0;
  border-top: 1px solid rgba(26,22,18,.1);
}
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.coverage-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a7f6e;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.coverage-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
}
.coverage-h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin-top: 14px;
}
.coverage-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: #555;
  margin-top: 14px;
}
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.cpill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(26,22,18,.18);
  border-radius: 999px;
  color: #1a1a1a;
}
.cpill.hub {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  max-width: 480px;
}
.about-stat {
  padding: 14px 16px;
  border: 1px solid rgba(26,22,18,.12);
  background: #fff;
  border-radius: 6px;
}
.about-stat-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a7f6e;
}
.about-stat-val {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
}
.about-stat-val a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,22,18,.25);
}

/* ── Contact ────────────────────────────────────────────── */
#contact {
  background: var(--ink);
  padding: 110px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .09;
  display: block;
}
#contact .wrap { position: relative; }
.contact-eyebrow { justify-content: center; }
.contact-h2 {
  font-size: clamp(38px, 5.6vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  margin-top: 16px;
}
.contact-h2 em { font-style: italic; color: var(--accent); }
.contact-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.contact-details {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-details a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(241,235,223,.22);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, var(--ink-2), #0b0908);
  border-top: 1px solid var(--rule);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(241,235,223,.55);
}
.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(241,235,223,.55);
  text-decoration: none;
  border: 1px solid rgba(241,235,223,.1);
  border-radius: 999px;
  padding: 7px 10px;
  transition: color .18s, border-color .18s, background .18s;
}
.footer-links a:hover {
  color: var(--text-soft);
  border-color: rgba(7,154,167,.38);
  background: rgba(7,154,167,.08);
}

@media (max-width: 1100px) {
  #site-nav .wrap { gap: 18px; }
  .nav-logo-wrap img { height: 48px; max-width: 162px; }
  .nav-links { gap: 18px; }
  .nav-cta { padding-inline: 14px; }

  .hero-inner,
  .midcheck-box,
  .drawings-grid,
  .diff-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .timeline-grid,
  .midcheck-reasons,
  .services-grid,
  .faq-head,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .timeline-connector { display: none; }
  .stage { padding-top: 28px; }
  .midcheck-lede { border-right: none; border-bottom: 1px solid rgba(6,129,142,.2); }
  .services-head { align-items: flex-start; flex-direction: column; }
  .services-sub { text-align: left; }
}

@media (max-width: 720px) {
  #site-nav {
    height: auto;
    padding: 10px 0 8px;
  }

  #site-nav .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }
  .nav-cta { padding: 8px 12px; }
  .nav-logo-wrap img { height: 44px; max-width: 150px; }
  #hero { padding: 144px 0 64px; }
  .hero-inner { gap: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { align-items: stretch; }
  .btn { width: 100%; justify-content: center; padding-inline: 18px; }
  .hero-note { width: 100%; line-height: 1.45; }
  .stage-top { align-items: flex-start; }
  .stage-meta,
  .stat-row,
  .stat-timeline,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-row {
    display: grid;
    border-left: none;
    gap: 12px;
  }

  .stat-cell {
    padding: 0 0 12px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .tl-item + .tl-item {
    border-left: none;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(26,22,18,.12);
  }

  .midcheck-lede,
  .midcheck-reasons,
  .quote-card,
  .faq-item,
  .stat-card {
    padding: 28px 22px;
  }

  .big-num { font-size: 68px; }
  .footer-inner {
    align-items: flex-start;
    display: grid;
  }
  .footer-links {
    justify-content: flex-start;
    width: 100%;
  }
  .footer-copy {
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  #hero { padding-top: 150px; }
  .hero-h1 { font-size: 40px; }
  .nav-logo-wrap { padding: 0; }
  .nav-logo-wrap img { height: 38px; max-width: 130px; }
  .nav-wordmark,
  .nav-cta,
  .nav-links a { font-size: 10px; }
}

/* ── Static subpages ────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 76px;
  background: linear-gradient(180deg, #12100e 0%, var(--ink) 72%);
  border-bottom: 1px solid var(--rule);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 82px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7,154,167,.55), transparent);
  pointer-events: none;
}
.page-hero .wrap {
  position: relative;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 18px;
  max-width: 840px;
}
.page-hero p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.72;
  margin-top: 20px;
  max-width: 720px;
}
.page-hero-panel,
.deliverable-list {
  border: 1px solid rgba(6,129,142,.35);
  background: linear-gradient(180deg, rgba(6,129,142,.1), rgba(241,235,223,.025));
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
}
.page-hero-panel {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
}
.page-hero-panel strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}
.page-hero-panel span {
  font-size: 13px;
  line-height: 1.45;
}
.panel-label,
.section-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-section {
  padding: 76px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.page-section-alt {
  background: linear-gradient(180deg, var(--ink-2), #11100e);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.content-grid p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.78;
  max-width: 780px;
}
.content-grid p + p { margin-top: 18px; }
.content-grid a,
.faq-a a,
.link-card:hover h2 {
  color: var(--text);
}
.content-grid a,
.faq-a a {
  text-decoration-color: rgba(7,154,167,.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.deliverable-list {
  display: grid;
  gap: 14px;
}
.deliverable-list div:not(.section-kicker) {
  color: var(--text-soft);
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.45;
}
.deliverable-list div:last-child { border-bottom: none; }
.section-title {
  font-size: clamp(30px, 3.4vw, 36px);
  line-height: 1.1;
  font-weight: 400;
  margin-top: 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--rule);
  overflow: hidden;
}
.link-card {
  display: block;
  padding: 28px;
  color: var(--text);
  text-decoration: none;
  background: rgba(241,235,223,.018);
  min-height: 100%;
}
.link-card h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  transition: color .18s;
}
.link-card p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.detail-card {
  position: relative;
  background: linear-gradient(180deg, rgba(241,235,223,.035), rgba(241,235,223,.015));
  padding: 30px;
  min-height: 100%;
}
.detail-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(6,129,142,.58);
}
.detail-card h2 {
  color: var(--text);
  font-size: 21px;
  line-height: 1.22;
  font-weight: 500;
  margin-top: 12px;
  max-width: 560px;
}
.detail-card ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-left: 18px;
}
.detail-card li {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.62;
}
.quote-band {
  padding: 76px 0;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: #1a1a1a;
}
.quote-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.quote-band h2 {
  font-size: clamp(32px, 3.6vw, 38px);
  line-height: 1.08;
  font-weight: 400;
  margin-top: 14px;
}
.quote-band p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 650px;
}
.quote-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.quote-band .btn-ghost {
  color: #1a1a1a;
  border-color: rgba(26,22,18,.25);
}
.page-faq-grid { margin-top: 28px; }

.privacy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 56px;
}
.privacy-hero {
  padding-bottom: 40px;
}
.privacy-section {
  padding-top: 48px;
}
.privacy-title {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.06;
  font-weight: 400;
  margin-top: 18px;
}
.privacy-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--text);
}
.privacy-body p,
.privacy-body ul {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.privacy-body ul {
  padding-left: 20px;
}
.privacy-body ul li {
  margin-bottom: 6px;
}
.privacy-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
}
.privacy-email {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(6,129,142,.4);
}

@media (max-width: 1100px) {
  .page-hero-grid,
  .content-grid,
  .quote-band-inner {
    grid-template-columns: 1fr;
  }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .privacy-wrap { padding: 0 24px; }
  .page-hero { padding: 142px 0 56px; }
  .page-section,
  .quote-band { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Interactions & Animations ──────────────────────────── */

/* Button hover lift */
.btn {
  will-change: transform;
  transition: opacity .18s, border-color .18s, transform .2s cubic-bezier(.22,.68,0,1.2), box-shadow .2s;
}
.btn-primary {
  box-shadow: 0 2px 14px rgba(6,129,142,.22);
}
.btn-primary:hover {
  opacity: 1;
  background: #06899b;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6,129,142,.40);
}
.btn-ghost:hover {
  border-color: rgba(241,235,223,.55);
  transform: translateY(-2px);
}
.btn-ghost-dark:hover {
  transform: translateY(-2px);
}
.nav-cta {
  transition: opacity .18s, transform .2s cubic-bezier(.22,.68,0,1.2), box-shadow .2s;
}
.nav-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6,129,142,.32);
}

/* Pulsing ring on active stage dot */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 4px rgba(6,129,142,.18), 0 0 0 0   rgba(6,129,142,.42); }
  70%  { box-shadow: 0 0 0 4px rgba(6,129,142,.18), 0 0 0 10px rgba(6,129,142,0); }
  100% { box-shadow: 0 0 0 4px rgba(6,129,142,.18), 0 0 0 0   rgba(6,129,142,0); }
}
.stage-dot.lit {
  animation: pulse-ring 2.6s ease-out infinite;
}

/* Hero ambient glow behind headline */
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 55% 45% at 28% 46%, rgba(6,129,142,.075) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
#hero .wrap { z-index: 1; }

/* Midcheck box accent glow */
.midcheck-box {
  box-shadow: 0 0 60px rgba(6,129,142,.12), 0 24px 64px rgba(0,0,0,.34);
}

/* Quote card accent glow */
.quote-card {
  box-shadow: 0 0 44px rgba(6,129,142,.1), 0 20px 54px rgba(0,0,0,.18);
}

/* Stat card lift on hover */
.stat-card {
  transition: box-shadow .25s, transform .25s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 64px rgba(26,22,18,.2);
}

/* Service row hover accent */
.svc-item {
  transition: background .18s, padding-left .18s;
}
.svc-item:hover {
  background: rgba(6,129,142,.06);
  padding-left: 6px;
}

/* FAQ item hover */
.faq-item {
  transition: background .2s;
}
.faq-item:hover {
  background: rgba(241,235,223,.028);
}

/* City pill hover */
.cpill {
  transition: background .18s, border-color .18s, color .18s;
  cursor: default;
}
.cpill:not(.hub):hover {
  background: rgba(6,129,142,.08);
  border-color: rgba(6,129,142,.38);
  color: var(--accent);
}

/* About-stat hover */
.about-stat {
  transition: box-shadow .2s, transform .2s;
}
.about-stat:hover {
  box-shadow: 0 4px 14px rgba(26,22,18,.1);
  transform: translateY(-1px);
}

/* Link card hover */
.link-card {
  transition: background .18s;
}
.link-card:hover {
  background: rgba(7,154,167,.075);
}

/* Detail card hover (subpages) */
.detail-card {
  transition: background .18s;
}
.detail-card:hover {
  background: rgba(241,235,223,.018);
}

/* Scroll-reveal */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .56s ease, transform .56s ease;
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-ghost-dark:hover,
  .nav-cta:hover { transform: none; box-shadow: none; }
  .stage-dot.lit { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Page Transitions ────────────────────────────────────── */
/* Mobile and tablet polish */
@media (max-width: 1100px) and (min-width: 721px) {
  .timeline-grid,
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .svc-col {
    padding: 24px 20px 28px;
    border-right: 1px solid var(--rule);
    border-bottom: none;
  }

  .svc-col:last-child { border-right: none; }

  .midcheck-reasons,
  .faq-grid,
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .midcheck-reasons > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .wrap { padding: 0 24px; }

  #site-nav {
    height: auto;
    padding: 10px 0 9px;
  }

  #site-nav .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
  }

  .nav-logo-wrap img {
    height: 48px;
    max-width: 168px;
  }

  #site-nav .nav-cta {
    min-height: 38px;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: .09em;
  }

  #site-nav .nav-cta::after {
    content: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .nav-links a {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 6px;
    border: 1px solid rgba(26,22,18,.1);
    border-radius: 4px;
    background: rgba(255,255,255,.68);
    text-align: center;
    line-height: 1.15;
    letter-spacing: .07em;
  }

  .nav-links a[aria-current="page"] {
    background: rgba(7,154,167,.1);
    border-color: rgba(7,154,167,.28);
    color: var(--ink);
  }

  .nav-links a::after {
    content: none;
  }

  .hero-h1,
  .page-hero h1 {
    text-wrap: balance;
  }

  .hero-photo-wrap {
    order: -1;
  }

  .hero-photo-wrap img {
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
  }

  .cred-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quote-band-actions,
  .quote-actions,
  .contact-ctas {
    width: 100%;
  }
}

@media (max-width: 720px) {
  section[id] { scroll-margin-top: 168px; }

  #hero {
    padding: 158px 0 56px;
  }

  #services,
  #builder-faq,
  #differentiator,
  #coverage,
  #drawings,
  #contact,
  .page-section,
  .quote-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero-inner,
  .drawings-grid,
  .diff-grid,
  .coverage-grid,
  .content-grid,
  .quote-band-inner {
    gap: 30px;
  }

  .hero-h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1.04;
  }

  .page-hero {
    padding: 158px 0 52px;
  }

  .page-hero h1,
  .section-title,
  .quote-band h2,
  .contact-h2 {
    font-size: clamp(31px, 9.5vw, 40px);
  }

  .drawings-h2,
  .services-h2,
  .faq-h2,
  .diff-h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-sub,
  .page-hero p,
  .drawings-sub,
  .faq-sub,
  .diff-body,
  .coverage-body,
  .content-grid p {
    font-size: 14.5px;
    line-height: 1.68;
  }

  .eyebrow,
  .coverage-eyebrow,
  .hero-note,
  .contact-details {
    letter-spacing: .1em;
  }

  .services-head,
  .faq-head {
    gap: 16px;
  }

  .midcheck-box,
  .services-grid,
  .faq-grid,
  .card-grid,
  .detail-grid {
    border-radius: 6px;
  }

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

  .page-hero-panel,
  .deliverable-list,
  .link-card,
  .detail-card,
  .svc-col {
    padding: 24px 22px;
  }

  .quote-card {
    padding: 26px 22px;
  }

  .quote-list div {
    grid-template-columns: 22px 1fr;
  }

  .contact-details {
    display: grid;
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }

  #site-nav {
    padding: 9px 0 8px;
  }

  .nav-logo-wrap img {
    height: 46px;
    max-width: 158px;
  }

  #site-nav .nav-cta {
    font-size: 0;
    min-height: 36px;
    padding: 9px 12px;
  }

  #site-nav .nav-cta::after {
    content: 'Quote';
    font-size: 10px;
    letter-spacing: .1em;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    min-height: 32px;
    padding: 7px 4px;
    font-size: 9px;
    letter-spacing: .03em;
  }

  #hero {
    padding-top: 166px;
  }

  .page-hero {
    padding-top: 166px;
  }

  .hero-ctas,
  .quote-actions,
  .quote-band-actions,
  .contact-ctas {
    gap: 10px;
  }

  .btn {
    min-height: 46px;
    font-size: 10.5px;
    letter-spacing: .08em;
  }

  .stage-meta {
    gap: 10px;
  }

  .stat-card {
    padding: 26px 22px;
  }

  .big-num {
    font-size: 62px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    text-align: center;
    letter-spacing: .08em;
  }
}

@view-transition {
  navigation: auto;
}

@keyframes pg-out {
  to { opacity: 0; }
}
@keyframes pg-in {
  from { opacity: 0; }
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-fill-mode: both;
}

::view-transition-old(root) {
  animation: pg-out .18s ease forwards;
}
::view-transition-new(root) {
  animation: pg-in .22s ease forwards;
}

/* Entrance animation for browsers without view transition support (e.g. Firefox) */
@supports not (view-transition-name: none) {
  body { animation: pg-in .3s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  body { animation: none !important; }
}
