/* ==========================================================================
   BM Roofing - homepage stylesheet
   Aesthetic: editorial-magazine. Hairline rules, no shadows, no gradients.
   Colours sampled from the real logo. Fonts self-hosted, no external requests.
   ========================================================================== */

/* --- 1. Fonts ------------------------------------------------------------ */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-var-latin.woff2') format('woff2-variations');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic-var-latin.woff2') format('woff2-variations');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  /* Colour - green is sampled straight from the logo artwork */
  --ink:        #121310;
  --ink-2:      #1c1e19;
  --green:      #43974f;
  --green-deep: #2e6b38;
  --forest:     #17301c;
  --paper:      #f6f4ef;
  --paper-2:    #ece8df;
  --rule:       #d3cec2;
  --rule-dark:  #33372e;
  --stone:      #5e6359;
  --stone-dark: #9aa093;

  /* Type - exactly seven steps */
  --t-display: clamp(2.5rem, 5.6vw, 4.75rem);
  --t-h2:      clamp(1.875rem, 3.4vw, 2.875rem);
  --t-h3:      clamp(1.3125rem, 1.8vw, 1.625rem);
  --t-lede:    clamp(1.125rem, 1.45vw, 1.375rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.75rem;

  /* Spacing - 8pt grid, exactly seven steps */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 136px;
  --sec-y: clamp(64px, 8.5vw, 136px);

  /* Structure */
  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --topbar-h: 38px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --fast: 180ms;
  --slow: 560ms;
  --par: 110px;   /* how far the hero image may drift behind the scroll */
}

/* --- Scroll progress ----------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

/* --- 3. Reset ------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-body);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

/* figure, blockquote, dl and dd carry a 1em UA margin that otherwise leaks
   into the grids as a stray spacing value. Everything here spaces explicitly. */
p, figure, blockquote, dl, dd, figcaption { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* --- 4. Shared primitives ------------------------------------------------ */

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

.section { padding-block: var(--sec-y); }

/* Small caps label - the editorial kicker. Text only, never an icon. */
.label {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0;
}
.label--light { color: var(--green); }

.lede {
  font-size: var(--t-lede);
  line-height: 1.52;
}

.muted { color: var(--stone); }

/* Screen-reader-only: gives an icon-only link its accessible name */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Bespoke brand element: the roof pitch taken from the logo's own roof angle.
   Small here as the hero eyebrow mark; drawn large as the quote band's roofline. */
.pitch {
  display: block;
  width: 40px;
  height: 12px;
  overflow: visible;
  color: var(--green);
}
.pitch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: square;
}

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  /* Stated, not inherited. A <button> does not inherit line-height from body -
     browsers give form controls `normal` - so an <a class="btn"> came out 58px
     tall and a <button class="btn"> 50px, which is how the Call and Send
     buttons ended up different sizes. */
  line-height: 1.62;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}

/* Ink on green - exactly like the wordmark, and it measures 5.78:1.
   White on this green is only 3.63:1, which fails AA, so it is not used. */
