/* ==========================================================================
   Cornerstone Landscapes · homepage mockup
   Palette taken from their own photographs: blue-hour sky, the warm white of
   their LED step lights, and the porcelain they lay most (Bianco / Lunar sand).
   ========================================================================== */

:root {
  --sky: #16212c;        /* blue hour: the sky in their night shots */
  --night: #0e151d;      /* after the light has gone */
  --lamp: #efb25b;       /* LED strip under a step tread */
  --lamp-glow: rgba(239, 178, 91, .55);
  --porcelain: #e6e3dd;  /* Bianco cream / Lunar sand porcelain */
  --setts: #d6d1c7;      /* silver sienna setts, used for edging */
  --ink: #18202a;        /* anthracite, with a little of the sky in it */
  --ink-soft: #4d5661;
  --bone: #ece8e0;
  --mist: #9ba6b2;

  --serif: "Sorts Mill Goudy", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

[data-theme="light"] {
  --bg: var(--porcelain);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --line: rgba(24, 32, 42, .16);
  --accent: var(--ink);
}

[data-theme="dark"],
[data-theme="night"] {
  --bg: var(--sky);
  --fg: var(--bone);
  --fg-soft: var(--mist);
  --line: rgba(236, 232, 224, .14);
  --accent: var(--lamp);
}
[data-theme="night"] { --bg: var(--night); }

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--lamp);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}
[data-theme="light"] :focus-visible { outline-color: var(--ink); }

