/* =========================================================================
   SITE STYLES — "modern British arborist"
   Palette, type and spacing tokens first; components after; responsive and
   motion rules at the end. No frameworks, no build step.
   ========================================================================= */

/* ---------- 0. Fonts ------------------------------------------------------
   Archivo variable font (weight 400–850, width 100–125%), self-hosted so the
   site makes no request to Google — visitor IPs stay off fonts.gstatic.com,
   there is nothing to declare for GDPR, and the strict CSP in public/_headers
   can stay `self`-only. Files fetched from Google Fonts v25 (OFL licence);
   latin + latin-ext subsets cover UK English including accented names. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 850;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 850;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Palette (from the project brief) */
  --forest: #12372a;
  --forest-deep: #0c2820;
  --forest-ink: #0a1f18;
  --charcoal: #121614;
  --paper: #f4f1ea;
  --paper-warm: #ece7da;
  --stone: #b8b4aa;
  --stone-line: #d9d4c7;
  /* Darkened from #627a55 so text using it clears WCAG AA (4.5:1) on both
     light grounds — it was 4.20 on --paper and 3.84 on --paper-warm, which
     failed for .eyebrow, a:hover and .brand-name small. Same hue and
     saturation, two steps down in lightness: 5.17 and 4.72 respectively.
     Dark fields override .eyebrow to --stone, so they are unaffected. */
  --moss: #566b4b;
  --orange: #e86f28;
  --orange-deep: #d05e1a;

  /* Text colours */
  --ink: #121614;
  --ink-soft: #3b423c;
  --ink-mute: #5b635b;
  --paper-text: #f4f1ea;
  --paper-mute: #c7c2b4;

  /* Type */
  --font-stack: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.625rem, 6vw + 0.5rem, 4.875rem);
  --fs-h1: clamp(2.375rem, 4.5vw + 0.65rem, 4rem);
  --fs-h2: clamp(1.875rem, 2.6vw + 0.9rem, 2.875rem);
  --fs-h3: clamp(1.25rem, 0.6vw + 1.05rem, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Space (8px scale) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-pad: clamp(4.25rem, 9vw, 7.5rem);

  /* Shape + elevation */
  --r-sm: 0.375rem;
  --r-md: 0.625rem;
  --r-lg: 1rem;
  --shadow-1: 0 1px 2px rgba(18, 22, 20, 0.05), 0 6px 20px rgba(18, 22, 20, 0.06);
  --shadow-2: 0 2px 4px rgba(18, 22, 20, 0.07), 0 18px 44px rgba(18, 22, 20, 0.13);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-quick: 0.25s;
  --t-move: 0.7s;

  /* Layout */
  --container: 73.5rem;
  --header-h: 4.5rem;
}

/* ---------- 2. Base ------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-weight: 750;
  font-stretch: 116%;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--moss); }

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.25rem;
}

strong { color: var(--ink); }

::selection {
  background: var(--forest);
  color: var(--paper);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal);
  color: var(--paper);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 3. Layout helpers ------------------------------------------- */

.container {
  width: min(var(--container), 100% - clamp(2.5rem, 8vw, 5rem));
  margin-inline: auto;
}

.container--wide {
  width: min(82rem, 100% - clamp(2rem, 6vw, 4rem));
}

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

.section--tight { padding-block: calc(var(--section-pad) * 0.62); }

.section--warm { background: var(--paper-warm); }

.section--dark {
  background: var(--forest-deep);
  color: var(--paper-mute);
}

