/* F&G Fencing & Gates — graphite + white + orange accent */
:root {
  --ink: #22262a;
  --graphite: #2e3338;
  --graphite-deep: #24282c;
  --panel: #33383d;
  --line: rgba(255,255,255,.10);
  --snow: #f7f8f8;
  --mist: #c7cdd2;
  --orange: #ff8c3a;
  --orange-deep: #f07a24;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Type system (Noah's pick 02/08): Big Shoulders carries headings — an
   industrial display face cut for working-city signage, right register for
   a steel fencing brand. Archivo does the body work. */
:root {
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-head: 'Big Shoulders Display', 'Archivo', system-ui, sans-serif;
}
body {
  font-family: var(--font-body);
  background: var(--graphite);
  color: var(--snow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3, .brand-mark, .pe-row strong, #see-estimate, .step-n {
  font-family: var(--font-head);
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36,40,44,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--snow); }
.brand-slats { display: flex; flex-direction: column; gap: 3px; }
.brand-slats i { display: block; height: 5px; width: 26px; border-radius: 2px; background: var(--orange); }
.brand-slats i:nth-child(2), .brand-slats i:nth-child(4) { width: 19px; }
.brand-desc { align-self: flex-end; padding-bottom: 4px; }
.brand-mark { font-weight: 800; font-size: 29px; letter-spacing: 0; }
.brand-mark em { font-style: normal; color: var(--orange); }
.brand-mark.small { font-size: 22px; }
.brand-desc { font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--mist); }
.head-nav { display: flex; gap: 22px; margin-left: auto; }
.head-nav a { color: var(--mist); text-decoration: none; font-size: 15px; font-weight: 500; }
.head-nav a:hover { color: var(--snow); }
.head-call { white-space: nowrap; }

/* buttons */
/* <button> needs the UA background/font killed or it renders grey-on-white. */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-family: inherit; line-height: 1.2; text-align: center;
  background: none; border: none; cursor: pointer;
  border-radius: 999px; padding: 14px 28px; font-size: 16px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #241505; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.32); color: var(--snow); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.09); }

/* hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
/* .hero-pan carries the JS parallax translate; the img carries the settle
   scale. Separate elements so the two transforms never fight. The extra
   bottom bleed is the headroom the parallax drifts into. */
.hero-pan { position: absolute; inset: 0; bottom: -20%; will-change: transform; }
.hero-pan img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,40,44,.45) 0%, rgba(36,40,44,.55) 55%, rgba(36,40,44,.96) 100%);
}
/* Camera settling on the shot — long tail, meant to be felt not watched. */
.has-js .hero-pan img { animation: heroSettle 6.5s cubic-bezier(.14,.6,.16,1) both; }
@keyframes heroSettle { from { transform: scale(1.10); } to { transform: scale(1); } }

.hero-inner { position: relative; padding-bottom: 88px; padding-top: 140px; }
/* Desktop hero reads centred against the symmetrical fence photo. */
@media (min-width: 861px) {
  .hero-inner { width: 100%; text-align: center; }
  .hero-inner h1 { max-width: 17ch; margin: 0 auto; }
  .hero-inner .lede { margin-left: auto; margin-right: auto; }
  .hero-inner .cta-row { justify-content: center; }
  .hero-inner .stringline { margin-left: auto; margin-right: auto; }
}

/* String line — the first thing that goes up on a real install, so it's the
   first thing that moves here. Snaps taut, then twangs once. */
.stringline { display: block; width: min(320px, 74%); height: 6px; margin: 0 0 22px; overflow: visible; }
.stringline path { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; }
.has-js .stringline path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: lineSnap .58s cubic-bezier(.55,0,.1,1) .3s forwards;
}
.has-js .stringline { animation: lineTwang .46s cubic-bezier(.36,.07,.19,.97) .84s both; }
@keyframes lineSnap { to { stroke-dashoffset: 0; } }
@keyframes lineTwang {
  0% { transform: translateY(0); }
  32% { transform: translateY(2px); }
  64% { transform: translateY(-.8px); }
  100% { transform: translateY(0); }
}

