/* Lumen Painting — site styles.
   Screen-print palette from the logo: paper, primer, ink navy, denim, signal orange, painter's-tape blue.
   One typeface (Rubik, self-hosted, variable 300–900). Corners are tight (4px) except stamps, chips and hotspots. */
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-latin.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper: #E9E2CF; --paper-2: #E2D9C2; --primer: #FAF7EF; --ink: #26314F; --denim: #4A5B86;
  --signal: #CF431B; --signal-dk: #B83A14; --tape: #8FB8E0; --night: #1D253D;
  --line: rgba(38, 49, 79, .18);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px; --gut: clamp(16px, 3vw, 28px); --r: 4px;
  --bleed: calc(var(--gut) + max(0px, (100vw - var(--wrap)) / 2));   /* from the content edge to the window edge */
  --dots: radial-gradient(circle, rgba(74, 91, 134, .26) 1.15px, transparent 1.6px);
  --dots-lt: radial-gradient(circle, rgba(250, 247, 239, .16) 1.2px, transparent 1.7px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1; color: var(--ink); }
h1 { font-weight: 900; text-transform: uppercase; font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -.015em; line-height: .93; }
h2 { font-weight: 850; text-transform: uppercase; font-size: clamp(29px, 3.3vw, 46px); letter-spacing: -.008em; line-height: .98; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; max-width: 34em; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--primer); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r);
  font: 700 16px/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn .ic { width: 20px; height: 20px; }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 3px 0 var(--signal-dk); }
.btn-signal:hover { background: var(--signal-dk); }
.btn-signal:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--signal-dk); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--primer); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- form controls (site-wide). The site only has a light theme, so native controls are asked to stay light
   even when the browser is set to dark (no more dark filled squares). Checkboxes and radios are drawn here:
   primer box with an ink edge, ink fill and a primer tick when checked, the signal focus ring. */
:root { color-scheme: light; color-scheme: only light; }
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center;
  width: 22px; height: 22px; margin: 0; padding: 0; vertical-align: -5px; color: var(--primer); background: var(--primer);
  border: 2px solid var(--ink); border-radius: 3px; cursor: pointer; transition: background-color .12s, box-shadow .12s; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before, input[type="radio"]::before { content: ""; transform: scale(0); transition: transform .12s ease-out; }
input[type="checkbox"]::before { width: 12px; height: 12px; background: currentColor; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
input[type="radio"]::before { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
input[type="checkbox"]:checked { background: var(--ink); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover, input[type="radio"]:hover { box-shadow: 0 0 0 4px rgba(38, 49, 79, .12); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
input[type="checkbox"][aria-invalid="true"], input[type="radio"][aria-invalid="true"] { border-color: var(--signal-dk); box-shadow: 0 0 0 3px rgba(184, 58, 20, .2); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { -webkit-appearance: auto; appearance: auto; }
  input[type="checkbox"]::before, input[type="radio"]::before { display: none; }
}
/* a box with its text: <label class="chk"><input type="checkbox"><span>…</span></label> (estimate form, quote page) */
.chk, .q-act .chk { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; cursor: pointer; }
.chk input { margin-top: 1px; }

/* ---------- header */
.hd { background: var(--paper); }
.hd-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); min-height: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 66px; width: auto; }
.brand-w { font-weight: 900; text-transform: uppercase; color: var(--signal); font-size: 27px; line-height: .86; letter-spacing: .01em; }
.hd-search { position: relative; flex: 1; max-width: 560px; display: flex; }
.hd-search input { flex: 1; min-width: 0; height: 50px; border: 2px solid var(--ink); border-right: 0; background: var(--primer); padding: 0 16px;
  border-radius: var(--r) 0 0 var(--r); font-size: 16px; }
.hd-search input::placeholder { color: #6A7391; }
.hd-search > button { width: 58px; flex: none; background: var(--ink); color: var(--primer); border: 0; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; display: grid; place-items: center; }
.hd-sugg { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 60; background: var(--primer); border: 2px solid var(--ink); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 16px 30px rgba(29, 37, 61, .18); max-height: 420px; overflow: auto; }
.hd-sugg a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; text-decoration: none; border-top: 1px solid var(--line); }
.hd-sugg a:first-child { border-top: 0; }
.hd-sugg a:hover, .hd-sugg a.on { background: var(--paper); }
.hd-sugg small { display: block; color: var(--denim); font-size: 13px; }
.hd-sugg .ic { margin-top: 2px; color: var(--denim); }
.hd-sugg p { margin: 0; padding: 14px; color: var(--denim); }
.hd-contact { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hd-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hd-phone .ic { width: 28px; height: 28px; color: var(--signal); }
.hd-phone small { display: block; font-size: 13px; color: var(--denim); line-height: 1.2; }
.hd-phone b { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.hd-chat { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; background: transparent; border: 2px solid var(--ink); border-radius: var(--r); font-weight: 700; cursor: pointer; }
.hd-chat:hover { background: var(--ink); color: var(--primer); }
.hd-burger { display: none; width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--primer); border-radius: var(--r); cursor: pointer; place-items: center; }
/* phones only (≤860px, see the responsive part): search toggle and call button, 44 × 44 like the menu button */
.hd-sbtn, .hd-call { display: none; width: 44px; height: 44px; flex: none; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: var(--r); cursor: pointer; }
.hd-sbtn { background: var(--primer); color: var(--ink); }
.hd-sbtn .ic-x, .hd-sbtn[aria-expanded="true"] .ic-search { display: none; }
.hd-sbtn[aria-expanded="true"] .ic-x { display: block; }
.hd-sbtn[aria-expanded="true"] { background: var(--ink); color: var(--primer); }
.hd-call { background: var(--signal); color: #fff; }
.hd-call .ic { stroke-width: 2.1; }
@media (hover: hover) {
  .hd-burger:hover, .hd-sbtn:hover { background: var(--ink); color: var(--primer); }
  .hd-call:hover { background: var(--signal-dk); }
}
@keyframes hd-drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- navigation bar + mega menu */
.nb { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--primer); }
.nb-in { display: flex; align-items: stretch; min-height: 56px; }
.mega-btn { display: flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 56px; background: var(--signal); color: #fff; border: 0; cursor: pointer;
  font: 800 15px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; }
.mega-btn .ic-chev { width: 18px; height: 18px; transition: transform .2s; }
.mega-btn[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--primer); color: var(--ink); border-bottom: 4px solid var(--ink);
  box-shadow: 0 22px 40px rgba(29, 37, 61, .28); padding: 26px 0 20px; max-height: calc(100vh - 70px); overflow: auto; }
.mm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.mm-h { font-weight: 800; font-size: 15px; margin: 0 0 6px; padding: 0 8px 10px; border-bottom: 2px solid var(--ink); }
.mm-item { display: flex; gap: 12px; align-items: center; padding: 10px 8px; text-decoration: none; border-radius: var(--r); }
.mm-item:hover, .mm-item[aria-current] { background: var(--paper); }
.mm-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--primer); }
.mm-item b { display: block; font-weight: 700; line-height: 1.25; }
.mm-item small { display: block; color: var(--denim); font-size: 14px; line-height: 1.3; }
.mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.mm-foot p { margin: 0; color: var(--denim); }
.mm-foot a, .mm-foot .linklike { color: var(--ink); font-weight: 700; }
.mm-all { font-weight: 800; }
.nb-links { display: flex; align-items: stretch; margin-left: 8px; }
.nb-links a { display: flex; align-items: center; padding: 0 16px; color: var(--primer); text-decoration: none; font: 700 15px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; }
.nb-links a:hover, .nb-links a[aria-current] { box-shadow: inset 0 -4px 0 var(--signal); background: rgba(250, 247, 239, .07); }
.nb-cta { margin: 8px 0 8px auto; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--primer); color: var(--ink); border-radius: var(--r);
  font: 800 15px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.nb-cta .ic { color: var(--signal); }
