@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-latin-wght-normal.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

/* Wrenfield: a landscaper's site drawn like a site plan. Forest and sun yellow in big blocks,
   Epilogue set large and heavy, DM Mono for the drafting-stamp labels, contour lines and planting-plan symbols as the only ornament. */
:root {
  --forest: #1b3a2d;
  --forest-2: #24503d;
  --forest-deep: #11241b;
  --forest-ink: #e4ece6;
  --forest-mute: #b9cbbf;
  --ground: #f0f2ec;
  --survey: #e3e8de;   /* the area section: a pale plan sheet */
  --paper: #ffffff;
  --ink: #18231d;
  --ink-2: #4b5a51;
  --line: #d5dacf;
  --field-line: #76837a; /* 3.5:1 on the ground, 4:1 on white: form fields read as boxes */
  --sun: #f2b43c;
  --sun-hover: #f7c45e;
  --sun-ink: #1b2a20;
  --star: #a8740c;
  --stone: #cfd3c6;

  /* Epilogue Black: blunt, sturdy sans lettering, like a title block on a drawing sheet.
     DM Mono is the draftsman's stamp: labels only, never paragraphs, nav or buttons. */
  --display: "Epilogue", "Arial Black", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* One spacing scale. Everything below picks from it. */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
  --section: clamp(80px, 10vw, 152px);    /* top and bottom of every section */
  --intro-gap: clamp(32px, 4vw, 56px);    /* section heading to its content */
  --title-gap: clamp(12px, 1.2vw, 20px);  /* title to the line under it */
  --measure: 34rem;                       /* longest comfortable line for body copy */

  /* Type scale: big steps. Display titles are three to five times the body. */
  --t-hero: clamp(2.5rem, 1.2rem + 3.9vw, 4.875rem);
  --t-title: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);

  --gutter: max(clamp(20px, 4.5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: #9aa79d var(--ground);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--forest);
}
::selection { background: var(--sun); color: var(--sun-ink); }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, button, input, label { touch-action: manipulation; }
a { text-underline-offset: 0.2em; }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
/* On the dark green surfaces the ring switches to sun yellow. */
:is(.ribbon, .top, .hero, .work, .estimate__intro, .foot, .dock) :focus-visible { outline-color: var(--sun); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--sun); color: var(--sun-ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Contour lines: the grading sheet of a site plan, masked so each section picks its own line colour. */
.contours { position: relative; isolation: isolate; }
.contours::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--contour, rgb(255 255 255 / 0.07));
  -webkit-mask: url("../img/contours.svg") center / cover no-repeat;
  mask: url("../img/contours.svg") center / cover no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 var(--s-4);
  border: 0; border-radius: 4px;
  font: 700 1.0625rem/1 var(--body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sun { background: var(--sun); color: var(--sun-ink); }
.btn--line { background: transparent; color: var(--forest-ink); box-shadow: inset 0 0 0 1.5px rgb(228 236 230 / 0.45); }
.btn--forest { background: var(--forest); color: var(--forest-ink); }
.btn--small { min-height: 44px; padding: 0 var(--s-3); font-size: 0.9375rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { background: var(--sun-hover); }
  .btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--forest-ink); }
  .btn--forest:hover { background: var(--forest-2); }
}