/* Hero copy comes up in sequence behind the line, not all at once. */
.has-js .hero-inner .reveal { transition-duration: .78s; transition-timing-function: cubic-bezier(.16,.7,.2,1); }
.has-js .hero-inner .eyebrow { transition-delay: .06s; }
.has-js .hero-inner h1 { transition-delay: .62s; transform: translateY(26px); }
.has-js .hero-inner h1.is-in { transform: none; }
.has-js .hero-inner .lede { transition-delay: .8s; }
.has-js .hero-inner .cta-row { transition-delay: .94s; }

@media (prefers-reduced-motion: reduce) {
  .has-js .hero-pan img { animation: none; }
  .has-js .stringline, .has-js .stringline path { animation: none; }
  .has-js .stringline path { stroke-dashoffset: 0; }
  .has-js .hero-inner .reveal { transition: none; transition-delay: 0s; }
  .has-js .hero-inner h1 { transform: none; }
}

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 4px; color: var(--orange); margin-bottom: 18px; }
.hero-inner .eyebrow { margin-bottom: 14px; }
h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -.5px; line-height: 1.02; max-width: 15ch; }
.lede { font-size: 19px; color: var(--mist); max-width: 56ch; margin-top: 22px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.trust-strip { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin-top: 38px; }
.trust-strip li { font-size: 14px; font-weight: 600; color: var(--mist); display: flex; align-items: center; gap: 9px; }
.trust-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* product marquee — speed + skew react to scroll velocity (house effect) */
.mq { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--graphite-deep); }
.mq .track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.mq .set { display: flex; gap: 48px; padding-right: 48px; }
.mq .set span { white-space: nowrap; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 15px; color: var(--mist); }
.mq .set span:nth-child(odd) { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .mq .track { transform: none !important; } }

/* why-card icons — clean Lucide strokes, subtle self-draw on scroll-in only */
.why-icon { width: 46px; height: 46px; margin-bottom: 18px; color: var(--orange); }
.why-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.has-js .why-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-js .why-card.is-in .why-icon path { animation: iconDraw .9s cubic-bezier(.65,0,.35,1) .2s forwards; }
.has-js .why-card.is-in .why-icon path:nth-of-type(2) { animation-delay: .45s; }
.has-js .why-card.is-in .why-icon path:nth-of-type(3) { animation-delay: .65s; }
.has-js .why-card.is-in .why-icon path:nth-of-type(n+4) { animation-delay: .85s; }
@keyframes iconDraw { to { stroke-dashoffset: 0; } }
.why-icon circle[fill] { opacity: 0; transition: opacity .4s ease .9s; }
.has-js .why-card.is-in .why-icon circle[fill], html:not(.has-js) .why-icon circle[fill] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .has-js .why-icon path { stroke-dashoffset: 0; animation: none !important; }
  .why-icon circle[fill] { opacity: 1; transition: none; }
}

/* swash underline — draws itself on scroll-in (house effect) */
.swash-head h2 { margin: 0 auto; }
.swash { display: block; width: min(280px, 64%); margin: 10px auto 0; overflow: visible; }
.swash path { fill: none; stroke: var(--orange); stroke-width: 3.4; stroke-linecap: round; }
.has-js .swash path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-js .swash-head.is-in .swash path { animation: swashDraw .9s cubic-bezier(.65,0,.35,1) .3s forwards; }
@keyframes swashDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .has-js .swash path { stroke-dashoffset: 0; animation: none; } }