.nb-cta:hover { background: #fff; }

/* ---------- trust strip + promo */
.usp { background: var(--primer); border-bottom: 1px solid var(--line); }
.usp-in { display: flex; justify-content: space-between; gap: 18px; min-height: 50px; align-items: center; }
.usp p { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
.usp .ic { color: var(--signal); }
.promo { background: var(--night); color: var(--primer); }
.promo-in { display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.promo p { margin: 0; font-weight: 600; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.6) 35%, transparent 62%); mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.6) 35%, transparent 62%); }
.hero-stripe { position: absolute; right: -3%; top: 9%; width: 51%; height: 74%; fill: var(--signal); }
.hero-stripe path { animation: roll 1.1s cubic-bezier(.3, .7, .2, 1) .15s both; }
@keyframes roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .5fr) minmax(330px, .75fr); align-items: end; gap: 0 20px; min-height: 610px; padding-top: 56px; }
.hero-copy { align-self: center; padding-bottom: 72px; }
.hero-copy h1 { max-width: 9.5em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mascot { width: 100%; max-width: 290px; justify-self: end; margin-bottom: -2px; position: relative; z-index: 1; transform: rotate(-3deg); transform-origin: bottom center; }
.qbox { align-self: center; position: relative; z-index: 2; background: var(--ink); color: var(--primer); padding: 26px; border-radius: var(--r); box-shadow: 8px 8px 0 var(--night); margin-bottom: 64px; }
.qbox-t { color: var(--primer); font-size: 28px; font-weight: 850; margin-bottom: 16px; }
.qbox label { display: block; margin-bottom: 12px; }
.qbox label > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.qbox select, .qbox input { width: 100%; height: 50px; border: 2px solid transparent; border-radius: var(--r); padding: 0 14px; background: var(--primer); color: var(--ink); font-size: 16px; }
.qbox select:focus, .qbox input:focus { outline: none; border-color: var(--tape); }
.qbox .btn { width: 100%; margin-top: 6px; }
.qbox-n { font-size: 14px; color: rgba(250, 247, 239, .85); margin: 12px 0 0; }

/* ---------- section scaffolding */
.sec { padding: clamp(52px, 7vw, 92px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-link { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.tiles-sec { padding-top: 34px; padding-bottom: 0; }

/* ---------- three tiles (most requested) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 24px; color: var(--primer); text-decoration: none;
  border-radius: var(--r); overflow: hidden; background-image: var(--dots-lt); background-size: 11px 11px; }
.t-ink { background-color: var(--ink); } .t-denim { background-color: var(--denim); } .t-signal { background-color: var(--signal); }
.tile-art { position: absolute; right: 20px; top: 26px; width: 150px; height: 150px; color: var(--primer); opacity: .92; }
.tile-art .ic { width: 100%; height: 100%; stroke-width: 1.15; }
.tile-t { position: relative; font: 900 clamp(26px, 2.5vw, 36px)/.95 var(--font); text-transform: uppercase; max-width: 8.5em; }
.tile:hover .tile-t { text-decoration: underline; text-decoration-thickness: 3px; }
.tape { position: absolute; left: 20px; top: 22px; background: var(--tape); color: var(--ink); font-weight: 700; font-size: 14px; padding: 7px 14px 6px; transform: rotate(-2.5deg);
  clip-path: polygon(0 12%, 3% 0, 97% 5%, 100% 18%, 98% 36%, 100% 55%, 97% 74%, 100% 90%, 96% 100%, 4% 95%, 0 84%, 2% 64%, 0 44%, 2% 26%); }

/* ---------- services rail */
.svc-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.svc-lead { position: relative; overflow: hidden; background: var(--ink); color: var(--primer); padding: 28px; border-radius: var(--r); min-height: 400px; }
.svc-lead h2 { color: var(--primer); }
.svc-lead p { color: rgba(250, 247, 239, .88); }
.svc-rail { min-width: 0; display: flex; flex-direction: column; }
.svc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); text-decoration: none; min-height: 330px; }
.svc-ic { width: 60px; height: 60px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; margin-bottom: 6px; }
.svc-ic .ic { width: 30px; height: 30px; }
.svc-cat { font-size: 14px; font-weight: 600; color: var(--denim); }
.svc-card b { font-size: 22px; font-weight: 800; line-height: 1.15; }
.svc-d { flex: 1; font-size: 16px; line-height: 1.5; }
.svc-go { font-weight: 700; color: var(--signal-dk); text-decoration: underline; text-underline-offset: 3px; }
.svc-card:hover { border-color: var(--signal); }
.svc-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.svc-nav button { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--primer); border-radius: var(--r); cursor: pointer; }
.svc-nav button:hover { background: var(--ink); color: var(--primer); }

/* ---------- stamps strip */
.stamps-sec { background: var(--primer); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.stamps { list-style: none; margin: 0; padding: 26px 0; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 18px; }
.stamp { position: relative; width: 148px; height: 148px; color: var(--ink); }
.stamp svg { width: 100%; height: 100%; }
.st-o { fill: none; stroke: currentColor; stroke-width: 3.5; }
.st-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.st-t { font: 800 12.5px var(--font); letter-spacing: .06em; fill: currentColor; }
.st-ic { position: absolute; inset: 0; display: grid; place-items: center; }
.st-ic .ic { width: 42px; height: 42px; }
.stamp-0 { transform: rotate(-7deg); } .stamp-1 { transform: rotate(5deg); color: var(--signal-dk); } .stamp-2 { transform: rotate(-3deg); } .stamp-3 { transform: rotate(8deg); color: var(--signal-dk); }

/* ---------- pick a spot (photos with markers, one tab per room) */
.spot { background: var(--paper); }
.spot-in { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px 44px; align-items: start; }
.spot-head h2 { font-size: clamp(28px, 3vw, 44px); }
.spot-head p { color: var(--denim); font-weight: 500; }
.ph-tabs { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.ph-tabs button { text-align: left; padding: 13px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); color: var(--ink);
  font: 700 17px/1.2 var(--font); cursor: pointer; }
.ph-tabs button:hover { background: var(--paper-2); }
.ph-tabs button[aria-selected="true"] { background: var(--ink); color: var(--primer); box-shadow: 5px 5px 0 var(--signal); }
.ph-panels { min-width: 0; }
.ph-stage { position: relative; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: 8px 8px 0 var(--ink); }
.ph-pic { position: relative; }   /* markers are placed in % of the photo, not of the stage (the card can sit under the photo) */
.ph-pic > img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ph-stage .hs { box-shadow: 0 0 0 2px var(--ink), 0 4px 14px rgba(29, 37, 61, .45); }
.hs { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--signal); color: #fff;
  border: 3px solid var(--primer); box-shadow: 0 0 0 2px var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.hs .ic { width: 22px; height: 22px; stroke-width: 2.6; transition: transform .2s; }
.hs::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--signal); opacity: 0; animation: ping 2.4s ease-out .9s 3; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.hs[aria-expanded="true"] { background: var(--ink); }
.hs[aria-expanded="true"] .ic { transform: rotate(45deg); }
.hs:hover { background: var(--signal-dk); }
.hs-card { position: absolute; z-index: 3; width: min(330px, 86%); background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 20px 20px; box-shadow: 6px 6px 0 var(--ink); }
.hs-card h3 { margin-bottom: 6px; }
.hs-card p { font-size: 16px; margin-bottom: 14px; }
.hs-card .hs-lbl { display: block; font-size: 14px; font-weight: 600; color: var(--denim); margin-bottom: 4px; }
.hs-card .hs-x { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.spot-list { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.spot-list a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--primer); text-decoration: none; font-weight: 600; font-size: 15px; }
.spot-list .ic { width: 20px; height: 20px; }
.spot-list a:hover { background: var(--ink); color: var(--primer); }

/* ---------- explore by project */
.explore { background: var(--primer); }
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ex-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.ex-art { display: block; aspect-ratio: 16 / 11; background: var(--paper-2); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ex-art img { width: 100%; height: 100%; object-fit: cover; }
.ex-tx { position: relative; flex: 1; padding: 18px 64px 22px 20px; }
.ex-tx b { display: block; font: 850 24px/1 var(--font); text-transform: uppercase; margin-bottom: 6px; }
.ex-tx small { display: block; color: var(--denim); font-size: 15px; line-height: 1.35; }
.ex-plus { position: absolute; right: 0; bottom: 0; width: 70px; height: 70px; background: var(--signal); color: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.ex-plus .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.ex-card:hover .ex-tx b { text-decoration: underline; }

/* ---------- process (a real sequence) */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.steps li { counter-increment: st; position: relative; padding-top: 66px; }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--primer);
  font: 800 22px/50px var(--font); text-align: center; }
.steps li::after { content: ""; position: absolute; top: 24px; left: 60px; right: -12px; height: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 10px, transparent 10px 16px); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.steps p { font-size: 16px; margin: 6px 0 0; }

/* ---------- newsletter band */
.band { background: var(--night); color: var(--primer); background-image: var(--dots-lt); background-size: 12px 12px; }
.band-in { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(300px, 440px); align-items: center; gap: 32px; }
.band-mascot { width: 170px; height: auto; transform: rotate(-7deg); }
.band h2 { color: var(--primer); }
.band p { color: rgba(250, 247, 239, .86); margin: 0; }
.nl { display: flex; flex-wrap: wrap; gap: 10px; }
.nl input { flex: 1 1 220px; min-width: 0; height: 52px; border: 2px solid transparent; border-radius: var(--r); padding: 0 16px; background: var(--primer); color: var(--ink); }
.nl input:focus { outline: none; border-color: var(--tape); }
.nl-msg { flex-basis: 100%; margin: 0; min-height: 1.5em; font-size: 15px; }

/* ---------- blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post a { display: block; text-decoration: none; }
.post-art { height: 210px; display: grid; place-items: center; border-radius: var(--r); color: var(--primer); background-color: var(--denim); background-image: var(--dots-lt); background-size: 11px 11px; }
.post-art-1 { background-color: var(--signal); } .post-art-2 { background-color: var(--ink); }
.post-art .ic { width: 92px; height: 92px; stroke-width: 1.2; }
.post-cat { display: inline-block; margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--signal-dk); }
.post h3 { font-size: 23px; font-weight: 800; line-height: 1.2; }
.post p { margin: 8px 0 0; }
.post a:hover h3 { text-decoration: underline; }

/* ---------- areas (homepage block): the heading and finder beside the 3D map, then a directory of every area page.
   The map is the /areas map in a tighter frame (tools/build.py HOME_MAP, drawn by tools/areas_map3d.py; colours are
   set in the SVG). Phones see a crop of it: the City of Toronto and the inner GTA (--hm-w / --hm-x, set by build.py). */
.harea { background: var(--primer); overflow: hidden; overflow: clip; }
.harea-in { display: grid; grid-template-columns: minmax(0, clamp(360px, 31vw, 450px)) minmax(0, 1fr); grid-template-areas: "head map" "dir dir";
  column-gap: clamp(24px, 3vw, 44px); align-items: center; }
.harea-head { grid-area: head; }
.harea-lead { max-width: 30em; }
.harea .area-find { margin-top: 22px; }
.harea-map { grid-area: map; min-width: 0; max-width: 980px; margin-right: calc(-1 * var(--bleed)); }
.harea .m3d { display: block; width: 100%; height: auto; overflow: hidden; }   /* the areas' shapes run past the frame: keep them (and their links) inside it */
.harea .m3d text { font-family: var(--font); pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.harea .m3d .lb { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; fill: var(--ink); paint-order: stroke; stroke: var(--primer); stroke-width: 3.6px; stroke-linejoin: round; }
.harea .m3d .lb-g { font-size: 12px; }
.harea .m3d .lb-o { font-size: 11.5px; font-weight: 500; fill: var(--denim); paint-order: stroke; stroke: var(--primer); stroke-width: 3px; stroke-linejoin: round; }
.harea .m3d .lb-lake { font-size: 12px; font-weight: 700; letter-spacing: .55em; fill: #3A6798; }
.harea .m3d .nn circle { fill: var(--primer); stroke: var(--ink); stroke-width: 1.5; }
.harea .m3d .nn path { fill: var(--signal); stroke: var(--ink); stroke-width: 1; }
.harea .m3d .nn text { font-size: 10px; font-weight: 800; fill: var(--ink); }
.harea .m3d .ld { fill: none; stroke: var(--ink); stroke-width: 1.4px; }
.harea .m3d .ld-d { fill: var(--ink); stroke: var(--primer); stroke-width: 1.2px; }
/* each area is a link: it lifts on hover and keyboard focus, when its row below is pointed at, and when the finder picks it */
.harea .m3d .rg { cursor: pointer; outline: none; }
.harea .m3d .hit { visibility: hidden; pointer-events: all; }
.harea .m3d .hl { visibility: hidden; stroke: var(--ink); stroke-width: 2px; stroke-linejoin: round; transition: transform .16s ease; }
.harea .m3d .rg:hover .hl, .harea .m3d .rg:focus-visible .hl, .harea .m3d .rg.on .hl { visibility: visible; transform: translate(-1.5px, -5px); filter: url(#hm-lift); }
.harea .m3d .rg:focus-visible .hl { stroke-width: 3.2px; }
.harea .m3d .rg:hover .lb, .harea .m3d .rg:focus-visible .lb, .harea .m3d .rg.on .lb { fill: var(--primer); stroke: var(--ink); stroke-width: 6px; }
.harea .m3d .rg:hover .lb:not(.lb-c), .harea .m3d .rg:focus-visible .lb:not(.lb-c), .harea .m3d .rg.on .lb:not(.lb-c) { transform: translate(-1.5px, -5px); }
.harea .m3d [data-place].on > g { fill: #F6DCCF; stroke: var(--signal-dk); stroke-width: 2px; stroke-dasharray: none; stroke-opacity: 1; }
.harea .m3d text[data-place].on { fill: var(--signal-dk); font-weight: 800; }
/* the directory: the two groups of the map key, A to Z in rows of equal height; the link to /areas closes it */
.harea-dir { grid-area: dir; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "tor gta" "tor more";
  grid-template-rows: auto 1fr; gap: 0 clamp(28px, 4vw, 56px); margin-top: clamp(30px, 3.5vw, 46px); }
.hdir-toronto { grid-area: tor; }
.hdir-gta { grid-area: gta; }
.hdir h3 { display: flex; align-items: center; gap: 12px; margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; line-height: 1.2; }
.hdir h3 .key-ic { width: 34px; height: 24px; flex: none; }
.hdir ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.hdir li { display: flex; border-bottom: 1px solid var(--line); }
.hdir a { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 11px 26px 11px 0; text-decoration: none; }
.hdir b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.hdir small { margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--denim); font-weight: 500; }
.hdir a .ic { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--signal); transition: transform .15s ease; }
.hdir a:hover b, .hdir a.on b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hdir a:hover .ic, .hdir a.on .ic { transform: translateX(3px); }
.hdir a:focus-visible { outline-offset: -1px; }
.harea-more { grid-area: more; margin: 0; padding-top: 18px; }
.harea-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--signal-dk);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.harea-more .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.harea-more a:hover .ic { transform: translateX(3px); }
@media (max-width: 1180px) {
  .harea-dir { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tor" "gta" "more"; grid-template-rows: none; row-gap: 30px; }
  .hdir ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .harea-more { padding-top: 0; margin-top: -8px; }
}
@media (max-width: 1100px) {
  .harea-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "dir"; }
  .harea-head { max-width: 640px; }
  .harea-map { justify-self: center; width: calc(100% + 2 * var(--gut)); max-width: 920px; margin: 16px calc(-1 * var(--gut)) 0; }
}
@media (max-width: 860px) {
  .harea .area-find-row { flex-direction: row; }
  .harea .area-find-row .btn { width: auto; padding: 0 22px; }
  .harea-dir { row-gap: 26px; margin-top: 20px; }
  .hdir ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .hdir small { display: none; }
  .hdir a { padding: 10px 20px 10px 0; }
  .hdir b { font-size: 15.5px; }
  .hdir a .ic { width: 16px; height: 16px; margin-top: -8px; }
  .hdir h3 { font-size: 14px; }
}
@media (max-width: 599px) {
  .harea-map { overflow: hidden; overflow: clip; }
  .harea .m3d { width: var(--hm-w, 100%); max-width: none; margin-left: var(--hm-x, 0); }
  .harea .m3d .edge { display: none; }
}
@media (max-width: 380px) {
  .hdir a { padding-right: 18px; }
  .hdir b { font-size: 14.5px; }
}

/* ---------- chips (the "every service" links on /areas) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.chips a { display: inline-block; padding: 8px 15px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--paper); }
.chips a:hover { background: var(--ink); color: var(--primer); }

/* ---------- FAQ */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 44px; align-items: start; }
.faq-side p { color: var(--ink); }
.faq-more { font-size: 16px; }
.qa { border-bottom: 2px solid var(--ink); }
.qa:first-child { border-top: 2px solid var(--ink); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font: 700 19px/1.3 var(--font); }
.qa summary::-webkit-details-marker { display: none; }
.qa-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.qa-x .ic { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .2s; }
.qa[open] .qa-x { background: var(--ink); color: var(--primer); }
.qa[open] .qa-x .ic { transform: rotate(45deg); }
.qa div p { margin: 0 0 22px; max-width: 62ch; }

/* ---------- footer */
.ft { position: relative; background: var(--night); color: var(--primer); margin-top: 0; }
.ft-drip { position: absolute; top: -1px; left: 0; width: 100%; height: 58px; fill: var(--paper); }
.ft-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 84px 0 34px; border-bottom: 1px solid rgba(233, 226, 207, .16); }
.ft-contact > * { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; min-width: 0; }
.ft-contact .ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: rgba(233, 226, 207, .1); color: var(--tape); }
.ft-contact small { display: block; font-size: 13px; color: rgba(250, 247, 239, .75); }
.ft-contact b { display: block; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.ft-contact > *:hover b { text-decoration: underline; }
.ft-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 42px 0; }
.ft-main h2 { font-size: 16px; text-transform: none; font-weight: 800; color: var(--primer); margin: 0 0 14px; letter-spacing: 0; }
.ft-main ul { list-style: none; padding: 0; margin: 0; }
.ft-main li { margin: 0 0 9px; }
.ft-main a { color: rgba(250, 247, 239, .9); text-decoration: none; }
.ft-main a:hover { text-decoration: underline; color: #fff; }
.ft-brand img { width: 170px; height: auto; margin-bottom: 16px; }
.ft-brand p { color: rgba(250, 247, 239, .82); max-width: 34ch; }
.ft-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(250, 247, 239, .32); border-radius: var(--r); font-weight: 600; }
.ft-social a:hover { border-color: #fff; text-decoration: none; }
.ft-social .ic { width: 20px; height: 20px; }
.ft-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(233, 226, 207, .16); font-size: 14px; color: rgba(250, 247, 239, .75); }
.ft-legal a { color: inherit; }

