/* ==========================================================================
   J. Ellison Landscapes · homepage mockup
   Concept: "laid". Everything is set out like paving. Photographs are slabs
   on one module with one joint between them; hard edges, no shadows. The
   only decoration is the marker line: the setting-out mark every job starts with.
   ========================================================================== */

:root {
  /* materials */
  --ground:   #dcdad4;   /* porcelain */
  --ground-2: #cbc9c2;   /* wet porcelain, placeholders */
  --paper:    #ebeae6;   /* fresh slab */
  --ink:      #16181a;   /* slate */
  --ink-2:    #44484b;
  --ink-3:    #585d60;
  --sub:      #121415;   /* sub-base, dark sections */
  --sub-2:    #1c1f21;
  --mark:     #ff2e6a;   /* marker spray */
  --line:     rgba(22, 24, 26, .2);
  --line-d:   rgba(255, 255, 255, .18);

  /* module */
  --m: clamp(16px, 2.4vw, 44px);        /* page margin */
  --j: clamp(4px, .55vw, 8px);          /* the joint between slabs */
  --head-h: 68px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --f: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 8px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--mark); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { padding-inline: var(--m); max-width: 1780px; margin-inline: auto; }

.skip {
  position: fixed; left: var(--m); top: 10px; z-index: 200;
  background: var(--ink); color: var(--ground); padding: .6em 1em; font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.024em;
  line-height: .9;
}

.label {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.label::before { content: ""; width: 24px; height: 3px; background: var(--mark); flex: none; }

.link {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--mark), var(--mark)) left bottom / 100% 3px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease), color .2s;
}
.link:hover { background-size: 100% 100%; color: var(--ink); }
.link--light { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.4em;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--ground);
  font-weight: 600; font-size: .95rem; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: color .25s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--mark);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--sm { padding: .72em 1.1em; font-size: .88rem; }
.btn--on-dark { background: var(--ground); border-color: var(--ground); color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--head-h);
  background: var(--ground);
  transition: box-shadow .3s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
  height: 100%; padding-inline: var(--m);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; }
.brand__name {
  font-weight: 800; font-stretch: 75%; font-size: 1.06rem; line-height: .9; letter-spacing: -.01em;
}

.nav { display: flex; gap: clamp(18px, 2.8vw, 44px); margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .98rem;
  background: linear-gradient(var(--mark), var(--mark)) left bottom / 0 3px no-repeat;
  padding-block: 4px;
  transition: background-size .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 3px; }

