/*!
 * RSRT Construction - site.css (shared by every public page)
 * Theme: "DraftSpan" (Georgia display + Inter body, warm stone palette).
 * ===========================================================================
 * COMPONENT INDEX - class names other pages rely on. Keep this list in sync.
 * ---------------------------------------------------------------------------
 * PAGE HOOKS
 *   <html class="js">        added by a one-line inline script in <head>
 *                            (`document.documentElement.classList.add('js')`)
 *   <body data-page="home|estimate|...">  data-page="estimate" hides the
 *                            mobile sticky CTA bar and its body padding.
 *   .js-only / .no-js-only   show only with / without JavaScript
 *   .sr-only                 visually hidden, still read by screen readers
 *   .skip-link               "Skip to content" (first thing in the header block)
 *   <main id="main">         skip-link target on every page
 *
 * LAYOUT
 *   .container               max 1200px + page gutters
 *   .container--narrow       max 760px (long-form text, forms)
 *   .section                 vertical rhythm band (transparent = --bg)
 *   .section--panel          --panel band      .section--paper  paper band
 *   .section--tight          smaller vertical padding
 *   .section-head            kicker + h2 + lede block (margin below)
 *   .section-head--split     heading left, action (link/badge) right
 *   .section-foot            centered row of actions under a section
 *   .grid-2 / .grid-3        responsive grids (1 col on phones)
 *   .split                   text + media, 2 columns ≥ 900px (.split--flip)
 *   .stack / .stack-lg       vertical flow spacing
 *
 * TYPE
 *   h1/.display (Georgia, hero size)  h2/.h2 (Georgia section size)
 *   h3/.h3 (Inter 700)   em inside h1/h2 = italic accent word (accent-700)
 *   .lede (17-18px muted)   .muted   .small   .kicker (section label)
 *   .eyebrow (pill label)   .prose (long-form copy: p, ul, ol, h2, h3 spacing)
 *   .link (underlined accent link)   small accent text uses --accent-text (AA on --bg)
 *
 * BUTTONS
 *   .btn + .btn-primary | .btn-secondary | .btn-ghost | .btn-link (text + →)
 *   .btn-lg (48px)  .btn-sm (40px)  .btn-block (full width)
 *   .btn-row (wrapping row of buttons)   .btn .ico (inline svg icon, 18px)
 *
 * HEADER / NAV  (markup lives in index.html between build:header markers)
 *   .site-header .header-inner .brand .brand-logo .brand-name
 *   .nav-primary .nav-list .nav-link[aria-current=page]
 *   .nav-dd .nav-dd-btn .nav-dd-panel      (Services dropdown)
 *   .header-actions .header-phone .header-call .header-cta .menu-btn
 *   .menu-sheet .menu-group .menu-label .menu-link .menu-actions
 *   .mcta                     mobile sticky Call / Free estimate bar (≤768px)
 *
 * SURFACES
 *   .card (.card-pad)         paper card, radius 16, card shadow
 *   .media-frame              photo frame (radius 16, border); .media-frame--hero radius 20
 *   .feat-grid .feat (a.feat = link tile) .feat-ico .feat-body .feat-title
 *       .feat-desc .feat-points .feat-more
 *   .steps .step .step-n .step-body .step-title .step-desc   (numbered steps)
 *   .trust .trust-title .trust-copy .chips .chip             (trust block)
 *   .cta-band .cta-band__body .cta-band__title .cta-band__text .cta-band__contact
 *   .cta-inline               inline "ready when you are" row
 *   .owner-block              "who you'll work with" card
 *   .notice / .notice--ok / .notice--error   status banners
 *
 * HERO
 *   .hero .hero-grid .hero-copy .hero-media .hero-caption .proof-row .proof-item
 *   .hero-media img.obj-top   crop the hero photo from its top edge instead of the centre
 *   .page-head                simple inner-page header (breadcrumbs + h1 + lede)
 *
 * DATA (markup produced ONLY by assets/js/render.js)
 *   .project-grid (.project-grid--2 = 2-col max, .project-grid--1 = one card beside text)
 *       .project-card .project-card__link
 *       .project-card__media .project-card__body .project-card__title
 *       .project-card__meta .project-card__more .project-card__quick
 *   .filter-chips .filter-chip[aria-pressed]   (data-filter-target="#grid-id")
 *   .review-grid (.review-grid--2)  .review-card .review-card--featured
 *       .review-card__stars .review-card__text .review-card__more
 *       .review-card__author .review-card__name   .stars
 *   .rating-badge             pill holding the review-summary marker
 *   .gallery-grid             project page photo grid (a[data-gallery-item])
 *   Empty build containers (only comments inside) show a no-text skeleton.
 *
 * NAVIGATION AIDS
 *   .breadcrumbs (ol > li > a, last li aria-current="page")
 *   .city-chips  (list of .chip links/spans)
 *   .faq > details > summary + .faq-body
 *
 * FORMS (estimate page, review page)
 *   .form .form-grid (.span-2)  .field .label .req (the * marker) .hint
 *   .input .select .textarea    [aria-invalid="true"] turns red
 *   .field-error (id referenced by aria-describedby)  .error-summary (role=alert)
 *   .choice-chips > label.choice-chip > input[type=radio] + span   (≥44px chips)
 *   .file-picker (visually hidden input + .btn label) .file-list .file-item
 *       .file-name .file-size .file-status .file-remove
 *   .progress > span (width = %)   .form-actions   .form-note   .hp (honeypot)
 *   fieldset.form-section > legend.form-section-title (floated legend section heading)
 *
 * LIGHTBOX (created by site.js - no markup needed)
 *   dialog.lightbox .lightbox__bar .lightbox__title .lightbox__counter
 *   .lightbox__stage .lightbox__img .lightbox__nav(--prev/--next) .lightbox__close
 *   .lightbox__thumbs .lightbox__thumb[aria-current] .lightbox__cta
 *
 * FOOTER
 *   .site-footer .footer-card .footer-main .footer-brand .footer-cols
 *   .footer-col .footer-heading .footer-links .footer-bottom
 *   .site-footer--compact     (review pages: bottom bar only)
 *
 * SERVICE PAGES
 *   .svc-hero .svc-cols .svc-aside .svc-faq .svc-others .svc-others-note
 *   .svc-projects .svc-illus (drawn hero) .svc-auto (hidden while its grid is empty)
 * ===========================================================================
 */