/* ---------- inner pages: breadcrumbs and page heroes */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--denim); font-weight: 500; }
.crumbs a { color: var(--ink); font-weight: 600; }
.crumbs > span[aria-hidden] { opacity: .55; }
.crumbs.wrap { padding-top: 18px; padding-bottom: 4px; }
.pg-hero { border-bottom: 2px solid var(--ink); background-image: var(--dots); background-size: 10px 10px; }
.pg-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 22px; padding-bottom: 54px; }
.pg-hero h1 { margin-top: 16px; font-size: clamp(40px, 5vw, 70px); }
.pg-hero .lead { margin-bottom: 0; }
/* Hero photo or illustration: no frame — it fills the right side of the hero, from the top of the hero to its
   bottom rule and out to the edge of the window (on phones: full width under the text). */
.pg-hero, .svc-hero { overflow: hidden; }
.pg-hero-media, .svc-hero-art { position: relative; margin: 0 calc(-1 * var(--bleed)) 0 0; min-height: 440px; border: 0; border-radius: 0;
  box-shadow: none; overflow: hidden; background: var(--paper-2); }
.pg-hero-media img, .svc-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  object-position: 50% var(--lp-pos-d, 50%); }   /* Admin → Page photos: the part of the photo that stays in view (live.js) */
.pg-hero-in:has(> .pg-hero-media), .svc-hero-in:has(> .svc-hero-art) { align-items: stretch; padding-top: 0; padding-bottom: 0; }
.pg-hero-in:has(> .pg-hero-media) > div:first-child, .svc-hero-in:has(> .svc-hero-art) > .svc-hero-copy { align-self: center; padding: 30px 0 56px; }