.section--dark h2,
.section--dark h3 {
  color: var(--paper-text);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lede {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  /* flex-start, not center: when the label wraps to two lines, centring left
     the orange rule floating in the middle of the block instead of marking
     the first line. */
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: var(--s-4);
  font-size: var(--fs-eyebrow);
  font-weight: 640;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

.eyebrow::before {
  content: "";
  /* flex:none or the rule bar shrinks as the label grows, which pushed the
     text into wrapping earlier than it needed to. Both cinematic.css copies
     of this rule already carry it; the base one did not. */
  flex: none;
  width: 1.375rem;
  height: 2px;
  /* Optically centres the bar against the first line now it is top-aligned. */
  margin-top: 0.72em;
  background: var(--orange);
}

.section--dark .eyebrow { color: var(--stone); }

/* Subtle film grain on dark blocks */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--sm {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- 4. Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-quick) ease, border-color var(--t-quick) ease,
    color var(--t-quick) ease, transform var(--t-quick) ease, box-shadow var(--t-quick) ease;
}

.btn:active { transform: translateY(1px); }

/* The fill stays the brand orange (5.85:1 against the charcoal label, so the
   text is comfortably AA). The border is deliberately the darker orange-deep
   rather than matching the fill: --orange against --paper is only 2.76:1,
   which fails WCAG 1.4.11 (3:1) for the boundary of a UI component, so on the
   light sections the button edge would not resolve. --orange-deep reaches
   3.55:1 on --paper and 3.24:1 on --paper-warm, which clears it without
   touching the brand colour itself. */
.btn--primary {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: var(--charcoal);
  box-shadow: 0 8px 20px rgba(232, 111, 40, 0.22);
}

.btn--primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--charcoal);
}

.btn--outline {
  border-color: rgba(18, 22, 20, 0.35);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(18, 22, 20, 0.04);
}

.btn--ghost {
  border-color: rgba(244, 241, 234, 0.4);
  color: var(--paper-text);
}

.btn--ghost:hover {
  border-color: var(--paper-text);
  color: var(--paper-text);
  background: rgba(244, 241, 234, 0.08);
}

.btn--lg {
  min-height: 3.375rem;
  padding: 0.875rem 1.875rem;
  font-size: 1.0625rem;
}

.btn--block { width: 100%; }

/* ---------- 5. Header ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 22, 20, 0.08);
  transition: box-shadow var(--t-quick) ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(18, 22, 20, 0.08); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.375rem;
  height: 2.375rem;
  flex: none;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 760;
  font-stretch: 116%;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.18em;
  color: var(--moss);
}

/* Moss is tuned for the light header; on the dark footer ground it only
   reaches 2.95:1, so the tagline switches to stone there (same as .eyebrow). */
.site-footer .brand-name small {
  color: var(--stone);
}

/* Short-form trading name for the cramped mobile header. Hidden by default
   and swapped in below 40em — see the small-screen block near the foot of
   this file. It is aria-hidden in the markup, so the full name (which stays
   in the DOM, clipped) is what assistive tech and crawlers read. */
.brand-short { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.125rem;
  font-size: 0.9875rem;
  font-weight: 560;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-quick) ease, border-color var(--t-quick) ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone .icon { color: var(--orange); }
.nav-phone:hover { color: var(--forest); }

.nav .btn { white-space: nowrap; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid rgba(18, 22, 20, 0.25);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(18, 22, 20, 0.08);
  background: var(--paper);
}

.mobile-menu.is-open { display: block; }

.mobile-menu ul {
  margin: 0;
  padding: 0.5rem 0 1rem;
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 620;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 22, 20, 0.07);
}

.mobile-menu .menu-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

/* ---------- 6. Mobile bottom CTA bar -------------------------------------- */

.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(18, 22, 20, 0.2);
  border-top: 1px solid rgba(18, 22, 20, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.mobile-cta-bar .cta-call {
  background: var(--orange);
  color: var(--charcoal);
}

.mobile-cta-bar .cta-quote {
  background: var(--forest);
  color: var(--paper-text);
}

@media (min-width: 56.25em) {
  .mobile-cta-bar { display: none; }
}

@media (max-width: 56.24em) {
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- 7. Hero -------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 56rem);
  padding-block: clamp(5rem, 12vw, 8.5rem) clamp(3.5rem, 7vw, 5.5rem);
  background: var(--forest-ink);
  color: var(--paper-mute);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The hero photo is landscape but the frame is often taller than 16:9.
     Anchoring slightly above centre keeps the tree crown and the truck in
     shot instead of cropping down to bare grass. */
  object-position: center 42%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 31, 24, 0.92) 0%,
    rgba(10, 31, 24, 0.55) 45%,
    rgba(10, 31, 24, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero .eyebrow { color: var(--stone); }

.hero-title {
  margin-bottom: var(--s-5);
  font-size: var(--fs-hero);
  color: var(--paper-text);
}

.hero-sub {
  max-width: 38rem;
  margin-bottom: var(--s-6);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--paper-mute);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--paper-text);
  font-weight: 640;
  text-decoration: none;
  font-size: 1.0625rem;
}