/* Concept ribbon */
.ribbon {
  background: var(--ink); color: #c9d3cc;
  font-size: 0.8125rem; line-height: 1.4;
  text-align: center;
  padding: var(--s-1) var(--gutter);
  padding-top: calc(var(--s-1) + env(safe-area-inset-top, 0px));
}
.ribbon a { color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--forest-ink); border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.top__bar { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
/* The name sits over a small tracked "Landscapes", like a sign painted on a truck door. */
.logo { display: inline-grid; align-content: center; gap: 3px; min-height: 44px; color: var(--forest-ink); text-decoration: none; line-height: 1; }
.logo__name { font: 900 1.5rem/1 var(--display); letter-spacing: -0.012em; color: #fff; }
.logo__sub { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sun); }
.nav { display: none; gap: var(--s-4); margin-left: auto; font-size: 0.9375rem; }
.nav a { color: var(--forest-mute); text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; } }
.top__actions { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.top__phone { display: none; color: #fff; font-weight: 700; text-decoration: none; }
.nav a, .top__phone, .top__actions .btn { white-space: nowrap; }
.top__call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
.top__call .icon { width: 20px; height: 20px; }
.top__actions { gap: var(--s-1); }
@media (min-width: 620px) { .top__phone { display: inline; } .top__call { display: none; } .top__actions { gap: var(--s-4); } }
@media (min-width: 980px) {
  .nav { display: flex; }
  .top__actions { margin-left: 0; }
}
/* Laptop widths: tighter gaps so the phone, four links and the button all stay on one row. */
@media (min-width: 980px) and (max-width: 1279px) {
  .top__bar { gap: var(--s-4); }
  .nav { gap: var(--s-3); font-size: 0.875rem; }
  .top__actions { gap: var(--s-3); }
  .top__actions .btn--small { padding: 0 14px; font-size: 0.875rem; }
}
@media (min-width: 980px) and (max-width: 1059px) {
  .top__bar { gap: var(--s-3); }
  .nav { gap: var(--s-2); }
  .top__actions { gap: var(--s-2); }
}

/* Page not found */
.notfound__home { margin-left: auto; }
.notfound { background: var(--forest); color: var(--forest-ink); padding-block: clamp(64px, 12vw, 144px); min-height: 60svh; }
.notfound__code { font: 500 1rem/1 var(--mono); letter-spacing: 0.14em; color: var(--sun); }
.notfound__title { margin-top: var(--s-2); font: 900 var(--t-hero)/1.02 var(--display); letter-spacing: -0.028em; color: #fff; text-wrap: balance; max-width: 14ch; }
.notfound__lede { margin-block: var(--s-4) var(--s-5); max-width: 32rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--forest-mute); text-wrap: pretty; }

/* Section type */
.title {
  font: 900 var(--t-title)/1.02 var(--display);
  letter-spacing: -0.028em;
  color: var(--forest);
  text-wrap: balance;
}
.lede { margin-top: var(--title-gap); max-width: 36rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-2); text-wrap: pretty; }

/* ---------- Hero: a short headline, then the yard itself, edge to edge ---------- */
.hero {
  --contour: rgb(255 255 255 / 0.06);
  background: var(--forest); color: var(--forest-ink);
  display: grid;
  grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [content-start] minmax(0, calc(var(--max) * 0.6)) [mid] minmax(0, calc(var(--max) * 0.4)) [content-end] minmax(var(--gutter), 1fr) [full-end];
  padding-top: clamp(28px, 5vw, 64px);
}
.hero > * { grid-column: content; }
.hero__title {
  font: 900 var(--t-hero)/1.02 var(--display);
  letter-spacing: -0.028em;
  color: #fff;
  text-wrap: balance;
  max-width: 13ch;
}
.hero__side { margin-top: var(--s-4); }
.hero__lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--forest-mute); max-width: 30rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero__compare { grid-column: full; margin-top: clamp(28px, 4vw, 56px); }
.hero__caption {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 4px var(--s-5);
  padding-block: var(--s-4);
  font-size: 0.9375rem; color: var(--forest-mute);
}
.hero__caption strong { font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.02em; color: #fff; }
.hero__hint { color: var(--forest-mute); font-size: 0.875rem; }
html:not(.js-on) .hero__hint { display: none; }
.hint--touch { display: none; }
@media (pointer: coarse), (hover: none) { .hint--touch { display: inline; } .hint--fine { display: none; } }
/* The firm in four counts, each under its own rule, like the figures on a survey sheet. */
.hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-2); }
.hero__stats li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: var(--s-3); }
.hero__stats li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: rgb(255 255 255 / 0.4); transform-origin: 0 50%; }
.hero__stats strong { font: 900 clamp(2.5rem, 1.8rem + 2.6vw, 4rem)/1 var(--display); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 0.9375rem; line-height: 1.35; color: var(--forest-mute); max-width: 13rem; }
@media (min-width: 760px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4);
  padding-block: var(--s-4) var(--s-5);
  font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-ink);
  counter-reset: note;
}
/* Written like the notes block on a drawing: "Notes" then numbered lines. */
.hero__facts::before { content: "Notes"; color: var(--sun); }
.hero__facts li { counter-increment: note; }
.hero__facts li::before { content: counter(note) ". "; color: var(--forest-mute); }

