:root {
  --lichen: #f1f3ef;
  --paper: #ffffff;
  --ink: #1e2529;
  --soft: #51606a;
  --slate: #1f5563;
  --slate-deep: #163f4a;
  --ochre: #d9a12e;
  --brick: #a5432c;
  --moss: #6d8455;
  --clay: #c98d5a;
  --stone: #9aa7ad;
  --rule: #d5dad3;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  --mono: "Spline Sans Mono", "Courier New", monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--lichen); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; padding-bottom: 76px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* header */
.top { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: calc(-1 * var(--top-row, 0px)); z-index: 30; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 8px; }
.brand { text-decoration: none; display: grid; gap: 3px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: -0.02em; }
.brand-place { color: var(--slate); }
.top-call { flex: none; text-decoration: none; font-weight: 700; white-space: nowrap; background: var(--slate); color: #fff; padding: 9px 14px; border-radius: 6px; }
.top-call:hover { background: var(--slate-deep); }
.nav { display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 1 0 auto; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 10px 5px 8px; border-bottom: 4px solid transparent; color: var(--soft); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }
@media (min-width: 680px) { .nav { gap: 6px; } .nav a { flex: none; font-size: 1.02rem; padding: 10px 14px 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; padding: 15px 22px; border-radius: 6px; border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--slate); color: #fff; }
.btn-go:hover { background: var(--slate-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: rgba(30, 37, 41, 0.07); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 36px 0 44px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: 30px; }
.hero h1 { font-size: clamp(2.3rem, 8.4vw, 4rem); }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.38em 0 rgba(217, 161, 46, 0.55); }
.hero-lede { margin-top: 18px; font-size: 1.15rem; max-width: 40ch; color: var(--soft); }
.hero .actions { margin-top: 22px; }
.badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; } .hero { padding: 52px 0 60px; } }

/* house cross-section */
.section-card { border: 2px solid var(--ink); border-radius: 10px; background: var(--lichen); overflow: hidden; }
.section-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.house { position: relative; }
.house svg { width: 100%; height: auto; }
.house .part { transition: fill 0.35s ease, stroke 0.35s ease, opacity 0.35s ease; }
.house .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.house .thin { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.house .wallfill { fill: var(--paper); }
.house .p-chimney { fill: #cfd6d8; }
.house .p-flue { stroke: var(--stone); }
.house .p-dryer { fill: #cfd6d8; }
.house .p-duct { stroke: var(--stone); }
.house .p-mold { fill: #cfd6d8; }
.house .p-asb { fill: #cfd6d8; }
.house .p-well { stroke: var(--stone); }
.sel-chimney .p-chimney { fill: var(--brick); }
.sel-chimney .p-flue { stroke: var(--brick); }
.sel-dryer .p-dryer { fill: var(--ochre); }
.sel-dryer .p-duct { stroke: var(--ochre); }
.sel-mold .p-mold { fill: var(--moss); }
.sel-asbestos .p-asb { fill: var(--clay); }
.sel-ground .p-well { stroke: var(--slate); }
.sel-ground .p-strata { opacity: 1; }
.house .p-strata { opacity: 0.55; }
.dot { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 1rem/1 var(--mono); cursor: pointer; display: grid; place-items: center; transition: transform 0.2s ease, background-color 0.2s ease; }
.dot:hover { transform: scale(1.1); }
.dot[aria-pressed="true"] { background: var(--ink); color: #fff; transform: scale(1.12); }
.readout { border-top: 2px solid var(--ink); background: var(--paper); padding: 16px 16px 18px; display: grid; gap: 6px; min-height: 9.6rem; align-content: start; }
.readout h3 { font-size: 1.45rem; }
.readout .cred { color: var(--slate); }
.readout a { font-weight: 700; text-underline-offset: 4px; }

/* page heads */
.page-head { background: var(--paper); border-bottom: 2px solid var(--ink); padding: 36px 0 40px; }
.page-head h1 { font-size: clamp(2.3rem, 8vw, 3.8rem); margin-top: 10px; max-width: 18ch; }
.page-head .lede { margin-top: 16px; max-width: 54ch; font-size: 1.15rem; color: var(--soft); }
.cred-tag { display: inline-block; margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; background: #f6e7c3; }

/* sections */
.band { padding: 54px 0; }
.band.paper { background: var(--paper); }
.band.dark { background: var(--ink); color: #eef1ee; }
.band h2 { font-size: clamp(1.9rem, 5.6vw, 2.8rem); margin-top: 8px; max-width: 22ch; }
.eyebrow { color: var(--slate); }
.band.dark .eyebrow { color: var(--ochre); }
.band-intro { margin-top: 14px; max-width: 56ch; color: var(--soft); font-size: 1.1rem; }
.band.dark .band-intro { color: #c3ccc9; }
.split { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.split img { border-radius: 10px; border: 2px solid var(--ink); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.plain li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--rule); }
.plain li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 12px; height: 12px; border-radius: 50%; background: var(--ochre); border: 2px solid var(--ink); }
.band.dark .plain { border-top-color: #eef1ee; }
.band.dark .plain li { border-bottom-color: #3a454a; }
.band.dark .plain li::before { border-color: #eef1ee; }
@media (min-width: 760px) { .plain.two { grid-template-columns: 1fr 1fr; column-gap: 44px; } }

/* service list on home */
.services { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.services a { display: grid; gap: 6px; text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 18px 18px 20px; height: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.services a:hover { transform: translateY(-3px); box-shadow: 0 8px 0 -3px var(--ochre); }
.services h3 { font-size: 1.5rem; }
.services .cred { color: var(--slate); }
.services .more { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; margin-top: 4px; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }

/* credentials */
.creds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid #eef1ee; }
.creds li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #3a454a; font-size: 1.15rem; }
.creds .code { color: var(--ochre); font-size: 1rem; }
@media (min-width: 760px) { .creds { grid-template-columns: 1fr 1fr; column-gap: 44px; } }

/* signs checklist */
.signs { margin: 28px 0 0; padding: 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); overflow: hidden; }
.signs legend { position: absolute; left: -999px; }
.signs label { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 13px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.signs label:hover { background: #f6f8f5; }
.signs input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--slate); }
.signs-out { padding: 16px; display: grid; gap: 12px; background: #f6e7c3; }
.signs-out p { font-weight: 700; }

/* quote, stat */
.cite { margin: 28px 0 0; border-left: 6px solid var(--ochre); background: var(--paper); padding: 20px 20px 22px; border-radius: 0 10px 10px 0; max-width: 64ch; }
.cite q { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; quotes: "\201C" "\201D"; }
.cite cite { display: block; margin-top: 10px; font-style: normal; color: var(--soft); }
.stat { display: grid; gap: 4px; margin-top: 28px; }
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 14vw, 6rem); line-height: 0.9; color: var(--ochre); }
.links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links a { font-weight: 700; text-underline-offset: 4px; }

/* forms */
.ask { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 22px 20px 24px; display: grid; gap: 16px; }
.ask label { display: grid; gap: 6px; font-weight: 700; }
.ask label span { font-weight: 400; color: var(--soft); }
.ask input, .ask textarea { font: inherit; color: inherit; background: var(--lichen); border: 2px solid #96a3a6; border-radius: 6px; padding: 12px; width: 100%; }
.ask textarea { min-height: 120px; resize: vertical; }
.ask input:focus, .ask textarea:focus { border-color: var(--ink); background: #fff; }
.ask .bad { border-color: #b3261e; background: #fff5f4; }
.ask .err { color: #b3261e; font-size: 0.92rem; font-weight: 400; }
.ask-status { color: var(--soft); min-height: 1.5em; }
.ask .hp { position: absolute; left: -9999px; }

/* contact */
.visit { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1.2fr; gap: 44px; } }
.contact { margin: 0; border-top: 2px solid var(--ink); }
.contact div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.contact dt { color: var(--soft); }
.contact dd { margin: 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.map { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; min-height: 320px; background: #dfe5e2; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* footer, call bar */
.foot { background: var(--ink); color: #c3ccc9; padding: 34px 0 26px; font-size: 0.98rem; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.foot strong { color: #fff; font-family: var(--display); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { overflow-wrap: anywhere; }
.foot .draft { margin-top: 24px; padding-top: 16px; border-top: 1px solid #3a454a; font-size: 0.88rem; color: #96a3a6; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.callbar .btn { width: 100%; }
@media (min-width: 900px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* motion */
.js-motion .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-motion .rv.in { opacity: 1; transform: none; }
.js-motion .house .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 1.6s ease 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .rv { opacity: 1; transform: none; transition: none; }
  .js-motion .house .draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .house .part, .dot, .services a, .btn { transition: none; }
}
.signs-out[hidden] { display: none; }