.site-header__actions { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.phone { text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.menu-btn {
  display: none;
  background: none; border: 1.5px solid var(--ink); padding: .62em 1em;
  font-weight: 600; font-size: .9rem; cursor: pointer;
}

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--sub); color: #fff;
  padding: calc(var(--head-h) + 28px) var(--m) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a {
  font-size: clamp(3.4rem, 17vw, 6.4rem); font-weight: 800; font-stretch: 75%;
  letter-spacing: -.026em; line-height: .95; text-decoration: none;
}
.menu__nav a:active { color: var(--mark); }
.menu__foot { display: grid; gap: 10px; font-size: 1.02rem; }
.menu__foot a { text-decoration: none; color: rgba(255, 255, 255, .82); }
.menu__foot .menu__phone { color: #fff; font-size: 1.5rem; font-weight: 700; }
.menu-open .site-header { background: var(--sub); color: #fff; }
.menu-open .site-header .btn,
.menu-open .site-header .phone { display: none; }
.menu-open .menu-btn { border-color: #fff; }
/* scroll lock: a locked root breaks sticky, so the header is pinned explicitly while the menu is open */
.menu-open { overflow: hidden; }
.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
.menu-open .actionbar { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__top { padding-top: clamp(12px, 2vw, 30px); padding-bottom: clamp(16px, 2.2vw, 32px); }

.hero__title {
  font-size: clamp(2.7rem, 7.55vw, 10.2rem);
  font-weight: 800; font-stretch: 75%;
  letter-spacing: -.026em; line-height: .88;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: inline-block; }
.underneath { position: relative; font-style: normal; display: inline-block; }
.underneath__mark {
  position: absolute; left: -1%; right: -1%; bottom: -.1em; width: 102%; height: .2em;
  overflow: visible; pointer-events: none;
}
.underneath__mark .mark { stroke-width: 9; }

.hero__slab {
  position: relative; overflow: hidden;
  /* fills the first screen under the headline, but never so tall (portrait tablets) that the panorama crops the terrace away */
  height: min(66vw, max(430px, calc(100svh - var(--head-h) - clamp(150px, 18.5vw, 268px))));
  background: var(--ground-2);
}
.hero__slab picture, .hero__slab img { display: block; width: 100%; height: 100%; }
.hero__slab img { object-fit: cover; object-position: 50% 100%; }

.hero__marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.hero__marks--tight { display: none; }
.hero__marks .mark { stroke-width: 10; }

.mark {
  fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round;
  filter: url(#spray);
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.mark-tag rect { fill: var(--ink); }
.mark-tag text {
  fill: #fff; font-family: var(--f); font-weight: 600; font-size: 21px; letter-spacing: .09em; text-transform: uppercase;
}

.hero__plaque {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(calc(var(--m) + 460px), 100%);
  padding: clamp(20px, 2vw, 30px) clamp(20px, 2.2vw, 34px) clamp(18px, 1.8vw, 26px) var(--m);
  background: var(--ground);
}
.hero__lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.4; font-weight: 450; max-width: 31ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 1.6vw, 22px); }
.hero__proof {
  display: flex; align-items: center; gap: .75em;
  margin-top: clamp(16px, 1.6vw, 22px);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.hero__proof .dash { width: 24px; height: 3px; background: var(--mark); flex: none; }

.hero__cap {
  position: absolute; right: var(--m); top: 18px; z-index: 2;
  background: var(--ink); color: #fff; padding: .55em .85em;
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.sec-head { display: grid; gap: 18px; padding-block: clamp(72px, 9vw, 150px) clamp(32px, 4vw, 64px); }
.sec-head__title { font-size: clamp(3.4rem, 9.6vw, 11.5rem); margin-top: 6px; }
.sec-head__text { max-width: 36ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.4; color: var(--ink-2); }
.sec-head--split { grid-template-columns: 1fr; align-items: end; }

/* ==========================================================================
   Work: bonded plates
   ========================================================================== */
.work__grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); }

.work__index {
  position: sticky; top: calc(var(--head-h) + 28px);
  align-self: start; margin-top: clamp(130px, 14vw, 250px);
  display: grid; gap: 14px;
}
.work__index ul { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.work__index a {
  display: block; padding: 5px 0 5px 14px; position: relative;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-3);
  transition: color .2s;
}
.work__index a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 3px; background: var(--mark);
  transform: translateY(-50%); transition: width .3s var(--ease);
}
.work__index a:hover, .work__index a[aria-current="true"] { color: var(--ink); }
.work__index a[aria-current="true"]::before { width: 8px; }

.plate { margin-top: clamp(56px, 8vw, 128px); scroll-margin-top: calc(var(--head-h) + 12px); }
.plate:first-of-type { margin-top: 0; }

.plate__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px clamp(20px, 3vw, 56px); align-items: end;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.plate__title {
  font-size: clamp(1.9rem, 3.7vw, 3.6rem);
  font-weight: 800; font-stretch: 75%; letter-spacing: -.022em; line-height: .92;
}
.plate__copy { display: grid; gap: 10px; max-width: 46ch; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.plate__quote { color: var(--ink); font-weight: 500; }
.plate__quote span {
  display: block; margin-top: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}

/* the module: slabs, columns and rows that share one joint */
.stack { display: grid; gap: var(--j); }
.bond { display: grid; gap: var(--j); }
.col { display: flex; flex-direction: column; gap: var(--j); min-width: 0; }
.row { display: flex; gap: var(--j); min-height: 0; min-width: 0; }
.f1 { flex: 1 1 0; } .f2 { flex: 2 1 0; } .f3 { flex: 3 1 0; }
.ar-34 { aspect-ratio: 3 / 4; }
.ar-43 { aspect-ratio: 4 / 3; }
.ar-wide { aspect-ratio: 2.35 / 1; }

.slab {
  position: relative; display: block; overflow: hidden;
  min-width: 0; min-height: 0; padding: 0; border: 0;
  background: var(--ground-2); cursor: zoom-in; text-align: left;
}
.slab:not([class*="f"]):not(.ar-34):not(.ar-43):not(.ar-wide) { min-height: 0; }
.slab img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transition: transform 1.2s var(--ease);
}
.slab img.pos-top { object-position: 50% 18%; }
.slab img.pos-mid { object-position: 50% 62%; }
.slab img.pos-low { object-position: 50% 78%; }
.slab:hover img { transform: scale(1.03); }

/* setting-out pegs appear at the corners of a slab on hover/focus */
.slab::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0;
  transition: opacity .3s;
  background:
    linear-gradient(var(--mark), var(--mark)) left top / 20px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left top / 3px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / 20px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / 3px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / 20px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / 3px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 20px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 3px 20px no-repeat;
}
.slab:hover::after, .slab:focus-visible::after { opacity: 1; }
.slab:focus-visible { outline-offset: -3px; }

.bond--syston   { grid-template-columns: 5fr 5fr; }
.bond--drives   { grid-template-columns: 6fr 4fr; }
.bond--terrace  { grid-template-columns: 4fr 4fr 2fr; }
.bond--stone-a  { grid-template-columns: 6fr 4fr; }
.bond--stone-b  { grid-template-columns: 4fr 3fr 3fr; }
.stack__note {
  display: grid; gap: 8px; max-width: 62ch; margin-top: clamp(10px, 1.4vw, 18px);
  color: var(--ink-2); font-size: 1rem; line-height: 1.45;
}

/* before / after */
.ba {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  --pos: 50%;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  background: var(--ground-2);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { object-position: 50% 60%; }
.ba__before {
  object-position: 50% 60%;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__tag {
  position: absolute; top: 14px; z-index: 2; background: var(--ink); color: #fff;
  padding: .45em .8em; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; }
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--mark);
}
.ba__knob {
  position: absolute; top: 50%; left: 0; width: 48px; height: 48px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--mark); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .25s var(--ease);
}
.ba:hover .ba__knob, .ba.is-drag .ba__knob { transform: translate(-50%, -50%) scale(1.1); }
.ba:focus-visible { outline-offset: -4px; }

/* details strip */
.plate--details { margin-bottom: clamp(24px, 4vw, 60px); }
.details { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--j); }
.details figure { display: grid; gap: 10px; align-content: start; }
.details .slab { width: 100%; }
.details figcaption { font-size: .86rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-bottom: clamp(80px, 10vw, 170px); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }

.svc__media {
  position: sticky; top: calc(var(--head-h) + 28px);
  aspect-ratio: 4 / 5; max-height: calc(100svh - var(--head-h) - 56px); width: 100%;
  overflow: hidden; background: var(--ground-2);
}
.svc__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
}
.svc__media img.is-on { clip-path: inset(0); z-index: 1; }
.svc__pegs {
  position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) left top / 22px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left top / 3px 22px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / 22px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / 3px 22px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / 22px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / 3px 22px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 22px 3px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 3px 22px no-repeat;
}