.hero-phone .icon { color: var(--orange); }
.hero-phone:hover { color: var(--paper-text); text-decoration: underline; }
.hero-phone span span { color: var(--paper-mute); font-weight: 460; }

/* ---------- 8. Trust strip -------------------------------------------------- */

.trust-strip {
  background: var(--forest);
  color: var(--paper-text);
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 620;
  border-left: 1px solid rgba(244, 241, 234, 0.12);
}

.trust-item:first-child { border-left: 0; }
.trust-item .icon { color: var(--orange); width: 1.375rem; height: 1.375rem; }

/* ---------- 9. Service cards ------------------------------------------------ */

.card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-quick) ease, box-shadow var(--t-quick) ease,
    border-color var(--t-quick) ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--stone);
  box-shadow: var(--shadow-2);
}

.service-card .card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
}

.service-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .card-media img,
.service-card:focus-within .card-media img {
  transform: scale(1.045);
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.375rem;
  padding: 1.375rem 1.5rem 1.5rem;
}

.service-card h3 { margin-bottom: 0.125rem; }

.service-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.875rem;
  font-weight: 680;
  font-size: var(--fs-small);
  color: var(--forest);
  text-decoration: none;
}

.card-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--t-quick) ease;
}

.service-card:hover .card-link .icon { transform: translateX(4px); }

/* Stretch the whole card into one tap target */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- 10. Feature grid (why choose us) -------------------------------- */

.feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: rgba(98, 122, 85, 0.14);
  color: var(--forest);
}

.section--dark .feature-icon {
  background: rgba(244, 241, 234, 0.08);
  color: var(--stone);
}

.feature h3 { margin-bottom: 0.375rem; }

.feature p {
  margin: 0;
  font-size: var(--fs-small);
}

/* ---------- 11. Before / after ----------------------------------------------- */

.ba-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-2);
  touch-action: pan-y;
  --pos: 50%;
}

.ba-slider img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-slider .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18, 22, 20, 0.25);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(18, 22, 20, 0.35);
  pointer-events: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-tag {
  position: absolute;
  top: 1rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 22, 20, 0.72);
  color: var(--paper-text);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-tag--before { left: 1rem; }
.ba-tag--after { right: 1rem; }

.ba-caption {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* ---------- Before / after CAROUSEL -----------------------------------------
   A different control from .ba-slider above, for a different problem.

   .ba-slider wipes one image across another with a draggable divider. That
   only reads correctly when both frames are shot from the same spot — the
   whole illusion is that one photo becomes the other. The hedge pair is a
   real before and after of one job, but the two frames are taken from
   different positions (one close up beside the hedge, one back down the
   drive), so a wipe reads as two unrelated places.

   This carousel shows each photo whole, one at a time, so mismatched
   viewpoints do not matter. It is a scroll-snap track: with no JavaScript it
   is still a horizontally scrollable pair of images with visible labels, and
   the buttons and dots are progressive enhancement on top.
--------------------------------------------------------------------------- */

.ba-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-2);
  background: var(--charcoal);
}

.ba-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Firefox + IE: hide the scrollbar, the dots communicate position. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ba-carousel-track::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ba-carousel-track { scroll-behavior: auto; }
}

.ba-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}

.ba-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* The hedge pair is tall. The difference between the two states is in the
   face and top of the hedge, not the ground, so anchor just below centre:
   low enough to keep the garage and drive for context, high enough that the
   cut line and the top of the hedge stay in frame. Anchoring at 78% filled
   the card with driveway and pushed the hedge to the edge. */
.ba-slide img.focus-hedge { object-position: 50% 45%; }

.ba-slide figcaption {
  position: absolute;
  left: 0.875rem;
  top: 0.875rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 22, 20, 0.78);
  color: var(--paper-text);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.92);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(18, 22, 20, 0.35);
  cursor: pointer;
  transition: background var(--t-quick) ease, transform var(--t-quick) ease;
}

