/* Power On Solutions — design system v2 ("Gallery / Launch / Drawing set"): the shared core.
   Every V2 page loads this file. Two themes on <html data-theme="dark|light">. Components use semantic variables only.
   Homepage-only scenes live in home.css; a page's own extras go in pages/<name>.css. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep the swap from shifting layout */
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 94%;
  ascent-override: 103%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Courier New"), local("Menlo");
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 27%;
}

/* ---------- 2.1 tokens ---------- */
:root {
  --ink: #111010;
  --ink-2: #1B1A18;
  --ink-3: #23211E;
  --paper: #F5F3EE;
  --white: #FFFFFF;
  --bone: #EAE6DD;
  --stone: #6F6A62;
  --mist: #A9A398;
  --line: rgba(17, 16, 16, .12);
  --line-d: rgba(245, 243, 238, .14);
  --brass: #8C6A1F;
  --brass-l: #D2A23C;
  --signal: #F2C230;

  --font: "Inter Tight", "Inter Tight Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: 24px;
  --section: clamp(72px, 7.8vw, 112px);
  --nav-h: 76px;
  --theme-dur: 400ms;
}

/* ---------- 2.0 themes ---------- */
:root, [data-theme="dark"] {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: var(--paper);
  --fg-2: var(--mist);          /* 7.6 / 6.9 / 6.4 : 1 on bg / bg-2 / bg-3 */
  --fg-3: #938D83;              /* 5.8 / 5.3 / 4.9 : 1 */
  --rule: var(--line-d);
  --accent: var(--brass-l);     /* 8.1 / 7.4 / 6.9 : 1 */
  --emg: #E5484D; --emg-t: #FF8A8D;   /* emergency red: dot, and link text on ink */
  --scrim: rgba(17, 16, 16, .86);
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --focus: var(--signal);
  --tint: rgba(245, 243, 238, .04);
  --show-d: block;
  --show-l: none;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: var(--white);
  --bg-3: var(--bone);
  --fg: var(--ink);
  --fg-2: #5E5952;              /* stone deepened: 6.3 / 6.9 / 5.6 : 1 (spec #6F6A62 is 4.3:1 on bone) */
  --fg-3: #66615A;              /* 5.5 / 6.1 / 4.9 : 1 */
  --rule: var(--line);
  --accent: #7D5E1B;            /* brass deepened for text: 5.4 / 6.0 / 4.8 : 1 (spec #8C6A1F is 4.0:1 on bone) */
  --emg: #C8262C; --emg-t: #B3261E;   /* emergency red: dot, and link text on bone */
  --scrim: rgba(17, 16, 16, .86);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --focus: var(--ink);
  --tint: rgba(17, 16, 16, .04);
  --show-d: none;
  --show-l: block;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.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: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 14px 18px; background: var(--btn-bg); color: var(--btn-fg);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- 2.2 type ---------- */
.display, h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: .96; font-weight: 500; letter-spacing: -0.04em; }
h2, .h2 { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
h3, .h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 400; max-width: 40ch; }
.body { max-width: 64ch; }
.label, .mono {
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase;
}
.muted { color: var(--fg-2); }
.accent { color: var(--accent); }
@media (max-width: 640px) { body { font-size: 16px; } }
/* headline lines: each line masks its own span (line reveals) */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }

/* ---------- 2.3 layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding: var(--section) 0; position: relative; }
.surface-a { background: var(--bg); }
.surface-b { background: var(--bg-2); }
.surface-c { background: var(--bg-3); }
.cinema { background: var(--bg); color: var(--fg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 88px); }
/* each section H2 holds two lines: a small mono keyword line, then the big line */
.kw { display: block; margin-bottom: 18px; color: var(--accent); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
/* text sections (.csplit: city, service, overview, service-area and case-study pages): the eyebrow + heading in a left
   column that stays in view under the header (sticky, inside its own section, so it leaves with it) while the section's
   words scroll on the right, 1024px and up. Narrower screens stack them */
.csplit-h .kw { margin-bottom: 14px; }
@media (min-width: 1024px) {
  .csplit-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(40px, 5vw, 96px); align-items: start; }
  .csplit-h { align-self: stretch; }
  .csplit-stick { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 1023px) { .csplit-h { margin-bottom: clamp(28px, 4vw, 40px); } }
/* a section head (.sec-head) in the left column: no bottom margin beside the words; stacked, it keeps its own */
@media (min-width: 1024px) { .csplit-h .sec-head { margin-bottom: 0; } }
@media (max-width: 1023px) { .csplit-h:has(> .csplit-stick > .sec-head) { margin-bottom: 0; } }
.sec-head h2 .ln { max-width: 16ch; }

/* ---------- 2.4 components ---------- */
/* Buttons */
.btn {
  --arrow-x: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px; border-radius: 0;
  font: 500 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn .arr { display: inline-block; transition: transform 500ms var(--ease); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }

/* Text links — brass underline that draws on hover */
.tlink { color: var(--fg); text-decoration: none; padding-bottom: 4px; }
.tlink::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform-origin: 0 50%; pointer-events: none; }
/* inline links keep their look but get a 44px tap target */
.tlink, .foot-legal a { position: relative; }
.tlink::after, .foot-legal a::after { content: ""; position: absolute; inset: -14px -4px; }
.tlink:hover::before, .tlink:focus-visible::before { animation: underline-draw 700ms var(--ease); }
@keyframes underline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tlink-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.tlink.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Title block */
.tblock {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule); border-right: 0; border-bottom: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; line-height: 1.4;
}
.tblock > div { padding: 10px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.tblock dt { color: var(--fg-3); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; margin-bottom: 4px; }
.tblock dd { color: var(--fg); font-weight: 400; text-transform: uppercase; overflow-wrap: anywhere; }
.tblock .wide { grid-column: 1 / -1; }

/* Registration marks */
.reg { position: relative; }
.reg > .mark { position: absolute; width: 10px; height: 10px; pointer-events: none; z-index: 3; border-color: var(--fg-2); border-style: solid; border-width: 0; }
.reg > .mark.tl { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
.reg > .mark.tr { top: -7px; right: -7px; border-top-width: 1px; border-right-width: 1px; }
.reg > .mark.bl { bottom: -7px; left: -7px; border-bottom-width: 1px; border-left-width: 1px; }
.reg > .mark.br { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }

/* Scroll progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 1px; z-index: 120; pointer-events: none;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

/* Logo swap */
.logo-d { display: var(--show-d); }
.logo-l { display: var(--show-l); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  color: var(--fg); background: transparent; border-bottom: 1px solid transparent;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--rule); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.brand img { width: 146px; height: auto; }
/* light theme, over dark content (lit-down hero, inside the walls): the header stays transparent and goes light-on-dark */
.nav[data-theme="dark"] { --fg-3: #C9C3B8; }
.nav.is-dim { --fg-3: var(--fg); }
/* section mini-menu: the chapter label is a button */
.chap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; min-height: 36px; padding: 0 12px 0 14px;
  border: 1px solid color-mix(in srgb, var(--fg) 26%, transparent); border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.chap:hover, .chap[aria-expanded="true"] { border-color: var(--accent); }
.chap-t { display: grid; min-width: 0; }
.chap-t > span { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 300ms var(--ease); }
.chap-t > span.on { opacity: 1; }
.chap-chev { flex: 0 0 auto; color: var(--accent); transition: transform 300ms var(--ease); }
.chap[aria-expanded="true"] .chap-chev { transform: rotate(180deg); }
/* the section button waits until the page hero has scrolled away: hidden (and out of the tab order and the
   accessibility tree) over the hero, faded in after it. It keeps its place in the header, so nothing moves */
html.js .chap { transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 0s, border-color 300ms var(--ease); }
html.js .chap:not(.is-in) { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; }
@media (prefers-reduced-motion: reduce) { html.js .chap, html.js .chap:not(.is-in) { transition: none; transform: none; } }
.secmenu { position: fixed; z-index: 140; top: calc(var(--nav-h) - 4px); left: var(--sm-x, 20px); width: 300px; padding: 14px 0 8px;
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(-6px); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.secmenu.is-open { opacity: 1; transform: none; }
.secmenu-h { padding: 0 18px 10px; color: var(--fg-3); border-bottom: 1px solid var(--rule); }
.secmenu-list a { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; min-height: 44px; padding: 0 18px; text-decoration: none; color: var(--fg); font-size: 15px; font-weight: 500; }
.secmenu-list a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); opacity: 0; transform: scaleY(.4); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.secmenu-list a:hover { background: var(--tint); }
.secmenu-list .sm-n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.secmenu-list a[aria-current="true"]::before { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .nav-in { gap: 12px; }
  .chap { min-height: 32px; padding: 0 10px 0 12px; gap: 8px; font-size: 10px; letter-spacing: .12em; max-width: calc(100vw - 2 * var(--pad) - 124px - 52px - 24px); }
  /* phones: a bottom sheet over a dimmed page */
  /* sits on the call bar, under the header: both stay visible and usable while it is open */
  .secmenu { z-index: 85; top: auto; bottom: calc(65px + env(safe-area-inset-bottom)); left: 0; right: 0; width: auto; max-height: calc(100svh - var(--nav-h) - 65px - env(safe-area-inset-bottom) - 12px); overflow-y: auto;
    padding: 18px 0 12px; border-width: 1px 0 0; box-shadow: 0 0 0 100vmax rgba(17, 16, 16, .55); transform: translateY(24px); }
  .secmenu-list a { min-height: 50px; font-size: 17px; padding: 0 var(--pad); }
  .secmenu-h { padding: 0 var(--pad) 12px; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .secmenu { padding-top: 12px; }
  .secmenu-h { padding-bottom: 8px; }
  .secmenu-list a { min-height: 44px; font-size: 16px; }
}
/* narrow phones: number only, so the label never truncates */
@media (max-width: 399px) {
  .chap .cn + .cl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) { .chap { display: none; } }
/* without JS the button cannot open anything, so it is not shown */
html:not(.js) .chap { display: none; }
@media (prefers-reduced-motion: reduce) { .secmenu { transform: none; } }
.nav-links { display: flex; align-items: center; align-self: stretch; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 0; color: var(--fg); white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
/* Services and Service Area: the link goes to its page; hover, keyboard focus or the chevron button opens the panel */
.dd { position: relative; display: flex; align-items: center; align-self: stretch; }
.dd-btn { flex: 0 0 auto; width: 26px; height: 44px; margin-right: -8px; display: grid; place-items: center; color: var(--accent); }
.dd-btn svg { transition: transform 300ms var(--ease); }
.dd.is-open .dd-btn svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: 100%; left: 0; z-index: 2; width: 560px; max-height: calc(100vh - var(--nav-h) - 12px); overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; padding: 22px 26px 16px;
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms; }
html:not(.js) .dd-panel { left: 50%; margin-left: -280px; }
.dd.is-open .dd-panel, html:not(.js) .dd:hover .dd-panel, html:not(.js) .dd:focus-within .dd-panel { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.dd-panel .label { color: var(--fg-3); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.dd-panel a { display: block; padding: 8px 0; font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--fg); white-space: normal; }
.dd-panel a:hover { color: var(--accent); }
.dd-panel .dd-all, .sl-sub .dd-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .dd-panel { transform: none; } }
/* Services: one column of services */
.dd-panel-svc { width: 300px; grid-template-columns: minmax(0, 1fr); }
html:not(.js) .dd-panel-svc { margin-left: -150px; }
/* Service Area: the cities, west to east, in two columns */
.dd-panel-area { width: 440px; grid-template-columns: minmax(0, 1fr); }
html:not(.js) .dd-panel-area { margin-left: -220px; }
/* Tools: the three free planning tools */
.dd-panel-tools { width: 260px; grid-template-columns: minmax(0, 1fr); }
html:not(.js) .dd-panel-tools { margin-left: -130px; }
/* Emergency: a small red link at the end of the header links, and its row in the phone menu */
.nav-links a.nav-emg { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--emg-t); }
.nav-links a.nav-emg::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--emg); }
.nav-links a.nav-emg:hover { color: var(--fg); }
.sl-row.sl-emg a { color: var(--emg-t); }
/* tight desktop rows (900-1199px): Emergency shows as its red dot only; the word stays for screen readers and on hover */
@media (min-width: 900px) and (max-width: 1199px) { .nav-links a.nav-emg { font-size: 0; letter-spacing: 0; gap: 0; padding: 12px 2px; } .nav-links a.nav-emg::before { width: 10px; height: 10px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--emg) 28%, transparent); } }
.dd-cities { columns: 2; column-gap: 24px; }
.dd-cities li { break-inside: avoid; }
/* Palm Desert's own sub-list (the country-club page): closed until its chevron opens it (open without scripts) */
.dd-pd-row { display: flex; align-items: center; gap: 4px; }
.dd-pd-row a { flex: 0 1 auto; }
.dd-subx { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); }
.dd-subx:hover { background: var(--bg-3); }
.dd-subx svg { transition: transform 300ms var(--ease); }
.dd-subx[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-subl[hidden] { display: none; }
html:not(.js) .dd-subx { display: none; }
.dd-panel .dd-sub { margin: -4px 0 4px; padding: 2px 0 6px 14px; border-left: 1px solid var(--rule); font-size: 13px; font-weight: 400; color: var(--fg-2); }
.dd-panel .dd-foot { grid-column: 1 / -1; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .dd-subx svg { transition: none; } }
/* phone menu: the same Palm Desert sub-list, behind a smaller chevron */
.sl-pd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sl-pd-row a { flex: 1 1 auto; }
.sl-x.sl-x-sm { width: 36px; height: 36px; }
.sl-subl[hidden] { display: none; }
.sl-sub .sl-subsub { padding: 0 0 10px 14px; margin-top: -4px; border-left: 1px solid var(--rule); font-size: 14px; font-weight: 400; color: var(--fg-2); }
/* theme: a round two-part pill; the filled indicator slides under the selected side (transform only).
   Colours follow the page theme attribute, so the right side is marked before any script runs. */
.tpill { position: relative; isolation: isolate; flex: 0 0 auto; display: inline-grid; grid-template-columns: 1fr 1fr; height: 36px; padding: 3px;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); border-radius: 999px; }
.tpill button { position: relative; z-index: 1; min-width: 54px; padding: 0 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.tpill button::after { content: ""; position: absolute; inset: -7px 0; }
.tpill-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--fg); transition: transform 320ms var(--ease); }
html[data-theme="dark"] .tpill-ind { transform: translateX(100%); }
html[data-theme="light"] .tpill [data-theme-set="light"], html[data-theme="dark"] .tpill [data-theme-set="dark"] { color: var(--bg); }
.tpill button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.nav-tail { display: flex; align-items: center; gap: 20px; }
.nav-phone { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-decoration: none; padding: 14px 0; color: var(--fg); }
.nav-phone:hover { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 2px; margin-left: auto; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sheet {
  position: fixed; inset: 0; z-index: 150; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; padding: 0 var(--pad) 32px; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.sheet.is-open { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease); }
.sheet-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-links { margin-top: 24px; border-top: 1px solid var(--rule); }
.sl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); }
.sl-row a { flex: 1 1 auto; padding: 16px 0; font-size: clamp(28px, 8vw, 40px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; text-decoration: none; }
.sl-x { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); }
.sl-x svg { transition: transform 300ms var(--ease); }
.sl-x[aria-expanded="true"] { border-color: var(--accent); }
.sl-x[aria-expanded="true"] svg { transform: rotate(180deg); }
.sl-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--rule); }
.sl-sub[hidden] { display: none; }
.sl-sub a { display: block; padding: 11px 0; font-size: 16px; line-height: 1.3; font-weight: 500; text-decoration: none; }
.sl-sub li:last-child { grid-column: 1 / -1; }
/* social links: four monochrome icon buttons (footer and phone menu) */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a, .foot .social a { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--fg); }
.social a:hover, .foot .social a:hover { color: var(--accent); border-color: var(--accent); }
.social-foot { margin-top: clamp(32px, 4vw, 48px); }
.social-sheet { margin-top: 8px; }
.sheet-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.sheet-foot .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
body.sheet-open { overflow: hidden; }

