/* ==========================================================================
   Mr. Hibachi Fire — Design System
   Static, dependency-free. Built for Cloudflare Pages.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Brand palette — warm charcoal + ember */
  --ink:#15100D;
  --ink-2:#221A15;
  --ink-3:#33271F;
  --ink-4:#4A3A2E;
  --cream:#FDFAF6;
  --cream-2:#F7F0E7;
  --cream-3:#EFE4D6;
  --ember:#E8410B;
  --ember-2:#FF6A2B;
  --ember-dark:#B93106;
  --amber:#F5A524;
  --gold:#FFCF6B;
  --green:#1B7A4B;
  --muted:#6E6058;
  --muted-2:#94867C;
  --white:#FFFFFF;

  /* Semantic */
  --bg:var(--cream);
  --fg:var(--ink);
  --card:#FFFFFF;
  --line:rgba(21,16,13,.10);
  --line-2:rgba(21,16,13,.18);
  --line-dark:rgba(255,255,255,.14);

  /* Typography */
  --font-display:'Anton','Arial Narrow',Impact,'Haettenschweiler',sans-serif;
  --font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif;

  /* Fluid type scale */
  --t-hero:clamp(2.6rem,7.2vw,5.4rem);
  --t-h2:clamp(1.9rem,4.4vw,3.3rem);
  --t-h3:clamp(1.25rem,2.2vw,1.6rem);
  --t-lead:clamp(1.05rem,1.9vw,1.3rem);
  --t-body:1.0625rem;
  --t-sm:.9375rem;
  --t-xs:.8125rem;
  --t-micro:.75rem;

  /* Space scale */
  --s1:.25rem; --s2:.5rem;  --s3:.75rem; --s4:1rem;
  --s5:1.5rem; --s6:2rem;   --s7:3rem;   --s8:4rem;
  --s9:6rem;   --s10:8rem;

  /* Radii + shadows */
  --r-sm:8px; --r:14px; --r-lg:22px; --r-xl:32px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(21,16,13,.06), 0 2px 8px rgba(21,16,13,.05);
  --sh-2:0 4px 12px rgba(21,16,13,.08), 0 12px 32px rgba(21,16,13,.09);
  --sh-3:0 12px 28px rgba(21,16,13,.12), 0 32px 72px rgba(21,16,13,.16);
  --sh-ember:0 6px 20px rgba(232,65,11,.32);

  /* Layout */
  --wrap:1180px;
  --wrap-narrow:780px;
  --gutter:clamp(1rem,4vw,2rem);

  /* Motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --dur:.32s;

  --header-h:72px;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
body{
  font-family:var(--font-body);
  font-size:var(--t-body);
  line-height:1.65;
  color:var(--fg);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  padding-bottom:env(safe-area-inset-bottom);
}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
ul,ol{list-style:none}
:focus-visible{outline:3px solid var(--ember-2);outline-offset:3px;border-radius:4px}

/* ---------- 3. Layout primitives ---------- */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.wrap-narrow{width:100%;max-width:var(--wrap-narrow);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(3.5rem,8vw,6.5rem);position:relative}
.section--tight{padding-block:clamp(2.5rem,5vw,4rem)}
.section--dark{background:var(--ink);color:var(--cream)}
.section--cream{background:var(--cream-2)}
.section--ink2{background:var(--ink-2);color:var(--cream)}
.stack>*+*{margin-top:var(--s5)}
.center{text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- 4. Typography ---------- */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:400;line-height:1.03;letter-spacing:.005em;text-transform:uppercase}
.h-hero{font-size:var(--t-hero);letter-spacing:-.005em}
h2,.h2{font-size:var(--t-h2);line-height:1.06}
h3,.h3{font-size:var(--t-h3);line-height:1.2}
.lead{font-size:var(--t-lead);line-height:1.6;color:var(--muted)}
.section--dark .lead,.section--ink2 .lead{color:rgba(253,250,246,.78)}
/* Small uppercase labels are 13px/700, which is below the "large text" cutoff,
   so WCAG AA wants 4.5:1 — not 3:1. Brand ember (#E8410B) only manages 3.89:1
   on cream and 3.58:1 on cream-2, so the base label uses the deeper ember
   (5.76 / 5.30). The dark surfaces keep `.eyebrow--light`, which is gold. */
.eyebrow{
  font-family:var(--font-body);font-size:var(--t-xs);font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ember-dark);
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
}
.eyebrow::before{content:'';width:26px;height:2px;background:var(--ember-dark);flex:none}
.center .eyebrow{justify-content:center}
.eyebrow--light{color:var(--gold)}
.eyebrow--light::before{background:var(--gold)}
.accent{color:var(--ember)}
.mark{
  background:linear-gradient(180deg,transparent 58%,rgba(245,165,36,.42) 58%);
  padding-inline:.08em;
}
.section-head{max-width:760px;margin-bottom:clamp(2rem,4vw,3.25rem)}
.section-head.center{margin-inline:auto}
.section-head .eyebrow{margin-bottom:var(--s4)}
.section-head .lead{margin-top:var(--s4)}

/* ---------- 5. Buttons ---------- */
.btn{
  --btn-bg:var(--ember); --btn-fg:#fff;
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--font-body);font-weight:700;font-size:1rem;letter-spacing:.01em;
  padding:1.05rem 1.9rem;min-height:56px;
  background:var(--btn-bg);color:var(--btn-fg);
  border-radius:var(--r-pill);border:2px solid transparent;
  transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease),background var(--dur) var(--ease);
  text-align:center;cursor:pointer;white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);box-shadow:var(--sh-ember)}
