/* Design layer (spec 8c/8d). Brands change the look ONLY by overriding the tokens in the first :root block
   from sites/<brand>/theme.css. Everything below reads tokens; nothing here is brand-specific. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: calc(.35s * var(--motion)); }

:root {
  /* motion */
  --motion: 1;                                 /* duration multiplier: >1 slower/calmer, <1 snappier */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --btn-ease: var(--ease);                     /* bouncy brands: cubic-bezier(.34, 1.56, .64, 1) */
  --btn-pop: 1.04;                             /* hover scale of buttons */
  --float-dist: -10px;                         /* hero image float amplitude */
  --ribbon-speed: 30s;
  --logo-anim: none;                           /* keyframes name played on logo hover: none | wiggle */
  /* shape */
  --hero-shape: 40% 60% 55% 45% / 48% 42% 58% 52%;
  --hero-ratio: 5 / 4;
  --card-tilt: 0deg;                           /* bento cards alternate +/- this */
  --card-surface: var(--card);
  --card-border: transparent;
  --card-blur: none;                           /* glass cards: blur(8px) */
  --rule: transparent;                         /* thin rule under h2 */
  --rule-w: 0px;
  --btn-ring: 0 0 0 0 transparent;             /* extra box-shadow ring on buttons */
  --ribbon-bg: var(--accent);
  --ribbon-ink: var(--on-accent);
  --ribbon-tilt: 0deg;
  --ribbon-style: normal;
  --ribbon-weight: 600;
  --ribbon-tracking: .02em;
  --head-weight: 700;
  /* colour roles that must pass AA on --bg (override when --accent is too light for text) */
  --link: var(--accent);
  --focus: var(--accent);
  /* depth */
  --shadow: 0 10px 30px rgba(0, 0, 0, .09);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .14);
  /* fluid type + space */
  --step--1: .9rem;                            /* plain values first: where clamp() is unknown (Safari 13.0, Samsung < 11) a var() holding it would be invalid and padding would collapse to 0 */
  --step-0: 1.05rem;
  --step-1: 1.3rem;
  --step-2: 1.8rem;
  --step-3: 2.6rem;
  --space: 1.4rem;
  --space-l: 3rem;
  --cta-h: 4.6rem;
  /* booking picks */
  --pick-pop: 1.025;                           /* spring overshoot when a card/day/time is chosen */
  --burst-2: var(--accent);                    /* second confetti colour on the booking success screen */
  /* translucent ink + tinted surfaces: plain fallbacks here, real colour mixes in the @supports block below */
  --ink-6: rgba(0, 0, 0, 0.06);
  --ink-9: rgba(0, 0, 0, 0.09);
  --ink-10: rgba(0, 0, 0, 0.1);
  --ink-12: rgba(0, 0, 0, 0.12);
  --ink-16: rgba(0, 0, 0, 0.16);
  --ink-18: rgba(0, 0, 0, 0.18);
  --ink-20: rgba(0, 0, 0, 0.2);
  --ink-22: rgba(0, 0, 0, 0.22);
  --ink-25: rgba(0, 0, 0, 0.25);
  --ink-30: rgba(0, 0, 0, 0.3);
  --tint-ico: var(--card);
  --tint-next: var(--card);
  --err-bg: #FBE9E7;
  --bar-bg: var(--bg);
}
@supports (font-size: clamp(1rem, 1vw, 2rem)) {
  :root {
    --step--1: clamp(.875rem, .85rem + .1vw, .95rem);
    --step-0: clamp(1rem, .95rem + .25vw, 1.125rem);
    --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
    --step-3: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem);
    --space: clamp(1rem, .7rem + 1.5vw, 2rem);
    --space-l: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  }
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --ink-6: color-mix(in srgb, var(--ink) 6%, transparent);
    --ink-9: color-mix(in srgb, var(--ink) 9%, transparent);
    --ink-10: color-mix(in srgb, var(--ink) 10%, transparent);
    --ink-12: color-mix(in srgb, var(--ink) 12%, transparent);
    --ink-16: color-mix(in srgb, var(--ink) 16%, transparent);
    --ink-18: color-mix(in srgb, var(--ink) 18%, transparent);
    --ink-20: color-mix(in srgb, var(--ink) 20%, transparent);
    --ink-22: color-mix(in srgb, var(--ink) 22%, transparent);
    --ink-25: color-mix(in srgb, var(--ink) 25%, transparent);
    --ink-30: color-mix(in srgb, var(--ink) 30%, transparent);
    --tint-ico: color-mix(in srgb, var(--accent) 24%, var(--card-surface));
    --tint-next: color-mix(in srgb, var(--accent) 16%, var(--bg));
    --err-bg: color-mix(in srgb, #B3261E 10%, var(--bg));
    --bar-bg: color-mix(in srgb, var(--bg) 93%, transparent);
  }
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-size: var(--step-0); overflow-x: hidden; overflow-x: clip;
  padding: 0 0 var(--cta-h);
  padding: 0 env(safe-area-inset-right) calc(var(--cta-h) + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}