/* without scripts nothing can open the phone menu, so its links stand in the page, above the footer;
   controls that only work with scripts (menu button, expanders, theme pill) are not shown */
html:not(.js) .tpill { display: none; }
html:not(.js) .cnav { display: none; }
/* and the header keeps its bar, since nothing can switch it on while the page scrolls under it */
html:not(.js) .nav { background: var(--bg); border-bottom-color: var(--rule); }
@media (max-width: 899px) {
  html:not(.js) body { display: flex; flex-direction: column; }
  html:not(.js) .nav .menu-btn, html:not(.js) .sheet-top, html:not(.js) .sheet-foot .row, html:not(.js) .sl-x { display: none; }
  html:not(.js) .sheet { position: static; order: 1; visibility: visible; opacity: 1; overflow: visible; padding: 8px var(--pad) 40px; }
  html:not(.js) .foot { order: 2; }
}

/* Phones: fixed bottom bar */
.bbar { display: none; }

/* the header row gives up space in this order: the phone number first, then the section button's name */
@media (max-width: 1479px) { .nav-phone { display: none; } }
@media (max-width: 1319px) {
  .nav-in { gap: 22px; }
  .nav-links { gap: 22px; }
}
/* below 1240px the section button shows its number only (the name stays in the menu and the accessible label) */
@media (min-width: 900px) and (max-width: 1239px) {
  .chap .cl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chap { gap: 8px; padding: 0 10px 0 12px; }
  .chap-t > span:empty { display: none; }
}
/* small desktops / iPad landscape: the row tightens a little */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-in { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav .btn { padding: 0 12px; font-size: 14px; gap: 8px; }
  .brand img { width: 124px; }
  .tpill button { min-width: 0; padding: 0 9px; letter-spacing: .08em; }
  .dd-btn { margin-right: -4px; }
}
@media (min-width: 900px) and (max-width: 979px) {
  .nav .btn .arr { display: none; }
}
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-tail, .nav > .nav-in > .tpill { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: flex-end; }
  .brand img { width: 124px; }
  .bbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90;
    background: var(--bg); border-top: 1px solid var(--rule);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .bbar .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}