.btn:active{transform:translateY(0)}
.btn--ember{background:linear-gradient(180deg,var(--ember-2),var(--ember));color:#fff;box-shadow:var(--sh-ember)}
.btn--ghost{background:transparent;color:currentColor;border-color:var(--line-2)}
.btn--ghost:hover{border-color:var(--ember);color:var(--ember);box-shadow:none;background:rgba(232,65,11,.05)}
.section--dark .btn--ghost,.section--ink2 .btn--ghost{border-color:rgba(255,255,255,.28);color:var(--cream)}
.section--dark .btn--ghost:hover,.section--ink2 .btn--ghost:hover{border-color:var(--gold);color:var(--gold);background:rgba(255,207,107,.08)}
.btn--light{background:var(--white);color:var(--ink)}
.btn--light:hover{box-shadow:0 6px 20px rgba(0,0,0,.28)}
.btn--lg{padding:1.2rem 2.4rem;font-size:1.0625rem;min-height:62px}
.btn--block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:var(--s3)}
.center .btn-row{justify-content:center}
@media (max-width:560px){
  .btn-row{flex-direction:column;align-items:stretch}
  .btn-row .btn{width:100%}
}

/* ---------- 6. Header ---------- */
.header{
  position:sticky;top:0;z-index:60;
  background:rgba(21,16,13,.92);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  color:var(--cream);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.7rem;flex:none}
/* The real logo, and it keeps its own dark plate.
   The artwork is DRAWN FOR DARK BACKGROUNDS — the "mrhibachi" wordmark is white
   and the flame highlights are near-white — so on the light theme's surfaces it
   would lose its own name. Keeping the plate makes one asset work on both
   themes, and matches the favicon, which is already a dark rounded square.
   The plate is also the background here, so a slow image never flashes white. */
.brand__mark{
  width:44px;height:44px;border-radius:12px;flex:none;
  display:block;object-fit:cover;
  background:var(--ink);
  box-shadow:0 3px 10px rgba(232,65,11,.35);
}
.brand__name{font-family:var(--font-display);font-size:1.16rem;letter-spacing:.03em;line-height:1;text-transform:uppercase}
.brand__name span{color:var(--amber)}
.brand__sub{display:block;font-family:var(--font-body);font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(253,250,246,.6);margin-top:3px;font-weight:600}

.nav{display:flex;align-items:center;gap:1.6rem}
.nav a{font-size:var(--t-sm);font-weight:600;color:rgba(253,250,246,.82);transition:color var(--dur) var(--ease);position:relative;padding-block:.4rem}
.nav a:hover{color:var(--gold)}
.nav a[aria-current="page"]{color:var(--gold)}
.header__actions{display:flex;align-items:center;gap:var(--s3);flex:none}
.header__phone{
  display:inline-flex;align-items:center;gap:.5rem;font-weight:700;font-size:var(--t-sm);
  color:var(--cream);padding:.6rem .95rem;border-radius:var(--r-pill);
  border:1px solid rgba(255,255,255,.2);transition:all var(--dur) var(--ease);
}
.header__phone:hover{border-color:var(--gold);color:var(--gold)}
.header__cta{padding:.75rem 1.35rem;min-height:44px;font-size:.9375rem}
.burger{display:none;width:44px;height:44px;border-radius:11px;border:1px solid rgba(255,255,255,.2);place-items:center}
.burger span{display:block;width:19px;height:2px;background:var(--cream);position:relative}
.burger span::before,.burger span::after{content:'';position:absolute;left:0;width:19px;height:2px;background:var(--cream);transition:transform var(--dur) var(--ease)}
.burger span::before{top:-6px}.burger span::after{top:6px}

@media (max-width:980px){
  .nav{display:none}
  .header__phone span{display:none}
  .header__phone{padding:.6rem;border-radius:12px}
  .burger{display:grid}
  .header.is-open .nav{
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    position:absolute;top:var(--header-h);left:0;right:0;
    background:var(--ink-2);border-bottom:1px solid var(--line-dark);
    padding:var(--s4) var(--gutter) var(--s6);
  }
  .header.is-open .nav a{padding:.95rem 0;border-bottom:1px solid var(--line-dark);font-size:1.0625rem}
  .header.is-open .nav a:last-child{border-bottom:0}
}
@media (max-width:560px){
  .header__cta{display:none}
}

/* ---------- 7. Hero ---------- */
.hero{
  position:relative;background:var(--ink);color:var(--cream);
  padding-block:clamp(3rem,7vw,5.5rem) clamp(3.5rem,7vw,6rem);
  overflow:hidden;isolation:isolate;
  /* The video IS the hero, so it is shown at full strength — no wash.
     The token stays because the light theme still softens it slightly to sit
     on white; here it is deliberately 1. */
  --hero-wash:1;
}
.hero__bg{position:absolute;inset:0;z-index:-2;overflow:hidden}

/* The poster and the video are the SAME frame, so only one may be opaque at a
   time. Stacking both at 56% composites to roughly 81% and washes the
   photograph out; `.hero__bg.is-playing` — added by main.js once playback
   actually starts — swaps them.

   The swap is a 320ms cross-fade rather than an instant cut. The two frames
   match by construction, but the video has been through a lossy encode, so a
   short fade absorbs any residual difference. At 320ms the brief moment when
   both layers are partly opaque is far too short to read as a brightness
   change. `prefers-reduced-motion` removes it entirely (see §20).

   Note the video starts at opacity 0 and the poster starts visible: if the
   video never loads, never plays, or errors, the hero degrades to a still
   photograph rather than to an empty black band. */
/* A small lift, and it is correcting the FOOTAGE, not compensating for an
   overlay. Measured against the reference: hibachiw's hero band sits at mean
   luminance 92, ours at 78 — partly the scrim (now fixed) and partly the shot
   itself, which is golden hour where theirs is bright midday. brightness()
   scales the video's own values, so every detail and every bit of motion
   survives; a scrim lays a flat colour over them and does not. If the hero
   needs to be lighter still, raise this rather than the scrim. */