/* sections */
.section { padding: 68px 0; }
section[id] { scroll-margin-top: 84px; } /* clear the sticky header on anchor jumps */
.section-alt { background: var(--graphite-deep); }
h2 { font-size: clamp(33px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.3px; line-height: 1.08; max-width: 26ch; }
.section-lede { color: var(--mist); max-width: 60ch; margin-top: 14px; font-size: 17px; }

/* why cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.why-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.why-card h3 { font-size: 22px; margin-bottom: 10px; }
.why-card p { color: var(--mist); font-size: 15.5px; }

/* range cards */
.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.gate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.range-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.range-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.range-img-product { background: #eceff1; }
.range-img-product img { object-fit: contain; padding: 8%; }
.range-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover:hover) and (pointer:fine) {
  .range-card:hover .range-img img { transform: scale(1.04); }
}
.range-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.range-body h3 { font-size: 22px; }
.range-body p { color: var(--mist); font-size: 15px; flex: 1; }
.price { color: var(--orange); font-weight: 800; font-size: 15px; letter-spacing: .3px; }

/* colour grid — 12 tiles so every breakpoint fills its rows exactly */
.col-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 38px; }
@media (max-width: 940px) { .col-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .col-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.col-swatch {
  display: block; aspect-ratio: 4/3; border-radius: 12px;
  border: 1px solid var(--line); position: relative;
}
.col-swatch i {
  position: absolute; top: 8px; left: 8px; font-style: normal;
  font: 700 8.5px/1 var(--font-body); letter-spacing: 1.4px;
  color: rgba(255,255,255,.9); background: rgba(0,0,0,.38);
  padding: 4px 7px; border-radius: 99px;
}
.col-swatch--wood { background: repeating-linear-gradient(105deg, #7a4d2b 0 6px, #8f5c34 6px 11px, #6e421f 11px 16px); }
.col-tile b { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }
.col-code { display: block; font-size: 12px; color: var(--mist); letter-spacing: .4px; margin-top: 2px; }

/* swatches */
.swatch-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.swatch { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--mist);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px 10px 10px; }
.swatch span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); display: block; }
.swatch-wood { background: repeating-linear-gradient(105deg, #7a4d2b 0 5px, #8f5c34 5px 9px, #6e421f 9px 13px); }

/* see your fence — configurator */
.see-wrap { display: grid; grid-template-columns: 1.6fr 1.05fr; gap: 28px; margin-top: 44px; align-items: stretch; }
/* min-width:0 is load bearing — without it the stretched row height drives the
   aspect-ratio and the image blows out to ~1400px under the controls panel. */
.see-stage { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.see-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.see-controls { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.see-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--mist); margin-bottom: 12px; }
.see-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.see-pill {
  font: inherit; font-weight: 700; font-size: 15px; color: var(--mist);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.see-pill.active { color: #241505; background: var(--orange); border-color: var(--orange); }
.see-dots { display: flex; gap: 14px; }
.see-dot {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 2px solid rgba(255,255,255,.18);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.see-dot.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,140,58,.25); transform: scale(1.08); }
.see-size { display: flex; flex-direction: column; gap: 14px; }
.see-len { display: flex; align-items: center; gap: 12px; color: var(--mist); font-size: 15px; font-weight: 600; }
/* Custom stepper — the native number spinner is a tiny grey OS control. */
.see-len-box {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(0,0,0,.18); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 6px; color: var(--snow); font-weight: 700;
}
.see-len-box input {
  width: 52px; background: none; border: none; color: var(--snow);
  font: inherit; font-size: 19px; font-weight: 800; text-align: center; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.see-len-box input::-webkit-outer-spin-button,
.see-len-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.see-len-box input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.see-unit { font-size: 14px; font-weight: 700; color: var(--mist); padding-right: 6px; }
.see-step {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1.5px solid var(--line); color: var(--snow);
  font: inherit; font-size: 20px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; padding: 0;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
@media (hover:hover) and (pointer:fine) {
  .see-step:hover { background: rgba(255,140,58,.22); border-color: var(--orange); color: var(--orange); }
}
.see-step:active { transform: scale(.9); }
.see-step:disabled { opacity: .35; cursor: default; }
.see-price { background: rgba(255,140,58,.10); border: 1px solid rgba(255,140,58,.35); border-radius: 14px; padding: 16px 20px; }
.see-price-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
.see-price strong { font-size: 30px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.see-note { color: var(--mist); font-size: 14px; margin-top: auto; }
html:not(.has-js) .see-controls { display: none; }
@media (max-width: 860px) {
  .see-wrap { grid-template-columns: 1fr; }
  .see-stage { aspect-ratio: 4/3; }
}

/* real work gallery — compact, tagged, view-more */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; margin-top: 44px; }
.work-tile { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
/* Tall tiles only once the grid is open — collapsed, every tile is equal. */
.work-grid.open .work-tile.tall { grid-row: span 2; }
html:not(.has-js) .work-tile.tall { grid-row: span 2; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Caption sits on a scrim, not a pill — a pill blobs the moment the label
   wraps on a narrow tile. Label on top, finish underneath. */
.work-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(16,19,22,.92) 0%, rgba(16,19,22,.72) 42%, rgba(16,19,22,0) 100%);
  color: var(--snow);
}
.work-tile figcaption b {
  display: block; font-size: 14px; font-weight: 800; line-height: 1.25;
  letter-spacing: -.1px; text-wrap: balance;
}
.work-tile figcaption span {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--orange);
}
@media (hover:hover) and (pointer:fine) {
  .work-tile:hover img { transform: scale(1.04); }
}
/* Compact: a full row of 3, then a sliced row of 3 fading into the page so it
   reads as "there is more under here". JS-gated so no-JS visitors see all. */
.has-js .work-grid:not(.open) { grid-template-rows: 250px 104px; }
.has-js .work-grid:not(.open) .work-tile:nth-child(n+7) { display: none; }
.has-js .work-grid:not(.open) .work-tile:nth-child(n+4) figcaption { display: none; }
.has-js .work-grid:not(.open) .work-tile:nth-child(n+4)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(46,51,56,.15) 0%, rgba(46,51,56,.62) 55%, rgba(46,51,56,.96) 100%);
}
.work-more-row { text-align: center; margin-top: 20px; }
html:not(.has-js) .work-more-row { display: none; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .has-js .work-grid:not(.open) { grid-template-rows: 180px 78px; }
  .has-js .work-grid:not(.open) .work-tile:nth-child(n+5) { display: none; }
  .has-js .work-grid:not(.open) .work-tile:nth-child(n+3) figcaption { display: none; }
  .has-js .work-grid:not(.open) .work-tile:nth-child(n+3)::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(46,51,56,.15) 0%, rgba(46,51,56,.62) 55%, rgba(46,51,56,.96) 100%);
  }
  .work-tile figcaption { padding: 30px 12px 11px; }
  .work-tile figcaption b { font-size: 12.5px; }
  .work-tile figcaption span { font-size: 10px; letter-spacing: 1.1px; }
}

