/* Shared structure. Themes set the variables and override layout where they differ. */
:root {
  --bg: #fff; --fg: #1b1c1d; --muted: #5d6166; --surface: #f4f3f0; --line: #dddad3;
  --accent: #1b1c1d; --accent-ink: #fff; --link: #1b1c1d;
  --head-font: system-ui, sans-serif; --body-font: system-ui, sans-serif;
  --head-weight: 600; --head-case: none; --head-track: -.015em; --head-lh: 1.1;
  --eyebrow-font: var(--body-font);
  --radius: 0px; --btn-radius: 2px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.6 var(--body-font); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }  /* the <img> inside keeps every layout rule */
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: var(--head-lh); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 1rem; }

.wrap { width: min(76rem, 100% - 2 * var(--gap)); margin-inline: auto; }
.narrow { width: min(46rem, 100% - 2 * var(--gap)); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; padding: .75rem 1rem; background: #000; color: #fff; }
.skip:focus { left: 0; }

/* Demo bar: deliberately neutral so it reads as "not part of the design" */
.demo-bar { background: #111; color: #eee; font: .8125rem/1.4 system-ui, sans-serif; }
.demo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; padding-block: .4rem; }
.demo-bar p { margin: 0; }
.demo-detail { color: #aaa; }
.demo-nav { display: flex; gap: 1.25rem; }
.demo-bar a { color: #fff; display: inline-flex; align-items: center; min-height: 32px; }

/* Header and navigation */
.site-header { position: relative; z-index: 20; background: var(--header-bg, var(--bg)); color: var(--header-fg, var(--fg)); border-bottom: var(--header-border, 1px solid var(--line)); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.5rem; padding-block: .75rem; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; color: inherit; text-decoration: none; margin: 0; }
.brand-name { font-family: var(--brand-font, var(--head-font)); font-weight: var(--brand-weight, 700); font-size: var(--brand-size, 1.6rem); text-transform: var(--brand-case, none); letter-spacing: var(--brand-track, -.01em); }
.brand-sub { font-family: var(--body-font); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: .3rem; opacity: .8; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem 1.75rem; }
.site-nav a, .site-nav summary { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-weight: var(--nav-weight, 600); font-size: var(--nav-size, .975rem); text-transform: var(--nav-case, none); letter-spacing: var(--nav-track, 0); cursor: pointer; }
.site-nav a:hover, .site-nav summary:hover, .site-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.site-nav summary { list-style: none; gap: .4rem; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%); }
.site-nav details[open] summary::after { transform: rotate(-135deg) translateX(-25%); }
.has-sub { position: static; }
.service-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(70rem, calc(100% - 2 * var(--gap))); padding: 1.5rem; background: var(--menu-bg, var(--bg)); color: var(--menu-fg, var(--fg)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgb(0 0 0 / .14); max-height: calc(100dvh - 8rem); overflow-y: auto; }
.service-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.service-menu-title { display: flex; align-items: center; min-height: 44px; margin: 0 0 .3rem; font-weight: 700; line-height: 1.35; }
.service-menu .service-menu-title a { font-weight: 700; }
.service-menu a { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.has-sub .service-menu li a { display: flex; padding: .25rem 0; width: 100%; font-weight: 400; line-height: 1.35; }
.service-menu-extra { display: flex; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: 1rem; }
.site-nav .nav-cta { padding: 0 1.1rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--btn-radius); text-decoration: none; }
.site-nav .nav-cta:hover { text-decoration: none; filter: brightness(1.1); }
.menu-toggle { display: none; }

@media (max-width: 59.99em) {
  .js .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; font: 600 1rem var(--body-font); color: inherit; background: none; border: 1px solid currentColor; border-radius: var(--btn-radius); cursor: pointer; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--menu-bg, var(--bg)); color: var(--menu-fg, var(--fg)); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgb(0 0 0 / .12); }
  .js .site-nav.open { display: block; max-height: calc(100dvh - var(--nav-top, 8rem)); overflow-y: auto; }
  .menu-open .mobile-bar { visibility: hidden; pointer-events: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: min(76rem, 100% - 2 * var(--gap)); margin: 0 auto; padding: .5rem 0 1.25rem; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border: 0; padding-top: 1rem; }
  .site-nav a, .site-nav summary { width: 100%; min-height: 52px; }
  .service-menu { position: static; transform: none; width: auto; max-height: none; overflow: visible; box-shadow: none; border: 0; padding: .5rem 0 1rem .75rem; background: none; color: inherit; }
  .service-menu-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-menu-title { padding-top: .5rem; }
  .site-nav .nav-cta { justify-content: center; }
  .header-row { flex-wrap: nowrap; }
}