.hero__poster,.hero__media{filter:brightness(1.12) saturate(1.06)}
.hero__poster{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 42%;opacity:var(--hero-wash);
  transition:opacity .32s linear;
}
.hero__media{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 42%;opacity:0;
  transition:opacity .32s linear;
}
.hero__bg.is-playing .hero__poster{opacity:0}
.hero__bg.is-playing .hero__media{opacity:var(--hero-wash)}
.hero__bg::after{
  content:'';position:absolute;inset:0;
  background:
    /* 1. vertical fade into the next section — topmost, so the bottom edge
          always melts into --ink whatever the footage happens to be doing */
    linear-gradient(180deg, rgba(21,16,13,0) 68%, var(--ink) 100%),
    /* 2. a light band over the SKY only. The failing elements (h1, sub,
          eyebrow) all sit in the top ~60%, and what is behind them is open sky
          — the brightest surface in the frame. Everything lower down (micro,
          trustbar) measures 5.8 and 8.5 against the same video with no help at
          all. So darken the sky, and leave the chef, the grill and the guests
          at full strength. */
    linear-gradient(180deg, rgba(21,16,13,.34) 0%, rgba(21,16,13,.12) 20%, rgba(21,16,13,0) 38%),
    /* 3. grain */
    var(--noise),
    /* 4. THE SCRIM — barely there, which is the whole point. Reference,
          measured off hibachiw.com rather than eyeballed: their video sits at
          opacity 1 with filter:none, and the ONLY thing over it is
          `linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,.15) 60%,
          transparent)` — a gradient you cannot see in a screenshot. Their white
          text reads because of three stacked text-shadows, not a veil.
          Rotated here to match our left-hand copy column: a hint on the left
          where the words are, gone by 60% across.
          The two warm radial accents that used to sit above this line are
          DELETED, not reduced. At .16/.14 they were laying a brown film across
          the whole frame — measured, the hero came out at mean luminance 78
          against the reference's 92, and most of that gap was them, not the
          scrim. They were also the single biggest reason the dark hero read as
          muddy beside hibachiw's. Nothing may sit between the video and the
          viewer that tints it.
          History: this was .62, then .34, and both were called out for hiding
          the video. If the text ever needs more help, the fix is the shadow,
          not the scrim. */
    linear-gradient(94deg,
      rgba(21,16,13,.26) 0%,
      rgba(21,16,13,.12) 34%,
      rgba(21,16,13,.03) 62%,
      rgba(21,16,13,0) 100%);
  background-size:auto, auto, 170px 170px, auto;
  background-blend-mode:normal, normal, overlay, normal;
}
.hero__grid{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(2rem,4vw,4rem);align-items:center;
}
@media (max-width:940px){.hero__grid{grid-template-columns:1fr}}
.hero__eyebrow{margin-bottom:var(--s5)}
/* The copy sits directly on moving footage, and the scrim above is now almost
   nothing — so the SHADOW is what carries legibility, exactly as it does on
   hibachiw.com. Their recipe is three stacked shadows (0 2px 4px .55 /
   0 4px 8px .35 / 0 8px 14px .20) over white text; these are the same idea,
   with a tighter first layer because our copy column also carries 13px labels
   that need edge definition rather than a broad glow.
   Note the honest limitation: WCAG does not credit text-shadow, so the audit
   below reports the composite against the raw backdrop. A shadow makes small
   text survive a busy frame; it does not make a number pass. */
.hero h1{margin-bottom:var(--s5);text-shadow:0 2px 5px rgba(0,0,0,.68),0 5px 12px rgba(0,0,0,.46),0 12px 26px rgba(0,0,0,.30)}
.hero h1 em{font-style:normal;color:var(--gold);display:inline-block}
.hero__sub{font-size:var(--t-lead);color:rgba(253,250,246,.95);max-width:56ch;margin-bottom:var(--s6);text-shadow:0 1px 4px rgba(0,0,0,.78),0 3px 10px rgba(0,0,0,.52),0 8px 20px rgba(0,0,0,.32)}
.hero__actions{margin-bottom:var(--s5)}
.hero__micro{font-size:var(--t-xs);color:rgba(253,250,246,.85);display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 8px rgba(0,0,0,.6)}
.hero__micro strong{color:var(--gold)}
.hero__eyebrow{text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 8px rgba(0,0,0,.6)}
/* Gold is the eyebrow colour on every SOLID dark band, and it stays that way
   there — on flat --ink it clears AA comfortably. Over the video it cannot:
   gold is dimmer than cream (relative luminance .66 against .95), and the top
   of this footage is bright sky, so it measured 2.51:1 even with the top band
   above. Cream clears it. The hero keeps its gold in the headline's <em>, which
   is 86px and therefore only needs 3:1. */
.hero .eyebrow--light{color:var(--cream)}
.hero .eyebrow--light::before{background:var(--cream)}

/* Trust bar */
.trustbar{
  display:flex;flex-wrap:wrap;gap:.55rem 1.4rem;align-items:center;
  font-size:var(--t-xs);font-weight:600;letter-spacing:.01em;
  color:rgba(253,250,246,.92);
  text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 8px rgba(0,0,0,.6);
  padding-top:var(--s5);margin-top:var(--s5);
  border-top:1px solid rgba(255,255,255,.14);
}
.trustbar li{display:flex;align-items:center;gap:.45rem}
.trustbar svg{width:15px;height:15px;flex:none;color:var(--gold)}
.stars{color:var(--amber);letter-spacing:.06em;font-size:.95em}