/* ----------------------------------------------------------------- fonts */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.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;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: 238 235 231;
  --card: 245 243 240;
  --paper: 253 252 250;
  --panel: 250 249 246;
  --field: 244 241 237;
  --text: 30 28 26;
  --muted: 108 102 96;
  --border: 215 210 204;
  --border-strong: 198 192 184;
  --accent: 168 138 102;
  --accent-600: 150 122 88;
  --accent-700: 130 106 76;
  --accent-800: 110 89 63;
  /* Small accent text (labels, links) uses accent-800: accent-700 is only 4.3:1 on --bg. */
  --accent-text: 110 89 63;
  --success: 21 128 61;
  --danger: 185 28 28;
  --ring: 148 138 126;
  --radius-card: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.02), 0 16px 36px rgba(40, 30, 18, 0.1);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 22px rgba(40, 30, 18, 0.07);

  /* Space between the header and the first line (breadcrumbs) on inner pages. */
  --page-top: clamp(20px, 3vw, 36px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 64px;
  --mcta-h: 0px; /* set to the bar height on phones (see .mcta) */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --header-h: 68px; }
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
hr { border: 0; border-top: 1px solid rgb(var(--border) / 0.8); margin: 32px 0; }
[hidden] { display: none !important; }

::selection { background: rgb(var(--accent) / 0.28); }

:focus-visible {
  outline: 2px solid rgb(var(--accent-700));
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ------------------------------------------------------------ typography */
h1, h2, h3, h4 { margin: 0; color: rgb(var(--text)); }

h1, .display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em, .display em, .h2 em {
  font-style: italic;
  color: rgb(var(--accent-700));
}
h3, .h3 {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 { font-size: 16px; font-weight: 700; }

.lede {
  font-size: clamp(16.5px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgb(var(--muted));
  max-width: 62ch;
}
.muted { color: rgb(var(--muted)); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: rgb(var(--muted)); }

.kicker {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgb(var(--accent-text));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--accent) / 0.12);
  border: 1px solid rgb(var(--accent) / 0.28);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--accent-text));
}

.link {
  color: rgb(var(--accent-text));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-700) / 0.4);
}
.link:hover { color: rgb(var(--text)); text-decoration-color: currentColor; }

