/* HB Contracting Co. — "Plan set"
   The site reads like a builder's drawing set: white sheets on a concrete-grey table,
   deep slate ink, thin drafted lines, and the logo's yellow kept for the things you act
   on (buttons) and the notes drawn onto project photos. */

@font-face {
  font-family: 'Sofia Sans';
  src: url('/assets/fonts/sofia-sans-latin-wght.woff2') format('woff2-variations'), url('/assets/fonts/sofia-sans-latin-wght.woff2') format('woff2');
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('/assets/fonts/sofia-sans-semi-condensed-latin-wght.woff2') format('woff2-variations'), url('/assets/fonts/sofia-sans-semi-condensed-latin-wght.woff2') format('woff2');
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --paper: #fff;
  --concrete: #e9ebe8;      /* the table the sheets sit on */
  --concrete-deep: #dde1de; /* photo placeholders */
  --slate: #1d2b33;         /* ink, dark sheets */
  --slate-raised: #2a3a43;
  --graphite: #55626a;      /* secondary text: 6.3:1 on white, 5.2:1 on concrete */
  --rule: #c8ced0;          /* hairlines */
  --field: #7d8a90;         /* form borders: 3.5:1 on white */
  --yellow: #f8d53b;        /* the logo's yellow */
  --yellow-hover: #ecc524;
  --on-slate: #b9c4c9;
  --rule-on-slate: rgba(255, 255, 255, .18);
  --error: #b42318;
  --focus: var(--slate);

  /* Drafting grid, drawn very faintly behind page titles */
  --grid-line: rgba(29, 43, 51, .055);
  --grid: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  --grid-size: 32px 32px;

  /* Type */
  --display: 'Sofia Sans Semi Condensed', 'Sofia Sans', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --width: 1240px;
  --gutter: 48px;
  --header: 80px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  font-family: var(--sans);
  font-size: 18px;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  interpolate-size: allow-keywords;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; }
strong, b { font-weight: 650; }

/* Type scale (18 · 21 · 24 · 36 · 48 · 60 · 72): semi-condensed, steady, drafted. */
h1, h2, h3, .cta-phone, .footer-phone, .aside-phone, .step-number {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -.01em;
}
h1 { font-weight: 700; line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 3.5vw, 48px); line-height: 1.06; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.22; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.transform-section, .cta-band, .footer, .admin-bar, .lightbox, .form-sent { --focus: var(--yellow); }
[hidden] { display: none !important; }

.container { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding: 104px 0; }
.soft-section { background: var(--concrete); }
.large-copy { font-size: 21px; line-height: 1.55; color: var(--graphite); }
.ext { font-size: .85em; }

.text-link {
  display: inline-block;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.3;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--yellow);
  transition: border-color .15s;
}
.text-link:hover { border-color: currentColor; }
/* Inside a sentence a link keeps the sentence's size and reads as underlined text. */
p > .text-link { display: inline; font-size: inherit; padding: 0; border: 0; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
p > .text-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .005em;
  text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button.primary { background: var(--yellow); color: var(--slate); }
.button.primary:hover { background: var(--yellow-hover); }
.button.dark { background: var(--slate); color: #fff; }
.button.dark:hover { background: var(--slate-raised); }
.button.line { border-color: var(--slate); background: transparent; color: var(--slate); }
.button.line:hover { background: var(--slate); color: #fff; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--yellow); color: var(--slate); padding: 12px 18px; font-weight: 650; border-radius: var(--radius); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); color: var(--slate); border-bottom: 1px solid var(--rule); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 28px rgba(29, 43, 51, .08); }
.header-inner { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; min-height: var(--header); display: flex; align-items: center; gap: 24px; transition: min-height .3s var(--ease); }
.header.is-scrolled .header-inner { min-height: calc(var(--header) - 14px); }
/* The logo fills the room the menu leaves, up to max-width, so the long name stays as large as it can. */
.brand { flex: 1 1 0; min-width: 0; max-width: 270px; transform-origin: left center; transition: transform .3s var(--ease); }
.header.is-scrolled .brand { transform: scale(.9); }
.brand img { width: 100%; height: auto; }
.primary-navigation { margin-left: auto; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.main-menu > li > a, .services-control > a { position: relative; display: block; padding: 28px 0; font-size: 16px; font-weight: 550; white-space: nowrap; color: var(--slate); transition: color .15s, padding .3s var(--ease); }
.main-menu > li > a::after, .services-control > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left center; transition: transform .2s var(--ease), bottom .3s var(--ease);
}
.main-menu > li > a:hover::after, .services-control > a:hover::after { transform: scaleX(1); }
.main-menu > li > a[aria-current=page]::after, .services-item.active .services-control > a::after, .parent-active > a::after { background: var(--slate); transform: scaleX(1); }
.services-control { display: flex; align-items: center; gap: 2px; }
.services-toggle { display: grid; place-items: center; width: 26px; height: 34px; border: 0; border-radius: var(--radius); background: transparent; color: var(--slate); }
.services-toggle:hover { background: var(--concrete); }
.services-toggle svg { transition: transform .2s var(--ease); }
.services-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.services-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(var(--width), calc(100% - var(--gutter) * 2));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  padding: 30px 36px 34px; background: var(--paper); color: var(--slate);
  border: 1px solid var(--rule); border-top: 2px solid var(--slate);
  box-shadow: 0 28px 56px rgba(29, 43, 51, .14);
}
.services-menu h2 { font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: 0; color: var(--graphite); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.services-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.services-menu li a { display: block; margin-left: -10px; padding: 8px 10px; font-size: 17px; font-weight: 550; line-height: 1.35; border-radius: var(--radius); }
.services-menu li a:hover { background: var(--concrete); }
.services-menu li a[aria-current=page] { background: var(--yellow); }
.cities-item { position: relative; }
.cities-item .services-menu { left: 0; width: max-content; min-width: 220px; padding: 14px; display: block; transform: none; }
.cities-item .services-menu li a { margin: 0; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-family: var(--display); font-weight: 650; font-size: 17px; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); text-underline-offset: 5px; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius); background: var(--yellow); color: var(--slate); font-family: var(--display); font-weight: 650; font-size: 17px; white-space: nowrap; transition: background-color .15s; }
.header-cta:hover { background: var(--yellow-hover); }
.nav-toggle { display: none; }
main { outline: none; }

/* ---------- Home hero ----------
   The headline, the text, and the whole annotated photo fit in the first screen.
   On wide screens the photo is sized from the screen's height (see the media query below). */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); color: var(--slate); padding-top: 56px; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grid); background-size: var(--grid-size); background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%); mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(56px, 10vw, 112px); max-width: 10ch; }
