/* Surface Repair & French Polish by Caoba — design system.
   Ported 1:1 from the Caoba group design system (tokens, type scale, components)
   as used on the live "Restoration & French Polish" page. Static CSS: no runtime,
   no framework, so the copy ships inside the HTML where search engines read it. */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/plex-mono-400.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --gold: #D2992E;
  --gold-strong: #C28400;
  --ink: #13110F;
  --ink-soft: #2A2620;
  --stone: #6E6862;
  --background: #FFFFFF;
  --muted: #F5F3F0;
  --accent: #F5F1EA;
  --border: #E6E4E1;
  --on-ink: #FFFFFF;
  --on-ink-muted: rgba(255,255,255,.7);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --tracking-display: -0.04em;
  --tracking-mono: 0.12em;
  --ease-standard: cubic-bezier(.4,0,.2,1);

  --wrap-max: 1440px;
  --wrap-pad: clamp(20px, 4vw, 64px);
  --section-y: clamp(4rem, 7vw, 6rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--background); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Primitives ---------- */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--wrap-pad); }
.wrap--narrow { max-width: 1100px; }

.label {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: var(--tracking-mono); color: var(--ink); line-height: 1.4;
}
.label--gold { color: var(--gold); }
.label--stone { color: var(--stone); }

.display {
  margin: 0; font-family: var(--font-sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-display); line-height: .96; color: var(--ink);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}
.display--light { color: #fff; }
.display--sm { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.display .gold { color: var(--gold); }

.body { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--stone); }
.body--sm { font-size: .85rem; }
.body--light { color: rgba(255,255,255,.75); }
.lede { max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: .8rem 1.5rem;
  font-family: var(--font-sans); font-size: .88rem; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer; white-space: nowrap;
  background: var(--gold); color: var(--ink);
  transition: background .18s var(--ease-standard), color .18s var(--ease-standard);
}
.btn:hover { background: var(--gold-strong); }
.btn--lg { padding: 1.05rem 2rem; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-soft); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
/* Hero pair: the primary CTA is set in caps, the one inside the video card is a
   pill. Declared after --lg so the wider inline padding wins. */
.btn--upper { text-transform: uppercase; font-weight: 700; font-size: .95rem; letter-spacing: .01em; padding-inline: 2.2rem; }
.btn--pill { border-radius: 999px; }

/* ---------- Reveal ----------
   Gated on .js: if the script never runs, every section stays visible. An
   opacity:0 default would hide the whole page from anyone without JS. */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); will-change: opacity, transform; }
.js .reveal--left { transform: translate3d(-56px, 0, 0); }
.js .reveal--right { transform: translate3d(56px, 0, 0); }
.js .reveal.is-in {
  opacity: 1; transform: translate3d(0,0,0);
  transition: opacity .75s var(--ease-standard) var(--reveal-delay, 0ms), transform .85s var(--ease-standard) var(--reveal-delay, 0ms);
}
/* On a phone the 56px horizontal reveal offset sits outside the viewport before it
   animates in. Reveal upward instead — the effect survives, the overflow doesn't. */