/* Section shells take their colours from data-theme */
.hero, .start, .build, .work, .after-dark, .words, .enquire, .site-footer {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Shared type pieces ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* The short rule before each label is an LED strip: lit on dark, ink on light */
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
[data-theme="dark"] .eyebrow::before,
[data-theme="night"] .eyebrow::before { box-shadow: 0 0 10px 1px var(--lamp-glow); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px clamp(32px, 6vw, 120px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.section-head h2 { font-size: clamp(44px, 6.2vw, 96px); }
.section-intro {
  margin: 0;
  max-width: 40ch;
  color: var(--fg-soft);
  font-size: 17px;
}

/* ---------- Buttons & links ---------- */

.btn {
  --btn-bg: var(--lamp);
  --btn-fg: #1b1408;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 14px/1 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), background-color .2s;
}
.btn:hover {
  box-shadow: 0 10px 34px -10px var(--lamp-glow), 0 0 0 1px rgba(239, 178, 91, .5);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; transform: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-large { min-height: 56px; padding: 0 32px; font-size: 15px; }

.link-down,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-down::after { content: "↓"; transition: transform .3s var(--ease); }
.link-down:hover::after { transform: translateY(3px); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  fill: var(--lamp);
  flex: none;
}
[data-theme="light"] .brand-mark { fill: var(--ink); }
.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 25px;
  line-height: .9;
  letter-spacing: -.01em;
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .8;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--fg);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-nav { display: flex; }
.nav-list {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding-block: 8px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
[data-theme="dark"] .nav-list a::after,
[data-theme="night"] .nav-list a::after { box-shadow: 0 0 8px var(--lamp-glow); }
.nav-list a:hover::after,
.nav-list a.is-current::after { transform: scaleX(1); }

.nav-extra { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-tel {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.header-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle-lines,
.menu-toggle-lines::before {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle-lines { position: relative; transform: translateY(-3px); }
.menu-toggle-lines::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------- 1 · Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img {
  object-fit: cover;
  object-position: 50% 42%;
  animation: hero-settle 2.6s var(--ease) both;
}
@keyframes hero-settle {
  from { transform: scale(1.06); filter: brightness(.55); }
  to   { transform: scale(1);    filter: brightness(1); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 21, 29, .62) 0%, rgba(14, 21, 29, 0) 20%),
    radial-gradient(ellipse 62% 78% at 88% 82%, rgba(14, 21, 29, .86) 0%, rgba(14, 21, 29, .55) 45%, rgba(14, 21, 29, 0) 100%),
    linear-gradient(0deg, rgba(14, 21, 29, .85) 0%, rgba(14, 21, 29, .3) 30%, rgba(14, 21, 29, 0) 55%);
}
.hero-copy .eyebrow,
.hero-pre,
.hero-lede { text-shadow: 0 1px 18px rgba(14, 21, 29, .8); }

.hero-inner {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
.hero-copy {
  width: min(100%, 640px);
  animation: rise 1.4s .35s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-pre {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.25;
  color: var(--bone);
  opacity: .9;
}
.hero-title {
  font-size: clamp(58px, 7.6vw, 132px);
  line-height: .9;
  letter-spacing: -.022em;
  margin-bottom: 28px;
}
.hero-title em { text-shadow: 0 0 42px rgba(239, 178, 91, .35); }
.hero-lede {
  max-width: 46ch;
  margin-bottom: 30px;
  color: rgba(236, 232, 224, .86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist);
}
.hero-foot p { margin: 0; }
.plate-tall { display: none; }
.hero-awards { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.years { display: inline-flex; gap: 6px; }
.years span {
  padding: 4px 8px 3px;
  border: 1px solid rgba(239, 178, 91, .45);
  border-radius: 2px;
  color: var(--lamp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 2 · How they start (scroll-scrubbed before/after) ---------- */

.start { position: relative; }
.js .start { height: 250vh; }
.start-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 112px);
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-top: var(--header-h);
  padding-bottom: 24px;
}
.start-title { font-size: clamp(44px, 5.4vw, 88px); margin-bottom: 26px; }
.start-text { max-width: 40ch; color: var(--fg-soft); }

.start-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 18px 0 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--fg-soft);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.tab:hover { color: var(--fg); }
.tab.is-active { background: var(--ink); color: var(--porcelain); }

.start-states {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.state {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  transition: color .4s;
}
.state.is-current { color: var(--fg); }
.state-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-top: 4px;
}
.state.is-current .state-label { color: var(--ink); }
.state-text { font-size: 16px; line-height: 1.5; }

.compare {
  --r: .5;
  position: relative;
  justify-self: end;
  width: auto;
  height: min(78svh, 860px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--setts);
}
.compare-img,
.compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.compare-img { object-fit: cover; }
.compare-after { clip-path: inset(0 calc((1 - var(--r)) * 100%) 0 0); }
.compare-edge {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--r) * 100%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--lamp);
  box-shadow: 0 0 14px 2px var(--lamp-glow), 0 0 40px 6px rgba(239, 178, 91, .25);
  opacity: calc(min(var(--r) * 20, 1) * min((1 - var(--r)) * 20, 1));
}
.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 10px 5px;
  border-radius: 2px;
  background: rgba(14, 21, 29, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .3s;
}
.compare-tag-before { right: 16px; opacity: calc(1 - var(--r) * 1.6); }
.compare-tag-after { left: 16px; opacity: calc(var(--r) * 2 - .4); }
.compare.is-swapping .compare-img { opacity: .2; transition: opacity .2s; }
.compare-img { transition: opacity .45s var(--ease); }

/* ---------- 3 · Design. Dig. Deliver. ---------- */

.build {
  padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 24px;
  padding-block: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.step-word {
  grid-column: 1 / span 4;
  font-size: clamp(64px, 8.6vw, 140px);
  line-height: .82;
  letter-spacing: -.03em;
}
.step-word::after { content: "."; }
.step-body { grid-column: 5 / span 3; }
.step-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.2;
  color: var(--fg);
}
.step-body p:not(.step-lead) { color: var(--fg-soft); }

.step-figure { margin: 0; }
.step-figure img { width: 100%; border-radius: 2px; }
.step-figure figcaption,
.project-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-soft);
}

.figure-plan { grid-column: 8 / span 5; align-self: start; }

.step-dig .step-body { grid-column: 5 / span 5; }
.section-cut {
  grid-column: 5 / span 8;
  grid-row: 2;
  align-self: end;
  margin: 24px 0 0;
}
.figure-digger {
  grid-column: 1 / span 3;
  grid-row: 2;
  align-self: end;
}

.cut-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.cut-drawing * { vector-effect: non-scaling-stroke; }
.cut-cleared { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; stroke-linecap: round; }
.cut-dash { stroke-dasharray: 4 5; }
.cut-finish rect { fill: #f2f0ec; stroke: var(--ink); stroke-width: 1.2; }
.cut-joint { stroke: var(--ink); stroke-width: 1; }
.cut-turf-base { fill: #b9c1a8; }
.cut-turf { fill: none; stroke: #5f6d4e; stroke-width: 1.3; stroke-linecap: round; }
.cut-subbase { fill: url(#cut-subbase); stroke: var(--ink); stroke-width: 1; }
#cut-subbase circle { fill: var(--ink-soft); }
.cut-gravel { fill: url(#cut-gravel); }
#cut-gravel ellipse { stroke: var(--ink-soft); stroke-width: 1; }
.cut-drain circle { fill: var(--porcelain); stroke: var(--ink); stroke-width: 1.4; }
.cut-drain .cut-drain-core { fill: none; stroke-dasharray: 2 3; }
.cut-formation { stroke: var(--ink); stroke-width: 1.6; }
.cut-soil { fill: url(#cut-soil); }
#cut-soil circle { fill: rgba(24, 32, 42, .35); }
.cut-fall, .cut-fall-head { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cut-markers circle { fill: var(--ink); }
.cut-markers text {
  fill: var(--porcelain);
  font: 600 11px var(--sans);
  text-anchor: middle;
}

.cut-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cut;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg);
}
.cut-steps li {
  counter-increment: cut;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.cut-steps li::before {
  content: counter(cut);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--porcelain);
  font-size: 11px;
  font-weight: 600;
}

.step-deliver .step-body { grid-column: 10 / span 3; grid-row: 1; align-self: end; }
.figure-deliver { grid-column: 5 / span 4; grid-row: 1; }
.figure-deliver img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
.suppliers {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.suppliers-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- 4 · The work ---------- */

.work {
  padding: clamp(96px, 11vw, 170px) 0 clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: center;
  margin-bottom: clamp(96px, 11vw, 176px);
}
.project-figure { margin: 0; }
.project-figure img { width: 100%; }
.project-copy h3 {
  font-size: clamp(36px, 3.6vw, 58px);
  margin-bottom: 22px;
}
.project-copy p { color: var(--fg-soft); max-width: 46ch; }
.project-meta {
  margin-bottom: 14px !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg) !important;
}

/* The cornerstone: a square of the garden's own material, set into the photo's
   lower-left corner with a porcelain-coloured joint, like the square in the logo. */
.corner-frame { position: relative; }
.cornerstone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(72px, 21%, 148px);
  aspect-ratio: 1;
  border-top: 8px solid var(--bg);
  border-right: 8px solid var(--bg);
  background: var(--bg);
}
.cornerstone img { width: 100%; height: 100%; object-fit: cover; }
.cornerstone-inline {
  position: relative;
  display: inline-block;
  width: 44px;
  border: 0;
  vertical-align: middle;
  margin-right: 12px;
}
.swatch-key::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 1px solid currentColor;
  vertical-align: 0;
}

.spec {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.spec div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.spec dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-top: 3px;
}
.spec dd { margin: 0; color: var(--fg-soft); }

.pull { margin: 30px 0 0; padding: 0; }
.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.22;
  color: var(--fg) !important;
  margin-bottom: 12px;
}
.pull footer {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--fg);
}
.pull footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pull-lead { margin: 0 0 24px; }

/* Kirkconnel: big portrait left, notes right */
.project-kirkconnel .project-figure { grid-column: 1 / span 7; }
.project-kirkconnel .corner-frame > img { aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 88%; }
.project-kirkconnel .project-copy { grid-column: 9 / span 4; }

/* Gemma & Ryan: notes left, two staggered squares right */
.project-gemma .project-copy { grid-column: 1 / span 4; }
.project-pair {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.pair-a { grid-column: 1 / span 4; grid-row: 1; }
.pair-b { grid-column: 4 / span 4; grid-row: 1; margin-top: 46%; position: relative; z-index: 1; }
.pair-b img { box-shadow: -12px -12px 0 var(--bg); }

/* Olive trees interlude */
.interlude {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  margin: 0 0 clamp(96px, 11vw, 176px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-block: 1px solid var(--line);
}
.interlude-image { grid-column: 1 / span 5; }
.interlude-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.interlude-copy { grid-column: 7 / span 6; }
.interlude-quote {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.interlude-quote em { font-style: italic; }
.interlude-note {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--fg-soft);
}

/* Garden glamour: notes left, image right with inset */
.project-glamour .project-copy { grid-column: 1 / span 4; grid-row: 1; }
.glamour-figures {
  grid-column: 6 / span 7;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
}
.glamour-main { grid-column: 2 / span 6; grid-row: 1; }
.glamour-inset {
  grid-column: 1 / span 2;
  grid-row: 1;
  align-self: start;
  margin-top: 18%;
  margin-right: -30%;
  position: relative;
  z-index: 1;
}
.glamour-inset img { box-shadow: 0 0 0 10px var(--bg); }

/* homeofchelle: two portraits left, words right */
.project-chelle .chelle-figures {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.chelle-a { grid-column: 1 / span 4; }
.chelle-b { grid-column: 5 / span 3; margin-top: 30%; }
.project-chelle .project-copy { grid-column: 9 / span 4; }

.work-more { margin: 0; text-align: right; }

/* ---------- 5 · Dusk ---------- */

.dusk {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 92vh;
  padding: 0 var(--gutter) 13vh;
  background: linear-gradient(180deg,
    var(--porcelain) 0%,
    #d5d3cf 14%,
    #aeb3b8 30%,
    #7d8792 46%,
    #4b5a6b 62%,
    #2a394b 78%,
    var(--sky) 100%);
  color: var(--bone);
  text-align: center;
  overflow: hidden;
}
.dusk-half { position: absolute; left: 0; right: 0; height: 50%; }
.dusk-half:first-child { top: 0; }
.dusk-half:nth-child(2) { bottom: 0; }
.dusk-copy { position: relative; }
.dusk-line {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -.015em;
}
.led {
  display: block;
  width: min(280px, 50vw);
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: var(--lamp);
  box-shadow: 0 0 16px 2px var(--lamp-glow), 0 0 60px 10px rgba(239, 178, 91, .22);
  transition: transform 1.6s var(--ease), opacity .6s;
}
.js .dusk:not(.is-on) .led { transform: scaleX(0); opacity: 0; }

/* ---------- 6 · After dark ---------- */

.after-dark { padding: clamp(40px, 5vw, 80px) 0 clamp(96px, 11vw, 170px); }

.night-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.night-shot { margin: 0; }
.night-shot img {
  width: 100%;
  border-radius: 2px;
  transition: filter 1.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 260ms);
}
.js .night-shot img { filter: brightness(.28) saturate(.45); }
.js .night-shot.is-lit img { filter: none; }
.night-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mist);
  max-width: 44ch;
}
.shot-steps   { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.shot-zigzag  { grid-column: 7 / span 3; }
.shot-levels  { grid-column: 10 / span 3; margin-top: 18%; }
.shot-cladding { grid-column: 7 / span 3; }
.shot-cladding img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.shot-pergola { grid-column: 10 / span 3; align-self: end; }

.partners {
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 70ch;
  font-size: 15px;
  color: var(--mist);
}
.partners strong { color: var(--bone); font-weight: 500; }

/* ---------- 7 · Kind words ---------- */

.words { padding: clamp(80px, 9vw, 150px) 0; border-top: 1px solid var(--line); }

.words-lead { margin: 0 0 clamp(56px, 7vw, 104px); }
.words-lead blockquote { margin: 0; }
.words-lead p {
  max-width: 21em;
  font-family: var(--serif);
  font-size: clamp(30px, 3.9vw, 62px);
  line-height: 1.1;
  letter-spacing: -.012em;
  text-wrap: pretty;
  margin-bottom: 28px;
  text-indent: -.42em;
}
.words-lead figcaption,
.word figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--mist);
}
.who { color: var(--lamp); font-weight: 600; letter-spacing: .08em; }

.words-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.word { margin: 0; }
.word blockquote { margin: 0; }
.word p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.3;
  margin-bottom: 14px;
}
.word figcaption { font-weight: 600; letter-spacing: .06em; color: var(--bone); }

.awards { margin-top: clamp(72px, 8vw, 120px); }
.awards-title {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}
.awards-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.awards-list li {
  display: grid;
  grid-template-columns: minmax(90px, 2fr) minmax(0, 6fr) minmax(0, 4fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.awards-year {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
  color: var(--lamp);
  font-variant-numeric: lining-nums;
}
.awards-what { font-size: 17px; color: var(--bone); }
.awards-note { font-size: 14px; color: var(--mist); text-align: right; }

/* ---------- 8 · Enquire ---------- */

.enquire {
  padding: clamp(96px, 11vw, 170px) 0;
  position: relative;
}
.enquire::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 80vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--lamp), transparent);
  box-shadow: 0 0 24px 2px var(--lamp-glow);
  opacity: .7;
}
.enquire-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
}
.enquire-intro { grid-column: 1 / span 5; }
.enquire-intro h2 { font-size: clamp(44px, 5.2vw, 84px); margin-bottom: 26px; }
.enquire-intro > p { color: var(--mist); max-width: 40ch; }

.contact-list { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list a { font-size: 17px; text-decoration: none; }
.contact-list a:hover { color: var(--lamp); }
.contact-list li:first-child a {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}
.areas { margin-top: 28px; font-size: 15px; color: var(--bone); line-height: 1.7; }
.areas .contact-label { margin-bottom: 6px; }

.enquiry-form { grid-column: 7 / span 6; position: relative; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label:not(.chip):not(.file-label),
.field legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
}
.optional { margin-left: 8px; font-weight: 400; color: var(--mist); font-size: 13px; }

input[type="text"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(236, 232, 224, .2);
  border-radius: 2px;
  background: rgba(236, 232, 224, .04);
  color: var(--bone);
  font: 400 16px/1.4 var(--sans);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 116px; }
input::placeholder, textarea::placeholder { color: rgba(155, 166, 178, .75); }
input[type="text"]:hover, textarea:hover { border-color: rgba(236, 232, 224, .36); }
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--lamp);
  background: rgba(236, 232, 224, .06);
  box-shadow: 0 0 0 3px rgba(239, 178, 91, .18);
}
.field.has-error input { border-color: #e88a6e; }
.field-error { margin: 8px 0 0; font-size: 13px; color: #f0a48c; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(236, 232, 224, .22);
  border-radius: 40px;
  font-size: 14px;
  color: var(--bone);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover span { border-color: rgba(236, 232, 224, .45); }
.chip input:checked + span {
  border-color: var(--lamp);
  background: rgba(239, 178, 91, .14);
  color: #ffe2b4;
  box-shadow: 0 0 18px -6px var(--lamp-glow);
}
.chip input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }

.file-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  cursor: pointer;
}
.file-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px dashed rgba(236, 232, 224, .4);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.file-label:hover .file-button { border-color: var(--lamp); color: var(--lamp); }
#f-photos:focus-visible + * , .field-file:focus-within .file-button { outline: 2px solid var(--lamp); outline-offset: 2px; }
.file-status { font-size: 13px; color: var(--mist); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form-note { margin: 0; font-size: 13px; color: var(--mist); }

.form-done {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(239, 178, 91, .45);
  border-radius: 2px;
  background: rgba(239, 178, 91, .07);
}
.form-done:focus { outline: none; }
.form-done-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--bone);
}
.form-done p:not(.form-done-title) { color: var(--mist); }
.form-demo { margin: 0; font-size: 12px; letter-spacing: .04em; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px 48px;
  align-items: center;
}
.footer-tag { margin: 0; font-size: 14px; color: var(--mist); line-height: 1.6; }
.footer-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--lamp); }
.footer-small { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mist); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .header-tel { display: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
    background: var(--night);
    color: var(--bone);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease);
  }
  .site-header:has(.site-nav.is-open) { --bg: var(--night); --fg: var(--bone); --accent: var(--lamp); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header:has(.site-nav.is-open) .brand-mark { fill: var(--lamp); }
  .nav-list { flex-direction: column; gap: 0; border-top: 1px solid rgba(236, 232, 224, .14); }
  .nav-list li { border-bottom: 1px solid rgba(236, 232, 224, .14); }
  .nav-list a {
    display: block;
    padding: 16px 0;
    font-family: var(--serif);
    font-size: clamp(34px, 9vw, 52px);
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.05;
  }
  .nav-list a::after { display: none; }
  .nav-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .nav-tel { font-size: 22px; text-decoration: none; font-variant-numeric: tabular-nums; }
  .nav-social { margin: 0; font-size: 14px; color: var(--mist); }

  .section-head { grid-template-columns: 1fr; }

  .step-word { grid-column: 1 / -1; }
  .step-body,
  .step-dig .step-body,
  .step-deliver .step-body { grid-column: 1 / span 6; }
  .figure-plan,
  .figure-deliver { grid-column: 7 / span 6; }
  .section-cut { grid-column: 1 / span 8; grid-row: auto; }
  .figure-digger { grid-column: 9 / span 4; grid-row: auto; align-self: end; }
  .step-deliver .step-body { grid-column: 1 / span 6; grid-row: auto; align-self: start; }
  .figure-deliver { grid-row: auto; }

  .project-kirkconnel .project-figure { grid-column: 1 / span 7; }
  .project-kirkconnel .project-copy { grid-column: 8 / span 5; }
  .project-gemma .project-copy { grid-column: 1 / span 5; }
  .project-pair { grid-column: 6 / span 7; }
  .project-glamour .project-copy { grid-column: 1 / span 5; }
  .glamour-figures { grid-column: 6 / span 7; }
  .project-chelle .chelle-figures { grid-column: 1 / span 7; }
  .project-chelle .project-copy { grid-column: 8 / span 5; }

  .enquire-intro { grid-column: 1 / -1; }
  .enquiry-form { grid-column: 1 / -1; }
  .contact-list { max-width: 560px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .js .start { height: 230vh; }
  .start-pin {
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    gap: 18px;
    padding-top: calc(var(--header-h) + 16px);
  }
  .start-copy .eyebrow { margin-bottom: 12px; }
  .start-title { font-size: clamp(38px, 10vw, 56px); margin-bottom: 0; }
  .start-text { display: none; }
  .start-tabs { margin: 14px 0 0; }
  .start-states { display: none; }
  .compare {
    order: 2;
    justify-self: stretch;
    width: 100%;
    height: auto;
    max-height: calc(100svh - var(--header-h) - 210px);
    aspect-ratio: 4 / 5;
  }
  .start-caption-mobile { display: block; }

  .step { gap: 24px 16px; }
  .step-word { font-size: clamp(64px, 20vw, 110px); }
  .step-body,
  .step-dig .step-body,
  .step-deliver .step-body,
  .figure-plan,
  .figure-deliver,
  .section-cut { grid-column: 1 / -1; }
  .figure-digger { grid-column: 4 / -1; }
  .cut-steps { grid-template-columns: 1fr; }

  .project { gap: 28px 16px; }
  .project-kirkconnel .project-figure,
  .project-kirkconnel .project-copy,
  .project-gemma .project-copy,
  .project-pair,
  .project-glamour .project-copy,
  .glamour-figures,
  .project-chelle .chelle-figures,
  .project-chelle .project-copy { grid-column: 1 / -1; }
  .project-glamour .project-copy { grid-row: 2; }
  .project-gemma .project-copy { grid-row: 2; }
  .project-pair { grid-row: 1; gap: 12px; }
  .pair-b img { box-shadow: -8px -8px 0 var(--bg); }
  .pair-a figcaption { display: none; }

  .cut-markers circle { r: 17px; }
  .cut-markers text { font-size: 17px; transform: translateY(2px); }

  .interlude-image { grid-column: 1 / -1; }
  .interlude-copy { grid-column: 1 / -1; }

  .night-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-steps { grid-column: 1 / -1; grid-row: auto; }
  .shot-zigzag, .shot-cladding { grid-column: 1; }
  .shot-levels, .shot-pergola { grid-column: 2; }
  .shot-levels { margin-top: 18%; }
  .shot-pergola { align-self: start; }

  .words-row { grid-template-columns: 1fr; gap: 28px; }
  .awards-list li { grid-template-columns: 1fr; gap: 6px; }
  .awards-note { text-align: left; }

  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* Portrait screens get the portrait photograph (lit steps) and a bottom-weighted shade */
@media (max-aspect-ratio: 1/1) {
  .hero-media img { object-position: 50% 30%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(14, 21, 29, .55) 0%, rgba(14, 21, 29, 0) 18%),
      linear-gradient(0deg, rgba(14, 21, 29, .96) 0%, rgba(14, 21, 29, .78) 38%, rgba(14, 21, 29, 0) 70%);
  }
  .hero-inner { justify-content: flex-start; }
  .plate-wide { display: none; }
  .plate-tall { display: inline; }
}

@media (max-width: 760px) {
  .hero-inner { padding-bottom: 24px; }
  .hero-title { font-size: clamp(50px, 14.5vw, 76px); margin-bottom: 20px; }
  .hero-pre { font-size: 19px; margin-bottom: 12px; }
  .hero-lede { font-size: 15.5px; margin-bottom: 24px; }
  .hero-copy .eyebrow { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 16px 20px; }
  .plate { display: none; }
  .hero-awards-label { flex-basis: 100%; }

  .brand-word { font-size: 22px; }
  .brand-mark { width: 30px; height: 30px; }

  .glamour-inset { margin-right: -20%; }
  .chelle-b { margin-top: 40%; }
  .work-more { text-align: left; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .start-title { font-size: 36px; }
  .start-tabs { margin-top: 10px; }
}

/* ---------- Reduced motion: no pinning, no dimming, nothing moves on its own ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .night-shot img { filter: none; }
  .js .dusk:not(.is-on) .led { transform: none; opacity: 1; }
}

/* Without the scroll-scrub (reduced motion or no JS) show before and after side by side */
.start.is-static { height: auto; }
.start.is-static .start-pin {
  position: static;
  height: auto;
  padding-block: calc(var(--header-h) + 48px) 96px;
}
.start.is-static .compare { --r: .5; }