.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
/* A section label (.kicker) opening a .prose block: its heading sits right under it, at section size. */
.prose > .kicker + h2 { margin-top: 0; font-size: clamp(28px, 3.4vw, 42px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose a:not(.btn) { color: rgb(var(--accent-text)); font-weight: 600; }
.prose strong { font-weight: 650; }

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--panel {
  background: rgb(var(--panel));
  border-block: 1px solid rgb(var(--border) / 0.55);
}
.section--paper {
  background: rgb(var(--paper));
  border-block: 1px solid rgb(var(--border) / 0.55);
}
/* A plain section that ends <main> (the CTA band) gets no bottom padding: the footer margin is the gap. */
main > .section:last-child:not(.section--panel):not(.section--paper) { padding-bottom: 0; }
/* Two bands in a row share one border line. */
.section--panel + .section--paper,
.section--paper + .section--panel,
.section--panel + .section--panel { border-top: 0; }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head > .lede, .section-head h2 + .lede { margin-top: 14px; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.section-head--split > :first-child { max-width: 700px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 40px);
}

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.grid-2, .grid-3 { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip > :first-child { order: 2; }
}

/* ---------------------------------------------------------------- icons */
.ico { width: 18px; height: 18px; flex: none; }
svg.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------------------- buttons */
/* Matches DraftSpan's live buttons (auth card .btn / .btnPrimary / .btnSecondary):
   14px corners, 800 weight, tan fill that flips to a light tint on hover,
   0.14s state transitions (none under reduced motion). Header and footer
   CTAs stay pills with DraftSpan's soft tan glow. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .14s, border-color .14s, box-shadow .14s, transform .14s, color .14s;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.site-header .btn, .mcta .btn, .footer-card .btn { border-radius: 999px; }

/* Owner's choice: DraftSpan's exact tan fill (#A88A66) with white text. That is 3.2:1
   contrast (below WCAG AA for normal text); accepted deliberately to match DraftSpan.
   Do not "fix" to accent-700 without asking. */
.btn-primary {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 12px 22px rgba(40, 30, 18, 0.16);
}
.btn-primary:hover:not([disabled]) {
  background: rgb(var(--accent) / 0.1);
  color: rgb(var(--accent));
  box-shadow: none;
}
.btn-primary:active:not([disabled]) { background: rgb(var(--accent) / 0.16); color: rgb(var(--accent)); }
.site-header .btn-primary, .footer-card .btn-primary, .mcta .btn-primary { box-shadow: 0 2px 10px rgb(var(--accent) / 0.35); }

.btn-secondary {
  background: #fff;
  border-color: rgba(92, 80, 64, 0.32);
  color: rgb(var(--text));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover:not([disabled]) {
  border-color: rgba(92, 80, 64, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.btn-ghost { background: transparent; color: rgb(var(--accent-text)); }
.btn-ghost:hover { background: rgb(var(--accent) / 0.1); }

.btn-link {
  min-height: 44px;
  padding: 10px 0;
  background: none;
  border: 0;
  color: rgb(var(--accent-text));
  box-shadow: none;
}
.btn-link::after { content: "→"; transition: transform 0.16s var(--ease); }
.btn-link:hover { color: rgb(var(--text)); }
.btn-link:hover::after { transform: translateX(3px); }

.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn .ico { width: 18px; height: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Phones: a long label wraps inside its button instead of pushing the page sideways.
   Phone-number buttons (a[href^="tel:"]) and the short sticky-bar and menu buttons stay on one line. */
@media (max-width: 559px) {
  .btn { max-width: 100%; white-space: normal; text-wrap: balance; }
  .btn-lg { padding-inline: 18px; }
  .mcta .btn, .menu-actions .btn { white-space: nowrap; }
}

/* --------------------------------------------------------- skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(var(--accent-700));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg) / 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(var(--border) / 0.55);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgb(var(--text));
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { opacity: 0.9; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(var(--border) / 0.9);
  background: rgb(var(--paper));
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 399px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; flex-shrink: 1; }
  .brand-logo { width: 38px; height: 38px; }
  /* Scales down with the screen; the ellipsis is only a safety net for wide fallback fonts. */
  .brand-name { font-size: clamp(15px, 4.6vw, 1.08rem); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

.nav-primary { display: none; }
@media (min-width: 1024px) {
  .nav-primary { display: block; }
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: rgb(var(--muted));
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--accent-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: rgb(var(--text)); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-dd-btn .ico { width: 14px; height: 14px; transition: transform 0.15s var(--ease); }
.nav-dd-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }

.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  padding: 8px;
  border-radius: 16px;
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.8);
  box-shadow: var(--shadow-card);
  display: none;
}
/* No-JS fallback: open on hover / keyboard focus. With JS, aria-expanded rules. */
html:not(.js) .nav-dd:hover .nav-dd-panel,
html:not(.js) .nav-dd:focus-within .nav-dd-panel,
.nav-dd.is-open .nav-dd-panel { display: block; }
@media (hover: hover) {
  .js .nav-dd:hover .nav-dd-panel { display: block; }
  /* hover bridge so the panel doesn't close crossing the gap */
  .nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
.nav-dd-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: rgb(var(--text) / 0.86);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}
.nav-dd-panel a:hover, .nav-dd-panel a[aria-current="page"] { background: rgb(var(--accent) / 0.1); color: rgb(var(--text)); }
.nav-dd-panel a span[aria-hidden] { color: rgb(var(--accent-700)); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-phone {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  color: rgb(var(--text));
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.header-phone:hover { background: rgb(var(--accent) / 0.1); }
.header-phone .ico { color: rgb(var(--accent-700)); width: 17px; height: 17px; }
.header-call,
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-strong) / 0.9);
  background: rgb(var(--paper) / 0.9);
  color: rgb(var(--text));
  text-decoration: none;
}
.header-call:hover, .menu-btn:hover { border-color: rgb(var(--accent) / 0.7); }
.header-call .ico, .menu-btn .ico { width: 20px; height: 20px; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.header-cta { display: none; }
/* Under 360px the wordmark, call and menu buttons do not fit in one row. The header keeps the
   logo badge (it carries the name; the link has an aria-label) and drops the wordmark, so the
   Call button stays on the first screen. */
@media (max-width: 359px) {
  .site-header .brand-name { display: none; }
}
@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
}
@media (min-width: 1180px) {
  .header-call { display: none; }
  .header-phone { display: inline-flex; }
}
/* On mid widths the centred nav + actions get tight: shrink the wordmark. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .brand-name { font-size: 1.1rem; }
  .nav-link { padding-inline: 9px; }
  .nav-link::after { left: 9px; right: 9px; }
}

/* mobile menu sheet */
.menu-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: rgb(var(--paper));
  border-bottom: 1px solid rgb(var(--border) / 0.8);
  box-shadow: 0 18px 36px rgba(40, 30, 18, 0.14);
}
.menu-group + .menu-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgb(var(--border) / 0.6); }
.menu-label {
  display: block;
  padding: 10px 4px 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--accent-text));
}
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 4px;
  color: rgb(var(--text));
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}
.menu-link[aria-current="page"] { color: rgb(var(--accent-text)); }
.menu-link span[aria-hidden] { color: rgb(var(--muted)); }
.menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) {
  .menu-sheet { display: none !important; }
}