.btn--primary {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.btn--primary:hover { background: #4eab5b; border-color: #4eab5b; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 244, 239, .45);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(246, 244, 239, .1); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn:active { transform: scale(.975); }

/* --- 6. Top bar + header ------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--stone-dark);
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: var(--topbar-h);
  display: flex;
  /* stretch, not center, so .shell fills the bar and the tel link can fill it too -
     otherwise height:100% resolves against a content-height box and the tap target
     collapses to the height of the text. */
  align-items: stretch;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.topbar__where { margin: 0; }
.topbar__tel {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.topbar__tel:hover { color: var(--green); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--rule); }
.header .shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

/* Height + width:auto + max-width + object-fit. Never a fixed w AND h. */
.logo { display: block; line-height: 0; }
.logo img {
  display: block;
  height: clamp(32px, 4vw, 46px);
  width: auto;
  max-width: min(200px, 44vw);
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: var(--s4); }
.nav__list { display: flex; gap: var(--s4); }
.nav__link {
  position: relative;
  /* A two-word item must never break across two lines: the header is a fixed
     76px and a wrapped item pushes the whole row out of it. */
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-block: var(--s1);
}
/* Rule-underline wipe - the hover language used on every text link */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 7. Hero ------------------------------------------------------------- */
/* Sized so the H1, the supporting line, the primary CTA AND the fact strip
   all land on the first screen at 1366x768 and 1366x640. */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* 240px = top bar (38) + header (76) + the fact strip below (~112 when a
     label wraps). Budgeted, not guessed - measured at 1366x768 and 1366x640. */
  min-height: clamp(400px, calc(100svh - 240px), 680px);
  padding-block: var(--s5);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* The image is --par taller than its frame and starts that far above it, so the
   parallax can shift it down by up to --par without ever exposing an edge. */
.hero__media img {
  position: absolute;
  top: calc(var(--par) * -1);
  left: 0;
  width: 100%;
  height: calc(100% + var(--par));
  object-fit: cover;
  object-position: 50% 58%;
  will-change: transform;
}
/* Flat scrim, not a decorative gradient - it exists to make type legible. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12, 14, 11, .9) 0%, rgba(12, 14, 11, .72) 46%, rgba(12, 14, 11, .3) 100%);
}
.hero .shell { position: relative; z-index: 1; }
.hero__inner { max-width: 44rem; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.hero h1 {
  font-size: var(--t-display);
  color: var(--paper);
  margin-bottom: var(--s3);
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero__sub {
  color: #d7d9d2;
  max-width: 36rem;
  margin-bottom: var(--s4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Flat fact strip. Evidenced claims only - all four come from their own site. */
.facts {
  background-color: var(--ink-2);
  border-top: 1px solid var(--rule-dark);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts__item {
  padding: var(--s3) var(--s2);
  border-left: 1px solid var(--rule-dark);
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
}
.facts__item:first-child { border-left: 0; }
.facts__item b {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s1);
}

/* --- 8. Intro ------------------------------------------------------------ */

.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
.intro__body { max-width: 34rem; }
.intro__body h2 { font-size: var(--t-h2); margin-bottom: var(--s3); }
.intro__body p + p { margin-top: var(--s3); }

.intro__aside {
  border-top: 2px solid var(--ink);
  padding-top: var(--s3);
}
.intro__stat {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s1);
}
.intro__aside dd { margin: 0 0 var(--s4); }
.intro__aside dd:last-child { margin-bottom: 0; }
.intro__aside dd > span { display: block; }
.intro__aside dt { margin-bottom: var(--s1); }

.plate { position: relative; }
.plate img { width: 100%; }
.plate figcaption {
  font-size: var(--t-small);
  color: var(--stone);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  margin-top: var(--s2);
}

/* --- 9. Services --------------------------------------------------------- */

.services { background-color: var(--paper-2); }

/* --- Section texture ------------------------------------------------------
   Three options, switched by data-texture on ANY section that wants one. Drawn as inline SVG,
   so there is no extra file, no extra request, and the tile scales cleanly.
   Each is a real roofing material rather than ornament, and all sit at 5-9%
   so body text keeps its contrast - the texture should register only once you
   look for it. The pattern paints under everything; content is untouched. */

/* A - running-bond brick coursing. The most literal, and the quietest. */
[data-texture='brick'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cg fill='none' stroke='%23121310' stroke-opacity='0.04'%3E%3Cpath d='M0 .5h120M0 20.5h120M.5 0v20M60.5 0v20M30.5 20v20M90.5 20v20'/%3E%3C/g%3E%3C/svg%3E");
}

/* B - diamond lattice, after the tile hanging common on Sussex elevations -
   which is on their own services list. Lighter and more decorative. */
[data-texture='slate'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cg fill='none' stroke='%23121310' stroke-opacity='0.04'%3E%3Cpath d='M0 28 24 0 48 28M0 0 24 28 48 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* C - the logo's own roof pitch, blown up as a watermark in brand green.
   The least literal and the most ownable. */
[data-texture='pitch'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100'%3E%3Cg fill='none' stroke='%2343974f' stroke-opacity='0.08' stroke-width='2'%3E%3Cpath d='M0 88 100 18 200 88'/%3E%3C/g%3E%3C/svg%3E");
}
.services__head {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s5);
  max-width: 46rem;
}
.services__head h2 { font-size: var(--t-h2); }

/* Editorial entries, alternating photo side. Not a card grid. */
.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule);
  align-items: center;
}
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry__text h3 { font-size: var(--t-h3); margin-bottom: var(--s2); }
.entry__text p { color: var(--stone); }
/* Inner pages: each service is a section of its own page, so its heading is an
   h2 - sized as the homepage's h3 so the two read as one system - and its copy
   runs to several paragraphs. */
.entry__text h2 { font-size: var(--t-h3); margin-bottom: var(--s2); }
.entry__text p + p { margin-top: var(--s3); }
.entry__text p strong { color: var(--ink); font-weight: 600; }