/* Hero price card */
.pricecard{
  /* The white sheen is the glass look; the dark base is what makes the card's
     text legible. Without a base the card is a near-transparent tint over
     whatever is behind it, so its contrast was a function of the hero video:
     opening the hero scrim up dropped the gold label from 9.36:1 to 2.97:1 and
     the note from 8.90:1 to 4.27:1 — both under AA. A card that only passes
     while the video happens to be dark is not passing. */
  background:
    linear-gradient(165deg,rgba(255,255,255,.10),rgba(255,255,255,.03)),
    rgba(21,16,13,.74);
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-xl);
  padding:clamp(1.5rem,3vw,2.25rem);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:var(--sh-3);
}
.pricecard__label{font-size:var(--t-xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:var(--s2)}
.pricecard__price{font-family:var(--font-display);font-size:clamp(3.2rem,8vw,4.4rem);line-height:.92;color:#fff;display:flex;align-items:baseline;gap:.35rem}
.pricecard__price small{font-family:var(--font-body);font-size:1rem;font-weight:600;color:rgba(253,250,246,.72);letter-spacing:.01em}
.pricecard__note{font-size:var(--t-sm);color:rgba(253,250,246,.76);margin-top:var(--s3);line-height:1.5}
.pricecard__list{margin-top:var(--s5);padding-top:var(--s5);border-top:1px solid rgba(255,255,255,.14);display:grid;gap:.6rem}
.pricecard__list li{display:flex;gap:.6rem;font-size:var(--t-sm);color:rgba(253,250,246,.88);align-items:flex-start}
.pricecard__list svg{width:17px;height:17px;flex:none;margin-top:3px;color:var(--green)}
.section--dark .pricecard__list svg,.hero .pricecard__list svg{color:#4ADE80}
.pricecard .btn{margin-top:var(--s6)}
.pricecard__foot{font-size:var(--t-xs);color:rgba(253,250,246,.6);text-align:center;margin-top:var(--s3)}

/* ---------- 8. Cards & grids ---------- */
.grid{display:grid;gap:var(--s5)}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:980px){.grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.grid--2,.grid--3,.grid--4{grid-template-columns:1fr}}

.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:clamp(1.4rem,2.6vw,2rem);box-shadow:var(--sh-1);
  transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease);
  height:100%;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:var(--line-2)}
.card__icon{
  width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin-bottom:var(--s4);
  background:linear-gradient(150deg,rgba(245,165,36,.20),rgba(232,65,11,.14));
  border:1px solid rgba(232,65,11,.20);
}
.card__icon svg{width:26px;height:26px;color:var(--ember)}
.card h3{margin-bottom:var(--s3);font-size:1.28rem}
.card p{color:var(--muted);font-size:var(--t-sm)}
.card--dark{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.13);box-shadow:none}
.card--dark p{color:rgba(253,250,246,.72)}
.card--dark:hover{border-color:rgba(255,207,107,.4)}

/* Numbered steps */
.step{counter-increment:step;position:relative;padding-top:var(--s5)}
.step::before{
  content:counter(step,decimal-leading-zero);
  font-family:var(--font-display);font-size:3.4rem;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(232,65,11,.42);
  display:block;margin-bottom:var(--s3);
}
.section--dark .step::before{-webkit-text-stroke-color:rgba(255,207,107,.5)}
.step h3{font-size:1.35rem;margin-bottom:var(--s3)}
.step p{color:var(--muted);font-size:var(--t-sm)}
.section--dark .step p{color:rgba(253,250,246,.72)}

/* ---------- 9. Price estimator ---------- */
.estimator{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-3);overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);
}
@media (max-width:860px){.estimator{grid-template-columns:1fr}}
.estimator__body{padding:clamp(1.5rem,3vw,2.5rem)}
.estimator__aside{
  background:var(--ink);color:var(--cream);padding:clamp(1.5rem,3vw,2.5rem);
  display:flex;flex-direction:column;justify-content:center;
}
.estimator__total{
  font-family:var(--font-display);font-size:clamp(2.8rem,7vw,3.9rem);line-height:1;
  color:#fff;letter-spacing:-.01em;
}
.estimator__total-label{font-size:var(--t-xs);letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:700;margin-bottom:var(--s3)}
.estimator__lines{margin-top:var(--s5);padding-top:var(--s5);border-top:1px solid rgba(255,255,255,.14);display:grid;gap:.55rem;font-size:var(--t-sm)}
.estimator__lines div{display:flex;justify-content:space-between;gap:var(--s4);color:rgba(253,250,246,.82)}
.estimator__lines div span:last-child{font-weight:700;color:#fff}
.estimator__fineprint{margin-top:var(--s5);font-size:var(--t-xs);color:rgba(253,250,246,.55);line-height:1.5}

/* ---------- 10. Forms ---------- */
.field{margin-bottom:var(--s4)}
.field label,.fieldset__legend{
  display:block;font-size:var(--t-sm);font-weight:700;margin-bottom:.45rem;color:var(--fg);
}
.field .hint{font-weight:500;color:var(--muted-2);font-size:var(--t-xs);margin-left:.35rem}
.input,.select,.textarea{
  width:100%;padding:.95rem 1.05rem;min-height:54px;
  background:var(--white);border:1.5px solid var(--line-2);border-radius:var(--r-sm);
  transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease);
  font-size:1rem;
}
.input::placeholder,.textarea::placeholder{color:var(--muted-2)}
.input:focus,.select:focus,.textarea:focus{
  outline:none;border-color:var(--ember);box-shadow:0 0 0 4px rgba(232,65,11,.12);
}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236E6058' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1.05rem center;padding-right:2.6rem}
.textarea{min-height:110px;resize:vertical}
.field--error .input,.field--error .select{border-color:var(--ember-dark)}
.field__err{display:none;color:var(--ember-dark);font-size:var(--t-xs);font-weight:600;margin-top:.35rem}
.field--error .field__err{display:block}
.field--error .input,.field--error .select,.field--error .textarea{border-color:var(--ember-dark);background:#FFF7F4}
.form__row{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4)}
@media (max-width:620px){.form__row{grid-template-columns:1fr;gap:0}}
.checkline{display:flex;gap:.7rem;align-items:flex-start;font-size:var(--t-sm);color:var(--muted);cursor:pointer}
.checkline input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--ember)}
/* Transactional SMS notice. Deliberately NOT a checkbox: consent for messages
   about a booking the customer just made comes from them giving us the number,
   so there is nothing to tick. Must stay visible without scrolling or
   expanding — a buried disclosure is a weaker consent record. */
