/* ==========================================================================
   art.css — Builder C: intro overlay, hero landscape, hero slogan,
   before/after slider.
   Class prefixes: .intro*, .hero-art*, .hero-slogan*, .ba-*   (plus html.intro-lock)
   All colours derive from tokens.css. The illustration palette below is
   mixed from the tokens with color-mix(); the hex values are exact sRGB
   fallbacks of the same mixes for older browsers.
   ========================================================================== */

/* ---- Illustration palette (fallback hex = same sRGB mix) ---- */
:root {
  --art-hill-1: #c2d4bd;
  --art-hill-2: #88a88a;
  --art-hill-3: #678d6f;
  --art-lawn-1: #81a55a;
  --art-lawn-2: #537e51;
  --art-lawn-3: #315c42;
  --art-conifer: #254e37;
  --art-conifer-hl: #638b54;
  --art-leyland: #366447;
  --art-leyland-hl: #7a9f58;
  --art-bux-1: #7da159;
  --art-birch-1: #b3cc87;
  --art-birch-2: #7fa083;
  --art-birch-3: #dbeba1;
  --art-mulch: #4e3a26;
  --art-mulch-rim: #6d472e;
  --art-gravel-1: #a6a392;
  --art-gravel-3: #ddba9f;
  --art-edge: #868777;
  --art-lav-2: #7d76a7;
  --art-lav-3: #c2b9dd;
  --art-lav-leaf: #9bb0a4;
  --art-lav-leaf-hl: #c1d1bc;
  --art-lav-stem: #75997b;
  --art-yucca-1: #a5bfa3;
  --art-yucca-2: #6c9173;
  --art-grass-2: #6a9255;
  --art-wood: #c4b099;
  --art-wood-2: #73492f;
  --art-leaf-gold: #dfe499;
  --art-sky-b1: #d2d2ba;
  --art-sky-b2: #f1ebde;
  --art-far-b: #c9cdb4;
  --art-far-tree-b: #b8c5ab;
  --art-board-b: #b7bca4;
  --art-board-gap: #4e3a26;
  --art-paver: #f1eadb;
  --art-dry-1: #cdc3aa;
  --art-dry-2: #bbb196;
  --art-dirt: #b8a18a;
  --art-dirt-2: #73492f;
  --art-weed-1: #92a489;
  --art-weed-2: #6c8b6e;
  --art-weed-dead: #ddbca1;
  --art-thistle: #646286;
  --art-bush-1: #2b4e38;
  --art-bush-2: #526856;
  --art-twig: #573d29;
  --art-rubble-1: #bcb6a3;
  --art-rubble-2: #8c8d7d;
  --art-puddle: #4a5f4e;
  --art-shadow: rgba(15, 31, 23, 0.16);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --art-hill-1: color-mix(in srgb, var(--c-sage) 42%, var(--c-mint));
    --art-hill-2: color-mix(in srgb, var(--c-sage) 80%, var(--c-moss));
    --art-hill-3: color-mix(in srgb, var(--c-sage) 45%, var(--c-moss));
    --art-lawn-1: color-mix(in srgb, var(--c-moss) 55%, var(--c-lime));
    --art-lawn-2: color-mix(in srgb, var(--c-moss) 85%, var(--c-lime));
    --art-lawn-3: color-mix(in srgb, var(--c-moss) 70%, var(--c-forest));
    --art-conifer: color-mix(in srgb, var(--c-moss) 40%, var(--c-forest));
    --art-conifer-hl: color-mix(in srgb, var(--c-moss) 75%, var(--c-lime));
    --art-leyland: color-mix(in srgb, var(--c-moss) 80%, var(--c-forest-2));
    --art-leyland-hl: color-mix(in srgb, var(--c-moss) 60%, var(--c-lime));
    --art-bux-1: color-mix(in srgb, var(--c-moss) 58%, var(--c-lime));
    --art-birch-1: color-mix(in srgb, var(--c-sage) 60%, var(--c-lime));
    --art-birch-2: color-mix(in srgb, var(--c-sage) 70%, var(--c-moss));
    --art-birch-3: color-mix(in srgb, var(--c-lime) 50%, var(--c-mint));
    --art-mulch: color-mix(in srgb, var(--c-clay) 35%, var(--c-ink));
    --art-mulch-rim: color-mix(in srgb, var(--c-clay) 52%, var(--c-ink));
    --art-gravel-1: color-mix(in srgb, var(--c-sand) 70%, var(--c-ink));
    --art-gravel-3: color-mix(in srgb, var(--c-clay) 30%, var(--c-sand));
    --art-edge: color-mix(in srgb, var(--c-sand) 55%, var(--c-ink));
    --art-lav-2: color-mix(in srgb, var(--c-lavender) 78%, var(--c-ink));
    --art-lav-3: color-mix(in srgb, var(--c-lavender) 60%, var(--c-paper));
    --art-lav-leaf: color-mix(in srgb, var(--c-sage) 82%, var(--c-lavender));
    --art-lav-leaf-hl: color-mix(in srgb, var(--c-sage) 60%, var(--c-paper));
    --art-lav-stem: color-mix(in srgb, var(--c-sage) 60%, var(--c-moss));
    --art-yucca-1: color-mix(in srgb, var(--c-sage) 85%, var(--c-mint));
    --art-yucca-2: color-mix(in srgb, var(--c-sage) 50%, var(--c-moss));
    --art-grass-2: color-mix(in srgb, var(--c-moss) 70%, var(--c-lime));
    --art-wood: color-mix(in srgb, var(--c-sand) 70%, var(--art-wood-2));
    --art-wood-2: color-mix(in srgb, var(--c-clay) 55%, var(--c-ink));
    --art-leaf-gold: color-mix(in srgb, var(--c-sand) 50%, var(--c-lime));
    --art-sky-b1: color-mix(in srgb, var(--c-sand) 72%, var(--c-sage));
    --art-sky-b2: color-mix(in srgb, var(--c-cream) 80%, var(--c-sand));
    --art-far-b: color-mix(in srgb, var(--c-sage) 40%, var(--c-sand));
    --art-far-tree-b: color-mix(in srgb, var(--c-sage) 62%, var(--c-sand));
    --art-board-b: color-mix(in srgb, var(--c-sand) 72%, var(--c-moss));
    --art-board-gap: color-mix(in srgb, var(--c-clay) 35%, var(--c-ink));
    --art-paver: color-mix(in srgb, var(--c-sand) 50%, var(--c-paper));
    --art-dry-1: color-mix(in srgb, var(--c-sand) 78%, color-mix(in srgb, var(--c-moss) 60%, var(--c-clay)));
    --art-dry-2: color-mix(in srgb, var(--c-sand) 62%, color-mix(in srgb, var(--c-moss) 60%, var(--c-clay)));
    --art-dirt: color-mix(in srgb, var(--c-sand) 60%, var(--art-wood-2));
    --art-dirt-2: color-mix(in srgb, var(--c-clay) 55%, var(--c-ink));
    --art-weed-1: color-mix(in srgb, var(--c-moss) 50%, var(--c-sand));
    --art-weed-2: color-mix(in srgb, var(--c-moss) 72%, var(--c-sand));
    --art-weed-dead: color-mix(in srgb, var(--c-sand) 72%, var(--c-clay));
    --art-thistle: color-mix(in srgb, var(--c-lavender) 60%, var(--c-ink));
    --art-bush-1: color-mix(in srgb, var(--c-moss) 62%, var(--c-ink));
    --art-bush-2: color-mix(in srgb, var(--c-sage) 48%, var(--c-ink));
    --art-twig: color-mix(in srgb, var(--c-clay) 40%, var(--c-ink));
    --art-rubble-1: color-mix(in srgb, var(--c-sand) 80%, var(--c-ink));
    --art-rubble-2: color-mix(in srgb, var(--c-sand) 58%, var(--c-ink));
    --art-puddle: color-mix(in srgb, var(--c-sage) 42%, var(--c-ink));
  }
}