.svc__list { border-top: 1.5px solid var(--ink); }
.svc__item {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px clamp(20px, 3vw, 48px);
  padding-block: clamp(22px, 2.6vw, 38px);
  border-bottom: 1px solid var(--line);
  outline-offset: -3px;
}
.svc__item::before {
  content: ""; position: absolute; left: 0; top: clamp(30px, 3.4vw, 50px); width: 0; height: 4px; background: var(--mark);
  transition: width .4s var(--ease);
}
.svc__name {
  grid-row: 1 / span 2;
  font-size: clamp(2.1rem, 4.1vw, 4.1rem);
  font-weight: 800; font-stretch: 75%; letter-spacing: -.024em; line-height: .92;
  color: color-mix(in srgb, var(--ink) 52%, var(--ground));
  transition: color .3s, transform .45s var(--ease);
}
.svc__text { color: var(--ink-2); max-width: 34ch; align-self: start; padding-top: .3em; }
.svc__tags {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); align-self: end;
}
.svc__item.is-on .svc__name { color: var(--ink); transform: translateX(34px); }
.svc__item.is-on::before { width: 24px; }
.svc__inline { display: none; }

.services__cta { margin-top: clamp(36px, 4vw, 64px); font-size: 1.2rem; font-weight: 500; }

/* ==========================================================================
   Reviews (dark)
   ========================================================================== */