/* ---------- service pages (one per service; also the area pages) */
.svc-hero { border-bottom: 2px solid var(--ink); background-image: var(--dots); background-size: 10px 10px; }
.svc-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; padding-top: 22px; padding-bottom: 50px; }
.svc-hero-cat { display: inline-block; margin: 0 0 12px; padding: 5px 12px; background: var(--tape); color: var(--ink); font-weight: 700; font-size: 14px; transform: rotate(-1.5deg); }
.svc-hero-cat:empty { display: none; }
.svc-hero h1 { font-size: clamp(36px, 4.6vw, 64px); }
.svc-hero .lead { margin-bottom: 0; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; padding-top: 56px; padding-bottom: 40px; }
.svc-main { min-width: 0; max-width: 760px; }
.svc-main h2 { font-size: clamp(25px, 2.5vw, 32px); margin: 46px 0 16px; scroll-margin-top: 80px; }
.svc-intro p { font-size: 18px; line-height: 1.7; }
.svc-intro p, .svc-secs p { max-width: 66ch; }
.svc-secs p { line-height: 1.72; }
.svc-main a { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.checks .ic { color: var(--signal); margin-top: 1px; stroke-width: 2.4; }
.steps-v { list-style: none; margin: 0; padding: 0; counter-reset: stv; }
.steps-v li { position: relative; padding: 0 0 22px 64px; counter-increment: stv; }
.steps-v li::before { content: counter(stv); position: absolute; left: 0; top: 0; width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%;
  background: var(--ink); color: var(--primer); font-weight: 800; font-size: 18px; }
.steps-v li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; border-left: 2px dashed var(--signal); }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:last-child::after { display: none; }
.steps-v b { display: block; font-size: 18px; line-height: 1.25; padding-top: 9px; margin-bottom: 4px; }
.steps-v p { margin: 0; }
.cost { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.cost > div { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.cost > div:nth-child(even) { padding: 16px 0 16px 18px; }
.cost dt { font-weight: 700; margin-bottom: 4px; }
.cost dd { margin: 0; font-size: 16px; }
.cost-note { margin: 16px 0 0; font-size: 16px; color: var(--denim); font-weight: 500; }
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gal figure { margin: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.qbox-side { margin: 0; box-shadow: 6px 6px 0 var(--night); }
.qbox-side .qbox-t { font-size: 24px; }
.side-help { display: grid; gap: 10px; padding: 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); }
.side-help p { margin: 0; font-weight: 700; }
.side-help .btn { width: 100%; }
.side-tel { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.side-tel .ic { color: var(--signal); }
.side-tel:hover span { text-decoration: underline; }
.rel { background: var(--primer); border-top: 2px solid var(--ink); }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rel-grid .svc-card { min-height: 0; }

/* ---------- services overview */
.sgroups { padding-top: 26px; padding-bottom: 56px; }
.sg { padding-top: 36px; }
.sg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.sg-head h2 { margin: 0; }
.sg-head p { margin: 0; color: var(--denim); font-weight: 500; }
.sg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-grid .svc-card { min-height: 0; }

/* ---------- shared inner-page blocks */
.pg-hero--plain .pg-hero-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
.pg-hero--plain .pg-hero-in > div { max-width: 820px; }
.art-meta { font-size: 15px; color: var(--denim); font-weight: 500; margin: 16px 0 0; }
.cta { background: var(--signal); color: #fff; background-image: var(--dots-lt); background-size: 11px 11px; }
.cta-in { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta-mascot { width: 150px; transform: rotate(-6deg); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; }
.cta .btn-signal { background: var(--ink); box-shadow: 0 3px 0 var(--night); }
.cta .btn-signal:hover { background: var(--night); }
.cta .btn-line { border-color: #fff; color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--signal-dk); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.two-col p { max-width: 60ch; }
.trust-sec { background: var(--primer); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tf { display: grid; gap: 12px; align-content: start; justify-items: start; }
.tf-ic { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--signal); }
.tf-ic .ic { width: 30px; height: 30px; }
.tf h3 { margin: 0 0 6px; }
.tf p { margin: 0; font-size: 16px; }
.side-box { padding: 22px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); }
.side-box h2 { font-size: 22px; margin-bottom: 14px; }
.side-box p:last-child { margin-bottom: 0; }
.narrow-box { max-width: 720px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.form-msg { min-height: 1.5em; font-weight: 600; }
.f-help { font-size: 15px; color: var(--denim); }

/* ---------- articles */
.prose { min-width: 0; max-width: 720px; }
.prose h2 { font-size: clamp(25px, 2.5vw, 32px); margin: 46px 0 16px; scroll-margin-top: 80px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { line-height: 1.72; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.prose--narrow { margin: 0 auto; }
.callout { padding: 16px 20px; background: var(--primer); border-left: 4px solid var(--signal); font-weight: 500; }
.toc { padding: 18px 22px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); margin-bottom: 30px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; line-height: 1.4; }
.toc a { font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 50px; }
.art-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.art-side .qbox { margin: 0; box-shadow: 6px 6px 0 var(--night); padding: 22px; }
.art-side .qbox-t { font-size: 22px; }
.side-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-svcs a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r); text-decoration: none; }
.side-svcs a:hover { background: var(--paper); }
.side-svcs b { display: block; line-height: 1.25; }
.side-svcs small { display: block; color: var(--denim); font-size: 14px; }
.art-wrap { max-width: 820px; }
.art-cover img { width: 100%; border-radius: var(--r); border: 2px solid var(--ink); margin-bottom: 30px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat-chips button { border: 2px solid var(--ink); background: var(--primer); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 15px; cursor: pointer; }
.cat-chips button.on, .cat-chips button:hover { background: var(--ink); color: var(--primer); }
.post-art img { width: 100%; height: 100%; object-fit: cover; }
.post-art { overflow: hidden; border: 2px solid var(--ink); background-color: var(--paper-2); background-image: none; }
.post-grid--all { row-gap: 40px; }
.blog-sec { padding-top: 40px; }

/* ---------- areas: the hub's hero and finder, and the area pages' text (the map, district cards and region lists are in areas.css) */
.sec-lead { max-width: 62ch; margin: -14px 0 26px; color: var(--denim); font-weight: 500; }

.area-hub-hero .pg-hero-in { align-items: center; }
.area-hub-stamp { padding: 0; justify-content: center; }
.area-hub-stamp .stamp { width: 210px; height: 210px; transform: rotate(-8deg); }
.area-find { margin-top: 26px; max-width: 560px; }
.area-find label { display: block; font-weight: 700; margin-bottom: 8px; }
.area-find-row { display: flex; gap: 8px; }
.area-find input { flex: 1; min-width: 0; min-height: 52px; border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 14px; background: #fff; font-size: 17px; }
.area-find input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(207, 67, 27, .2); }
.area-find-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--signal-dk); }

.area-more { padding-top: 6px; }
.area-more h2 { font-size: clamp(24px, 2.4vw, 30px); }
.area-main h2 { font-size: clamp(25px, 2.5vw, 32px); margin: 46px 0 16px; }
.hood-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hood-list li { padding: 7px 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--primer); font-weight: 600; font-size: 15px; }
.tips { margin: 0; padding: 0 0 0 22px; }
.tips li { margin-bottom: 10px; line-height: 1.6; }
.tips li::marker { color: var(--signal); }
.near-box h2 { margin-bottom: 10px; }
.near-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.near-list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.near-list a:hover span { text-decoration: underline; }
.near-list .ic { width: 18px; height: 18px; color: var(--signal); }
.ft-areas { columns: 2; column-gap: 18px; }
.ft-areas li { break-inside: avoid; }
.faq-svcs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.faq-svcs a { font-weight: 600; }

/* ---------- free-estimate form (/contact): one card in three short numbered steps, a calm sidebar.
   Every answer looks like a field (52 px, 2 px ink edge, primer fill, the signal focus ring). "What needs painting?" is a
   dropdown of checkboxes: it floats over the form on desktop and opens in the page flow on touch screens and phones. */
.est-sec { padding-top: clamp(30px, 4vw, 52px); }
.est-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; align-items: start; }
.est-card { container: est / inline-size; position: relative; min-width: 0; background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--ink); }
.est { --fph: #5F6886; padding: 30px 40px 34px; }
.est-intro { margin: 0 0 22px; font-size: 15px; color: var(--denim); }
.req { color: var(--signal-dk); font-weight: 800; }

/* steps: numbered on a rail, joined by the dashed signal line of the site's process steps */
.est-step { position: relative; padding-left: 58px; }
.est-step + .est-step { margin-top: 34px; }
.est-step:not(:last-of-type)::before { content: ""; position: absolute; left: 19px; top: 50px; bottom: -26px; border-left: 2px dashed var(--signal); }
.est-n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--primer); font: 800 18px/1 var(--font); }
.est-step-h { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 14px; }
.est-step-h h2 { margin: 0; font-size: clamp(22px, 2vw, 26px); line-height: 1.05; }

/* step 1: "What needs painting?" — the button shows the choice; the panel holds a checkbox row per service, grouped by
   category (written by the service renderer: .ms-g > .ms-gh + .ms-items > label.ms-o); the choices repeat as chips */
.ms-box { position: relative; }
.ms-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 0 14px; text-align: left; cursor: pointer;
  color: var(--ink); background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); font-size: 16px; line-height: 1.3;
  transition: background-color .12s, box-shadow .12s; }
.ms-val { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.ms-btn.is-empty .ms-val { color: var(--fph); font-weight: 400; }
.ms-btn .ic { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .15s; }
.ms-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.ms-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--primer), 0 0 0 6px var(--signal); }
.ms-btn.is-invalid { border-color: var(--signal-dk); background-color: #FFF6F1; }
.ms-panel { margin-top: 6px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); }
.ms-panel:focus { outline: 0; }
.ms-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.ms-list { padding: 4px 0 6px; }
.ms-gh { margin: 0; padding: 10px 14px 4px; font-size: 12.5px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--denim); }
.ms-btn, .ms-o, .ms-chip, .ms-done { -webkit-tap-highlight-color: transparent; }
.ms-o { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 14px; cursor: pointer; line-height: 1.25; transition: background-color .1s; }
.ms-o input { margin: 0; }
.ms-ic { flex: none; display: grid; color: var(--denim); }
.ms-ic .ic { width: 20px; height: 20px; }
.ms-n { min-width: 0; font-size: 16px; font-weight: 500; }
.ms-o:active { background: var(--primer); }
/* chosen: the filled box, a tinted row and the icon in ink (not a bolder name: it would grow and could wrap) */
.ms-o:has(input:checked) { background: #F7F3EA; }
.ms-o:has(input:checked) .ms-ic { color: var(--ink); }
.ms-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }   /* two columns only where both fit */
.ms-o input[aria-invalid="true"] { border-color: var(--ink); box-shadow: none; }
@supports selector(:has(*)) {
  .ms-o input:focus-visible { outline: 0; }
  .ms-o:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: -3px; }
}
.ms-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; background: #fff;
  border-top: 1px solid var(--line); border-radius: 0 0 2px 2px; }
.ms-count { font-size: 14.5px; color: var(--denim); }
.ms-done { min-height: 44px; padding: 0 24px; color: var(--primer); background: var(--ink); border: 0; border-radius: var(--r); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.ms-done:hover { background: var(--night); }
.ms-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 8px; margin: 10px 0 0; padding: 0; }
.ms-chips li { min-width: 0; max-width: 100%; }
.ms-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 2px 9px 2px 13px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; }
.ms-chip::before { content: ""; position: absolute; inset: -6px 0; }        /* a 44 px tall target */
.ms-chip span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-chip .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.ms-chip:active { color: var(--primer); background: var(--ink); }
@media (hover: hover) {
  .ms-o:hover { background: var(--primer); }
  .ms-chip:hover { color: var(--primer); background: var(--ink); }
  .est :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea, .ms-btn):hover { background-color: #fff; }
}
@media (forced-colors: active) {
  .ms-o:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* fields: label above, 52 px, primer fill with the ink edge; two columns where the card is wide enough */
.fld { min-width: 0; margin-top: 16px; }
.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.fld-grid > .fld, .est-step-h + .fld, .est-step-h + .fld-grid { margin-top: 0; }
.fld > label:not(.pp-add), .fld-top > label { display: block; padding: 0; margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.fld-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.fld-top > label { margin: 0; }
.est :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea) { display: block; width: 100%; min-height: 52px; margin: 0;
  padding: 12px 14px; color: var(--ink); background-color: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); font-size: 16px; line-height: 1.4;
  transition: border-color .12s, box-shadow .12s, background-color .12s; }
.est textarea { min-height: 0; resize: vertical; }
.est select { height: 52px; padding-top: 0; padding-bottom: 0; padding-right: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326314F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.est select:has(option[value=""]:checked) { color: var(--fph); }        /* "Choose …" reads like a placeholder */
.est select option { color: var(--ink); }
.est ::placeholder { color: var(--fph); opacity: 1; }
.est :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea):focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--primer), 0 0 0 6px var(--signal); }
.est :is(input[type="text"], input[type="tel"], input[type="email"], textarea)[aria-invalid="true"] { border-color: var(--signal-dk); background-color: #FFF6F1; }
.fld-count { margin: 0; font-size: 13.5px; color: var(--denim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fld-count.is-near { color: var(--signal-dk); font-weight: 700; }
.fld-err { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--signal-dk); }
.fld-err:empty { display: none; }
.fld-err::before { content: "!"; content: "!" / ""; flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--signal-dk); color: #fff;
  font-size: 12.5px; font-weight: 800; line-height: 1; }

/* photos: one dashed row ("Add photos (optional, up to 6)", "or drop them here" where there is a mouse), the thumbnails
   under it; the whole block takes dropped files */
.pp-add { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; color: var(--ink); background: transparent;
  border: 2px dashed var(--denim); border-radius: var(--r); font-size: 15.5px; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .12s, border-color .12s; }
.pp-add .ic { width: 22px; height: 22px; }
.pp-t { flex: 1; min-width: 0; }
.pp-t b { font-weight: 700; }
.pp-c, .pp-drag { color: var(--denim); }
.pp-drag { flex: none; font-size: 14.5px; }
.pp-add:has(.pp-input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.pp-add:active, .fld-photos.is-over .pp-add { border-style: solid; border-color: var(--ink); background: #fff; }
.fld-photos.is-over .pp-add { background: #E9F1F9; box-shadow: 0 0 0 4px rgba(143, 184, 224, .45); }
.is-full .pp-add { cursor: not-allowed; opacity: .6; border-style: dashed; border-color: var(--denim); background: transparent; }
.is-full .pp-drag, .is-busy .pp-drag { display: none; }
@media (hover: none), (pointer: coarse) { .pp-drag { display: none; } }
.pp-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.pp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 96px)); gap: 10px; }
.pp-list li { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.pp-list img { width: 100%; height: 100%; object-fit: cover; }
.pp-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--primer); background: var(--ink);
  border: 2px solid var(--primer); border-radius: 50%; cursor: pointer; }
