/* ============================================================
   TreeWright — Site components, layout & motion
   Every colour/size references a token in tokens/*.css.
   ============================================================ */

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-y) 0; }
.section--light { background: var(--surface-page); }
.section--white { background: var(--surface-card); }
.section--tint  { background: var(--surface-tint); }
.section--dark  { background: var(--surface-dark); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--forest-800); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lead { font-size: var(--text-md); line-height: 1.65; max-width: 58ch; }
.muted { color: var(--text-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

/* ---------- Eyebrow — echoes "— Arboreal Services —" ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-label); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-mega); text-transform: uppercase; color: var(--text-accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--honey-500); }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--honey-500); }
.section--dark .eyebrow { color: var(--honey-300); }

/* ---------- Section heading ---------- */
.section-heading { display: flex; flex-direction: column; gap: var(--space-4); max-width: 680px; margin-bottom: var(--space-8); }
.section-heading--center { align-items: center; text-align: center; margin-inline: auto; }
.section-heading__title { font-size: var(--text-3xl); line-height: 1.12; letter-spacing: var(--tracking-tighter); }
.section-heading__lead { font-size: var(--text-md); color: var(--text-muted); max-width: 56ch; }
.section--dark .section-heading__lead { color: rgba(255, 255, 255, 0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-label); font-size: 0.8rem; font-weight: var(--weight-medium); letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.72rem; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 0.82rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--forest-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--forest-700); box-shadow: var(--shadow-md); }
.btn--leaf { background: var(--leaf-500); color: var(--forest-950); }
.btn--leaf:hover { background: var(--leaf-300); }
.btn--outline { background: transparent; color: var(--forest-800); border-color: var(--forest-800); }
.btn--honey { background: var(--honey-300); color: var(--forest-950); }
.btn--honey:hover { background: var(--honey-100); }
.btn--outline:hover { background: var(--forest-800); color: var(--paper); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost-light:hover { border-color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-label); font-weight: 600; font-size: var(--text-sm); color: var(--forest-800); }
.link-arrow .arrow { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover .arrow, a:hover .link-arrow .arrow { transform: translateX(4px); }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 42px; height: auto; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-label); font-weight: var(--weight-semibold); font-size: 1.08rem; letter-spacing: 0.14em; color: var(--tw-forest); }
.logo__tag { margin-top: 5px; font-family: var(--font-label); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--honey-700); }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__tag { color: var(--honey-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 231, 0.9); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); box-shadow: var(--shadow-xs); }
.site-header__inner { max-width: var(--container-max); margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-label); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-body);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.site-nav__link:hover { color: var(--forest-800); background: var(--stone-100); }
.site-nav__link[aria-current="page"] { color: var(--forest-800); font-weight: 600; }
.site-header__brand { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; padding-left: 20px; border-left: 1px solid var(--border-default); font-family: var(--font-label); font-weight: 600; font-size: var(--text-sm); color: var(--forest-800); }
.header-phone .icon { width: 17px; height: 17px; color: var(--honey-700); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: transparent; color: var(--forest-800); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__open, .nav-toggle__close { display: inline-flex; }
.nav-toggle .nav-toggle__close, .menu-open .nav-toggle .nav-toggle__open { display: none; }
.menu-open .nav-toggle .nav-toggle__close { display: inline-flex; }

.mobile-menu {
  display: none; position: fixed; inset: 73px 0 0; z-index: 99; background: var(--surface-page);
  padding: 24px var(--gutter); flex-direction: column; gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--forest-800); }
.mobile-menu .btn { margin-top: 20px; }

/* Sticky mobile action bar — call + quote always within thumb reach */
.hero__call { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: var(--space-5); }
.hero__title { font-size: var(--text-hero); line-height: 1; letter-spacing: var(--tracking-tighter); font-weight: 600; }
.hero__title .accent { color: var(--leaf-600); }
.hero__text { font-size: var(--text-md); line-height: 1.65; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-2); }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--text-muted); }
.hero__note .icon { width: 18px; height: 18px; color: var(--leaf-600); }

.hero__visual { position: relative; }
.hero__visual .photo { aspect-ratio: 4 / 5; }
.hero__badge {
  position: absolute; left: -24px; bottom: 32px; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-100); color: var(--forest-800); display: grid; place-items: center; }
