/* ==========================================================================
   D. Roe Groundworks: homepage mockup
   Concept: the datum. A finished surface sits on a line, and everything that
   makes it last sits below. Palette is taken from the materials themselves.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --porcelain: #dedfda;
  --porcelain-lt: #ecedea;
  --porcelain-dk: #cdcfc9;
  --slate: #1e2427;
  --slate-2: #283034;
  --slate-3: #3a4448;
  --mute: #4f595d;
  --mute-lt: rgba(222, 223, 218, .72);
  --mot: #8c908a;
  --sand: #c99b3e;
  --sand-lt: #e4cb92;
  --earth: #43372e;
  --line: rgba(30, 36, 39, .2);
  --line-lt: rgba(222, 223, 218, .22);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4.2vw, 64px);
  --max: 1440px;
  --head: 64px;
  --sec: clamp(76px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); }
body {
  margin: 0;
  color: var(--slate);
  background-color: var(--porcelain);
  /* A 3:2 module, the proportion of the 900 x 600 mm porcelain we lay most. */
  background-image:
    linear-gradient(90deg, rgba(30, 36, 39, .04) 1px, transparent 1px),
    linear-gradient(rgba(30, 36, 39, .04) 1px, transparent 1px);
  background-size: 135px 90px;
  font: 400 1.0625rem/1.6 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--sand); color: var(--slate); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.hero :focus-visible, .head :focus-visible, .qt :focus-visible, .foot :focus-visible, .callbar :focus-visible { outline-color: var(--sand-lt); }

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