@media (min-width: 800px) { body { padding-bottom: 0; padding-bottom: env(safe-area-inset-bottom); } }
/* application page: a long form with its own submit button, so no sticky booking bar */
.pg-apply .cta-bar { display: none; }
.pg-apply { padding-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
/* footer: the team links sit on their own line, small and quiet (still AA: ink on the card colour, underlined) */
.foot-team { font-size: .85rem; margin-top: .2rem; }
.foot-team a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-30); text-underline-offset: .2em; }
.foot-team a:hover, .foot-team a:focus-visible { text-decoration-color: currentColor; }
/* application form (shares the .bf field styles with the booking details) */
.apply-contractor { font-size: var(--step--1); }
#apply { min-height: 0; }
.apply-form fieldset { margin: 1rem 0 0; padding: 0; border: 0; min-inline-size: 0; }
.apply-form legend { padding: 0; font-weight: 600; }
.apply-form .hint { margin: .1rem 0 .3rem; font-size: var(--step--1); }
.apply-form .days, .apply-form .yn { margin-top: .4rem; }
.apply-form .days label, .apply-form .yn label { display: inline-flex; align-items: center; min-height: 44px; margin: 0 .5rem .5rem 0; padding: 0 .9rem; border: 2px solid var(--ink-18); border-radius: 99px; background: var(--card-surface, var(--bg)); cursor: pointer; }
.apply-form .days input, .apply-form .yn input { width: 1.2rem; min-height: 0; height: 1.2rem; margin: 0 .5rem 0 0; }
.apply-form .tick { display: flex; align-items: flex-start; margin: .9rem 0 0; }
.apply-form .tick input { flex: none; width: 1.4rem; min-height: 0; height: 1.4rem; margin: .15rem .6rem 0 0; }
.apply-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-form .apply-actions { margin-top: 1.2rem; }
.apply-msg { margin: .8rem 0 0; font-weight: 600; }
.apply-msg:empty { display: none; }
.apply-msg.err { color: #8C1D18; }
/* pages with their own bottom action bar (booking: <body class="pg-book">) or no booking CTA (team app) do not get the sticky CTA */
.pg-book { padding-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.pg-book .cta-bar { display: none; }
body:has(#app) { padding-bottom: env(safe-area-inset-bottom); }
body:has(#app) .cta-bar { display: none; }

a { color: var(--link); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); text-wrap: balance; line-height: 1.15; }
h1 { font-size: var(--step-2); }
h2 { font-size: var(--step-1); margin-top: var(--space-l); }
h2::after { content: ""; display: block; width: var(--rule-w); height: 2px; margin-top: .45rem; background: var(--rule); }
p { text-wrap: pretty; }
main { padding: var(--space); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* header + logo */
.site-header { padding: .8rem var(--space); }
nav a { padding: .5rem .1rem; }
nav .btn { padding: .55rem 1.1rem; }
.brand img { transform-origin: 50% 60%; }
.brand:hover img, .brand:focus-visible img { animation: var(--logo-anim) calc(.5s * var(--motion)) var(--ease); }
@keyframes wiggle { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@media (max-width: 520px) { nav { gap: .2rem .9rem; } nav a:not(.btn) { font-size: var(--step--1); } .site-header { gap: .4rem 1rem; } }

/* buttons */
.btn, button.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 600; box-shadow: var(--btn-ring);
  transition: translate calc(.25s * var(--motion)) var(--btn-ease), scale calc(.25s * var(--motion)) var(--btn-ease), box-shadow .25s var(--ease);
}
.btn:hover { translate: 0 -2px; scale: var(--btn-pop); box-shadow: var(--btn-ring), var(--shadow); }
.btn:active { scale: .97; }
.btn-ghost { min-height: 44px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 2px solid currentColor; border-radius: var(--radius); cursor: pointer; }
.btn[disabled], .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; translate: none; scale: none; }

/* hero */
.hero { padding: var(--space) 0; gap: var(--space); }
.hero h1 { font-size: var(--step-3); letter-spacing: -.01em; line-height: 1.08; margin: 0 0 .6em; }
.hero p { font-size: var(--step-1); max-width: 34ch; }
.hero-media { position: relative; width: 100%; max-width: 34rem; margin-left: auto; margin-right: auto; }
.hero-media img, .hero-media video { display: block; width: 100%; height: auto; aspect-ratio: var(--hero-ratio); object-fit: cover; border-radius: var(--hero-shape); box-shadow: var(--shadow); }
.hero-media video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: 100%; box-shadow: none; }
.float { animation: float calc(7s * var(--motion)) ease-in-out infinite; }
@keyframes float { 50% { translate: 0 var(--float-dist); } }

/* looping clip component (spec 8d): <video class="clip"> laid over its poster image, faded in once playing */
.media { position: relative; margin: 0; }
.media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media > video.clip { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.media > video.clip, .hero-media > video.clip { opacity: 0; transition: opacity calc(.6s * var(--motion)) var(--ease); pointer-events: none; }
.media > video.clip { border-radius: var(--radius); }
video.clip.on { opacity: 1; }
.media figcaption { font-size: var(--step--1); margin-top: .5rem; }

/* bento feature grid */
.bento { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 0; list-style: none; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento li:nth-child(1) { grid-column: span 2; grid-row: span 2; font-size: var(--step-1); display: flex; flex-direction: column; justify-content: flex-end; }
  .bento li:nth-child(1) strong { font-size: var(--step-2); }
  .bento li:nth-child(4) { grid-column: span 2; }
}
.bento li, .card {
  background: var(--card-surface); border: 1px solid var(--card-border); -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur);
  padding: 1.25rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: translate calc(.3s * var(--motion)) var(--btn-ease), rotate calc(.3s * var(--motion)) var(--btn-ease), box-shadow .3s var(--ease);
}
.bento li strong { display: block; font-family: var(--head); font-size: 1.15em; margin-bottom: .3rem; }
.bento li:nth-child(odd) { rotate: calc(-1 * var(--card-tilt)); }
.bento li:nth-child(even) { rotate: var(--card-tilt); }
@media (hover: hover) { .bento li:hover, .card:hover { rotate: 0deg; translate: 0 -5px; box-shadow: var(--shadow-lift); } }

/* gallery + clip strip */
.gallery, .clips { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.clips { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.clips .media img { aspect-ratio: 4 / 5; }

/* ribbon of brand words (full-bleed, decorative); the wrap clips the tilted band so the page never scrolls sideways */
.ribbon-wrap { overflow-x: hidden; overflow-x: clip; margin: var(--space-l) calc(50% - 50vw); padding: 1rem 0; }
.ribbon {
  overflow: hidden; white-space: nowrap; margin: 0 -2rem; padding: .8rem 0;
  background: var(--ribbon-bg); color: var(--ribbon-ink); rotate: var(--ribbon-tilt);
  font-family: var(--head); font-size: var(--step-1); font-style: var(--ribbon-style); font-weight: var(--ribbon-weight); letter-spacing: var(--ribbon-tracking);
}
.ribbon > div { display: inline-block; animation: slide calc(var(--ribbon-speed) * var(--motion)) linear infinite; }
@keyframes slide { to { translate: -50% 0; } }

/* FAQ */
details { background: var(--card-surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: .2rem 1.1rem; margin: .7rem 0; }
summary { min-height: 44px; display: flex; align-items: center; }
.center { text-align: center; }

/* sticky mobile CTA */
.cta-bar {
  position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 20; padding: .6rem 1rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
}
@media (min-width: 800px) { .cta-bar { display: none; } }

/* booking flow (shared/booking-widget.js): native-app feel on phones; brand personality comes from --motion, --btn-ease, --pick-pop, --radius */
.bf { max-width: 640px; }
#book { min-height: 34rem; } /* reserve room so the footer does not jump when the widget mounts (CLS) */
.bf h2 { margin: 1.4rem 0 .8rem; font-size: var(--step-1); }
.bf h2::after { display: none; }
.bf h2:focus { outline: none; }
.bf > section:not([hidden]) { animation: bf-in calc(.35s * var(--motion)) var(--ease); } /* blur-fade between steps */
@keyframes bf-in { from { opacity: 0; translate: 0 10px; filter: blur(3px); } }
@keyframes pick { 0% { scale: .97; } 55% { scale: var(--pick-pop); } 100% { scale: 1; } } /* spring on select (haptic-like) */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; counter-reset: s; }
.stepper li { counter-increment: s; font-size: var(--step--1); line-height: 1.2; color: var(--ink); opacity: .7; }
.stepper li::before { content: ""; display: block; height: 6px; margin-bottom: .35rem; border-radius: 99px; background: var(--ink-18); transition: background calc(.3s * var(--motion)) var(--ease); }
.stepper li.done, .stepper li[aria-current] { opacity: 1; }
.stepper li.done::before, .stepper li[aria-current]::before { background: var(--accent); }
.stepper li[aria-current] { font-weight: 700; }
.bf .bf-choice, .bf .bf-day, .bf .bf-slot, .bf .bf-seg-opt { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bf-choice input, .bf-day input, .bf-slot input, .bf-seg-opt input { position: absolute; z-index: 1; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.bf-choice input:focus-visible + span, .bf-day input:focus-visible + span, .bf-slot input:focus-visible + span, .bf-seg-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 1. service cards */
.bf-choices { display: grid; gap: .9rem; }
@media (min-width: 560px) { .bf-choices { grid-template-columns: repeat(2, 1fr); } }
.bf-card {
  position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--card-surface);
  border: 2px solid var(--ink-16); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, scale calc(.2s * var(--motion)) var(--btn-ease);
}
.bf-media { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--card); }
.bf-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale calc(.6s * var(--motion)) var(--ease); }
.bf-body { display: grid; gap: .5rem; padding: .85rem 1rem 1rem; }
.bf-title { display: flex; align-items: center; gap: .6rem; }
.bf-title b { font-family: var(--head); font-size: var(--step-1); line-height: 1.2; }
.bf-ico { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--tint-ico); color: var(--ink); transition: background .2s, color .2s; }
.bf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bf-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 99px; font-size: var(--step--1); font-weight: 600; background: var(--bg); border: 1px solid var(--ink-18); }
.bf-chip svg { width: 1em; height: 1em; }
.bf-choice small { display: block; font-size: var(--step--1); }
.bf-check { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); opacity: 0; scale: .4; transition: opacity .2s, scale calc(.35s * var(--motion)) var(--btn-ease); }
.bf-check svg { width: 1.15rem; height: 1.15rem; stroke-width: 3; }
.bf-choice input:checked + .bf-card { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); animation: pick calc(.45s * var(--motion)) var(--btn-ease); }
.bf-choice input:checked + .bf-card .bf-check { opacity: 1; scale: 1; }
.bf-choice input:checked + .bf-card .bf-ico { background: var(--accent); color: var(--on-accent); }
.bf-choice:active .bf-card { scale: .98; }