/* ---------- credential cells (homepage hero, city pages): license, reviews, coverage, inspections ---------- */
/* four equal cells, hairline dividers; each cell's top hairline brightens to brass on hover / focus */
.cred { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; align-content: start;
  padding: 18px clamp(16px, 2vw, 32px) 4px; min-width: 0; border-top: 1px solid var(--rule); }
.cred li:first-child { padding-left: 0; }
.cred li + li { border-left: 1px solid var(--rule); }
.cred li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); opacity: 0; transform: scaleX(.6); transform-origin: 0 50%;
  transition: opacity 400ms var(--ease), transform 600ms var(--ease); pointer-events: none; }
.cred li:hover::before, .cred li:focus-within::before { opacity: 1; transform: none; }
.cred .ci { grid-row: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.cred .label { color: var(--fg-3); }
.cred .cvrow { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cred .cv, .cred .tlink { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.cred .csub { flex: 1 0 100%; color: var(--fg-2); font-size: 13px; line-height: 1.4; }
.cred .csub .nw { white-space: nowrap; }
/* phones: a 2x2 grid, icon + label on top, value below (the homepage hero tightens it further in home.css) */
@media (max-width: 899px) {
  .cred { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cred li, .cred li:first-child { grid-template-columns: 24px minmax(0, 1fr); padding: 10px 12px 10px 0; row-gap: 6px; column-gap: 8px; border-left: 0; align-content: start; }
  .cred .ci { width: 24px; height: 24px; }
  .cred .ci svg { width: 12px; height: 12px; }
  .cred .cvrow { grid-column: 1 / -1; column-gap: 8px; }
  .cred li:nth-child(even) { padding-left: 14px; padding-right: 0; border-left: 1px solid var(--rule); }
  .cred .cv, .cred .tlink { font-size: 15px; line-height: 1.3; }
  .cred .csub { font-size: 12px; line-height: 1.35; }
}
@media (max-width: 380px) { .cred .cv, .cred .tlink { font-size: 14px; } }

/* ---------- job card: photo, city / date caption, title (homepage work grid and carousel, project rows) ---------- */
.wt { position: relative; display: grid; gap: 14px; text-decoration: none; color: var(--fg); min-width: 0; }
/* a job card is not one big link: its main link stretches over the card, and the city link sits above it */
.wt-main { color: inherit; text-decoration: none; }
.wt-main::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wt-main:focus-visible { outline: none; }
.wt-main:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 3px; }
.wt-city { position: relative; z-index: 2; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wt-city::before { content: ""; position: absolute; inset: -14px -6px; }
.wt-city:hover { color: var(--fg); }
.wt-date { color: var(--fg-2); }
.wt-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.wt-img { position: relative; }
.wt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.wt-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wt .label { color: var(--accent); }
.wt-title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; }
.wt .arr { display: inline-block; transition: transform 500ms var(--ease); }
@media (hover: hover) {
  .wt:hover .wt-img img { transform: scale(1.03); }
  .wt:hover .arr, .wt:focus-visible .arr, .wt:focus-within .arr { transform: translateX(4px); }
}
/* gallery job card (.wt.gj): photo, job line, title (links to the service), a short description. Filters hide cards with [hidden] */
.wt[hidden] { display: none; }
.gj { align-content: start; }
.gj .wt-cap { display: block; }
.gj .wt-title { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; }
.gj-desc { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.gj-kind { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 8px; background: var(--scrim); color: var(--paper); }
/* the type label sits on the dark scrim in both themes, so it keeps the bright brass */
.wt .gj-kind { color: var(--brass-l); }
/* a job's photos: Before / Work / Finished under the photo (only the stages it has; each swaps the card's photo in place),
   or a photo count; the large photo without scripts. They sit above the card's stretched title link */
.gj-seq { position: relative; z-index: 2; }
.gj-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gj-step { position: relative; display: block; overflow: hidden; background: var(--bg-2); color: var(--paper); text-decoration: none; outline-offset: 2px; }
.gj-step img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: .72; transition: opacity 300ms var(--ease); }
.gj-step-l { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; background: var(--scrim); color: var(--paper); font-size: 10px; letter-spacing: .1em; }
.wt .gj-step-l { color: var(--paper); }
.gj-step-n { opacity: .7; }
.gj-step:hover img { opacity: .9; }
/* the photo the card shows now */
.gj-step[aria-pressed="true"] img { opacity: 1; }
.gj-step[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); pointer-events: none; }
.gj-step:focus-visible { outline: 2px solid var(--focus); }
.gj-seq-n { margin-top: -4px; }
.gj-more { display: inline-flex; align-items: center; min-height: 24px; color: var(--fg-2); font-size: 14px; }
/* the big photo opens the viewer; it sits above the card's stretched title link */
.gj-open { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }
.gj-open:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* the next photo fading in over the card's photo */
.wt-img img.gj-fade { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms var(--ease); pointer-events: none; }
.wt-img img.gj-fade.in { opacity: 1; }

/* the photo viewer: one job's photos full screen; under the photo its stage (and city), title, place and date, and a
   quiet quote / call row; previous / next project at the bottom */
.sv { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: hidden; }
.sv::backdrop { background: rgba(17, 16, 16, .94); }
.sv[open] { display: flex; align-items: center; justify-content: center; }
.sv-fig { margin: 0; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100vw; padding: 0 72px 72px; }
.sv-frame { display: flex; justify-content: center; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
/* the viewer's own gestures (zoom, pan, swipe): the browser neither zooms nor scrolls the page behind it */
.sv[open] { touch-action: none; overscroll-behavior: contain; }
.sv-img { transform-origin: 50% 50%; }
@media (hover: hover) and (pointer: fine) {
  .sv-img { cursor: zoom-in; }
  .sv.is-zoomed .sv-img { cursor: grab; }
  .sv.is-panning .sv-img { cursor: grabbing; }
}
.sv-img { display: block; max-width: 100%; max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); width: auto; height: auto; -webkit-user-drag: none; }
.sv-fig.is-loading .sv-img { opacity: 0; }
.sv-fig.is-turn { animation: sv-turn 300ms var(--ease); }
@keyframes sv-turn { from { opacity: .3; } to { opacity: 1; } }
.sv-cap { width: 100%; max-width: 720px; margin-top: 14px; display: grid; gap: 4px; color: var(--mist); font-size: 14px; line-height: 1.45; }
.sv-line { display: flex; justify-content: space-between; gap: 12px; }
.sv-stage { color: var(--brass-l); }
.sv-n { color: var(--mist); }
.sv-t { color: var(--paper); font-size: 16px; font-weight: 500; }
.sv-place { color: var(--mist); font-size: 12px; letter-spacing: .06em; }
.sv-page { justify-self: start; margin-top: 2px; color: var(--mist); font-size: 12px; letter-spacing: .06em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sv-page:hover { color: var(--paper); }
.sv-page[hidden] { display: none; }
.sv-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(245, 243, 238, .14); }
.sv-row .tlink { color: var(--paper); }
.sv-share { padding: 0 0 4px; border: 0; background: none; font: inherit; line-height: inherit; cursor: pointer; }
.sv-b { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(245, 243, 238, .3); border-radius: 50%; background: rgba(17, 16, 16, .5); color: var(--paper); cursor: pointer; }
.sv-b:hover { border-color: var(--paper); }
.sv-b:focus-visible, .sv-pb:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sv-b[hidden] { display: none; }
.sv-x { top: 16px; right: 16px; }
.sv-zoom { position: absolute; top: 20px; right: 80px; display: flex; gap: 8px; }
.sv-zoom .sv-b { position: static; width: 44px; height: 44px; }
.sv-prev { left: 12px; top: 50%; margin-top: -26px; }
.sv-next { right: 12px; top: 50%; margin-top: -26px; }
.sv-proj { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; padding: 0 16px; pointer-events: none; }
.sv-pb { pointer-events: auto; min-height: 44px; padding: 0 14px; border: 1px solid rgba(245, 243, 238, .3); border-radius: 999px; background: rgba(17, 16, 16, .5); color: var(--paper); font: 500 13px/1 var(--font); cursor: pointer; }
.sv-pb:hover:not(:disabled) { border-color: var(--paper); }
.sv-pb:disabled { opacity: .3; cursor: default; }
/* phones and portrait tablets: the pill alone (its thumbnail and title are for the cards below) */
.sv-pth, .sv-ptt { display: none; }
/* computers and landscape tablets (core.js WIDE, the same query): each project button is a light card with the
   project's lead photo, a mono label and its title; the one past either end is hidden. The figure keeps clear of the
   cards (its bottom padding), so the photo shrinks before anything overlaps */
@media (min-width: 1024px), (min-width: 900px) and (orientation: landscape) and (min-height: 600px) {
  .sv-fig { padding-bottom: 112px; }
  .sv-img { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
  .sv-proj { bottom: 16px; padding: 0 20px; }
  .sv-pb { display: flex; align-items: center; gap: 12px; width: 320px; max-width: calc(50vw - 30px); min-height: 72px; padding: 8px 16px 8px 8px; border: 1px solid var(--paper); border-radius: 6px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
  .sv-pnext { flex-direction: row-reverse; padding: 8px 8px 8px 16px; text-align: right; }
  .sv-pb:hover:not(:disabled) { background: #fff; border-color: var(--signal); transform: translateY(-2px); }
  .sv-pb:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
  .sv-pb:disabled { visibility: hidden; }
  .sv-pth { display: block; flex: none; width: 72px; height: 54px; object-fit: cover; border-radius: 3px; background: var(--ink-3); }
  .sv-pl { display: grid; gap: 6px; min-width: 0; flex: 1; }
  .sv-pk { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
  .sv-ptt { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 15px/1.25 var(--font); color: var(--ink); }
}
@media (max-width: 599px) {
  .sv-fig { padding: 0 12px 132px; }
  .sv-prev, .sv-next { top: auto; bottom: 72px; margin-top: 0; }
  .sv-prev { left: 16px; } .sv-next { right: 16px; }
  .sv-img { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
}
@media (prefers-reduced-motion: reduce) { .sv-fig.is-turn { animation: none; } .sv-pb { transition: none !important; transform: none !important; } .wt-img img.gj-fade { transition: none; } .sv-img { transition: none !important; } }
/* four across on wide screens (More projects rows) */
.jobrow.jobrow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .jobrow.jobrow-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .jobrow.jobrow-4 { grid-template-columns: minmax(0, 1fr); } }
/* glare sweep: a soft diagonal light band crosses the photo once (in view, hover, focus) */
.wt-img::after {
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 39%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.18) 55%, transparent 61%);
  transform: translateX(-60%);
}
@media (prefers-reduced-motion: no-preference) {
  .wt.sw .wt-img::after { animation: sweep 1.1s cubic-bezier(.45, .05, .25, 1) 1 both; }
}
@keyframes sweep {
  0% { opacity: 0; transform: translateX(-60%); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%); }
}

/* ---------- page patterns (inner pages; see tools/v2/page-template.html) ---------- */
/* the section button is hidden on pages with fewer than three sections */
.chap[hidden] { display: none; }
/* the page you are on, in the header and the phone menu (set by tools/v2/sync-partials.cjs) */
.nav-links a[aria-current], .dd-panel a[aria-current="page"], .sl-row a[aria-current], .sl-sub a[aria-current="page"] { color: var(--accent); }
/* a small mono heading over a list */
.sec-label { margin-bottom: 20px; color: var(--fg-3); }
/* breadcrumb: mono, slash-separated, the current page last */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--fg-3); }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--fg); }
/* page hero: breadcrumb, eyebrow, H1, lead, actions */
.phero { padding: calc(var(--nav-h) + clamp(24px, 3vw, 40px)) 0 clamp(64px, 7vw, 112px); border-bottom: 1px solid var(--rule); }
.phero .crumbs { margin-bottom: clamp(48px, 7vw, 104px); }
.phero h1 { max-width: 14ch; }
.phero .lead { margin-top: clamp(20px, 2vw, 28px); color: var(--fg-2); }
.p-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3.4vw, 48px); }
/* text + photo */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: start; }
.split-t { grid-column: 1 / span 5; }
.split-t > * + * { margin-top: 20px; }
.split-t p { color: var(--fg-2); max-width: 52ch; }
.split-f { grid-column: 7 / -1; }
.split-f .wt-img { aspect-ratio: 4 / 3; }
.split-f figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; color: var(--fg-3); }
.split.flip .split-t { grid-column: 8 / -1; grid-row: 1; }
.split.flip .split-f { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 899px) { .split-t, .split-f, .split.flip .split-t, .split.flip .split-f { grid-column: 1 / -1; grid-row: auto; } }
/* job-card row: three across, two on tablets, one on phones */
.jobrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) var(--gap); align-items: start; }
@media (max-width: 1023px) { .jobrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .jobrow { grid-template-columns: minmax(0, 1fr); } }
/* FAQ: native details / summary, so it opens with scripts off */
.faq { border-top: 1px solid var(--rule); max-width: 960px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline-offset: 0; }
.faq-a { padding: 0 0 28px; max-width: 64ch; color: var(--fg-2); }
.faq-a > * + * { margin-top: 14px; }
/* link index: cities served, helpful links. A numbered drawing-set list, two or three across */
.lindex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); }
.lindex a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 14px 0;
  border-bottom: 1px solid var(--rule); color: var(--fg); text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.lindex .n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.lindex .arr { color: var(--fg-3); transition: transform 500ms var(--ease); }