.consent-note{font-size:var(--t-sm);color:var(--muted);line-height:1.55;margin:0 0 var(--s4)}
.form__reassure{
  display:flex;align-items:center;gap:.5rem;justify-content:center;
  font-size:var(--t-xs);color:var(--muted);margin-top:var(--s3);text-align:center;
}
.form__reassure svg{width:15px;height:15px;color:var(--green);flex:none}
.form-status{display:none;padding:1rem 1.15rem;border-radius:var(--r-sm);font-size:var(--t-sm);font-weight:600;margin-bottom:var(--s4)}
.form-status.is-visible{display:block}
.form-status--err{background:#FFF1EC;border:1px solid rgba(232,65,11,.3);color:var(--ember-dark)}
.form-status--ok{background:#EDFAF3;border:1px solid rgba(27,122,75,.3);color:var(--green)}

/* Booking card */
.bookcard{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-3);padding:clamp(1.5rem,3.4vw,2.75rem);
}
.bookcard__head{text-align:center;margin-bottom:var(--s6)}
.bookcard__head h2{font-size:clamp(1.7rem,3.6vw,2.4rem);margin-bottom:var(--s3)}
.bookcard__head p{color:var(--muted);font-size:var(--t-sm)}

/* Progress */
.progress{display:flex;align-items:center;gap:.5rem;margin-bottom:var(--s6)}
.progress__bar{flex:1;height:5px;border-radius:99px;background:var(--cream-3);overflow:hidden}
.progress__bar i{display:block;height:100%;width:33.33%;background:linear-gradient(90deg,var(--amber),var(--ember));border-radius:99px;transition:width var(--dur) var(--ease)}
.progress__label{font-size:var(--t-xs);font-weight:700;color:var(--muted);white-space:nowrap}
.formstep{display:none}
.formstep.is-active{display:block;animation:fadeUp .35s var(--ease)}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- 11. Menu ---------- */
.menu-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,3vw,2.5rem)}
@media (max-width:860px){.menu-cols{grid-template-columns:1fr}}
.menu-col h3{
  font-size:1.1rem;padding-bottom:var(--s3);margin-bottom:var(--s4);
  border-bottom:2px solid var(--ember);display:inline-block;letter-spacing:.04em;
}
.menu-list{display:grid;gap:.7rem}
.menu-list li{display:flex;justify-content:space-between;gap:var(--s4);align-items:baseline;font-size:var(--t-sm);padding-bottom:.7rem;border-bottom:1px dashed var(--line-2)}
.menu-list li:last-child{border-bottom:0}
.menu-list b{font-weight:600}
.menu-list em{font-style:normal;color:var(--ember);font-weight:700;white-space:nowrap}
.menu-list small{display:block;color:var(--muted-2);font-size:var(--t-xs);font-weight:500}

/* Pricing table */
.ptable{width:100%;border-collapse:collapse;font-size:var(--t-sm)}
.ptable th,.ptable td{padding:.95rem 1rem;text-align:left;border-bottom:1px solid var(--line)}
.ptable thead th{
  font-family:var(--font-body);font-size:var(--t-xs);letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);font-weight:700;background:var(--cream-2);
}
.ptable tbody tr:last-child td{border-bottom:0}
.ptable td:last-child{text-align:right;font-weight:700;white-space:nowrap}
.ptable tbody tr:hover{background:rgba(245,165,36,.06)}
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--white);box-shadow:var(--sh-1)}

/* ---------- 12. Gallery ---------- */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s3)}
.gallery-grid figure{
  position:relative;overflow:hidden;border-radius:var(--r);background:var(--ink-3);
  aspect-ratio:1;cursor:zoom-in;
}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.gallery-grid figure:hover img{transform:scale(1.06)}
.gallery-grid figcaption{
  position:absolute;inset:auto 0 0 0;padding:1.4rem 1rem .9rem;color:#fff;font-size:var(--t-xs);font-weight:600;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));opacity:0;transition:opacity var(--dur) var(--ease);
}
.gallery-grid figure:hover figcaption{opacity:1}
@media (max-width:820px){
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;z-index:200;background:rgba(10,7,5,.94);
  display:none;place-items:center;padding:var(--s5);
}
.lightbox.is-open{display:grid}
.lightbox img{max-width:min(1100px,92vw);max-height:86vh;width:auto;border-radius:var(--r);box-shadow:var(--sh-3)}
.lightbox__close{position:absolute;top:1.2rem;right:1.2rem;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;font-size:1.4rem}
.lightbox__close:hover{background:var(--ember)}

/* ---------- 13. Reviews ---------- */
.review{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:clamp(1.3rem,2.4vw,1.8rem);box-shadow:var(--sh-1);height:100%;
  display:flex;flex-direction:column;gap:var(--s3);
}
.review__stars{color:var(--amber);font-size:1.05rem;letter-spacing:.08em}
.review__quote{font-size:var(--t-sm);line-height:1.62;color:var(--ink-2);flex:1}
.review__meta{font-size:var(--t-xs);color:var(--muted);font-weight:600;padding-top:var(--s3);border-top:1px solid var(--line)}
.review__meta b{color:var(--ink);display:block;font-size:var(--t-sm)}
.review--feature{
  grid-column:span 2;background:var(--ink);color:var(--cream);border-color:var(--ink);
}
.review--feature .review__quote{color:rgba(253,250,246,.92);font-size:1.1rem;line-height:1.6}
.review--feature .review__meta{color:rgba(253,250,246,.6);border-top-color:rgba(255,255,255,.15)}
.review--feature .review__meta b{color:var(--gold)}
@media (max-width:680px){.review--feature{grid-column:span 1}}

/* Rating summary */
.ratingsummary{
  display:flex;align-items:center;gap:var(--s5);flex-wrap:wrap;justify-content:center;
  padding:var(--s5);background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--sh-1);margin-bottom:var(--s6);
}
.ratingsummary__score{font-family:var(--font-display);font-size:3rem;line-height:1;color:var(--ink)}
.ratingsummary__divider{width:1px;height:52px;background:var(--line-2)}
@media (max-width:560px){.ratingsummary__divider{display:none}}