.ba-carousel-btn:hover { background: var(--paper); transform: translateY(-50%) scale(1.06); }
.ba-carousel-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ba-carousel-btn[disabled] { opacity: 0.35; cursor: default; transform: translateY(-50%); }
.ba-carousel-btn--prev { left: 0.75rem; }
.ba-carousel-btn--next { right: 0.75rem; }
.ba-carousel-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* No JS: the track still scrolls, so the buttons would be dead controls. */
html:not(.js) .ba-carousel-btn,
html:not(.js) .ba-carousel-dots { display: none; }

.ba-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.875rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  background: rgba(18, 22, 20, 0.55);
}

.ba-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.45);
  cursor: pointer;
  transition: background var(--t-quick) ease, transform var(--t-quick) ease;
}

.ba-carousel-dot[aria-current="true"] { background: var(--orange); transform: scale(1.25); }
.ba-carousel-dot:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* Paired before/after cards (Our Work) */
.work-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
}

.work-card {
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-quick) ease, box-shadow var(--t-quick) ease;
}

.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.work-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--stone-line);
}

.work-pair figure {
  position: relative;
  margin: 0;
}

.work-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.work-pair figcaption {
  position: absolute;
  left: 0.625rem;
  bottom: 0.625rem;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: rgba(18, 22, 20, 0.72);
  color: var(--paper-text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-single img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
}

/* Portrait phone photos. The default 4/2.6 letterbox shows only the middle
   30% of a 554x1200 frame, which cropped the operator clean out of the spider
   lift shot — the subject in a tall photo is rarely dead centre. This keeps
   much more of the height. Use it on any card whose source is portrait. */
.work-card--tall .work-single img {
  aspect-ratio: 4 / 4.6;
}

/* object-fit: cover crops from the centre, which is the wrong anchor when the
   subject sits high in the frame (someone up a tree) or low (ground work).
   These shift the visible window without changing the aspect ratio. */
.work-single img.focus-top    { object-position: 50% 12%; }
.work-single img.focus-bottom { object-position: 50% 88%; }

.work-body { padding: 1.25rem 1.5rem 1.5rem; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stone-line);
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip--service {
  background: rgba(98, 122, 85, 0.14);
  border-color: transparent;
  color: var(--forest);
}

.work-body h3 { margin-bottom: 0.375rem; }
.work-body p { margin: 0; font-size: var(--fs-small); color: var(--ink-mute); }

/* ---------- 12. Steps (how it works) ------------------------------------------ */

.steps {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  padding: 1.75rem 1.625rem 1.625rem;
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--charcoal);
  font-weight: 760;
  font-size: 1.0625rem;
}

.step h3 { margin-bottom: 0.375rem; }
.step p { margin: 0; font-size: var(--fs-small); color: var(--ink-mute); }

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.section-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

/* ---------- 13. Coverage -------------------------------------------------------- */

.coverage-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  align-items: center;
}

.coverage-map {
  border-radius: var(--r-lg);
  border: 1px solid var(--stone-line);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--paper-warm);
}

.coverage-map img { width: 100%; height: auto; }

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}

.coverage-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.coverage-note .icon { color: var(--moss); margin-top: 0.125rem; }

/* ---------- 14. Testimonials ------------------------------------------------------ */

.testimonial-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.625rem;
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.testimonial .stars {
  display: inline-flex;
  gap: 0.25rem;
  color: var(--orange);
}

.testimonial .stars svg {
  width: 1.0625rem;
  height: 1.0625rem;
  fill: currentColor;
  stroke: none;
}

.testimonial blockquote {
  margin: 0;
  flex: 1;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.testimonial footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--ink);
}

.badge-example {
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: rgba(184, 180, 170, 0.28);
  color: var(--ink-mute);
  font-size: 0.71875rem;
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 15. FAQ ------------------------------------------------------------------ */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}

.faq-item {
  border: 1px solid var(--stone-line);
  border-radius: var(--r-md);
  background: #fffdf8;
  overflow: hidden;
  transition: border-color var(--t-quick) ease;
}