/* ------------------------------------------------ mobile sticky CTA bar */
.mcta { display: none; }
@media (max-width: 768px) {
  :root { --mcta-h: 66px; }
  body { padding-bottom: calc(var(--mcta-h) + env(safe-area-inset-bottom)); }
  body[data-page="estimate"] { padding-bottom: 0; }
  .mcta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgb(var(--paper));
    border-top: 1px solid rgb(var(--border) / 0.9);
    box-shadow: 0 -8px 24px rgba(40, 30, 18, 0.08);
    transition: transform 0.18s var(--ease);
  }
  .mcta .btn { min-height: 46px; }
  /* Pages with a [data-hero]: hidden until site.js adds .is-visible (the hero has its own Call and estimate buttons). */
  .js body:has([data-hero]) .mcta:not(.is-visible) { transform: translateY(110%); visibility: hidden; transition: transform 0.18s var(--ease), visibility 0s 0.18s; }
  body[data-page="estimate"] .mcta { display: none; }
  /* After a request is sent, offer only the call button. */
  body[data-page="thank-you"] .mcta { grid-template-columns: 1fr; }
  body[data-page="thank-you"] .mcta .btn-primary { display: none; }
  /* The open menu sheet has its own call and estimate buttons. */
  body.menu-open .mcta { transform: translateY(110%); visibility: hidden; }
}
/* Narrow phones: less side padding keeps "Free estimate" inside the bar. */
@media (max-width: 399px) {
  .mcta .btn { padding-inline: 12px; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(16px, 3vw, 40px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-copy h1 { max-width: 17ch; }
.hero-copy .lede { max-width: 46ch; }
.hero-copy .btn-row { margin-top: 6px; }
.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgb(var(--border) / 0.7);
  background: rgb(var(--card));
}
.hero-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(var(--paper) / 0.94);
  border: 1px solid rgb(var(--border) / 0.8);
  box-shadow: 0 6px 18px rgba(40, 30, 18, 0.14);
  color: rgb(var(--text));
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}
.hero-caption:hover { background: #fff; }
.hero-caption span[aria-hidden] { color: rgb(var(--accent-700)); }

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--text) / 0.84);
  text-decoration: none;
}
a.proof-item:hover { color: rgb(var(--accent-800)); text-decoration: underline; }
.proof-item .stars { color: rgb(var(--accent-text)); letter-spacing: 0.06em; }
.proof-item .tick,
.tick {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--accent-700));
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 7.5px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
/* A proof item whose build marker is still empty is hidden (never shows "· reviews"). */
.proof-item:has([data-live]:empty),
.proof-row li:has([data-live]:empty) { display: none; }

@media (max-width: 1023px) {
  .hero { padding-top: 12px; }
  .hero-media { order: -1; }
  .hero-copy { gap: 14px; }
}
@media (max-width: 520px) {
  .hero-copy .btn-row { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .hero-copy .btn-row .btn { width: 100%; }
  .hero-copy h1 { font-size: clamp(33px, 9vw, 40px); }
  .hero-copy .lede { font-size: 16.5px; }
  /* The photo label sits under the photo on phones, so a long label never wraps over the picture. */
  .hero-caption {
    position: static;
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 18px;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.35;
  }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
  .hero-media img { aspect-ratio: auto; height: min(72vh, 680px); min-height: 460px; border-radius: 20px; box-shadow: var(--shadow-card); }
  .hero-caption { left: 18px; bottom: 18px; max-width: calc(100% - 36px); }
  /* Reserve two lines so filling the live counts never moves the centred hero text (CLS). */
  .proof-row { min-height: 66px; align-content: flex-start; }
}

/* inner page header */
.page-head { padding-block: var(--page-top) clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 16px; }
.page-head .eyebrow { margin-bottom: 16px; }

/* ------------------------------------------------------------ surfaces */
.card {
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.7);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: clamp(20px, 3vw, 28px); }

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgb(var(--border) / 0.7);
  background: rgb(var(--card));
}
.media-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.media-frame--hero { border-radius: 20px; box-shadow: var(--shadow-card); }
.media-frame figcaption { padding: 10px 14px; font-size: 13.5px; color: rgb(var(--muted)); background: rgb(var(--paper)); }