/* Buttons and small type */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.5rem; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: var(--btn-radius); font: var(--btn-weight, 600) 1rem/1.2 var(--body-font); text-transform: var(--btn-case, none); letter-spacing: var(--btn-track, 0); text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.12); }
.button-quiet { background: transparent; color: inherit; border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.eyebrow { font-family: var(--eyebrow-font); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow, var(--muted)); margin: 0 0 .9rem; }
.eyebrow a { color: inherit; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--lede, var(--muted)); max-width: 38rem; }
.text-link { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.text-link::after { content: " \2192"; content: " \2192" / ""; white-space: pre; }
.small { font-size: .9rem; color: var(--muted); }
.notice { border-left: 3px solid var(--accent); background: var(--surface); padding: .8rem 1rem; margin: 1.25rem 0; max-width: 46rem; font-size: .95rem; }
.photo-note { position: absolute; right: .75rem; bottom: .6rem; z-index: 3; margin: 0; padding: .15rem .5rem; font: 600 .7rem/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; background: rgb(0 0 0 / .55); color: #fff; border-radius: 2px; }

/* Hero with form, used on every main page.
   Wide screens: copy left, form card right, over the photo.
   Phones: photo + copy first, then the form on a plain band (no text over a tall stretched photo). */
.hero { position: relative; display: grid; background: var(--hero-bg, #1d1d1d); color: var(--hero-fg, #fff); }
.hero-media { grid-area: 1 / 1; position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }  /* never sizes the hero */
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade, linear-gradient(90deg, rgb(0 0 0 / .74), rgb(0 0 0 / .5) 50%, rgb(0 0 0 / .3))); }
@media (max-width: 59.99em) { .hero-media::after { background: var(--hero-shade-phone, linear-gradient(rgb(0 0 0 / .6), rgb(0 0 0 / .76))); } }
.hero-grid { grid-area: 1 / 1; position: relative; z-index: 2; display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.25rem); }
.hero-copy { max-width: 38rem; }
.hero h1 { font-size: var(--h1-size, clamp(2.1rem, 3.9vw, 3.5rem)); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--hero-eyebrow, rgb(255 255 255 / .85)); }
.hero .lede { color: var(--hero-lede, rgb(255 255 255 / .92)); margin: 0; }
/* Trust points: one frosted bar, an icon per point */
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: inline-flex; flex-wrap: wrap; border-radius: var(--radius);
  background: var(--pts-bg, rgb(12 12 12 / .5)); border: 1px solid var(--pts-line, rgb(255 255 255 / .2)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-points li { display: flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.hero-points li + li { border-left: 1px solid var(--pts-line, rgb(255 255 255 / .2)); }
.hero-points svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--hero-check, currentColor); }
@media (max-width: 40em) {
  .hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hero-points li { flex-direction: column; gap: .4rem; padding: .75rem .4rem; font-size: .82rem; text-align: center; }
}
.hero-text-only { --pts-bg: var(--surface); --pts-line: var(--line); }  /* light hero: a plain bar */
.hero-form { background: var(--form-bg, var(--bg)); color: var(--form-fg, var(--fg)); border: var(--form-border, 0); border-radius: var(--form-radius, var(--radius)); padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: var(--form-shadow, 0 24px 60px rgb(0 0 0 / .35)); }
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem); min-height: var(--hero-h, 30rem); }
  .hero-home .hero-grid { min-height: var(--hero-home-h, 34rem); }
}
@media (max-width: 59.99em) {
  .hero-grid { display: contents; }
  .hero-copy { grid-area: 1 / 1; position: relative; z-index: 2; width: min(76rem, 100% - 2 * var(--gap)); max-width: none; margin-inline: auto; padding-block: clamp(2.5rem, 8vw, 4rem) clamp(2rem, 6vw, 3rem); }
  .hero-form { grid-area: 2 / 1; border-radius: 0; box-shadow: none; border: 0; background: var(--form-band, var(--surface)); padding: 1.75rem var(--gap) 2.25rem; }
  .hero-form .inquiry { max-width: 40rem; margin-inline: auto; }
}
/* Home hero slideshow: the jobs fade one into the next under a lighter shade; the bar names the job on screen */
.hero-home { --hero-shade: linear-gradient(90deg, rgb(0 0 0 / .75), rgb(0 0 0 / .55) 50%, rgb(0 0 0 / .1) 80%);
  --hero-shade-phone: linear-gradient(rgb(0 0 0 / .55), rgb(0 0 0 / .72) 55%); }  /* about 5.5:1 for white text over the brightest slide */
.hero-home .hero-copy { text-shadow: 0 1px 14px rgb(0 0 0 / .5); }  /* keeps the copy readable over bright tile or sky */
.hero-slides img { opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.on { opacity: 1; }
/* A slow dissolve has no movement, so it stays on with reduced motion (the rule at the top would make it a hard cut) */
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: opacity 1.2s ease !important; } }
.hero-show { position: absolute; z-index: 3; grid-area: 1 / 1 / 2 / 2; bottom: 1rem; left: max(var(--gap), (100% - 76rem) / 2);
  display: flex; align-items: center; padding: 0 .3rem 0 1rem; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; font-size: .9rem; font-weight: 600; }
.hero-show :focus-visible { outline-color: #fff; outline-offset: -2px; }
.hs-link { color: inherit; padding: .6rem .4rem .6rem 0; }
.hs-link::after { content: " \2192" / ""; }
.hs-dots { display: flex; }
.hs-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .6); }
.hs-dot[aria-pressed="true"]::before { background: #fff; }
.hs-play { display: grid; place-items: center; width: 34px; height: 34px; margin: .25rem 0 .25rem .3rem; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .16); color: inherit; cursor: pointer; }
.hs-play svg { width: 16px; height: 16px; }
@media (min-width: 60em) { .hero-home .hero-grid { padding-bottom: 5rem; } }
@media (max-width: 59.99em) { .hero-home .hero-copy { padding-bottom: 5rem; } }
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: 1rem; }

/* Sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-alt { background: var(--surface); }
/* Two plain sections in a row share one gap instead of stacking two full paddings */
:is(.section, .section-tight):not(.section-alt):has(+ :is(.section, .section-tight):not(.section-alt)) {
  padding-bottom: min(var(--section), clamp(2.75rem, 5.5vw, 4.5rem)); }