.reviews { background: var(--sub); color: #fff; padding-block: clamp(80px, 11vw, 190px); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 130px); }
.reviews__head { display: grid; gap: 22px; align-content: start; position: sticky; top: calc(var(--head-h) + 28px); align-self: start; }
.reviews__title { font-size: clamp(2.7rem, 5.9vw, 7rem); margin-top: 6px; }
.reviews__meta { color: rgba(255, 255, 255, .7); max-width: 34ch; }
.reviews__head .link { justify-self: start; }

.quote { display: grid; gap: 16px; }
.quote blockquote p { font-weight: 300; letter-spacing: -.012em; line-height: 1.22; font-size: clamp(1.18rem, 1.6vw, 1.5rem); }
.quote figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.quote figcaption::before { content: ""; width: 24px; height: 3px; background: var(--mark); flex: none; }
.quote figcaption span { color: rgba(255, 255, 255, .6); }
.quote--lead { padding-bottom: clamp(36px, 4.6vw, 72px); border-bottom: 1px solid var(--line-d); }
.quote--lead blockquote p { font-size: clamp(1.7rem, 3.4vw, 3.5rem); line-height: 1.12; letter-spacing: -.025em; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 64px); }
.quote-grid .quote { padding-block: clamp(26px, 3vw, 44px); border-bottom: 1px solid var(--line-d); align-content: start; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-block: clamp(80px, 11vw, 180px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact__title { font-size: clamp(3.4rem, 9vw, 10.5rem); margin-top: 18px; }
.contact__text { margin-top: clamp(18px, 2vw, 28px); max-width: 32ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; color: var(--ink-2); }

.direct { margin-top: clamp(30px, 4vw, 60px); border-top: 1.5px solid var(--ink); }
.direct li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.direct__k { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.direct__v {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem); font-weight: 700; font-stretch: 85%; letter-spacing: -.02em; line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--mark), var(--mark)) left bottom / 0 3px no-repeat;
  transition: background-size .4s var(--ease); justify-self: start; padding-bottom: 2px;
}
.direct__v--sm { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; font-stretch: 100%; letter-spacing: -.005em; }
.direct__v:hover, .direct__v:focus-visible { background-size: 100% 3px; }

.enquiry { background: var(--paper); padding: clamp(22px, 3vw, 44px); display: grid; gap: clamp(22px, 2.4vw, 32px); }
.enquiry legend { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: .6em 1.05em; border: 1.5px solid var(--ink); font-weight: 500; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.chip:hover span { background: var(--ground); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mark); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.field span em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-3); font-size: .85rem; margin-left: .35em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: .5em 0; border-radius: 0; resize: vertical;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0 4px;
  transition: background-size .45s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 4px; }