/* ---------- 14. FAQ ---------- */
.faq{display:grid;gap:var(--s3)}
.faq details{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease);
}
.faq details[open]{border-color:rgba(232,65,11,.35);box-shadow:var(--sh-1)}
.faq summary{
  list-style:none;cursor:pointer;padding:1.15rem 3.4rem 1.15rem 1.3rem;position:relative;
  font-weight:700;font-size:1.02rem;color:var(--ink);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:'';position:absolute;right:1.3rem;top:50%;width:12px;height:12px;
  border-right:2.5px solid var(--ember);border-bottom:2.5px solid var(--ember);
  transform:translateY(-70%) rotate(45deg);transition:transform var(--dur) var(--ease);
}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq .faq__a{padding:0 1.3rem 1.3rem;color:var(--muted);font-size:var(--t-sm);line-height:1.65;max-width:80ch}

/* ---------- 15. Service area ---------- */
.area-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
@media (max-width:880px){.area-grid{grid-template-columns:1fr}}
.townlist{display:flex;flex-wrap:wrap;gap:.5rem}
.townlist li{
  font-size:var(--t-xs);font-weight:600;padding:.5rem .9rem;border-radius:var(--r-pill);
  background:var(--cream-2);border:1px solid var(--line);color:var(--ink-2);
}
.townlist li.is-core{background:rgba(232,65,11,.09);border-color:rgba(232,65,11,.28);color:var(--ember-dark)}
.mapbox{
  position:relative;aspect-ratio:4/3;border-radius:var(--r-lg);overflow:hidden;
  background:linear-gradient(160deg,#12261F,#0E1A24 55%,#1A1410);
  border:1px solid var(--line-dark);box-shadow:var(--sh-2);
  display:grid;place-items:center;
}
.mapbox__ring{
  position:absolute;border-radius:50%;border:2px dashed rgba(255,207,107,.5);
  width:74%;aspect-ratio:1;animation:pulseRing 5s var(--ease) infinite;
}
.mapbox__ring--2{width:46%;border-style:solid;border-color:rgba(232,65,11,.55);animation-delay:.8s}
@keyframes pulseRing{0%,100%{opacity:.5;transform:scale(1)}50%{opacity:.95;transform:scale(1.035)}}
.mapbox__pin{position:relative;z-index:2;text-align:center;color:var(--cream)}
.mapbox__pin b{display:block;font-family:var(--font-display);font-size:1.4rem;letter-spacing:.04em;color:#fff}
.mapbox__pin span{font-size:var(--t-xs);color:var(--gold);font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.mapbox__legend{
  position:absolute;left:1rem;bottom:1rem;z-index:2;font-size:var(--t-micro);font-weight:700;
  color:rgba(253,250,246,.7);letter-spacing:.06em;text-transform:uppercase;
}

/* ---------- 16. CTA band ---------- */
.ctaband{
  position:relative;background:var(--ink);color:var(--cream);overflow:hidden;
  padding-block:clamp(3.5rem,7vw,6rem);isolation:isolate;
}
.ctaband::before{
  content:'';position:absolute;inset:0;z-index:-1;
  background:
    var(--noise),
    radial-gradient(80% 120% at 50% 120%, rgba(232,65,11,.42), transparent 62%),
    radial-gradient(60% 90% at 88% 0%, rgba(245,165,36,.24), transparent 60%);
  background-size:170px 170px, auto, auto;
  background-blend-mode:overlay, normal, normal;
}
.ctaband h2{font-size:clamp(2rem,5vw,3.4rem);margin-bottom:var(--s4)}
.ctaband .lead{max-width:62ch;margin-inline:auto;color:rgba(253,250,246,.82)}

/* ---------- 17. Footer ---------- */
.footer{background:var(--ink-2);color:rgba(253,250,246,.72);padding-block:var(--s8) var(--s6);font-size:var(--t-sm)}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:var(--s6);padding-bottom:var(--s7);border-bottom:1px solid var(--line-dark)}
@media (max-width:880px){.footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer__grid{grid-template-columns:1fr;gap:var(--s6)}}
.footer h4{font-family:var(--font-body);font-size:var(--t-xs);letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:var(--s4);font-weight:700}
.footer a:hover{color:var(--gold)}
.footer ul{display:grid;gap:.6rem}
.footer__brand .brand{margin-bottom:var(--s4)}
/* The footer has the room to let the logo be seen rather than just recognised,
   so the mark is larger here than in the 72px header. */
.footer__brand .brand__mark{width:60px;height:60px;border-radius:16px}
.footer__brand p{max-width:34ch;line-height:1.6;font-size:var(--t-sm)}
.footer__bottom{display:flex;justify-content:space-between;gap:var(--s4);flex-wrap:wrap;padding-top:var(--s5);font-size:var(--t-xs);color:rgba(253,250,246,.5)}
.footer__legal{display:flex;gap:var(--s4);flex-wrap:wrap}
.footer__trust{
  display:flex;gap:var(--s4);flex-wrap:wrap;font-size:var(--t-xs);color:rgba(253,250,246,.6);
  padding-bottom:var(--s5);margin-bottom:var(--s5);border-bottom:1px solid var(--line-dark);
}
.footer__trust li{display:flex;align-items:center;gap:.4rem}
.footer__trust svg{width:14px;height:14px;color:var(--gold)}

/* ---------- 18. Sticky mobile CTA ---------- */
.stickycta{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  display:none;gap:.6rem;padding:.7rem .8rem calc(.7rem + env(safe-area-inset-bottom));
  background:rgba(21,16,13,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.12);
  transform:translateY(105%);transition:transform var(--dur) var(--ease);
}
.stickycta.is-visible{transform:translateY(0)}
.stickycta .btn{flex:1;min-height:52px;padding:.85rem 1rem;font-size:.9375rem}
.stickycta .btn--call{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.24);color:#fff;flex:0 0 auto;padding-inline:1.15rem}
@media (max-width:980px){
  .stickycta{display:flex}
  body{padding-bottom:78px}
}

/* ---------- 19. Utilities ---------- */
/* Reveal animations only apply when JS is present (html.js is set by an inline
   script in <head>). Without JS every section renders fully visible — this
   keeps the page readable for crawlers, previews, and any JS failure. */
.reveal{transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .reveal{opacity:0;transform:translateY(22px)}
.js .reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1;transform:none}
}
.badge{
  display:inline-flex;align-items:center;gap:.45rem;font-size:var(--t-micro);font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:.42rem .8rem;border-radius:var(--r-pill);
  background:rgba(232,65,11,.10);color:var(--ember-dark);border:1px solid rgba(232,65,11,.22);
}
.badge--gold{background:rgba(245,165,36,.16);color:#8A5A00;border-color:rgba(245,165,36,.4)}
.badge--green{background:rgba(27,122,75,.10);color:var(--green);border-color:rgba(27,122,75,.26)}
.section--dark .badge,.section--ink2 .badge{background:rgba(255,207,107,.14);color:var(--gold);border-color:rgba(255,207,107,.3)}
.mt-0{margin-top:0}.mt-4{margin-top:var(--s4)}.mt-5{margin-top:var(--s5)}.mt-6{margin-top:var(--s6)}.mt-7{margin-top:var(--s7)}
.mb-0{margin-bottom:0}.mb-4{margin-bottom:var(--s4)}.mb-5{margin-bottom:var(--s5)}.mb-6{margin-bottom:var(--s6)}
.mx-auto{margin-inline:auto}
.text-center{text-align:center}
.max-60{max-width:60ch}
.max-70{max-width:70ch}
.muted{color:var(--muted)}
.small{font-size:var(--t-sm)}
.xs{font-size:var(--t-xs)}
.divider{height:1px;background:var(--line);border:0;margin-block:var(--s7)}
.section--dark .divider,.section--ink2 .divider{background:var(--line-dark)}

/* ---------- Accent utilities ----------
   Themeable colour accents belong here, as CLASSES — never as an inline
   style="" attribute on the element.

   WHY: an inline declaration outranks every stylesheet in the cascade, so a
   colour hard-coded in markup cannot be overridden by a theme. That is
   precisely how the light variant first shipped gold (#FFCF6B) text onto
   white cards at 1.4:1 — unreadable, and unfixable from CSS.

   RULE: a colour may stay inline only if the surface the element sits on is
   identical in every theme. Otherwise it must use a class below.

   Named `.tint*`, NOT `.accent`: `.accent` already exists further up (line 126)
   for the ember headline highlights, and reusing the name here — where it sits
   later in the file at equal specificity — would have silently repainted those
   highlights gold in the dark design.

   The names describe the ROLE, not the hue, because the hue is the thing that
   changes: gold on the dark surfaces, deep ember on the light ones. */
.tint{color:var(--gold)}
.tint-2{color:var(--amber)}
.tint-brand{color:var(--ember)}

/* Icon chip in its accent treatment. */
.card__icon--accent{background:rgba(255,207,107,.12);border-color:rgba(255,207,107,.25)}
.card__icon--accent svg{color:var(--gold)}

/* Oversized display figure inside a card (about-page counters). */
.bigstat{font-family:var(--font-display);font-size:3rem;line-height:1;color:var(--gold);margin-bottom:var(--s2)}

/* Sub-section rule that only ever exists as a top border on a wrapper. */
.split-top{margin-top:var(--s6);padding-top:var(--s5);border-top:1px solid rgba(255,255,255,.14)}

/* Success mark on the thank-you page. */
.thanks__check{
  width:84px;height:84px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto var(--s5);background:rgba(27,122,75,.18);border:2px solid rgba(74,222,128,.5);
}
.thanks__check svg{stroke:#4ADE80}

/* Breadcrumb */
.crumb{font-size:var(--t-xs);color:var(--muted);display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:var(--s4)}
.crumb a:hover{color:var(--ember)}
.crumb span{color:var(--muted-2)}
/* The base .crumb rule above is tuned for a LIGHT surface, but every crumb in
   the site sits on the dark page hero — hence these two. They replace an
   inline style that used to be repeated on all 7 inner pages. */
.pagehero .crumb{color:rgba(253,250,246,.6)}
.pagehero .crumb__current{color:rgba(253,250,246,.9)}

/* Page hero (inner pages) */
.pagehero{background:var(--ink);color:var(--cream);padding-block:clamp(2.5rem,6vw,4.5rem);position:relative;overflow:hidden}
.pagehero::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(70% 100% at 85% 0%, rgba(245,165,36,.22), transparent 60%),
             radial-gradient(60% 90% at 5% 100%, rgba(232,65,11,.22), transparent 62%);
  pointer-events:none;
}
.pagehero>*{position:relative;z-index:1}
.pagehero h1{font-size:clamp(2.1rem,5.5vw,3.6rem);margin-bottom:var(--s4)}
.pagehero p{font-size:var(--t-lead);color:rgba(253,250,246,.8);max-width:64ch}

/* Prose (legal pages) */
.prose{max-width:72ch}
.prose h2{font-size:1.45rem;margin-top:var(--s7);margin-bottom:var(--s4);text-transform:none;font-family:var(--font-body);font-weight:800;letter-spacing:-.01em}
.prose h3{font-size:1.08rem;margin-top:var(--s5);margin-bottom:var(--s3);font-family:var(--font-body);font-weight:700;text-transform:none}
.prose p,.prose li{color:var(--muted);margin-bottom:var(--s4);line-height:1.7;font-size:var(--t-sm)}
.prose ul{list-style:disc;padding-left:1.3rem}
.prose a{color:var(--ember);text-decoration:underline}

/* Thank-you summary */
.thanks__summary{
  display:grid;gap:0;text-align:left;max-width:520px;margin:0 auto;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);
  border-radius:var(--r-lg);padding:var(--s2) var(--s5);
}
.thanks__summary:empty{display:none}
.thanks__row{
  display:flex;justify-content:space-between;gap:var(--s4);align-items:baseline;
  padding:.8rem 0;border-bottom:1px solid rgba(255,255,255,.10);font-size:var(--t-sm);
}
.thanks__row:last-child{border-bottom:0}
.thanks__row span{color:rgba(253,250,246,.6);font-weight:600}
.thanks__row strong{color:#fff;font-weight:700;text-align:right}

/* ==========================================================================
   20. Motion & marketing blocks
   Techniques adapted from the 21st.dev registry, reimplemented as CSS-only
   equivalents so the page keeps its zero-dependency, no-build footprint.
   Every effect below is disabled under prefers-reduced-motion.
   ========================================================================== */

/* --- Grain / noise texture -----------------------------------------------
   Layered into existing gradient backgrounds rather than as a new pseudo-
   element, so it never creates a stacking context over live text. */
:root{
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* --- Marquee -------------------------------------------------------------
   Track content must be duplicated exactly twice in the HTML; the animation
   translates -50% which lands seamlessly on the second copy. */
.marquee{
  position:relative;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.marquee__track{
  display:flex;gap:var(--marquee-gap,var(--s5));width:max-content;
  animation:marquee var(--marquee-duration,52s) linear infinite;
  will-change:transform;
}
.marquee--reverse .marquee__track{animation-direction:reverse}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track{animation-play-state:paused}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Review cards inside a marquee get a fixed width */
.marquee--reviews .review{flex:0 0 clamp(280px,80vw,360px)}
.marquee--reviews .review--feature{grid-column:auto}

/* Town pills inside a marquee */
.marquee--towns .townlist{flex-wrap:nowrap;gap:.5rem}

@media (prefers-reduced-motion:reduce){
  .marquee{-webkit-mask-image:none;mask-image:none;overflow-x:auto;padding-bottom:var(--s3)}
  .marquee__track{animation:none}
}

/* --- Animated stat band -------------------------------------------------- */
.stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--s5);text-align:center;
}
@media (max-width:820px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s6)}}
@media (max-width:420px){.stats{grid-template-columns:1fr}}
.stat__num{
  display:block;font-family:var(--font-display);
  font-size:clamp(2.5rem,6vw,3.8rem);line-height:1;
  background:linear-gradient(175deg,#FFFFFF 8%,var(--gold) 78%,var(--amber));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-variant-numeric:tabular-nums;
}
.section--cream .stat__num,.section:not(.section--dark):not(.section--ink2) .stat__num{
  background:linear-gradient(175deg,var(--ink) 10%,var(--ember) 85%);
  -webkit-background-clip:text;background-clip:text;
}
.stat__label{
  display:block;margin-top:var(--s3);
  font-size:var(--t-xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(253,250,246,.62);
}
.section--cream .stat__label,.section:not(.section--dark):not(.section--ink2) .stat__label{color:var(--muted)}

/* --- Bento grid ---------------------------------------------------------- */
.bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4)}
.bento__wide{grid-column:span 2}
.bento__tall{grid-row:span 2}
@media (max-width:1000px){
  .bento{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:660px){
  .bento{grid-template-columns:1fr}
  .bento__wide,.bento__tall{grid-column:span 1;grid-row:span 1}
}

/* --- Button shimmer sweep ------------------------------------------------ */
.btn--ember{position:relative;overflow:hidden;isolation:isolate}
.btn--ember::after{
  content:'';position:absolute;top:-10%;left:-160%;width:55%;height:120%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);
  transform:skewX(-18deg);pointer-events:none;
  animation:shimmer 5.5s var(--ease) infinite;
}
@keyframes shimmer{0%,70%{left:-160%}100%{left:170%}}