/* feature tiles (DraftSpan .feat) */
.feat-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .feat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feat {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-radius: 16px;
  background: rgb(var(--paper) / 0.7);
  border: 1px solid rgb(var(--border) / 0.7);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease), transform 0.14s var(--ease);
}
.section--panel .feat, .section--paper .feat { background: rgb(var(--paper)); }
a.feat:hover, .feat:hover {
  border-color: rgb(var(--accent) / 0.45);
  box-shadow: 0 12px 28px rgba(40, 30, 18, 0.08);
  transform: translateY(-1px);
}
.feat-ico {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgb(var(--accent) / 0.13);
  color: rgb(var(--accent-700));
}
.feat-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat-body { min-width: 0; display: flex; flex-direction: column; }
.feat-title { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; color: rgb(var(--text)); }
.feat-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: rgb(var(--muted)); }
.feat-points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.feat-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: rgb(var(--text) / 0.78);
}
.feat-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 5px;
  border: solid rgb(var(--accent-700));
  border-width: 0 0 1.8px 1.8px;
  transform: rotate(-45deg);
}
.feat-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: rgb(var(--accent-text)); }
a.feat:hover .feat-more { color: rgb(var(--text)); }
.feat-note { margin-top: 18px; font-size: 15px; color: rgb(var(--muted)); }

/* numbered steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
}
@media (min-width: 1024px) {
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps--4 .step { flex-direction: column; }
}
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--accent) / 0.14);
  color: rgb(var(--accent-text));
  font-size: 14px;
  font-weight: 800;
}
.step-title { margin: 3px 0 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; }
.step-desc { margin: 5px 0 0; font-size: 15px; line-height: 1.55; color: rgb(var(--muted)); }
.steps--compact { gap: 12px; }
.steps--compact .step-title { font-size: 15px; }
.steps--compact .step-desc { font-size: 14px; }

/* trust block */
.trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 16px;
  background: rgb(var(--accent) / 0.07);
  border: 1px solid rgb(var(--accent) / 0.18);
}
.trust-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: rgb(var(--accent-text)); }
.trust-copy { margin: 0; font-size: 15px; line-height: 1.6; color: rgb(var(--text) / 0.8); }
/* --muted measures 4.48:1 on the tinted .trust ground (fails AA): darken step copy inside it. */
.trust .step-desc { color: rgb(var(--text) / 0.78); }

.chips, .city-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--accent) / 0.25);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(var(--text) / 0.82);
  text-decoration: none;
}
a.chip { min-height: 40px; padding-inline: 14px; }
a.chip:hover { border-color: rgb(var(--accent) / 0.6); color: rgb(var(--text)); }
.city-chips .chip { font-size: 15px; padding: 9px 16px; background: rgb(var(--paper)); }

/* heading block left, content right (e.g. service area on home) */
.band-split { display: grid; gap: 20px 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.band-split > .section-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .band-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* CTA band (DraftSpan "trial" block) */
.cta-band {
  position: relative;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(120deg, rgb(var(--accent) / 0.2), rgb(var(--accent) / 0.07));
  border: 1px solid rgb(var(--accent) / 0.32);
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
}
.cta-band__title { margin: 0; }
.cta-band__text { margin: 12px 0 0; color: rgb(var(--text) / 0.76); font-size: 16.5px; max-width: 52ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 14px; }
.cta-band__actions .btn-row .btn { flex: 1 1 200px; }
.cta-band__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cta-band__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: rgb(var(--text));
  font-weight: 650;
  text-decoration: none;
}
.cta-band__contact a:hover { color: rgb(var(--accent-800)); text-decoration: underline; }
.cta-band__contact .ico { color: rgb(var(--accent-700)); }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 40px);
  padding: 18px clamp(18px, 3vw, 24px);
  border-radius: 16px;
  background: rgb(var(--accent) / 0.07);
  border: 1px solid rgb(var(--accent) / 0.2);
}
.cta-inline__text { margin: 0; font-weight: 650; font-size: 16.5px; }
.cta-inline__text span { display: block; font-weight: 400; font-size: 15px; color: rgb(var(--muted)); }
@media (max-width: 520px) {
  .cta-inline .btn-row { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .cta-inline .btn-row .btn { width: 100%; }
}

.owner-block {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .owner-block { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.owner-names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.owner-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.8);
  font-weight: 650;
}
.owner-initial {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--accent) / 0.16);
  color: rgb(var(--accent-800));
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.notice { padding: 12px 14px; border-radius: 12px; font-size: 15px; border: 1px solid rgb(var(--border)); background: rgb(var(--paper)); }
.notice--ok { color: #165d2f; background: #eefaf2; border-color: #9ed4b0; }
.notice--error { color: #7a1f1f; background: #fff2f2; border-color: #df8b8b; }

/* ------------------------------------------------------------ projects */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.filter-chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-strong));
  background: rgb(var(--paper));
  color: rgb(var(--text) / 0.84);
  font-size: 14px;
  font-weight: 650;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-chip:hover { border-color: rgb(var(--accent) / 0.7); }
