/* Echelon Contracting
   Palette comes from the logo: plank orange, black, white.
   One typeface (Archivo): expanded + heavy for headlines, normal width for text. */

:root {
  --orange: #f7941d;
  --orange-hot: #ff8a00;
  --orange-ink: #a85600;   /* orange that passes contrast on white */
  --black: #000;
  --coal: #1c1c1c;
  --coal-2: #2a2a2a;
  --white: #fff;
  --stone: #f1eee8;
  --line: #dedad2;
  --text: #1c1c1c;
  --text-soft: #55514a;
  --on-dark-soft: #c9c5bd;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --band-y: clamp(4rem, 9vw, 7rem);
  --radius: 18px;
  --radius-sm: 10px;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, .btn, .plank-track span {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 900; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.15; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.band-orange :focus-visible { outline-color: var(--black); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--orange); color: var(--black); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: .9rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-orange { background: var(--orange); color: var(--black); }
.btn-orange:hover { background: var(--orange-hot); }
.btn-dark { background: var(--coal); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--stone); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 12px 0 auto 0; z-index: 100;
  padding-inline: var(--gutter);
}
.header-pill {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border-radius: 999px;
  padding: .45rem .55rem .45rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.brand img { width: 62px; height: auto; }
.main-nav { display: flex; gap: 1.5rem; margin-right: auto; margin-left: .5rem; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--orange); }
.header-phone {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-weight: 800; font-size: 1rem; line-height: 1.15; color: var(--black);
}
.header-phone svg { color: var(--orange-ink); }
.header-phone small { display: block; font-weight: 500; font-size: .72rem; color: var(--text-soft); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--coal); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); 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); }
.mobile-nav {
  max-width: var(--wrap); margin: .5rem auto 0;
  background: var(--white); border-radius: var(--radius);
  padding: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  display: grid; gap: .15rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: .9rem 1rem; text-decoration: none; font-weight: 700; border-radius: var(--radius-sm); }
.mobile-nav a:not(.btn):hover { background: var(--stone); }
.mobile-nav .btn { margin-top: .5rem; }

/* ---------- Hero ---------- */
/* Scroll-built backyard. The section is tall; its sticky child stays pinned while
   js/build.js turns scroll distance into build progress on the canvas. */