:is(.section, .section-tight):not(.section-alt) + :is(.section, .section-tight):not(.section-alt) { padding-top: 0; }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { font-size: var(--h2-size, clamp(1.9rem, 3.6vw, 2.9rem)); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; }
.section-head-row h2 { font-size: var(--h2-size-sm, clamp(1.5rem, 2.8vw, 2.2rem)); }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }

/* Facts */
.facts-band { background: var(--facts-bg, var(--surface)); color: var(--facts-fg, inherit); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.facts div { padding: 1.25rem 1rem 1.25rem 0; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--facts-label, var(--muted)); font-family: var(--eyebrow-font); }
.facts dd { margin: .3rem 0 0; font-family: var(--facts-font, var(--head-font)); font-size: 1.25rem; font-weight: var(--facts-weight, 600); line-height: 1.25; }
@media (min-width: 48em) { .facts { grid-template-columns: repeat(4, 1fr); } .facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--facts-line, var(--line)); } }
@media (max-width: 47.99em) { .facts div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--facts-line, var(--line)); } .facts div:nth-child(n+3) { border-top: 1px solid var(--facts-line, var(--line)); } }

/* Services on Home: a compact list, thumbnail + group + its services in one line */
.service-rows { list-style: none; margin: 0; padding: 0; display: grid; column-gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 2px solid var(--fg); }
@media (min-width: 52em) { .service-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-row { display: grid; grid-template-columns: clamp(5.5rem, 16vw, 9.5rem) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.service-row > div { grid-area: 1 / 2; }  /* the <source> tags inside <picture> also count as grid items */
.sr-img { grid-area: 1 / 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service-row h3 { margin: 0 0 .3rem; font-size: 1.35rem; line-height: 1.15; }
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row h3 a:hover { text-decoration: underline; }
.sr-links { margin: 0; color: var(--muted); line-height: 1.75; }
.sr-links a { color: var(--fg); font-weight: 600; text-underline-offset: .2em; }
@media (min-width: 40em) { .sr-links a { white-space: nowrap; } }  /* a service name never splits across lines */
.service-extra { margin: 1.5rem 0 0; color: var(--muted); }
.theme-reference .service-rows { border-top: 0; }  /* its section heading is already a bar */
.footer-services { columns: 2; column-gap: 1.25rem; }
.footer-services li { break-inside: avoid; }
@media (min-width: 48em) { .footer-grid:has(.footer-services) { grid-template-columns: 1.3fr 2fr 1fr; } }
@media (max-width: 25em) { .footer-services { columns: 1; } }

/* Section head bars (FAQ, service area) */
.box-head { font-size: var(--box-head-size, clamp(1.4rem, 2.4vw, 1.85rem)); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--fg); }
.box-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); }
.box-head h2 { font-size: inherit; }
.box-head-row a { display: inline-flex; align-items: center; min-height: 44px; font: 600 .95rem var(--body-font); text-transform: none; letter-spacing: 0; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gallery-gap, .75rem); grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; background: var(--line); }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { margin-top: .45rem; font-size: .875rem; color: var(--muted); }

/* Original layout: about band, statement, call-to-action band */
.about-grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 60em) { .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); } }
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.statement { margin: 0 0 1.25rem; }
.statement p { font-family: var(--head-font); font-weight: var(--statement-weight, var(--head-weight)); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: var(--head-track); text-transform: var(--statement-case, none); }
.cta-band { background: var(--cta-bg, var(--accent)); color: var(--cta-fg, var(--accent-ink)); padding-block: clamp(3rem, 7vw, 5rem); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .5rem; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .button { background: var(--cta-btn-bg, var(--accent-ink)); color: var(--cta-btn-fg, var(--accent)); border-color: var(--cta-btn-bg, var(--accent-ink)); }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 1.25rem 2rem; padding: 0; margin: 0; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 2px solid var(--step-line, var(--fg)); color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--head-font); font-size: 2rem; font-weight: var(--head-weight); color: var(--step-num, var(--accent)); line-height: 1; margin-bottom: .75rem; }
.steps strong { color: var(--fg); display: block; font-size: 1.1rem; }

/* Service page parts */
.split { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 60em) { .split { grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); } }
.split > div > h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.service-list { margin: 0; border-top: 1px solid var(--fg); }
.service-list div { display: grid; gap: .15rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .service-list div { grid-template-columns: 13rem 1fr; } }
.service-list dt { font-weight: 700; font-family: var(--list-font, var(--body-font)); }
.service-list dd { margin: 0; color: var(--muted); }
.know { background: var(--know-bg, var(--surface)); color: var(--know-fg, inherit); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); }
.know h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.know ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.know li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--know-line, var(--line)); position: relative; }
.know li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .4rem; border-left: 2px solid var(--accent-2, var(--accent)); border-bottom: 2px solid var(--accent-2, var(--accent)); transform: rotate(-45deg); }
.principles { display: grid; gap: 1.5rem 3rem; margin: 0; }
@media (min-width: 48em) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles div { border-top: 1px solid var(--fg); padding-top: 1rem; }
.principles dt { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.35rem; margin-bottom: .3rem; }
.principles dd { margin: 0; color: var(--muted); }