.hero__badge strong { display: block; font-family: var(--font-label); color: var(--forest-900); font-size: var(--text-sm); }
.hero__badge span { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- Hero scene (layered parallax; see assets/js/hero.js) ----------
   Fills the viewport under the header, leaving the dark credentials band visible at the
   bottom. On scroll the scene holds still (hero.js counter-translates it) while the band rises
   over the grass; once the band reaches the village the whole scene scrolls away with it. */
.scene { position: relative; z-index: 0; will-change: transform; }
/* Everything after the hero slides up over it. */
main > :not(.scene) { position: relative; z-index: 1; }
.scene__sticky {
  /* --scene-h: the illustration's own frame, never taller than the width allows (62.5vw = 1600:1000),
     so it never zooms. --hero-h leaves the dark band visible at the bottom on load, but never grows
     past the illustration plus a strip of grass: on tall, narrow windows the band simply sits higher. */
  --scene-h: clamp(560px, min(calc(100svh - var(--header-h, 73px)), 62.5vw), 940px);
  --hero-h: min(max(560px, calc(100svh - var(--header-h, 73px) - var(--band-h, 110px))), calc(var(--scene-h) * 1.2));
  --scene-top: max(0px, calc((var(--hero-h) - var(--scene-h)) / 3));
  position: relative; height: var(--hero-h); overflow: hidden; background: var(--paper); isolation: isolate;
}
.scene__ground { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--scene-top) + var(--scene-h) - 40px); z-index: -1; background: #5D6A45; }
.scene__layer { position: absolute; top: var(--scene-top); left: 0; right: 0; height: var(--scene-h); pointer-events: none; }
.scene__layer--back { z-index: 0; }
.scene__layer--front { z-index: 3; transform-origin: 70% 100%; }
.scene__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scene__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* each parallax plane is its own element (its own GPU layer while moving) */
.scene__layer .plane, .scene__layer .scene__static { position: absolute; inset: 0; }
.scene__layer .plane > svg, .scene__layer .scene__static > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene.is-moving .scene__layer .plane { will-change: transform; }
.scene { contain: layout paint; }
/* Scroll-driven hold + parallax (hero.js sets --hold, --span, --shift; see its comments).
   The ease-out cubic matches the JS fallback: speed falls smoothly to zero at the end of --span. */
@supports (animation-timeline: scroll()) {
  .scene.is-sda,
  .scene.is-sda .plane,
  .scene.is-sda [data-beat-one] {
    animation-duration: auto; animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
    animation-timeline: scroll(root); animation-range: 0px var(--span, 1px);
  }
  .scene.is-sda { animation-name: scene-hold; }
  .scene.is-sda .plane { animation-name: plane-rise; }
  .scene.is-sda [data-beat-one] {
    animation-name: copy-rise, copy-fade;
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1), linear;
    animation-timeline: scroll(root), scroll(root);
    animation-range: 0px var(--span, 1px), 0px calc(var(--span, 1px) * 0.35);
  }
  .scene.is-sda .scroll-cue { animation: cue-fade linear both; animation-timeline: scroll(root); animation-range: 0px 60px; }
}
@keyframes scene-hold { from { transform: none; } to { transform: translate3d(0, var(--hold, 0px), 0); } }
@keyframes plane-rise { from { transform: none; } to { transform: translate3d(0, var(--shift, 0px), 0); } }
@keyframes copy-rise { from { transform: none; } to { transform: translate3d(0, var(--copy-shift, 0px), 0); } }
@keyframes copy-fade { to { opacity: 0; } }
@keyframes cue-fade { to { opacity: 0; visibility: hidden; } }

.scene__veil { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--scene-top) + var(--scene-h)); z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(247, 242, 231, 0.9) 0%, rgba(247, 242, 231, 0.55) 40%, rgba(247, 242, 231, 0) 60%); -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 78%); mask-image: linear-gradient(180deg, #000 50%, transparent 78%); }
/* Fine paper grain over the whole illustration: a static tile, rasterised once, so it costs nothing while the layers move */
.scene__grain { position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px; opacity: 0.32; mix-blend-mode: multiply; }
.scene__copy { position: relative; z-index: 2; margin-top: var(--scene-top); height: var(--scene-h); display: flex; align-items: center; padding-bottom: clamp(5rem, 16vh, 9rem); }
.scene__beat { display: flex; flex-direction: column; gap: var(--space-5); max-width: 640px; will-change: transform, opacity; }
.scene__title { margin: 0; font-family: var(--font-display); font-size: var(--text-mega); font-weight: 600; line-height: 0.92; letter-spacing: -0.02em; color: var(--text-strong); text-wrap: balance; }
.scene__title em { font-style: italic; font-weight: 500; color: var(--forest-700); }
.scene__text { font-size: var(--text-md); color: var(--stone-700); max-width: 44ch; }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(14px, 3vh, 28px); z-index: 4; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247, 242, 231, 0.9); transition: opacity 200ms var(--ease-out);
}
.scroll-cue .icon { width: 20px; height: 20px; animation: cue-bounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .icon { animation: none; } }

/* ---------- What I do (tap a service to blend the watercolour; see assets/js/work.js) ----------
   Painting on the left, services on the right. The paintings' paper has been made transparent
   (colour-to-alpha), so the paint sits straight on the page. */