.lindex a:hover { color: var(--accent); }
.lindex a:hover .arr, .lindex a:focus-visible .arr { transform: translateX(4px); color: var(--accent); }
@media (max-width: 1023px) { .lindex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .lindex { grid-template-columns: minmax(0, 1fr); } }
/* closing call to action: Request a quote + Call 24/7 */
.pcta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px var(--gap); }
.pcta h2 .ln { display: block; max-width: 16ch; }
.pcta p { margin-top: 20px; color: var(--fg-2); max-width: 46ch; }
@media (max-width: 899px) { .pcta { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .pcta .p-acts .btn, .phero .p-acts .btn { flex: 1 1 100%; } }

/* one text link under a hero's buttons */
.phero-more { margin-top: 24px; }
/* a link set in running text (case-study story) */
.ilink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.ilink:hover { color: var(--accent); }
/* "Completed Oct 2026": a small mono line on case studies and their tiles */
.done { display: block; color: var(--fg-2); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
/* share: opens the share panel (core.js PO.share); needs scripts */
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; color: var(--fg);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.share-btn svg { color: var(--accent); }
.share-btn:hover { color: var(--accent); }
html:not(.js) .share-btn { display: none; }
/* the share panel (core.js PO.share): a popover by the button, a bottom sheet on phones; inside the open viewer when
   there is one. The scrim catches a click outside (transparent, except behind the phone sheet) */
.shp-wrap { position: fixed; inset: 0; z-index: 450; }
.shp-wrap[hidden] { display: none; }
.shp-scrim { position: absolute; inset: 0; background: transparent; }
.shp { position: fixed; left: 50%; top: 50%; width: 288px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 6px 8px 8px; background: var(--bg-2); color: var(--fg); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45); text-align: left; animation: shp-in 180ms var(--ease); }
@keyframes shp-in { from { opacity: 0; transform: translateY(6px); } }
.shp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 4px 12px; }
.shp-h { color: var(--fg-2); }
.shp-x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.shp-x:hover { color: var(--accent); }
.shp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shp-i { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--fg); font: 500 15px/1.3 var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.shp-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; }
@media (hover: hover) {
  .shp-i:hover { background: var(--tint); color: var(--accent); }
  .shp-i:hover .shp-ic { border-color: var(--accent); }
}
.shp-i:focus-visible, .shp-x:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.shp-fb { display: grid; gap: 6px; padding: 8px 10px 6px; }
.shp-fb[hidden] { display: none; }
.shp-fb label { color: var(--fg-2); }
.shp-fb input { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--fg); font: 400 14px/1.3 var(--mono); }
.shp-fb input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.shp-wrap.is-sheet .shp-scrim { background: rgba(17, 16, 16, .6); }
.shp-wrap.is-sheet .shp { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 85vh; max-height: 85dvh; border-width: 1px 0 0;
  border-radius: 16px 16px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); animation-name: shp-up; animation-duration: 240ms; }