/* Outline, not green. Six primary buttons down one section would flatten the
   page's CTA hierarchy and leave nothing for the real close to be louder than. */
.entry__cta { margin-top: var(--s3); }
.entry__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Typographic index of the remaining services - words, no boxes. */
.index { margin-top: var(--s5); }
.index h3 {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: var(--s3);
}
.index__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--s4);
}
.index__list li {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 500;
  padding-block: var(--s1);
  border-bottom: 1px solid var(--rule);
}

.index__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
}
.index__cta p { color: var(--stone); max-width: 42ch; }

/* --- 10. Pull quote ------------------------------------------------------ */

.quote {
  background-color: var(--forest);
  color: var(--paper);
}
.quote__block { margin: 0; }

/* Reuses --t-display, the hero's size. The page opens big and lands big; a new
   size here would have bought nothing and cost a step on the type scale. */
.quote__shout {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-block: var(--s3) var(--s4);
  max-width: 18ch;
}

/* Two hairlines meeting at the logo's own roof pitch, spanning the band. */
.quote__roofline {
  display: flex;
  align-items: center;
  color: var(--green);
}
.quote__roofline::before,
.quote__roofline::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}
.quote__roofline svg {
  display: block;
  width: 72px;
  height: 20px;
  overflow: visible;
  flex: none;
}
.quote__roofline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.quote__foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-top: var(--s4);
}
.quote__rest {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: #cdd2c8;
  max-width: 52ch;
}
.quote cite {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-style: normal;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
}
.quote cite span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--t-label);
  color: var(--stone-dark);
  margin-top: var(--s1);
}

/* --- 11. Work ------------------------------------------------------------ */

.work__head {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s5);
  max-width: 46rem;
}
.work__head h2 { font-size: var(--t-h2); }
.work .work__head { margin-bottom: var(--s4); }

/* Editorial strip - one flush band of work, dragged sideways.

   No aspect-ratio and no object-fit anywhere here, deliberately: each image is set to
   a shared HEIGHT and left to take whatever width its own proportions give it. That is
   what makes this treatment crop-free, and the uneven widths are the rhythm. */
.strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  /* Starts where the heading starts, then runs off the right edge - the magazine
     "gallery continues off the page" move. Tracks .shell exactly, so the first
     photo and its caption line up with the type above rather than floating 8px
     from the screen edge. */
  padding-left: calc(max(0px, 100% - var(--shell)) / 2 + var(--gutter));
  scroll-padding-left: calc(max(0px, 100% - var(--shell)) / 2 + var(--gutter));
}
.strip:focus-visible { outline-offset: -2px; }
.strip figure { flex: none; scroll-snap-align: start; }
.strip img {
  display: block;
  height: clamp(260px, 34vw, 440px);
  width: auto;
  max-width: none;
}
.strip figcaption {
  max-width: 34ch;
  padding: var(--s2) var(--s3) 0 0;
  font-size: var(--t-small);
  color: var(--stone);
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

.strip__foot {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* --- 12. Reviews --------------------------------------------------------- */

.reviews { background-color: var(--paper-2); }
.reviews__head {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s5);
  max-width: 46rem;
}
.reviews__head h2 { font-size: var(--t-h2); }
/* --- Review marquee ------------------------------------------------------ */

.marquee {
  overflow: hidden;              /* the track is wider than the page */
  padding-block: var(--s1);
  /* Softens both cut edges so cards enter and leave rather than snapping off.
     An edge mask, not a decorative gradient. */
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
}
.marquee__row {
  display: flex;
  gap: var(--s4);
  padding-right: var(--s4);      /* keeps the seam evenly spaced */
}

/* Both rows are identical, so -50% lands exactly on the loop point. */
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Hover and keyboard focus pause it too, but neither replaces the button:
   hover does not exist on touch, and focus-within only helps once you are in. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

.review {
  flex: none;
  width: clamp(272px, 74vw, 374px);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  /* pins the name to the card floor. margin-top:auto would do the same, but it
     resolves to a different pixel value per card and pollutes the spacing audit
     with phantom tokens. */
  justify-content: space-between;
}
.review p { margin-bottom: var(--s3); }

.marquee__toggle {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);   /* 47px tall - a real tap target */
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.marquee__toggle:hover { color: var(--ink); border-color: var(--ink); }
.review footer {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
}
.review footer span {
  display: block;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: var(--s1);
}
.reviews__note {
  margin-top: var(--s4);
  font-size: var(--t-small);
  color: var(--stone);
}
.reviews__note a { color: var(--green-deep); }

/* --- 13. Areas ----------------------------------------------------------- */

.areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: start;
}
.areas__text { max-width: 34rem; }
.areas__text h2 { font-size: var(--t-h2); margin-bottom: var(--s3); }
.areas__text > p { color: var(--stone); }
.areas__tels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s3);
}
.areas__tel {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--green-deep);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.areas__tel:hover { color: var(--ink); border-color: var(--ink); }
.areas__list { border-top: 2px solid var(--ink); }
.areas__list li {
  border-bottom: 1px solid var(--rule);
  isolation: isolate;        /* keeps the sweep behind the text, above the row */
}
.areas__list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2);
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