.faq-item[open] { border-color: var(--stone); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-weight: 660;
  font-size: 1.03125rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon {
  color: var(--moss);
  transition: transform var(--t-quick) ease;
}

.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 1.375rem 1.25rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 16. Conversion banner ----------------------------------------------------- */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper-mute);
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.banner h2 {
  margin-bottom: 0.75rem;
  color: var(--paper-text);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.banner p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.0625rem;
}

.banner-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 56.25em) {
  .banner-inner { grid-template-columns: 1.4fr auto; }
}

/* ---------- 17. Inner page hero -------------------------------------------------------- */

.page-hero {
  background: var(--forest-deep);
  color: var(--paper-mute);
  padding-block: clamp(3.75rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
}

.page-hero h1 {
  color: var(--paper-text);
  max-width: 22ch;
}

.page-hero .lede {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.page-hero .eyebrow { color: var(--stone); }

/* ---------- 18. Service detail rows (Services page) ------------------------------------- */

.svc {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--stone-line);
}

.svc:first-of-type { border-top: 0; }

@media (min-width: 56.25em) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc:nth-of-type(even) .svc-media { order: 2; }

  /* A service with no photo yet: collapse to one column so the copy is not
     stranded beside an empty grid cell. Remove this class when the service
     gets a real photo. margin-inline centres the narrowed block — without it
     the 46rem cap just pins it to the left edge with a gap to its right,
     which looks like the missing photo rather than a deliberate measure. */
  .svc--no-media {
    grid-template-columns: 1fr;
    max-width: 46rem;
    margin-inline: auto;
  }
}

.svc-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  background: var(--paper-warm);
  box-shadow: var(--shadow-1);
}

.svc-media img { width: 100%; height: auto; }

.svc-body h2 {
  font-size: clamp(1.625rem, 2.2vw, 2.25rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.svc-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.svc-expect {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.svc-expect li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-small);
}

.svc-expect .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1875rem;
  color: var(--moss);
}

.svc-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ---------- 19. About page ---------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
}

.about-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-1);
  background: var(--paper-warm);
}

.about-media img { width: 100%; height: auto; }

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.125rem;
}

.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.value-list .feature-icon { width: 2.75rem; height: 2.75rem; }

.value-list h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.value-list p { margin: 0; font-size: var(--fs-small); color: var(--ink-mute); }

/* ---------- 20. Quote form ------------------------------------------------------------------ */

.quote-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62em) {
  .quote-layout { grid-template-columns: 1.5fr 1fr; }
}

.quote-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

/* .field .label covers non-<label> group headings (e.g. the radio-row's
   <span class="label">), which must look identical to the real labels. */
.field label,
.field .label {
  display: block;
  margin-bottom: 0.4375rem;
  font-weight: 650;
  font-size: var(--fs-small);
  color: var(--ink);
}

.field .hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.84375rem;
  color: var(--ink-mute);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--stone);
  border-radius: var(--r-sm);
  transition: border-color var(--t-quick) ease, box-shadow var(--t-quick) ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(18, 55, 42, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3401e;
}

.field .error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.84375rem;
  font-weight: 600;
  color: #a03818;
}

.field.has-error .error { display: block; }

/* Photo dropzone */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 2px dashed var(--stone);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink-mute);
  cursor: pointer;
  transition: border-color var(--t-quick) ease, background-color var(--t-quick) ease;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--moss);
  background: rgba(98, 122, 85, 0.07);
}

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

.dropzone .icon {
  width: 2rem;
  height: 2rem;
  color: var(--moss);
}

.dropzone strong { font-size: 1rem; }
.dropzone span { font-size: 0.84375rem; }

.previews {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  margin-top: 0.875rem;
}

.previews:empty { display: none; }

.preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--stone-line);
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview button {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 22, 20, 0.78);
  color: var(--paper);
  cursor: pointer;
}

.preview button .icon { width: 0.875rem; height: 0.875rem; }

/* Radios + checkbox */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  min-height: 2.75rem;
  border: 1.5px solid var(--stone);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 620;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--t-quick) ease, background-color var(--t-quick) ease,
    color var(--t-quick) ease;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:has(input:checked) {
  border-color: var(--forest);
  background: rgba(18, 55, 42, 0.08);
  color: var(--forest);
}