.hero-description { font-size: 21px; line-height: 1.5; color: var(--graphite); max-width: 28ch; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; margin-top: 8px; padding-bottom: 32px; }

@media (min-width: 900px) and (min-height: 560px) {
  .hero {
    --hero-h1: clamp(56px, min(7.4vw, 11.5vh), 136px);
    --hero-top: clamp(28px, 5vh, 60px);
    --hero-gap: clamp(20px, 3.4vh, 36px);
    --hero-bottom: clamp(20px, 3.6vh, 40px);
    --hero-caption: 50px;
    /* Screen height, less the header, padding, two lines of headline, and the caption. */
    --hero-photo-h: calc(100vh - var(--header) - var(--hero-top) - var(--hero-h1) * 1.96 - var(--hero-gap) - var(--hero-caption) - var(--hero-bottom));
    padding-top: var(--hero-top);
  }
  @supports (height: 100svh) {
    .hero { --hero-photo-h: calc(100svh - var(--header) - var(--hero-top) - var(--hero-h1) * 1.96 - var(--hero-gap) - var(--hero-caption) - var(--hero-bottom)); }
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "side photo"; column-gap: clamp(32px, 4vw, 64px); row-gap: var(--hero-gap); align-items: start; }
  .hero h1 { grid-area: title; font-size: var(--hero-h1); max-width: none; }
  .hero h1 span { display: block; white-space: nowrap; }
  .hero-side { grid-area: side; padding-top: 4px; }
  .hero-description { font-size: clamp(18px, 1.45vw, 21px); }
  /* As wide as the screen height allows at 16:9, leaving room for the text beside it. */
  .hero-figure { grid-area: photo; margin: 0; padding-bottom: var(--hero-bottom); width: max(420px, min(calc(min(var(--width), 100vw - var(--gutter) * 2) - 340px), calc(var(--hero-photo-h) * 16 / 9))); }
}

/* The annotated photo: a drawing sheet with trim marks at the corners, numbered notes
   drawn onto the picture, and a dimension line over the caption. */
.plan-frame { position: relative; background: var(--slate); }
.plan-frame::after {
  --t: var(--slate);
  content: ''; position: absolute; inset: -14px; pointer-events: none;
  background:
    linear-gradient(var(--t), var(--t)) left 0 top 13px / 9px 1px,
    linear-gradient(var(--t), var(--t)) left 13px top 0 / 1px 9px,
    linear-gradient(var(--t), var(--t)) right 0 top 13px / 9px 1px,
    linear-gradient(var(--t), var(--t)) right 13px top 0 / 1px 9px,
    linear-gradient(var(--t), var(--t)) left 0 bottom 13px / 9px 1px,
    linear-gradient(var(--t), var(--t)) left 13px bottom 0 / 1px 9px,
    linear-gradient(var(--t), var(--t)) right 0 bottom 13px / 9px 1px,
    linear-gradient(var(--t), var(--t)) right 13px bottom 0 / 1px 9px;
  background-repeat: no-repeat;
}
.plan-image { position: relative; }
.plan-image > img { width: 100%; height: auto; }
.plan-photo figcaption { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0 0; font-size: 16px; line-height: 1.4; color: var(--graphite); }
.plan-photo figcaption::before {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 9px;
  border-inline: 1px solid var(--slate);
  background: linear-gradient(var(--slate), var(--slate)) center / 100% 1px no-repeat;
}
.plan-photo figcaption span:first-child { color: var(--slate); font-weight: 600; }
.plan-photo figcaption { flex-wrap: wrap; row-gap: 2px; }
.plan-photo figcaption span { white-space: nowrap; }

.plan-markers span {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--slate); border: 1.5px solid var(--slate);
  font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}
.callouts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; container-type: inline-size; }
.callout { position: absolute; top: var(--y); display: flex; align-items: center; transform: translateY(-50%); z-index: 3; pointer-events: auto; }
.callout-right { left: calc(var(--x) + 14px); }
.callout-left { right: calc(100% - var(--x) + 14px); flex-direction: row-reverse; }
.callout-num { display: none; }
.leader { display: block; width: calc(var(--len) * 1cqw); height: 1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 43, 51, .5); }
.callout-right .leader { transform-origin: left center; }
.callout-left .leader { transform-origin: right center; }
.callout a {
  display: block; padding: 6px 11px 7px; background: var(--paper); color: var(--slate);
  font-family: var(--display); font-size: clamp(13px, 1.25cqw, 16px); font-weight: 650; line-height: 1.2; white-space: nowrap;
  border: 1px solid var(--slate); border-radius: 2px;
  transition: background-color .15s;
}
.callout a:hover { background: var(--yellow); }

/* The one orchestrated moment: the notes are drawn onto the photo after it loads. */
@media (prefers-reduced-motion: no-preference) {
  .plan-markers span { animation: pin .35s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(700ms + var(--i) * 180ms); }
  .leader { animation: draw .4s ease-out both; animation-delay: calc(850ms + var(--i) * 180ms); }
  .callout a { animation: appear .3s ease-out both; animation-delay: calc(1100ms + var(--i) * 180ms); }
  .plan-photo figcaption::before { animation: draw .7s var(--ease) both .35s; transform-origin: left center; }
}
@keyframes pin { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Intro + services ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 52px; }
.intro-grid h2 { max-width: 14ch; }
.intro-grid .large-copy { margin: 0; max-width: 34em; }
.service-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service-tile { display: flex; flex-direction: column; min-width: 0; color: var(--slate); }
.service-tile > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--concrete-deep); }
.tile-text { padding: 20px 0 0; margin-top: 18px; border-top: 1px solid var(--slate); }
.service-tile h3 { font-size: 26px; margin-bottom: 8px; }
.service-tile p { color: var(--graphite); font-size: 17px; margin: 0; }
a.service-tile h3 { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
a.service-tile:hover h3 { text-decoration-color: var(--yellow); }
.tile-list { background: var(--concrete); padding: 30px 30px 32px; }
.tile-list h3 { font-size: 28px; margin-bottom: 10px; }
.tile-list > p { color: var(--graphite); margin-bottom: 20px; }
.tile-list ul { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--slate); }
.tile-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; transition: padding .2s var(--ease); }
.tile-list li a::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.tile-list li a:hover { padding-left: 6px; }
.tile-list .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Section heading ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-heading > .text-link { flex-shrink: 0; margin-bottom: 6px; }