@media (max-width: 619px) {
  /* Phones: headline, then straight to the yard; the pitch and buttons follow under the photo. */
  .hero__side { order: 3; margin-top: var(--s-1); }
  .hero__compare { order: 2; }
  .hero__stats { order: 4; margin-top: var(--s-4); }
  .hero__facts { order: 5; flex-direction: column; gap: 6px; }
  .hero__actions { display: grid; grid-template-columns: 1fr auto; }
  .hero__actions .btn { padding: 0 var(--s-3); }
  .hide-sm { display: none; }
  .hero__caption { padding-bottom: var(--s-3); }
}
@media (min-width: 620px) {
  .hero__caption { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; }
  .hero__caption strong { grid-row: span 2; }
}
@media (min-width: 900px) {
  /* Headline left, pitch right, both sitting on one baseline above the photo. */
  .hero { row-gap: 0; }
  .hero__title { grid-column: content-start / mid; align-self: end; max-width: none; }
  .hero__side { grid-column: mid / content-end; align-self: end; margin-top: 0; padding-left: var(--s-3); padding-bottom: 6px; }
  .hero__caption { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero__caption strong { grid-row: auto; }
  .hero__hint { text-align: right; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  /* The call button drops the number here so both buttons share one row. */
  .hero .hide-sm { display: none; }
}

/* Before / after */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba {
  position: relative;
  background: #2b3b31;
  user-select: none; -webkit-user-select: none;
}
.ba__pane { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; pointer-events: none; }
.ba__tag {
  position: absolute; top: var(--s-3); z-index: 1;
  padding: 7px 12px; border-radius: 3px;
  font: 500 0.8125rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--before { left: var(--s-3); background: rgb(17 36 27 / 0.82); color: #fff; }
.ba__tag--after { right: var(--s-3); background: var(--sun); color: var(--sun-ink); }
.ba__handle, .ba__range { display: none; }
/* Without JavaScript the two photos simply sit side by side (stacked on phones), each labelled. */
html:not(.js) .ba { display: grid; gap: 4px; }
@media (min-width: 700px) {
  html:not(.js) .ba { grid-template-columns: 1fr 1fr; }
  html:not(.js) .ba__pane { aspect-ratio: 4 / 3; }
}
html:not(.js) .ba__pane--before { order: -1; }

/* With JavaScript: one frame, the before photo clipped over the after, a handle between them. */
.js .ba { aspect-ratio: 4 / 5; overflow: hidden; }
/* The handle and drag cursor appear only once site.js is running, so a failed script never shows a dead control. */
.js-on .ba { touch-action: pan-y; cursor: ew-resize; }
.js .ba__pane { position: absolute; inset: 0; aspect-ratio: auto; }
.js .ba__pane--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.js-on .ba__handle {
  display: block;
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / 0.25);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--sun); color: var(--sun-ink);
  box-shadow: 0 0 0 3px #fff, 0 8px 22px -6px rgb(0 0 0 / 0.5);
  transition: transform 160ms var(--ease-out);
}
.ba__knob svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-dragging .ba__knob { transform: scale(1.08); }
.js-on .ba__range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
/* Keyboard focus lands on the hidden range: ring the knob so it is plain where the focus is. */
.ba:has(.ba__range:focus-visible) .ba__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--sun-ink), 0 0 0 10px #fff; }
@media (min-width: 700px) {
  .js .ba { aspect-ratio: 16 / 10; }
}
@media (min-width: 900px) {
  .js .ba { aspect-ratio: 2 / 1; }
  .ba__img { object-position: 50% 70%; }
}
@media (min-width: 1100px) {
  .js .ba { aspect-ratio: auto; height: clamp(480px, 72svh, 780px); }
}

/* ---------- Services: a planting-plan legend ---------- */
.services { --contour: rgb(27 58 45 / 0.07); padding-block: var(--section); }
.services__grid { display: grid; gap: var(--intro-gap); }
.legend { position: relative; padding-top: 2px; }
.legend::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--forest); transform-origin: 0 50%; }
.legend li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px var(--s-3);
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.legend__key { grid-row: span 2; width: 40px; height: 40px; fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.legend h3 { font: 800 clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem)/1.12 var(--display); letter-spacing: -0.022em; color: var(--forest); padding-top: 6px; }
.legend p { color: var(--ink-2); max-width: var(--measure); }
@media (min-width: 760px) {
  .legend li { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: var(--s-4); padding: 26px 0; }
  .legend__key { grid-row: auto; align-self: start; margin-top: -2px; }
  .legend h3 { padding-top: 0; }
  .legend p { padding-top: 3px; }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .services__intro { position: sticky; top: 112px; }
}