/* Inquiry form (inside the hero card) */
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
@media (max-width: 23.99em) { .inquiry { grid-template-columns: 1fr; } }
.form-title { grid-column: 1 / -1; font-size: var(--form-title-size, 1.5rem); }
.form-sub { grid-column: 1 / -1; margin: -.45rem 0 .1rem; color: var(--muted); font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
/* WebKit paints a long selected option past the select's edge (page scrolls sideways on iPad). Clip it, keeping room for the focus ring. */
.field:has(select) { overflow: hidden; padding: 4px; margin: -4px; }
label { font-weight: 600; font-size: .875rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .78rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--field-fg, var(--fg)); width: 100%; min-height: 46px; padding: .55rem .75rem; background: var(--field-bg, #fff); border: 1px solid var(--field-line, #a9a59c); border-radius: var(--btn-radius); }
textarea { resize: vertical; min-height: 4.75rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 1px; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border: 2px solid #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile: out of the layout (but still running) unless Cloudflare asks for a click (main.js adds .ask) */
.ts-box { grid-column: 1 / -1; }
.ts-box:not(.ask) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inquiry .button { width: 100%; margin-top: .25rem; }
.form-fine { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
.form-fine a { color: inherit; }
.form-status { grid-column: 1 / -1; border: 2px solid currentColor; padding: .9rem 1rem; }
.form-status h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.form-status p { font-size: .925rem; }
.next-note { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--footer-bg, var(--fg)); color: var(--footer-fg, var(--bg)); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.footer-brand p { opacity: .8; }
.footer-head { font-family: var(--body-font); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: .75rem; opacity: .7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgb(128 128 128 / .3); font-size: .85rem; opacity: .7; }

.credits { padding: 0; list-style: none; }
.credits li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* Photo viewer */
.viewer { border: 0; padding: 0; max-width: min(96vw, 1400px); max-height: 94vh; background: #111; color: #eee; }
.viewer::backdrop { background: rgb(10 10 10 / .88); }
.viewer img { max-height: calc(94vh - 5.5rem); width: auto; margin-inline: auto; }
.viewer form { display: flex; justify-content: flex-end; }
.viewer-close { min-height: 44px; padding: .5rem 1rem; background: none; border: 0; color: #fff; font: 600 1rem system-ui, sans-serif; cursor: pointer; }
.viewer-caption { margin: 0; padding: .6rem 1rem .9rem; font: .9rem/1.4 system-ui, sans-serif; }

/* Breadcrumbs */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0 0 .75rem; padding: 0; font: 600 .8rem/1.5 var(--body-font); letter-spacing: .04em; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: inherit; }
.hero .breadcrumb { color: var(--hero-eyebrow, rgb(255 255 255 / .85)); }

/* FAQ: answers always visible */
/* Rows fill the width: 2 per row, 3 when there are exactly 3; an odd last one runs the full row, never a hole */
.faq-list { margin: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 48em) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .faq-list:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-list:has(> div:nth-child(3):last-child) > div { grid-column: auto; }
}
/* One question: a label row like "Where we work", not a lone narrow column */
@media (min-width: 48em) {
  .faq:has(.faq-list > div:only-child) .wrap { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr); column-gap: 2rem; align-items: baseline; border-top: 1px solid var(--line); }
  .faq:has(.faq-list > div:only-child) .box-head { font-size: 1.15rem; border: 0; margin: 0; padding: 1.25rem 0 0; }
  .faq:has(.faq-list > div:only-child) .faq-list > div { border: 0; padding-top: 1.25rem; }
}
.faq-list div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.faq-list dt { font-weight: 700; margin-bottom: .25rem; }
.faq-list dd { margin: 0; color: var(--muted); }

/* Service area: self-hosted map (area_map.py) beside the reach and the towns with jobs */
.area-grid { display: grid; gap: 1.5rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 56em) { .area-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.area-map { display: block; width: 100%; height: auto; }
.am-bg { fill: var(--surface); }
.am-inside { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.am-counties { fill: none; stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: 1; stroke-linejoin: round; }
.am-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 6; }
.am-ring-label { font: 700 14px/1 var(--eyebrow-font); letter-spacing: .12em; fill: var(--accent); }
.am-county-names text { font: 600 10.5px/1 var(--eyebrow-font); letter-spacing: .14em; fill: var(--muted); opacity: .6; text-anchor: middle; }
.am-town circle { fill: var(--surface); stroke: var(--fg); stroke-width: 1.5; }
.am-town text, .am-base text { font: 600 16px/1 var(--body-font); fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.am-s2 text { font-size: 13.5px; font-weight: 500; }
.am-town[data-job] circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; r: 5.5px; }
.am-town[data-job] text { font-weight: 700; }
.am-base circle:first-child { fill: var(--accent); opacity: .25; }
.am-base circle:last-child { fill: var(--accent); }
.am-base text { font-size: 18px; font-weight: 800; }
.area-lede { max-width: 40rem; }
.area-map-wrap { position: relative; }
.am-pin { position: absolute; z-index: 1; translate: -50% -100%; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 2px solid var(--surface); border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--accent); color: var(--accent-ink, #fff);
  cursor: pointer; box-shadow: 0 3px 8px rgb(0 0 0 / .3); transition: scale .15s ease; transform-origin: 0 100%; }
.am-pin span { rotate: 45deg; font: 800 12px/1 var(--body-font); }
.am-pin:hover, .am-pin[aria-pressed="true"] { scale: 1.2; z-index: 2; background: var(--fg); color: var(--bg); }
.am-pin:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
.area-hint { color: var(--muted); margin: 0 0 1rem; }
.am-show { margin-bottom: 1.25rem; }
.ams-slide a { display: block; color: inherit; text-decoration: none; }
.ams-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.ams-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; padding: .7rem 0 0; min-height: 3.6rem; }
.ams-cap strong { font-family: var(--head-font); font-size: 1.2rem; font-weight: var(--head-weight); line-height: 1.2; }
.ams-cap span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.ams-slide a:hover strong { text-decoration: underline; }
.ams-nav { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.ams-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--fg); cursor: pointer; }
.ams-nav button:hover { border-color: var(--fg); }
.ams-nav svg { width: 20px; height: 20px; }
.ams-play { margin-left: auto; }
:is(.ams-play, .hs-play).paused .i-pause, :is(.ams-play, .hs-play):not(.paused) .i-play { display: none; }
.ams-count { min-width: 4.5rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Related services inside the "Good to know" box */
.related-head { font-size: 1rem; margin: 1.5rem 0 .4rem; }
.know .related li { padding: 0; border: 0; }
.know .related li::before { display: none; }
.related a { display: inline-flex; align-items: center; min-height: 36px; }

/* Service names (his list, no extra descriptions) */
.service-names { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; border-top: 2px solid var(--fg); }
.service-names li { break-inside: avoid; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }

/* Photo viewer: count, arrows, swipe */
.viewer form { justify-content: space-between; align-items: center; }
.viewer-count { padding-left: 1rem; font: 600 .875rem system-ui, sans-serif; color: #bbb; font-variant-numeric: tabular-nums; }
.viewer-stage { position: relative; touch-action: pan-y; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; font: 1.4rem/1 system-ui, sans-serif; cursor: pointer; }
.viewer-prev { left: .6rem; } .viewer-next { right: .6rem; }
.viewer-prev:hover, .viewer-next:hover { background: rgb(0 0 0 / .85); }
.viewer-prev[hidden], .viewer-next[hidden] { display: none; }

/* Project cards */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 40em) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid > li:last-child:nth-child(3n+4) { grid-column: 2; } /* a lone last card sits in the middle */
  .project-grid:has(> li:nth-child(2):last-child), .project-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  /* five cards: three, then the last two centered (no empty slot at the end of the row) */
  .project-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .project-grid:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .project-grid:has(> li:nth-child(5):last-child) > li:nth-child(4) { grid-column: 2 / span 2; }
}
.project-grid > li[hidden] { display: none; }
.project-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--pc-bg, transparent); border: var(--pc-border, 0); border-radius: var(--radius); overflow: hidden; }
.pc-media { position: relative; display: block; overflow: hidden; border-radius: var(--pc-media-radius, var(--radius)); background: var(--line); }
.pc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.project-card a:hover .pc-img { transform: scale(1.04); }
.pc-count { position: absolute; left: .7rem; bottom: .7rem; padding: .25rem .6rem; font: 600 .75rem/1.3 var(--body-font); letter-spacing: .03em; background: rgb(0 0 0 / .66); color: #fff; border-radius: var(--btn-radius); }
.pc-body { display: flex; flex-direction: column; gap: .3rem; padding: var(--pc-pad, .9rem 0 0); }
.pc-tags { font: 700 .7rem/1.3 var(--eyebrow-font); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow, var(--muted)); }
.pc-title { margin: 0; font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: 1.35rem; line-height: 1.15; color: var(--pc-title, inherit); }
.pc-title::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }
.project-card a:hover .pc-title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pc-meta { color: var(--muted); font-size: .92rem; }