/* price example */
/* Range CTA — the ask lands right where the product interest peaks. */
.range-cta {
  margin-top: 28px; padding: 26px 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.range-cta h3 { font-size: 24px; letter-spacing: -.3px; }
.range-cta p { color: var(--mist); margin-top: 4px; max-width: 44ch; }
.range-cta .cta-row { margin-top: 0; }

/* Real-job proof tiles beside prices and the install steps. Same scrim
   grammar as the work gallery so they read as the same photo family. */
.price-flex { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 40px; align-items: stretch; }
.price-flex .price-example { margin-top: 0; }
.price-proof, .how-proof {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 240px; text-decoration: none; color: var(--snow);
}
.price-proof img, .how-proof img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; position: absolute; inset: 0; }
.pp-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(16,19,22,.92) 0%, rgba(16,19,22,.72) 42%, rgba(16,19,22,0) 100%);
}
.pp-cap b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.1px; }
.pp-cap span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange); }
@media (hover:hover) and (pointer:fine) {
  .price-proof:hover img, .how-proof:hover img { transform: scale(1.04); }
}
.how-flex { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.how-flex .steps { grid-template-columns: 1fr; margin-top: 44px; gap: 16px; }
.how-proof { margin-top: 44px; }
@media (max-width: 860px) {
  .price-flex, .how-flex { grid-template-columns: 1fr; }
  .price-proof, .how-proof { min-height: 210px; }
  .range-cta { padding: 22px 20px; }
}

.price-example { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pe-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.pe-row:last-child { border-bottom: none; }
.pe-row span { color: var(--mist); font-size: 16px; }
.pe-row strong { font-size: 20px; white-space: nowrap; }
.fineprint { color: var(--mist); font-size: 14px; margin-top: 18px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,140,58,.15); border: 1.5px solid var(--orange);
  color: var(--orange); font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--mist); font-size: 15px; }