/* ---------- Type ---------- */
h2 {
  font-weight: 760;
  font-stretch: 104%;
  font-size: clamp(2rem, 4.3vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h3 { font-weight: 680; font-stretch: 102%; letter-spacing: -.01em; line-height: 1.15; }
.eyebrow {
  display: flex; align-items: center; gap: .85em;
  font: 500 .72rem/1 var(--f-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: .5rem; height: .5rem; background: var(--sand); flex: none; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--sand); transition: text-decoration-thickness .2s, color .2s; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.35em; border: 1px solid transparent; border-radius: 2px;
  font-weight: 620; font-stretch: 104%; font-size: .95rem; line-height: 1; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sand { background: var(--sand); color: var(--slate); }
.btn--sand:hover { background: var(--sand-lt); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: rgba(222, 223, 218, .1); }
.btn--slate { background: var(--slate); color: var(--porcelain); }
.btn--slate:hover { background: var(--sand); color: var(--slate); }

/* ---------- Header ---------- */
.head { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--head); color: var(--porcelain); transition: background-color .3s, box-shadow .3s; }
.head.is-solid { background: var(--slate); box-shadow: 0 1px 0 var(--line-lt); }
.head__in { width: min(100%, var(--max)); height: 100%; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { display: inline-flex; align-items: baseline; gap: .7em; padding: .62em .85em .56em; border: 1px solid var(--sand); color: #fff; text-decoration: none; line-height: 1; }
.mark__a { font-weight: 800; font-stretch: 116%; font-size: .98rem; letter-spacing: .04em; }
.mark__b { font: 400 .6rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sand-lt); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__list a { position: relative; display: inline-block; padding-block: 8px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__tel { display: inline-flex; align-items: baseline; gap: .8em; padding: .72em 1em; background: var(--sand); color: var(--slate); text-decoration: none; font-weight: 650; font-stretch: 104%; font-size: .92rem; line-height: 1; white-space: nowrap; transition: background-color .2s; }
.nav__tel span { font: 500 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.nav__tel:hover { background: var(--sand-lt); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  min-height: max(100svh, 700px);
  background: var(--slate); color: var(--porcelain);
}
.hero__photo { position: relative; overflow: hidden; min-height: 44vh; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 18, 20, .62), rgba(14, 18, 20, 0) 24%),
    linear-gradient(to top, rgba(14, 18, 20, .68), rgba(14, 18, 20, 0) 40%);
}
.hero__cap {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 16px;
  font: 400 .68rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .82); text-align: right; max-width: 52ch;
}

.hero__ground { position: relative; --pt: clamp(42px, 3.7vw, 54px); padding-top: var(--pt); padding-bottom: clamp(28px, 3.4vw, 48px); }
.hero__ground::before { content: ""; position: absolute; inset: 0; background: url("../images/grain.png"); opacity: .05; mix-blend-mode: screen; pointer-events: none; }

/* The datum: a level line with its flag, between photograph and ground. */
.datum { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 1px; background: var(--sand); transform-origin: left; }
.datum span {
  position: absolute; left: var(--gutter); top: 12px; display: flex; align-items: center; gap: .7em;
  font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-lt);
}
.datum span::before { content: ""; border: 5px solid transparent; border-top: 8px solid var(--sand); border-bottom: 0; }
@media (min-width: 1500px) { .datum span { left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }

.hero__in { position: relative; z-index: 2; width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.hero h1 {
  position: relative;
  font-weight: 800; font-stretch: 100%;
  font-size: clamp(2.3rem, 4.9vw, 4.7rem);
  line-height: .96; letter-spacing: -.03em;
}
/* First half of the headline sits on the photograph, second half below the datum. */
.h1a { position: absolute; left: 0; bottom: calc(100% + var(--pt) + .36em); display: block; white-space: nowrap; color: #fff; text-shadow: 0 2px 28px rgba(14, 18, 20, .45); }
.h1b { display: block; }
.hero__copy { max-width: min(54ch, 50vw); margin-top: clamp(16px, 2vw, 26px); }
.hero__copy > p:first-child { color: var(--mute-lt); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2.4vw, 30px); }

/* Compact strata drawn under the datum, bleeding off the right edge. */
.strata { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(41vw, 660px); display: flex; flex-direction: column; }
.strata__row { position: relative; display: grid; grid-template-columns: minmax(126px, 33%) 1fr; align-items: center; }
.strata__lbl { padding: 0 14px 0 0; font: 400 .62rem/1.25 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute-lt); text-align: right; }
.strata__lbl b { display: block; font-weight: 500; color: var(--sand-lt); }
.strata__layer { align-self: stretch; display: block; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .25); }
.s-blocks { height: 30px; }
.s-blocks .strata__layer { background: repeating-linear-gradient(90deg, #454b4f 0 36px, #1e2427 36px 38px); box-shadow: inset 0 3px 0 #5a6165; }
.s-sand { height: 38px; }
.s-sand .strata__layer { background: url("../images/pat-sand.svg"); }
.s-mot { height: 84px; }
.s-mot .strata__layer { background: url("../images/pat-mot.svg"); }
.s-sub { flex: 1; align-items: stretch; }
.s-sub .strata__layer { background: url("../images/pat-sub.svg"); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.s-sub .strata__lbl { padding-top: 12px; align-self: start; }
.strata figcaption { position: absolute; left: 0; right: 0; bottom: clamp(28px, 3.4vw, 48px); padding-left: calc(33% + 0px); font: 400 .62rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute-lt); }
.strata figcaption a { color: var(--sand-lt); text-underline-offset: .22em; text-decoration-color: var(--sand); }

/* Opening sequence: restrained, one orchestrated moment. */
.js .hero__photo img { animation: photo-in 1.6s var(--ease) both; }
.js .datum { animation: draw 1s .15s var(--ease) both; }
.js .h1a { animation: rise .9s .25s var(--ease) both; }
.js .h1b { animation: rise .9s .5s var(--ease) both; }
.js .hero__copy { animation: rise .9s .7s var(--ease) both; }
.js .strata__row, .js .strata figcaption { animation: peel .9s var(--ease) both; }
.js .s-blocks { animation-delay: .35s; }
.js .s-sand { animation-delay: .5s; }
.js .s-mot { animation-delay: .65s; }
.js .s-sub { animation-delay: .8s; }
@keyframes photo-in { from { transform: scale(1.05); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes peel { from { clip-path: inset(0 0 100% 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }

/* ---------- Title block ---------- */
.tb { border-bottom: 1px solid var(--line); background: rgba(236, 237, 234, .55); }
.tb__in { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(5, 1fr); }
.tb__cell { padding: 22px 20px 24px; border-left: 1px solid var(--line); }
.tb__cell:first-child { padding-left: 0; border-left: 0; }
.tb dt { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tb dd { margin-top: 10px; font-weight: 600; font-stretch: 102%; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.005em; }

/* ---------- Build-up ---------- */
.bu { padding-block: var(--sec); }
.bu__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 22px; margin-bottom: clamp(40px, 6vw, 88px); }
.bu__head .eyebrow { grid-column: 1 / -1; }
.bu__head h2 { grid-column: 1 / 8; }
.bu__lede { grid-column: 9 / 13; align-self: end; color: var(--mute); font-size: 1.125rem; max-width: 34ch; }
.bu__body { display: grid; grid-template-columns: minmax(0, 6.3fr) minmax(0, 5.7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.fig { position: sticky; top: calc(var(--head) + 24px); }
.fig__sheet { border: 1px solid var(--slate); background: var(--porcelain-lt); }
.fig__svg { width: 100%; height: auto; aspect-ratio: 700 / 460; }
.fig__cap { display: flex; gap: .8em; align-items: baseline; margin-top: 14px; font: 400 .78rem/1.35 var(--f-mono); letter-spacing: .04em; min-height: 2.7em; }
.fig__n { text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }

.svg-paper { fill: var(--porcelain-lt); stroke: none; }
.svg-paper-fill { fill: var(--porcelain-lt); }
.svg-edge { fill: none; stroke: #1e2427; stroke-opacity: .55; stroke-width: .8; }
.svg-dash { stroke: #e4cb92; stroke-opacity: 1; stroke-dasharray: 5 4; stroke-width: 1.2; }
.joints { fill: #1e2427; transition: fill .6s; }
.svg-water { fill: none; stroke: #4c7f9a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 4; }
.svg-t text { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; fill: #1e2427; }
.svg-t text.b { font-weight: 700; fill: #6b4f12; }
.svg-t text.on-dark { fill: #e4cb92; }
.svg-t text.road { fill: #4f595d; }
.svg-t .lead, .svg-t .dim { fill: none; stroke: #1e2427; stroke-width: .8; }
.svg-t .lead.on-dark { stroke: #e4cb92; }
.svg-sheet { font: 400 8.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; fill: #4f595d; }
.x-dig { fill: none; stroke: #e4cb92; stroke-width: 1.6; stroke-dasharray: 7 5; opacity: 0; transition: opacity .5s; }
.x-screed, .x-comp { opacity: 0; transition: opacity .5s; }
.x-comp { fill: none; stroke: #ecedea; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-comp.c7 { stroke: #e4cb92; }
.x-comp.c5 { stroke: #1e2427; }

.part, .lbl { transition: filter .5s, opacity .5s; }
.lbl { opacity: .5; }
.fig[data-step="0"] .lbl { opacity: 1; }
.fig:not([data-step="0"]) .part { filter: grayscale(1) contrast(.55) brightness(1.55); }
.fig:not([data-step="0"]) .lbl { opacity: .28; }

.fig[data-step="1"] :is(.p-sub),
.fig[data-step="2"] :is(.p-mot),
.fig[data-step="3"] :is(.p-edge),
.fig[data-step="4"] :is(.p-drain),
.fig[data-step="5"] :is(.p-sand),
.fig[data-step="6"] :is(.p-blocks),
.fig[data-step="7"] :is(.p-blocks) { filter: none; }
.fig[data-step="1"] .x-dig { opacity: 1; }
.fig[data-step="2"] .c2, .fig[data-step="5"] .c5, .fig[data-step="7"] .c7 { opacity: 1; }
.fig[data-step="5"] .x-screed { opacity: 1; }
.fig[data-step="7"] .joints { fill: #e4cb92; }
.fig[data-step="1"] :is(.lbl-sub), .fig[data-step="2"] :is(.lbl-mot), .fig[data-step="3"] :is(.lbl-edge),
.fig[data-step="4"] :is(.lbl-drain, .lbl-soak, .lbl-fall), .fig[data-step="5"] :is(.lbl-sand), .fig[data-step="6"] :is(.lbl-blocks), .fig[data-step="7"] :is(.lbl-blocks) { opacity: 1; }

.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0; min-height: 34vh; padding: 30px 0 36px; border-top: 1px solid var(--line); opacity: .42; transition: opacity .4s; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step__n { font: 500 .78rem/1.9 var(--f-mono); letter-spacing: .1em; color: var(--mute); transition: color .3s; }
.step.is-active .step__n { color: #8a6717; font-weight: 700; }
.step h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.step p { margin-top: 10px; max-width: 42ch; color: var(--mute); }
.step.is-active p { color: var(--slate); }
.step__img { width: min(220px, 62%); aspect-ratio: 4 / 5; object-fit: cover; margin-top: 18px; background: var(--porcelain-dk); filter: saturate(.92); }
.bu__note { margin-top: clamp(32px, 5vw, 64px); max-width: 60ch; font: 400 .8rem/1.6 var(--f-mono); letter-spacing: .03em; color: var(--mute); }

/* ---------- Work ---------- */
.work { padding-block: 0 var(--sec); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 22px; margin-bottom: clamp(40px, 6vw, 88px); padding-top: var(--sec); border-top: 1px solid var(--line); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head__lede { grid-column: 9 / 13; align-self: end; color: var(--mute); font-size: 1.125rem; max-width: 34ch; }

.w__img { overflow: hidden; background: var(--porcelain-dk); }
.w__img img { width: 100%; height: 100%; object-fit: cover; }
.w-cap__k { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.w-cap h3, .plaque h3, .w-story h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-top: 10px; }
.w-cap p:last-child, .plaque p:last-child, .w-story p:last-child { margin-top: 12px; color: var(--mute); max-width: 44ch; }

.w-row--a { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: start; }
.w--pool { grid-column: 1 / 8; }
.w--pool .w__img { aspect-ratio: 1 / 1; }
.w--pool img { object-position: 50% 60%; }
.w-side { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 40px; }
.w--aerial { width: min(100%, 300px); margin-left: auto; }
.w--aerial .w__img { aspect-ratio: 9 / 14; }
.w--aerial figcaption { margin-top: 12px; }

.w--carpark { position: relative; margin-top: clamp(64px, 9vw, 140px); }
.w--carpark .w__img { aspect-ratio: 21 / 9; }
.w--carpark img { object-position: 50% 45%; }
.plaque { position: absolute; left: clamp(16px, 3vw, 44px); bottom: calc(-1 * clamp(24px, 4vw, 56px)); width: min(86%, 420px); padding: 26px 28px 30px; background: var(--slate); color: var(--porcelain); }
.plaque::before { content: ""; position: absolute; inset: 0; background: url("../images/grain.png"); opacity: .05; mix-blend-mode: screen; pointer-events: none; }
.plaque .w-cap__k { color: var(--sand-lt); }
.plaque p:last-child { color: var(--mute-lt); }

.w-row--b { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: center; margin-top: clamp(96px, 13vw, 200px); }
.w-story { grid-column: 1 / 6; }
.w-story h3 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 760; font-stretch: 104%; line-height: 1; letter-spacing: -.02em; }
.w-story h3 + p { margin-top: 24px; }
.w-story p:last-child { font-size: 1.125rem; max-width: 40ch; }
.w--lawn { grid-column: 7 / 13; }
.w--lawn .w__img { aspect-ratio: 5 / 4; }
.w--lawn img { object-position: 50% 55%; }

.w--close { position: relative; margin-top: clamp(96px, 13vw, 200px); }
.w--close .w__img { aspect-ratio: 16 / 8; }
.w--close img { object-position: 50% 42%; }
.plaque--r { left: auto; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }

/* ---------- Services ---------- */
.sv { padding-block: 0 var(--sec); }
.sv__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding-top: var(--sec); border-top: 1px solid var(--line); }
.sv__intro { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--head) + 32px); display: grid; gap: 22px; }
.sv__intro p:not(.eyebrow) { color: var(--mute); font-size: 1.125rem; max-width: 30ch; }
.sv__more { font-weight: 600; }
.sv__list { grid-column: 6 / 13; border-bottom: 1px solid var(--line); }
.sv__item { position: relative; display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, .54fr); column-gap: 24px; align-items: baseline; padding: 22px 0 22px 20px; border-top: 1px solid var(--line); transition: background-color .25s; }
.sv__item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 3px; background: var(--sand); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.sv__item:hover { background: rgba(236, 237, 234, .7); }
.sv__item:hover::before { transform: scaleY(1); }
.sv__name { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 660; }
.sv__desc { color: var(--mute); font-size: 1rem; }

/* ---------- Quotes ---------- */
.qt { position: relative; background: var(--slate); color: var(--porcelain); padding-block: var(--sec); }
.qt::before { content: ""; position: absolute; inset: 0; background: url("../images/grain.png"); opacity: .05; mix-blend-mode: screen; pointer-events: none; }
.qt__in { position: relative; }
.qt__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 40px; align-items: end; }
.qt__title { grid-column: 1 / 8; display: grid; gap: 22px; align-self: start; }
.qt h2 { max-width: 12ch; }
.qt__fig { grid-column: 9 / 13; }
.qt__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; background: var(--slate-2); }
.qt__fig figcaption { margin-top: 12px; font: 400 .68rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute-lt); }

/* A tape measure: the price arrives within about two days of the visit. */
.tape { position: relative; height: 34px; margin-top: clamp(48px, 7vw, 96px); background:
    linear-gradient(90deg, var(--sand) 1px, transparent 1px) 0 0 / 12px 10px repeat-x,
    linear-gradient(90deg, var(--sand) 1px, transparent 1px) 0 0 / 60px 20px repeat-x,
    var(--slate-2); border-top: 2px solid var(--sand); }
.tape i { position: absolute; top: -2px; width: 0; height: 0; border: 7px solid transparent; border-top: 12px solid var(--sand-lt); border-bottom: 0; transform: translateX(-7px); }
.tape__a { left: 0; }
.tape__b { left: 36%; }
.tape__c { left: 74%; }
.qt__steps { display: grid; grid-template-columns: 36fr 38fr 26fr; margin-top: 8px; }
.qt__s { padding: 28px 28px 0 0; }
.qt__s--b { padding-left: 0; }
.qt__s h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); color: #fff; }
.qt__s p { margin-top: 12px; color: var(--mute-lt); max-width: 36ch; }
.qt__s--b { padding-left: 0; }

/* ---------- Contact ---------- */
.ct { padding-block: var(--sec); }
.ct__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 56px; align-items: start; }
.ct__info { grid-column: 1 / 6; display: grid; gap: 22px; }
.ct__lede { color: var(--mute); font-size: 1.125rem; max-width: 34ch; }
.ct__list { margin-top: 20px; border-top: 1px solid var(--line); }
.ct__list li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct__k { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ct__tel { font-weight: 720; font-stretch: 106%; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.015em; line-height: 1.1; text-decoration: none; background: linear-gradient(var(--sand), var(--sand)) 0 100% / 100% 2px no-repeat; transition: background-size .25s; }
.ct__tel:hover { background-size: 100% 100%; }

.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; padding: clamp(22px, 3vw, 40px); background: var(--porcelain-lt); border: 1px solid var(--slate); }
.form__t { grid-column: 1 / -1; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; padding: .8em .9em; background: #fff; border: 1px solid rgba(30, 36, 39, .4); border-radius: 0; font-size: 1rem; line-height: 1.3; }
.field textarea { resize: vertical; min-height: 7.5em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sand); outline-offset: 0; border-color: var(--slate); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__note { font: 400 .74rem/1.4 var(--f-mono); letter-spacing: .03em; color: var(--mute); }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--slate); color: var(--porcelain); padding-block: 40px 44px; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; }
.foot p { color: var(--mute-lt); font-size: .94rem; }
.foot__fine { grid-column: 1 / -1; font: 400 .7rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 22px; border-top: 1px solid var(--line-lt); margin-top: 10px; }

.callbar { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: 16px; }
  .hero__copy { max-width: 46ch; }
  .tb__in { grid-template-columns: repeat(3, 1fr); }
  .tb__cell:nth-child(4) { padding-left: 0; border-left: 0; }
  .tb__cell { border-top: 0; }
  .tb__cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  .qt__steps { grid-template-columns: 1fr 1fr 1fr; }
}

/* Menu button and full-screen navigation up to 960px, where the bar gets crowded. */
@media (max-width: 960px) {
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 11px; background: transparent; border: 1px solid rgba(222, 223, 218, .5); cursor: pointer; position: relative; z-index: 61; color: #fff; }
  .burger i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 28px; padding: 96px var(--gutter) 32px; background: var(--slate); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-lt); font: 700 2rem/1 var(--f-sans); font-stretch: 104%; letter-spacing: -.02em; text-transform: none; }
  .nav__list a::after { display: none; }
  .nav__tel { justify-content: space-between; padding: 1.1em 1.2em; font-size: 1.15rem; }
  .mark { z-index: 61; position: relative; }
}

@media (max-width: 899px) {
  .bu__head h2, .sec-head h2 { grid-column: 1 / -1; }
  .bu__lede, .sec-head__lede { grid-column: 1 / -1; max-width: 44ch; }
  .bu__body { grid-template-columns: 1fr; gap: 0; }
  /* The drawing is pinned as a strip, and the steps scroll beneath it. */
  .fig { top: var(--head); z-index: 8; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 6px; background: var(--porcelain); border-bottom: 1px solid var(--line); }
  .fig__svg { aspect-ratio: 700 / 300; }
  .step { min-height: 0; padding-bottom: 40px; }
  .w-row--a, .w-row--b, .sv__grid, .ct__grid { display: block; }
  .w-side { margin-top: 28px; }
  .sv__intro { position: static; margin-bottom: 40px; }
  .ct__info { margin-bottom: 48px; }
  .qt__head { display: block; }
  .qt__fig { margin-top: 36px; max-width: 520px; }
  .qt__steps { grid-template-columns: 1fr; }
  .tape { display: none; }
  .qt__s { padding: 24px 0 8px; border-top: 1px solid var(--line-lt); }
  .qt__steps { margin-top: 40px; }
}

/* ==========================================================================
   Mobile: designed on its own, not squeezed
   ========================================================================== */
@media (max-width: 720px) {
  :root { --head: 60px; }

  /* On a phone the header is part of the page and scrolls away with the hero. */
  .head { position: absolute; }
  .head.is-solid { background: transparent; box-shadow: none; }

  /* Hero: photograph, datum, headline. Contact first, drawing after. */
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero__photo { height: clamp(300px, 54svh, 480px); min-height: 0; }
  .hero__photo img { object-position: 40% 50%; }
  .hero__cap { display: none; }
  .hero__photo::after { background: linear-gradient(to bottom, rgba(14, 18, 20, .6), rgba(14, 18, 20, 0) 24%), linear-gradient(to top, rgba(14, 18, 20, .86), rgba(14, 18, 20, 0) 64%); }
  .hero__ground { --pt: 40px; padding-bottom: 0; display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(2.2rem, 10.6vw, 3.2rem); }
  .h1a { white-space: normal; max-width: 9em; }
  .hero__copy { max-width: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; padding-block: 1.1em; }
  .hero__in { padding-bottom: 36px; }
  .strata { position: relative; width: auto; margin-left: var(--gutter); }
  .strata__row { grid-template-columns: 112px 1fr; }
  .strata__lbl { font-size: .58rem; }
  .s-blocks { height: 24px; }
  .s-sand { height: 34px; }
  .s-mot { height: 68px; }
  .s-sub { flex: none; height: 110px; }
  .strata figcaption { position: static; padding: 0 var(--gutter) 28px 0; margin-left: 0; grid-column: 1 / -1; }
  .s-sub { flex-wrap: wrap; }
  .strata figcaption { padding-left: 0; }

  .tb__in { grid-template-columns: 1fr 1fr; }
  .tb .tb__cell { padding: 18px 14px 18px 0; border: 0; border-top: 1px solid var(--line); }
  .tb .tb__cell:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .tb .tb__cell:nth-child(-n+2) { border-top: 0; }
  .tb .tb__cell:last-child { grid-column: 1 / -1; }

  /* Build-up: the drawing is pinned as a strip, steps scroll beneath it. */
  .bu { padding-block: 64px 72px; }
  .bu__head { margin-bottom: 28px; }
  .fig { top: 0; }
  .fig__cap { margin-top: 8px; font-size: .72rem; min-height: 2.7em; }
  .step { grid-template-columns: 2.6rem 1fr; min-height: 0; padding: 24px 0 28px; }
  .step__img { width: 54%; }
  .bu__note { font-size: .74rem; }

  /* Work: full-bleed images with captions in the flow, plaques inset. */
  .sec-head { padding-top: 64px; margin-bottom: 32px; }
  .w--pool .w__img { aspect-ratio: 4 / 5; margin-inline: calc(-1 * var(--gutter)); }
  .w-cap--pool { margin-top: 22px; }
  .w-side { gap: 36px; }
  .w--aerial { margin-left: 0; width: 66%; }
  .w--carpark { margin-top: 64px; }
  .w--carpark .w__img { aspect-ratio: 4 / 5; margin-inline: calc(-1 * var(--gutter)); }
  .w--carpark img { object-position: 40% 50%; }
  .plaque { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 0 0; }
  .w-row--b { margin-top: 72px; }
  .w-story { margin-bottom: 24px; }
  .w--lawn .w__img { aspect-ratio: 1 / 1; margin-inline: calc(-1 * var(--gutter)); }
  .w--close { margin-top: 72px; }
  .w--close .w__img { aspect-ratio: 4 / 5; }
  .w--close img { object-position: 38% 50%; }
  .plaque--r { right: auto; margin-inline: var(--gutter); }

  .sv { padding-bottom: 72px; }
  .sv__grid { padding-top: 64px; }
  .sv__item { grid-template-columns: 1fr; row-gap: 4px; padding: 18px 0 18px 16px; }

  .qt { padding-block: 72px; }
  .ct { padding-block: 64px 120px; }
  .ct__list li { grid-template-columns: 5.2rem 1fr; }
  .form { grid-template-columns: 1fr; padding: 20px 18px 24px; }
  .form__foot .btn { width: 100%; }
  .foot { padding-bottom: 96px; }
  .foot__in { grid-template-columns: 1fr; }

  /* Sticky contact bar once the opening screen has gone. */
  .callbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--slate); box-shadow: 0 -1px 0 var(--line-lt); color: var(--porcelain); transform: translateY(110%); transition: transform .35s var(--ease); }
  .callbar.is-on { transform: none; }
  .callbar .btn { padding-block: 1em; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1700px) {
  html { font-size: 17.5px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