/* Projects page filter */
.filter, .filter-status { display: none; }
.js .filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.js .filter-status { display: block; margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
.filter button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem 1rem; font: 600 .95rem var(--body-font); color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: var(--btn-radius); cursor: pointer; }
.filter button span { font-size: .8rem; opacity: .65; font-variant-numeric: tabular-nums; }
.filter button:hover { border-color: currentColor; }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Project page: start to finish player. Photo on a blurred copy of itself (no black bars), steps beside it */
.scrub { display: grid; gap: 1.25rem clamp(1.5rem, 4vw, 3rem); margin: 0; }
@media (min-width: 60em) { .scrub { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 1fr); align-items: start; } }
.scrub-frame { position: relative; aspect-ratio: 4 / 5; max-height: 82vh; width: 100%; overflow: hidden; background: #101011; border-radius: var(--radius); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (min-width: 60em) { .scrub-frame { aspect-ratio: 1 / 1; } }
.scrub-bg { position: absolute; inset: -6%; background-position: center; background-size: cover; filter: blur(28px) brightness(.55) saturate(1.1); }
.scrub-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scrub-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.scrub-now { display: grid; gap: .2rem; margin: 0; }
.scrub-count { font: 700 .75rem/1.3 var(--eyebrow-font); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow, var(--muted)); font-variant-numeric: tabular-nums; }
.scrub-step { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.1; }
.scrub-date { color: var(--muted); font-size: .95rem; }
.scrub-controls { display: flex; align-items: center; gap: 1rem; }
.scrub-play { flex: none; display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; min-width: 6.5rem; padding: 0 1.15rem; font: var(--btn-weight, 600) 1rem var(--body-font); text-transform: var(--btn-case, none); letter-spacing: var(--btn-track, 0); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--btn-radius); cursor: pointer; }
.scrub-play::before { content: ""; width: 0; height: 0; border-left: .62em solid currentColor; border-block: .4em solid transparent; }
.scrub-play[aria-pressed="true"]::before { width: .62em; height: .78em; border: 0; border-inline: .2em solid currentColor; }
.scrub input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.scrub-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scrub-steps button { display: flex; align-items: baseline; gap: .65rem; width: 100%; min-height: 42px; padding: .45rem .5rem; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; transition: padding .2s ease; }
.scrub-steps button span { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.scrub-steps button small { margin-left: auto; padding-left: .5rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.scrub-steps button:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
.scrub-steps button.done span { color: var(--accent); }
.scrub-steps button[aria-current] { font-weight: 700; padding-left: .9rem; box-shadow: inset 4px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.scrub-help { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 59.99em) {
  .scrub-steps { display: flex; gap: .4rem; overflow-x: auto; border: 0; scrollbar-width: none; order: 3; padding: 6px; margin: -6px; }
  .scrub-steps::-webkit-scrollbar { display: none; }
  .scrub-steps button { width: auto; white-space: nowrap; padding: .3rem .8rem; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: var(--btn-radius); }
  .scrub-steps button small { display: none; }
  .scrub-steps button[aria-current] { padding-left: .8rem; box-shadow: none; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .scrub-steps button[aria-current] span { color: inherit; }
  .scrub-help { order: 4; }
}

/* Project page: before and after */
.compare { display: grid; gap: .75rem 2.5rem; align-items: end; margin: 0; }
@media (min-width: 60em) { .compare { grid-template-columns: min(100%, calc(78vh * var(--ratio))) minmax(14rem, 22rem); justify-content: center; align-items: center; } }
.compare-frame { position: relative; width: min(100%, calc(78vh * var(--ratio))); aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--radius); background: #111; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .2); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; translate: -50% -50%; border-radius: 50%; box-shadow: 0 4px 18px rgb(0 0 0 / .4);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.5rem no-repeat; }
.compare-label { position: absolute; top: .75rem; padding: .25rem .6rem; font: 700 .72rem/1.3 var(--body-font); letter-spacing: .08em; text-transform: uppercase; background: rgb(0 0 0 / .66); color: #fff; border-radius: var(--btn-radius); pointer-events: none; }
.compare-label-before { left: .75rem; }
.compare-label-after { right: .75rem; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare-frame:has(input:focus-visible) { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.compare figcaption { color: var(--muted); font-size: .95rem; max-width: 26rem; }

/* Project page: step by step */
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3rem); }
.bs-video { grid-column: -2; width: min(100%, 20rem); aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); }
a.bs-video { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.bs-video-poster { width: 100%; height: 100%; object-fit: cover; }
.bs-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.25rem; white-space: nowrap; font: 700 1rem/1 var(--body-font); background: rgb(0 0 0 / .72); border-radius: 999px; }
.bs-play::before { content: ""; border-left: .75em solid currentColor; border-block: .45em solid transparent; }
a.bs-video:hover .bs-play { background: var(--accent); color: var(--accent-ink); }
.project-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1rem; border-top: 2px solid var(--fg); }
.project-next .text-link { display: block; white-space: normal; padding-block: .55rem; }
.project-next .related { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
/* Focus ring on the dark viewer: white, drawn inside so the dialog does not clip it */
.viewer { --focus: #fff; }
.viewer-close:focus-visible { outline-offset: -4px; }

/* Phone: tap-to-call in the header (next to Menu on phones, after the nav on wide screens) and in the footer */
.header-call { display: inline-flex; align-items: center; gap: .3em; min-height: 48px; margin-left: auto; padding: 0 .9rem; font-weight: 700; font-size: .95rem; color: inherit; text-decoration: none; white-space: nowrap; border: 1px solid currentColor; border-radius: var(--btn-radius); }
.header-call:hover { text-decoration: underline; }
@media (min-width: 60em) { .site-nav { margin-left: auto; } .header-call { order: 3; margin-left: 0; } }
@media (max-width: 23.99em) { .header-call { padding: 0 .6rem; font-size: .85rem; } }
.footer-phone { font-weight: 700; font-size: 1.1rem; }
/* A made-up number in the demo: dashed so nobody mistakes it for the real one */
.is-example { outline: 2px dashed #d39b2a; outline-offset: 2px; }

/* Footer form: on every page but Contact. Heading on top, fields in a wide grid (no lopsided columns) */
.footer-cta { background: var(--fc-bg, var(--surface)); color: var(--fc-fg, inherit); padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.fc-head { margin-bottom: 1.25rem; }
.fc-head h2 { font-size: var(--h2-size-sm, clamp(1.6rem, 3vw, 2.3rem)); margin-bottom: .5rem; }
.fc-head p { margin: 0; color: var(--muted); }
.fc-head .fc-call { margin-top: .35rem; color: inherit; font-weight: 600; }
.fc-phone { font-weight: 800; }
@media (min-width: 60em) { .inquiry-short { grid-template-columns: repeat(3, 1fr); } }

/* Example blocks (demo only): what the section looks like once Sterling supplies the facts */
.example { position: relative; outline: 2px dashed #d39b2a; outline-offset: -6px; }
.example-tag { position: absolute; top: .85rem; right: .85rem; z-index: 5; display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .7rem; font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .03em; color: #5c3b00; background: #ffe7b3; border: 1px solid #d39b2a; border-radius: 999px; text-decoration: none; }
.example-tag:hover { background: #ffd98a; text-decoration: underline; }

/* About: owner block (photo left, words right) and short section intros */
.owner-grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 48em) { .owner-grid { grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); } }
.owner-photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 12px); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.owner-name { font-size: 1.1rem; }
.owner-quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); font-family: var(--head-font); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; }
@media (min-width: 48em) { .owner-quote { grid-column: 2; } }
@media (min-width: 64em) {
  .owner-grid:has(.owner-quote) { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1.3fr) minmax(0, 1fr); }
  .owner-quote { grid-column: auto; }
}
.section-intro { color: var(--muted); max-width: 46rem; margin: -.75rem 0 1.5rem; }

/* Service pages: "What we do" lists the full range of work; photos follow under "Recent work" */
.offer-intro { max-width: 46rem; color: var(--muted); margin: -.5rem 0 1.25rem; }
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 40em) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* 4: two by two */
}
.offer-grid > li { padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--line); }
.offer-grid h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.offer-grid p { margin: 0; color: var(--muted); }
.offer-grid .offer-link { margin-top: .25rem; padding-block: .45rem; }
.offer-grid .offer-link a { font-weight: 700; color: var(--link, var(--accent)); }
.offer-more { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.offer-more p:first-child { max-width: 44rem; }
.work .related-line { margin: 1.5rem 0 0; }
.scope-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.scope-foot p { margin: 0; }
.related-line { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.price-table, .area-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.price-table th, .price-table td, .area-table th, .area-table td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); }
.price-table thead th, .area-table thead th { font: 700 .75rem/1.3 var(--eyebrow-font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--fg); }
.price-table tbody th { width: 32%; font-weight: 700; }
.price-table td { color: var(--muted); }
.price-table tr.group th { padding-top: 1.4rem; font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.15rem; border-bottom: 1px solid var(--fg); }
@media (min-width: 60em) { .steps-4 { grid-template-columns: repeat(4, 1fr); } .steps-5 { grid-template-columns: repeat(5, 1fr); } }

/* Reviews (an Example until real ones exist; no stars, no markup) */
.review-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48em) { .review-list { grid-template-columns: repeat(2, 1fr); } }
.review-list li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.review-list blockquote { margin: 0 0 .6rem; font-size: 1.05rem; }
.review-by { margin: 0; color: var(--muted); font-size: .9rem; }