/* ==========================================================================
   1. Intro overlay  ([data-intro] .intro — markup injected by art.js)
   Without JS it never shows. With JS it is a plain forest cover from the first
   paint until art.js takes over (no flash of the hero). A CSS failsafe hides
   it after 4s even if every script failed.
   ========================================================================== */
.intro {
  display: none;
}
.js .intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: block;
  overflow: hidden;
  background: var(--c-forest);
  pointer-events: auto;
  animation: intro-failsafe 0.45s var(--ease-out) 4s forwards;
}
.js .intro.intro--play {
  background: transparent;
  animation: none;
}
.js .intro.intro--leaving {
  pointer-events: none;
}
.js .intro.intro--skip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.js .intro.intro--done,
.no-js .intro,
.motion-failed .intro,
.reduced-motion .intro {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .intro {
    display: none !important;
  }
}
@keyframes intro-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Scroll lock while the intro plays. art.js sets --intro-sbw to the scrollbar
   width so the page does not shift when the scrollbar disappears/returns. */
html.intro-lock {
  overflow: hidden;
  padding-right: var(--intro-sbw, 0px);
}

.intro__curtain,
.intro__back {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.intro__back {
  background: var(--c-lime);
}
.intro__curtain {
  background: radial-gradient(120% 90% at 50% 40%, var(--c-forest-2) 0%, var(--c-forest) 68%);
}
.intro__lip {
  position: absolute;
  left: -10%;
  right: -10%;
  top: calc(100% - 1px);
  height: 16vh;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.intro__back .intro__lip {
  background: var(--c-lime);
}
.intro__curtain .intro__lip {
  background: var(--c-forest);
}
.intro__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 16px);
  padding: 24px;
  color: var(--c-on-dark);
  text-align: center;
}
.intro__mark {
  width: clamp(84px, 10vw, 132px);
  height: auto;
  overflow: visible;
}
.intro__ground {
  fill: none;
  stroke: var(--c-lime);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}