.work { background: var(--surface-page); padding: var(--section-y) 0; }
.work__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.work__art { position: relative; margin: 0; aspect-ratio: 1024 / 559; isolation: isolate; }   /* centred; work.js keeps the list a constant height so it never moves */
/* grounding: a soft warm shadow on the "ground" beneath the painting */
.work__art::after { content: ""; position: absolute; z-index: -1; left: 14%; right: 12%; bottom: 3%; height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(92, 78, 44, 0.22), rgba(92, 78, 44, 0) 72%); pointer-events: none; }
.work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 900ms var(--ease-out); }
.work__art[data-state="survey"] [data-img="survey"],
.work__art[data-state="reduction"] [data-img="reduction"],
.work__art[data-state="pollard"] [data-img="pollard"],
.work__art[data-state="felled"] [data-img="felled"] { opacity: 1; }
.work__copy { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.work__lead { color: var(--text-muted); max-width: 46ch; font-size: var(--text-md); }
.work__steps { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--border-default); }
.work__step { border-bottom: 1px solid var(--border-default); }
.work__name {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 600; line-height: 1.1; color: var(--stone-400);
  transition: color 160ms var(--ease-out);
}
.work__name::after { content: "+"; font-family: var(--font-label); font-size: 1.1rem; font-weight: 400; color: var(--honey-700); transition: transform 220ms var(--ease-out); }
.work__step.is-active .work__name { color: var(--forest-900); }
.work__step.is-active .work__name::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .work__name:hover { color: var(--forest-700); } }
.work__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.work__detail > div { overflow: hidden; }
.work__step.is-active .work__detail { grid-template-rows: 1fr; }
.work__detail p { color: var(--text-body); max-width: 50ch; font-size: var(--text-md); margin-bottom: var(--space-3); }
.work__step.is-active .work__detail > div { padding-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .work__img { transition-duration: 200ms; } }

/* ---------- Contract (dark split band) ---------- */
.contract__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.contract__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.contract__intro .lead { margin: 0 0 var(--space-2); }
.contract__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contract__tiles li { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 236, 196, 0.07), rgba(255, 236, 196, 0.02)); border: 1px solid rgba(232, 200, 140, 0.2); }
.contract__tiles .icon { width: 22px; height: 22px; color: var(--honey-300); margin-bottom: 10px; }
.contract__tiles strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--paper); line-height: 1.2; }
.contract__tiles span { font-size: var(--text-sm); color: rgba(247, 242, 231, 0.66); }
.contract .lead { color: rgba(247, 242, 231, 0.74); margin-top: var(--space-4); }

/* ---------- Photo frames (placeholders until real photos are added) ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-leaf);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(239, 227, 200, 0.8), transparent 60%),
    linear-gradient(160deg, var(--honey-100), var(--leaf-300) 70%, var(--leaf-500));
  display: grid; place-items: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .photo__mark { width: 30%; height: auto; object-fit: contain; opacity: 0.2; filter: saturate(0.6); }
.photo__label {
  position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86); font-family: var(--font-label); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--forest-800);
}
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--square { aspect-ratio: 1 / 1; }

/* ---------- Trust strip ---------- */
.trust { background: var(--forest-900); color: rgba(247, 242, 231, 0.72); }
.trust__list { list-style: none; display: flex; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) 0; }
.trust__item { display: flex; align-items: center; gap: 12px; font-size: var(--text-sm); line-height: 1.35; }
.trust__item .icon { color: var(--honey-300); width: 26px; height: 26px; }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--paper); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); border-top: 2px solid var(--border-subtle); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -15px; left: 0; padding-right: 12px; background: var(--surface-card);
  font-family: var(--font-label); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.1em; color: var(--leaf-600);
}
.section--tint .step::before { background: var(--surface-tint); }
.step h3 { font-size: var(--text-md); }
.step p { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--honey-100); color: var(--forest-800); margin-top: 1px; }
.checks strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--forest-900); font-weight: 600; }
.checks span { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Before / after gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.ba { display: flex; flex-direction: column; gap: var(--space-3); }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius-lg); overflow: hidden; }
.ba__pair .photo { border-radius: 0; aspect-ratio: 3 / 4; }
.ba__pair .photo:last-child { background: linear-gradient(160deg, var(--leaf-50), var(--leaf-100) 60%, var(--leaf-300)); }
.ba__caption { font-size: var(--text-sm); }
.ba__caption strong { font-family: var(--font-display); color: var(--forest-900); }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.review__stars { display: flex; gap: 2px; color: var(--leaf-600); letter-spacing: 0.1em; font-size: var(--text-md); }
.review__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.review__text { flex: 1; color: var(--text-body); }
.review__who { font-family: var(--font-label); font-size: var(--text-sm); font-weight: 600; color: var(--forest-900); }
.review__who span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-muted); }
.reviews-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: var(--space-7); }
.reviews .section-heading { margin-bottom: var(--space-5); }
.reviews [data-reviews-grid]:empty { display: none; }
.reviews [data-reviews-grid]:empty + .reviews-foot { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__q {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); color: var(--forest-900);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-800); font-size: 1.25rem; font-weight: 500; transition: transform var(--dur-base) var(--ease-out); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 56px 24px 0; color: var(--text-body); }
.faq__a p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--forest-900); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4.5rem, 10vw, 7.5rem); }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
.cta-band__mark { position: absolute; right: 4%; top: 50%; width: 380px; transform: translateY(-50%); opacity: 0.07; pointer-events: none; }
.cta-band h2 { color: var(--paper); font-size: var(--text-3xl); }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 10px; max-width: 48ch; }
.cta-band__actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-width: 760px; margin-inline: auto; text-align: center; }
.page-hero__inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--honey-500); }
.page-hero__inner .lead { margin-inline: auto; }
.page-hero__inner .hero__actions { justify-content: center; }
.page-hero h1 { font-size: var(--text-hero); line-height: 1; letter-spacing: var(--tracking-tighter); font-weight: 600; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: var(--space-9) 0; border-top: 1px solid var(--border-subtle); }
.service-block:nth-child(even) .service-block__media { order: 2; }
.service-block__body { display: flex; flex-direction: column; gap: var(--space-4); }
.service-block h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tighter); }
.service-block .checks { margin-top: var(--space-2); }
.service-block__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--leaf-50); border: 1px solid var(--leaf-100); font-size: var(--text-xs); font-weight: 500; color: var(--forest-800); }
.tag .icon { width: 14px; height: 14px; }