/* Where we work: one short block on every page, the town table on the home page */
.area-short { display: flex; flex-wrap: wrap; gap: .25rem 2rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.area-short h2 { font-size: 1.15rem; }
.area-short p { margin: 0; flex: 1 1 30rem; color: var(--muted); }
.area-lede { max-width: 46rem; }

/* Project facts with a Where cell; About statement as a heading */
@media (min-width: 48em) { .facts-5 { grid-template-columns: repeat(5, 1fr); } }
.example-inline { color: #5c3b00; background: #ffe7b3; border: 1px dashed #d39b2a; border-radius: 3px; padding: 0 .35rem; font-size: .8em; text-decoration: none; display: inline-block; }
.project-next-head { margin: 0; font-weight: 700; }
.faq-more { margin-top: 1rem; }
h2.statement { font-weight: var(--statement-weight, var(--head-weight)); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; text-transform: var(--statement-case, none); margin: 0 0 1.25rem; }

/* Hero form: the optional scope and day under one disclosure */
.form-more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .25rem; }
.form-more summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary::before { content: "+" / ""; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1; }
.form-more[open] summary::before { content: "\2212" / ""; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Hero forms in two steps: the plus swaps the optional fields in for the first ones, so the card never grows.
   The contact page has no data-steps and shows everything at once. */
.form-first { display: contents; }
.inquiry:has(> .form-more[data-steps][open]) > .form-first { display: none; }
.form-more:not([data-steps][open]) .more-back, .form-more[data-steps][open] .more-add { display: none; }
.form-more[data-steps][open] { border-top: 0; padding-top: 0; }
.form-more[data-steps][open] summary::before { content: "\2190" / ""; }
.form-more-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; padding: .25rem 0 .5rem; }
@media (max-width: 23.99em) { .form-more-fields { grid-template-columns: 1fr; } }

/* Footer form: the button sits in the grid */
.fc-submit { justify-content: flex-end; }
.inquiry-short .button { width: 100%; }
.fc-fine { grid-column: 1 / -1; margin: 0; }

/* Phones: the two actions in a bar, out of the way while a form is on screen */
.mobile-bar { display: none; }
@media (max-width: 47.99em) {
  .js .mobile-bar { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem var(--gap) calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / .12); transition: transform .25s ease; }
  .js .mobile-bar .button { flex: 1; min-height: 46px; }
  .js .mobile-bar .mobile-call { flex: 0 0 auto; color: var(--fg); }
  .js .mobile-bar.away { transform: translateY(110%); }
  .js body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}