.pp-x .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.pp-x:hover { background: var(--signal-dk); }
.pp-list .pp-busy { display: grid; place-items: center; background: #fff; border: 2px dashed var(--denim); }
.pp-spin, .est-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(38, 49, 79, .2); border-top-color: var(--ink); animation: est-spin .8s linear infinite; }
@keyframes est-spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .pp-add:hover { border-color: var(--ink); background: #fff; }
  .is-full .pp-add:hover { border-color: var(--denim); background: transparent; }
}

/* step 3: contact, consent, send */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-agree { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; }
.fld-chk .fld-err { margin-left: 34px; }
.est-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; }
.est-send { min-height: 56px; padding: 0 30px; font-size: 17px; }
.est-send .est-spin { display: none; width: 20px; height: 20px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.est-send.is-busy { cursor: progress; background: var(--signal-dk); }
.est-send.is-busy .est-spin { display: block; }
.est-go p { margin: 0; font-size: 15px; font-weight: 500; color: var(--denim); }
.est-err { margin: 16px 0 0; padding: 14px 16px; color: var(--ink); background: #FFF4EE; border-left: 6px solid var(--signal-dk); border-radius: var(--r); font-weight: 600; }
.est-privacy { margin: 14px 0 0; font-size: 14.5px; color: var(--denim); }
.est-privacy a { color: var(--ink); }
.est-sum { margin: 0 0 26px; padding: 16px 20px 16px 18px; background: #FFF4EE; border: 2px solid var(--signal-dk); border-left-width: 8px; border-radius: var(--r); }
.est-sum h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.est-sum ul { margin: 0; padding-left: 20px; }
.est-sum li { margin: 4px 0; }
.est-sum a { color: var(--signal-dk); font-weight: 600; }
.recaptcha-note { font-size: 13px; color: var(--denim); margin: 4px 0 0; }
.est > .recaptcha-note { margin-top: 14px; padding-left: 58px; }
.rc-on .grecaptcha-badge { visibility: hidden; }

/* sent */
.est-done { padding: 44px 44px 40px; }
.est-done-ic { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--ink); color: var(--primer); }
.est-done-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.est-done h2 { max-width: 13em; margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 46px); }
.est-done h2:focus { outline: 0; }
.est-done-lead { max-width: 34em; font-size: 18px; }
.est-ref { display: grid; justify-items: start; gap: 6px; margin: 26px 0 34px; }
.est-ref span { font-size: 15px; font-weight: 600; }
.est-ref b { padding: 8px 18px 7px; background: var(--tape); color: var(--ink); font-size: 30px; font-weight: 850; letter-spacing: .03em; transform: rotate(-1.5deg);
  clip-path: polygon(0 12%, 3% 0, 97% 5%, 100% 18%, 98% 36%, 100% 55%, 97% 74%, 100% 90%, 96% 100%, 4% 95%, 0 84%, 2% 64%, 0 44%, 2% 26%); }
.est-ref small { font-size: 14.5px; color: var(--denim); }
.est-done h3 { margin: 0 0 14px; font-size: 19px; font-weight: 800; text-transform: uppercase; }
.est-done-steps { list-style: none; margin: 0; padding: 0; counter-reset: dn; display: grid; gap: 14px; max-width: 40em; }
.est-done-steps li { position: relative; padding-left: 46px; counter-increment: dn; }
.est-done-steps li::before { content: counter(dn); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--primer);
  font: 800 15px/32px var(--font); text-align: center; }
.est-done-steps b { display: block; padding-top: 4px; line-height: 1.3; }
.est-done-steps p { margin: 2px 0 0; font-size: 16px; color: var(--denim); }
.est-done-call { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.est-done-call p { margin: 0; font-weight: 600; }

/* sidebar: quieter than the form; sticky on desktop screens tall enough to show all of it */
.est-side { display: grid; gap: 26px; }
@media (min-width: 1101px) and (min-height: 760px) { .est-side { position: sticky; top: 80px; } }
.est-side h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: .01em; }
.est-talk { padding: 18px 18px 6px; background: var(--primer); border: 1px solid var(--line); border-radius: var(--r); }
.est-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; color: inherit; text-align: left; text-decoration: none; background: none;
  border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.est-talk h2 + .est-line { border-top: 0; padding-top: 4px; }
.est-line .ic { width: 36px; height: 36px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 50%; }
.est-line small { display: block; font-size: 13px; line-height: 1.2; color: var(--denim); }
.est-line b { display: block; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.est-line[href^="tel:"] b { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.est-line:hover b { text-decoration: underline; text-underline-offset: 3px; }
.est-next-list { list-style: none; margin: 0; padding: 0; counter-reset: nx; }
.est-next-list li { position: relative; padding: 0 0 14px 38px; counter-increment: nx; }
.est-next-list li:last-child { padding-bottom: 0; }
.est-next-list li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 1.5px solid var(--denim); border-radius: 50%;
  color: var(--denim); font: 700 13.5px/23px var(--font); text-align: center; }
.est-next-list li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 31px; bottom: 5px; border-left: 1.5px solid var(--line); }
.est-next-list b { display: block; padding-top: 2px; font-size: 15.5px; line-height: 1.35; }
.est-next-list p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--denim); }
.is-sent .est-next { display: none; }           /* the thank-you panel has its own next steps */
.est-where p { margin: 0; font-size: 15px; line-height: 1.5; }
.est-where a { font-weight: 600; }
.est-trust { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.est-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.est-trust .ic { width: 22px; height: 22px; color: var(--signal); }

/* the services panel: on desktop (a mouse and a wide card) it floats under the button, with its own scroll if the window
   is short; elsewhere it opens in the page flow, its "Done" bar kept in view above the phone bar */
@media (hover: hover) and (pointer: fine) {
  @container est (min-width: 621px) {
    .ms-panel { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; display: flex; flex-direction: column;
      max-height: min(640px, calc(100vh - 170px)); box-shadow: 5px 5px 0 rgba(38, 49, 79, .2); }
    .ms-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  }
}
@container est (max-width: 389px) {            /* small phones: the longest names still fit on one line */
  .ms-o { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .ms-n { font-size: 15px; }
}
.ms-foot { position: sticky; bottom: 0; z-index: 1; }
@media (max-width: 860px) {
  .ms-foot { bottom: calc(66px + env(safe-area-inset-bottom)); }
  html.est-ms-open .chat-fab { visibility: hidden; }      /* the chat button would sit on "Done" */
}

/* narrower card (tablets, phones): no rail, numbers beside the headings, fields in one column */
@container est (max-width: 760px) {
  .est { padding: 26px 28px 30px; }
  .est-done { padding: 34px 30px; }
}
@container est (max-width: 620px) {
  .est { padding: 20px 16px 24px; }
  .est-intro { margin-bottom: 16px; }
  .est-step { padding-left: 0; }
  .est-step::before { display: none; }
  .est-step + .est-step { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }
  .est-step-h { min-height: 0; margin-bottom: 12px; }
  .est-n { position: static; flex: none; width: 34px; height: 34px; font-size: 16px; }
  .est-step-h h2 { font-size: min(22px, 5.6cqi); }
  .fld-grid { grid-template-columns: minmax(0, 1fr); }
  .est > .recaptcha-note { padding-left: 0; }
  .est-done { padding: 28px 18px 30px; }
}
@media (max-width: 1100px) {                   /* the form gets the full width; the sidebar moves under it */
  .est-sec .est-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .est-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; align-items: start; }
  .est-where, .est-trust { grid-column: 1 / -1; }
  .est-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .est-side { grid-template-columns: minmax(0, 1fr); }
  .est-trust { grid-template-columns: minmax(0, 1fr); }
  .est-send { width: 100%; }
  .est-go p { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .est-card { margin: 0 calc(-1 * var(--gut)); border-width: 2px 0; border-radius: 0; box-shadow: none; }
}
@media (hover: none) {
  .pp-drag { display: none; }
}

/* ---------- projects: cards (/projects, "More projects") and each project's own page (/projects/<address>).
   The cards and pages are written from the database (lib/mw-showcase.js). A card shows the "after" photo with the
   "before" photo taped on top of it; tags are painter's tape (before) and signal orange (after). */
.proj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 24px; }
.proj-grid:empty { display: none; }
.proj-grid > .proj { grid-column: span 2; }
.proj { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); }
.proj-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-bottom: 2px solid var(--ink); border-radius: 2px 2px 0 0; }
.proj-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 11px 4px; background: var(--tape); color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.2;
  transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(29, 37, 61, .25); pointer-events: none; }
.proj-tag-a { background: var(--signal); color: #fff; transform: rotate(1.5deg); }
.proj-inset { position: absolute; left: 14px; bottom: 16px; z-index: 1; width: 40%; aspect-ratio: 4 / 3; background: var(--paper-2); border: 4px solid var(--primer);
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2.5deg); }
.proj-inset img { width: 100%; height: 100%; object-fit: cover; }
.proj-inset .proj-tag { left: 50%; top: -13px; padding: 3px 10px 2px; font-size: 13px; transform: translateX(-50%) rotate(3deg); }
.proj-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px;
  background: var(--ink); color: var(--primer); border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.proj-count .ic { width: 16px; height: 16px; }