@keyframes shp-up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 400; padding: 12px 18px; background: var(--btn-bg); color: var(--btn-fg);
  font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }
/* inner pages: small items fade up once as they enter (core.js adds .fx only below the fold, never to a whole
   section, never without scripts or with reduced motion; anything already on screen or jumped to shows at once) */
.fx { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.fx:not(.in) { opacity: 0; transform: translateY(16px); }
.fx.now { transition: none; }

/* ---------- 3.12 footer ---------- */
.foot { background: var(--bg-3); color: var(--fg); padding: clamp(56px, 6vw, 88px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.foot-brand img { width: 170px; }
.foot-brand p { color: var(--fg-2); margin-top: 20px; max-width: 34ch; font-size: 15px; }
.foot-h { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.foot li a { display: inline-block; padding: 7px 0; font-size: 15px; text-decoration: none; color: var(--fg); }
.foot li a:hover { color: var(--accent); }
.foot-legal { margin-top: clamp(40px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--fg-2); font-size: 14px; }
.foot-legal a { color: var(--fg); }
/* service areas: all eleven cities west to east, the country-club page and the index, in short columns */
.foot-areas ul { columns: 2; column-gap: var(--gap); }
.foot-areas li { break-inside: avoid; }
@media (min-width: 1200px) { .foot-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .foot-areas { grid-column: 1 / -1; order: 1; }
}
@media (min-width: 600px) and (max-width: 899px) { .foot-areas ul { columns: 3; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 2.5 motion ---------- */
/* the homepage's per-element reveals (hidden before scripts run) live in home.css: inner pages never hide content
   before core.js has run, so a slow first visit cannot leave them blank */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 400ms; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