/* ---------- Project cards ---------- */
.projects-section { background: var(--concrete); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.project-card { min-width: 0; display: flex; flex-direction: column; }
.project-photo { display: block; position: relative; overflow: hidden; background: var(--concrete-deep); aspect-ratio: 4 / 3; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-text { padding-top: 16px; }
.project-tags { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags li { font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1; padding: 5px 8px 6px; border-radius: 2px; background: var(--slate); color: #fff; }
.project-tags li + li { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--field); }
.project-card h3 { font-size: 26px; line-height: 1.15; }
.project-card h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
.project-card:hover h3 a, .project-card h3 a:focus-visible { text-decoration-color: var(--yellow); }

.project-feature-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; }
.project-feature-grid .project-card:first-child { grid-row: span 2; }
.project-feature-grid .project-card:first-child .project-photo { flex: 1; aspect-ratio: auto; min-height: 440px; }
.project-feature-grid .project-card:first-child .project-photo img { position: absolute; inset: 0; }
.project-feature-grid .project-card:first-child h3 { font-size: 36px; }
.project-feature-grid .project-card:not(:first-child) .project-photo { aspect-ratio: 16 / 9; }

/* ---------- Before / after (a dark sheet) ---------- */
.transform-section { position: relative; isolation: isolate; background: var(--slate); color: #fff; }
.transform-section::before { content: ''; position: absolute; inset: 0; z-index: -1; --grid-line: rgba(255, 255, 255, .045); background-image: var(--grid); background-size: var(--grid-size); }
.transform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 72px; align-items: center; }
.transform-copy h2 { font-size: clamp(40px, 4.4vw, 60px); margin-bottom: 22px; }
.transform-copy p { color: var(--on-slate); font-size: 19px; max-width: 30em; margin-bottom: 32px; }
.transform-photos, .before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.transform-photos figure, .before-after figure { position: relative; min-width: 0; }
.transform-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tag-before, .tag-after { position: absolute; top: 14px; left: 14px; padding: 6px 11px 7px; border-radius: 2px; font-family: var(--display); font-weight: 650; font-size: 16px; line-height: 1; color: var(--slate); border: 1px solid var(--slate); }
.tag-before { background: #fff; }
.tag-after { background: var(--yellow); }

/* ---------- Team split ---------- */
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.team-photo { position: relative; }
.team-photo img { aspect-ratio: 1.15; object-fit: cover; object-position: center 35%; width: 100%; background: var(--concrete-deep); }
.team-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--slate); padding: 9px 14px 10px; font-size: 16px; font-weight: 600; line-height: 1.3; border: 1px solid var(--slate); border-radius: 2px; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy > p { color: var(--graphite); font-size: 19px; max-width: 34em; }
.split-copy .button { margin-top: 14px; }

/* ---------- Process: the steps sit on a dimension string, numbered like a plan's grid lines ---------- */
.process-section { background: var(--concrete); }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-steps li { position: relative; padding: 0 32px 0 0; }
.process-steps li::before { content: ''; position: absolute; left: 46px; right: 0; top: 23px; height: 1px; background: var(--slate); }
.process-steps li:last-child::before { right: auto; width: 24px; }
.step-number { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border: 1.5px solid var(--slate); border-radius: 50%; background: var(--paper); font-size: 21px; font-weight: 700; line-height: 1; }
.process-steps h3 { margin-bottom: 8px; }
.process-steps p { color: var(--graphite); font-size: 17px; margin: 0; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 64px; }
.review { padding: 28px 0 30px; border-top: 1px solid var(--rule); }
.review:first-child { grid-row: span 2; border-top: 2px solid var(--slate); padding-top: 36px; }
.review:nth-child(2) { border-top: 2px solid var(--slate); }
.review blockquote { margin: 0 0 20px; }
.review blockquote p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; text-indent: -.4em; }
.review:first-child blockquote p { font-size: clamp(38px, 3.8vw, 54px); line-height: 1.06; text-indent: -.42em; }
.review blockquote p::before { content: '“'; }
.review blockquote p::after { content: '”'; }
.review figcaption { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin-bottom: 8px; }
.review figcaption strong { font-size: 18px; }
.review figcaption span { font-size: 16px; color: var(--graphite); }
.review-note { font-size: 16px; color: var(--graphite); margin: 0; max-width: 36em; }
.source-note { font-size: 15px; color: var(--graphite); margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--concrete); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; }
.faq-intro h2 { margin-bottom: 22px; }
.faq-intro p { color: var(--graphite); }
.faqs details { border-top: 1px solid var(--slate); }
.faqs details:last-child { border-bottom: 1px solid var(--slate); }
.faqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.faqs summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--slate); border-radius: 2px; transition: background-color .15s; }
.faqs summary:hover .faq-icon { background: var(--yellow); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--slate); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faqs details[open] .faq-icon::after { transform: rotate(0); }
.faqs details p { color: var(--graphite); padding: 0 56px 12px 0; }

/* ---------- Call to action: a drawing's title block ---------- */
.cta-band { background: var(--slate); color: #fff; padding: 88px 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, auto); border: 1px solid var(--rule-on-slate); }
.cta-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px 46px; }
.cta-copy h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; margin-bottom: 16px; }
.cta-copy p { font-size: 20px; color: var(--on-slate); margin: 0; max-width: 32em; }
.cta-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 30px 36px; border-left: 1px solid var(--rule-on-slate); }
.cta-phone { display: block; align-self: stretch; margin: -30px -36px 18px; padding: 28px 36px 26px; border-bottom: 1px solid var(--rule-on-slate); font-size: clamp(40px, 4vw, 56px); font-weight: 700; line-height: 1; white-space: nowrap; }
.cta-phone span { display: block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: 0; color: var(--on-slate); margin-bottom: 8px; }
.cta-phone:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cta-band .button.dark { background: var(--yellow); color: var(--slate); }
.cta-band .button.dark:hover { background: var(--yellow-hover); }
.cta-band .button.line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta-band .button.line:hover { background: #fff; border-color: #fff; color: var(--slate); }

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: var(--on-slate); padding: 72px 0 28px; font-size: 17px; border-top: 1px solid var(--rule-on-slate); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.1fr; gap: 48px; }
.footer-brand { display: block; width: min(300px, 100%); margin-bottom: 22px; }
.footer-intro p { max-width: 26em; }
.footer h2 { font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: 0; color: #fff; margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-on-slate); }
.footer nav { display: grid; gap: 9px; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-contact > a { display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.footer-phone { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.05; margin-bottom: 14px !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule-on-slate); font-size: 15px; }
.footer-bottom > div { display: flex; gap: 22px; }

/* ---------- Inner page intro: a sheet title on the drafting grid ---------- */
.page-intro { position: relative; isolation: isolate; background: var(--concrete); color: var(--slate); padding: 26px 0 76px; border-bottom: 1px solid var(--rule); }
.page-intro::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  --grid-line: rgba(29, 43, 51, .06);
  background-image: var(--grid); background-size: var(--grid-size); background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 100%); mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
}
.breadcrumbs { font-size: 15px; color: var(--graphite); margin-bottom: 56px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--field); }
.breadcrumbs a:hover { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--slate); font-weight: 600; }
.page-intro h1 { font-size: clamp(48px, 6.4vw, 88px); max-width: 15ch; margin-bottom: 26px; text-wrap: balance; }
.page-intro .container > h1:first-child { margin-top: 56px; }
.intro-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 24px; padding: 0; }
.intro-tags li { background: var(--slate); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1; padding: 6px 9px 7px; border-radius: 2px; }
.intro-tags li + li { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--field); }
.intro-copy { font-size: 21px; line-height: 1.55; color: var(--graphite); max-width: 36em; margin: 0; }