/* Brand green sweeps in from the left. The label stays ink, exactly as on the
   buttons - ink on this green measures 5.78:1, white only 3.63:1 and fails AA. */
.areas__list a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.areas__list a:hover::before,
.areas__list a:focus-visible::before { transform: scaleX(1); }

/* The roof mark is the reward for reaching the row, not permanent decoration -
   so the list stays typographic at rest and the brand appears on contact. */
.areas__mark {
  flex: none;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--fast) var(--ease), transform 300ms var(--ease);
}
.areas__list a:hover .areas__mark,
.areas__list a:focus-visible .areas__mark { opacity: 1; transform: none; }

/* --- 14. Contact CTA ----------------------------------------------------- */

.cta { background-color: var(--ink); color: var(--paper); }
.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
.cta h2 { font-size: var(--t-h2); margin-bottom: var(--s3); }
.cta__sub { color: var(--stone-dark); max-width: 32rem; margin-bottom: var(--s4); }
/* Links in this paragraph sit on the near-black ground, where nothing styled
   them before - they would have fallen back to the browser's blue. Green is
   5.2:1 against --ink, which clears AA; it fails on a photographic banner but
   this is a solid ground, which is a different measurement. */
.cta__sub a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 151, 79, .5);
  transition: border-color var(--fast) var(--ease);
}
.cta__sub a:hover,
.cta__sub a:focus-visible { border-bottom-color: var(--green); }

/* One bordered contact panel - a single designed block, not a grid of cards */
.panel {
  border: 1.5px solid var(--rule-dark);
  padding: var(--s4);
}
.panel .label { margin-bottom: var(--s3); }
.panel__note {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small);
  color: var(--stone-dark);
}

.cta__tels { display: grid; gap: var(--s3); }
.cta__tel {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
  overflow-wrap: anywhere;
  transition: color var(--fast) var(--ease);
}
.cta__tel--sm { font-size: var(--t-body); font-weight: 700; }
.cta__tel:hover { color: var(--green); }
.cta__tel b {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s1);
}

.steps { border-top: 1px solid var(--rule-dark); margin-top: var(--s4); }
.steps li {
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule-dark);
  color: #d7d9d2;
}
.steps li b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: var(--s1);
}

/* --- 15. Footer ---------------------------------------------------------- */

.footer {
  background-color: var(--ink-2);
  color: var(--stone-dark);
  padding-block: var(--s5) var(--s4);
  font-size: var(--t-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--rule-dark);
}
/* The logo has black lettering, so on a dark ground it sits on a paper plaque
   rather than being recoloured. Same file, treatment chosen per ground. */
.footer__plaque {
  display: inline-block;
  background: var(--paper);
  padding: var(--s2);
  border-radius: 2px;
  line-height: 0;
  margin-bottom: var(--s3);
}
.footer__plaque img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }

.footer h3 {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s3);
}
.footer li { line-height: 1.95; }
.footer a { color: var(--stone-dark); text-decoration: none; transition: color var(--fast) var(--ease); }
.footer a:hover { color: var(--paper); }
.footer__contact a { color: var(--paper); }

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
}
.footer__social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__social:hover { color: var(--green); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  padding-top: var(--s4);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
}

/* --- 16. Mobile sticky call bar ------------------------------------------ */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--green-deep);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 56px;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.callbar__call { background: var(--green); color: var(--ink); }
.callbar__wa   { background: var(--ink); color: var(--paper); }

/* WhatsApp glyph. Monochrome and inheriting currentColor, which keeps it inside the
   page's palette and is the licence-safe way to use a third-party messaging mark. */