/* view product link + modal */
.view-link {
  display: inline-block; margin-top: 12px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--orange); font: 600 15px/1.3 var(--font-body); text-align: left;
}
.view-link::after { content: " \2192"; }
.view-link:hover { color: var(--orange-deep); text-decoration: underline; }
.prod-modal {
  /* The global `* { margin: 0 }` reset kills the UA's `dialog { margin: auto }`
     centering — restore it or the dialog pins to the top-left corner. */
  margin: auto;
  border: 1px solid var(--line); border-radius: 18px; padding: 0;
  background: var(--graphite-deep); color: var(--snow);
  width: min(680px, calc(100vw - 32px));
  max-height: 86vh; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.prod-modal::backdrop { background: rgba(10, 12, 14, .66); }
.pm-inner {
  padding: 28px 28px 24px; position: relative;
  max-height: 86vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--panel) transparent;
}
.pm-inner::-webkit-scrollbar { width: 9px; }
.pm-inner::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.pm-inner::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 99px; border: 2px solid var(--graphite-deep); }
.pm-inner::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.pm-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: none; border: 0; cursor: pointer;
  color: var(--mist); font-size: 32px; line-height: 1;
}
.pm-close:hover { color: var(--snow); }
.pm-tag { margin-bottom: 8px; }
.pm-name { font-size: 34px; letter-spacing: .3px; }
.pm-photo { border-radius: 12px; overflow: hidden; margin: 16px 0 18px; aspect-ratio: 16/9; }
.pm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-para { color: var(--mist); font-size: 16px; margin-bottom: 12px; }
.pm-slat {
  margin-top: 16px; padding: 14px 16px 10px;
  background: #fff; border-radius: 12px; text-align: center;
}
.pm-slat img { display: block; margin: 0 auto; max-height: 90px; max-width: 100%; object-fit: contain; }
.pm-slat span {
  display: block; margin-top: 8px;
  font: 700 10px/1 var(--font-body); letter-spacing: 2px; color: #5a6167;
}
/* colour dropdown in the configurator */
.see-colour-pick { display: flex; align-items: center; gap: 12px; }
.see-colour-dot {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #383e42; border: 2px solid rgba(255,255,255,.25);
}
.see-colour-dot.dot-wood { background: repeating-linear-gradient(105deg, #7a4d2b 0 5px, #8f5c34 5px 9px, #6e421f 9px 13px); }
.see-select-wrap { position: relative; flex: 1; max-width: 300px; }
.see-select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: translateY(-70%) rotate(45deg);
}
#see-colour {
  appearance: none; -webkit-appearance: none; width: 100%; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--snow); font: 600 15px/1.2 var(--font-body); padding: 12px 38px 12px 14px;
}
#see-colour:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
#see-colour optgroup, #see-colour option { background: var(--graphite-deep); color: var(--snow); }

/* most-popular tags */
.card-tag, .cut-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-style: normal;
  font: 700 10px/1 var(--font-body); letter-spacing: 1.6px;
  color: #241505; background: var(--orange);
  padding: 6px 9px; border-radius: 99px;
}
.pm-cut { position: relative; }
.cut-tag { top: 6px; left: 6px; }