@media (max-width: 1024px) {
  .js .reveal--left, .js .reveal--right { transform: translate3d(0, 28px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease-standard), border-color .25s var(--ease-standard);
}
.header--overlay { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.header--overlay .header__link, .header--overlay .header__toggle { color: #fff; }
.header--overlay .header__toggle { border-color: rgba(255,255,255,.5); }
.header--overlay .header__logo-mark { filter: brightness(0) invert(1); }
.header--overlay .header__logo-text { color: #fff; }
.header--overlay.is-scrolled, .header--overlay.is-open {
  position: fixed; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom-color: var(--border);
}
.header--overlay.is-scrolled .header__link, .header--overlay.is-open .header__link,
.header--overlay.is-scrolled .header__toggle, .header--overlay.is-open .header__toggle { color: var(--ink); }
.header--overlay.is-scrolled .header__toggle, .header--overlay.is-open .header__toggle { border-color: var(--border); }
.header--overlay.is-scrolled .header__logo-mark, .header--overlay.is-open .header__logo-mark { filter: none; }
.header--overlay.is-scrolled .header__logo-text, .header--overlay.is-open .header__logo-text { color: var(--ink); }

.header__bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.6vw, 24px); }
.header__logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__logo-mark { height: 30px; width: auto; }
.header__logo-text {
  font-family: var(--font-mono); font-size: .55rem; line-height: 1.45; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink); width: 10.5em;
  padding-left: 14px; border-left: 1px solid var(--border);
}
.header--overlay .header__logo-text { border-left-color: rgba(255,255,255,.35); }
.header--overlay.is-scrolled .header__logo-text, .header--overlay.is-open .header__logo-text { border-left-color: var(--border); }
/* Light overlay: the home hero is pale, so the transparent bar keeps ink type.
   Must sit after every .header--overlay rule above — same specificity, later wins. */
.header--overlay-light .header__link, .header--overlay-light .header__toggle { color: var(--ink); }
.header--overlay-light .header__toggle { border-color: var(--border); }
.header--overlay-light .header__logo-mark { filter: none; }
.header--overlay-light .header__logo-text { color: var(--ink); border-left-color: var(--border); }
@media (max-width: 480px) { .header__logo-text { display: none; } }
.header__nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.header__link {
  font-size: .88rem; font-weight: 500; color: var(--ink); white-space: nowrap;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.header__link:hover { border-bottom-color: currentColor; }
.header__link.is-current { border-bottom-color: currentColor; }
.header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__toggle {
  display: none; appearance: none; background: transparent; border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .6rem .9rem; cursor: pointer;
}
.header__menu { display: none; background: #fff; border-top: 1px solid var(--border); max-height: calc(100vh - 76px); overflow-y: auto; }
.header.is-open .header__menu { display: block; }
.header__menu-inner { display: flex; flex-direction: column; padding-block: 10px 26px; }
.header__menu a { padding: 13px 0; font-size: 1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
@media (max-width: 1000px) {
  .header__nav { display: none; }
  .header__toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: var(--hero-h, 92vh); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(19,17,15,calc(.42 * var(--dim,1))) 0%,
    rgba(19,17,15,calc(.12 * var(--dim,1))) 32%,
    rgba(19,17,15,calc(.34 * var(--dim,1))) 55%,
    rgba(19,17,15,calc(.68 * var(--dim,1))) 82%,
    rgba(19,17,15,calc(.76 * var(--dim,1))) 100%);
}
.hero__inner { position: relative; width: 100%; padding-top: clamp(96px, 14vh, 150px); padding-bottom: clamp(24px, 5vh, 64px); }
.hero__eyebrow { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.hero h1 { font-size: var(--hero-size, clamp(3rem, 9.5vw, 9rem)); line-height: .92; }
.hero__sub { margin-top: 26px; max-width: 620px; color: rgba(255,255,255,.8); font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.65; }
.hero__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Split hero (home) ----------
   Laid out off the hero reference (952px content box): text column 56.3%, gap
   8.5%, video card 35.2% at a 335x542 crop. Type is set as a proportion of the
   text column so the composition holds at any width — headline 12.05% of the
   column, sub 2.52%. Background is --muted, the same tone as the surfaces band
   directly below, so the two read as one continuous field. */
.hsplit { background: var(--muted); }
.hsplit__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8.5%; align-items: center;
  padding-block: clamp(112px, 12.6vw, 168px) clamp(88px, 10.5vw, 156px);
}
.hsplit__title { font-size: clamp(2.3rem, 5.7vw, 5.2rem); line-height: .96; }
.hsplit__sub {
  margin-top: 26px; max-width: 37em;
  font-size: clamp(.8rem, 1.19vw, 1.05rem); font-weight: 500; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.hsplit__sub .gold { color: var(--gold); }
.hsplit__cta { margin-top: 46px; font-size: 1rem; padding-inline: 3.55rem; }
/* Height-led, not width-led: the card holds the reference's 63vh so the hero
   still lands on one screen on the site's wider container, and its width falls
   out of the 335x542 crop. */
.hsplit__media {
  position: relative; align-self: center; justify-self: end;
  height: clamp(380px, 63vh, 660px); aspect-ratio: 335 / 542; width: auto;
  border-radius: clamp(16px, 1.9vw, 26px); overflow: hidden; background: var(--ink);
}
.hsplit__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsplit__media-cta {
  position: absolute; right: clamp(12px, 1.5vw, 20px); bottom: clamp(14px, 1.7vw, 22px);
  font-size: .94rem; padding: .78rem 2.35rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 22px 0 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px;
  font-size: .7rem; font-weight: 500; line-height: 1.3; color: var(--stone);
}
.chip__tick { width: 11px; height: 11px; flex-shrink: 0; }

/* One column on a laptop-narrow window and below: the card goes full width and
   drops to a landscape crop, because a 63vh portrait card under the headline
   would push the CTA off the first screen. */
@media (max-width: 1000px) {
  .hsplit__inner {
    grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px);
    padding-block: clamp(96px, 14vw, 130px) clamp(48px, 8vw, 80px);
  }
  .hsplit__media { justify-self: stretch; width: 100%; height: auto; aspect-ratio: 16/10; }
}

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--border); }
.trust__inner { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; align-items: center; padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.trust__item { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust__item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- Bands ---------- */
.band-dark { background: var(--ink); }
.band-dark__inner { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.band-dark p { margin: 0 auto; max-width: 860px; font-size: clamp(1.15rem, 2.1vw, 1.75rem); line-height: 1.45; color: rgba(255,255,255,.92); }
.band-dark .btn { margin-top: 40px; }

.band-gold { background: var(--gold); }
.band-gold__inner { padding-block: clamp(4rem, 8vw, 6.5rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.band-gold .display { font-size: clamp(2.2rem, 5.4vw, 4.6rem); flex: 1 1 560px; max-width: 880px; }

/* ---------- Section ---------- */
.section { padding-block: var(--section-y); }
/* Anchor jumps (#surfaces, #damage, #assessment) must clear the sticky header. */
.section[id], [id].section--surfaces { scroll-margin-top: 92px; }
.section--muted { background: var(--muted); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head .label { margin-bottom: 12px; }
.section__head .body { margin-top: 16px; }

/* ---------- Split ---------- */
.split { overflow-x: clip; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.split__text { display: flex; flex-direction: column; justify-content: center; }
.split__text .label { margin-bottom: 22px; }
.split__text .body { margin-top: 24px; max-width: 460px; }
.split__text .btn { margin-top: 34px; align-self: flex-start; }
.split__img { aspect-ratio: var(--ratio, 3/4); overflow: hidden; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__img { order: -1; }
@media (max-width: 700px) { .split--flip .split__img { order: 0; } }

/* ---------- Bordered tile grid ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--ink); }
.tiles--steps { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.tiles--wide { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tile { border-bottom: 1px solid var(--ink); border-right: 1px solid var(--border); padding: 22px 20px 26px; }
.tile h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.tile .label + h3 { margin-top: 12px; }
.tile .body { margin-top: 8px; }
.tile--step { padding: 20px 18px 24px; }
.tile--step h3 { font-size: .98rem; }

/* ---------- Damage cards ----------
   Proportions measured off repairs-reference.png (884x942 artboard, grid 766
   wide): card 32.5% of the grid, gap 1.3%, card aspect 249/368, text inset ~20,
   title close to headline size. Colours are Caoba tokens, not the mock's. */
.dcards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.05vw, 15px);   /* reference gap = 1.11% of the grid width */
}
.dcard {
  position: relative; overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 16px);   /* same radius as the surfaces panel */
  aspect-ratio: 249 / 368;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 2.2vw, 32px);
  isolation: isolate;
}
/* The photo is the card's background, at half opacity so ink type stays legible. */
.dcard__img { position: absolute; inset: 0; z-index: -1; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.dcard__title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-display); line-height: 1;
  font-size: clamp(1.5rem, 3.1vw, 2.85rem); color: var(--ink);
}
.dcard__body {
  margin: 0; font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.45;
  color: var(--ink-soft); max-width: 34ch;
}
@media (max-width: 1000px) {
  .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dcards { grid-template-columns: 1fr; }
  .dcard { aspect-ratio: 4 / 3; }
}

/* ---------- Project-types panel (home 1.8) ----------
   Proportions measured off work-with-reference.png (1008x759 artboard, content
   band 895 wide): photo 47.15% / gap 2.23% / card column 50.72%; the two
   columns are exactly the same height (512 = 57.2% of the band); card 98.5 tall
   with a 5px gap (0.56%); card padding 39 across (8.6% of the card) and ~24/17
   block; radius ~15.5 (1.73%) — which is the same 22px the surfaces panel
   already uses at 1440. The mock informs POSITION AND SIZE ONLY; every colour
   here is a Caoba token. */
.section__head--wide { max-width: none; margin-bottom: clamp(34px, 6.67vw, 96px); }
/* The reference H2 measures ~53px at our 1440 band — larger than .display--sm.
   Sized to the mock rather than to the rest of the page, which is what this
   section was asked to match. Breaks after “PROJECT”; ch scales with the clamp. */
.section__head--wide .display { font-size: clamp(2.1rem, 3.7vw, 3.32rem); max-width: 25ch; }
/* Reference lead is 0.65x the H2 — a genuine lead paragraph, not body copy. */
.lead {
  margin: clamp(14px, 2.2vw, 32px) 0 0; max-width: 100%;
  font-size: clamp(1.05rem, 2.38vw, 2.14rem); line-height: 1.25;
  color: var(--ink-soft); font-weight: 400;
}

.wpanel {
  display: grid;
  grid-template-columns: minmax(0, 47.15fr) minmax(0, 50.72fr);
  gap: clamp(12px, 2.06vw, 30px);
  align-items: stretch;
}
/* The card stack sets the height; the photo stretches to match it exactly. */
.wpanel__media {
  border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden;
  background: var(--accent); min-height: 280px;
}
/* Crop matched to the reference by correlating it against the source photo:
   best fit at 57.9% horizontally, not centred (centre cuts the locker unit). */
.wpanel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; display: block; }
.wpanel__list { display: grid; grid-auto-rows: 1fr; gap: clamp(5px, 0.51vw, 7px); }
.wcard {
  background: #fff; border-radius: clamp(14px, 1.6vw, 22px);
  padding: clamp(15px, 2.04vw, 30px) clamp(18px, 4vw, 58px);
  display: flex; flex-direction: column; justify-content: center;
  /* The reference gets its card edge for free from a warmer cream behind it.
     On our --muted the white would float invisibly, so the edge is drawn with
     a shadow instead of by changing the band colour. */
  box-shadow: 0 1px 2px rgba(19, 17, 15, .04), 0 8px 22px rgba(19, 17, 15, .05);
}
.wcard__title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-display); line-height: 1.05;
  font-size: clamp(1rem, 1.99vw, 1.79rem); color: var(--ink);
}
/* Reference body copy is near-black and set tight, not the light grey of our
   standard .body — matched here so the cards read as densely as the mock. */
.wcard__body {
  margin: clamp(6px, .7vw, 10px) 0 0; line-height: 1.25;
  font-size: clamp(.85rem, 1.3vw, 1.17rem); color: var(--ink-soft);
}
@media (max-width: 900px) {
  .wpanel { grid-template-columns: 1fr; }
  .wpanel__media { aspect-ratio: 4 / 3; min-height: 0; }
  .section__head--wide .display { max-width: none; }
}

/* ---------- Surfaces panel ----------
   Proportions measured off surfaces-section-reference.png (915x486 artboard,
   card 849 wide): media 28.2% / gap 4.4% / content 61.8%; icon tile 6% of the
   card; row pitch 80 on a 51 tile; tile-to-text 17; card padding 2.8%.
   Everything below is that mock scaled up. The mock informs POSITION ONLY —
   every colour here comes from the Caoba tokens, not from the reference image. */
/* 2026-08-26: the rounded card is gone. The muted band now only supplies the
   gap above and below; the white runs edge to edge as a strip carrying the
   card's old padding, so it stands exactly as tall as the card did. Inside it
   the content still sits on .wrap, aligned with every other section. */
.section--surfaces { background: var(--muted); padding-block: clamp(3rem, 4.6vw, 4.8rem); }
.sstrip { background: #fff; padding-block: clamp(20px, 2.8vw, 40px); }

/* Left slot holds a before/after wipe instead of the video, centred at its own
   4:3 rather than stretched to full height — a landscape photo forced into a
   full-height column loses two thirds of its width to the crop. */
.spanel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr);
  gap: 4.4%; align-items: center;
}
.spanel__body { display: flex; flex-direction: column; }
/* One line, set to the right edge of its column. nowrap only applies where
   there is room — below 1000px the panel is one column and the headline wraps
   and reads left like the rest of the page. */