.radio-pill:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  cursor: pointer;
}

.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: var(--forest);
}

/* Honeypot: visually removed, still in the form for bots to trip on */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-actions .hint { margin: 0; }

.form-error {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(179, 64, 30, 0.1);
  border: 1px solid rgba(179, 64, 30, 0.35);
  color: #8f3115;
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Aside cards on the quote page */
.aside-card {
  padding: 1.625rem 1.5rem;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  background: #fffdf8;
  box-shadow: var(--shadow-1);
}

.aside-card + .aside-card { margin-top: 1.25rem; }

.aside-card--dark {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper-mute);
}

.aside-card--dark h3 { color: var(--paper-text); }

.aside-card h3 { margin-bottom: 0.625rem; }

.aside-card ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-small);
}

.aside-card .btn { margin-top: 1rem; }

/* Confirmation state */
.confirmation {
  display: none;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: #fffdf8;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.confirmation.is-visible { display: block; }

.quote-form.is-hidden { display: none; }

.confirmation .tick {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(98, 122, 85, 0.16);
  color: var(--forest);
}

.confirmation .tick .icon { width: 2rem; height: 2rem; }

.confirmation h2 { margin-bottom: 0.625rem; }

.confirmation p {
  max-width: 32rem;
  margin-inline: auto;
}

.confirmation .urgent {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-line);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.demo-note {
  margin: 1rem auto 0;
  max-width: 32rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(184, 180, 170, 0.22);
  font-size: 0.84375rem;
  color: var(--ink-mute);
}

/* ---------- 21. Footer ------------------------------------------------------------------------ */

.site-footer {
  background: var(--forest-ink);
  color: var(--paper-mute);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.footer-brand .brand { color: var(--paper-text); margin-bottom: 1rem; }

.footer-brand p { max-width: 24rem; }

.site-footer h3 {
  margin-bottom: 0.875rem;
  color: var(--paper-text);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--paper-mute);
  text-decoration: none;
}

.footer-links a:hover { color: var(--paper-text); text-decoration: underline; }

.footer-contact {
  display: grid;
  gap: 0.75rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--paper-text);
  font-weight: 640;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; color: var(--paper-text); }
.footer-contact .icon { color: var(--orange); width: 1.25rem; height: 1.25rem; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 50%;
  color: var(--paper-text);
}

.footer-social a:hover { border-color: var(--paper-text); }
.footer-social [hidden] { display: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.375rem;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 0.84375rem;
  color: rgba(199, 194, 180, 0.8);
}

.footer-bottom a { color: inherit; }

/* ---------- 22. 404 --------------------------------------------------------------------------- */

.error-page {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-pad);
}

.error-page .error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 780;
  font-stretch: 120%;
  line-height: 1;
  color: var(--stone);
}

.error-page .error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- 23. Reveal motion ----------------------------------------------------------------- */

/* Elements start visible and are only hidden once `.reveals-armed` is set —
   and that class is added by initReveals() in site.js, i.e. by the very code
   that can also un-hide them.

   This used to key off `.js`, which an inline <head> script sets on every
   page load. That hid the content immediately while the code to reveal it
   sat in a deferred script: if site.js 404'd, was blocked by a proxy or
   ad-blocker, or threw before initReveals() ran, 13 of 18 homepage sections
   stayed at opacity 0 forever and the page rendered as a hero over a void.
   Keying off a class site.js sets itself makes that failure impossible.

   Consequence worth knowing: the hide now lands one frame after first paint,
   so a reveal element can be briefly visible before it fades in. That is a
   far better failure mode than content that never appears. */