/* 2. day strip */
.bf-month { margin: -.3rem 0 .3rem; font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bf-days {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 4.9rem; gap: .5rem; overflow-x: auto;
  margin-left: -.5rem; margin-right: -.5rem; padding: .35rem .5rem .9rem; scroll-padding-left: .5rem; scroll-padding-right: .5rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 .5rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 .5rem, #000 calc(100% - 2.5rem), transparent); /* edge fade says "there is more" */
}
.bf-day { scroll-snap-align: start; }
.bf-day span {
  display: grid; justify-items: center; gap: .1rem; padding: .55rem .2rem .5rem; line-height: 1.15;
  border: 2px solid var(--ink-18); border-radius: calc(var(--radius) + 4px); background: var(--card-surface);
  transition: border-color .15s, background .15s, scale calc(.15s * var(--motion)) var(--btn-ease);
}
.bf-day small { font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.bf-day small:last-child { font-size: .72rem; letter-spacing: 0; text-transform: none; }
.bf-day b { font-size: 1.5rem; font-family: var(--head); }
.bf-day input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); animation: pick calc(.4s * var(--motion)) var(--btn-ease); }
.bf .bf-day.closed { cursor: not-allowed; }
.bf-day.closed input { cursor: not-allowed; }
.bf-day.closed span { border-style: dashed; background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--ink-6) 6px 12px); }
.bf-day.closed b { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; }
.bf-day:not(.closed):active span { scale: .94; }
.bf .bf-other { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-top: .3rem; font-weight: 600; }
.bf-other input { flex: 1 1 11rem; width: auto; }