.pm-cuts {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: thin; scrollbar-color: var(--panel) transparent;
}
.pm-cuts::-webkit-scrollbar { height: 8px; }
.pm-cuts::-webkit-scrollbar-track { background: transparent; }
.pm-cuts::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 99px; }
.pm-cuts::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.pm-cut {
  flex: 0 0 176px; margin: 0; background: #fff; border-radius: 12px; padding: 10px 10px 12px;
}
.pm-cut img { width: 100%; height: auto; aspect-ratio: 1 / 1.07; object-fit: cover; display: block; border-radius: 8px; }
.pm-cut b { display: block; color: #22262a; font-size: 14.5px; margin-top: 8px; }
.pm-cut span { display: block; color: #5a6167; font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.pm-cut em { display: block; font-style: normal; color: #8a9199; font-size: 10.5px; margin-top: 6px; letter-spacing: .3px; }

.pm-specs { margin-top: 18px; border-top: 1px solid var(--line); }
.pm-specs-head { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--orange); margin: 14px 0 4px; }
.pm-row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.pm-row span { color: var(--mist); }
.pm-row strong { text-align: right; }
.pm-cta { margin-top: 20px; }
@media (max-width: 560px) {
  .pm-inner { padding: 22px 16px 18px; }
  .pm-name { font-size: 28px; }
  .pm-row { flex-direction: column; gap: 2px; }
  .pm-row strong { text-align: left; }
}

/* final cta */
.cta-final { text-align: center; padding: 110px 0; }
.cta-final h2 { margin: 0 auto; }
.cta-final .section-lede { margin-left: auto; margin-right: auto; }
.cta-final .cta-row { justify-content: center; }

/* quote form — the primary conversion path */
.quote-form { max-width: 640px; margin: 40px auto 0; text-align: left; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qf-field { display: block; font-size: 14px; font-weight: 600; color: var(--mist); }
.qf-field input, .qf-field textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--snow); font: 500 16px/1.4 var(--font-body);
}
.qf-field input:focus, .qf-field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.qf-field textarea { resize: vertical; }
.qf-need { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
/* .see-label carries a 12px bottom margin for the stacked "See your fence"
   blocks; in this flex row it drags the label off the pills' centre line. */
.qf-need .see-label { margin-bottom: 0; line-height: 1; }
.qf-msg { margin-top: 18px; }
.qf-hp { position: absolute; left: -9999px; opacity: 0; }
.qf-actions { justify-content: flex-start; }
#qf-send { min-width: 220px; }
#qf-send[disabled] { opacity: .6; cursor: default; }
.qf-done { text-align: center; padding: 26px 0 8px; }
.qf-done strong { display: block; font-family: var(--font-head); font-size: 30px; margin-bottom: 8px; }
.quote-form .see-note { text-align: left; margin-top: 20px; }
.quote-form .see-note a { color: var(--orange); }
@media (max-width: 640px) {
  .qf-grid { grid-template-columns: 1fr; }
  .qf-actions .btn { width: 100%; }
}

/* FAQ — objection handling, also feeds the FAQ rich result */
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--snow); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 26px; font-weight: 700; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--mist); font-size: 16px; margin-top: 14px; max-width: 68ch; }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(24,28,32,.94); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .mb-btn { flex: 1; text-align: center; text-decoration: none; font-weight: 800; font-size: 16px; border-radius: 999px; padding: 15px 10px; min-height: 48px; }
  .mb-wa { background: var(--orange); color: #241505; flex: 2; }
  .mb-call { border: 1.5px solid var(--line); color: var(--snow); }
  body { padding-bottom: 84px; }
  .head-call { display: none; }
  h1 { font-size: 40px; }
  .btn { padding: 15px 26px; min-height: 48px; }
  .faq summary { font-size: 17px; }
}

/* footer */
.site-footer { background: var(--graphite-deep); border-top: 1px solid var(--line); padding: 54px 0 34px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-line { color: var(--mist); font-size: 14px; margin-top: 6px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--mist); font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--snow); }

/* Full footer: contact, services and service area. The phone is the money
   line, so it gets the orange and stays a real tel: link. */
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.foot-brand .foot-line { max-width: 34ch; margin-top: 10px; line-height: 1.6; }
.foot-col h3 { font-family: var(--font-head); font-size: 19px; letter-spacing: .5px; color: var(--snow); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; margin-bottom: 14px; }
.foot-col a { color: var(--mist); font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: var(--snow); }
.foot-col .foot-strong { font-family: var(--font-head); font-size: 24px; color: var(--orange); letter-spacing: .5px; }
.foot-col .foot-strong:hover { color: var(--orange); text-decoration: underline; }
.foot-small { color: var(--mist); font-size: 13px; line-height: 1.65; margin-top: 8px; opacity: .85; }

.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .15s, background .15s;
}
.foot-social a:hover { border-color: var(--orange); background: rgba(255,140,58,.12); }
/* Instagram is drawn as strokes, Facebook as a solid glyph — so each svg
   sets its own paint rather than inheriting one rule that suits only one. */
.foot-social svg { width: 20px; height: 20px; }
.foot-social svg rect, .foot-social svg circle { fill: none; stroke: var(--mist); stroke-width: 1.8; }
.foot-social svg .dot { fill: var(--mist); stroke: none; }
.foot-social svg path { fill: var(--mist); }
.foot-social a:hover svg rect, .foot-social a:hover svg circle { stroke: var(--orange); }
.foot-social a:hover svg .dot, .foot-social a:hover svg path { fill: var(--orange); }