@media (prefers-reduced-motion: no-preference) {
  .reveals-armed .reveal {
    opacity: 0;
    transform: translateY(1.125rem);
    transition: opacity var(--t-move) var(--ease-out), transform var(--t-move) var(--ease-out);
  }

  .reveals-armed .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .reveals-armed .reveal-stagger > * {
    opacity: 0;
    transform: translateY(1.125rem);
    transition: opacity var(--t-move) var(--ease-out), transform var(--t-move) var(--ease-out);
    transition-delay: calc(var(--stagger-i, 0) * 90ms);
  }

  .reveals-armed .reveal-stagger.is-in > * {
    opacity: 1;
    transform: none;
  }

  /* Safe to keep on `.js`, unlike the .reveal rules above: this is a CSS
     animation that runs to completion on its own. No JavaScript is needed to
     finish it, so a failed site.js cannot strand the hero hidden. */
  .js .hero-inner > * {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: hero-rise 0.8s var(--ease-out) forwards;
  }

  .js .hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
  .js .hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
  .js .hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
  .js .hero-inner > *:nth-child(5) { animation-delay: 0.4s; }

  @keyframes hero-rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 24. Small-screen adjustments ------------------------------------------------------- */

@media (max-width: 61.99em) {
  .nav-links,
  .nav-phone,
  .nav .btn { display: none; }

  .menu-toggle { display: inline-flex; }

  .nav { gap: var(--s-4); }

  /* Compact call button stays visible in the mobile header */
  .nav .btn--mobile-call {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 62em) {
  .nav .btn--mobile-call { display: none; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 40em) {
  :root { --header-h: 4rem; }

  .brand-name { font-size: 0.9375rem; }

  /* The full trading name is one text node written by config.js, so it cannot
     be shortened in CSS. A second, aria-hidden span carries the short form and
     is swapped in here; the full name is CLIPPED rather than display:none, so
     it stays in the accessibility tree and for search engines. Header only —
     the footer has room for the whole lockup. */
  .site-header .brand-name [data-bind="businessName"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header .brand-name small { display: none; }
  .site-header .brand-short { display: inline; }

  /* A little tracking back at small sizes: it buys ~15px of line length and
     tightens the label without costing the spaced-out look that makes an
     eyebrow read as a label. Measured at 390px, going far enough to hold the
     longest string on one line needed 0.04em, which looks like body copy —
     so the longest eyebrow was shortened instead (see index.html). */
  .eyebrow {
    gap: 0.5rem;
    letter-spacing: 0.12em;
  }

  .hero-ctas .btn { flex: 1 1 100%; }

  .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(244, 241, 234, 0.12);
  }

  .trust-item:first-child { border-top: 0; }
}

/* =========================================================================
   MOTION LAYER — Lenis smooth scrolling + GSAP scroll animation.
   Everything here is decoration: if assets/js/motion.js never runs, none of
   these rules change how the page reads.
   ========================================================================= */

/* Lenis drives scrolling itself, so the browser must not also smooth it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* The hero photo is scaled and drifted by GSAP; give the compositor its own
   layer and let it grow past the frame without showing an edge. */
.hero-media {
  will-change: transform;
  transform-origin: center 60%;
}

/* The source is an overcast winter photo, so it needs lifting rather than
   dimming: a little more contrast and warmth stops it reading as grey. */
.hero-media {
  filter: saturate(1.12) contrast(1.08) brightness(1.06);
}

/* Scrim weighted to the left, where the copy sits, so the right-hand side of
   the photo stays open. Strong enough for AA contrast on the headline
   without flattening the whole image. */
.hero-scrim {
  background:
    linear-gradient(
      100deg,
      rgba(10, 31, 24, 0.9) 0%,
      rgba(10, 31, 24, 0.66) 42%,
      rgba(10, 31, 24, 0.22) 72%,
      rgba(10, 31, 24, 0.12) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 31, 24, 0.7) 0%,
      rgba(10, 31, 24, 0.1) 45%,
      rgba(10, 31, 24, 0.28) 100%
    );
}

/* On narrow screens the copy spans the full width, so the horizontal
   weighting stops helping — go back to a simple vertical scrim. */
@media (max-width: 48rem) {
  .hero-scrim {
    background: linear-gradient(
      to top,
      rgba(10, 31, 24, 0.92) 0%,
      rgba(10, 31, 24, 0.7) 48%,
      rgba(10, 31, 24, 0.4) 100%
    );
  }
}

.svc-media img,
.about-media img { will-change: transform; }

/* Honour the visitor's setting above all of the above. */
@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .svc-media img,
  .about-media img {
    will-change: auto;
    transform: none !important;
  }
}