/* ---------- Work: a full-bleed mosaic, captioned by town ---------- */
.work { background: var(--forest-deep); color: var(--forest-ink); padding-top: var(--section); }
.work .title { color: #fff; }
.work .lede { color: var(--forest-mute); }
.work__head { margin-bottom: var(--intro-gap); }
.mosaic {
  display: grid; gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 42vw, 300px);
  grid-auto-flow: dense;
}
.tile { position: relative; overflow: hidden; background: #22362b; }
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile figcaption {
  position: absolute; left: 0; bottom: 0; max-width: calc(100% - 12px);
  padding: 8px 12px 9px;
  background: var(--forest-deep); color: #fff;
  font-size: 0.8125rem; line-height: 1.3;
}
.tile__town { display: block; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
@media (max-width: 899px) {
  /* Phones and tablets: two columns, big photos spanning both. */
  .mosaic > :nth-child(1), .mosaic > :nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .mosaic > :nth-child(2), .mosaic > :nth-child(8) { grid-row: span 2; }
  .mosaic > :nth-child(5), .mosaic > :nth-child(10) { grid-column: span 2; }
}
@media (max-width: 479px) {
  /* Phones: the landscape photos run full width so every caption fits; the two portraits pair up. */
  .mosaic > :is(:nth-child(3), :nth-child(4), :nth-child(7), :nth-child(9)) { grid-column: span 2; }
}
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 16vw, 250px); }
  .mosaic > * { grid-column: span 4; grid-row: span 1; }
  .mosaic > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .mosaic > :nth-child(2) { grid-column: span 5; grid-row: span 2; }
  .mosaic > :nth-child(6), .mosaic > :nth-child(7) { grid-column: span 6; grid-row: span 2; }
  .mosaic > :nth-child(8) { grid-column: span 3; grid-row: span 2; }
  .mosaic > :nth-child(9) { grid-column: span 5; grid-row: span 2; }
  .mosaic > :nth-child(10) { grid-column: span 4; grid-row: span 2; }
  .tile figcaption { font-size: 0.875rem; padding: 10px 16px 12px; }
}

/* ---------- Reviews: a sun-yellow block, one quote set large ---------- */
.reviews { background: var(--sun); color: var(--sun-ink); padding-block: var(--section); }
.reviews .title { color: var(--sun-ink); }
.reviews__head { display: grid; gap: var(--title-gap); }
.note { max-width: 30rem; font-size: 0.9375rem; color: var(--sun-ink); }
.quotes { display: grid; gap: var(--s-6); margin-top: var(--intro-gap); }
.stars { display: block; width: 104px; color: var(--forest); }
.stars svg { width: 100%; height: auto; fill: currentColor; display: block; }
.quote blockquote { margin-top: var(--s-3); }
.quote blockquote p { font: 600 clamp(1.125rem, 1rem + 0.45vw, 1.3125rem)/1.42 var(--display); letter-spacing: -0.015em; color: var(--sun-ink); text-wrap: pretty; }
.quote--lead blockquote p { font-size: clamp(1.5rem, 1rem + 2vw, 2.625rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.quote figcaption { margin-top: var(--s-3); font-weight: 700; font-size: 0.9375rem; }
.quote:not(.quote--lead) { position: relative; padding-top: var(--s-4); }
.quote:not(.quote--lead)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--sun-ink); transform-origin: 0 50%; }
@media (min-width: 900px) {
  /* The note lines up with the column of smaller quotes below it. */
  .reviews__head { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 112px); align-items: end; }
  .note { max-width: 22rem; padding-bottom: 8px; }
  .quotes { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 112px); row-gap: var(--s-5); }
  .quote--lead { grid-row: span 2; }
}