/* ---------- Credentials ---------- */
.cred { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-dark); }
.cred .icon { color: var(--leaf-300); width: 28px; height: 28px; }
.cred h3 { font-size: var(--text-md); }
.cred p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.68); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.form-card__head { margin-bottom: var(--space-5); }
.form-card__title { font-size: var(--text-xl); }
.form-card__sub { margin-top: 6px; font-size: var(--text-sm); color: var(--text-muted); }
.form-grid { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-family: var(--font-label); font-size: var(--text-xs); font-weight: 600; color: var(--forest-900); letter-spacing: 0.02em; }
.field__label .req { color: var(--leaf-700); margin-left: 3px; }
.field__hint { font-size: var(--text-xs); color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--border-default); border-radius: var(--radius-md);
  background: var(--paper); font: inherit; font-size: 16px; color: var(--stone-900);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf-600); background: #fff; box-shadow: var(--focus-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; float: left; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: 9px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); background: var(--paper); font-size: var(--text-sm); cursor: pointer; transition: all var(--dur-fast); }
.chip input:checked + span { background: var(--forest-800); border-color: var(--forest-800); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }

.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--leaf-500); border-radius: var(--radius-md); background: var(--leaf-50); cursor: pointer; transition: background var(--dur-fast); }
.upload:hover { background: var(--leaf-100); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .icon { color: var(--forest-800); }
.upload strong { display: block; font-family: var(--font-label); font-size: var(--text-sm); color: var(--forest-900); }
.upload span { font-size: var(--text-xs); color: var(--text-muted); }

.form-fineprint { font-size: var(--text-xs); color: var(--text-muted); text-align: center; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 8px; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-800); }
.form-success__title { font-size: var(--text-xl); }