.wa { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--wa { width: 100%; margin-top: var(--s3); }

/* --- 17. Scroll reveal --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Cascade any container's direct children. The per-item delay is written by the
   JS as --stagger, so this works for three list items or sixteen without a rule
   per child - and the JS caps the total so a long list never crawls. */
.reveal-children > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.reveal-children.is-in > * { opacity: 1; transform: none; }

/* Photographs wipe up into their frame rather than simply fading. The frame is
   already clipping (it has to be - the settle scale would otherwise spill), so
   this costs nothing extra. */
/* The wipe lives on the IMAGE, never on the observed frame.
   A frame that clips ITSELF to zero height reports intersectionRect height 0 and
   intersectionRatio 0 for ever - the browser honours a target's own clip-path -
   so it can never trigger its own reveal. Hidden because unrevealed, unrevealed
   because hidden. Clipping the child instead leaves the frame's own geometry
   untouched, which is what the observer measures. */
.reveal-img img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 620ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-img.is-in img { clip-path: inset(0 0 0 0); }

/* Frames whose image drifts within them as the frame crosses the viewport.
   The 1.12 scale is the headroom that drift moves inside - without it the
   image would pull away from its own edges. The JS owns this transform
   outright, so the settle transition is off here to avoid the two fighting;
   these frames still wipe open via the clip-path above. */
.par-frame img {
  transform: scale(1.12);
  /* clip still wipes; transform is driven per-frame by the JS, so it gets no
     transition of its own - the two would fight. */
  transition: clip-path 620ms var(--ease);
  will-change: transform;
}

/* The frame must clip, or the 1.04 entrance scale bleeds past it. On inset plates the
   page gutter hid that; a full-bleed image has no gutter and it became 8px of
   horizontal page overflow. Clipping here also makes the settle read correctly
   everywhere - the image resolves INTO its frame rather than spilling over it. */
.reveal-img { overflow: hidden; }
/* :not(.par-frame) matters. These two rules sit after .par-frame img and have
   equal (then greater) specificity, so without the exclusion they silently win
   and the drift transform never lands at all. */
.reveal-img:not(.par-frame) img {
  transform: scale(1.04);
  transition: clip-path 620ms var(--ease), transform 900ms var(--ease);
}
.reveal-img:not(.par-frame).is-in img { transform: none; }

/* --- 18. Breakpoints ----------------------------------------------------- */

/* ============================================================  INNER PAGES
   Every page opens on a photographic banner. These were typographic to begin
   with, on the reasoning that the hero was the homepage's own moment - changed
   4 Nov 2026 at the client's request, and the pages are better for it. The
   banner is shorter than the hero, so the hero is still the only full-height
   photographic moment. Same tokens throughout - no new type size, no new
   spacing value. */

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Shorter than the homepage hero on purpose: this is a page header, not the
     hero. The hero is the only full-height photographic moment on the site. */
  min-height: clamp(260px, 34vw, 420px);
  padding-block: var(--s5) var(--s4);
  background-color: var(--ink);
  overflow: hidden;
}
.page-head__media { position: absolute; inset: 0; overflow: hidden; }
/* object-fit: cover crops, which the editorial plates never do - but this is a
   background, not a plate. Same treatment the hero uses. */
.page-head__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
/* Flat scrim, not a decorative gradient - it exists to make type legible, and
   it is heaviest at the bottom because that is where the type sits. */
.page-head__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 11, .92) 0%, rgba(12, 14, 11, .8) 48%, rgba(12, 14, 11, .62) 100%);
}
.page-head .shell { position: relative; z-index: 1; }
.page-head h1 {
  font-size: var(--t-display);
  margin-block: var(--s2) var(--s3);
  max-width: 18ch;
  color: var(--paper);
}
.page-head .lede { color: #d7d9d2; max-width: 42rem; }

/* Breadcrumb. Real navigation once the site is more than one page, and it
   states a hierarchy that four flat filenames otherwise do not. */
.crumbs {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--stone);
}
/* On the banner the crumbs are NOT brand green. Green measured 1.77:1 against
   bright sky at the top of the photograph, where the scrim is weakest - it is a
   mid-tone and cannot carry 12px text on a dark photographic ground. Paper with
   a visible rule reads as a link and measures comfortably past AA. */