.intro__stem {
  fill: none;
  stroke: var(--c-cream);
  stroke-width: 4;
  stroke-linecap: round;
}
.intro__leaf {
  transform-box: fill-box;
}
.intro__leaf--l {
  fill: var(--c-sage);
  transform-origin: 100% 95%;
}
.intro__leaf--r {
  fill: var(--c-lime);
  transform-origin: 0% 100%;
}
.intro__vein {
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.5;
}
.intro__bud {
  fill: var(--c-lime);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.intro__word {
  display: flex;
  align-items: baseline;
  margin: 0;
  padding: 0.06em 0.14em 0.16em;
  overflow: hidden;
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 8vw, 6.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
}
.intro__char {
  display: inline-block;
}
.intro__em {
  display: inline-flex;
  font-style: italic;
  font-weight: 400;
  color: var(--c-lime);
}
.intro__space {
  display: inline-block;
  width: 0.26em;
}
.intro__tag {
  margin: 0;
  padding-left: 0.34em;
  font-family: var(--f-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

/* ==========================================================================
   Shared sprite (gradients, patterns, symbols) — invisible
   ========================================================================== */
.hero-art-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-art-defs symbol {
  overflow: visible;
}

/* Gradient stops */
.hero-art-stop-lawn1 { stop-color: var(--art-lawn-1); }
.hero-art-stop-lawn2 { stop-color: var(--art-lawn-2); }
.hero-art-stop-con1 { stop-color: var(--art-conifer-hl); }
.hero-art-stop-con2 { stop-color: var(--art-conifer); }
.hero-art-stop-con3 { stop-color: var(--c-forest); }
.hero-art-stop-ley1 { stop-color: var(--art-leyland-hl); }
.hero-art-stop-ley2 { stop-color: var(--art-leyland); }
.hero-art-stop-hedge1 { stop-color: var(--c-moss); }
.hero-art-stop-hedge2 { stop-color: var(--c-forest-2); }
.hero-art-stop-bux1 { stop-color: var(--art-bux-1); }
.hero-art-stop-bux2 { stop-color: var(--c-moss); }
.hero-art-stop-bux3 { stop-color: var(--c-forest-2); }
.hero-art-stop-sun1 { stop-color: var(--c-lime); stop-opacity: 0.42; }
.hero-art-stop-sun2 { stop-color: var(--c-lime); stop-opacity: 0; }
.hero-art-stop-skya1 { stop-color: var(--c-mint); }
.hero-art-stop-skya2 { stop-color: var(--c-cream); }
.hero-art-stop-skyb1 { stop-color: var(--art-sky-b1); }
.hero-art-stop-skyb2 { stop-color: var(--art-sky-b2); }
.hero-art-stop-dry1 { stop-color: var(--art-dry-1); }
.hero-art-stop-dry2 { stop-color: var(--art-dry-2); }
.hero-art-stop-glass1 { stop-color: var(--c-mint); }
.hero-art-stop-glass2 { stop-color: var(--art-hill-2); }

/* ---- Plant / scene fills (shared by hero and before/after) ---- */
.hero-art-shadow { fill: var(--art-shadow); }
.hero-art-sun { fill: var(--c-lime); opacity: 0.6; }
.hero-art-sunglow { fill: url(#vv-art-g-sun); }
.hero-art-hill1 { fill: var(--art-hill-1); }
.hero-art-hill2 { fill: var(--art-hill-2); }
.hero-art-hill3 { fill: var(--art-hill-3); }
.hero-art-lawn { fill: url(#vv-art-g-lawn); }
.hero-art-bank { fill: var(--art-lawn-3); }
.hero-art-stripe { fill: var(--c-paper); opacity: 0.07; }
.hero-art-ticks {
  fill: none;
  stroke: var(--art-lawn-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
}
.hero-art-hedge { fill: url(#vv-art-g-hedge); }
.hero-art-hedge-hl {
  fill: none;
  stroke: var(--art-conifer-hl);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.7;
}
.hero-art-hedge-tx {
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: 0.55;
}
.hero-art-conifer { fill: var(--cf, url(#vv-art-g-conifer)); }
.hero-art-conifer-hl { fill: var(--cfh, var(--art-conifer-hl)); opacity: 0.55; }
.hero-art-leyland { fill: var(--cf, url(#vv-art-g-leyland)); }
.hero-art-leyland-hl { fill: var(--cfh, var(--art-leyland-hl)); opacity: 0.5; }
.hero-art-conifer-tx {
  fill: none;
  stroke: var(--cft, var(--c-forest));
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.6;
}
.hero-art-birch-1 { fill: var(--art-birch-1); }
.hero-art-birch-2 { fill: var(--art-birch-2); }
.hero-art-birch-3 { fill: var(--art-birch-3); }
.hero-art-bark { fill: var(--c-paper); }
.hero-art-branch {
  fill: none;
  stroke: var(--c-paper);
  stroke-width: 3;
  stroke-linecap: round;
}
.hero-art-bark-mark {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.hero-art-buxus { fill: url(#vv-art-g-buxus); }
.hero-art-buxus-tx {
  fill: none;
  stroke: var(--art-bux-1);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.8;
}
.hero-art-lav-1 { fill: var(--c-lavender); }
.hero-art-lav-2 { fill: var(--art-lav-2); }
.hero-art-lav-hl { fill: var(--art-lav-3); opacity: 0.8; }
.hero-art-lav-leaf { fill: var(--art-lav-leaf); }
.hero-art-lav-leaf-sh { fill: var(--art-lav-stem); opacity: 0.55; }
.hero-art-lav-leaf-hl {
  fill: none;
  stroke: var(--art-lav-leaf-hl);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.8;
}
.hero-art-lav-stem {
  fill: none;
  stroke: var(--art-lav-stem);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hero-art-yucca-1 { fill: var(--art-yucca-1); }
.hero-art-yucca-2 { fill: var(--art-yucca-2); }
.hero-art-yucca-rib {
  fill: none;
  stroke: var(--c-paper);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.45;
}
.hero-art-grass-1 { fill: var(--c-moss); }
.hero-art-grass-2 { fill: var(--art-grass-2); }
.hero-art-wild-1,
.hero-art-wild-2 {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.hero-art-wild-1 { stroke: var(--art-weed-2); }
.hero-art-wild-2 { stroke: var(--art-weed-dead); }
.hero-art-wild-head { fill: var(--art-weed-dead); }
.hero-art-bed {
  fill: var(--art-mulch);
  stroke: var(--art-mulch-rim);
  stroke-width: 3;
}
.hero-art-path { fill: var(--c-sand); }
.hero-art-gravel { fill: url(#vv-art-p-gravel); }
.hero-art-gravel-1 { fill: var(--art-gravel-1); }
.hero-art-gravel-2 { fill: var(--c-paper); }
.hero-art-gravel-3 { fill: var(--art-gravel-3); }
.hero-art-edge {
  fill: none;
  stroke: var(--art-edge);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.hero-art-stone { fill: var(--c-paper); }
.hero-art-stone-sh { fill: var(--art-gravel-1); opacity: 0.55; }
.hero-art-peb1 { fill: var(--c-paper); }
.hero-art-peb2 { fill: var(--art-gravel-3); }
.hero-art-peb3 { fill: var(--c-clay); }
.hero-art-peb4 { fill: var(--art-lav-3); }
.hero-art-peb5 { fill: var(--art-gravel-1); }
.hero-art-peb6 { fill: var(--c-sage); }
.hero-art-lattice { fill: url(#vv-art-p-lattice); }
.hero-art-lattice-line {
  fill: none;
  stroke: var(--art-wood);
  stroke-width: 3;
}
.hero-art-trellis-frame {
  fill: none;
  stroke: var(--art-wood);
  stroke-width: 5;
}
.hero-art-trellis-post {
  fill: none;
  stroke: var(--art-wood-2);
  stroke-width: 5;
  stroke-linecap: round;
}
.hero-art-vine {
  fill: none;
  stroke: var(--c-moss);
  stroke-width: 3;
  stroke-linecap: round;
}
.hero-art-vine-leaf { fill: var(--art-grass-2); }
.hero-art-flower-1 { fill: var(--c-lavender); }
.hero-art-flower-2 { fill: var(--c-clay); }
.hero-art-flower-3 { fill: var(--c-paper); }

/* ==========================================================================
   2. Hero landscape (#hero-art.hero-art — A positions the box)
   ========================================================================== */
.hero-art {
  overflow: hidden;
  pointer-events: none;
}
.hero-art__layer {
  position: absolute;
  top: 0;
  left: -40px;
  width: calc(100% + 80px);
  max-width: none; /* main.css caps every svg at 100%, which would leave a bare strip on the right */
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-art__layer--sky {
  height: 64%;
}
.hero-art--live .hero-art__layer {
  will-change: transform;
}

/* Sun, birches and tree rings: one placement for phones/tablets, one for the
   two-column desktop hero (keeps them clear of the CTAs and value chips). */
.hero-art__wide {
  display: none;
}
@media (min-width: 1024px) {
  .hero-art__narrow {
    display: none;
  }
  .hero-art__wide {
    display: inline;
  }
}

/* One-shot grow-in targets (animated by art.js with the Web Animations API) */
.hero-art [data-grow] {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.hero-art [data-grow="stone"],
.hero-art [data-grow="bed"] {
  transform-origin: 50% 50%;
}

/* Idle life: sway from the base (starts once the grow-in has finished) */
.hero-art__sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.hero-art--alive .hero-art__sway {
  animation: hero-art-sway var(--st, 5s) ease-in-out var(--sd, 0s) infinite;
}
/* Phones: the near layer sways twice and settles (0%/100% is rotate(0), no snap),
   so it stops repainting; front-layer grass, clouds and birds keep the scene alive. */
@media (hover: none) and (max-width: 640px) {
  .hero-art--alive .hero-art__layer--near .hero-art__sway {
    animation-iteration-count: 2;
  }
}
.hero-art__sway--grass { --amp: 4.5deg; }
.hero-art__sway--lav { --amp: 3.2deg; }
.hero-art__sway--yucca { --amp: 1.6deg; }
@keyframes hero-art-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(var(--amp, 2.5deg));
  }
  70% {
    transform: rotate(calc(var(--amp, 2.5deg) * -0.7));
  }
}

/* Clouds: static positions are the mid-point of the drift */
.hero-art__cloud {
  position: absolute;
  display: block;
  width: clamp(110px, 13vw, 250px);
  opacity: 0.9;
  animation: hero-art-drift var(--cd, 160s) linear var(--cdel, 0s) infinite;
}
.hero-art__cloud svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--c-white);
}
.hero-art__cloud--1 {
  top: 10%;
  left: 18%;
  --cd: 220s;
  --cdel: -80s;
}
.hero-art__cloud--2 {
  top: 30%;
  left: 52%;
  width: clamp(150px, 18vw, 330px);
  opacity: 0.7;
  --cd: 300s;
  --cdel: -190s;
}
.hero-art__cloud--3 {
  top: 2%;
  left: 78%;
  width: clamp(80px, 9vw, 170px);
  opacity: 0.6;
  --cd: 180s;
  --cdel: -30s;
}
@keyframes hero-art-drift {
  from {
    transform: translate3d(-100vw, 0, 0);
  }
  to {
    transform: translate3d(100vw, 0, 0);
  }
}

/* Birds: a small flock crosses now and then */
.hero-art__birds {
  position: absolute;
  top: 16%;
  left: 0;
  width: clamp(56px, 6vw, 96px);
  opacity: 0;
}
.hero-art--alive .hero-art__birds {
  animation: hero-art-fly 34s linear 1.5s infinite;
}
.hero-art__birds-bob {
  display: block;
  animation: hero-art-bob 3.2s ease-in-out infinite alternate;
}
.hero-art__birds svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-art__bird {
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 70%;
  animation: hero-art-flap 0.42s ease-in-out infinite alternate;
}
@keyframes hero-art-fly {
  0% {
    transform: translate3d(-14vw, 40px, 0);
    opacity: 1;
  }
  44% {
    transform: translate3d(112vw, -60px, 0);
    opacity: 1;
  }
  44.1%,
  100% {
    transform: translate3d(112vw, -60px, 0);
    opacity: 0;
  }
}
@keyframes hero-art-bob {
  to {
    transform: translateY(14px);
  }
}
@keyframes hero-art-flap {
  to {
    transform: scaleY(0.3);
  }
}

/* Falling leaves (spawned by art.js) */
.hero-art__leaf {
  position: absolute;
  width: 15px;
  height: 9px;
  margin: -4px 0 0 -7px;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-art__leaf svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art__leaf--1 { fill: var(--art-birch-1); }
.hero-art__leaf--2 { fill: var(--art-leaf-gold); }
.hero-art__leaf--3 { fill: var(--c-lime); }

/* Off-screen: freeze idle loops */
.hero-art--paused,
.hero-art--paused * {
  animation-play-state: paused !important;
}

/* Visitor pressed the pause toggle (html.mo-paused, main.js): freeze every idle loop */
html.mo-paused .hero-art,
html.mo-paused .hero-art *,
html.mo-paused .ba-handle::after,
html.mo-paused .ba-butterfly,
html.mo-paused .ba-wing {
  animation-play-state: paused !important;
}

/* ==========================================================================
   2b. Hero slogan  (p.hero-slogan[data-hero-slogan], the big line above the h1)
   The real words live in .hero-slogan__text: shown as plain text without JS,
   visually hidden (still read by screen readers) once art.js has built the
   decorative .hero-slogan__art. The box is reserved up front (6em x 1.3em),
   so building or playing the art never moves anything.
   ========================================================================== */
.hero-slogan {
  position: relative;
  display: block;
  width: 6em; /* ~ the advance of the line: the hover / tap target hugs the words */
  max-width: 100%;
  height: 1.3em;
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 12.6vw, 6.6rem); /* headline size: the slogan leads the hero */
  font-weight: 430;
  font-variation-settings: "opsz" 36;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1024px) {
  .hero-slogan { font-size: clamp(3rem, 7.6vw, 8rem); }
}
/* Phones: compress the headline with the rest of the hero text stack */
@media (max-width: 767px) {
  .hero-slogan { font-size: clamp(2.4rem, 11.4vw, 4.4rem); }
}
/* Two-column hero: the line sits in the sky band, where the flock and the clouds
   drift by behind it; a soft cream halo (like the lead's text-shadow) keeps it clear. */
@media (min-width: 1024px) {
  .hero-slogan::before {
    content: "";
    position: absolute;
    top: -0.62em;
    right: -0.9em;
    bottom: -0.12em;
    left: -0.7em;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(244, 239, 228, 0.92), rgba(244, 239, 228, 0.62) 58%, rgba(244, 239, 228, 0));
    pointer-events: none;
  }
}
.hero-slogan__text {
  display: block;
  white-space: nowrap;
}
.hero-slogan__text em {
  color: var(--c-moss);
  font-style: italic;
  font-weight: 400;
}
/* Hidden until the art is built (no flash of plain words before the hedge
   grows); CSS-only safety net if the script never gets there. Never hidden
   under html.motion-failed (art.js then shows the settled art, no replay of
   words the visitor has already read). */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.motion-failed) .hero-slogan:not(.is-built):not(.is-failed) .hero-slogan__text {
    opacity: 0;
    animation: hero-slogan-show 0.4s 4s forwards;
  }
}
@keyframes hero-slogan-show {
  to {
    opacity: 1;
  }
}
.hero-slogan.is-built .hero-slogan__text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero-slogan__art {
  position: absolute;
  display: block;
  pointer-events: none;
}
.hero-slogan__win,
.hero-slogan__pane,
.hero-slogan__layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}
.hero-slogan__win {
  overflow: hidden;
}
.hero-slogan__art svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
}
.hero-slogan__art text {
  font-family: var(--f-display);
  font-size: 100px;
  font-variation-settings: "opsz" 36;
  letter-spacing: -1px;
}
.hero-slogan__a {
  font-weight: 430;
}
.hero-slogan__b {
  font-style: italic;
  font-weight: 400;
}
.hero-slogan__shears {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.36em;
  height: 0.8em;
  transform-origin: 47.4576% 50%; /* the pivot of the 236-unit-wide drawing */
  visibility: hidden;
}
.hero-slogan__half {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 47.4576% 50%;
}
.hero-slogan__art.is-anim .hero-slogan__win,
.hero-slogan__art.is-anim .hero-slogan__pane,
.hero-slogan__art.is-anim .hero-slogan__shears,
.hero-slogan__art.is-anim .hero-slogan__half {
  will-change: transform;
}
/* Settled: only the clean words and the leaf on the i stay */
.hero-slogan__art:not(.is-anim) .hero-slogan__wild,
.hero-slogan__art:not(.is-anim) .hero-slogan__shears,
.hero-slogan__art:not(.is-anim) .hero-slogan__dyn {
  display: none;
}
/* High contrast: the art has fixed fills, so show the real words instead */
@media (forced-colors: active) {
  .hero-slogan__art {
    display: none;
  }
  .hero-slogan .hero-slogan__text,
  .hero-slogan.is-built .hero-slogan__text,
  html.js:not(.motion-failed) .hero-slogan:not(.is-built):not(.is-failed) .hero-slogan__text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    opacity: 1;
    animation: none;
  }
}

/* ==========================================================================
   3. Before / after (#ba-app → .ba-frame)
   ========================================================================== */
.ba-frame {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  background: var(--c-sand);
  box-shadow: var(--shadow-l);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ba-scene {
  position: absolute;
  inset: 0;
}
.ba-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ba-scene--before {
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

/* Labels */
.ba-chip {
  position: absolute;
  top: clamp(12px, 2.4vw, 24px);
  z-index: 2;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: var(--shadow-s);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.ba-chip--before {
  left: clamp(12px, 2.4vw, 24px);
  background: rgba(15, 31, 23, 0.72);
  color: var(--c-on-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ba-chip--after {
  right: clamp(12px, 2.4vw, 24px);
  background: var(--c-lime);
  color: var(--c-ink);
}
.ba-frame--hide-before .ba-chip--before {
  opacity: 0;
  transform: translateY(-6px);
}
.ba-frame--hide-after .ba-chip--after {
  opacity: 0;
  transform: translateY(-6px);
}

/* Divider + handle */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translate3d(var(--ba-pos), 0, 0);
  pointer-events: none;
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--c-paper);
  box-shadow: 0 0 0 1px rgba(15, 31, 23, 0.08), 0 0 18px rgba(15, 31, 23, 0.25);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: var(--c-paper);
  color: var(--c-forest);
  box-shadow: var(--shadow-m), 0 0 0 6px rgba(250, 247, 240, 0.35);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  outline: none;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.ba-handle svg {
  width: 30px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-handle:hover {
  transform: scale(1.07);
}
.ba-handle:focus-visible {
  /* transparent outline stays visible in forced-colors (high contrast) mode */
  outline: 3px solid transparent;
  outline-offset: 4px;
  box-shadow: var(--shadow-m), var(--ring-dark), 0 0 0 9px rgba(214, 236, 107, 0.9);
}
.ba-frame--dragging {
  cursor: grabbing;
}
.ba-frame--dragging .ba-handle {
  cursor: grabbing;
  transform: scale(0.94);
  background: var(--c-lime);
  color: var(--c-ink);
}
/* Soft pulse inviting the first drag */
.ba-handle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c-paper);
  opacity: 0;
  animation: ba-pulse 2.4s var(--ease-out) 1.2s infinite;
  pointer-events: none;
}
.ba-frame--touched .ba-handle::after,
.ba-frame--hinting .ba-handle::after {
  animation: none;
  opacity: 0;
}
@keyframes ba-pulse {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

/* Hint below the frame */
/* Block + inline icon: when the hint wraps, the icon stays with the first line */
.ba-hint {
  display: block;
  margin: var(--s-4) 0 0;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  text-align: center;
}
.ba-hint > svg {
  display: inline-block;
  vertical-align: -5px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ← → keycaps drawn as SVG (Manrope has no U+2190/U+2192 glyphs) */
.ba-keys {
  white-space: nowrap;
}
.ba-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  margin: 0 1px;
  border: 1.5px solid currentColor;
  border-bottom-width: 2.5px;
  border-radius: 5px;
  vertical-align: -4px;
  font: inherit;
  line-height: 1;
}
.ba-hint .ba-key svg {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: none) {
  .ba-hint__kbd {
    display: none;
  }
}

@media (max-width: 640px) {
  .ba-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-l);
  }
  .ba-handle {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
  }
  .ba-chip {
    padding: 7px 13px;
    font-size: var(--fs-micro);
  }
}

/* ---- Scene fills: shared base ---- */
.ba-sky-a { fill: url(#vv-art-g-sky-a); }
.ba-sky-b { fill: url(#vv-art-g-sky-b); }
.ba-sunglow { fill: url(#vv-art-g-sun); }
.ba-sun { fill: var(--c-lime); opacity: 0.5; }
.ba-far-a { fill: var(--art-hill-2); }
.ba-far-b { fill: var(--art-far-b); }
.ba-fartree-a { fill: var(--art-hill-3); }
.ba-fartree-b { fill: var(--art-far-tree-b); }
.ba-fence-a { fill: url(#vv-art-ba-boards-a); }
.ba-fence-b { fill: url(#vv-art-ba-boards-b); }
.ba-board-a { fill: var(--art-wood); }
.ba-board-b { fill: var(--art-board-b); }
.ba-board-hl { fill: var(--c-paper); opacity: 0.35; }
.ba-board-sh { fill: var(--c-ink); opacity: 0.12; }
.ba-board-gap { fill: var(--art-board-gap); }
.ba-board-lean { stroke: var(--art-twig); stroke-width: 1; }
.ba-fence-shade { fill: var(--c-ink); opacity: 0.12; }
.ba-gate-a { fill: var(--art-wood-2); }
.ba-gate-b { fill: var(--art-rubble-2); }
.ba-gate-gap { fill: var(--art-board-gap); }
.ba-gate-brace {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.35;
}
.ba-gate-hinge { fill: var(--c-ink); opacity: 0.6; }
.ba-wall { fill: var(--c-paper); }
.ba-wall-shade { fill: var(--c-sand); opacity: 0.7; }
.ba-plinth { fill: var(--art-rubble-1); }
.ba-eave { fill: var(--c-forest); }
.ba-window-frame { fill: var(--c-forest-2); }
.ba-glass { fill: url(#vv-art-g-glass); }
.ba-mullion {
  fill: none;
  stroke: var(--c-forest-2);
  stroke-width: 7;
}
.ba-glint {
  fill: none;
  stroke: var(--c-paper);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.6;
}
.ba-sill { fill: var(--c-sand); }
.ba-pipe {
  fill: none;
  stroke: var(--art-rubble-2);
  stroke-width: 9;
  stroke-linecap: round;
}
.ba-paver { fill: var(--art-paver); }
.ba-joint {
  fill: none;
  stroke: var(--art-rubble-1);
  stroke-width: 3;
  stroke-linecap: round;
}
.ba-terrace-edge {
  fill: none;
  stroke: var(--art-rubble-2);
  stroke-width: 5;
  stroke-linecap: round;
}

/* ---- After ---- */
.ba-lawn { fill: url(#vv-art-g-lawn); }
.ba-stripe { fill: var(--c-paper); opacity: 0.08; }
.ba-bed {
  fill: var(--art-mulch);
  stroke: var(--art-mulch-rim);
  stroke-width: 4;
}
.ba-path { fill: url(#vv-art-p-pebbles); }
.ba-peb-bg { fill: var(--c-sand); }
.ba-edge { stroke-width: 4; }
.ba-lattice { fill: url(#vv-art-p-lattice); }
.ba-lattice-frame {
  fill: none;
  stroke: var(--art-wood);
  stroke-width: 6;
  stroke-linejoin: round;
}
.ba-vine {
  fill: none;
  stroke: var(--c-moss);
  stroke-width: 4;
  stroke-linecap: round;
}
.ba-wing {
  fill: var(--c-lavender);
  stroke: var(--c-forest);
  stroke-width: 1;
  transform-box: fill-box;
  animation: ba-flap 0.18s ease-in-out infinite alternate;
}
.ba-wing--l { transform-origin: 100% 40%; }
.ba-wing--r { transform-origin: 0% 40%; fill: var(--art-lav-3); }
.ba-butterfly-body {
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.ba-butterfly {
  animation: ba-fly 12s ease-in-out infinite;
}
@keyframes ba-flap {
  to {
    transform: scaleX(0.25);
  }
}
@keyframes ba-fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-6deg);
  }
  25% {
    transform: translate(70px, -46px) rotate(8deg);
  }
  50% {
    transform: translate(150px, -14px) rotate(-4deg);
  }
  75% {
    transform: translate(80px, 26px) rotate(6deg);
  }
}

/* ---- Before ---- */
.ba-dry { fill: url(#vv-art-g-dry); }
.ba-dirt { fill: var(--art-dirt); opacity: 0.8; }
.ba-trail { fill: var(--art-dirt); }
.ba-rut {
  fill: none;
  stroke: var(--art-dirt-2);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.22;
}
.ba-weed-patch { fill: var(--art-weed-2); opacity: 0.32; }
.ba-weed-broad { fill: var(--art-weed-1); stroke: var(--art-weed-2); stroke-width: 1.2; }
.ba-puddle { fill: var(--art-puddle); opacity: 0.75; }
.ba-puddle-hl {
  fill: none;
  stroke: var(--c-paper);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.5;
}
.ba-tuft {
  fill: none;
  stroke: var(--art-weed-dead);
  stroke-width: 2;
  stroke-linecap: round;
}
.ba-bush-1 { fill: var(--art-bush-1); }
.ba-bush-2 { fill: var(--art-bush-2); }
.ba-scrib-d,
.ba-scrib-l,
.ba-twig,
.ba-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-scrib-d { stroke: var(--c-ink); stroke-width: 2.4; opacity: 0.45; }
.ba-scrib-l { stroke: var(--art-weed-1); stroke-width: 2.2; opacity: 0.8; }
.ba-twig { stroke: var(--art-twig); stroke-width: 2.6; }
.ba-branch { stroke: var(--art-twig); stroke-width: 6; }
.ba-weed-base { fill: var(--art-shadow); }
.ba-stalk,
.ba-stalk-dead {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.ba-stalk { stroke: var(--art-weed-2); }
.ba-stalk-dead { stroke: var(--art-weed-dead); }
.ba-weed-leaf { fill: var(--art-weed-1); }
.ba-seed { fill: var(--art-weed-dead); }
.ba-thistle { fill: var(--art-thistle); }
.ba-stain { fill: var(--c-ink); opacity: 0.07; }
.ba-crack {
  fill: none;
  stroke: var(--art-rubble-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-stump { fill: var(--art-wood-2); }
.ba-stump-root {
  fill: none;
  stroke: var(--art-wood-2);
  stroke-width: 6;
  stroke-linecap: round;
}
.ba-stump-top { fill: var(--art-gravel-3); }
.ba-stump-ring {
  fill: none;
  stroke: var(--art-wood-2);
  stroke-width: 1.6;
  opacity: 0.6;
}
.ba-tire { fill: var(--c-ink); }
.ba-tire-hole { fill: var(--art-dirt-2); }
.ba-tire-hl {
  fill: none;
  stroke: var(--art-rubble-2);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.6;
}
.ba-plank { fill: var(--art-wood); }
.ba-plank--2 { fill: var(--art-board-b); }
.ba-plank-line {
  fill: none;
  stroke: var(--art-wood-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.5;
}
.ba-bucket { fill: var(--c-clay); }
.ba-bucket-rim { fill: var(--art-dirt-2); }
.ba-bucket-handle {
  fill: none;
  stroke: var(--art-rubble-2);
  stroke-width: 2;
}
.ba-rubble-1 { fill: var(--art-rubble-1); }
.ba-rubble-2 { fill: var(--art-rubble-2); }
.ba-pot { fill: var(--c-clay); }
.ba-pot-rim { fill: var(--art-gravel-3); }
.ba-pot-crack {
  fill: none;
  stroke: var(--art-wood-2);
  stroke-width: 2;
  stroke-linejoin: round;
}
.ba-soil { fill: var(--art-dirt-2); }

/* Off-screen: freeze the butterfly */
.ba-frame--paused * {
  animation-play-state: paused !important;
}

/* ==========================================================================
   Reduced motion: static art, no idle loops, no flying things
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-art *,
  .ba-frame *,
  .ba-frame *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-art__birds,
  .hero-art__fx {
    display: none;
  }
}
.reduced-motion .hero-art *,
.reduced-motion .ba-frame *,
.reduced-motion .ba-frame *::after {
  animation: none !important;
}
.reduced-motion .hero-art__birds,
.reduced-motion .hero-art__fx {
  display: none;
}
