:root {
  --night: #232a4d;
  --night-deep: #1a1f3b;
  --plum: #5a4a78;
  --cream: #f6f1e4;
  --paper: #fffaf0;
  --haze: #b9bdd6;
  --amber: #f0a53a;
  --ink: #1c1f33;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.cream :focus-visible { outline-color: var(--night); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.note { font-size: 0.88rem; opacity: 0.72; }

/* brand row scrolls away, menu row stays */
.top { background: var(--night-deep); color: var(--cream); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--display); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font: 600 0.78rem/1 var(--body); opacity: 0.8; margin-top: 4px; letter-spacing: 0.03em; }
.top-call { font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.top-call:hover { color: var(--amber); }
.menu { position: sticky; top: 0; z-index: 30; background: var(--night-deep); color: var(--cream); box-shadow: 0 1px 0 rgba(246, 241, 228, 0.12), 0 8px 18px rgba(26, 31, 59, 0.25); }
.menu-in { display: flex; justify-content: space-between; gap: 4px; height: 46px; overflow: hidden; }
.menu a { display: flex; align-items: center; font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; padding: 0 2px; box-shadow: inset 0 -3px 0 transparent; transition: color 0.2s ease, box-shadow 0.2s ease; }
.menu a:hover, .menu a.here { color: var(--amber); }
.menu a.here { box-shadow: inset 0 -3px 0 var(--amber); }
.menu a:focus-visible { outline-offset: -3px; }
.band, .hero { scroll-margin-top: 46px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; font: 700 1.05rem/1.2 var(--body); padding: 15px 24px; border-radius: 14px 14px 14px 2px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffbb55; }
.btn-ghost { background: rgba(246, 241, 228, 0.14); color: var(--cream); }
.btn-ghost:hover { background: rgba(246, 241, 228, 0.24); }

/* hero */
.hero { background: var(--night); color: var(--cream); padding: 40px 0 56px; }
.hero-in { display: grid; gap: 34px; align-items: center; }
.kicker { font-weight: 700; font-size: 0.92rem; color: var(--amber); margin-bottom: 14px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); line-height: 1; }
.lead { font-size: 1.18rem; margin: 20px 0 0; max-width: 32em; }