/* ---------- Contact aside ---------- */
.contact-rows { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.contact-row { display: flex; align-items: center; gap: 16px; color: inherit; }
.contact-row__icon { width: 48px; height: 48px; flex: none; border-radius: 14px 4px 14px 4px; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-800); }
.contact-row small { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.contact-row strong { font-family: var(--font-display); color: var(--forest-900); font-size: var(--text-md); }

/* ---------- Portal (payments) ---------- */
.portal { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; max-width: 1040px; }
.portal__side { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-xl); background: rgba(232, 214, 170, 0.28); border: 1px solid var(--border-subtle); }
.portal__title { font-size: var(--text-xl); }
.portal__side .checks { margin-top: var(--space-5); }
.portal__side .checks span { display: block; }
.portal__help { margin-top: auto; padding-top: var(--space-6); display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); color: var(--text-muted); border-top: 1px solid var(--border-subtle); }
.portal__help strong { color: var(--forest-900); font-family: var(--font-display); font-size: 1.1rem; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--leaf-50); border: 1px solid var(--leaf-100); font-size: var(--text-sm); }
.notice .icon { color: var(--leaf-700); width: 20px; height: 20px; margin-top: 1px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--text-lg); margin: var(--space-7) 0 var(--space-3); }
.prose p, .prose ul { margin-bottom: var(--space-3); }
.prose ul { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: rgba(255, 255, 255, 0.66); padding: var(--space-10) 0 var(--space-6); font-size: var(--text-sm); }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--space-7); }
.site-footer__about p { margin-top: var(--space-4); max-width: 34ch; }
.site-footer h4 { font-size: var(--text-xs); letter-spacing: var(--tracking-mega); text-transform: uppercase; color: var(--honey-300); margin-bottom: var(--space-4); font-weight: 500; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); transition: color var(--dur-fast); }
.site-footer a:hover { color: #fff; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: var(--space-9); padding-top: var(--space-5); border-top: 1px solid var(--border-dark); font-size: var(--text-xs); color: rgba(255, 255, 255, 0.5); }

/* ---------- Scroll reveals (JS-only; never hidden without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust__list { display: grid; grid-template-columns: repeat(2, max-content); justify-content: space-evenly; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; justify-content: stretch; }
}
@media (max-width: 960px) {
  .work__name { padding: 12px 0; font-size: 1.4rem; }
  .work__copy { gap: var(--space-3); }
  .work__name { padding: 10px 0; font-size: 1.35rem; }
  .contract__inner { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__inner, .split, .service-block, .portal { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block__media { order: 0; }
  .hero__visual { max-width: 480px; }
  .hero__visual .photo { aspect-ratio: 5 / 4; }
  .hero__badge { left: 16px; bottom: 16px; }
  .grid-3, .gallery { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Phone art direction: the scene sits in the lower part of the frame, reframed on the climber + oak,
     and the type gets clean sky above it instead of sitting over the crown. */
  /* Fills the screen on phones, but stops growing on very tall, narrow windows so no gap opens above the scene. */
  .scene__sticky { --scene-h: 91vw; --hero-h: min(max(560px, calc(var(--lock-h, 100svh) - var(--header-h, 73px))), calc(var(--scene-h) * 2.3)); }
  .scene__ground { top: auto; height: calc(8% + 30px); }
  .scene__layer { top: auto; bottom: 8%; height: var(--scene-h); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .scene__copy { z-index: 4; }
  .scene__veil { display: none; }
  .scene .hero__actions .btn--outline { display: none; }
  .scene__copy { margin-top: 0; height: auto; align-items: flex-start; padding-top: 2rem; padding-bottom: 0; }
  .scene__title { font-size: clamp(2.7rem, 12vw, 3.4rem); }
  .scene__text { font-size: var(--text-base); }
  .header-phone { padding-left: 14px; }
  .header-phone__num { display: none; }
  .grid-3, .grid-2, .gallery, .form-row { grid-template-columns: 1fr; }
  .trust__list { display: grid; grid-template-columns: repeat(2, max-content); justify-content: space-evenly; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; justify-content: stretch; }
  .faq__a { padding-right: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
}


/* =====================================================================
   Illustrated finish: carries the hero's golden-hour look through the site.
   Paper grain on light sections, warm light on dark ones, rolling-hill edges.
   (Grain and hills are tiny static tiles, so they cost nothing while scrolling.)
   ===================================================================== */
:root {
  --paper: #F6EFE2;
  --surface-page: #F6EFE2;
  --surface-card: #FBF6EC;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97  0 0 0 0 0.93  0 0 0 0 0.82  0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background-color: var(--paper); background-image: var(--grain); background-size: 220px; }

/* light sections: paper with a faint warm glow from the top */
.section--light, .work { background: var(--grain), var(--surface-page); background-size: 220px, auto; }
.section--white { background-image: var(--grain), linear-gradient(180deg, #FBF6EC 0%, #F6EDDB 100%); background-size: 220px, auto; }

/* dark greens: deep forest with a low warm light and a little grain */
.trust { background-image: var(--grain-light), linear-gradient(180deg, #25331F 0%, #1E2A1A 100%); background-size: 220px, auto; border-top: 1px solid rgba(232, 200, 140, 0.18); }
.section--dark { background-image: var(--grain-light), radial-gradient(70% 90% at 12% 0%, rgba(255, 205, 130, 0.13), rgba(255, 205, 130, 0) 60%), linear-gradient(180deg, #243220 0%, #1C2719 100%); background-size: 220px, auto, auto; }

/* quote band: golden sun glow, hills along the bottom */
.cta-band {
  background-image: var(--grain-light), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 V70 C 180 44, 360 60, 560 52 S 900 30, 1200 50 V140 Z' fill='%233C4F38' opacity='0.35'/%3E%3Cpath d='M0 140 V100 C 220 82, 480 96, 720 88 S 1040 72, 1200 84 V140 Z' fill='%231F2B1C' opacity='0.6'/%3E%3C/svg%3E"),
    radial-gradient(55% 90% at 86% 18%, rgba(255, 214, 140, 0.30), rgba(255, 214, 140, 0) 62%),
    linear-gradient(160deg, #2E3D2B 0%, #1E2A1A 100%);
  background-size: 220px, 100% 40%, auto, auto;
  background-position: 0 0, bottom, 0 0, 0 0;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

/* inner page headers: a hazy Cotswold skyline under the title */
.page-hero {
  position: relative; padding-bottom: clamp(6rem, 12vw, 9rem);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 170' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0.3' stop-color='%23D8CFAA' stop-opacity='0.75'/%3E%3Cstop offset='1' stop-color='%23D8CFAA' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0.45' stop-color='%23BDBF96' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%23BDBF96' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 170 V70 C 200 40, 420 62, 620 50 S 1000 22, 1220 44 S 1400 58, 1440 50 V170 Z' fill='url(%23a)'/%3E%3Cpath d='M0 170 V102 C 240 80, 460 96, 700 88 S 1080 66, 1300 84 S 1420 92, 1440 90 V170 Z' fill='url(%23b)'/%3E%3C/svg%3E"), var(--grain), radial-gradient(60% 120% at 78% 10%, rgba(255, 230, 175, 0.55), rgba(255, 230, 175, 0) 65%), linear-gradient(180deg, #F1E3C4 0%, #F6EFE2 85%);
  background-size: 100% clamp(70px, 10vw, 140px), 220px, auto, auto;
  background-position: bottom, 0 0, 0 0, 0 0; background-repeat: no-repeat, repeat, no-repeat, no-repeat;
}

/* footer rises out of the page as a line of dark hills */
.site-footer { position: relative; background-image: var(--grain-light), linear-gradient(180deg, #1A2419 0%, #141C13 100%); background-size: 220px, auto; margin-top: 92px; }
/* the hills are an inline svg (build.py footer_hills): stretchy hills, fixed-size tiny trees */
.site-footer__hills { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); display: block; overflow: visible; pointer-events: none; }
.site-footer__hills .ft-back { fill: #2A3826; color: #2A3826; opacity: 0.92; }
.site-footer__hills .ft-front { fill: #1A2419; color: #1A2419; }
@media (max-width: 640px) { .site-footer__hills .ft-x { display: none; } }   /* half as many trees on phones */

/* buttons: a touch of depth and warmth */
.btn--primary { background: linear-gradient(180deg, #36482F 0%, #26341F 100%); box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12), 0 8px 18px -10px rgba(30, 42, 26, 0.7); }
.btn--primary:hover { background: linear-gradient(180deg, #3F5437 0%, #2C3B25 100%); box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.16), 0 12px 24px -12px rgba(30, 42, 26, 0.75); }
.btn--honey { background: linear-gradient(180deg, #EAD3A0 0%, #D9BC7E 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -10px rgba(0, 0, 0, 0.5); }
.btn--outline { background: rgba(251, 246, 236, 0.5); }

/* photo placeholders: warm sky + hills instead of a flat grey box */
.photo { background-image: var(--grain), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 V90 C 120 60, 240 80, 360 70 S 520 50, 600 64 V200 Z' fill='%23BDBF96' opacity='0.7'/%3E%3Cpath d='M0 200 V140 C 160 118, 320 134, 460 126 S 560 120, 600 124 V200 Z' fill='%2393A06B' opacity='0.75'/%3E%3C/svg%3E"), radial-gradient(70% 80% at 70% 20%, rgba(255, 228, 170, 0.7), rgba(255, 228, 170, 0) 70%), linear-gradient(180deg, #EFE2C3 0%, #E6DCC0 100%); background-size: 220px, 100% 55%, auto, auto; background-position: 0 0, bottom, 0 0, 0 0; background-repeat: repeat, no-repeat, no-repeat, no-repeat; box-shadow: inset 0 0 0 1px rgba(90, 70, 40, 0.08); }

/* cards + forms sit on warm paper with a soft lift */
.form-card, .review, .cred { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -28px rgba(60, 45, 20, 0.35); }
.form-card, .review { background-color: #FCF8F0; }
.field input, .field select, .field textarea { background: #FFFDF8; border-color: #DDD2BC; }



/* =====================================================================
   Phones: simplified. Fewer words per section, no decorative extras, tighter rhythm.
   ===================================================================== */
@media (max-width: 640px) {
  .section, .work { padding: 3.25rem 0; }
  .section-heading { margin-bottom: var(--space-6); }
  .section-heading__title { font-size: 2.1rem; }
  .lead { font-size: var(--text-base); }

  /* hero: just headline, line, one button */
  .scroll-cue { display: none; }
  .scene .eyebrow { display: none; }

  /* credentials: four short labels in a tidy 2 × 2, no sub-lines */
  .trust__list { gap: 16px 20px; padding: 20px 10px; justify-content: space-between; }
  .trust__item { gap: 10px; }
  .trust__item .icon { width: 20px; height: 20px; }
  .trust__item > span { font-size: 0; }
  .trust__item strong { font-size: 1.02rem; line-height: 1.2; }

  /* what I do: painting, then the list */
  .work__grid { gap: var(--space-3); }
  .work__lead { display: none; }
  .work__name { padding: 12px 0; font-size: 1.35rem; }
  .work__detail p { font-size: var(--text-base); }

  /* contract: heading, one line, button */
  .contract__inner { gap: var(--space-6); }
  .contract__tiles { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(232, 200, 140, 0.18); }
  .contract__tiles li { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; row-gap: 2px; padding: 14px 0; background: none; border: 0; border-radius: 0; border-bottom: 1px solid rgba(232, 200, 140, 0.18); }
  .contract__tiles .icon { grid-row: span 2; margin: 2px 0 0; width: 20px; height: 20px; }
  .contract__tiles strong { font-size: 1.15rem; }
  .contract__intro .btn { width: 100%; justify-content: center; }
  .contract .section-heading__title { font-size: 2rem; }

  /* safe pair of hands: no placeholder photo, just the promise */
  .checks { gap: var(--space-3); margin-top: var(--space-5); }
  .home-about .checks span { display: none; }

  /* quote panel */
  .cta-band { padding: 3rem 0 4rem; }
  .cta-band__inner { gap: var(--space-5); }
  .cta-band h2 { font-size: 2rem; }
  .cta-band__mark { display: none; }
  .cta-band__actions .btn { flex: 1 1 auto; }

  /* reviews + footer */
  .reviews .section-heading { margin-bottom: var(--space-4); }
  .site-footer { padding-top: var(--space-8); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .site-footer__about { grid-column: 1 / -1; }
  .site-footer__base { flex-direction: column; gap: 6px; }
}

/* certificate list (about page) */
.certs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.certs li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 10px; align-items: baseline; color: var(--text-body); font-size: var(--text-sm); }
.certs b { font-family: var(--font-label); font-weight: 600; letter-spacing: 0.06em; color: var(--honey-700); }

/* about page story */
.about-story .split { align-items: center; }
.prose-block { display: flex; flex-direction: column; gap: var(--space-4); }
.prose-block p { font-size: var(--text-md); line-height: 1.7; color: var(--text-body); max-width: 60ch; }
.draft { background: rgba(232, 180, 80, 0.22); border-radius: 4px; padding: 0 4px; color: var(--honey-800, #7a5a1e); }

/* phone: a quiet "or call" line under the hero button (no sticky action bar) */
@media (max-width: 640px) {
  /* buttons sit at the bottom of the first screen (over the grass), then scroll away with the page */
  .scene__copy { height: 100%; align-items: stretch; padding-bottom: 22px; }   /* fixed: env(safe-area-inset-bottom) changes as Safari's toolbar collapses, which nudged the buttons */
  .scene__beat--one { flex: 1; width: 100%; gap: var(--space-4); }
  .scene .hero__actions { margin-top: auto; }
  .scene .hero__actions .btn { box-shadow: 0 10px 24px -10px rgba(20, 28, 18, 0.55); }
  .hero__call { display: block; align-self: center; margin-top: -4px; padding: 7px 14px; border-radius: 999px; font-size: var(--text-sm); color: var(--text-body); text-decoration: none; background: rgba(250, 245, 234, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hero__call strong { color: var(--forest-900); font-weight: 600; }
}

/* about page: qualifications under the heading, two columns (certificates left, the rest right) */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) clamp(2rem, 6vw, 5rem); }
.creds > li:first-child { grid-row: span 3; }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } .creds > li:first-child { grid-row: auto; } }

/* Phones: the hero doesn't animate, so don't promote it to GPU layers. On iOS, promoted layers
   (will-change) and backdrop blur inside a scrolling page can drift a frame behind the scroll,
   which made the hero buttons appear to shift slightly as you scrolled. */
@media (max-width: 640px) {
  .scene, .scene__beat { will-change: auto; }
  .hero__call { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 245, 234, 0.94); }
}

/* quote form: spam trap + error */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #F6E1DC; color: #8A2F22; font-size: var(--text-sm); }

/* layout pass fixes */
.page-hero--tight { padding-bottom: clamp(4.5rem, 9vw, 6.5rem); }                 /* contact: title clears the hills */
.about-story .photo { aspect-ratio: 4 / 3; }
.service-block:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }           /* photos the same size on both sides */
@media (max-width: 960px) { .service-block:nth-child(even) { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .contact-row strong { overflow-wrap: anywhere; }
}

/* reviews carousel: swipe on phones, arrows on desktop; hidden when there are no reviews */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .review { scroll-snap-align: start; margin: 0; }
.carousel__track:empty, .carousel__track:empty ~ .carousel__nav { display: none; }
.carousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-3); }
.carousel__nav[hidden] { display: none; }
.carousel__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--forest-900); cursor: pointer; }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__btn .icon { width: 18px; height: 18px; }
@media (max-width: 960px) { .carousel__track { grid-auto-columns: calc((100% - var(--space-5)) / 2); } }
@media (max-width: 640px) { .carousel__track { grid-auto-columns: 86%; } }
.review__text { margin: 0; }
.carousel[hidden] { display: none; }
/* one or two reviews: centre them rather than leaving gaps */
.carousel__track:has(> .review:only-child) { grid-auto-columns: min(620px, 100%); justify-content: center; }
.carousel__track:has(> .review:first-child:nth-last-child(2)) { justify-content: center; }

/* framed photos (Harry): a cream mount with a thin honey outline set behind and offset, like a hung print */
.photo--framed { position: relative; overflow: visible; padding: 10px; background: #FCF8F0; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 44px -26px rgba(48, 36, 16, 0.45); isolation: isolate; }
.photo--framed > img { border-radius: 1px; }
.photo--framed::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px); border: 1px solid var(--honey-500); border-radius: 3px; z-index: -1; pointer-events: none; }
.photo--framed::after { content: ""; position: absolute; inset: 10px; box-shadow: inset 0 0 0 1px rgba(35, 48, 33, 0.12); pointer-events: none; }
@media (max-width: 640px) { .photo--framed { padding: 7px; } .photo--framed::before { transform: translate(6px, 6px); } .photo--framed::after { inset: 7px; } }

/* Harry's photo: clean, softly rounded, gentle shadow (replaces the framed mount) */
.photo--soft { border-radius: 10px; box-shadow: 0 24px 48px -28px rgba(48, 36, 16, 0.5); }

/* Harry's photo, framed: slim cream mount, fine honey edge, soft shadow */
.photo--mount { padding: 9px; background: #FCF8F0; border: 1px solid rgba(191, 150, 88, 0.55); border-radius: 6px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 50px -30px rgba(48, 36, 16, 0.55); }
.photo--mount > img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(35, 48, 33, 0.10); }
@media (max-width: 640px) { .photo--mount { padding: 6px; } }

/* Harry's photo: leaf shape echoing the logo (two softly rounded corners), no mount */
.photo--leaf { border-radius: clamp(64px, 25%, 120px) 10px clamp(64px, 25%, 120px) 10px; overflow: hidden; box-shadow: 0 26px 48px -28px rgba(48, 36, 16, 0.55); background: none; }
.photo--leaf > img { border-radius: inherit; }

/* About story: text wraps around the photo, magazine-style */
.story { }
.story .section-heading__title { margin-bottom: var(--space-5); }
.story__body::after { content: ""; display: block; clear: both; }
.story__photo { float: left; width: min(46%, 440px); margin: 6px clamp(1.5rem, 3vw, 2.5rem) var(--space-4) 0; shape-outside: margin-box; }
.story__body p { font-size: var(--text-md); line-height: 1.7; color: var(--text-body); margin: 0 0 var(--space-4); }
@media (max-width: 760px) { .story__photo { float: none; width: 100%; margin: 0 0 var(--space-5); } }

/* Harry's photo: thin cream line drawn just inside the edge, softly rounded, gentle shadow */
.photo--inset { position: relative; border-radius: 8px; overflow: hidden; background: none; box-shadow: 0 24px 46px -28px rgba(48, 36, 16, 0.55); }
.photo--inset::after { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(255, 253, 246, 0.9); border-radius: 4px; pointer-events: none; }
@media (max-width: 640px) { .photo--inset::after { inset: 9px; } }

/* About story: photo + first two paragraphs side by side, the rest full width underneath */
.story__top { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; margin-bottom: var(--space-5); }
.story__top .story__photo { float: none; width: auto; margin: 0; }
.story__side p, .story__rest p { font-size: var(--text-md); line-height: 1.7; color: var(--text-body); margin: 0 0 var(--space-4); }
.story__side p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .story__top { grid-template-columns: 1fr; } }

/* More room under the About story heading */
.story .section-heading__title { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Justified text for longer passages (hyphenation keeps the spacing even, especially on phones) */
.story__side p, .story__rest p,
.service-block__body > p,
.faq__a p,
.prose p, .prose li {
  text-align: justify; text-justify: inter-word;
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
}

/* Every page's content spans the same width as the header (--container-max) */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-layout .section-heading { margin-bottom: 0; position: sticky; top: 110px; }
.container.prose { max-width: var(--container-max); column-count: 2; column-gap: clamp(2rem, 5vw, 4.5rem); }
.container.prose h2 { break-after: avoid; }
.container.prose p, .container.prose ul { break-inside: avoid; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-heading { position: static; margin-bottom: var(--space-5); }
  .container.prose { column-count: 1; }
}
.page-hero__inner { max-width: var(--container-max); }
.page-hero__inner .lead { max-width: 62ch; }
.container.section-heading { max-width: var(--container-max); }   /* 404: same width as every other page */

/* Contract band on a light background (it now sits after the quote band, before the dark footer) */
.contract--light .lead { color: var(--text-body); }
.contract--light .eyebrow { color: var(--honey-700); }
.contract--light .contract__tiles li { background: #FCF8F0; border-color: rgba(191, 150, 88, 0.35); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 34px -26px rgba(60, 45, 20, 0.35); }
.contract--light .contract__tiles strong { color: var(--forest-900); }
.contract--light .contract__tiles span { color: var(--text-muted); }
.contract--light .contract__tiles .icon { color: var(--honey-700); }
@media (max-width: 640px) { .contract--light .contract__tiles { border-top-color: var(--border-default); } .contract--light .contract__tiles li { background: none; box-shadow: none; border-bottom: 1px solid var(--border-default); } }

/* What I do: name the stage the painting shows */
.work__caption { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 2; padding: 6px 14px; border-radius: 999px; background: rgba(252, 248, 240, 0.92); border: 1px solid rgba(191, 150, 88, 0.4); font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-900); white-space: nowrap; box-shadow: 0 8px 18px -12px rgba(48, 36, 16, 0.5); transition: opacity 300ms; }

/* "The person up your tree" on dark green */
.home-about .lead { color: rgba(247, 242, 231, 0.82); }
.home-about .checks strong { color: var(--paper); }
.home-about .checks span { color: rgba(247, 242, 231, 0.62); }
.home-about .checks .icon { background: rgba(232, 200, 140, 0.16); color: var(--honey-300); }
.home-about .link-arrow { color: var(--honey-300); }
.home-about .photo--inset { box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.55); }

/* Areas covered */
.site-footer__areas { margin-top: var(--space-3); max-width: 46ch; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.55); }
.areas { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.areas__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--forest-900); margin-bottom: var(--space-2); }
.areas p { color: var(--text-body); line-height: 1.7; }

/* Desktop: keep the headline on two lines ("Tree surgery," / "rooted in expertise.").
   The italic line runs wider than the copy column, so it scales with the viewport instead of wrapping. */
@media (min-width: 900px) {
  .scene__title { width: max-content; font-size: clamp(3.2rem, 6.2vw, 5.5rem); }
  .scene__title em { white-space: nowrap; }
  /* One column, as wide as the headline: the intro runs the full measure under it, set larger so the
     two read as a pair, and its right edge lines up with the headline */
  .scene__beat { width: min-content; min-width: 30rem; max-width: none; gap: var(--space-6); }
  .scene__text { max-width: none; font-size: clamp(1.1rem, 1.3vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
}