/* 3. time: segmented control + pill grid */
.bf-seg { display: flex; gap: .25rem; margin: 0 0 1rem; padding: .25rem; border-radius: calc(var(--radius) + 6px); background: var(--ink-9); }
.bf-seg[hidden] { display: none; }
.bf .bf-seg-opt { flex: 1 1 0; }
.bf-seg-opt span { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; border-radius: calc(var(--radius) + 2px); font-size: var(--step--1); font-weight: 600; transition: background .2s, box-shadow .2s; }
.bf-seg-opt small { font-size: .78rem; }
.bf-seg-opt input:checked + span { background: var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, .16); }
.bf-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 359px) { .bf-slots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .bf-slots { grid-template-columns: repeat(4, 1fr); } }
.bf-slot span, .bf-skel { min-height: 52px; border-radius: calc(var(--radius) + 8px); }
.bf-slot span {
  display: flex; align-items: center; justify-content: center; font-weight: 600; background: var(--card-surface);
  border: 2px solid var(--ink-18); transition: border-color .15s, background .15s, scale calc(.15s * var(--motion)) var(--btn-ease);
}
.bf-slot input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); animation: pick calc(.4s * var(--motion)) var(--btn-ease); }
.bf-slot:active span { scale: .94; }
.bf-skel { display: block; background: var(--ink-10); animation: skel calc(.9s * var(--motion)) ease-in-out infinite alternate; }
@keyframes skel { to { opacity: .4; } }
.bf-slots > .btn-ghost, .bf-empty, .bf-skel.wide { grid-column: 1 / -1; }
.bf-skel.wide { min-height: 52px; margin-bottom: .4rem; border-radius: calc(var(--radius) + 6px); }
.bf-empty { display: grid; justify-items: center; gap: .6rem; padding: 1.4rem 1rem; text-align: center; border: 2px dashed var(--ink-22); border-radius: var(--radius); }
.bf-empty p { margin: 0; max-width: 30ch; }
.bf-empty-ico { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--card); }
.bf-sub { margin-top: -.4rem; font-weight: 600; }