.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
.foot-base .foot-small { margin-top: 0; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* reveal animation — hidden state ONLY when JS is present (has-js), so
   content can never strand invisible without scripts. Failsafe in app.js. */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.has-js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* mobile */
@media (max-width: 860px) {
  .head-nav { display: none; }
  .why-grid, .range-grid, .steps { grid-template-columns: 1fr; }
  .gate-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  /* Hero copy is bottom-anchored (align-items:flex-end), so the second CTA
     sits at hero-bottom minus this padding — it was landing 47px behind the
     fixed mobile bar. The bar is 84px; 124 clears it with room to spare.
     The lede is tightened to 17px so the block still fits inside min-height
     rather than going content-driven, which is what pins the padding lever. */
  .hero-inner { padding-top: 100px; padding-bottom: 124px; }
  .hero-inner .stringline { margin-bottom: 18px; }
  .hero .lede { font-size: 17px; margin-top: 16px; }
  .hero .cta-row { margin-top: 26px; }
  .section { padding: 68px 0; }
  .pe-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pe-row strong { white-space: normal; }
}
/* Short phones (SE / 8, 667px tall): the full hero block can't fit above the
   84px bar no matter how it's padded. Tightened so the PRIMARY CTA still
   lands above the fold; the secondary sits just under it, and the sticky
   WhatsApp/Call bar keeps the conversion path visible either way. */
@media (max-width: 860px) and (max-height: 740px) {
  .hero-inner { padding-top: 72px; padding-bottom: 96px; }
}

/* ============================================================
   range.html — the full catalogue page
   ============================================================ */

.head-nav a.is-here { color: var(--snow); position: relative; }
.head-nav a.is-here::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--orange); border-radius: 2px;
}

/* page head — no hero photo here, the products are the picture */
.cat-head { padding: 132px 0 40px; background: var(--graphite-deep); border-bottom: 1px solid var(--line); }
.cat-head h1 { font-size: clamp(38px, 6vw, 64px); line-height: .96; letter-spacing: -1px; margin-top: 6px; }
.cat-head .lede { color: var(--mist); font-size: 17.5px; max-width: 62ch; margin-top: 16px; }
.cat-note {
  margin-top: 22px; padding: 14px 18px; max-width: 72ch;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--mist); font-size: 14.5px;
}
.cat-note b { color: var(--snow); }

/* sticky filter bar */
.cat-bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(36,40,44,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-bar-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  padding: 9px 16px; border-radius: 99px;
  background: transparent; border: 1px solid var(--line); color: var(--mist);
  font: 600 14px/1 var(--font-body);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.cat-chip:hover { color: var(--snow); transform: translateY(-1px); }
.cat-chip.active { background: var(--orange); border-color: var(--orange); color: #241505; }
.cat-count { margin-left: auto; color: var(--mist); font-size: 13.5px; white-space: nowrap; }

/* catalogue cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.cat-card.wide { grid-column: span 2; }
@media (hover:hover) and (pointer:fine) {
  .cat-card:hover { transform: translateY(-3px); border-color: rgba(255,140,58,.4); }
  .cat-card:hover .cat-img img { transform: scale(1.04); }
}
.cat-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--graphite-deep); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body h3 { font-size: 24px; letter-spacing: -.2px; }
.cat-body > p { color: var(--mist); font-size: 15px; }

.cat-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-specs li {
  font-size: 12px; letter-spacing: .2px; color: var(--mist);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 99px;
}

.cat-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.cat-foot .price { display: block; font-size: 16px; }
.cat-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cat-actions .view-link { margin-top: 0; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* board cuts grid — the modal's white cut cards, laid out as a grid */
.cut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.cut-grid .pm-cut { flex: none; }

/* honest note */
.cat-honest {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 24px 28px;
}
.cat-honest h3 { font-size: 22px; margin-bottom: 12px; }
.cat-honest ul { list-style: none; display: grid; gap: 10px; }
.cat-honest li { color: var(--mist); font-size: 15px; padding-left: 16px; position: relative; }
.cat-honest li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 99px; background: var(--orange); }
.cat-honest b { color: var(--snow); }

.cat-colour-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cat-colour-row .how-proof { margin-top: 0; }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cut-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-colour-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cat-head { padding-top: 104px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card.wide { grid-column: auto; }
  .cut-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-count { display: none; }
  /* The mobile action bar owns the bottom of the screen. */
  .cat-bar { top: 0; }
}

/* homepage → full range pointer */
.range-all { margin-top: 22px; text-align: center; }
.range-all a { color: var(--orange); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.range-all a:hover { color: var(--orange-deep); text-decoration: underline; }
.range-all a::after { content: " \2192"; }

/* range hero — the slat collage, built from our own renders */
.cat-head { position: relative; overflow: hidden; }
.cat-head-media { position: absolute; inset: 0; z-index: 0; }
.cat-head-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-head-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--graphite-deep) 0%, rgba(36,40,44,.86) 42%, rgba(36,40,44,.55) 100%),
    linear-gradient(0deg, var(--graphite-deep) 0%, rgba(36,40,44,0) 55%);
}
.cat-head .wrap { position: relative; z-index: 1; }