.enquiry__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.enquiry__note { font-size: .88rem; color: var(--ink-3); max-width: 48ch; line-height: 1.4; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--sub); color: #fff; padding-top: clamp(56px, 7vw, 110px); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer__brand { display: grid; gap: 22px; justify-items: start; }
.footer__brand img { width: clamp(96px, 10vw, 140px); height: auto; border-radius: 50%; }
.footer__brand p { max-width: 24ch; color: rgba(255, 255, 255, .72); }
.footer__nav, .footer__contact { display: grid; gap: 8px; align-content: start; }
.footer__nav a { font-size: 1.5rem; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; text-decoration: none; line-height: 1.1; }
.footer__contact a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer__nav a:hover, .footer__contact a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: clamp(44px, 6vw, 90px); padding-top: 18px; border-top: 1px solid var(--line-d);
  font-size: .82rem; color: rgba(255, 255, 255, .6);
}

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

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--sub); color: #fff;
}
.lb::backdrop { background: var(--sub); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--m); }
.lb__count { font-size: .8rem; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lb__btn { background: none; border: 1.5px solid #fff; padding: .55em 1em; font-weight: 600; font-size: .88rem; cursor: pointer; }
.lb__btn:hover { background: #fff; color: var(--ink); }
.lb__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 0 clamp(56px, 8vw, 120px) 22px; min-height: 0; touch-action: pan-y; }
.lb__img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain; justify-self: center;
  transition: opacity .3s;
}
.lb__img.is-loading { opacity: .25; }
.lb__fig figcaption { text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .82); min-height: 1.5em; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; display: grid; place-items: center;
  background: none; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; cursor: pointer;
}
.lb__nav:hover { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.lb__nav--prev { left: var(--m); } .lb__nav--next { right: var(--m); }
html:has(dialog[open]) { overflow: hidden; }

/* ==========================================================================
   Motion: only when JS is on, and never if the person has asked for less
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(108%); }
  .js .hero__slab { clip-path: inset(0 0 100% 0); }
  .js .hero__plaque, .js .hero__cap { opacity: 0; transform: translateY(14px); }
  .js .site-header { opacity: 0; }
  .js .hero__marks .mark, .js .underneath__mark .mark { stroke-dashoffset: 1; }
  .js .hero__marks .mark-tag { opacity: 0; }

  .is-ready .site-header { opacity: 1; transition: opacity .8s .1s; }
  .is-ready .hero__title .line > span { transform: none; transition: transform 1s var(--ease-io); }
  .is-ready .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
  .is-ready .hero__slab { clip-path: inset(0); transition: clip-path 1.35s var(--ease-io) .25s; }
  .is-ready .hero__plaque, .is-ready .hero__cap { opacity: 1; transform: none; transition: opacity .8s var(--ease) 1.05s, transform .8s var(--ease) 1.05s; }
  .is-ready .hero__marks .mark { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease-io) 1.35s; }
  .is-ready .hero__marks .mark-tag { opacity: 1; transition: opacity .6s 2.7s; }
  .is-ready .underneath__mark .mark { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-io) 1s; }

  .js .reveal { opacity: 0; transform: translateY(22px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slab img, .btn::before, .svc__media img { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__index { display: none; }
  .work__main .sec-head { padding-top: clamp(72px, 9vw, 150px); }
}

@media (max-width: 1000px) {
  .nav, .phone { display: none; }
  .menu-btn { display: inline-block; }
  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn { display: none; }

  /* tablet: the photograph first, the plaque under it, so nothing covers the terrace */
  .hero__slab { height: auto; overflow: visible; background: none; }
  .hero__slab picture { position: relative; display: block; height: auto; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ground-2); }
  .hero__marks { height: auto; aspect-ratio: 3 / 2; }
  .hero__plaque { position: static; width: auto; padding: 24px var(--m) 4px; }
  .hero__lede { max-width: 42ch; }

  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__media { display: none; }
  .svc__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc__inline { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 14px; }
  .svc__item.is-on .svc__name { transform: none; }
  .svc__name { color: var(--ink); grid-row: auto; }
  .svc__item::before { display: none; }

  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__head { position: static; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }

  .details { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); gap: var(--j); margin-inline: calc(var(--m) * -1); padding-inline: var(--m); scrollbar-width: none; }
  .details::-webkit-scrollbar { display: none; }
  .details figure { flex: 0 0 min(64vw, 320px); scroll-snap-align: start; }
}