/* 4. details */
.bf input:not([type=radio]), .bf textarea, .bf select { font-size: 16px; font-size: max(16px, 1em); min-height: 48px; border: 2px solid var(--ink-30); border-radius: 8px; background: #fff; color: #1a1a1a; }
.bf textarea { min-height: 6rem; }
.bf label { margin: .9rem 0 .3rem; }
.bf .details label > input, .bf .details label > textarea { margin-top: .3rem; }
.bf input[aria-invalid="true"] { border-color: #B3261E; }
.bf input:user-invalid { border-color: #B3261E; } /* own rule: an unknown pseudo-class would void a whole selector list */
.bf input[aria-invalid="true"] { background: #FFF8F7; }
.bf-err { margin: .35rem 0 0; font-size: var(--step--1); font-weight: 600; color: #8C1D18; }
.bf-err:empty { display: none; }

/* sticky bar: summary pill, message, Back/Continue, privacy note */
.bf-bar {
  position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: .6rem .75rem; justify-content: space-between;
  margin: 1.2rem calc(-1 * var(--space)) 0; padding: .7rem var(--space) .75rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  background: var(--bar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
}
.bf-bar .btn, .bf-bar .btn-ghost { min-height: 52px; }
.bf-bar .btn { flex: 1 1 auto; }
.bf-bar.last .btn { flex-basis: 55%; font-size: var(--step-1); }
.bf-bar .btn-ghost[hidden] { display: none; }
@media (min-width: 640px) { .bf-bar { margin-left: 0; margin-right: 0; border-radius: var(--radius); } .bf-bar .btn { flex: 0 1 auto; } }
/* while typing, the bar drops into the flow so it never covers the field or rides on the keyboard */
@media (max-width: 799px) { .bf:has(input:not([type=radio]):focus, textarea:focus) .bf-bar { position: static; box-shadow: none; } }
.bf-sum {
  flex: 1 0 100%; min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .3rem .5rem .3rem 1rem;
  font: inherit; font-size: var(--step--1); font-weight: 600; text-align: left; color: var(--ink); cursor: pointer;
  background: var(--card-surface); border: 1px solid var(--ink-16); border-radius: 99px;
}
.bf-sum[hidden], .bf-privacy[hidden] { display: none; }
.bf-sum-text { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-sum .bf-ico { width: 2rem; height: 2rem; }
.bf-privacy { flex: 1 0 100%; margin: 0; font-size: var(--step--1); text-align: center; }
.bf .msg { flex: 1 0 100%; min-height: 0; margin: 0; }
.bf .msg:empty { display: none; }
.bf .msg:not(:empty) { padding: .7rem 1rem; border-radius: 8px; background: var(--err-bg); color: #8C1D18; font-weight: 600; }
.bf .msg.info:not(:empty) { background: var(--card); color: var(--ink); }

/* summary bottom sheet (native modal <dialog>) */
.bf-sheet {
  position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-width: 640px; max-height: 85vh; max-height: 85dvh; margin: 0 auto; padding: 0; border: 0;
  border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0; background: var(--bg); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
}
.bf-sheet::backdrop { background: rgba(0, 0, 0, .45); }
.bf-sheet[open] { animation: sheet-up calc(.35s * var(--motion)) var(--ease); }
@keyframes sheet-up { from { translate: 0 100%; } }
.bf-sheet > div { padding: .6rem 1.2rem 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
.bf-sheet > div::before { content: ""; display: block; width: 2.6rem; height: 5px; margin: 0 auto .6rem; border-radius: 99px; background: var(--ink-25); }
.bf-sheet h2 { margin: .2rem 0 .5rem; }
.bf-rows { margin: 0 0 1rem; }
.bf-rows div { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--ink-12); }
.bf-rows dt { font-size: var(--step--1); }
.bf-rows dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bf-rows .btn-ghost { min-height: 44px; padding: .3rem .9rem; font-size: var(--step--1); border-width: 1px; }
.bf-sheet .btn { width: 100%; min-height: 52px; }
@media (min-width: 800px) { .bf-sheet { top: 0; right: 0; bottom: 0; left: 0; margin: auto; max-width: 26rem; height: fit-content; border-radius: var(--radius); } }

/* success */
.bf-thanks { max-width: 34rem; margin-left: auto; margin-right: auto; padding: var(--space) 0; text-align: center; }
.bf-burst { position: relative; width: 5rem; height: 5rem; margin: 1.5rem auto 1.2rem; }
.bf-burst::before, .bf-burst::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring calc(1.3s * var(--motion)) var(--ease) .15s 2; }
.bf-burst::after { animation-delay: .5s; }
@keyframes ring { from { opacity: .6; scale: 1; } to { opacity: 0; scale: 2.3; } }
.bf-thanks .tick { position: relative; z-index: 1; width: 5rem; height: 5rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: pop calc(.5s * var(--motion)) var(--btn-ease) backwards; }
.bf-thanks .tick svg { width: 2.5rem; height: 2.5rem; stroke-width: 3; stroke-dasharray: 30; animation: draw calc(.45s * var(--motion)) var(--ease) .3s backwards; }
@keyframes draw { from { stroke-dashoffset: 30; } }
.bf-thanks .tick::after { /* CSS-only confetti: eight dots fly out once */
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; opacity: 0; pointer-events: none;
  box-shadow: 0 -70px var(--accent), 50px -50px var(--burst-2), 70px 0 var(--accent), 50px 50px var(--burst-2), 0 70px var(--accent), -50px 50px var(--burst-2), -70px 0 var(--accent), -50px -50px var(--burst-2);
  animation: confetti calc(.9s * var(--motion)) var(--ease) .25s;
}
@keyframes confetti { from { opacity: 1; scale: .2; } 70% { opacity: 1; } to { opacity: 0; scale: 1.15; } }
@keyframes pop { from { scale: .3; opacity: 0; } }
.bf-thanks h2 { margin: 0 0 .4rem; font-size: var(--step-2); }
.bf-when { font-family: var(--head); font-size: var(--step-1); font-weight: 700; }
.bf-cal { margin: 1.2rem 0; padding: 1rem; border-radius: var(--radius); background: var(--card-surface); border: 1px solid var(--card-border); }
.bf-cal .btn { width: 100%; min-height: 52px; }
.bf-cal .btn svg { width: 1.2em; height: 1.2em; }
.bf-cal p { margin: .6rem 0 0; font-size: var(--step--1); }
.bf-thanks h3 { margin: 1.6rem 0 .7rem; font-family: var(--head); font-size: var(--step-1); }
.bf-next { display: grid; gap: .7rem; padding: 0; margin: 0 0 1.4rem; list-style: none; counter-reset: n; text-align: left; }
.bf-next li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; align-items: center; }
.bf-next li::before { content: counter(n); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint-next); font-weight: 700; }
.bf-thanks .btn-ghost { display: inline-flex; align-items: center; text-decoration: none; }

/* manage / cancel page */
#manage { background: var(--card-surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); max-width: 640px; }
#manage h2 { margin-top: 0; }
#manage h2::after { display: none; }
#manage .btn { width: 100%; max-width: 22rem; min-height: 52px; }
#manage .bk-status { display: inline-block; padding: .3rem .9rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--ink-20); font-weight: 600; }

/* scroll-driven reveal: 'backwards' fill so brand rotate/translate on the element survive after the reveal */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(32px) scale(.98); } }
}

/* reduced motion: no animation, no transition, no smooth scroll, no page cross-fade (clips stay on their poster in motion.js) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn:hover, .bento li:hover, .card:hover, .bf-day:hover span, .bf-slot:hover span, .bf-choice:hover .bf-media img, :active, :active > span, .bf-choice:active .bf-card { translate: none; scale: none; }
}

/* before/after slider (shared/before-after.js): a transparent range input drives --pos; aspect-ratio reserves the space */
.ba-fig { margin: 0 auto var(--space); max-width: 44rem; }
.ba { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); --pos: 50%; touch-action: pan-y; background: var(--card); }
.ba img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .45); pointer-events: none; }
.ba .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; margin: -22px 0 0 -22px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.ba input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba .tag { position: absolute; top: .6rem; padding: .2rem .7rem; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .85rem; pointer-events: none; }
.tag-l { left: .6rem; } .tag-r { right: .6rem; }
.ba-note { font-size: var(--step--1); text-align: center; margin-top: .6rem; }