.build { position: relative; height: 400vh; background: var(--coal); color: var(--white); }
.build-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
}
.build-view { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* the whole photo is always shown; a blurred copy of the lawn fills any space left beside it */
.build-view::before {
  content: ""; position: absolute; inset: -40px;
  background: url("../assets/img/hero-yard.jpg") center / cover;
  filter: blur(28px) brightness(.5);
}
.build-canvas, .build-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.build-fallback { object-fit: cover; }
.js .build-fallback { visibility: hidden; }
.build-canvas { display: block; touch-action: pan-y; }
.build-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,20,20,.86) 0%, rgba(20,20,20,.62) 38%, rgba(20,20,20,0) 72%),
    linear-gradient(180deg, rgba(20,20,20,.45) 0, rgba(20,20,20,0) 22%);
}
.build-copy {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding-top: 4.5rem; pointer-events: none;
}
.build-copy .wrap > * { pointer-events: auto; }
.build-copy h1 { max-width: 15ch; font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.hero-lede { margin-top: 1.25rem; max-width: 46ch; color: #f0ede6; font-size: 1.1rem; }

/* progress rail + hint, bottom centre of the scene */
.build-rail {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.1rem; max-width: calc(100% - 2rem);
  padding: .6rem 1.1rem; border-radius: 999px;
  background: rgba(20,20,20,.82); color: var(--white);
  font-size: .82rem; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.build-rail ol { display: flex; gap: .9rem; }
.build-rail li {
  --k: 0; position: relative; padding-bottom: .4rem;
  font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
  color: var(--on-dark-soft);
}
.build-rail li::before, .build-rail li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 2px;
  background: rgba(255,255,255,.25);
}
.build-rail li::after { background: var(--orange); transform-origin: left; transform: scaleX(var(--k)); }
.build-rail li.is-done { color: var(--white); }

/* hover / tap targets on the finished build */
.build-pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem .95rem .4rem .5rem;
  border: 0; border-radius: 999px; background: var(--white); color: var(--black);
  font: inherit; font-size: .8rem; font-weight: 800; font-stretch: 115%; text-transform: uppercase;
  line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; scale: .8;
  transition: opacity .3s, scale .35s cubic-bezier(.2,1.4,.4,1), visibility 0s .3s, background-color .15s;
}
.pin.is-flipped { left: auto; right: 0; }
.build.is-built .pin { opacity: 1; visibility: visible; scale: 1; pointer-events: auto; transition-delay: 0s; }
.build.is-built .pin:nth-child(2) { transition-delay: .08s; }
.build.is-built .pin:nth-child(3) { transition-delay: .16s; }
.pin i {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--black);
}
.pin i::before, .pin i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px;
  background: var(--black); transform: translate(-50%, -50%);
}
.pin i::after { transform: translate(-50%, -50%) rotate(90deg); }
.pin-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  max-width: 0; overflow: hidden; opacity: 0; color: var(--orange-ink);
  transition: max-width .3s, opacity .2s, margin .3s;
}
.pin:hover, .pin:focus-visible, .pin.is-active { background: var(--white); }
.pin:hover .pin-cta, .pin:focus-visible .pin-cta, .pin.is-active .pin-cta { max-width: 11rem; opacity: 1; margin-left: .35rem; }
@media (hover: none) {
  .pin-cta { max-width: 11rem; opacity: 1; margin-left: .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .build.is-built .pin i { animation: pin-pulse 2.2s ease-out infinite; }
  @keyframes pin-pulse {
    0% { box-shadow: 0 0 0 0 rgba(247,148,29,.7); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(247,148,29,0); }
  }
}

/* trust strip under the scene */
.trust { background: var(--coal); padding-block: 1.25rem; }
.trust .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--wrap); margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.badges {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
  margin-top: 2rem; max-width: 34rem;
}
.badges li {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem .85rem; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-sm);
  background: rgba(20,20,20,.55);
  font-size: .78rem; line-height: 1.25; color: var(--on-dark-soft);
}
.badges svg { flex: none; color: var(--orange); }
.badges strong { display: block; color: var(--white); font-size: .84rem; font-stretch: 110%; font-weight: 800; text-transform: uppercase; }

/* load-in: the one orchestrated moment on the page */
@media (prefers-reduced-motion: no-preference) {
  .build-copy .wrap > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .build-copy .wrap > :nth-child(2) { animation-delay: .08s; }
  .build-copy .wrap > :nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Quote panel ---------- */
.quote {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(460px, 100%); height: 100%; max-height: none; max-width: none;
  padding: 0; border: 0; background: var(--white); color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -24px 0 60px rgba(0,0,0,.4);
}
.quote::backdrop { background: rgba(10,10,10,.6); }
@media (prefers-reduced-motion: no-preference) {
  .quote[open] { animation: quote-in .32s cubic-bezier(.2,.7,.2,1); }
  @keyframes quote-in { from { transform: translateX(40px); opacity: 0; } }
}
.quote-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--stone); cursor: pointer;
}
.quote-close:hover { background: var(--line); }
.quote-close span { position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--black); transform: rotate(45deg); }
.quote-close span + span { transform: rotate(-45deg); }
.quote-alt { margin-top: 1rem; font-size: .92rem; color: var(--text-soft); }
.quote-alt a { color: var(--black); font-weight: 700; }
/* without JavaScript the panel sits in the page so #estimate links still land on it */
html:not(.js) .quote { display: block; position: static; width: auto; height: auto; max-width: 560px; margin: 3rem auto; box-shadow: none; }
html:not(.js) .quote-close { display: none; }
html:not(.js) .build { height: auto; }

.quote-tab {
  position: fixed; right: 0; top: 50%; z-index: 95;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  padding: 1.1rem .7rem; border-radius: 0 12px 12px 0;
  background: var(--orange); color: var(--black); border: 2px solid var(--black); border-left: 0;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .03em;
  text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: background-color .15s, padding .15s;
}
.quote-tab:hover { background: var(--orange-hot); padding-inline: .95rem; }
.quote-tab:focus-visible { outline-color: var(--black); }