.proj-tx { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--denim); }
.proj-meta span { display: inline-flex; align-items: center; gap: 5px; }
.proj-meta .ic { width: 16px; height: 16px; color: var(--signal); }
.proj h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.proj h3 a { text-decoration: none; }
.proj h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.proj-sum { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-svcs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.proj-svcs li { padding: 3px 11px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.proj-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.proj-acts .btn { flex: 1 1 auto; max-width: 250px; }
.proj-acts .btn .ic { width: 18px; height: 18px; }
/* rows always come out full: with one card left over, the first card takes the whole row (photo beside the text);
   with two left over, the first two share a row. While a service filter is on, every card is the same size. */
@media (min-width: 1021px) {
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+2)) > .proj:nth-child(-n+2) { grid-column: span 3; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) { grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); box-shadow: 8px 8px 0 var(--ink); }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-media { aspect-ratio: auto; min-height: 400px;
    border-bottom: 0; border-right: 2px solid var(--ink); border-radius: 2px 0 0 2px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-tx { justify-content: center; padding: 34px 36px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) h3 { margin-bottom: 14px;
    font-size: clamp(30px, 2.7vw, 40px); font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-sum { -webkit-line-clamp: 6; font-size: 17px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-acts { margin-top: 6px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-acts .btn { flex: 0 1 auto; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(3n+1)) > .proj:first-child:not(.proj--nophoto) .proj-inset { width: 34%; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  .proj-grid > .proj { grid-column: auto; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(odd)) > .proj:first-child:not(.proj--nophoto) { grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); box-shadow: 6px 6px 0 var(--ink); }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(odd)) > .proj:first-child:not(.proj--nophoto) .proj-media { aspect-ratio: auto; min-height: 340px;
    border-bottom: 0; border-right: 2px solid var(--ink); border-radius: 2px 0 0 2px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(odd)) > .proj:first-child:not(.proj--nophoto) .proj-tx { justify-content: center; padding: 26px 26px; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(odd)) > .proj:first-child:not(.proj--nophoto) h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; line-height: 1; }
  .proj-grid--fill:not(.is-filtered):has(> .proj:last-child:nth-child(odd)) > .proj:first-child:not(.proj--nophoto) .proj-acts { margin-top: 6px; }
}
@media (max-width: 860px) {
  .proj-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .proj-grid > .proj { grid-column: auto; }
  .proj h3 { font-size: 21px; }
}

/* one project's page */
.pj-page[aria-busy="true"] .pj-hero-in { min-height: 380px; }
.pj-wait-t { margin: 40px 0 0; font-size: 18px; font-weight: 600; color: var(--denim); }
.pj-hero { border-bottom: 2px solid var(--ink); background-image: var(--dots); background-size: 10px 10px; }
.pj-hero .crumbs { padding-top: 18px; }
.pj-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". shot" "head shot" "more shot" ". shot"; column-gap: 52px; padding: 26px 0 64px; }
.pj-hero-head { grid-area: head; }
.pj-hero-more { grid-area: more; }
.pj-shot { grid-area: shot; align-self: center; min-width: 0; }
.pj-hero-in.pj-hero--plain { grid-template-columns: minmax(0, 860px); grid-template-rows: auto; grid-template-areas: "head" "more"; }
.pj-hero h1 { margin: 0 0 20px; font-size: clamp(38px, 4.5vw, 64px); overflow-wrap: break-word; }
.pj-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.pj-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; background: var(--primer); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.3; }
.pj-chips .ic { width: 18px; height: 18px; color: var(--signal); }
.pj-hero .lead { margin: 0; }
.pj-hero .hero-cta { margin-top: 26px; }
.pj-frame { position: relative; overflow: hidden; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); }
.pj-cover { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.pj-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-shot-note { margin: 16px 0 0; font-size: 14.5px; font-weight: 500; color: var(--denim); }
/* before / after: the before photo is cut at the line (--ba, set by assets/js/projects.js); drag anywhere, or use the
   arrow keys on the hidden range input (it keeps the keyboard and screen reader access) */
.ba { --ba: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-b { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba); z-index: 3; width: 4px; margin-left: -2px; background: var(--primer); box-shadow: 0 0 0 1px rgba(38, 49, 79, .3); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; transform: translate(-50%, -50%);
  background: var(--signal); color: #fff; border: 3px solid var(--primer); border-radius: 50%; box-shadow: 0 3px 0 var(--signal-dk); }
.ba-knob .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.ba-knob .ic:first-child { transform: scaleX(-1); margin-right: -1px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--tape); outline-offset: 3px; }
.ba .proj-tag { top: 14px; }
.ba-tag-b { left: 14px; }
.ba-tag-a { left: auto; right: 14px; }
.pj-body-in { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 60px; align-items: start; }
.pj-body-in.pj-body--short { grid-template-columns: minmax(0, 1fr); }
.pj-body--short .pj-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.pj-story > h2:first-child { margin-top: 0; }
.pj-story .pj-did { margin: 4px 0 0; padding: 0; }
.pj-story .pj-did li { margin: 0; line-height: 1.5; }
.pj-side { display: grid; gap: 22px; }
.pj-facts { padding: 22px 24px 12px; background: var(--primer); border: 2px solid var(--ink); border-radius: var(--r); }
.pj-facts h2 { margin: 0 0 10px; font-size: 22px; }
.pj-facts dl { margin: 0; }
.pj-facts dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.pj-facts dt { font-size: 14.5px; font-weight: 700; color: var(--denim); }
.pj-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.pj-facts dd a { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.pj-ask { padding: 24px; background: var(--ink); color: var(--primer); border-radius: var(--r); box-shadow: 6px 6px 0 var(--signal); }
.pj-ask p { font-size: 15.5px; line-height: 1.55; }
.pj-ask .pj-ask-t { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.pj-ask .btn { width: 100%; }
.pj-ask :focus-visible { outline-color: var(--tape); }
.pj-gal-sec { background: var(--primer); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.pj-gal { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.pj-gal > li { flex: 1 1 300px; min-width: 0; }
.pj-g { position: relative; display: block; width: 100%; height: clamp(220px, 22vw, 300px); padding: 0; overflow: hidden; background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--r); }
/* over project photos (cards and a project's photos) the pointer is the mascot as a sticker (tools/brand_cursor.py; 64 px,
   128 px on sharp screens). Browsers that cannot show it use the hand. */
.pj-g, .proj-media { cursor: url("/assets/img/brand/cursor-mascot-64.png") 32 32, pointer;
  cursor: -webkit-image-set(url("/assets/img/brand/cursor-mascot-64.png") 1x, url("/assets/img/brand/cursor-mascot-128.png") 2x) 32 32, pointer;
  cursor: image-set(url("/assets/img/brand/cursor-mascot-64.png") 1x, url("/assets/img/brand/cursor-mascot-128.png") 2x) 32 32, pointer; }
.pj-g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-more + .cta { border-top: 0; }
@media (min-width: 1021px) {
  .pj-side { position: sticky; top: 96px; }
}
@media (max-width: 1020px) {
  .pj-hero-in, .pj-hero-in.pj-hero--plain { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "shot" "more"; row-gap: 0;
    padding-bottom: 48px; }
  .pj-hero-in.pj-hero--plain { grid-template-areas: "head" "more"; }
  .pj-shot { max-width: 760px; margin: 6px 0 26px; }
  .pj-body-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pj-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 860px) {
  .pj-hero-in { padding: 18px 0 40px; }
  .pj-hero h1 { margin-bottom: 16px; }
  .pj-frame { box-shadow: 6px 6px 0 var(--ink); }
  .pj-chips { gap: 6px; }
  .pj-chips li { gap: 6px; padding: 5px 11px 5px 9px; font-size: 13.5px; }
  .pj-chips .ic { width: 16px; height: 16px; }
  .pj-side, .pj-body--short .pj-side { grid-template-columns: minmax(0, 1fr); }
  .pj-gal { gap: 10px; }
  .pj-gal > li { flex-basis: 140px; }
  .pj-g { height: 150px; }
  .pj-hero .hero-cta .btn { flex: 1 1 auto; }
  .ba-knob { width: 46px; height: 46px; }
}

/* the photos of a project, full screen (assets/js/projects.js; a native <dialog>: Esc closes it, focus stays inside) */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(29, 37, 61, .97); color: var(--primer); }
.lb::backdrop { background: rgba(29, 37, 61, .6); }
.lb-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 68px 84px 28px; }
.lb-fig { display: grid; justify-items: center; gap: 14px; max-width: 100%; margin: 0; touch-action: pan-y; }
.lb-fig img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain;
  background: var(--night); border: 2px solid var(--primer); border-radius: var(--r); }
.lb-fig figcaption { display: flex; justify-content: space-between; gap: 18px; width: 100%; max-width: 900px; font-size: 15.5px; line-height: 1.45; }
.lb-n { flex: none; font-weight: 700; color: var(--tape); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; color: var(--primer); background: rgba(29, 37, 61, .55);
  border: 2px solid var(--primer); border-radius: 50%; cursor: pointer; }
.lb-btn:hover { background: var(--primer); color: var(--ink); }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev .ic { transform: scaleX(-1); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-x { right: 16px; top: 14px; }
.lb-btn[hidden] { display: none; }
.lb :focus-visible { outline-color: var(--tape); }
html:has(.lb[open]) { overflow: hidden; }
@media (max-width: 860px) {
  .lb-in { padding: 70px 12px 96px; }
  .lb-fig img { max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); }
  .lb-prev, .lb-next { top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 66px); }
  .lb-next { right: calc(50% - 66px); }
  .lb-x { right: 12px; top: 12px; }
}
/* /projects: kinds of work (photo tiles), what every job includes */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 236px; gap: 14px; }
.wk { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); color: var(--ink); text-decoration: none; }
.wk:first-child { grid-column: span 2; grid-row: span 2; }
.wk img { width: 100%; height: 100%; object-fit: cover; }
.wk-tx { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 380px; padding: 12px 15px 13px; background: var(--primer); border-radius: var(--r); }
.wk-tx b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.wk-tx small { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--denim); }
.wk:hover .wk-tx b, .wk:focus-visible .wk-tx b { text-decoration: underline; text-underline-offset: 3px; }
.work-note { margin: 18px 0 0; font-size: 15px; color: var(--denim); }
.incl-sec { background: var(--primer); }
.incl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 28px; }
.incl-grid li { padding-top: 18px; border-top: 2px solid var(--ink); }
.incl-grid .ic { width: 30px; height: 30px; margin-bottom: 14px; color: var(--signal); }
.incl-grid b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.incl-grid p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.rv-sec { background: var(--primer); }

/* ---------- reviews (filled from the database by the server) */
.rv-sec[hidden] { display: none; }
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rv { margin: 0; padding: 22px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); display: grid; gap: 10px; align-content: start; }
.rv-stars { display: flex; gap: 2px; color: var(--signal); }
.rv-stars .ic { width: 18px; height: 18px; fill: currentColor; }
.rv blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.rv figcaption { font-weight: 700; font-size: 15px; }
.rv figcaption small { display: block; font-weight: 500; color: var(--denim); }