/* ---------- How it works: three stepping stones on a path ---------- */
.how { padding-block: var(--section); }
.steps { --gap: clamp(32px, 4vw, 64px); position: relative; display: grid; gap: var(--s-5); margin-top: var(--intro-gap); }
/* The path: a dashed line from stone to stone (down the side on phones, across on wide screens). */
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 31px; top: 58px; bottom: calc(-1 * var(--s-5)); width: 0;
  border-left: 2px dashed var(--forest-2);
}
.steps li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s-4); align-content: start; }
.steps__stone {
  grid-row: span 2; width: 64px; height: 58px; position: relative; z-index: 1;
  display: grid; place-items: center;
  background: var(--stone); color: var(--forest);
  font: 900 1.5rem/1 var(--display);
  border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
  box-shadow: inset 0 -3px 0 rgb(27 58 45 / 0.14);
}
.steps li:nth-child(2) .steps__stone { border-radius: 58% 42% 55% 45% / 44% 58% 42% 56%; }
.steps li:nth-child(3) .steps__stone { border-radius: 50% 50% 38% 62% / 60% 46% 54% 40%; }
.steps h3 { font: 800 clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem)/1.15 var(--display); letter-spacing: -0.022em; color: var(--forest); padding-top: 12px; }
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 26rem; }
.how__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  /* From the centre of the first stone to the centre of the last. */
  .steps li:not(:last-child)::before { content: none; }
  .steps__stone { width: 120px; height: 104px; font-size: 2.75rem; margin-bottom: var(--s-4); }
  .steps::before { content: ""; position: absolute; left: 60px; right: calc((100% - 2 * var(--gap)) / 3 - 60px); top: 52px; height: 0; border-top: 2px dashed var(--forest-2); transform-origin: left center; }
  .steps li { grid-template-columns: 1fr; }
  .steps__stone { grid-row: auto; margin-bottom: var(--s-3); }
  .steps h3 { padding-top: 0; }
}

/* ---------- Seasons: the year drawn as a job schedule, one bar per window ---------- */
.season { background: var(--forest-deep); color: var(--forest-ink); padding-block: var(--section); }
.season .title { color: #fff; }
.season .lede { color: var(--forest-mute); }
.cal { margin-top: var(--intro-gap); }
/* The month strip stays under the header while the chart scrolls, so every bar can be read against it. */
.cal__months {
  position: sticky; top: 65px; z-index: 2;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-block: var(--s-2); background: var(--forest-deep);
  border-bottom: 1.5px solid rgb(255 255 255 / 0.4);
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-mute);
}
.cal__months li { padding-left: 3px; }
.cal__months span { display: none; }
.cal__months .is-now { color: var(--sun); }
.cal__rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.cal__key { grid-row: span 2; width: 36px; height: 36px; fill: none; stroke: var(--sun); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cal h3 { font: 800 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.15 var(--display); letter-spacing: -0.022em; color: #fff; padding-top: 4px; }
.cal__rows p { color: var(--forest-mute); font-size: 0.9375rem; max-width: var(--measure); }
.cal__track {
  grid-column: 1 / -1; position: relative; margin-top: var(--s-2); height: 28px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  background: repeating-linear-gradient(to right, rgb(255 255 255 / 0.12) 0 1px, transparent 1px calc(100% / 12));
}
.cal__track i { grid-row: 1; height: 14px; border-radius: 2px; background: var(--sun); transform-origin: 0 50%; }
.cal__track i.maybe { background: rgb(255 255 255 / 0.22); }
.cal.has-now .cal__track::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--now) * 100%); width: 2px; margin-left: -1px; background: #fff; }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-4); font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-ink); }
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 10px; border-radius: 2px; background: var(--sun); }
.sw--maybe { background: rgb(255 255 255 / 0.22); }
.sw--now { width: 2px; height: 16px; border-radius: 0; background: #fff; }
.cal:not(.has-now) .cal__today { display: none; }
.cal__note { margin-top: var(--s-2); font-size: 0.9375rem; color: var(--forest-mute); }
@media (min-width: 900px) {
  .cal { --label: calc(40px + 19rem + 2 * var(--s-4)); }
  .cal__months { padding-left: var(--label); }
  .cal__months span { display: inline; }
  .cal__rows li { grid-template-columns: 40px 19rem minmax(0, 1fr); column-gap: var(--s-4); }
  .cal h3, .cal__rows p { grid-column: 2; }
  .cal__track { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; height: 100%; min-height: 28px; }
}

/* ---------- Area and hours: the plan sheet ---------- */
.area { --contour: rgb(27 58 45 / 0.1); background: var(--survey); padding-block: var(--section); }
.area__grid { display: grid; gap: var(--s-6); }
.towns { display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 2.4vw, 36px); margin-top: var(--s-5); max-width: 46rem; }
/* Each town marked like a place on a map: a dot, then the name. */
.towns li { display: inline-flex; align-items: center; gap: 0.4em; font: 700 clamp(1.25rem, 1.05rem + 1.1vw, 1.875rem)/1.25 var(--display); letter-spacing: -0.022em; color: var(--forest); }
.towns li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--star); box-shadow: 0 0 0 3px var(--survey), 0 0 0 4.5px var(--star); }
/* Hours: a drawing's title block. */
.hours { border: 1.5px solid var(--forest); background: var(--paper); align-self: start; }
.hours h3 { padding: var(--s-2) var(--s-4); border-bottom: 1.5px solid var(--forest); font: 500 0.8125rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); }
.hours dl { padding: 0 var(--s-4); }
.hours dl div { display: grid; align-items: baseline; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { font: 500 0.8125rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--forest); align-self: baseline; }
.hours dd { color: var(--ink-2); text-align: right; }
.hours__note { padding: var(--s-3) var(--s-4) 0; color: var(--ink-2); font-size: 0.9375rem; }
.hours__phone { padding: var(--s-2) var(--s-4) var(--s-4); }
.hours__phone a { font: 800 1.5rem/1.2 var(--display); color: var(--forest); text-decoration: none; letter-spacing: -0.03em; }
@media (max-width: 459px) {
  /* Long hours drop under their day instead of wrapping in a narrow right column. */
  .hours dl div { grid-template-columns: 1fr; gap: 2px; }
  .hours dd { text-align: left; }
}
@media (min-width: 900px) { .area__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 104px); align-items: end; } }