/* the chimney to fix */
.fix { background: var(--night-deep); border-radius: 22px 22px 22px 4px; overflow: hidden; }
.fix-stage { position: relative; }
.fix-stage svg { width: 100%; height: auto; }
.bad, .good, .smoke { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1); transform-box: fill-box; transform-origin: center; }
.good { opacity: 0; }
.good-cap { transform: translateY(-46px); }
.good-crown { transform: scaleX(0.6); }
.good-flashing { transform: scaleX(0.2); }
.smoke { opacity: 0; }
.fx-cap .bad-cap, .fx-crown .bad-crown, .fx-flashing .bad-flashing, .fx-bricks .bad-bricks { opacity: 0; }
.fx-cap .good-cap, .fx-crown .good-crown, .fx-flashing .good-flashing { opacity: 1; transform: none; }
.fx-gutter .bad-gutter { opacity: 0; transform: translate(-70px, -40px) rotate(-30deg); }
.fx-animal .bad-animal { opacity: 0; transform: translate(60px, -90px); }
.all-fixed .smoke { opacity: 0.75; animation: puff 4s ease-in-out infinite; }
@keyframes puff { 50% { transform: translate(8px, -8px) scale(1.15); } }
.spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.spot::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(240, 165, 58, 0.35); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 12px rgba(240, 165, 58, 0); } }
.spot.fixed::before { background: #7fd3a0; box-shadow: none; animation: none; inset: 14px; }
.spot.fixed::after { content: ''; position: absolute; left: 19px; top: 16px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.fix-panel { padding: 18px 20px 20px; }
.fix-count { margin: 0 0 8px; font-weight: 700; font-size: 0.9rem; color: var(--amber); }
.fix-panel h2 { font-size: 1.55rem; }
.fix-panel p { margin: 8px 0 0; }
#fix-text { min-height: 6.4em; }
.fix-buttons button { font: 700 0.98rem/1.2 var(--body); background: none; border: 0; padding: 6px 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* bands */
.band { padding: 60px 0; }
.band.cream { background: var(--cream); }
.band.dusk { background: linear-gradient(160deg, var(--night), var(--plum)); color: var(--cream); }
.band h2 { font-size: clamp(2rem, 7.4vw, 3.2rem); }
.intro { font-size: 1.16rem; margin: 16px 0 1em; max-width: 36em; }
.two { display: grid; gap: 32px; align-items: start; }
.panel { background: var(--paper); border-radius: 18px 18px 18px 4px; padding: 24px 22px 8px; }

/* services */
.services { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.services li { background: var(--paper); border-radius: 18px 18px 18px 4px; padding: 20px 22px 8px; }
.services h3 { font-size: 1.4rem; margin-bottom: 8px; }
.services li:nth-child(3n+1) { background: var(--night); color: var(--cream); }
.services li:nth-child(3n+1) h3 { color: var(--amber); }

/* before / after slider */
.cmp { margin: 0; }
.cmp-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px 18px 18px 4px; background: #000; --pos: 50%; }
.cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--amber); pointer-events: none; }
.cmp-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: var(--amber); color: var(--ink); font: 700 1.2rem/50px var(--body); text-align: center; }
.cmp-stage input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-stage:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.tag { position: absolute; top: 12px; font-weight: 700; font-size: 0.82rem; line-height: 1; padding: 7px 10px; border-radius: 8px; pointer-events: none; }
.tag-b { left: 12px; background: var(--night-deep); color: var(--cream); }
.tag-a { right: 12px; background: var(--amber); color: var(--ink); }
.cmp figcaption { margin-top: 10px; font-size: 0.95rem; }

/* counties */
.counties { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counties li { font: 400 1.9rem/1 var(--display); background: rgba(246, 241, 228, 0.12); border-radius: 16px 16px 16px 4px; padding: 22px 18px; }
.counties li::after { content: ' County'; font: 600 0.8rem/1 var(--body); opacity: 0.75; display: block; margin-top: 8px; }
.counties li:last-child { grid-column: 1 / -1; background: var(--amber); color: var(--ink); }

/* contact */
.reach { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.reach span { display: block; font-weight: 700; font-size: 0.82rem; opacity: 0.65; }
.reach a { font: 400 2rem/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.reach li:nth-child(n+2) a { font-size: 1.35rem; }
.reach a:hover { color: var(--plum); }
.reach address { font-style: normal; line-height: 1.45; }
.badge { display: inline-block; margin: 24px 0 0; background: var(--night); color: var(--cream); font-weight: 700; padding: 10px 16px; border-radius: 12px 12px 12px 2px; }
.ask { background: var(--night); color: var(--cream); border-radius: 22px 22px 22px 4px; padding: 26px 22px; display: grid; gap: 16px; }
.ask h3 { font-size: 1.7rem; }
.ask label { display: grid; gap: 6px; font-weight: 700; font-size: 0.96rem; }
.ask input[type="text"], .ask input[type="tel"], .ask textarea { font: 400 1.05rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 0; border-radius: 10px; padding: 13px 14px; width: 100%; }
.ask textarea { min-height: 110px; resize: vertical; }
.ask .bad { box-shadow: 0 0 0 3px #ff9c85; }
.ask .err { color: #ffc2b3; font-weight: 400; font-size: 0.9rem; }
.ask .hp { position: absolute; left: -9999px; }
.ask .btn { justify-self: start; }
.ask .btn:disabled { opacity: 0.6; }
.ask-status { margin: 0; min-height: 1.4em; }
.ask :focus-visible { outline-color: var(--amber); }

/* footer and phone call bar */
.foot { background: var(--night-deep); color: var(--cream); padding: 34px 0 104px; font-size: 0.95rem; }
.foot-name { font: 400 1.3rem/1.2 var(--display); }
.draft { margin: 0; opacity: 0.75; }
.callbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; background: var(--amber); color: var(--ink); text-align: center; text-decoration: none; font-weight: 700; font-size: 1.08rem; line-height: 1; padding: 16px; border-radius: 14px 14px 14px 2px; box-shadow: 0 8px 22px rgba(26, 31, 59, 0.45); }

/* motion, several kinds */
.js-motion .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; }
.js-motion .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js-motion .words-in .w > span { transform: none; }
.js-motion .rv-pop { opacity: 0; transform: scale(0.7); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.js-motion .rv-pop.in { opacity: 1; transform: none; }
.js-motion .rv-side { opacity: 0; transform: translateX(-30px); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js-motion .rv-side:nth-child(even) { transform: translateX(30px); }
.js-motion .rv-side.in { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .menu-in { justify-content: flex-start; gap: 34px; }
  .menu a { font-size: 1rem; }
  .services { grid-template-columns: 1fr 1fr; }
  .counties { grid-template-columns: repeat(5, 1fr); }
  .counties li:last-child { grid-column: auto; }
}
@media (min-width: 900px) {
  .spot::before, .spot.fixed::before { inset: 11px; }
  body { font-size: 1.125rem; }
  .hero { padding: 64px 0 80px; }
  .hero-in { grid-template-columns: 0.9fr 1.1fr; gap: 52px; }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .band { padding: 88px 0; }
  .callbar { display: none; }
  .foot { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bad, .good, .smoke, .btn, .menu a { transition: none; }
  .spot::before, .all-fixed .smoke { animation: none; }
}