/* 404: the way back */
.go-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 48em) { .go-list { grid-template-columns: repeat(3, 1fr); } }
.go-list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* Small phones: the header keeps the brand, "Call" and Menu on one line */
@media (max-width: 39.99em) { .hc-num { display: none; } .header-row { gap: .75rem; } .header-call { padding: 0 .85rem; } }
@media (max-width: 23.99em) {
  .header-row { gap: .5rem; }
  .site-header .brand-name { font-size: min(var(--brand-size, 1.6rem), 1.35rem); }
  .js .menu-toggle { padding-inline: .65rem; }
}

/* Example tags on small blocks: keep the dashed line and the tag clear of the content */
.example:has(> .part-inc, > .part-missing, > .faq-list) { padding: 2.5rem 1rem 1rem; margin: .75rem 0; }
.example:has(> .part-inc, > .part-missing, > .faq-list) > .example-tag { top: .55rem; right: .6rem; }
.example > .part-inc { margin: 0; }
.example > .part-missing { margin: 0; }

.service-directory-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-directory-grid h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.service-directory-grid ul { list-style: none; margin: 0; padding: 0; }
.service-directory-grid a { display: flex; align-items: center; min-height: 44px; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.planning-list { padding-left: 1.25rem; }
.planning-list li { margin: .75rem 0; }
.planning-list li:last-child { margin-bottom: 0; }
/* Getting started: the three steps beside what to include in a request (one section, not two thin ones) */
.start-plan { margin-top: 2rem; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.start-plan h3 { font-size: 1.3rem; margin-bottom: .25rem; }
@media (min-width: 60em) {
  .start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .start-grid .steps { grid-template-columns: 1fr; }
  .start-plan { margin-top: 0; }
}
/* Footer form: heading on the left, the two short lines beside it */
@media (min-width: 60em) {
  .fc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(2rem, 5vw, 4rem); }
  .fc-head h2 { grid-row: span 2; margin: 0; }
}
@media (max-width: 35em) { .service-directory-grid { grid-template-columns: 1fr; } }
/* A bathroom service page should not borrow a kitchen photo as its proof. */
.hero.hero-text-only { background: var(--bg); color: var(--fg); --hero-eyebrow: var(--link); --hero-check: var(--link); }
.hero.hero-text-only .hero-copy { color: var(--fg); text-shadow: none; }
.hero.hero-text-only .hero-copy :is(h1, p, a, li) { color: inherit; }
/* One-photo jobs (mostly tall photos): the photo at its own shape beside the job details and related jobs */
.job-one { display: grid; gap: 1.5rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 56em) { .job-one { display: flex; align-items: center; } .jo-photo { flex: var(--pf) 1 0; min-width: 0; } .jo-side { flex: 1.4 1 0; min-width: 0; } }
.jo-side h2 { font-size: var(--h2-size-sm, clamp(1.5rem, 2.8vw, 2.2rem)); margin-bottom: .75rem; }
.jo-facts { margin: 0 0 1.75rem; }
.jo-facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.jo-facts div:last-child { border-bottom: 1px solid var(--line); }
.jo-facts dt { font: 700 .72rem/1.9 var(--eyebrow-font); letter-spacing: .14em; text-transform: uppercase; color: var(--facts-label, var(--muted)); }
.jo-facts dd { margin: 0; font-weight: 600; }
.jo-next .related { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: .35rem 0 0; padding: 0; }
.jo-next .related a { display: inline-flex; align-items: center; min-height: 36px; }
/* One step with several photos: a plain grid, captions hidden (they repeat the job name) */
/* Job photos at their own shape: justified rows built per job (build.py rows_for). On a desktop every photo in a
   row is the same height and the row fills the width; on a phone tall photos pair up and wide ones run full width. */
.build-steps.storyboard { gap: 1.25rem; }
.gallery.sb-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.sb-row > li { flex: 1 1 calc(50% - .25rem); min-width: 0; }
.sb-row > li.is-wide { flex-basis: 100%; }
.gallery.sb-row img { aspect-ratio: var(--a); height: auto; }
.sb-row .bs-video { width: 100%; grid-column: auto; }
@media (min-width: 48em) {
  .gallery.sb-row { flex-wrap: nowrap; gap: .75rem; }
  .sb-row > li, .sb-row > li.is-wide { flex: var(--a) 1 0; }
}
.sb-cap { margin-top: .5rem; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.sb-num { font-family: var(--head-font); font-weight: var(--head-weight); font-size: 1.05rem; color: var(--step-num, var(--accent)); margin-right: .2rem; }
.sb-name { color: var(--fg); font-weight: 600; }
.sb-date, .sb-note { display: block; }
.sb-note { margin-top: .15rem; }
/* Start and finish from the same spot (projects.json "pairs") */
.pairs .sb-row + .pair-note, .pairs .sb-row + .sb-row { margin-top: .75rem; }
.pair-note { margin: .6rem 0 0; color: var(--muted); max-width: 48rem; }
.pairs .pair-note + .sb-row { margin-top: 1.5rem; }
.pc-summary { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Internal links in body copy (audit 2026-10-09): project "Work done", end-of-project blocks, home "Work near" lines */
.work-done { max-width: 46rem; margin: 0 0 clamp(1.25rem, 3vw, 2rem); }
.jo-side .work-done { margin: .35rem 0 1rem; }
.project-next, .jo-next { display: grid; gap: .6rem; justify-content: stretch; }
.pn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.jo-next .pn-group { display: block; }
.pn-cta { margin: 0; color: var(--muted); }
.area-work { margin: 0 0 1rem; }
.area-work p { margin: 0 0 .25rem; }

/* Project facts strip (Work + Where): sized to content, not a fixed 4/5-column grid */
.facts-job { display: flex; flex-wrap: wrap; }
.facts-job div { flex: 0 1 auto; min-width: 0; }
.facts-job dd a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.facts-job dd a:hover { color: var(--accent, inherit); }
@media (min-width: 48em) { .facts-job div { padding-right: clamp(2rem, 5vw, 4.5rem); } .facts-job div:last-child { padding-right: 0; } }
@media (max-width: 47.99em) { .facts-job { flex-direction: column; } .facts-job div, .facts-job div:nth-child(even) { padding: .9rem 0; border-left: 0; } .facts-job div + div { border-top: 1px solid var(--facts-line, var(--line)); } }
.jo-facts dd a { color: inherit; text-underline-offset: .2em; }