.filter-chip[aria-pressed="true"] {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.project-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* One card next to text (e.g. inside .svc-cols): one column at every width, never stretched wide. */
.project-grid.project-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.project-grid.is-loading { opacity: 0.55; transition: opacity 0.15s; }
.project-empty { grid-column: 1 / -1; margin: 0; padding: 24px; text-align: center; color: rgb(var(--muted)); }

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
.project-card:hover {
  border-color: rgb(var(--accent) / 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.project-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.project-card__link:focus-visible { outline-offset: -3px; border-radius: 16px; }
.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgb(var(--card));
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card__noimg { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(var(--card)), rgb(var(--card)) 12px, rgb(var(--bg)) 12px, rgb(var(--bg)) 24px); }
.project-card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 16px 18px 18px; }
.project-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.project-card__meta { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(var(--muted)); }
.project-card__more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: rgb(var(--accent-text)); }
.project-card__link:hover .project-card__more { color: rgb(var(--text)); }
.project-card__quick {
  display: inline-flex;
  align-items: center;
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border) / 0.9);
  background: rgb(var(--paper) / 0.94);
  color: rgb(var(--text));
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(40, 30, 18, 0.16);
  transition: background-color 0.15s var(--ease);
}
/* 44px hit area around a 36px visual pill */
.project-card__quick::before { content: ""; position: absolute; inset: -4px; }
.project-card__quick:hover { background: #fff; }

/* Empty build container (comments only) = neutral no-text skeleton. */
.project-grid:empty,
.review-grid:empty {
  min-height: 360px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent, rgb(var(--paper) / 0.55), transparent) 0 0 / 40% 100% no-repeat,
    rgb(var(--border) / 0.28);
}
@media (prefers-reduced-motion: no-preference) {
  .project-grid:empty, .review-grid:empty { animation: rsrt-shimmer 1.4s linear infinite; }
}
@keyframes rsrt-shimmer { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }

/* Home teasers stay short on phones: 4 projects / featured + 3 reviews
   (all stay in the HTML for search engines; hidden lazy images never load). */
@media (max-width: 639px) {
  .project-grid[data-filter-limit] > .project-card:nth-child(n+5) { display: none; }
  .review-grid--teaser > .review-card:nth-child(n+5) { display: none; }
}

/* project page gallery */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgb(var(--border) / 0.7);
  background: rgb(var(--card));
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------- reviews */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--accent) / 0.3);
  font-size: 14.5px;
  font-weight: 650;
  color: rgb(var(--text));
  text-decoration: none;
  white-space: nowrap;
}
.rating-badge:empty, .rating-badge:has(> [data-live]:empty) { display: none; }
.stars { color: rgb(var(--accent-text)); letter-spacing: 0.08em; font-size: 0.95em; }

.review-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (min-width: 720px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: clamp(20px, 2.4vw, 24px);
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.7);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.review-card__stars { line-height: 1; }
.review-card__text { margin: 0; font-size: 15.5px; line-height: 1.62; color: rgb(var(--text) / 0.86); }
.review-card__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.review-card.is-expanded .review-card__text p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.review-card__more {
  align-self: flex-start;
  min-height: 36px;
  margin: -6px 0 0 -2px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: rgb(var(--accent-text));
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-700) / 0.35);
  text-underline-offset: 3px;
}
.review-card__more:hover { color: rgb(var(--text)); }
.review-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--border) / 0.6);
  font-size: 14px;
}
.review-card__name { font-weight: 700; color: rgb(var(--text)); }
.review-card__author time { color: rgb(var(--muted)); }

.review-card--featured {
  position: relative;
  padding: clamp(24px, 3.4vw, 36px);
  background: rgb(var(--paper));
  border-color: rgb(var(--accent) / 0.3);
  box-shadow: var(--shadow-card);
}
.review-card--featured::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  color: rgb(var(--accent) / 0.25);
  pointer-events: none;
}
.review-card--featured .review-card__text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: rgb(var(--text));
}
.review-card--featured .review-card__text p { -webkit-line-clamp: 8; line-clamp: 8; }
.review-card--featured .review-card__text { margin-block: auto; padding-block: 8px; }
.review-card--featured .review-card__author { margin-top: 0; }
@media (min-width: 720px) {
  .review-grid > .review-card--featured { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .review-grid > .review-card--featured { grid-column: span 2; grid-row: span 2; align-self: stretch; }
}

/* ---------------------------------------------------------- breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgb(var(--muted));
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgb(var(--border-strong)); }
.breadcrumbs a { color: rgb(var(--muted)); text-decoration: none; padding-block: 6px; }
.breadcrumbs a:hover { color: rgb(var(--accent-700)); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: rgb(var(--text)); font-weight: 600; }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.7);
  border-radius: 14px;
  transition: border-color 0.15s var(--ease);
}
.faq details[open] { border-color: rgb(var(--accent) / 0.4); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 16.5px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(var(--accent) / 0.13);
  color: rgb(var(--accent-text));
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.15s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 18px 18px; color: rgb(var(--text) / 0.82); font-size: 15.5px; line-height: 1.65; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 22px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.label, .field > legend {
  padding: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: rgb(var(--text));
}
.label .opt, .field > legend .opt { font-weight: 450; color: rgb(var(--muted)); font-size: 14px; }
.req { color: rgb(var(--danger)); margin-left: 3px; font-weight: 700; }
.hint { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(var(--muted)); }

/* DraftSpan .field-input: white, 50px, 13px corners, faint warm border, tan focus ring. */
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 80, 64, 0.28);
  border-radius: 13px;
  background: #fff;
  color: rgb(var(--text));
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  line-height: 1.4;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.input::placeholder, .textarea::placeholder { color: rgba(120, 114, 106, 0.6); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(92, 80, 64, 0.45); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / 0.22);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea,
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: rgb(var(--danger));
  box-shadow: 0 0 0 3px rgb(var(--danger) / 0.12);
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--danger));
}
.field-error:empty { display: none; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: rgb(var(--danger)); color: #fff; font-size: 11px; font-weight: 800; }

.error-summary {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgb(var(--danger) / 0.45);
  background: #fff5f5;
  color: #7a1f1f;
}
.error-summary:focus { outline: 2px solid rgb(var(--danger)); outline-offset: 2px; }
.error-summary h2, .error-summary .error-summary__title { font-family: var(--font-sans); font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #7a1f1f; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #7a1f1f; font-weight: 600; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { position: relative; display: inline-flex; }
.choice-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-strong));
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: rgb(var(--text) / 0.86);
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
}
.choice-chip:hover span { border-color: rgb(var(--accent) / 0.7); }
.choice-chip input:checked + span {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: #fff;
}
.choice-chip input:focus-visible + span { outline: 2px solid rgb(var(--accent-700)); outline-offset: 2px; }
.choice-chips[aria-invalid="true"] .choice-chip span,
.field--invalid .choice-chip span { border-color: rgb(var(--danger) / 0.7); }