.page-head .crumbs { color: #d7d9d2; }
.page-head .crumbs a { color: var(--paper); border-bottom-color: rgba(246, 244, 239, .45); }
.page-head .crumbs a:hover,
.page-head .crumbs a:focus-visible { border-bottom-color: var(--paper); }
.page-head .crumbs span { color: #d7d9d2; }
.crumbs a {
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.crumbs a:hover,
.crumbs a:focus-visible { border-bottom-color: var(--green-deep); }
.crumbs span { padding-inline: var(--s1); color: var(--rule); }

/* A specification list: flat-roof covering types, the standards leadwork is
   worked to. Hairline rules, not bullets - there is not a bullet anywhere else
   on this site and this is not the place to introduce one. */
.spec { margin-top: var(--s4); border-top: 2px solid var(--ink); }
/* The spec list spans the WHOLE entry, below both columns - it is not part of
   the text column. Inside it, it was the single thing throwing these rows out
   of proportion: on the guttering entry it ran to 601px of a 1059px text
   column against a photograph fixed at 420px, so the picture looked tiny
   beside a wall of words. Measured, not guessed: every entry without a spec
   list already sat between 0.86 and 1.06 text-to-image. */
.entry > .spec { grid-column: 1 / -1; order: 1; }
.spec li {
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
  color: var(--stone);
}
/* The last row carries no rule under it. Left in, it either doubles up with
   the entry's own closing border a padding-gap below (two parallel lines with
   nothing between them), or - where the last row holds a single item - hangs a
   half-width line under it. */
.spec li:last-child { border-bottom: 0; }
.spec li b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: var(--s1);
}

/* The work page. A vertical editorial sequence rather than a gallery grid:
   full-width plates and paired rows alternating, so the rhythm carries the
   scroll. Every photograph keeps its own true proportions - there is no
   aspect-ratio and no object-fit anywhere on this site, deliberately, so
   nothing is ever cropped. */
.work-set { display: grid; gap: var(--s6); }
.work-pair { display: grid; grid-template-columns: 1fr; gap: var(--s4); }

.work-group { display: grid; gap: var(--s4); }
.work-group__head { max-width: 42rem; }
.work-group__head h2 { font-size: var(--t-h2); margin-block: var(--s2) var(--s3); }

/* The homepage strip is now a teaser, so it needs a way through. */
.strip__foot a {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--green-deep);
  margin-left: var(--s3);
}
.strip__foot a:hover,
.strip__foot a:focus-visible { color: var(--ink); border-color: var(--ink); }

/* ============================================================  ENQUIRY FORM
   Fields are hairline-ruled, like everything else here - no boxed inputs, no
   rounded corners, no drop shadows. The label is the same caps Archivo kicker
   the rest of the page uses, so a form reads as part of the page rather than
   something bolted to the bottom of it. */
.enquiry { background-color: var(--paper-2); }
.enquiry__grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.enquiry__intro h2 { font-size: var(--t-h2); margin-block: var(--s2) var(--s3); max-width: 16ch; }
.enquiry__intro a {
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--green-deep);
}
.enquiry__intro a:hover { color: var(--ink); border-color: var(--ink); }

.field { margin: 0 0 var(--s3); }
.field label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s1);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;                 /* a real tap target on touch */
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: 0;
  /* --stone, NOT --rule. An input's underline is the only thing showing where
     the field is, so it is a UI boundary and WCAG wants 3:1 for those. --rule
     measured 1.43:1 against the panel - a hairline that works for decoration
     is not good enough to locate a form field by. --stone is 5.4:1. */
  border-bottom: 1.5px solid var(--stone);
  border-radius: 0;                 /* iOS rounds inputs unless told not to */
  padding: var(--s1) 0;
  transition: border-color var(--fast) var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover,
.field textarea:hover { border-bottom-color: var(--stone); }
.field input:focus,
.field textarea:focus { outline: 0; border-bottom-color: var(--green-deep); }
/* Keyboard users still get a real focus ring; pointer users get the rule alone. */
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }

/* The form sits on its own panel so it reads as a block rather than floating
   on the section ground. Paper on paper-2 is a half-step lighter - enough to
   lift it without introducing a colour that is not already in the palette -
   and the hairline border is the same treatment .panel uses on the dark
   sections, in the light-ground rule colour. */
.form {
  background-color: var(--paper);
  border: 1.5px solid var(--rule);
  padding: var(--s3);
}

.enquiry__direct { margin-top: var(--s4); }
.enquiry__direct .btn { width: 100%; }
.enquiry__email { font-size: var(--t-small); color: var(--stone); margin: var(--s2) 0 0; }
.enquiry__email a {
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.enquiry__email a:hover { color: var(--ink); border-color: var(--ink); }

.form__send { width: 100%; }
.form__note { font-size: var(--t-small); color: var(--stone); margin: var(--s3) 0 0; }

/* ============================================================  COOKIE BANNER
   Sits ABOVE the mobile call bar rather than over it - the call bar is the
   page's main conversion route on a phone and covering it to ask about
   analytics would be the wrong trade. z-index 65 puts it over the call bar
   (60) and under the scroll progress hairline (70). */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding-block: var(--s3);
  box-shadow: 0 -8px 24px rgba(18, 19, 16, .08);
}
.cookies[hidden] { display: none; }
.cookies__inner { display: grid; gap: var(--s3); }
.cookies__text p:not(.label) { color: var(--stone); margin: 0; max-width: 60ch; }
.cookies__text .label { margin-bottom: var(--s1); }
.cookies__text a { color: var(--green-deep); border-bottom: 1.5px solid var(--rule); text-decoration: none; }
.cookies__text a:hover { color: var(--ink); border-color: var(--ink); }