.estimate {
  position: relative; min-height: 100%;
  background: var(--white); color: var(--text);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 8px solid var(--orange);
}
.estimate h2 { font-size: 1.5rem; padding-right: 3.5rem; }
.estimate-sub { color: var(--text-soft); font-size: .95rem; margin: .35rem 0 1.1rem; }
.field { margin-bottom: .8rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--stone); border: 2px solid transparent; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.field .is-invalid { border-color: #c62828; background: #fff5f4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: .95rem; font-weight: 600; margin-top: .8rem; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #1b6b34; }
.form-status:empty { display: none; }

/* ---------- Plank band (boards from the logo) ---------- */
.plank-band {
  background: var(--orange); color: var(--black); overflow: hidden;
  border-block: 6px solid var(--black);
}
.plank-track { display: flex; align-items: center; width: max-content; padding: 1rem 0; }
.plank-track span { font-size: clamp(1rem, 2vw, 1.35rem); white-space: nowrap; padding-inline: 1.5rem; }
.plank-track i { width: 6px; height: 2.2rem; background: var(--black); border-radius: 2px; transform: skewX(-14deg); }
@media (prefers-reduced-motion: no-preference) {
  .plank-track { animation: slide 32s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
.planks {
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 54px, var(--black) 54px 60px);
}

/* ---------- Bands ---------- */
.band { padding-block: var(--band-y); }
.band-white { background: var(--white); }
.band-stone { background: var(--stone); }
.band-dark { background: var(--coal); color: var(--white); }
.band-orange { background: var(--orange); color: var(--black); }
.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.band-head p { margin-top: .9rem; font-size: 1.1rem; color: var(--text-soft); }
.band-dark .band-head p { color: var(--on-dark-soft); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why-photo { position: relative; }
.why-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); }
.why-photo figcaption {
  position: absolute; right: -14px; bottom: 28px; max-width: 13.5rem;
  background: var(--coal); color: var(--white); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-size: .92rem; line-height: 1.3; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.why-photo figcaption strong { display: block; font-size: 3rem; line-height: .9; font-weight: 900; font-stretch: 125%; color: var(--orange); margin-bottom: .3rem; }
.why-copy > p { margin-top: 1.1rem; color: var(--text-soft); max-width: 56ch; }
.checks { margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.checks svg { flex: none; color: var(--orange); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--coal-2); }
.service { padding: 2rem 1.75rem 2.25rem 0; border-bottom: 2px solid var(--coal-2); }
.service:not(:nth-child(3n + 1)) { padding-left: 1.75rem; border-left: 2px solid var(--coal-2); }
.service h3 { font-size: 1.5rem; }
.service h3::after { content: ""; display: block; width: 44px; height: 6px; background: var(--orange); margin-top: .8rem; }
.service p { margin-top: 1rem; color: var(--on-dark-soft); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.work { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--coal); }
.work-lead { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.work figcaption {
  position: absolute; left: 12px; bottom: 12px; right: auto; max-width: calc(100% - 24px);
  background: var(--white); color: var(--text-soft); border-radius: var(--radius-sm);
  padding: .65rem .9rem; font-size: .88rem; line-height: 1.3;
}
.work figcaption strong { display: block; color: var(--black); font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: .92rem; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li {
  counter-increment: step; background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.75rem; border-bottom: 6px solid var(--orange);
}
.steps li::before {
  content: counter(step); display: block;
  font-size: 3.4rem; line-height: 1; font-weight: 900; font-stretch: 125%; color: var(--coal); margin-bottom: 1.1rem;
}
.steps p { margin-top: .6rem; color: var(--text-soft); font-size: 1rem; }

/* ---------- Offer ---------- */
.offer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.offer h2 { max-width: 22ch; }
.offer p { margin-top: 1rem; max-width: 58ch; font-weight: 500; }
.offer .fine { font-size: .88rem; margin-top: .7rem; font-weight: 400; }
.band-orange.band { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Area + reviews ---------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.area-grid > div > p { margin-top: 1rem; color: var(--text-soft); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chips li { padding: .6rem 1.1rem; border: 2px solid var(--coal); border-radius: 999px; font-weight: 700; font-size: .95rem; }
.chips li:first-child { background: var(--orange); border-color: var(--orange); }
.reviews { background: var(--stone); border-radius: var(--radius); padding: 1.75rem; }
.reviews[hidden] { display: none; }
.reviews p { margin: .7rem 0 1.3rem; color: var(--text-soft); }
.area-grid:has(.reviews[hidden]) { grid-template-columns: 1fr; }

/* ---------- Final CTA ---------- */
.cta-inner { text-align: center; display: grid; justify-items: center; }
.cta-inner h2 { max-width: 20ch; }
.cta-inner > p { margin-top: 1rem; color: var(--on-dark-soft); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.cta-email { margin-top: 1.5rem; color: var(--on-dark-soft); text-underline-offset: 4px; overflow-wrap: anywhere; }
.cta-email:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-soft); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 14px; padding: .4rem; }
.footer-logo img { width: 84px; }
.footer-brand p { margin-top: 1rem; max-width: 38ch; }
.site-footer h4 { color: var(--white); font-size: .95rem; font-stretch: 115%; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid nav a, .footer-grid div > a, .footer-grid div > span:not(.footer-logo) { display: block; padding: .3rem 0; text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-block: 1.25rem; font-size: .88rem; }

/* ---------- Phone action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 1.1rem; }
  .header-phone small { display: none; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  html { scroll-padding-top: 90px; }
  .main-nav, .header-cta { display: none; }
  .header-phone { margin-left: auto; }
  .nav-toggle { display: flex; }
  .quote-tab { display: none; }
  .trust .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .area-grid { grid-template-columns: 1fr; }
  .why-photo img { aspect-ratio: 16 / 11; }
  .why-photo figcaption { right: 12px; bottom: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 1.5rem; border-left: 2px solid var(--coal-2); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: 76px; }
  .site-header { inset: 8px 0 auto 0; }
  .brand img { width: 52px; }
  .header-phone span { display: none; }
  .header-phone { width: 48px; height: 48px; justify-content: center; border-radius: 50%; background: var(--orange); }
  .header-phone svg { color: var(--black); }
  .build-copy { padding-bottom: 5.5rem; }
  .build-copy h1 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
  .hero-lede { margin-top: .7rem; font-size: .95rem; line-height: 1.45; }
  .hero-actions { display: none; }
  /* compact labels: name plus an arrow, so they don't cover the photo */
  .pin { min-height: 38px; font-size: .66rem; padding: .3rem .65rem .3rem .35rem; gap: .35rem; }
  .pin i { width: 22px; height: 22px; }
  .pin-cta { font-size: 0; margin-left: .1rem; }
  .badges { gap: .5rem; }
  .badges li { padding: .65rem .6rem; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.5rem 0 1.6rem; border-left: 0; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .work-lead { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .5rem; padding: 1.2rem 1.1rem 1.3rem; }
  .steps li::before { grid-row: span 2; font-size: 2.6rem; margin: 0; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--coal); box-shadow: 0 -8px 24px rgba(0,0,0,.3);
  }
  .mobile-bar .btn { min-height: 50px; padding-inline: 1rem; }
}

/* Phones and upright tablets: the whole photo sits full-width under the header,
   with the progress rail and headline stacked beneath it. (js/build.js uses the same query.) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .build { height: 360vh; }
  .build-view { flex: 0 0 auto; margin-top: 5.5rem; aspect-ratio: 1280 / 853; overflow: visible; }
  .build-view::before, .build-scrim { display: none; }
  .build-rail { top: 100%; bottom: auto; margin-top: .75rem; flex-direction: column; gap: .35rem; padding: .5rem 1rem .6rem; border-radius: 16px; font-size: .78rem; }
  .build-rail ol { gap: .8rem; }
  .build-copy { position: static; flex: 1 1 auto; align-items: flex-start; padding-top: 5.6rem; background: var(--coal); }
  .build-copy h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle span, .pin, .pin-cta, .quote-tab { transition: none; }
  /* no pinned scroll scene: show the finished backyard at normal height */
  .build { height: auto; }
}