/* --- Card tag pills (used to fill wide bento cells) ---------------------- */
.card__tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:var(--s4)}
.card__tags li{
  font-size:var(--t-micro);font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  padding:.38rem .72rem;border-radius:var(--r-pill);
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);
  color:rgba(253,250,246,.8);
}
.section--cream .card__tags li,
.section:not(.section--dark):not(.section--ink2) .card__tags li{
  background:var(--cream-2);border-color:var(--line);color:var(--muted);
}

/* --- Card border glow ---------------------------------------------------- */
.card--glow{position:relative}
.card--glow::before{
  content:'';position:absolute;inset:0;border-radius:inherit;padding:1.5px;
  background:linear-gradient(135deg,rgba(245,165,36,.85),rgba(232,65,11,.55) 45%,transparent 72%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  opacity:0;transition:opacity var(--dur) var(--ease);pointer-events:none;
}
.card--glow:hover::before{opacity:1}

/* --- Slow ambient glow (hero + CTA band) --------------------------------- */
@keyframes ambientDrift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-2.5%,1.5%,0) scale(1.06)}
}
.hero__bg::after,
.ctaband::before{animation:ambientDrift 22s ease-in-out infinite}

/* --- Reading progress bar ------------------------------------------------ */
.progressbar{
  position:fixed;top:0;left:0;right:0;height:2px;z-index:80;
  background:linear-gradient(90deg,var(--amber),var(--ember));
  transform-origin:0 50%;transform:scaleX(0);
  pointer-events:none;
}
@supports (animation-timeline:scroll()){
  .progressbar{animation:scrollProgress linear;animation-timeline:scroll(root block)}
  @keyframes scrollProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}

/* --- Gradient accent text ------------------------------------------------ */
.grad-text{
  background:linear-gradient(100deg,var(--amber) 0%,var(--ember-2) 55%,var(--ember) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* --- Reduced motion: strip all decorative animation ---------------------- */
@media (prefers-reduced-motion:reduce){
  .btn--ember::after{display:none}
  .hero__bg::after,.ctaband::before{animation:none}
  /* The poster/video swap is a cross-fade for the sake of a lossy encode, not
     an effect anyone asked to see — cut straight to the video instead. */
  .hero__poster,.hero__media{transition:none}
  .progressbar{display:none}
}

/* ---------- 21. Print ---------- */
@media print{
  .header,.stickycta,.footer,.ctaband{display:none}
  body{background:#fff}
  .section{padding-block:1rem}
}