/* panel-swap value strip — the numbers that sell the job */
.swap-points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px;
}
.swap-points span {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--mist); font-size: 13.5px; line-height: 1.35;
}
.swap-points b {
  font-family: var(--font-head); font-size: 30px; line-height: 1;
  color: var(--orange); letter-spacing: -.5px; margin-bottom: 4px;
}
@media (max-width: 860px) { .swap-points { grid-template-columns: repeat(2, 1fr); } }

/* product-render tiles on the catalogue (parts, not garden photos) */
.cat-img-product { background: #eceff1; }
.cat-img-product img { object-fit: contain; padding: 6%; }

/* image inspector */
.cat-card img, .range-card img, .pm-cut img, .work-tile img, .pm-photo img { cursor: zoom-in; }
.lb {
  margin: auto; border: 0; padding: 0; background: transparent;
  max-width: min(1100px, 94vw); max-height: 94vh; overflow: visible;
  color: var(--snow);
}
.lb::backdrop { background: rgba(16,18,20,.88); backdrop-filter: blur(4px); }
.lb-fig {
  display: flex; flex-direction: column; gap: 0;
  background: var(--graphite-deep); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.lb-fig img {
  width: 100%; max-height: 72vh; object-fit: contain;
  background: #1c1f22; cursor: zoom-out;
}
.lb-cap { padding: 20px 24px 22px; }
.lb-cap b { display: block; font-family: var(--font-head); font-size: 26px; letter-spacing: -.2px; }
.lb-cap span { display: block; color: var(--mist); font-size: 15px; margin-top: 6px; max-width: 70ch; }
.lb-cap em { display: block; font-style: normal; color: var(--orange); font-weight: 800; font-size: 15px; margin-top: 12px; letter-spacing: .3px; }
.lb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lb-tags li {
  font-size: 12px; color: var(--mist);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 99px;
}
.lb-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 99px; cursor: pointer;
  background: var(--orange); border: 0; color: #241505; font-size: 24px; line-height: 1;
}
@media (max-width: 700px) {
  .lb { max-width: 94vw; }
  .lb-close { top: -10px; right: -8px; width: 34px; height: 34px; font-size: 20px; }
  .lb-cap { padding: 16px 18px 18px; }
}

/* ---- before / after comparison slider (estate panel swap) --------------
   Two stacked images, the BEFORE clipped by a width the handle drives. The
   before image is position:absolute inside a clip box that is itself the same
   width as the stage, so both photos stay pinned to the same origin and the
   fence does not slide around as you drag. */
.ba { margin: 30px 0 6px; }
.ba-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #1c1f22;
  aspect-ratio: 4 / 3; touch-action: pan-y; user-select: none;
}
.ba-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* clip-path, not a width — the image always fills the stage, only the visible
   window changes, so nothing can squash or drift while dragging. */
.ba-before-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0); will-change: clip-path;
}
.ba-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: var(--orange); transform: translateX(-1.5px);
  pointer-events: none; will-change: left;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 99px; border: 0; cursor: ew-resize;
  background: var(--orange); color: #241505;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: none;
}
.ba-grip span {
  display: block; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.ba-grip span:first-child { border-right: 9px solid #241505; }
.ba-grip span:last-child { border-left: 9px solid #241505; }
.ba-tag {
  position: absolute; bottom: 16px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--snow); background: rgba(16,18,20,.72);
  border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: 7px 14px;
  backdrop-filter: blur(4px); pointer-events: none;
}
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; }
/* The range input is the real control: keyboard accessible, and on mobile it
   gives a proper touch target instead of fighting the page scroll. */
.ba-range {
  display: block; width: 100%; margin: 16px 0 0; accent-color: var(--orange);
  cursor: ew-resize;
}
.ba-cap { color: var(--mist); font-size: 14px; margin-top: 10px; }
@media (max-width: 700px) {
  .ba-stage { aspect-ratio: 4 / 3.4; }
  .ba-grip { width: 46px; height: 46px; }
  .ba-tag { bottom: 12px; font-size: 11px; padding: 6px 11px; }
}
