/* HB Contracting Co. — design system
   Brand: logo black + logo yellow. Type: Archivo (variable width), condensed for display, normal width for reading.
   One loud moment: the annotated hero photograph. Everything else stays plain and sturdy. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-variable.woff2') format('woff2-variations'), url('/assets/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #1c1c1a;
  --yellow: #f8d53b;
  --yellow-hover: #ecc51c;
  --concrete: #eceae4;
  --line: #d5d2c9;
  --steel: #5b5a55;
  --on-dark: #c8c7c0;
  --focus: #000;
  --width: 1280px;
  --gutter: 48px;
  --header: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  -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.65; }
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; }

/* Display type: condensed, heavy, tight. Used for every h1/h2. */
h1, h2, .cta-phone, .step-number, .footer-phone {
  font-family: var(--sans);
  font-stretch: 66%;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.005em;
}
h2 { font-size: clamp(40px, 4.6vw, 68px); }
h3 { font-stretch: 88%; font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.005em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.header, .footer, .page-intro, .transform-section, .process-section .step-number { --focus: var(--yellow); }
[hidden] { display: none !important; }

.container { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding: 112px 0; }
.soft-section { background: var(--concrete); }
.large-copy { font-size: 20px; line-height: 1.6; color: var(--steel); }
.ext { font-size: .9em; }

.text-link {
  transition: border-color .2s;
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--yellow);
}
.text-link:hover { border-color: var(--black); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  transition: background-color .15s, color .15s, border-color .15s, transform .2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); transition-duration: .05s; }
.button.primary { background: var(--yellow); color: var(--black); }
.button.primary:hover { background: var(--yellow-hover); }
.button.dark { background: var(--black); color: #fff; }
.button.dark:hover { background: #2b2b29; }
.button.line { border-color: var(--black); background: transparent; color: var(--black); }
.button.line:hover { background: var(--black); color: #fff; }

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

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--black); color: #fff; transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.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(.88); }
.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: 22px; }
.main-menu > li > a, .services-control > a { position: relative; display: block; padding: 28px 0; font-size: 15px; font-weight: 600; white-space: nowrap; color: #fff; transition: color .15s, padding .3s var(--ease); }
.main-menu > li > a:hover, .services-control > a:hover { color: var(--yellow); }
.main-menu > li > a[aria-current=page]::after, .services-item.active .services-control > a::after, .parent-active > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: var(--yellow); transition: bottom .3s var(--ease);
}
.services-control { display: flex; align-items: center; gap: 2px; }
.services-toggle { display: grid; place-items: center; width: 26px; height: 34px; border: 0; background: transparent; color: #fff; }
.services-toggle:hover { color: var(--yellow); }
.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: 36px;
  padding: 32px 36px 36px; background: #fff; color: var(--ink);
  border-top: 6px solid var(--yellow); box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
  --focus: #000;
}
.services-menu h2 { font-stretch: 88%; font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.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: 15px; line-height: 1.35; }
.services-menu li a:hover, .services-menu li a[aria-current=page] { background: var(--yellow); color: var(--black); }
.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: 22px; }
.header-phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: var(--yellow); }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--yellow); color: var(--black); font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-cta:hover { background: #fff; }
.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(--yellow); color: var(--black); padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(60px, 10.2vw, 120px); line-height: .86; letter-spacing: -.01em; max-width: 10ch; }
.hero-description { font-size: 20px; line-height: 1.55; max-width: 30ch; margin-bottom: 26px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; margin-top: 8px; padding-bottom: 12px; }
/* The yellow band stops partway down the photo; white continues below it. */
.hero-figure::before { content: ''; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: 40%; bottom: 0; background: #fff; }

@media (min-width: 900px) and (min-height: 560px) {
  .hero {
    --hero-h1: clamp(56px, min(7.2vw, 11.5vh), 136px);
    --hero-top: clamp(28px, 5vh, 60px);
    --hero-gap: clamp(20px, 3.4vh, 36px);
    --hero-bottom: clamp(16px, 3vh, 32px);
    --hero-caption: 38px;
    /* 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.72 - 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.72 - 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, 56px); 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: 6px; }
  .hero-description { font-size: clamp(17px, 1.35vw, 20px); }
  /* 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) - 330px), calc(var(--hero-photo-h) * 16 / 9))); }
  .hero-figure::before { top: 58%; }
}

.plan-frame { position: relative; background: var(--black); }
.plan-image { position: relative; }
.plan-image > img { width: 100%; height: auto; }
.plan-photo figcaption { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0 0; font-size: 15px; color: var(--steel); }

.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(--black); border: 2px solid var(--black);
  font-size: 13px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 4px rgba(248, 213, 59, .35);
}
.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: 2px; background: var(--yellow); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.callout-right .leader { transform-origin: left center; }
.callout-left .leader { transform-origin: right center; }
.callout a {
  display: block; padding: 8px 13px 9px; background: var(--black); color: #fff;
  font-size: clamp(13px, 1.2cqw, 15px); font-weight: 700; line-height: 1.2; white-space: nowrap;
  border: 2px solid var(--black);
  --focus: var(--yellow);
}
.callout a:hover { background: var(--yellow); color: var(--black); }

/* The one orchestrated moment: notes are drawn onto the photo after load. */
@media (prefers-reduced-motion: no-preference) {
  .plan-markers span { animation: pin .35s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(1000ms + var(--i) * 200ms); }
  .leader { animation: draw .4s ease-out both; animation-delay: calc(1150ms + var(--i) * 200ms); }
  .callout a { animation: appear .3s ease-out both; animation-delay: calc(1400ms + var(--i) * 200ms); }
}
@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 + service tiles ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
.intro-grid h2 { max-width: none; }
.intro-grid .large-copy { margin: 0; max-width: 34em; }
.service-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-tile { display: flex; flex-direction: column; background: var(--black); color: #fff; min-width: 0; overflow: hidden; }
.service-tile > img { flex: 1 1 auto; width: 100%; height: 0; min-height: 300px; object-fit: cover; transition: transform .6s var(--ease); }
a.service-tile:hover > img { transform: scale(1.035); }
.service-tile h3 { transition: color .2s; }
.tile-text { padding: 24px 26px 28px; border-top: 6px solid var(--yellow); }
.service-tile h3 { font-size: 26px; margin-bottom: 10px; }
.service-tile p { color: var(--on-dark); font-size: 16px; margin: 0; }
a.service-tile:hover h3 { color: var(--yellow); }
a.service-tile { --focus: var(--yellow); }
a.service-tile:focus-visible { outline-offset: 4px; outline-color: var(--black); }
.tile-list { background: var(--yellow); color: var(--black); padding: 30px 28px 32px; }
.tile-list h3 { font-size: 34px; font-stretch: 66%; font-weight: 800; line-height: .95; margin-bottom: 12px; }
.tile-list > p { color: var(--black); margin-bottom: 18px; }
.tile-list ul { list-style: none; margin: 0 0 26px; padding: 0; border-top: 2px solid var(--black); }
.tile-list li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .25); font-weight: 600; }
.tile-list li a::after { content: '›'; font-weight: 700; }
.tile-list li a { transition: padding .2s var(--ease); }
.tile-list li a:hover { padding-left: 6px; }
.tile-list .text-link { margin-top: auto; align-self: flex-start; border-color: var(--black); }
.tile-list .text-link:hover { border-color: #fff; }

/* ---------- Section heading ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.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: 28px; }
.project-card { min-width: 0; display: flex; flex-direction: column; }
.project-photo { display: block; position: relative; overflow: hidden; background: #d9d6ce; aspect-ratio: 4 / 3; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-photo img { transform: scale(1.03); }
.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-size: 13px; font-weight: 600; line-height: 1; padding: 6px 8px; background: var(--black); color: #fff; }
.project-tags li + li { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #9b988f; }
.project-card h3 { font-size: 26px; font-stretch: 75%; font-weight: 800; line-height: 1.05; }
.project-card h3 a { background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 6px; background-position: 0 92%; background-repeat: no-repeat; transition: background-size .25s; }
.project-card:hover h3 a, .project-card h3 a:focus-visible { background-size: 100% 6px; }

.project-feature-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; }
.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: 40px; }
.project-feature-grid .project-card:not(:first-child) .project-photo { aspect-ratio: 16 / 9; }

/* ---------- Before / after ---------- */
.transform-section { background: var(--black); color: #fff; }
.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(48px, 5.4vw, 80px); margin-bottom: 26px; }
.transform-copy p { color: var(--on-dark); font-size: 18px; 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: 16px; left: 16px; padding: 7px 12px; font-weight: 800; font-stretch: 75%; font-size: 18px; line-height: 1; }
.tag-before { background: #fff; color: var(--black); }
.tag-after { background: var(--yellow); color: var(--black); }

/* ---------- 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%; }
.team-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--black); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 600; border-top: 4px solid var(--yellow); }
.split-copy h2 { margin-bottom: 26px; }
.split-copy > p { color: var(--steel); font-size: 18px; max-width: 34em; }
.split-copy .button { margin-top: 12px; }

/* ---------- Process: four deck boards ---------- */
.process-section { background: var(--concrete); }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.process-steps li { padding: 0 18px 0 0; }
.process-steps li::before { content: ''; display: block; height: 14px; background: var(--yellow); margin-bottom: 26px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.step-number { display: block; font-size: 88px; line-height: .8; color: var(--black); margin-bottom: 18px; }
.process-steps h3 { margin-bottom: 10px; }
.process-steps p { color: var(--steel); font-size: 16px; margin: 0; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 56px; }
.review { padding: 28px 0 30px; border-top: 3px solid var(--black); }
.review:first-child { grid-row: span 2; border-top-width: 6px; border-color: var(--yellow); padding-top: 36px; }
.review blockquote { margin: 0 0 22px; }
.review blockquote p { margin: 0; font-stretch: 70%; font-weight: 800; font-size: 34px; line-height: 1.02; }
.review:first-child blockquote p { font-size: clamp(48px, 5vw, 76px); line-height: .95; }
.review blockquote p::before { content: '“'; }
.review blockquote p::after { content: '”'; }
.review figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.review figcaption strong { font-size: 17px; }
.review figcaption span { font-size: 15px; color: var(--steel); }
.review-note { font-size: 15px; color: var(--steel); margin: 0; max-width: 36em; }
.source-note { font-size: 14px; color: var(--steel); 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: 24px; }
.faq-intro p { color: var(--steel); }
.faqs details { border-top: 2px solid var(--black); }
.faqs details:last-child { border-bottom: 2px solid var(--black); }
.faqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 700; font-stretch: 88%; font-size: 21px; line-height: 1.25; }
.faqs summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; background: var(--yellow); transition: background-color .2s; }
.faqs summary:hover .faq-icon { background: var(--black); }
.faqs summary:hover .faq-icon::before, .faqs summary:hover .faq-icon::after { background: var(--yellow); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; background: var(--black); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faqs details[open] .faq-icon::after { transform: rotate(0); }
.faqs details p { color: var(--steel); padding: 0 56px 10px 0; }

/* ---------- Call to action ---------- */
.cta-band { background: var(--yellow); color: var(--black); padding: 80px 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.cta-copy h2 { font-size: clamp(48px, 5.6vw, 84px); margin-bottom: 16px; }
.cta-copy p { font-size: 19px; margin: 0; max-width: 32em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-phone { display: block; font-size: clamp(54px, 6.4vw, 96px); line-height: .85; white-space: nowrap; }
.cta-phone span { display: block; font-stretch: 100%; font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: 0; margin-bottom: 8px; }
.cta-phone:hover { text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--on-dark); padding: 72px 0 28px; font-size: 16px; }
.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-stretch: 88%; font-weight: 700; font-size: 16px; line-height: 1.3; color: #fff; margin: 4px 0 18px; }
.footer nav { display: grid; gap: 10px; }
.footer a:hover { color: var(--yellow); }
.footer-contact > a { display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.footer-phone { font-size: 40px; color: #fff; 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 #3a3a37; font-size: 14px; }
.footer-bottom > div { display: flex; gap: 22px; }

/* ---------- Inner page intro ---------- */
.page-intro { position: relative; background: var(--black); color: #fff; padding: 28px 0 82px; }
.page-intro::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--yellow); transform-origin: left center; }
.breadcrumbs { font-size: 14px; color: var(--on-dark); 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: #77766f; }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs [aria-current] { color: #fff; }
.page-intro h1 { font-size: clamp(54px, 8vw, 124px); line-height: .88; max-width: 12ch; margin-bottom: 28px; }
.page-intro .container > h1:first-child { margin-top: 56px; }
.intro-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; padding: 0; }
.intro-tags li { background: var(--yellow); color: var(--black); font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 10px; }
.intro-tags li + li { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #6d6c66; }
.intro-copy { font-size: 20px; line-height: 1.55; color: var(--on-dark); 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(50px, 6.2vw, 104px); }
.city-intro-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.city-intro-grid figcaption { color: var(--on-dark); font-size: 14px; margin-top: 10px; }
.city-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.city-intro-grid .button.line { color: #fff; border-color: #fff; }
.city-intro-grid .button.line:hover { color: var(--black); background: #fff; }
.city-page h2 + p, .city-page h3 + p { margin-top: 16px; }
.city-page .section-heading p { margin: 0; max-width: 26em; color: var(--steel); }
.city-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 28px; }
.city-directory .project-photo { aspect-ratio: 16 / 10; }
.city-directory .project-text p { color: var(--steel); }
.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: 20px; margin: 28px 0; }
.city-service-points article, .city-permits { padding: 24px; border-top: 6px solid var(--black); background: var(--concrete); }
.city-permits { background: #fff; }
.city-permits h2 { font-size: clamp(34px, 3.6vw, 52px); }
.city-page .cta-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.city-crosslinks { padding: 30px 0; }
.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; }
}

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

/* ---------- Services directory ---------- */
.service-directory { display: grid; gap: 88px; }
.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(40px, 4vw, 58px); margin-bottom: 18px; max-width: 9ch; }
.directory-title p { color: var(--steel); max-width: 22em; }
.directory-links { border-top: 3px solid var(--black); }
.directory-links > a { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.directory-links h3 { margin-bottom: 6px; }
.directory-links p { font-size: 16px; color: var(--steel); margin: 0; max-width: 40em; }
.row-arrow { flex: none; position: relative; width: 44px; height: 44px; background: var(--concrete); transition: background-color .15s; }
.row-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -8px; border-top: 3px solid var(--black); border-right: 3px solid var(--black); 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); }
.directory-links > a:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; 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: 24px; max-width: 14ch; }
.service-image { margin: 40px 0 48px; }
.service-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.subheading { font-size: 28px; margin: 40px 0 18px; }
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 3px solid var(--black); }
.scope-list li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.4; }
.scope-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--black); }
.planning-note { margin-top: 48px; padding: 32px 34px; background: var(--concrete); border-left: 10px solid var(--yellow); }
.planning-note h3 { font-size: 26px; margin-bottom: 12px; }
.planning-note p { color: var(--steel); margin: 0; }
.service-aside { position: sticky; top: calc(var(--header) + 28px); background: var(--yellow); color: var(--black); padding: 36px 34px 34px; }
.service-aside h2 { font-size: 46px; margin-bottom: 18px; }
.service-aside > p { font-size: 16px; }
.service-aside .button { width: 100%; }
.aside-phone { display: block; margin-top: 22px; font-stretch: 66%; font-weight: 800; font-size: 44px; line-height: .9; }
.aside-phone span { display: block; font-stretch: 100%; font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.aside-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.aside-note { font-size: 15px; margin: 24px 0 0; padding-top: 18px; border-top: 2px solid var(--black); }
.related-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-services > a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 26px 24px; background: #fff; border-top: 6px solid var(--black); }
.related-services p { color: var(--steel); font-size: 16px; margin: 0 0 8px; }
.related-services .row-arrow { margin-top: auto; }
.related-services > a:hover { border-color: var(--yellow); }

/* ---------- Project gallery ---------- */
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button { transition: background-color .15s, color .15s, box-shadow .2s; min-height: 46px; padding: 0 18px; background: #fff; border: 2px solid var(--black); font-weight: 700; font-size: 15px; }
.filter-buttons button:hover { background: var(--concrete); }
.filter-buttons button[aria-pressed=true] { background: var(--black); color: #fff; box-shadow: inset 0 -5px 0 var(--yellow); }
#project-count { margin: 0; color: var(--steel); 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: 34px; }
.gallery-empty { color: var(--steel); }

/* ---------- 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: 18px; bottom: 18px; background: var(--black); color: #fff; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.project-full-image:hover .image-enlarge { background: var(--yellow); color: var(--black); }
.project-story { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 80px; margin-top: 56px; }
.project-story h2 { margin-bottom: 22px; }
.project-facts { border-top: 6px solid var(--black); padding-top: 22px; }
.project-facts h3 { margin-bottom: 16px; }
.project-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; margin: 0; }
.project-facts dt { color: var(--steel); }
.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(--black); color: #fff; --focus: var(--yellow); }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox > img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox > p { font-size: 14px; margin: 16px 0 0; color: var(--on-dark); }
.lightbox-close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border: 0; background: var(--yellow); color: var(--black); 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: 18px; }
.contact-details > p { color: var(--steel); margin-bottom: 26px; }
.contact-method { display: block; padding: 20px 0; border-top: 2px solid var(--black); }
.contact-method:last-of-type { border-bottom: 2px solid var(--black); }
.contact-method > span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.contact-method > strong { display: block; font-stretch: 66%; font-weight: 800; font-size: 40px; line-height: 1; overflow-wrap: anywhere; }
.contact-method[href^=mailto] > strong { font-size: 30px; }
.contact-method:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.contact-area { margin: 34px 0 24px; }
.contact-area h3 { margin-bottom: 10px; }
.contact-area p { color: var(--steel); }
.social-links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.social-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.inquiry-panel { min-width: 0; padding: 40px; background: var(--concrete); border-top: 10px solid var(--yellow); }
.inquiry-panel h2 { margin-bottom: 14px; }
.inquiry-panel > p { color: var(--steel); 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: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.required { color: #735a00; }
input, textarea, select { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; background: #fff; border: 2px solid #9b988f; border-radius: 0; font-size: 16px; line-height: 1.4; color: var(--ink); }
input:hover, textarea:hover, select:hover { border-color: var(--black); }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--black); outline: 3px solid var(--yellow); outline-offset: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f6d66; }
.form-note { font-size: 14px; color: var(--steel); }
.form-recaptcha { margin: 14px 0 0; font-size: 13px; color: var(--steel); }
/* 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: 2px solid var(--black); }
.email-preview h3 { font-size: 26px; margin-bottom: 12px; }
.email-preview > p { color: var(--steel); }
.email-preview label { font-weight: 600; }
.email-preview textarea { font-size: 15px; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#copy-status { margin: 14px 0 0; font-size: 15px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0 0 20px; padding: 14px 16px; background: #fff; border-left: 6px solid #b42318; font-weight: 600; }
.form-sent { padding: 28px 30px; background: var(--black); color: #fff; border-left: 10px solid var(--yellow); --focus: var(--yellow); }
.form-sent h3 { font-size: 28px; margin-bottom: 10px; }
.form-sent p { color: var(--on-dark); margin: 0; }
.form-sent a { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
#project-form .button[disabled] { opacity: .6; cursor: progress; }

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

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 72px; }
  :root { --header: 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: 2px solid #4a4a46; order: 3; }
  .nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) 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 #2f2f2c; }
  .main-menu > li > a, .services-control > a { padding: 16px 4px; font-size: 18px; }
  .main-menu > li > a[aria-current=page]::after, .services-item.active .services-control > a::after, .parent-active > a::after { left: -12px; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
  .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: 18px 16px 10px; box-shadow: none; }
  .services-menu section + section { margin-top: 22px; }
  .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: 40px 10px; }
  .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; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; font-size: 16px; }
  .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; background: var(--yellow); color: var(--black); font-size: 14px; }
  .header-phone:hover { background: #fff; color: var(--black); }
  .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: 18px; }
  .hero { padding-top: 34px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: clamp(50px, 15.5vw, 84px); }
  .hero-description { font-size: 17px; 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: 15px; }
  .hero-figure { margin-inline: calc(var(--gutter) * -1); padding-bottom: 4px; }
  /* On phones the numbered key already says what's in the photo. */
  .plan-photo figcaption { display: none; }
  .plan-markers span { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; box-shadow: 0 0 0 3px rgba(248, 213, 59, .35); }
  /* 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: #333; border-bottom: 1px solid #333; }
  .callout { position: static; transform: none; flex-direction: row; gap: 9px; padding: 9px 12px 9px 16px; background: var(--black); }
  .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(--black); font-size: 11px; font-weight: 800; }
  .leader { display: none; }
  .callout a { padding: 0; border: 0; background: none; font-size: 13px; line-height: 1.25; white-space: normal; text-decoration: underline; text-decoration-color: #6d6c66; text-underline-offset: 3px; }
  .callout a:hover { background: none; color: var(--yellow); }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  h2 { font-size: clamp(40px, 11vw, 54px); }
  h2 br { display: none; }
  .service-tiles { grid-template-columns: 1fr; }
  .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: 30px; }
  .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: 6px 9px; }
  .team-photo figcaption { position: static; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .step-number { font-size: 72px; }
  .review:first-child blockquote p { font-size: 46px; }
  .review blockquote p { font-size: 30px; }
  .faqs summary { font-size: 19px; }
  .faqs details p { padding-right: 0; }
  .cta-band { padding: 60px 0; }
  .cta-phone { font-size: clamp(48px, 15vw, 72px); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .page-intro { padding: 20px 0 58px; }
  .breadcrumbs { margin-bottom: 36px; font-size: 13px; }
  .page-intro h1 { font-size: clamp(50px, 15vw, 76px); }
  .intro-copy { font-size: 18px; }
  .team-bios { grid-template-columns: 1fr; gap: 48px; }
  .scope-list { grid-template-columns: 1fr; }
  .planning-note { padding: 26px 22px; border-left-width: 8px; }
  .service-aside { padding: 30px 24px; }
  .service-aside h2 { font-size: 40px; }
  .related-services { grid-template-columns: 1fr; }
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
  .filter-buttons button { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .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; }
}

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

/* 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: 12px; }
  .hero-buttons { gap: 6px; }
  .hero-buttons .button { padding: 0 6px; font-size: 14px; }
}

/* 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(36px, 13.5vw, 58px); }
  .hero h1 span { display: block; white-space: nowrap; }
  .hero-description { font-size: 16px; line-height: 1.5; 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; transition: transform .6s var(--ease); }
.post-card:hover .post-photo img { transform: scale(1.035); }
.post-text { padding-top: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.post-meta > * { font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 8px; }
.post-meta time { background: var(--black); color: #fff; }
.post-meta span { box-shadow: inset 0 0 0 1px #9b988f; }
.post-card h2, .post-card h3 { font-stretch: 75%; font-weight: 800; line-height: 1.05; margin-bottom: 10px; }
.post-card h3 { font-size: 28px; }
.post-card h2 a, .post-card h3 a { background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 6px; background-position: 0 92%; background-repeat: no-repeat; transition: background-size .25s; }
.post-card:hover h2 a, .post-card:hover h3 a, .post-card h2 a:focus-visible, .post-card h3 a:focus-visible { background-size: 100% 6px; }
.post-summary { color: var(--steel); font-size: 16px; margin: 0; }
.no-photo .post-text { border-top: 6px solid var(--yellow); 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-stretch: 66%; font-size: clamp(42px, 4.6vw, 68px); line-height: .95; margin-bottom: 20px; }
.post-featured .post-summary { font-size: 19px; margin-bottom: 26px; }
.blog-more { font-size: clamp(34px, 3.4vw, 48px); margin: 0 0 36px; padding-top: 36px; border-top: 3px solid var(--black); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 28px; }
.post-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 2px solid var(--black); }
.page-count { color: var(--steel); font-weight: 600; }
.blog-empty { max-width: 680px; padding: 40px; background: var(--concrete); border-left: 10px solid var(--yellow); }
.blog-empty h2 { margin-bottom: 14px; }
.blog-empty p { color: var(--steel); }
.blog-empty-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* A single article */
.post-body { min-width: 0; font-size: 18px; line-height: 1.7; }
.post-hero { margin: 0 0 44px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body > p, .post-body > ul, .post-body > ol, .post-body > blockquote, .post-body > h2, .post-body > h3 { max-width: 68ch; }
.post-body h2 { font-size: clamp(32px, 3.2vw, 46px); 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: 3px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.post-body a:hover { text-decoration-color: var(--black); }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.post-body li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.post-body ul > li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 12px; height: 12px; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--black); }
.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: -.05em; font-stretch: 66%; font-weight: 800; font-size: 1.3em; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 8px solid var(--yellow); }
.post-body blockquote p { margin: 0; font-stretch: 80%; font-weight: 700; font-size: 1.3em; line-height: 1.35; }
.post-body figure { margin: 2em 0; }
.post-body figure img { width: 100%; }
.post-body figcaption { font-size: 15px; color: var(--steel); margin-top: 10px; }
.post-body hr { border: 0; width: 88px; height: 6px; background: var(--yellow); margin: 2.4em 0; }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--concrete); padding: 2px 6px; }
.aside-related { margin: 24px 0 0; padding-top: 18px; border-top: 2px solid var(--black); font-size: 15px; }
.aside-related a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.draft-banner { background: var(--yellow); color: var(--black); padding: 12px 0; font-size: 15px; border-bottom: 2px solid var(--black); }
.draft-banner a { font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* ---------- Blog admin ---------- */
body.admin { background: var(--concrete); min-height: 100vh; }
.editor-box input[type=file] + .hint { margin-bottom: 18px; }
.admin-bar { background: var(--black); color: #fff; --focus: var(--yellow); }
.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-weight: 700; font-size: 15px; }
.admin-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; }
.admin-nav a:hover { color: var(--yellow); }
.admin-nav form { margin: 0; }
.admin-nav button { background: none; border: 2px solid #4a4a46; color: #fff; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.admin-nav button:hover { border-color: var(--yellow); color: var(--yellow); }
.admin-main { padding: 48px 0 96px; }
.admin-main h1 { font-size: clamp(40px, 4.4vw, 60px); margin-bottom: 18px; }
.admin-narrow { max-width: 580px; background: #fff; padding: 36px 36px 40px; border-top: 10px solid var(--yellow); }
.admin-narrow h1 { font-size: 46px; }
.admin-narrow code, .admin-main code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--concrete); padding: 1px 5px; }
.hint { display: block; font-weight: 400; font-size: 14px; color: var(--steel); margin-top: 6px; }
.admin-flash { padding: 14px 18px; margin: 0 0 24px; font-weight: 600; background: #fff; border-left: 8px solid var(--yellow); }
.admin-flash-error { border-left-color: #b42318; }
.admin-flash-note { border-left-color: var(--black); }
.admin-errors { background: #fff; border-left: 8px solid #b42318; padding: 16px 20px; margin-bottom: 24px; }
.admin-errors p { font-weight: 700; 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(--steel); font-weight: 600; }
.admin-hello a { text-decoration: underline; text-underline-offset: 3px; }
.admin-table-wrap { overflow-x: auto; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th { text-align: left; padding: 14px 16px; border-bottom: 3px solid var(--black); font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-title-link { font-weight: 700; font-size: 17px; }
.post-title-link:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.post-path { display: block; color: var(--steel); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.row-actions { white-space: nowrap; }
.row-actions a { font-weight: 700; margin-right: 14px; text-decoration: underline; text-underline-offset: 3px; }
.status { display: inline-block; padding: 6px 9px; font-size: 13px; font-weight: 700; line-height: 1; }
.status-draft { box-shadow: inset 0 0 0 1px #9b988f; }
.status-live { background: var(--yellow); color: var(--black); }
.status-scheduled { background: var(--black); color: #fff; }
.admin-empty { background: #fff; padding: 28px; }
.admin-empty a { font-weight: 700; text-decoration: underline; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.editor-main { background: #fff; 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: 2px solid #9b988f; border-right: 0; font-weight: 600; color: var(--steel); }
.slug-field input { margin-top: 0; min-width: 0; }
.markdown-help summary { cursor: pointer; font-weight: 700; }
.markdown-help table { margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.markdown-help td { padding: 7px 18px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.editor-side { display: grid; gap: 20px; position: sticky; top: 20px; min-width: 0; }
.editor-box { background: #fff; padding: 24px; border-top: 6px solid var(--black); }
.editor-box:first-child { border-top-color: var(--yellow); }
.editor-box h2 { font-size: 28px; 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(--black); }
.admin-form input[type=file] { padding: 10px; font-size: 14px; }
.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: #fff; padding: 24px 28px; border-top: 6px solid #b42318; }
.danger-zone h2 { font-size: 28px; margin-bottom: 8px; }
.danger-zone p { color: var(--steel); }
.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(38px, 11vw, 52px); }
  .post-body { font-size: 17px; }
  .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; }
}

/* ---------- Project page: extra photos ---------- */
.project-description { font-size: 18px; }
.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; transition: transform .5s var(--ease); }
.gallery-photos button:hover img { transform: scale(1.04); }

/* ---------- Admin: dashboard, projects, photos ---------- */
.admin-note { color: var(--steel); max-width: 72ch; margin-bottom: 22px; }
.box-hint { margin: -6px 0 14px; }
.optional { font-weight: 400; color: var(--steel); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.slug-field .slug-suffix { border-left: 0; border-right: 2px solid #9b988f; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dash-card { background: #fff; padding: 30px; border-top: 10px solid var(--yellow); }
.dash-card h2 { font-size: 44px; margin-bottom: 10px; }
.dash-count { color: var(--steel); font-size: 18px; margin: 0; }
.dash-count strong { color: var(--ink); 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-stretch: 75%; font-weight: 800; 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: 2px solid var(--black); background: #fff; font-weight: 800; 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: 12px; color: var(--steel); }
.gallery-manager { margin-top: 30px; padding-top: 26px; border-top: 3px solid var(--black); }
.gallery-manager h2 { font-size: 32px; 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 ----------
   Small, quick movements: content settles into place as it scrolls into view,
   page titles arrive on load, and controls answer the pointer. All of it is
   switched off for visitors who ask their system for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Page load */
  .hero h1 { animation: rise .8s var(--ease) both .05s; }
  .hero-side { animation: rise .8s var(--ease) both .18s; }
  .plan-photo { animation: rise .9s var(--ease) both .3s; }
  .page-intro h1 { animation: rise .7s var(--ease) both .05s; }
  .page-intro .intro-tags { animation: rise .7s var(--ease) both .12s; }
  .page-intro .intro-copy { animation: rise .7s var(--ease) both .18s; }
  .page-intro::after { animation: lay .9s var(--ease) both .25s; }

  /* Scroll reveals (classes added by site.js only for content below the fold) */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .reveal.is-revealed { opacity: 1; transform: none; }

  /* Process steps: each yellow board is laid down in turn */
  .process-steps li.reveal::before { transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
  .process-steps li.is-revealed::before { transform: scaleX(1); }

  /* Before and after: the finished deck wipes into view */
  .transform-photos figure.reveal:last-child img { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 200ms); }
  .transform-photos figure.is-revealed:last-child img { clip-path: inset(0); }

  /* Things that appear when someone acts */
  .gallery-grid .project-card:not([hidden]) { animation: rise .45s var(--ease) both; }
  .form-sent:not([hidden]), .email-preview:not([hidden]), .form-alert:not([hidden]) { animation: rise .45s var(--ease) both; }
  .lightbox[open] { animation: pop .3s var(--ease) both; }
  .lightbox[open]::backdrop { animation: fade .3s ease both; }

  .services-menu { transition: opacity .2s ease, transform .25s var(--ease); }
  @starting-style { .services-menu { opacity: 0; transform: translate(-50%, -8px); } }
  @starting-style { .cities-item .services-menu { opacity: 0; transform: translateY(-8px); } }
  .primary-navigation.is-open { transition: opacity .2s ease, transform .25s var(--ease); }
  @starting-style { .primary-navigation.is-open { opacity: 0; transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1180px) {
  @starting-style { .services-menu { opacity: 0; transform: translateY(-8px); } }
}
@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[aria-current=page]::after, .header.is-scrolled .services-item.active .services-control > a::after, .header.is-scrolled .parent-active > a::after { bottom: 11px; }
}

/* 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 .35s var(--ease), content-visibility .35s allow-discrete; }
  .faqs details[open]::details-content { block-size: auto; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lay { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } 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(--line); padding-bottom: 4px; margin-bottom: 3px; font-weight: 700; }
@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)); }
}