.file-picker { position: relative; display: inline-flex; }
.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-picker input[type="file"]:focus-visible + .btn { outline: 2px solid rgb(var(--accent-700)); outline-offset: 2px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  border: 1px solid rgb(var(--border) / 0.9);
  background: #fff;
  font-size: 14.5px;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size, .file-status { color: rgb(var(--muted)); font-size: 13.5px; white-space: nowrap; }
.file-status--error { color: rgb(var(--danger)); }
.file-status--ok { color: rgb(var(--success)); }
.file-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgb(var(--field));
  color: rgb(var(--text));
  font-size: 18px;
  line-height: 1;
}
.file-remove:hover { background: rgb(var(--danger) / 0.12); color: rgb(var(--danger)); }
.file-item .progress { grid-column: 1 / -1; }

.progress { height: 4px; border-radius: 4px; background: rgb(var(--border) / 0.7); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: rgb(var(--accent-700)); transition: width 0.2s linear; }

.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-actions .btn { min-height: 52px; font-size: 16px; }
@media (min-width: 640px) {
  .form-actions { flex-direction: row; align-items: center; }
}
.form-note { margin: 0; font-size: 14px; color: rgb(var(--muted)); }

/* Form sections: <fieldset class="form-section"><legend class="form-section-title">.
   The floated legend is laid out like normal content (not drawn into the border). */
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section + .form-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid rgb(var(--border) / 0.7); }
legend.form-section-title, .form-section-title {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 0; font-family: var(--font-sans); font-size: 18px; font-weight: 750; letter-spacing: -0.01em;
}
.form-section-title + * { clear: both; }
.form-section-title .step-n { width: 26px; height: 26px; font-size: 13px; }
.form-section-title .opt { font-size: 14px; font-weight: 450; letter-spacing: 0; color: rgb(var(--muted)); }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- lightbox */
dialog.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(22 20 18 / 0.97);
  color: #f5f2ee;
  overscroll-behavior: contain;
}
dialog.lightbox::backdrop { background: rgb(22 20 18 / 0.9); }
dialog.lightbox[open] { display: flex; flex-direction: column; }
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(12px, 3vw, 24px) 10px;
}
.lightbox__heading { min-width: 0; flex: 1; }
.lightbox__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox__counter { margin: 2px 0 0; font-size: 13.5px; color: rgb(255 255 255 / 0.72); }
.lightbox__link {
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.lightbox__link:hover { background: rgb(255 255 255 / 0.1); }
@media (min-width: 640px) {
  .lightbox__link { display: inline-flex; }
}
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgb(255 255 255 / 0.18); }
.lightbox__close .ico, .lightbox__nav .ico { width: 22px; height: 22px; }
dialog.lightbox :focus-visible { outline-color: #e9d7bf; }
.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 7vw, 84px);
  touch-action: pan-y pinch-zoom;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.15s var(--ease);
}
.lightbox__img.is-loading { opacity: 0.35; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox__nav--prev { left: clamp(6px, 2vw, 20px); }
.lightbox__nav--next { right: clamp(6px, 2vw, 20px); }
.lightbox__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px clamp(12px, 3vw, 24px);
  overflow-x: auto;
  scrollbar-width: thin;
  list-style: none;
  margin: 0;
}
.lightbox__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgb(255 255 255 / 0.08);
  opacity: 0.6;
  transition: opacity 0.15s var(--ease), border-color 0.15s var(--ease);
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.9; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: #e9d7bf; }
.lightbox__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  font-size: 14.5px;
  color: rgb(255 255 255 / 0.8);
}
.lightbox__cta .btn { min-height: 40px; }
.lightbox__cta-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .lightbox__cta-link { display: none; } }
@media (max-width: 639px) {
  .lightbox__thumbs { display: none; }
  .lightbox__stage { padding: 0; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; background: rgb(0 0 0 / 0.45); }
}
body.lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------- footer */
.site-footer {
  margin-top: 80px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.footer-card {
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--border) / 0.7);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 14px 32px rgba(40, 30, 18, 0.06);
  overflow: hidden;
}
.footer-main {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 40px);
}
@media (min-width: 960px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 36ch; font-size: 14.5px; line-height: 1.6; color: rgb(var(--muted)); }
.footer-brand .btn-row { margin-top: 20px; }
.footer-cols { display: grid; gap: 28px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-heading {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--accent-text));
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a, .footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14.5px;
  color: rgb(var(--muted));
  text-decoration: none;
}
.footer-links a:hover { color: rgb(var(--text)); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: rgb(var(--text)); font-weight: 600; }
.footer-contact a { color: rgb(var(--text)); font-weight: 600; word-break: break-word; }
.footer-contact .footer-area { display: block; min-height: 0; margin-top: 6px; line-height: 1.5; font-size: 14px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 16px clamp(22px, 4vw, 40px);
  border-top: 1px solid rgb(var(--border) / 0.6);
  font-size: 13px;
  color: rgb(var(--muted));
}
@media (max-width: 400px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Compact footer (review/*.html: no site nav on those pages). */
.site-footer--compact { margin-top: 56px; }
.site-footer--compact .footer-bottom { border-top: 0; align-items: center; }
.site-footer--compact .footer-bottom a { color: rgb(var(--text)); font-weight: 600; text-decoration: none; }
.site-footer--compact .footer-bottom a:hover { text-decoration: underline; }

/* -------------------------------------------------------- service pages */
/* Shared by the 5 service pages (kitchen, bathroom, wall removal, whole-home, basement). */
.svc-hero { padding-top: var(--page-top); }
.svc-hero .breadcrumbs ol { margin-bottom: 14px; }
.svc-hero .hero-copy h1 { max-width: 18ch; font-size: clamp(33px, 4.2vw, 54px); }
@media (max-width: 1023px) { .svc-hero .hero-media img { aspect-ratio: 16 / 9; } }
/* Crop from the top edge (keeps a subject at the top of the photo, e.g. a pergola, in the 16:9 phone crop). */
.hero-media img.obj-top { object-position: 50% 0%; }
@media (min-width: 1024px) {
  .svc-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-hero .hero-media img { height: min(64vh, 560px); min-height: 420px; }
}
.svc-cols { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .svc-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.svc-cols .section-head { margin-bottom: 20px; }
.svc-cols .prose { max-width: 66ch; }
.svc-cols .prose h3 { margin-top: 1.8em; }
.card.prose > :first-child { margin-top: 0; }
.svc-aside { display: grid; gap: 18px; }
@media (min-width: 960px) { .svc-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.svc-aside .media-frame figcaption a { color: rgb(var(--text)); font-weight: 650; text-decoration: none; }
.svc-aside .media-frame figcaption a:hover { text-decoration: underline; }
.svc-aside .feat-points { margin-top: 0; }
.svc-aside .feat-points li { font-size: 14.5px; }
.svc-faq { display: grid; gap: 24px 56px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .svc-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); } }
.svc-faq .section-head { margin-bottom: 0; }
.svc-others .feat { padding: 18px; }
@media (min-width: 1024px) { .svc-others { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-others-note { margin: 18px 0 0; color: rgb(var(--muted)); font-size: 15px; }
/* Phones: 4 related projects are enough (the rest stay in the HTML). */
@media (max-width: 639px) { .svc-projects > .project-card:nth-child(n+5) { display: none; } }
/* Basement: no basement photos exist, so the hero uses a labelled line drawing. */
.svc-illus { margin: 0; padding: clamp(16px, 3vw, 28px); border-radius: 20px; border: 1px solid rgb(var(--border) / 0.7); background: rgb(var(--paper)); box-shadow: var(--shadow-card); }
.svc-illus svg { width: 100%; height: auto; }
.svc-illus figcaption { margin-top: 10px; font-size: 13.5px; color: rgb(var(--muted)); }
@media (max-width: 1023px) { .svc-hero .svc-illus { order: 0; } }
/* A related-projects section that stays hidden until the build fills it. */
.svc-auto:has(.project-grid:empty) { display: none; }

/* ------------------------------------------------------------ utilities */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html:not(.js) .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
.js .review-card__more:not(.is-needed) { display: none; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (min-width: 640px) { .show-sm-only { display: none !important; } }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .project-card:hover, a.feat:hover, .feat:hover { transform: none; }
  .project-card:hover .project-card__media img { transform: none; }
}

/* Larger touch targets where a miss does something unwanted. */
@media (pointer: coarse) {
  .filter-chip, .project-card__quick, .lightbox__cta .btn { min-height: 44px; }
  .file-remove { width: 44px; height: 44px; }
}

/* ----------------------------------------------------------------- print */
@media print {
  .site-header, .mcta, .menu-sheet, .lightbox, .project-card__quick { display: none !important; }
  body { background: #fff; padding: 0; }
}