/* ---------- Service areas ---------- */
.city-intro-grid, .city-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.city-intro-grid { align-items: center; }
.city-intro-grid h1 { font-size: clamp(46px, 5.6vw, 84px); }
.city-intro-grid figure { position: relative; }
.city-intro-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--concrete-deep); }
.city-intro-grid figcaption { color: var(--graphite); font-size: 15px; margin-top: 10px; }
.city-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.city-page h2 + p, .city-page h3 + p { margin-top: 16px; }
.city-page .section-heading p { margin: 0; max-width: 26em; color: var(--graphite); }
.city-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.city-directory .project-photo { aspect-ratio: 16 / 10; }
.city-directory .project-text p { color: var(--graphite); }
.city-other-area { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.city-other-area p { margin-bottom: 0; }
.city-related h3 { margin-bottom: 14px; }
.city-related .text-link { display: table; margin-bottom: 10px; }
.city-service-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0; border: 1px solid var(--slate); }
.city-service-points article { padding: 24px; }
.city-service-points article + article { border-left: 1px solid var(--rule); }
.city-permits { padding: 30px 32px 32px; border: 1px solid var(--slate); background: var(--paper); }
.city-permits h2 { font-size: clamp(30px, 3vw, 40px); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.city-permits h2 + p { margin-top: 0; }
.city-page .cta-actions { gap: 12px; }
.city-crosslinks { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.city-crosslinks .container { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 900px) {
  .city-intro-grid, .city-columns { grid-template-columns: 1fr; }
  .city-intro-grid img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .city-directory, .city-service-points { grid-template-columns: 1fr; }
  .city-service-points article + article { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- About ---------- */
.team-section { background: var(--concrete); }
.team-bios { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.team-bios article { border-top: 2px solid var(--slate); padding-top: 28px; }
.team-bios h2 { margin-bottom: 8px; }
.bio-role { font-weight: 650; color: var(--slate); margin-bottom: 22px; }
.team-bios p:not(.bio-role) { color: var(--graphite); }

/* ---------- Services directory ---------- */
.service-directory { display: grid; gap: 96px; }
.directory-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.directory-title { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
.directory-title h2 { font-size: clamp(36px, 3.6vw, 48px); margin-bottom: 16px; max-width: 10ch; }
.directory-title p { color: var(--graphite); max-width: 22em; }
.directory-links { border-top: 2px solid var(--slate); }
.directory-links > a { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.directory-links h3 { font-size: 26px; margin-bottom: 6px; }
.directory-links p { font-size: 17px; color: var(--graphite); margin: 0; max-width: 40em; }
.row-arrow { flex: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); transition: background-color .15s, border-color .15s; }
.row-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -7px; border-top: 1.5px solid var(--slate); border-right: 1.5px solid var(--slate); transform: rotate(45deg); transition: transform .2s var(--ease); }
a:hover > .row-arrow::before { transform: translateX(3px) rotate(45deg); }
.directory-links > a:hover .row-arrow, .related-services > a:hover .row-arrow { background: var(--yellow); border-color: var(--yellow); }
.directory-links > a:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Single service ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.service-main h2 { margin-bottom: 22px; max-width: 16ch; }
.service-image { margin: 40px 0 48px; }
.service-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--concrete-deep); }
.subheading { font-size: 28px; margin: 44px 0 16px; }
.scope-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--slate); }
.scope-list li { position: relative; padding: 15px 0 15px 28px; border-bottom: 1px solid var(--rule); font-weight: 600; line-height: 1.4; }
.scope-list li::before { content: ''; position: absolute; left: 1px; top: 21px; width: 11px; height: 11px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--slate); }
.planning-note { margin-top: 44px; padding: 28px 32px 30px; background: var(--concrete); border-left: 3px solid var(--slate); }
.planning-note h3 { font-size: 24px; margin-bottom: 10px; }
.planning-note p { color: var(--graphite); margin: 0; }
/* The sidebar is set up like a title block: one ruled cell per piece of information. */
.service-aside { position: sticky; top: calc(var(--header) + 28px); background: var(--paper); color: var(--slate); border: 1px solid var(--slate); padding: 30px 30px 0; }
.service-aside h2 { font-size: 34px; line-height: 1.05; margin-bottom: 14px; }
.service-aside > p { font-size: 17px; color: var(--graphite); }
.service-aside .button.dark { width: 100%; background: var(--yellow); color: var(--slate); }
.service-aside .button.dark:hover { background: var(--yellow-hover); }
.aside-phone { display: block; margin: 26px -30px 0; padding: 22px 30px; border-top: 1px solid var(--rule); font-size: 38px; font-weight: 700; line-height: 1; }
.aside-phone span { display: block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: 0; color: var(--graphite); margin-bottom: 6px; }
.aside-phone:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.aside-note { font-size: 16px; color: var(--graphite); margin: 0 -30px; padding: 20px 30px 24px; border-top: 1px solid var(--rule); }
.aside-note .text-link { font-size: 16px; color: var(--slate); }
.related-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--slate); background: var(--paper); }
.related-services > a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 28px 26px; }
.related-services > a + a { border-left: 1px solid var(--rule); }
.related-services h3 { font-size: 24px; }
.related-services p { color: var(--graphite); font-size: 17px; margin: 0 0 10px; }
.related-services .row-arrow { margin-top: auto; }