/* Both buttons identical, on purpose. See the note in the markup. */
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.cookies__actions .btn { width: 100%; }

/* A plain text button, so "change your mind" looks like the links beside it
   rather than a stray form control in the footer. */
.footer__cookies {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: var(--s2);
  font-family: 'Newsreader', Georgia, serif;
  font-size: inherit;
  color: var(--stone-dark);
  text-decoration: underline;
  cursor: pointer;
}
.footer__cookies:hover { color: var(--paper); }

/* Legal pages. A reading column and nothing else - a privacy policy is read,
   not browsed, so it gets a measure and generous heading rhythm. */
.legal { max-width: 42rem; }
.legal__meta {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 var(--s4);
}
.legal h2 { font-size: var(--t-h3); margin-block: var(--s5) var(--s3); }
.legal h3 {
  font-family: 'Archivo', sans-serif;
  font-size: var(--t-body);
  font-weight: 700;
  margin-block: var(--s4) var(--s2);
}
.legal p { color: var(--stone); margin: 0 0 var(--s3); }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal .lede { color: var(--ink); margin-bottom: var(--s4); }
.legal a { color: var(--green-deep); text-decoration: none; border-bottom: 1.5px solid var(--rule); }
.legal a:hover, .legal a:focus-visible { color: var(--ink); border-color: var(--ink); }
.legal .spec { margin-bottom: var(--s3); }

/* Thank-you page */
.thanks { max-width: 42rem; }
.thanks__back { margin-top: var(--s4); }

@media (min-width: 720px) {
  .facts__item { padding: var(--s3); }
  .index__list { grid-template-columns: repeat(4, 1fr); }
  .cta__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s6); align-items: start; }
  /* Full quote reads left; attribution sits out in the right margin. */
  .quote__foot { grid-template-columns: 2fr 1fr; gap: var(--s6); align-items: start; }
}

/* Narrow desktop: five items, the logo and the green button all have to share
   one 76px row. Full --s4 gaps do not fit between the mobile breakpoint and
   about 1100px, so they tighten one step. Nothing else changes. */
@media (min-width: 900px) and (max-width: 1100px) {
  .nav,
  .nav__list { gap: var(--s3); }
  .header .shell { gap: var(--s2); }
  /* The header button's own label wrapped at 900px, making it 83px tall inside
     a 76px header. Kept on one line and given tighter sides; measured at 900,
     960, 1024 and 1100 afterwards. */
  .nav .btn { white-space: nowrap; padding-inline: var(--s2); }
}