/* ---------- Estimate ---------- */
.estimate { --contour: rgb(255 255 255 / 0.05); background: var(--forest); color: var(--forest-ink); padding-block: var(--section); }
.estimate .title { color: #fff; }
.estimate .lede { color: var(--forest-mute); }
.estimate__grid { display: grid; gap: var(--s-6); }
.estimate__call { margin-top: var(--s-4); font-size: 1.0625rem; }
.estimate__call a { color: #fff; font-weight: 700; }
@media (min-width: 900px) {
  .estimate__intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 104px); align-items: end; }
  .estimate__intro .title { grid-row: span 2; }
  .estimate__intro .lede { margin-top: 0; }
}

.form { display: grid; gap: 20px; background: var(--paper); color: var(--ink); border-radius: 2px; padding: 0 clamp(20px, 3vw, 40px) clamp(22px, 3vw, 40px); outline: 1.5px solid var(--paper); outline-offset: 6px; }
/* The form is a drawing sheet: a title strip across the top, square corners, a keyline around it. */
.form__head { display: flex; justify-content: space-between; gap: var(--s-3); margin-inline: calc(-1 * clamp(20px, 3vw, 40px)); padding: var(--s-2) clamp(20px, 3vw, 40px); border-bottom: 1.5px solid var(--forest); font: 500 0.8125rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); }
.form__head span + span { color: var(--ink-2); }
@media (max-width: 459px) { .form__head span + span { display: none; } }
@media (min-width: 1100px) {
  .form { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-4); }
  .form .form__row { display: contents; }
  .form > :not(.form__row) { grid-column: 1 / -1; }
  .form .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form__end { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .form__end .btn--block { width: auto; margin-left: auto; padding: 0 var(--s-6); }
  .form__status:not(:empty) { margin-bottom: 0; }
}
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-1); border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field-line); border-radius: 2px;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:not([type="checkbox"]):focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 1.5px var(--forest); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.checks { grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
.checks legend { margin-bottom: var(--s-1); }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); flex: none; }
@media (max-width: 419px) { .checks { grid-template-columns: 1fr; } }
.form__status { font-weight: 600; color: var(--forest); }
/* The status shares one gap with the button; empty, it takes no space but stays a live region. */
.form__status:not(:empty) { margin-bottom: var(--s-2); }
.form__status.is-error { color: #b3261e; }

/* Footer */
.foot { background: var(--ink); color: #b9c4bd; padding-top: 64px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.foot a { color: #fff; }
.foot p { max-width: 40rem; }
.foot__grid { display: grid; gap: var(--s-4); }
.logo--foot { margin-bottom: var(--s-2); }
.foot__credit { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr auto; } .foot__grid > div:last-child { text-align: right; } }

/* Phone dock: call and estimate always under the thumb */
.dock { display: none; }
@media (max-width: 619px) {
  .dock {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--forest);
    box-shadow: 0 -8px 24px -12px rgb(0 0 0 / 0.4);
    transform: translateY(0);
    transition: transform 280ms var(--ease-out), visibility 0s linear 0s;
  }
  .dock.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 280ms var(--ease-out), visibility 0s linear 280ms; }
  .js .dock:not(.is-ready) { transform: translateY(110%); visibility: hidden; transition: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 4px;
    font-weight: 700; text-decoration: none;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    transition: transform 120ms var(--ease-out);
  }
  .dock a:active { transform: scale(0.97); }
  .dock__call { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
  .dock__book { background: var(--sun); color: var(--sun-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock.is-hidden { transition: visibility 0s; }
}

/* ---------- Motion ----------
   One authored moment: on load the divider sweeps from mostly-before to the middle, showing that the
   photo can be dragged. Everything else is quiet: text fades up once, photos open from their bottom
   edge, the stepping-stone path draws itself. Nothing is hidden unless JS runs and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .ba:not(.is-touched) { animation: ba-intro 1500ms var(--ease-in-out) 450ms both; }

  .js-on [data-reveal] { transition: opacity 600ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }

  .js-on [data-reveal="photo"] { transition: opacity 600ms ease, clip-path 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js-on [data-reveal="photo"]:not(.is-in) { opacity: 0.4; transform: none; clip-path: inset(14% 0 0 0); }

  .js-on [data-path]::before { transition: transform 1200ms var(--ease-in-out) 150ms; }
  .js-on [data-path]:not(.is-in)::before { transform: scaleX(0); }

  /* Rules draw from the left, counts and labels follow them in. */
  .js-on :is(.hero__stats li, .legend, .quote)::before { transition: transform 900ms var(--ease-out) calc(var(--n, 0) * 90ms + var(--i, 0) * 60ms); }
  .js-on :is(.hero__stats:not(.is-in) li, .legend:not(.is-in), .quote:not(.is-in))::before { transform: scaleX(0); }
  .js-on .hero__stats li > * { transition: opacity 600ms ease calc(var(--n) * 90ms + 150ms), transform 700ms var(--ease-out) calc(var(--n) * 90ms + 150ms); }
  .js-on .hero__stats:not(.is-in) li > * { opacity: 0; transform: translateY(10px); }

  /* The plan symbols draw themselves, stroke by stroke. */
  .js-on .legend__key { stroke-dasharray: 130; transition: stroke-dashoffset 1300ms ease-out calc(var(--i, 0) * 60ms + 200ms); }
  .js-on [data-reveal]:not(.is-in) .legend__key { stroke-dashoffset: 130; }

  /* Stones drop onto the path; town dots land on the map one after another. */
  .js-on .steps__stone { transition: transform 600ms var(--ease-pop) calc(var(--i, 0) * 60ms + 100ms); }
  .js-on [data-reveal]:not(.is-in) .steps__stone { transform: scale(0.5); }
  .js-on .towns li { transition: opacity 500ms ease calc(var(--n) * 70ms), transform 500ms var(--ease-out) calc(var(--n) * 70ms); }
  .js-on .towns:not(.is-in) li { opacity: 0; transform: translateY(8px); }
  .js-on .towns li::before { transition: transform 450ms var(--ease-pop) calc(var(--n) * 70ms + 200ms); }
  .js-on .towns:not(.is-in) li::before { transform: scale(0); }

  /* The schedule: each row eases in, then its bars run out from the left. */
  .js-on .cal__rows li > :not(.cal__track) { transition: opacity 600ms ease calc(var(--r) * 70ms), transform 700ms var(--ease-out) calc(var(--r) * 70ms); }
  .js-on .cal__rows li:not(.is-in) > :not(.cal__track) { opacity: 0; transform: translateY(10px); }
  .js-on .cal__track i { transition: transform 1000ms var(--ease-out) calc(var(--r) * 70ms + 250ms); }
  .js-on .cal__track i.maybe { transition-delay: calc(var(--r) * 70ms + 100ms); }
  .js-on .cal__rows li:not(.is-in) .cal__track i { transform: scaleX(0); }
  .js-on .cal__key { stroke-dasharray: 130; transition: stroke-dashoffset 1300ms ease-out calc(var(--r) * 70ms + 200ms), opacity 600ms ease calc(var(--r) * 70ms) !important; }
  .js-on .cal__rows li:not(.is-in) .cal__key { stroke-dashoffset: 130; }

  .js .hero__title, .js .hero__side { animation: rise 800ms var(--ease-out) both; }
  .js .hero__side { animation-delay: 80ms; }
}
@keyframes ba-intro { from { --pos: 88%; } to { --pos: 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* A thin sun-yellow line under the header fills as the page is read (where scroll timelines exist). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sun); transform-origin: 0 50%; animation: read linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