@media (max-width: 759px) {
  :root { --head-h: 60px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 1.02rem; }

  .brand__name { font-size: .98rem; }

  .hero__top { padding-top: 14px; padding-bottom: 18px; }
  /* sized so "patios, driveways and" fills one line exactly; the second line then breaks after "groundwork" */
  .hero__title { font-size: clamp(2.2rem, calc((100vw - 2 * var(--m)) / 7.6), 4.4rem); line-height: .9; }
  .hero__title .line { white-space: normal; }
  .hero__slab { height: auto; aspect-ratio: 6 / 5; overflow: visible; background: none; }
  .hero__slab picture { position: relative; display: block; height: auto; aspect-ratio: 6 / 5; overflow: hidden; background: var(--ground-2); }
  .hero__marks { height: auto; aspect-ratio: 6 / 5; }
  .hero__marks--wide { display: none; }
  .hero__marks--tight { display: block; }
  .hero__marks .mark { stroke-width: 12; }
  .hero__plaque { position: static; width: auto; padding: 22px var(--m) 8px; }
  .hero__lede { max-width: 34ch; font-size: 1.12rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__cap { display: none; }

  .sec-head { padding-top: 64px; }
  .plate__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plate__title { font-size: clamp(2.1rem, 9.6vw, 3rem); }

  /* mobile compositions: the same bonds, re-laid for a narrow screen */
  .bond--syston { grid-template-columns: 1fr; }
  .bond--syston .col:first-child .slab { aspect-ratio: 4 / 5; }
  .bond--syston .col:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .bond--syston .col:last-child > .slab { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .bond--syston .row { grid-column: 1 / -1; }
  .bond--syston .row .slab { aspect-ratio: 3 / 4; }

  .bond--drives { grid-template-columns: 1fr; }
  .bond--drives .col:last-child { flex-direction: row; }
  .bond--drives .col:last-child .slab { aspect-ratio: 3 / 4; }

  .ar-wide { aspect-ratio: 4 / 3; }
  .bond--terrace { grid-template-columns: 1fr 1fr; }
  .bond--terrace .slab:nth-child(1) { grid-column: 1 / -1; }
  .bond--terrace .slab:nth-child(2), .bond--terrace .slab:nth-child(3) { aspect-ratio: 3 / 4; }

  .bond--stone-a { grid-template-columns: 1fr; }
  .bond--stone-a .slab:nth-child(2) { aspect-ratio: 4 / 5; }
  .bond--stone-b { grid-template-columns: 1fr 1fr; }
  .bond--stone-b .slab:nth-child(1) { grid-column: 1 / -1; }
  .bond--stone-b .slab:nth-child(2), .bond--stone-b .slab:nth-child(3) { aspect-ratio: 1 / 1; }

  .svc__item { grid-template-columns: 1fr; }
  .svc__name { grid-row: auto; }
  .svc__text { padding-top: 6px; max-width: 40ch; }
  .svc__tags { margin-top: 6px; }

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

  .direct li { grid-template-columns: 1fr; gap: 2px; }
  .fields { grid-template-columns: 1fr; }
  .enquiry__actions .btn { flex: 1 1 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }

  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--ink); color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a {
    display: grid; place-items: center; min-height: 56px;
    text-decoration: none; font-weight: 600; font-size: .95rem;
    border-right: 1px solid rgba(255, 255, 255, .18);
  }
  .actionbar .actionbar__main { background: var(--mark); color: var(--ink); border-right: 0; }

  .lb__fig { padding: 0 var(--m) 88px; }
  .lb__nav { top: auto; bottom: 18px; transform: none; width: 52px; height: 52px; }
  .lb__nav--prev { left: var(--m); } .lb__nav--next { right: var(--m); }
}