/* ---------- Project gallery ---------- */
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 44px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button { min-height: 44px; padding: 0 16px; background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius); font-family: var(--display); font-weight: 600; font-size: 17px; transition: background-color .15s, color .15s, border-color .15s; }
.filter-buttons button:hover { border-color: var(--slate); }
.filter-buttons button[aria-pressed=true] { background: var(--slate); border-color: var(--slate); color: #fff; }
#project-count { margin: 0; color: var(--graphite); white-space: nowrap; }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.gallery-grid .project-photo { aspect-ratio: 3 / 2; }
.gallery-grid .project-card h3 { font-size: 32px; }
.gallery-empty { color: var(--graphite); }

/* ---------- Single project ---------- */
.project-full-image { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--concrete); cursor: zoom-in; }
.project-full-image img { width: 100%; max-height: 760px; object-fit: contain; }
.image-enlarge { position: absolute; right: 16px; bottom: 16px; background: var(--paper); color: var(--slate); border: 1px solid var(--slate); border-radius: 2px; padding: 8px 12px; font-family: var(--display); font-weight: 650; font-size: 16px; line-height: 1.2; transition: background-color .15s; }
.project-full-image:hover .image-enlarge { background: var(--yellow); }
.project-story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 80px; margin-top: 56px; }
.project-story h2 { margin-bottom: 20px; }
.project-facts { border: 1px solid var(--slate); align-self: start; }
.project-facts h3 { padding: 18px 22px; border-bottom: 1px solid var(--rule); font-size: 20px; }
.project-facts dl { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.project-facts dt, .project-facts dd { padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.project-facts dt:last-of-type, .project-facts dd:last-of-type { border-bottom: 0; }
.project-facts dt { color: var(--graphite); padding-right: 0; }
.project-facts dd { margin: 0; font-weight: 600; }
.before-after { margin-top: 64px; }
.before-after button { display: block; width: 100%; padding: 0; border: 0; background: var(--concrete); cursor: zoom-in; }
.before-after img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.lightbox { border: 0; padding: 24px; width: min(1100px, calc(100vw - 32px)); max-height: 95vh; overflow: auto; background: var(--slate); color: #fff; }
.lightbox::backdrop { background: rgba(22, 32, 38, .88); }
.lightbox > img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox > p { font-size: 15px; margin: 16px 0 0; color: var(--on-slate); }
.lightbox-close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: var(--yellow); color: var(--slate); font-size: 28px; line-height: 1; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; align-items: start; }
.contact-details h2 { margin-bottom: 16px; }
.contact-details > p { color: var(--graphite); margin-bottom: 26px; }
.contact-method { display: block; padding: 20px 0; border-top: 1px solid var(--slate); }
.contact-method:last-of-type { border-bottom: 1px solid var(--slate); }
.contact-method > span { display: block; font-weight: 600; font-size: 16px; color: var(--graphite); margin-bottom: 2px; }
.contact-method > strong { display: block; font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.05; overflow-wrap: anywhere; }
.contact-method[href^=mailto] > strong { font-size: 28px; }
.contact-method:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-area { margin: 34px 0 24px; }
.contact-area h3 { margin-bottom: 10px; }
.contact-area p { color: var(--graphite); }
.social-links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 650; }
.social-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.inquiry-panel { min-width: 0; padding: 40px; background: var(--concrete); border-top: 2px solid var(--slate); }
.inquiry-panel h2 { margin-bottom: 12px; }
.inquiry-panel > p { color: var(--graphite); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid label { min-width: 0; }
form label, .email-preview label { display: block; font-size: 16px; font-weight: 650; line-height: 1.4; margin-bottom: 20px; }
.required { color: #7a5c00; }
input, textarea, select { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius); font-size: 17px; line-height: 1.4; color: var(--slate); }
input:hover, textarea:hover, select:hover { border-color: var(--slate); }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--slate); outline: 3px solid var(--yellow); outline-offset: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b777d; }
.form-note { font-size: 15px; color: var(--graphite); }
.form-recaptcha { margin: 14px 0 0; font-size: 14px; color: var(--graphite); }
/* reCAPTCHA v3's floating badge is hidden; the line under the send button discloses it instead, as Google allows. */
.grecaptcha-badge { visibility: hidden; }
.email-preview { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--slate); }
.email-preview h3 { font-size: 26px; margin-bottom: 12px; }
.email-preview > p { color: var(--graphite); }
.email-preview label { font-weight: 600; }
.email-preview textarea { font-size: 16px; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#copy-status { margin: 14px 0 0; font-size: 16px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0 0 20px; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--error); font-weight: 600; }
.form-sent { padding: 28px 30px; background: var(--slate); color: #fff; border-left: 4px solid var(--yellow); }
.form-sent h3 { font-size: 28px; margin-bottom: 10px; }
.form-sent p { color: var(--on-slate); margin: 0; }
.form-sent a { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#project-form .button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .main-menu { gap: 18px; }
  .header-phone { display: none; }
}

@media (max-width: 1180px) {
  :root { --gutter: 32px; --header: 72px; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 72px; }
  .brand { max-width: 300px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); order: 3; }
  .nav-toggle span { display: block; height: 1.5px; background: var(--slate); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .primary-navigation { display: none; order: 4; width: 100%; margin: 0; padding: 4px 0 20px; max-height: calc(100vh - var(--header)); overflow-y: auto; }
  .primary-navigation.is-open { display: block; }
  .main-menu { display: block; }
  .main-menu > li { border-top: 1px solid var(--rule); }
  .main-menu > li > a, .services-control > a { padding: 15px 4px; font-size: 19px; }
  .main-menu > li > a::after, .services-control > a::after { display: none; }
  .main-menu > li > a[aria-current=page], .services-item.active .services-control > a, .parent-active > a { box-shadow: inset 3px 0 0 var(--slate); padding-left: 14px; }
  .services-control { justify-content: space-between; }
  .services-control > a { flex: 1; }
  .services-toggle { width: 48px; height: 52px; }
  .services-menu { position: static; transform: none; width: 100%; display: block; padding: 14px 16px 10px; border: 0; border-top: 1px solid var(--rule); background: var(--concrete); box-shadow: none; }
  .services-menu section + section { margin-top: 20px; }
  .cities-item .services-menu { width: 100%; padding: 12px 16px; }
}

@media (max-width: 1080px) {
  .intro-grid, .split-section, .faq-grid, .contact-layout, .service-layout, .project-story, .transform-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid h2, .split-copy h2 { max-width: none; }
  .service-tiles { grid-template-columns: 1fr 1fr; }
  .tile-list { grid-column: 1 / -1; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .process-steps li:nth-child(2)::before { right: auto; width: 24px; }
  .review-grid { grid-template-columns: 1fr; }
  .review:first-child { grid-row: auto; }
  .directory-group { grid-template-columns: 1fr; gap: 24px; }
  .directory-title { position: static; }
  .directory-title h2 { max-width: none; }
  .service-aside { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { border-left: 0; border-top: 1px solid var(--rule-on-slate); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .related-services { grid-template-columns: 1fr; }
  .related-services > a + a { border-left: 0; border-top: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; font-size: 17px; }
  .section { padding: 72px 0; }
  .header-actions { gap: 0; }
  .header-cta { display: none; }
  .header-phone { display: inline-flex; align-items: center; min-height: 42px; padding: 0 11px; border-radius: var(--radius); background: var(--yellow); color: var(--slate); font-size: 15px; }
  .header-phone:hover { background: var(--yellow-hover); text-decoration: none; }
  .brand { max-width: 200px; } /* phones show the wordmark without the house (see the <picture> in the header) */
  .nav-toggle { width: 42px; height: 42px; padding: 0 10px; }
  .large-copy { font-size: 19px; }
  .hero { padding-top: 34px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: clamp(50px, 15vw, 84px); }
  .hero-description { font-size: 18px; margin-bottom: 20px; }
  .hero-buttons { flex-wrap: nowrap; gap: 8px; }
  .hero-buttons .button { flex: 1 1 0; min-height: 48px; padding: 0 10px; font-size: 17px; }
  .hero-figure { margin-inline: calc(var(--gutter) * -1); padding-bottom: 0; }
  .plan-frame::after { display: none; }
  /* On phones the numbered key already says what's in the photo. */
  .plan-photo figcaption { display: none; }
  .plan-markers span { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
  /* On small screens the notes move below the photo as a numbered key. */
  .callouts { position: static; container-type: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
  .callout { position: static; transform: none; flex-direction: row; gap: 9px; padding: 10px 12px 10px 16px; background: var(--paper); }
  .callout-left { flex-direction: row; }
  .callout-num { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--slate); border: 1.5px solid var(--slate); font-family: var(--display); font-size: 12px; font-weight: 700; }
  .leader { display: none; }
  .callout a { padding: 0; border: 0; background: none; font-size: 15px; line-height: 1.25; white-space: normal; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
  .callout a:hover { background: none; text-decoration-color: var(--slate); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  h2 { font-size: clamp(32px, 9vw, 42px); }
  h2 br { display: none; }
  .service-tiles { grid-template-columns: 1fr; gap: 40px; }
  .project-grid, .project-feature-grid, .gallery-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-feature-grid .project-card:first-child { grid-row: auto; }
  .project-feature-grid .project-card:first-child .project-photo { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .project-feature-grid .project-card:first-child .project-photo img { position: static; }
  .project-feature-grid .project-card:first-child h3, .gallery-grid .project-card h3 { font-size: 28px; }
  .project-feature-grid .project-card:not(:first-child) .project-photo { aspect-ratio: 4 / 3; }
  .transform-photos, .before-after { gap: 8px; }
  .tag-before, .tag-after { top: 10px; left: 10px; font-size: 15px; padding: 5px 9px 6px; }
  .team-photo figcaption { position: static; display: inline-block; margin-top: 10px; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-steps li { padding: 0 0 0 66px; min-height: 46px; }
  .process-steps li::before, .process-steps li:nth-child(2)::before, .process-steps li:last-child::before { left: 23px; right: auto; top: 46px; bottom: -36px; width: 1px; height: auto; }
  .process-steps li:last-child::before { display: none; }
  .step-number { position: absolute; left: 0; top: 0; margin: 0; }
  .review:first-child blockquote p { font-size: 36px; }
  .review blockquote p { font-size: 26px; }
  .faqs summary { font-size: 20px; }
  .faqs details p { padding-right: 0; }
  .cta-band { padding: 56px 0; }
  .cta-copy { padding: 30px 22px 32px; }
  .cta-actions { padding: 24px 22px; }
  .cta-phone { margin: -24px -22px 14px; padding: 22px 22px 20px; font-size: clamp(40px, 12vw, 52px); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .page-intro { padding: 18px 0 52px; }
  .breadcrumbs { margin-bottom: 36px; font-size: 14px; }
  .page-intro h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .page-intro .container > h1:first-child { margin-top: 36px; }
  .intro-copy { font-size: 19px; }
  .team-bios { grid-template-columns: 1fr; gap: 48px; }
  .scope-list { grid-template-columns: 1fr; }
  .planning-note { padding: 24px 22px; }
  .service-aside { padding: 26px 22px 0; }
  .service-aside h2 { font-size: 32px; }
  .aside-phone { margin-inline: -22px; padding-inline: 22px; }
  .aside-note { margin-inline: -22px; padding-inline: 22px; }
  .related-services > a { padding: 24px 22px; }
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
  .filter-buttons button { min-height: 42px; padding: 0 13px; font-size: 16px; }
  .inquiry-panel { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-method > strong { font-size: 34px; }
  .contact-method[href^=mailto] > strong { font-size: 24px; }
  .directory-links > a { gap: 18px; padding: 20px 0; }
  .row-arrow { width: 38px; height: 38px; }
  .project-facts h3, .project-facts dt, .project-facts dd { padding-inline: 16px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 0 10px; }
  .header-phone { padding: 0 9px; font-size: 14px; }
}

/* Very narrow phones (320px): keep the header on one line and both hero buttons readable. */
@media (max-width: 350px) {
  .header-inner { gap: 0 8px; }
  .header-phone { padding: 0 7px; font-size: 13px; }
  .hero-buttons { gap: 6px; }
  .hero-buttons .button { padding: 0 6px; font-size: 16px; }
}

/* Short phones (such as a 667px-tall iPhone SE): a smaller hero so the photo and its key fit. */
@media (max-width: 760px) and (max-height: 760px) {
  .hero { padding-top: 22px; }
  .hero-grid { gap: 16px; }
  .hero h1 { font-size: clamp(38px, 13.5vw, 60px); }
  .hero h1 span { display: block; white-space: nowrap; }
  .hero-description { font-size: 17px; line-height: 1.45; margin-bottom: 16px; }
  .hero-buttons .button { min-height: 44px; }
}


/* ---------- Blog ---------- */
.blog-section { padding-top: 88px; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--concrete); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.post-text { padding-top: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.post-meta > * { font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1; padding: 5px 8px 6px; border-radius: 2px; }
.post-meta time { background: var(--slate); color: #fff; }
.post-meta span { box-shadow: inset 0 0 0 1px var(--field); }
.post-card h2, .post-card h3 { line-height: 1.12; margin-bottom: 10px; }
.post-card h3 { font-size: 26px; }
.post-card h2 a, .post-card h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
.post-card:hover h2 a, .post-card:hover h3 a, .post-card h2 a:focus-visible, .post-card h3 a:focus-visible { text-decoration-color: var(--yellow); }
.post-summary { color: var(--graphite); font-size: 17px; margin: 0; }
.no-photo .post-text { border-top: 2px solid var(--slate); padding-top: 22px; }
.post-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 80px; }
.post-featured .post-photo { aspect-ratio: 4 / 3; }
.post-featured .post-text { padding-top: 0; }
.post-featured.no-photo .post-text { padding-top: 26px; }
.post-featured h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.04; margin-bottom: 18px; }
.post-featured .post-summary { font-size: 20px; margin-bottom: 26px; }
.blog-more { font-size: clamp(30px, 3vw, 40px); margin: 0 0 36px; padding-top: 32px; border-top: 2px solid var(--slate); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; }
.post-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--slate); }
.page-count { color: var(--graphite); font-weight: 600; }
.blog-empty { max-width: 680px; padding: 36px 40px; background: var(--concrete); border-left: 3px solid var(--slate); }
.blog-empty h2 { margin-bottom: 14px; }
.blog-empty p { color: var(--graphite); }
.blog-empty-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* A single article */
.post-body { min-width: 0; font-size: 19px; line-height: 1.65; }
.post-hero { margin: 0 0 44px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--concrete-deep); }
.post-body > p, .post-body > ul, .post-body > ol, .post-body > blockquote, .post-body > h2, .post-body > h3 { max-width: 66ch; }
.post-body h2 { font-size: clamp(30px, 3vw, 40px); margin: 1.5em 0 .5em; }
.post-body h3 { font-size: 24px; margin: 1.4em 0 .45em; }
.post-body > h2:first-child, .post-hero + h2 { margin-top: 0; }
.post-body p { margin: 0 0 1.1em; }
.post-body a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.post-body a:hover { text-decoration-color: var(--slate); }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.post-body li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.post-body ul > li::before { content: ''; position: absolute; left: 2px; top: .58em; width: 10px; height: 10px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--slate); }
.post-body ol { counter-reset: step; }
.post-body ol > li { counter-increment: step; }
.post-body ol > li::before { content: counter(step); position: absolute; left: 0; top: .1em; font-family: var(--display); font-weight: 700; font-size: 1.1em; line-height: 1.4; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--slate); }
.post-body blockquote p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.3em; line-height: 1.3; }
.post-body figure { margin: 2em 0; }
.post-body figure img { width: 100%; }
.post-body figcaption { font-size: 16px; color: var(--graphite); margin-top: 10px; }
.post-body hr { border: 0; height: 9px; max-width: 66ch; margin: 2.4em 0; border-inline: 1px solid var(--slate); background: linear-gradient(var(--slate), var(--slate)) center / 100% 1px no-repeat; }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: var(--concrete); padding: 2px 6px; border-radius: 2px; }
.aside-related { margin: 0 -30px; padding: 20px 30px 24px; border-top: 1px solid var(--rule); font-size: 16px; }
.aside-related a { font-weight: 650; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.draft-banner { background: var(--yellow); color: var(--slate); padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--slate); }
.draft-banner a { font-weight: 650; text-decoration: underline; margin-left: 6px; }

/* ---------- Site admin ---------- */
body.admin { background: var(--concrete); min-height: 100vh; }
.editor-box input[type=file] + .hint { margin-bottom: 18px; }
.admin-bar { background: var(--slate); color: #fff; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 68px; padding: 10px 0; }
.admin-brand { display: flex; align-items: center; gap: 14px; }
.admin-brand img { width: 240px; height: auto; }
.admin-brand span { color: var(--yellow); font-family: var(--display); font-weight: 650; font-size: 17px; }
.admin-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; font-weight: 600; }
.admin-nav a:hover { color: var(--yellow); }
.admin-nav form { margin: 0; }
.admin-nav button { background: none; border: 1px solid var(--rule-on-slate); border-radius: var(--radius); color: #fff; padding: 6px 12px; font-weight: 600; font-size: 15px; }
.admin-nav button:hover { border-color: var(--yellow); color: var(--yellow); }
.admin-main { padding: 48px 0 96px; }
.admin-main h1 { font-size: clamp(38px, 4vw, 54px); margin-bottom: 18px; }
.admin-narrow { max-width: 580px; background: var(--paper); padding: 36px 36px 40px; border-top: 2px solid var(--slate); }
.admin-narrow h1 { font-size: 44px; }
.admin-narrow code, .admin-main code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--concrete); padding: 1px 5px; border-radius: 2px; }
.hint { display: block; font-weight: 400; font-size: 15px; color: var(--graphite); margin-top: 6px; }
.admin-flash { padding: 14px 18px; margin: 0 0 24px; font-weight: 600; background: var(--paper); border-left: 4px solid var(--yellow); }
.admin-flash-error { border-left-color: var(--error); }
.admin-flash-note { border-left-color: var(--slate); }
.admin-errors { background: var(--paper); border-left: 4px solid var(--error); padding: 16px 20px; margin-bottom: 24px; }
.admin-errors p { font-weight: 650; margin-bottom: 6px; }
.admin-errors ul { margin: 0; padding-left: 20px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; }
.admin-hello { margin: 0 0 8px; color: var(--graphite); font-weight: 600; }
.admin-hello a { text-decoration: underline; text-underline-offset: 3px; }
.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.admin-table th { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--slate); font-weight: 650; white-space: nowrap; }
.admin-table td { padding: 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post-title-link { font-weight: 650; font-size: 18px; }
.post-title-link:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.post-path { display: block; color: var(--graphite); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.row-actions { white-space: nowrap; }
.row-actions a { font-weight: 650; margin-right: 14px; text-decoration: underline; text-underline-offset: 3px; }
.status { display: inline-block; padding: 5px 8px 6px; border-radius: 2px; font-family: var(--display); font-size: 14px; font-weight: 650; line-height: 1; }
.status-draft { box-shadow: inset 0 0 0 1px var(--field); }
.status-live { background: var(--yellow); color: var(--slate); }
.status-scheduled { background: var(--slate); color: #fff; }
.admin-empty { background: var(--paper); padding: 28px; }
.admin-empty a { font-weight: 650; text-decoration: underline; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.editor-main { background: var(--paper); padding: 32px; min-width: 0; }
.editor-body { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.6; min-height: 480px; }
.slug-field { display: flex; align-items: stretch; margin-top: 8px; }
.slug-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--concrete); border: 1px solid var(--field); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font-weight: 600; color: var(--graphite); }
.slug-field input { margin-top: 0; min-width: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.markdown-help summary { cursor: pointer; font-weight: 650; }
.markdown-help table { margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.markdown-help td { padding: 7px 18px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.editor-side { display: grid; gap: 20px; position: sticky; top: 20px; min-width: 0; }
.editor-box { background: var(--paper); padding: 24px; border-top: 2px solid var(--slate); }
.editor-box:first-child { border-top-color: var(--yellow); }
.editor-box h2 { font-size: 26px; margin-bottom: 14px; }
.editor-status { margin-bottom: 16px; }
.editor-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.editor-box select { margin: 0 0 12px; }
.admin-form .choice { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.admin-form input[type=radio], .admin-form input[type=checkbox] { display: inline-block; flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--slate); }
.admin-form input[type=file] { padding: 10px; font-size: 15px; }
.image-preview { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 14px; background: var(--concrete); }
.danger-zone { margin-top: 40px; max-width: 640px; background: var(--paper); padding: 24px 28px; border-top: 2px solid var(--error); }
.danger-zone h2 { font-size: 26px; margin-bottom: 8px; }
.danger-zone p { color: var(--graphite); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1080px) {
  .post-featured { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}
@media (max-width: 760px) {
  .blog-section { padding-top: 56px; }
  .post-grid { grid-template-columns: 1fr; gap: 44px; }
  .post-featured h2 { font-size: clamp(34px, 10vw, 46px); }
  .post-body { font-size: 18px; }
  .post-pagination { flex-wrap: wrap; }
  .blog-empty { padding: 28px 22px; }
  .admin-narrow, .editor-main { padding: 26px 20px; }
  .admin-heading { flex-direction: column; align-items: flex-start; }
  .admin-brand img { width: 180px; }
  .aside-related { margin-inline: -22px; padding-inline: 22px; }
}

/* ---------- Project page: extra photos ---------- */
.project-description { font-size: 19px; }
.project-gallery { margin-top: 72px; }
.project-gallery h2 { margin-bottom: 28px; }
.gallery-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-photos button { display: block; padding: 0; border: 0; background: var(--concrete); cursor: zoom-in; overflow: hidden; }
.gallery-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-photos button:hover img { opacity: .9; }

/* ---------- Admin: dashboard, projects, photos ---------- */
.admin-note { color: var(--graphite); max-width: 72ch; margin-bottom: 22px; }
.box-hint { margin: -6px 0 14px; }
.optional { font-weight: 400; color: var(--graphite); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.slug-field .slug-suffix { border-left: 0; border-right: 1px solid var(--field); border-radius: 0 var(--radius) var(--radius) 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dash-card { background: var(--paper); padding: 30px; border-top: 2px solid var(--slate); }
.dash-card h2 { font-size: 40px; margin-bottom: 10px; }
.dash-count { color: var(--graphite); font-size: 18px; margin: 0; }
.dash-count strong { color: var(--slate); font-size: 22px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.project-table td { vertical-align: middle; }
.order-cell, .thumb-cell { width: 1%; white-space: nowrap; }
.order-number { display: inline-block; min-width: 1.5em; font-family: var(--display); font-weight: 700; font-size: 24px; vertical-align: middle; }
.move-buttons { display: inline-flex; gap: 4px; vertical-align: middle; }
.move-buttons form { margin: 0; }
.move-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--slate); border-radius: var(--radius); background: var(--paper); font-weight: 700; font-size: 16px; line-height: 1; }
.move-button:hover:not([disabled]) { background: var(--yellow); }
.move-button[disabled] { opacity: .3; cursor: default; }
.admin-thumb { display: block; width: 96px; height: 64px; object-fit: cover; background: var(--concrete); }
.admin-thumb-empty { display: grid; place-items: center; font-size: 13px; color: var(--graphite); }
.gallery-manager { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--slate); }
.gallery-manager h2 { font-size: 30px; margin-bottom: 8px; }
.photo-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.photo-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; background: var(--concrete); }
.photo-thumb { width: 140px; height: 105px; object-fit: cover; }
.photo-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0 14px; }
.admin-form .photo-fields label { margin-bottom: 10px; }
.admin-form .photo-fields .choice { grid-column: 1 / -1; margin-bottom: 0; }

@media (max-width: 760px) {
  .gallery-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-gallery { margin-top: 48px; }
  .field-pair, .dash-grid { grid-template-columns: 1fr; }
  .photo-list li { grid-template-columns: 1fr; }
  .photo-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .photo-fields { grid-template-columns: 1fr; }
}

/* ---------- Motion ----------
   One orchestrated moment (the notes drawn onto the home photo, above). Everything else
   moves only in answer to the visitor: menus, answers, filters, the photo viewer.
   site.js still tags content below the fold with .reveal; it stays put on purpose. */
@media (prefers-reduced-motion: no-preference) {
  .gallery-grid .project-card:not([hidden]) { animation: fade .3s ease both; }
  .form-sent:not([hidden]), .email-preview:not([hidden]), .form-alert:not([hidden]) { animation: rise .35s var(--ease) both; }
  .lightbox[open] { animation: pop .25s var(--ease) both; }
  .lightbox[open]::backdrop { animation: fade .25s ease both; }

  .services-menu { transition: opacity .18s ease, transform .22s var(--ease); }
  @starting-style { .services-menu { opacity: 0; transform: translate(-50%, -6px); } }
  @starting-style { .cities-item .services-menu { opacity: 0; transform: translateY(-6px); } }
  .primary-navigation.is-open { transition: opacity .18s ease, transform .22s var(--ease); }
  @starting-style { .primary-navigation.is-open { opacity: 0; transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1180px) {
  @starting-style { .services-menu { opacity: 0; transform: translateY(-6px); } }
}
@media (min-width: 1181px) {
  .header.is-scrolled .main-menu > li > a, .header.is-scrolled .services-control > a { padding-block: 21px; }
  .header.is-scrolled .main-menu > li > a::after, .header.is-scrolled .services-control > a::after { bottom: 13px; }
}

/* FAQ answers open smoothly where the browser supports animating <details>. */
@media (prefers-reduced-motion: no-preference) {
  .faqs details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faqs details[open]::details-content { block-size: auto; }
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Statewide service-area menu */
.cities-item .services-menu { max-height: calc(100dvh - var(--header) - 16px); overflow-y: auto; }
.cities-item .services-menu ul { grid-template-columns: repeat(2, minmax(8.75rem, 1fr)); }
.all-cities-link { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); padding-bottom: 4px; margin-bottom: 3px; font-weight: 650; }
@media (max-width: 1180px) {
  .cities-item .services-menu { max-height: none; overflow: visible; }
}
@media (max-width: 390px) {
  .cities-item .services-menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