.spanel__title { font-size: clamp(1.4rem, 2.45vw, 2.2rem); line-height: 1.16; }
@media (min-width: 1001px) {
  .spanel__title { white-space: nowrap; text-align: right; }
}
.spanel__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3.4vw, 48px);
  row-gap: clamp(22px, 3.1vw, 45px);
  margin-top: clamp(24px, 3.6vw, 52px);
}
.sitem { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.sitem__icon {
  width: clamp(52px, 5.5vw, 82px); aspect-ratio: 1; border-radius: clamp(9px, 1vw, 14px);
  background: var(--accent); display: grid; place-items: center; color: var(--ink); flex-shrink: 0;
}
.sitem__icon .ic { width: 48%; height: 48%; }
.sitem__text { min-width: 0; }
.sitem h3 { font-size: clamp(.95rem, 1.35vw, 1.2rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
.sitem p { margin: 8px 0 0; font-size: clamp(.76rem, .88vw, .84rem); line-height: 1.45; color: var(--stone); }

@media (max-width: 1000px) {
  .spanel { grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
}

/* ---------- Before / after wipe ----------
   The "after" is the base layer; the "before" sits over it clipped to --pos.
   A transparent range input covers the frame and drives --pos, so drag, tap and
   arrow keys all work with no custom pointer code. Both source photos are
   720x540, so the frame holds 4/3 and neither image is cropped. */
.ba-slide {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: clamp(12px, 1.4vw, 18px); background: var(--ink);
  touch-action: pan-y;
}
.ba-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slide__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-slide__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,.35);
}
.ba-slide__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(38px, 3.4vw, 46px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ba-slide__handle svg { width: 70%; height: 70%; }
/* Transparent input, zero-width thumb: the value then maps linearly across the
   full frame, so the native thumb never drifts from the drawn divider. */
.ba-slide__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; background: transparent;
  appearance: none; -webkit-appearance: none;
}
.ba-slide__range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; }
.ba-slide__range::-moz-range-thumb { width: 1px; height: 100%; border: 0; border-radius: 0; }
.ba-slide__range:focus { outline: none; }
.ba-slide:focus-within .ba-slide__handle { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 620px) {
  .spanel__grid { grid-template-columns: 1fr; }
}

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 4vw, 52px); }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba__frame {
  aspect-ratio: 4/5; overflow: hidden; background: var(--muted); border: 1px solid var(--border);
  border-radius: clamp(10px, 1.2vw, 16px);   /* same token as the damage cards */
}
.ba__frame img { width: 100%; height: 100%; object-fit: cover; }
.ba__state { margin-top: 10px; color: var(--stone); }
.ba__state--after { color: var(--ink); }
.ba h3 { margin-top: 18px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.ba .body { margin-top: 6px; }

/* ---------- Hairline list ---------- */
.hairlines { border-top: 1px solid var(--ink); }
.hairlines p { border-bottom: 1px solid var(--ink); padding: 18px 0; font-size: .92rem; line-height: 1.6; color: var(--stone); }
.hairlines strong { color: var(--ink); font-weight: 700; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--ink); border-radius: 12px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.faq details { border-bottom: 1px solid var(--ink); align-self: start; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: .95rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.1rem; line-height: 1; flex-shrink: 0; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > .body { padding-bottom: 22px; max-width: 560px; }

/* ---------- Sticky call button ----------
   Mirrors the Max Logistics button: fixed bottom-right pill, 20px inset, z-50,
   14/20 padding, 14px semibold, pill radius, phone icon at 16px, hidden from
   768px up. Colours are our gold tokens, not Max's orange. */
.callus {
  display: none;
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 9999px;
  background: var(--gold); color: var(--ink);
  font-size: .875rem; font-weight: 600; line-height: 1;
  box-shadow: 0 20px 25px -5px rgba(19,17,15,.18), 0 8px 10px -6px rgba(19,17,15,.14);
  transition: background .18s var(--ease-standard);
}
.callus:hover { background: var(--gold-strong); }
.callus svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 767px) { .callus { display: inline-flex; } }
/* Don't float it over the open mobile menu, which can fill the screen. */
.header.is-open ~ .callus { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 24px; margin-top: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: .82rem; color: var(--stone); }
.form__error {
  grid-column: 1 / -1; margin-top: 4px; font-size: .88rem; font-weight: 600;
  color: #A32B1E;
}

/* Confirmation panel. Replaces the form in place once the submission lands, so
   the answer arrives where the person was already looking instead of on a
   different page. */
.form-done {
  /* focus() scrolls the panel into view; without this the sticky header eats
     its top edge. Same offset the section anchors use. */
  scroll-margin-top: 100px;
  margin-top: 36px; padding: clamp(26px, 3.4vw, 42px);
  background: #fff; border: 1px solid var(--border);
  border-radius: clamp(14px, 1.6vw, 20px);
}
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-done__tick {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--ink); margin-bottom: 20px;
}
.form-done__tick svg { width: 24px; height: 24px; }
.form-done__title {
  font-family: var(--font-sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-display); line-height: 1.1; color: var(--ink);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
}
.form-done__body { margin-top: 14px; font-size: .95rem; line-height: 1.65; color: var(--ink); max-width: 52ch; }
.form-done__aside { margin-top: 12px; font-size: .88rem; line-height: 1.6; color: var(--stone); max-width: 52ch; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--stone); }

/* ---------- Contact / CTA block ---------- */
.cta-block { overflow-x: clip; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.cta-block__aside { border-top: 1px solid var(--ink); padding-top: 20px; }
.cta-block__aside dt { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--stone); }
.cta-block__aside dd { margin: 6px 0 20px; font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--muted); border-top: 1px solid var(--border); }
.footer__top { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: clamp(32px, 4vw, 56px); }
.footer__brand p { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.25; color: var(--ink); }
.footer__brand img { height: 34px; width: auto; margin-top: 30px; }
.footer__col h2 { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.footer__col div { display: flex; flex-direction: column; gap: 8px; }
.footer__col a, .footer__col span { font-size: .82rem; color: var(--stone); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { padding-block: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