/* ---------- customer quote page */
.quote-sec { padding-top: 36px; }
.quote-wrap { max-width: 920px; }
.q-state { padding: 26px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); }
.q-doc { border: 2px solid var(--ink); border-radius: var(--r); background: #fff; padding: clamp(20px, 4vw, 44px); box-shadow: 8px 8px 0 var(--ink); }
.q-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.q-top img { width: 120px; }
.q-co { text-align: right; font-size: 15px; line-height: 1.5; }
.q-co b { font-size: 18px; }
.q-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.q-meta small { display: block; color: var(--denim); font-size: 13px; font-weight: 600; }
.q-meta b { display: block; }
.q-doc h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 22px 0 6px; }
.q-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.q-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--denim); border-bottom: 2px solid var(--ink); padding: 8px 6px; }
.q-table td { border-bottom: 1px solid var(--line); padding: 10px 6px; vertical-align: top; }
.q-table td.num, .q-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-table tr.q-area td { font-weight: 800; background: var(--paper); border-bottom: 0; padding-top: 12px; }
.q-table small { display: block; color: var(--denim); }
.q-tot { margin-left: auto; width: min(360px, 100%); display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.q-tot div { display: flex; justify-content: space-between; gap: 16px; }
.q-tot .q-grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 20px; font-weight: 850; }
.q-notes { margin-top: 24px; display: grid; gap: 14px; }
.q-notes h2 { font-size: 20px; margin-bottom: 6px; }
.q-notes p { white-space: pre-line; margin: 0; }
.q-act { margin-top: 28px; padding: 22px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--primer); }
.q-act h2 { font-size: 24px; }
.q-act label { display: block; margin: 12px 0; }
.q-act input[type=text] { width: 100%; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 14px; font-size: 16px; }
.q-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--paper); border: 2px solid var(--ink); }
.q-badge.ok { background: #1d6b3a; color: #fff; border-color: #1d6b3a; }
@media print {
  .hd, .nb, .usp, .ft, .mbar, .chat-fab, .chat, .q-act, .skip { display: none !important; }
  body { background: #fff; padding: 0; }
  .q-doc { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- mobile bar, chat */
.mbar { display: none; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; background: var(--ink); color: var(--primer);
  border: 0; border-radius: 999px; box-shadow: 0 10px 26px rgba(29, 37, 61, .32); font: 700 15px var(--font); cursor: pointer; }
.chat-fab img { width: 48px; height: 48px; border-radius: 50%; }
.chat-fab:hover { background: var(--night); }
.chat { position: fixed; right: 20px; bottom: 92px; z-index: 70; width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: var(--primer); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--primer); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { display: block; font-size: 13px; color: rgba(250, 247, 239, .8); }
.chat-head button { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.bot { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.me { background: var(--ink); color: var(--primer); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg a { font-weight: 700; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 2px solid var(--ink); background: var(--primer); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.quick button:hover { background: var(--ink); color: var(--primer); }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-foot textarea { flex: 1; resize: none; border: 2px solid var(--ink); border-radius: 6px; padding: 10px 12px; font-size: 15px; max-height: 120px; background: #fff; }
.chat-foot button { width: 48px; flex: none; display: grid; place-items: center; background: var(--signal); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.chat-note { font-size: 12px; color: var(--denim); padding: 0 12px 10px; margin: 0; }

/* ---------- menu drawer (phones and tablets, ≤1020px; never on desktop). Opened from the header's menu button by site.js:
   the panel slides in from the left over a dimmed page. The long menu is on top (Services accordion, then the pages);
   a dark contact block with a paint-drip edge sits at the bottom. On every opening the rows come in one after another
   and the contact block rises after them — one sequence, nothing loops. Reduced motion: no movement at all. */
.dw { display: none; }
@media (max-width: 1020px) {
  html.dw-lock { scrollbar-gutter: stable; scroll-padding-top: 0; }   /* focus inside the fixed drawer must never scroll the page */
  html.dw-lock body { overflow: hidden; }          /* body's overflow goes to the viewport, so the sticky header stays put */
  html.dw-lock .mbar, html.dw-lock .chat-fab { visibility: hidden; }
  .dw { display: block; position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; transition: visibility 0s linear .24s; }
  .dw.is-open { visibility: visible; pointer-events: auto; transition: none; }
  .dw-backdrop { position: absolute; inset: 0; background: rgba(29, 37, 61, .62); opacity: 0; transition: opacity .22s ease-in; touch-action: none; cursor: pointer; }
  .dw.is-open .dw-backdrop { opacity: 1; transition: opacity .34s ease-out; }
  .dw-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 88vw); display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding: 76px 0 12px; padding-left: env(safe-area-inset-left); background: var(--paper);
    border-right: 2px solid var(--ink); box-shadow: 6px 0 0 var(--signal); transform: translateX(calc(-100% - 10px)); transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
  .dw.is-open .dw-panel { transform: none; transition: transform .34s cubic-bezier(.2, .8, .2, 1); }

  /* head: the same brand as the header + close */
  .dw-head { position: sticky; top: 0; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px var(--gut); background: var(--paper); border-bottom: 2px solid var(--ink); }
  .dw-head .brand { gap: 8px; }
  .dw-head .brand img { height: 44px; }
  .dw-head .brand-w { font-size: 20px; white-space: nowrap; }
  .dw-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink); background: var(--primer); border: 2px solid var(--ink);
    border-radius: var(--r); cursor: pointer; }
  .dw-x .ic { width: 24px; height: 24px; stroke-width: 2.2; }

  /* the long menu */
  .dw-nav { flex: none; }
  .dw-list { list-style: none; margin: 0; padding: 2px 0 30px; }
  .dw-list > li { border-bottom: 1px solid var(--line); }
  .dw-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 58px; margin: 0;
    padding: 10px 18px 10px var(--gut); background: none; border: 0; border-radius: 0; color: var(--ink); text-align: left; text-decoration: none;
    font: 700 19.5px/1.2 var(--font); cursor: pointer; }
  .dw-row .ic { width: 20px; height: 20px; flex: none; color: var(--denim); transition: transform .2s ease, color .2s ease; }
  .dw-row[aria-current]::before, .dw-row.is-cur::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 5px; background: var(--signal); border-radius: 0 3px 3px 0; }
  .dw-row[aria-current] .ic { color: var(--signal); }
  .dw-acc .ic-chev { width: 24px; height: 24px; color: var(--ink); }
  .dw-acc[aria-expanded="true"] { background: var(--primer); }
  .dw-acc[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
  .dw-row:focus-visible, .dw-svc .mm-item:focus-visible { outline-offset: -3px; }
  @media (hover: hover) {
    .dw-row:hover { background: var(--paper-2); }
    .dw-row:hover .ic-arrow { transform: translateX(3px); color: var(--ink); }
    .dw-x:hover { background: var(--ink); color: var(--primer); }
  }
  /* Services accordion: the same service list as the desktop menu (refreshed from the database by the server), one column */
  .dw-svc { padding: 2px 0 20px; background: var(--primer); border-top: 1px solid var(--line); }
  .dw-svc .mm-col { padding-top: 14px; }
  .dw-svc .mm-h { margin: 0 18px 4px var(--gut); padding: 0 0 7px; border-bottom: 2px solid var(--ink); color: var(--denim); font-size: 13px; font-weight: 800;
    letter-spacing: .07em; text-transform: uppercase; }
  .dw-svc .mm-item { gap: 12px; min-height: 56px; padding: 7px 18px 7px var(--gut); border-radius: 0; }
  .dw-svc .mm-ic { width: 38px; height: 38px; }
  .dw-svc .mm-ic .ic { width: 20px; height: 20px; }
  .dw-svc .mm-item b { font-size: 16.5px; }
  .dw-svc .mm-item small { font-size: 13.5px; }
  .dw-svc .mm-item[aria-current] { box-shadow: inset 5px 0 0 var(--signal); }
  .dw-svc .mm-item[aria-current] .mm-ic { background: var(--ink); color: var(--primer); }
  .dw-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; margin: 18px 18px 0 var(--gut); padding: 0 14px 0 16px;
    color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; text-decoration: none; }
  .dw-all .ic { width: 20px; height: 20px; color: var(--signal); }
  .dw-all:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
  .dw-svc:not([hidden]) :is(.mm-h, .mm-item, .dw-all) { animation: dw-drop .32s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--j, 0) * 22ms); }

  /* contact block: night, dot texture, paint drips from the menu above */
  .dw-contact { position: relative; flex: none; margin-top: auto; display: grid; gap: 12px; padding: 52px 18px calc(26px + env(safe-area-inset-bottom)) var(--gut);
    color: var(--primer); background-color: var(--night); background-image: var(--dots-lt); background-size: 12px 12px; }
  .dw-contact :focus-visible { outline-color: var(--tape); }
  .dw-drip { position: absolute; left: 0; top: -1px; width: 100%; height: 32px; fill: var(--paper); transform-origin: 50% 0; }
  .dw-call { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px 12px 12px; color: #fff; background: var(--signal);
    border-radius: var(--r); box-shadow: 0 4px 0 var(--signal-dk); text-decoration: none; }
  .dw-call:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--signal-dk); }
  .dw-call-ic { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--signal); background: var(--primer); }
  .dw-call-ic .ic { width: 25px; height: 25px; stroke-width: 2.1; }
  .dw-call-tx { min-width: 0; }
  .dw-call small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
  .dw-call b { display: block; font-size: clamp(21px, 6.5vw, 28px); font-weight: 850; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
  .dw-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
  .dw-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 10px 6px; color: var(--primer);
    background: transparent; border: 2px solid rgba(250, 247, 239, .85); border-radius: var(--r); font: 700 clamp(14px, 4.3vw, 15.5px)/1.15 var(--font); text-align: center;
    text-decoration: none; cursor: pointer; }
  .dw-btn .ic { width: 22px; height: 22px; color: var(--tape); }
  .dw-line { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--primer); font-size: 15.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
  .dw-line .ic { width: 20px; height: 20px; flex: none; color: var(--tape); }
  .dw-trust { list-style: none; margin: 2px 0; padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px;
    border-top: 1px solid rgba(233, 226, 207, .18); border-bottom: 1px solid rgba(233, 226, 207, .18); }
  .dw-trust li { display: flex; align-items: flex-start; gap: 8px; color: rgba(250, 247, 239, .92); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
  .dw-trust .ic { width: 18px; height: 18px; flex: none; color: var(--tape); }
  .dw-social { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding-top: 4px; }
  .dw-social > span { grid-column: 1 / -1; color: rgba(250, 247, 239, .78); font-size: 14px; font-weight: 600; }
  .dw-social a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px; color: var(--primer); text-decoration: none;
    border: 2px solid rgba(250, 247, 239, .35); border-radius: var(--r); font-size: 15px; font-weight: 700; }
  .dw-social .ic { width: 20px; height: 20px; flex: none; color: var(--tape); }
  @media (hover: hover) {
    .dw-call:hover { background: var(--signal-dk); }
    .dw-btn:hover { color: var(--ink); background: var(--primer); }
    .dw-btn:hover .ic { color: var(--signal); }
    .dw-line:hover span { text-decoration: underline; }
    .dw-social a:hover { border-color: var(--primer); }
  }

  /* the entrance: rows slide in from the left one after another (--i is set by site.js), then the contact block rises,
     its drips run down and the phone rings once. Closing puts everything back only after the panel has left. */
  .dw-anim { opacity: 0; transform: translateX(-18px); transition: opacity 0s linear .24s, transform 0s linear .24s; }
  .dw-contact.dw-anim { transform: translateY(28px); }
  .dw.is-open .dw-anim { opacity: 1; transform: none; transition: opacity .3s ease-out, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(130ms + var(--i, 0) * 28ms); }
  .dw-drip { transform: scaleY(.3); transition: transform 0s linear .24s; }
  .dw.is-open .dw-drip { transform: none; transition: transform .7s cubic-bezier(.3, .7, .2, 1) calc(330ms + var(--i, 0) * 28ms); }
  .dw.is-open .dw-call-ic .ic { animation: dw-ring .8s ease-in-out calc(600ms + var(--i, 0) * 28ms) both; }
}
@keyframes dw-drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes dw-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-16deg); } 30% { transform: rotate(13deg); } 45% { transform: rotate(-9deg); }
  60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }

/* ---------- review stars, text written in the admin panel, the customer's quote on phones
   - review stars above the rating are outlines (lib/mw-showcase.js marks them class="ic ic-star off")
   - the admin's rich editor (public/admin/assets/rich-editor.js, cleaned by cms-safe.js) writes <em class="accent">,
     .highlight, <div class="info-box"> and <blockquote> into blog posts and page texts: styled here like in the editor
   - /quote: the line items fit a 360 px phone (each line becomes a small block), the decline box matches the name field */
.rv-stars .ic.off { fill: none; }
.accent, .highlight { color: #A9350F; font-style: italic; }            /* signal orange, dark enough for text on paper */
:is(.band, .qbox, .svc-lead, .promo, .ft, .nb) :is(.accent, .highlight) { color: #F1B39D; }   /* on the dark bands */
.prose .info-box { margin: 1.4em 0; padding: 16px 20px; background: var(--primer); border: 2px solid var(--ink); border-left-width: 6px; border-radius: var(--r); }
.prose .info-box > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--signal); color: var(--denim); font-size: 19px; font-style: italic; line-height: 1.6; }
.prose blockquote > :last-child { margin-bottom: 0; }
.q-doc h1 { overflow-wrap: anywhere; }                                 /* a long word in a quote title never pushes the page wider */
.q-act textarea { display: block; width: 100%; min-height: 96px; border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 14px; font-size: 16px; line-height: 1.5; background: #fff; resize: vertical; }
@media (max-width: 560px) {
  .q-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .q-table, .q-table tbody { display: block; width: 100%; }
  .q-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .q-table td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .q-table td:first-child { flex: 1 0 100%; }
  .q-table td.num { text-align: left; font-size: 14px; color: var(--denim); }
  .q-table td.num:nth-child(2)::before { content: "Qty "; }
  .q-table td.num:nth-child(3)::before { content: "× "; }
  .q-table td.num:last-child { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ink); }
  .q-table tr.q-area { padding: 10px 10px 8px; background: var(--paper); border-bottom: 0; }
  .q-table tr.q-area td { padding: 0; background: none; }
}

/* ---------- responsive */
@media (max-width: 1180px) {
  .nb-links a { padding: 0 11px; font-size: 14px; }
  .hd-chat span { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
  .hero-mascot { position: absolute; right: 38%; bottom: 0; width: 210px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 1020px) {
  .area-hub-stamp { display: none; }
  .spot-in { grid-template-columns: 210px minmax(0, 1fr); gap: 20px 28px; }
  .art-layout, .est-layout { grid-template-columns: 1fr; gap: 26px; }
  .art-side, .est-side { position: static; }
  .tf-grid { grid-template-columns: 1fr 1fr; }
  .area-grid, .rv-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .wk:first-child { grid-column: span 2; grid-row: span 1; }
  .wk:last-child { grid-column: span 2; }
  .incl-grid { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: 120px minmax(0, 1fr); }
  .cta-mascot { width: 120px; }
  .cta-btns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .svc-body { grid-template-columns: 1fr; gap: 10px; }
  .svc-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .sg-grid { grid-template-columns: 1fr 1fr; }
  /* header: one sticky row (brand, search, phone, menu button). The dark bar is replaced by the menu drawer (.dw). */
  html { scroll-padding-top: 96px; }
  .hd { position: sticky; top: 0; z-index: 58; border-bottom: 2px solid var(--ink); }
  .hd-in { min-height: 76px; }
  .brand img { height: 56px; }
  .brand-w { font-size: 24px; }
  .hd-burger { display: grid; }
  .hd-chat { display: none; }
  .nb { display: none; }
  .usp-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .usp p { white-space: normal; font-size: 14px; line-height: 1.25; }
  .svc-in { grid-template-columns: 1fr; }
  .svc-lead { min-height: 0; }
  .svc-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-in { grid-template-columns: 130px minmax(0, 1fr); }
  .band-mascot { width: 130px; }
  .nl { grid-column: 1 / -1; }
  .ft-main { grid-template-columns: 1fr 1fr; }
  .ft-contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .area-find-row { flex-direction: column; }
  .area-find-row .btn { width: 100%; }
  body { font-size: 16.5px; }
  .ft { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* header on phones: one compact row (brand · search · call · menu). The phone number lives in the call button and the
     menu drawer; the search form opens as a full-width row under the header (site.js toggles .is-search). */
  html { scroll-padding-top: 84px; }
  .hd-in { flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; gap: 0 8px; }
  .brand { gap: 8px; }
  .brand img { height: 44px; }
  .brand-w { font-size: 20px; white-space: nowrap; }
  .hd-sbtn, .hd-call { display: grid; }
  .hd-sbtn { margin-left: auto; }
  .hd-contact { margin-left: 0; gap: 8px; }
  .hd-phone { display: none; }
  .hd-burger { width: 44px; height: 44px; }
  .hd-search { display: none; order: 3; flex-basis: 100%; max-width: none; margin-top: 10px; }
  .hd.is-search .hd-search { display: flex; animation: hd-drop .2s ease-out; }
  .hd-search input { height: 46px; }
  .hd-sugg { max-height: min(420px, calc(100vh - 190px)); }
  .promo-in { gap: 6px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; justify-content: flex-start; }
  .promo p { font-size: 14px; flex: 1 1 200px; }
  .promo .btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 0; }
  .hero-copy { padding-bottom: 26px; }
  .hero-stripe { top: auto; bottom: 0; right: -10%; width: 120%; height: 46%; }
  .hero-mascot { position: absolute; right: 2%; top: 40px; width: 120px; bottom: auto; }
  .hero-copy h1 { padding-right: 104px; }
  .qbox { margin-bottom: 34px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 170px; }
  .tile-art { width: 104px; height: 104px; top: 20px; }
  .svc-track { grid-auto-columns: 82%; }
  .stamp { width: 124px; height: 124px; }
  .ex-grid { gap: 12px; }
  .ex-tx { padding: 14px 44px 16px 14px; }
  .ex-tx b { font-size: 19px; }
  .ex-tx small { font-size: 14px; }
  .ex-plus { width: 48px; height: 48px; padding: 6px; }
  .ex-plus .ic { width: 18px; height: 18px; }
  .tile { min-height: 150px; }
  .spot-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .spot-head { min-width: 0; }
  /* every service box the same height (all rows as tall as the tallest); the link fills its cell, content centred */
  .spot-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 8px; }
  .spot-list li { display: flex; min-width: 0; }
  .spot-list a { flex: 1; min-width: 0; min-height: 56px; border-radius: var(--r); padding: 9px 10px; font-size: 14px; line-height: 1.25; }
  .spot-list .ic { flex: none; }
  .ph-tabs { flex-direction: row; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .ph-tabs::-webkit-scrollbar { display: none; }
  .ph-tabs button { flex: none; padding: 10px 14px; font-size: 15px; }
  .ph-stage { box-shadow: 5px 5px 0 var(--ink); }
  .hs { width: 30px; height: 30px; border-width: 2px; }
  .hs::after { inset: -6px; }
  .hs .ic { width: 18px; height: 18px; }
  .ph-stage .hs-card { position: relative; left: auto !important; top: auto !important; width: auto; margin: 10px; box-shadow: 4px 4px 0 var(--ink); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 68px; min-height: 50px; }
  .steps li::after { display: none; }
  .band-in { grid-template-columns: 1fr; text-align: left; }
  .band-mascot { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-art { height: 160px; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  /* footer on phones: logo block first, then the contact rows, the link lists (two compact columns each) and the legal line.
     .ft-main steps aside (display: contents) so its logo block and link lists can be placed around the contact rows. */
  .ft > .wrap { display: flex; flex-direction: column; }
  .ft-main { display: contents; }
  .ft-brand { order: -1; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 0 18px; padding: 72px 0 28px; }
  .ft-brand img { width: 116px; margin: 0; }
  .ft-brand p { margin: 0; font-size: 15px; line-height: 1.5; }
  .ft-social { grid-column: 1 / -1; margin-top: 18px; }
  .ft-contact { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0 30px; border-top: 1px solid rgba(233, 226, 207, .16); }
  .ft-main > nav { padding-top: 26px; min-width: 0; }
  .ft-main > nav ul { columns: 2; column-gap: 22px; }
  .ft-main li { break-inside: avoid; }
  .ft-legal { margin-top: 30px; }
  .pg-hero-in, .svc-hero-in { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .two-col { gap: 10px; }
  .tf-grid, .area-grid, .rv-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .wk:first-child, .wk:last-child { grid-column: auto; grid-row: auto; }
  .incl-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-mascot { display: none; }
  .pg-hero-media, .svc-hero-art { margin: 0 calc(-1 * var(--gut)); min-height: 0; aspect-ratio: 4 / 3; }
  .pg-hero-media img, .svc-hero-art img { object-position: 50% var(--lp-pos-m, 50%); }   /* phones and tablets */
  .pg-hero-in:has(> .pg-hero-media), .svc-hero-in:has(> .svc-hero-art) { gap: 0; }
  .pg-hero-in:has(> .pg-hero-media) > div:first-child, .svc-hero-in:has(> .svc-hero-art) > .svc-hero-copy { padding: 18px 0 28px; }
  .svc-trust { grid-template-columns: 1fr; }
  .checks, .cost { grid-template-columns: 1fr; }
  .cost > div:nth-child(odd), .cost > div:nth-child(even) { padding-left: 0; padding-right: 0; }
  .svc-side { grid-template-columns: 1fr; }
  .rel-grid, .sg-grid { grid-template-columns: 1fr; }
  .svc-body { padding-top: 30px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--primer); border-top: 2px solid var(--ink); }
  .mbar .btn { min-height: 48px; padding: 0 12px; }
  .chat-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; padding: 5px; }
  .chat-fab span { display: none; }
  .chat { right: 12px; bottom: calc(146px + env(safe-area-inset-bottom)); height: min(540px, calc(100vh - 190px)); }
}
@media (max-width: 374px) {                    /* small phones (320–374px): a smaller brand so the header row never wraps */
  .hd-in { column-gap: 6px; }
  .hd-contact { gap: 6px; }
  .brand { gap: 6px; }
  .brand img { height: 40px; }
  .brand-w { font-size: 17.5px; }
  .ft-brand { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .ft-brand img { width: 96px; }
}
/* trust strip on phones: the short labels keep each of the four points on a single line */
.usp-short { display: none; }
@media (max-width: 600px) {
  .usp-long { display: none; }
  .usp-short { display: inline; }
  .usp p { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