/* chat assistant (shared/chat.js): bottom sheet on phones, floating panel from 800px */
.chat-fab { position: fixed; z-index: 30; min-height: 48px; right: 1rem; bottom: calc(var(--cta-h) + .8rem); right: max(1rem, env(safe-area-inset-right)); bottom: calc(var(--cta-h) + .8rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lift); }
body:has(#book) .chat-fab { bottom: calc(8.6rem + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { .chat-fab, body:has(#book) .chat-fab { bottom: calc(1.2rem + env(safe-area-inset-bottom)); } }
/* on phones the launcher steps aside while the booking bar shows a message (an error can be three lines tall) */
@media (max-width: 799px) { body:has(#book .msg:not(:empty)) .chat-fab { display: none; } }
/* ...and once the summary pill makes the bar taller (steps 2-4), so it never sits on Continue */
@media (max-width: 799px) { body:has(#book .bf-sum:not([hidden]), #book .bf-thanks) .chat-fab { display: none; } }

/* touch targets: header, footer and tiny controls reach 44px on touch screens and phone widths */
@media (pointer: coarse), (max-width: 520px) {
  nav a:not(.btn), .site-footer p a, .brand { display: inline-flex; align-items: center; min-height: 44px; }
  nav a:not(.btn) { padding-left: .3rem; padding-right: .3rem; }
  .site-footer p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .5rem; margin: 0; }
  .site-footer a { padding-left: .25rem; padding-right: .25rem; }
  .optout label { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; }
  .optout input { width: 1.4rem; height: 1.4rem; flex: none; margin: 0; }
}
.chat-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 39; background: rgba(0, 0, 0, .4); }
.chat {
  position: fixed; z-index: 40; top: auto; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column;
  max-height: 85vh; max-height: min(85dvh, 640px); background: var(--bg); color: var(--ink); overscroll-behavior: contain;
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.chat[hidden], .chat-scrim[hidden] { display: none; }
html.chat-open { overflow: hidden; }
@media (min-width: 800px) {
  .chat { top: auto; right: 1.2rem; bottom: 4.8rem; bottom: calc(4.8rem + env(safe-area-inset-bottom)); left: auto; width: 380px; max-height: 70vh; max-height: min(70vh, 620px); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
  .chat-scrim { display: none; }
  html.chat-open { overflow: auto; }
}
.chat header { display: flex; justify-content: space-between; align-items: center; padding: .6rem .6rem .6rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: inherit; }
.chat-x { background: none; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.chat-log { overflow: auto; padding: 1rem; display: grid; gap: .6rem; align-content: start; flex: 1 1 auto; min-height: 7rem; }
.msg-bot, .msg-me { padding: .6rem .9rem; border-radius: 14px; max-width: 90%; overflow-wrap: anywhere; }
.msg-bot { background: var(--card); justify-self: start; }
.msg-me { background: var(--accent); color: var(--on-accent); justify-self: end; }
.msg-bot a { color: var(--link); }
.chat-replies { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid rgba(0, 0, 0, .1); max-height: 34vh; overflow: auto; flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; min-height: 44px; border: 2px solid var(--accent); background: var(--bg); color: var(--ink); border-radius: 99px; padding: .3rem 1rem; font: inherit; font-size: var(--step--1); cursor: pointer; text-decoration: none; }
.chip.primary { background: var(--accent); color: var(--on-accent); }
.chip:focus-visible, .chat-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.chat header .chat-x:focus-visible { outline-color: var(--on-accent); }
.chat-date { flex: 1 0 100%; display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); min-height: 44px; }
.chat-date input { font: inherit; font-size: 16px; min-height: 44px; }
.chat-form { display: flex; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid rgba(0, 0, 0, .1); flex: 0 0 auto; }
.chat-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 16px; padding: .4rem .8rem; border: 2px solid var(--accent); border-radius: 99px; background: #fff; color: #111; }
.chat-form .btn { min-height: 44px; }
@media (prefers-reduced-motion: no-preference) { .chip { transition: scale calc(.15s * var(--motion)) var(--ease); } .chip:hover { scale: 1.04; } }

/* phones, booking page: keep the sticky Back/Continue bar pinned to the screen bottom even on a short step, so the chat button (always above it) can never overlap it */
@media (max-width: 799px) {
  #book.bf:not(:has(.bf-thanks)) { display: flex; flex-direction: column; min-height: calc(100dvh - 1rem); }
  #book.bf .bf-bar { margin-top: auto; }
}

/* brand-neutral blocks used by site.json content (service cards, team, estate story) */
.svc-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.svc { display: flex; flex-direction: column; gap: .5rem; }
.svc .media { margin: 0 0 .4rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.svc .media img, .svc .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.team strong { display: block; font-family: var(--head); font-size: 1.15em; }
.team .role { display: block; font-size: var(--step--1); opacity: .75; margin-bottom: .3rem; }
.story { margin: var(--space) 0; padding: var(--space); border-radius: var(--radius); background: var(--card); }
.optout { font-size: var(--step--1); } .optout label { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; cursor: pointer; }

/* hover lifts only where a real pointer hovers (a tap must not leave a card stuck "lifted"); press feedback for touch */
@media (hover: hover) {
  .bf-day:not(.closed):hover span, .bf-slot:hover span { scale: 1.04; }
  .bf-choice:hover .bf-media img { scale: 1.05; }
}
.card:active, .bento li:active, .media:active { scale: .985; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }

/* phones: menu. Three modes, so the links are always reachable:
   1. Popover API (Chrome 114+, Safari 17+): the Menu button opens a bottom sheet (Esc and tap-outside close it).
   2. No popover + scripts run (js/compat.js adds html.menu-js): the Menu button toggles html.menu-open; the list drops down under the header.
   3. No popover + no scripts: the list is simply always shown under the header and the button is hidden. */
.menu-btn { display: none; }
.menu-x { display: none; width: 100%; margin-top: .5rem; min-height: 52px; }
.menu-sheet { flex: 1 0 100%; padding: .4rem 0 .6rem; color: var(--ink); }
.menu-sheet nav { display: grid; gap: .2rem; }
.menu-sheet nav a { display: flex; align-items: center; min-height: 56px; padding: 0 1rem; border-radius: var(--radius); text-decoration: none; }
.menu-sheet nav a:not(.btn) { font-family: var(--head); font-size: var(--step-1); color: var(--ink); }
.menu-sheet nav a:not(.btn):active, .menu-sheet nav a:not(.btn):hover { background: var(--card-surface); }
.menu-sheet nav .btn { margin-top: .5rem; min-height: 56px; font-family: var(--body); font-size: var(--step-0); }
@media (min-width: 800px) { .menu-sheet { display: none; } }
@media (max-width: 799px) {
  .site-header > nav { display: none; }
  .menu-btn {
    align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--ink); background: var(--card-surface);
    border: 1px solid var(--ink-20); border-radius: calc(var(--radius) + 12px);
  }
  html.menu-js .menu-btn { display: inline-flex; }
  html.menu-js .menu-x { display: block; }
  html.menu-js:not(.menu-open) .menu-sheet { display: none; }
}
@supports selector(:popover-open) {
  @media (max-width: 799px) { .menu-btn { display: inline-flex; } }
  .menu-x { display: block; }
  .menu-sheet {
    position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-width: 640px; max-height: 90vh; max-height: 90dvh; margin: 0 auto; overflow: auto;
    padding: .6rem 1rem 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); border: 0; background: var(--bg);
    border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
  }
  .menu-sheet::backdrop { background: rgba(0, 0, 0, .45); }
  .menu-sheet:popover-open { animation: sheet-up calc(.35s * var(--motion)) var(--ease); }
  .menu-sheet::before { content: ""; display: block; width: 2.6rem; height: 5px; margin: 0 auto .6rem; border-radius: 99px; background: var(--ink-25); }
}

/* sticky Book bar: frosted, big primary on the right-hand thumb arc, round call button beside it */
@media (max-width: 799px) { .cta-bar { display: flex; } } /* phones only: the earlier min-width:800px display:none must keep winning */
.cta-bar { gap: .6rem; align-items: center; background: var(--bar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; }
.cta-bar .btn { flex: 1 1 auto; min-height: 52px; font-size: var(--step-0); }
.cta-call { display: grid; place-items: center; flex: none; width: 52px; min-height: 52px; padding: 0; border-radius: 50%; }

/* phones: gallery and clip strip become swipeable rows that snap, with the next tile peeking in */
@media (max-width: 639px) {
  .gallery, .clips {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin; margin-left: calc(-1 * var(--space)); margin-right: calc(-1 * var(--space)); padding: .2rem var(--space) 1rem; scroll-padding-left: var(--space); scroll-padding-right: var(--space);
  }
  .clips { grid-auto-columns: 46%; }
  .gallery > *, .clips > * { scroll-snap-align: start; }
  .gallery > .reveal, .clips > .reveal { animation: none; } /* a sideways scroller would hijack the scroll-driven reveal */
}

/* optional photo on a feature card (site.json features[].media): bleeds to the card edges; on desktop it fills the featured 2x2 card's top */
.bento li .feat-img { display: block; width: calc(100% + 2.8rem); max-width: none; height: auto; margin: -1.25rem -1.4rem 1rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
@media (min-width: 800px) { .bento li:nth-child(1) .feat-img { flex: 1 1 12rem; height: 0; aspect-ratio: auto; } }

/* ---- imagery: full-bleed photo bands, page photos, gallery wall + lightbox, room picker, team placeholders, area illustration ---- */
.band { margin: var(--space-l) calc(50% - 50vw); overflow: hidden; }
.band img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 800px) { .band img { aspect-ratio: 21 / 8; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { scale: 1.12; translate: 0 -4%; } to { scale: 1.12; translate: 0 4%; } }
  }
}
.strip { margin: 0 0 var(--space); max-width: 640px; }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.strip-soft img { aspect-ratio: 16 / 4; box-shadow: none; }
.split { display: grid; gap: var(--space); align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 3fr 2fr; } }
.side-photo { margin: 0; max-width: 30rem; }
.side-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.lb { display: block; border-radius: var(--radius); }
.wall picture, .wall .lb { display: block; height: 100%; }
@media (min-width: 640px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall > :first-child { grid-row: span 2; }
  .wall > :first-child img { height: 100%; aspect-ratio: auto; }
}
@media (hover: hover) { .wall .lb img { transition: filter calc(.3s * var(--motion)) var(--ease); } .wall .lb:hover img { filter: brightness(1.06) saturate(1.08); } }
.lb-dlg { width: 94vw; max-width: 1100px; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #111; color: #fff; overflow: hidden; }
.lb-dlg::backdrop { background: rgba(0, 0, 0, .82); }
.lb-dlg[open] { animation: lb-in calc(.3s * var(--motion)) var(--ease); }
@keyframes lb-in { from { opacity: 0; scale: .96; } }
.lb-dlg img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #111; }
.lb-cap { margin: 0; padding: .7rem 1rem; font-size: var(--step--1); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-x { top: .5rem; right: .5rem; }
.lb-prev, .lb-next { top: 40%; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }

/* room picker: without :has() every room's slider shows, stacked, and the (useless) picker stays hidden */
.room-pick { display: none; }
@supports selector(:has(a)) {
  .room-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
  .room-pick legend { float: left; width: 100%; margin-bottom: .4rem; text-align: center; font-size: var(--step--1); }
  .room-pick label { position: relative; }
  .room-pick input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .room-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 2px solid var(--accent); border-radius: 99px; background: var(--bg); color: var(--ink); font-weight: 600; }
  .room-pick input:checked + span { background: var(--accent); color: var(--on-accent); }
  .room-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  .rooms .ba-fig { display: none; }
  .rooms:has(.room-pick label:nth-of-type(1) input:checked) .ba-fig:nth-child(1),
  .rooms:has(.room-pick label:nth-of-type(2) input:checked) .ba-fig:nth-child(2),
  .rooms:has(.room-pick label:nth-of-type(3) input:checked) .ba-fig:nth-child(3),
  .rooms:has(.room-pick label:nth-of-type(4) input:checked) .ba-fig:nth-child(4) { display: block; animation: lb-in calc(.35s * var(--motion)) var(--ease); }
}
.ba[data-mode="fade"] .after { clip-path: none; opacity: var(--o, .5); }
.ba[data-mode="fade"] .handle { display: none; }

.team .avatar {
  display: block; width: 4.2rem; height: 4.2rem; margin-bottom: .7rem; border-radius: 50%; border: 2px dashed var(--ink-25); background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E");
  background-position: center; background-size: 62%; background-repeat: no-repeat;
}
.area-art { margin: 0 auto; width: 100%; max-width: 22rem; }
.area-art svg { display: block; width: 100%; height: auto; }
.area-art .r3 { fill: var(--card); }
.area-art .r2 { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; transform-origin: 160px 112px; animation: spin calc(60s * var(--motion)) linear infinite; }
.area-art .r1 { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.area-art .pin { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.area-art text { fill: var(--ink); font-family: var(--head); font-size: 17px; font-weight: 700; }
@keyframes spin { to { rotate: 360deg; } }

/* ---- older-phone fallbacks (docs/older-phones.md). Everything above is the modern look; this is what keeps older engines usable. ---- */

/* aspect-ratio (Safari < 15, Chrome < 88): padding boxes keep the photo frames from collapsing to nothing */
@supports not (aspect-ratio: 1) {
  .bf-media { position: relative; height: 0; padding-top: 43.75%; }
  .bf-media img { position: absolute; top: 0; left: 0; }
  .ba { height: 0; padding-bottom: var(--pad, 75%); }
}

/* the chat launcher would sit on the booking bar; where :has() cannot hide it only when a message needs the room, it stays off the booking page */
@media (max-width: 799px) { .pg-book .chat-fab { display: none; } }
@supports selector(:has(a)) { @media (max-width: 799px) { .pg-book .chat-fab { display: inline-flex; } } }

/* inline summary (no <dialog>): the picked service, day and time above the sticky bar */
.bf-inline-sum { margin: 1rem 0 0; padding: .3rem 1rem; border-radius: var(--radius); background: var(--card-surface); border: 1px solid var(--ink-16); }
.bf-inline-sum[hidden] { display: none; }
.bf-inline-sum .bf-rows { margin: 0; }
.bf-inline-sum .bf-rows div:last-child { border-bottom: 0; }

/* booking is not loading (no scripts, or the widget failed): call-us message with a big tap target */
.bf-fallback { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--card); border: 2px solid var(--accent); font-weight: 600; }
.bf-fallback[hidden] { display: none; }
.bf-fallback .btn { margin: .6rem .8rem .2rem 0; }

/* flex gap (Safari < 14.1, Chrome < 84): js/compat.js adds html.no-flex-gap; margins stand in so buttons and chips never touch */
.no-flex-gap .site-header > * + *, .no-flex-gap .cta-bar > * + * { margin-left: .8rem; }
.no-flex-gap nav > * + * { margin-left: 1.1rem; }
.no-flex-gap .btn svg, .no-flex-gap .menu-btn svg, .no-flex-gap .bf-chip svg { margin-right: .4rem; }
.no-flex-gap .cta-call svg { margin-right: 0; }
.no-flex-gap .bf-title > * + *, .no-flex-gap .bf-sum > * + * { margin-left: .6rem; }
.no-flex-gap .bf-chips > *, .no-flex-gap .chat-replies > *, .no-flex-gap .bf-other > * { margin: 0 .4rem .4rem 0; }
.no-flex-gap .bf-seg-opt + .bf-seg-opt { margin-left: .25rem; }
.no-flex-gap .bf-bar > * { margin-bottom: .6rem; }
.no-flex-gap .bf-bar .btn-ghost + .btn { margin-left: .75rem; }
.no-flex-gap .chat-form > * + *, .no-flex-gap .chat-date > * + * { margin-left: .5rem; }
.no-flex-gap .site-footer a, .no-flex-gap .optout input { margin-left: .25rem; margin-right: .25rem; }
#job { background: var(--card-surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); max-width: 640px; }
#job h2 { margin-top: 0; }
#job h2::after { display: none; }
#job .btn, #job .btn-ghost { width: 100%; max-width: 22rem; min-height: 52px; margin: .4rem 0; display: block; }
#job .pick { display: flex; align-items: center; gap: .6rem; margin: .3rem 0; font-weight: 400; }
#job .pick input { width: 1.4rem; height: 1.4rem; }
#job .stepper { display: flex; align-items: center; gap: .8rem; }
#job .stepper .btn-ghost { width: auto; display: inline-block; margin: 0; min-width: 52px; min-height: 52px; font-size: 1.4rem; }
#job .warn { padding: .5rem .7rem; border-left: 4px solid #b45309; background: #fffbeb; border-radius: 4px; color: #3b2a05; }