@media (min-width: 900px) {
  .cookies__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--s5); }
  .cookies__actions { grid-template-columns: auto auto; }
  .cookies__actions .btn { width: auto; min-width: 9rem; }

  /* align-items: center, not start. The intro column is always shorter than the
     form - it is an invitation, not a second form - so anchoring both to the top
     left 399px of dead space under the intro, which read as a hole in the page
     rather than as space. Centred, the air splits and the two columns pair. */
  .enquiry__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
  /* A grid item stretches by default, which made the send button span both
     columns and shout louder than the header's own green CTA. */
  .form__send { width: auto; justify-self: start; }

  /* The section's two green buttons sit in facing columns and read as a pair,
     so they are sized as one. Without this they take their natural widths from
     their labels - "Call 01273 803960" is 204px, "Send enquiry" 173px - and
     the pair looks accidental. 13rem clears the longer of the two. */
  .enquiry__direct .btn,
  .form__send { min-width: 13rem; }
  .enquiry__direct .btn { width: auto; }

  /* Name and phone share a row: both are short, and pairing them takes a whole
     72px row off the form, which is the other half of the imbalance. */
  .form { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); padding: var(--s4); }
  .form > * { grid-column: 1 / -1; }
  .form > .field--half { grid-column: auto; }

  /* Paired plates sit top-aligned, never stretched: their heights differ
     because their proportions differ, and that unevenness is the point. */
  .work-pair { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s5); }
  /* Side by side, the two photographs crop to a shared 4:3 so they are the
     same size. This is the ONE place on the work page where a photograph is
     cropped, and it is a deliberate trade: two images of different proportions
     cannot be the same size, so matching them costs some edges. 4:3 is the
     cheapest ratio to land on - six of the eight paired photographs already
     are 4:3, so only two crop at all (the bungalow loses 21% of its width, the
     timber structure 11%), and both lose it from the sides, not the top.
     Scoped to this breakpoint on purpose: stacked on a phone there is nothing
     to match, so they keep their true proportions and crop nothing. The
     full-width plates are never cropped at any width. */
  .work-pair .plate img { aspect-ratio: 4 / 3; object-fit: cover; }

  .page-head { padding-block: var(--s6) var(--s5); }

  /* Body and aside sit side by side; the photographic plate runs full width
     beneath them as a wide magazine plate. Nothing is left hanging. */
  .intro__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s5) var(--s6);
    align-items: start;
  }
  .intro__plate { grid-column: 1 / -1; }
  .intro__plate img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 42%; }
  .entry { grid-template-columns: 1fr 1fr; gap: var(--s5); padding-block: var(--s5); }
  /* Full width buys two columns, which halves its height again and gives the
     longer definitions room to breathe. */
  .entry > .spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
  /* In two columns the last ROW is what must lose its rule, not the last item.
     With an even number of items the second-to-last shares that row, and it is
     the one sitting in the left column - :nth-child(odd). With an odd number it
     does not, and :nth-child(even) correctly leaves it alone. */
  .entry > .spec li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .entry:nth-child(even) .entry__media { order: -1; }
  .areas__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); }
}

@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: 1.25fr 1fr; }
}

/* Short laptop windows: compress the hero so the fact strip still clears the fold */
/* Laptop windows. 820px catches the common 768-tall screen once browser chrome
   is subtracted, which a 720px breakpoint misses. */
@media (max-height: 820px) and (min-width: 900px) {
  :root { --t-display: clamp(2.25rem, 4.2vw, 3.25rem); }
  .hero { padding-block: var(--s4); min-height: clamp(320px, calc(100svh - 240px), 520px); }
  .hero__sub { margin-bottom: var(--s3); }
  .hero__eyebrow { margin-bottom: var(--s2); }
}

/* Mobile nav + call bar */
@media (max-width: 899px) {
  .nav__toggle { display: flex; }

  /* Clear of the call bar (56px) rather than on top of it. */
  .cookies { bottom: 56px; }

  /* The desktop rule is clamp(32px, 4vw, 46px), and 4vw on a phone is ~15px - so it
     bottoms out at its 32px floor and the logo sits small in a 76px header with
     ~200px of empty space beside it. Scale off a vw that actually means something
     at this width. The header height is untouched, so nothing below it moves. */
  .logo img { height: clamp(40px, 11vw, 46px); }

  /* Anchored to the header, not the viewport - the top bar scrolls away, so a
     fixed offset of --header-h sits 38px too high and clips the logo. */
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--s2) var(--gutter) var(--s4);
    transform: translateY(-120%);
    transition: transform 320ms var(--ease);
  }
  .nav__list.is-open { transform: none; }
  .nav__link { display: block; padding-block: var(--s2); border-bottom: 1px solid var(--rule); }
  .nav__link::after { display: none; }
  .nav .btn { display: none; }

  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule-dark); }

  .callbar { display: grid; }
  body { padding-bottom: 56px; }

  .topbar__where { display: none; }
  .topbar .shell { justify-content: flex-end; }

  /* Real tap targets on touch. An inline <a> is only as tall as its text box. */
  .footer li a,
  .areas__tel {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .footer li { line-height: 1.3; }
  .cta__tel { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 719px) {
  .index__list { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --- 19. Reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-img:not(.par-frame) img { transform: none; }
  .reveal-img img { clip-path: none; }
  .reveal-children > * { opacity: 1; transform: none; }
  .par-frame img { transform: scale(1.12); will-change: auto; }

  /* The marquee stops, and the loop duplicate is removed outright - otherwise the
     un-animated track shows all eight reviews twice, stacked. */
  .marquee__track { animation: none; }
  .marquee__row[aria-hidden="true"] { display: none; }
  .marquee { overflow-x: auto; }
  .marquee__toggle { display: none; }
  /* The hero image keeps its extra height but never moves; the JS skips parallax
     under this setting, so nothing else is needed here. */
  .hero__media img { will-change: auto; }
}
