/* ==========================================================================
   SEREN – Mattress Cleaning & Deep Sanitization Service
   style.css  |  Light theme (default), base styles, navbar, footer, page sections
   --------------------------------------------------------------------------
   Contents
   1. Colour variables (light theme)  – dark theme lives in darkmode.css
   2. Base / reset
   3. Layout helpers
   4. Navbar (desktop + mobile/tablet)
   5. Footer (five columns)
   6. Temporary page shell (placeholder banner for the other pages)
   7. Services page – hero banner (100vh photo + panel + service strip)
   8. Services page – Section 2: Dust Mite & Allergen Removal
   S3. Services page – Section 3: Deep Mattress Stain Removal (sits between 8 and 9)
   9. Services page – Section 4: Deep Mattress Sanitization
   10. Services page – Section 5: Odour Removal & Mattress Freshening
   11. Services page – Section 6: Our Complete Cleaning Process
   12. Pricing page – hero banner (photo + quilted band with price tickets)
   13. Pricing page – Section 2: Mattress Cleaning Packages
   14. About page – hero banner (bubble-shaped photo window + text)
   15. Scroll-reveal animation helper
   16. Reduced motion
   Also: 0. Fonts (self-hosted, files sit next to this stylesheet)
   ========================================================================== */


/* ==========================================================================
   0. FONTS (self-hosted variable fonts – one file each, every weight)
   System font stacks are used consistently through --font-head / --font-body.
   ========================================================================== */
/* ==========================================================================
   1. COLOUR VARIABLES (LIGHT THEME)
   Only these colour variables are used anywhere in the site.
   ========================================================================== */
:root {
  /* Palette: Sage Green x Warm Ivory */
  --bg: #FBF7EC;                          /* page background  – warm ivory          */
  --surface: #F1EBD8;                     /* cards, footer    – deeper ivory        */
  --accent: #4A6741;                      /* buttons, links   – deep sage green     */
  --secondary: #A9BFA0;                   /* soft sage (decorative lines/dots only) */
  --text: #24301F;                        /* headings + body  – forest ink          */
  --muted: #56634F;                       /* captions         – grey sage           */
  --border: #D8D2B6;                      /* hairlines        – ivory sand          */
  --glow: rgba(169, 191, 160, 0.55);      /* focus rings, hover halos    */
  --glow-2: rgba(74, 103, 65, 0.22);      /* soft shadows                */

  /* Non-colour design tokens */
  --font-head: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nav-h: 76px;                          /* navbar height               */
  --gutter: clamp(16px, 3vw, 32px);       /* side padding                */
  --radius: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;                        /* rem base – nothing below 13px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;                          /* keeps footer at the bottom   */
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--text);
}

p { margin: 0; }
ul,
ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

button,
input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

img,
svg { display: block; max-width: 100%; }

/* Keyboard focus ring – visible on every interactive element */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }


/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
}

/* Screen-reader-only text (e.g. the newsletter field label) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shared icon style – every icon is an inline SVG from the sprite */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo mark (inline SVG) – colours come from variables so it works in both themes */
.brand-mark { fill: none; }
.m-line { stroke: currentColor; stroke-width: 3; fill: none; }
.m-halo { stroke: var(--mark-gap, var(--bg)); stroke-width: 8; fill: none; }


/* ==========================================================================
   4. NAVBAR
   Desktop / laptop (≥1100px):  [ logo + name ] [ menus (centre) ] [ RTL · theme · login ]
   Tablet / mobile (<1100px):   [ logo + name ] [ RTL · theme · hamburger ]
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

/* Soft shadow appears after the page scrolls (class set in index.js) */
.site-header.is-scrolled { box-shadow: 0 10px 28px -14px var(--glow-2); }

/* Three-column grid keeps the menu perfectly centred */
.nav {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
}

.nav.nav--minimal {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* ---- Brand (logo + name) ---- */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-inline-end: -0.3em;              /* cancels trailing letter-spacing */
  line-height: 1;
  text-transform: uppercase;
}

/* ---- Desktop menu ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 1rem;                        /* 16px, aligned with the contact page header */
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-current,
.has-dropdown.is-open > .nav-link {
  color: var(--accent);
  background: var(--surface);
}

/* Chevron rotates while the Home dropdown is open */
.nav-link .chevron { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.has-dropdown.is-open > .nav-link .chevron { transform: rotate(180deg); }

/* ---- Home dropdown (Home 1 / Home 2) ---- */
.dropdown {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 12px);
  min-width: 190px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px var(--glow-2), 0 0 0 4px var(--glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Invisible bridge so the menu doesn't close while the pointer crosses the gap */
.dropdown::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -14px;
  height: 14px;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.dropdown a:hover,
.dropdown a[aria-current="page"] { color: var(--accent); background: var(--surface); }

.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Hover opens the dropdown for mouse users on desktop only */
@media (hover: hover) and (min-width: 1100px) {
  .has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .has-dropdown:hover > .nav-link { color: var(--accent); background: var(--surface); }
  .has-dropdown:hover > .nav-link .chevron { transform: rotate(180deg); }
}

/* ---- Right-hand actions ---- */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Round icon button (theme, hamburger) */
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

/* RTL / LTR toggle – icon + label on desktop, icon only on small screens */
.dir-toggle {
  height: 44px;
  min-width: 44px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.dir-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}
.dir-label { display: none; }

/* Theme toggle: moon shows in light mode, sun shows in dark mode */
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Login button */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--glow), 0 12px 24px -12px var(--glow-2);
}

/* Hamburger – swaps between "menu" and "close" icons */
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Mobile / tablet panel (hidden on desktop) ---- */
.mobile-panel { display: none; }

/* Wider laptops: show the text label on the RTL toggle */
@media (min-width: 1000px) {
  .dir-label { display: inline; }
}

/* Keep the full desktop navigation on laptop widths, with compact link spacing. */
@media (min-width: 1000px) and (max-width: 1279px) {
  .nav-link { padding-inline: 8px; }
}

/* ---- Tablet + mobile (<1000px) ---- */
@media (max-width: 999px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-menu-wrap,
  .nav-login-desktop { display: none; }   /* moved into the hamburger panel */
  .nav-toggle { display: grid; }

  .mobile-panel {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px var(--glow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* All menus first … */
  .m-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    text-align: start;
    transition: color 0.2s var(--ease);
  }
  .m-link:hover,
  .m-link[aria-current="page"],
  .m-link.is-current { color: var(--accent); }

  /* Home accordion */
  .m-link .chevron { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
  .m-has-sub.is-open > .m-link .chevron { transform: rotate(180deg); }
  .m-sub {
    display: none;
    padding: 6px 0 6px 0;
    margin-inline-start: 12px;
    border-inline-start: 2px solid var(--secondary);
  }
  .m-has-sub.is-open > .m-sub { display: block; }
  .m-sub a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--muted);
    transition: color 0.2s var(--ease);
  }
  .m-sub a:hover,
  .m-sub a[aria-current="page"] { color: var(--accent); }

  /* … then the Login button sits below all menus */
  .mobile-panel .btn-login { width: 100%; margin-top: 20px; height: 48px; }
}

/* Very small phones – keep logo + three icons on one row */
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.375rem; letter-spacing: 0.2em; margin-inline-end: -0.2em; }
  .nav-actions { gap: 6px; }
  .icon-btn,
  .dir-toggle { width: 40px; height: 40px; min-width: 40px; padding-inline: 0; }
}


/* ==========================================================================
   5. FOOTER  (five columns on desktop)
   Brand + socials | Quick links | Services | Contact | Newsletter
   ========================================================================== */
.site-footer {
  --mark-gap: var(--surface);             /* logo "gaps" match the footer background */
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 80px;                    /* consistent section spacing */
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.5fr);
  gap: clamp(28px, 3vw, 48px);            /* same gap between rows and columns */
}

.footer-col h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}
/* Small accent underline below each column heading */
.footer-col h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* Column 1 – brand, blurb, social icons */
.footer-brand .brand { margin-bottom: 18px; }
.footer-about {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 22px;
}
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.social-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow);
}

/* Columns 2 + 3 – link lists */
.footer-links { display: grid; gap: 12px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-links a .icon { width: 14px; height: 14px; color: var(--accent); }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }

/* Column 4 – contact details */
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
}
.contact-list span,
.contact-list a {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-top: 7px;
  overflow-wrap: anywhere;
}
.contact-list a { transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--accent); }

/* Column 5 – newsletter */
.newsletter-text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.newsletter-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}
.newsletter-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text);
}
.newsletter-form input::placeholder { color: var(--muted); opacity: 1; }
.newsletter-form button {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.newsletter-form button:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--glow);
}
/* Feedback line under the form – hidden until JS writes a message */
.form-msg {
  display: none;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.form-msg.is-visible { display: block; }
.form-msg.is-success { color: var(--accent); }
.newsletter-note { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }

/* Bottom bar – copyright */
.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer – tablet / small laptop: brand row on top, then a tidy 2 × 2 grid */
@media (max-width: 1365px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-about { max-width: 60ch; }
}

/* Footer – mobile: single column */
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }   /* minmax(0,…) stops long content forcing sideways scroll */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   6. TEMPORARY PAGE SHELL
   Simple banner so every page opens and the navbar/footer can be reviewed.
   Replace the contents of <main> as each page is designed.
   ========================================================================== */
.page-shell { flex: 1; }

.err-sec > .container,
.cs-sec > .container {
  display: flex;
  justify-content: center;
}

.page-banner {
  padding-block: 80px;                    /* consistent top and bottom spacing on standard page banners */
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow), transparent 65%),
    var(--bg);
}
.page-banner .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-banner h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-banner p {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.0625rem;
  color: var(--muted);
}


/* ==========================================================================
   7. SERVICES PAGE – HERO BANNER
   ========================================================================== */
/* ==========================================================================
   7a. SERVICES HERO – BANNER SHELL
   Banner height = 100vh – navbar, so navbar + banner fill the first screen.
   (svh is used first so mobile browser toolbars don't cut the banner.)
   ========================================================================== */
.svc-hero {
  display: flex;
  flex-direction: column;                 /* stage on top, strip underneath          */
  min-height: calc(100vh - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--nav-h) - 1px);   /* 1px = navbar bottom border */
  background: var(--bg);
}


/* ==========================================================================
   7b. SERVICES HERO – STAGE – the photo fills the whole banner, the panel sits beside the subject
   ========================================================================== */
.svc-stage {
  position: relative;
  flex: 1;                                /* takes all height the strip leaves over  */
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 4vh, 48px);  /* equal top and bottom                    */
  background: var(--surface);             /* shows only while a photo is loading     */
  overflow: hidden;
  isolation: isolate;                     /* keeps the photo layer behind the panel  */
}

/* Layer that holds every slide photo (sits behind the panel) */
.svc-slides {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* One photo. Only the active one is visible; the others wait at opacity 0. */
.svc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* photo always fills the banner           */
  object-position: var(--pos, 50% 40%);   /* focus point is set per photo in HTML    */
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.9s var(--ease);   /* soft crossfade between services         */
}
.svc-slide.is-active {
  opacity: 1;
  animation: svcDrift 9s ease-out forwards;   /* very slow zoom so the photo feels alive */
}
@keyframes svcDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}


.svc-stage-inner { display: flex; }       /* .container + flex so the panel can align to the start edge */


/* ==========================================================================
   7c. SERVICES HERO – CONTENT PANEL – solid surface, so text never competes with the photo
   ========================================================================== */
.svc-panel {
  width: min(100%, 600px);
  padding: clamp(24px, 3vw, 40px);        /* same padding on every side              */
  display: grid;
  gap: clamp(14px, 2.2vh, 22px);          /* even rhythm between the panel items     */
  justify-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px var(--glow-2);
  animation: svcRise 0.8s var(--ease) both;
}
@keyframes svcRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Small pill above the headline – tells visitors what this site is at a glance */
.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-eyebrow::before {                    /* sage dot */
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px var(--glow);
}

/* Headline – the second half is coloured with the accent */
.svc-panel h1 {
  font-size: clamp(2rem, min(3.4vw, 6.2vh), 3.25rem);   /* scales with width AND height so it always fits */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.svc-accent { color: var(--accent); }

.svc-lead {
  font-size: clamp(1rem, 1.9vh, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

/* Buttons */
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.svc-btn .icon { width: 18px; height: 18px; }
.svc-btn--solid { background: var(--accent); color: var(--bg); }
.svc-btn--ghost { background: transparent; color: var(--accent); }
.svc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow), 0 12px 24px -12px var(--glow-2);
}
.svc-btn--ghost:hover { background: var(--surface); }

/* Three short trust points (icon + text) */
.svc-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.svc-assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.svc-assure .icon { width: 20px; height: 20px; color: var(--accent); }


/* ==========================================================================
   7d. SERVICES HERO – SERVICE STRIP – sits BELOW the photo (captions never lie on the image)
   Three buttons: each names the service, describes it in one line and shows
   a progress bar while the slideshow runs. Clicking one jumps to its photo.
   ========================================================================== */
.svc-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 16px;                    /* equal top and bottom */
}
.svc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;                              /* same gap between every tab */
}

.svc-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 18px;
  text-align: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  overflow: hidden;                       /* keeps the progress bar inside the rounded corners */
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.svc-tab:hover { border-color: var(--accent); }
.svc-tab.is-active {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

/* Big serif number */
.svc-tab-num {
  flex: none;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.svc-tab-text { display: grid; gap: 2px; min-width: 0; }
.svc-tab-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.svc-tab-desc {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Progress bar along the bottom edge of the tab */
.svc-tab-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: var(--border);
}
.svc-tab-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
/* Runs only on the active tab. When it finishes, index.js moves to the next slide. */
.svc-tab.is-active .svc-tab-bar i { animation: svcProgress 6s linear forwards; }
@keyframes svcProgress {
  from { width: 0; }
  to   { width: 100%; }
}
/* Pause the countdown while the visitor is using the strip or tabbing through it */
.svc-strip:hover .svc-tab-bar i,
.svc-hero:focus-within .svc-tab-bar i { animation-play-state: paused; }


/* ==========================================================================
   7e. SERVICES HERO – TABLET / MOBILE (< 900px)
   The photo becomes its own block ABOVE the content, so text and image can
   never touch each other on small screens.
   ========================================================================== */
@media (max-width: 899px) {
  .svc-stage {
    display: block;
    padding-block: 0;
    background: var(--bg);
    overflow: visible;
  }

  /* Photo block: fixed-height window above the panel */
  .svc-slides {
    position: relative;
    z-index: 0;
    height: clamp(240px, 38vh, 420px);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }

  /* Panel loses its card look and becomes plain padded content */
  .svc-stage-inner { padding-block: clamp(28px, 6vw, 40px); }   /* equal top and bottom */
  .svc-panel {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .svc-panel h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .svc-lead { font-size: 1rem; }
  .svc-eyebrow { letter-spacing: 0.06em; }   /* keeps the pill compact on phones */
}

/* Tabs stack in one column on phones */
@media (max-width: 719px) {
  .svc-tabs { grid-template-columns: minmax(0, 1fr); }
  .svc-actions { width: 100%; }
  .svc-actions .svc-btn { flex: 1 1 180px; }   /* two equal buttons, wrapping neatly on very small phones */
}



/* ==========================================================================
   8. SERVICES PAGE – SECTION 2: DUST MITE & ALLERGEN REMOVAL
   Layout: intro copy on one side + a STAGGERED two-column "bento" of cards on
   the other  (photo | feature  /  info | photo). The second column is pushed
   down by --mite-stagger, the first one gets the same space at its bottom, so
   top and bottom stay balanced. Every gap is --mite-gap; nothing overlaps.
   ========================================================================== */
.mite {
  --mite-gap: 16px;                       /* compact spacing between the four cards */
  --mite-stagger: 32px;                   /* smaller offset for the second column   */
  padding-block: 80px;                    /* consistent section spacing                   */
  background: var(--bg);
  scroll-margin-top: var(--nav-h);        /* footer link #dust-mite-removal lands below the sticky navbar */
  overflow-x: clip;
}

/* Two columns: copy | cards */
.mite-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- 8a. Intro copy ---------- */
.mite-intro {
  display: grid;
  gap: 24px;                              /* even rhythm between kicker, title, text, button, icons */
  justify-items: start;
}

/* Small pill with an icon tile – names the section */
.mite-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.mite-kicker-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.mite-kicker-icon .icon { width: 18px; height: 18px; }

.mite-intro h2,
.stain-head h2 {
  font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.mite-lead {
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Four round icon chips with a label under each */
.mite-chips {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mite-chips li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.mite-chip-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mite-chips li:hover .mite-chip-icon {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

/* ---------- 8b. Staggered bento of cards ---------- */
.mite-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mite-gap);
  align-items: stretch;                   /* both columns end at the same line */
}
.mite-col {
  display: flex;
  flex-direction: column;
  gap: var(--mite-gap);
}
.mite-col:first-child { padding-bottom: var(--mite-stagger); }
.mite-col--down       { padding-top: var(--mite-stagger); }
.mite-col > :last-child { flex: 1; }      /* last card absorbs any height difference */
.mite-photo--a .mite-frame { aspect-ratio: 16 / 10; } /* compact first photo keeps the card group shorter */

/* Shared card look */
.mite-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mite-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 40px -24px var(--glow-2), 0 0 0 4px var(--glow);
}

/* ---------- Photo cards: picture on top, caption BELOW it ---------- */
.mite-photo {
  margin: 0;
  padding: 10px;                          /* tighter picture inset */
  display: flex;
  flex-direction: column;
}
.mite-frame {
  position: relative;
  flex: 1 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.mite-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: miteDrift 16s ease-in-out infinite alternate;   /* slow breathing zoom */
}
/* Soft "scanner" light that sweeps over the photo – hints that mites are being hunted */
.mite-frame::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  animation: miteScan 5.5s ease-in-out infinite;
  pointer-events: none;
}
.mite-photo figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 8px 6px;
}
.mite-photo figcaption strong { font-size: 1rem; font-weight: 600; color: var(--text); }
.mite-photo figcaption span   { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

@keyframes miteDrift { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes miteScan  { 0% { inset-inline-start: -40%; } 55%, 100% { inset-inline-start: 110%; } }

/* ---------- Text cards (info + feature) ---------- */
.mite-info,
.mite-feature {
  padding: 22px;                          /* compact, even spacing on the text cards */
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mite-info h3,
.mite-feature h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }

/* Round icon with a pulsing ring */
.mite-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.mite-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: mitePulse 2.6s ease-out infinite;
}
@keyframes mitePulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Info card: "what we remove" checklist (ticks draw themselves) */
.mite-checks { display: grid; gap: 12px; }
.mite-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.mite-tick {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}
.mite-tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }
html.js .mite-tick .icon { stroke-dasharray: 1; stroke-dashoffset: 1; }   /* hidden until the card reveals */
html.js .is-in .mite-tick .icon { animation: miteDraw 0.6s var(--ease) calc(0.6s + var(--i, 0) * 0.15s) both; }
@keyframes miteDraw { to { stroke-dashoffset: 0; } }

/* Short tip under the checklist */
.mite-note {
  margin-top: auto;                       /* pushes the tip + link to the bottom of the card */
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.mite-note + .mite-link { margin-top: 0; }

/* Text link with a sliding arrow */
.mite-link {
  margin-top: auto;                       /* sits at the bottom of the card */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}
.mite-link .arrow { display: inline-flex; transition: transform 0.25s var(--ease); }
.mite-link:hover .arrow { transform: translateX(4px); }
.mite-link .icon { width: 18px; height: 18px; }

/* Feature card: filled with the accent colour */
.mite-feature {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.mite-feature h3 { color: var(--bg); }
.mite-feature .mite-icon { background: var(--bg); color: var(--accent); }
.mite-feature .mite-icon::after { border-color: var(--bg); }

/* Numbered steps */
.mite-steps { display: grid; gap: 12px; counter-reset: mite-step; }
.mite-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bg);
}
.mite-steps li::before {
  counter-increment: mite-step;
  content: counter(mite-step);
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
html.js .mite-steps li { opacity: 0; }
html.js .is-in .mite-steps li {
  opacity: 1;
  animation: miteStep 0.6s var(--ease) calc(0.5s + var(--i, 0) * 0.14s) backwards;
}
@keyframes miteStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Light button that sits on the accent card */
.svc-btn--light {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--accent);
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 8c. Responsive ---------- */
/* Tablet / small laptop: copy on top, cards below (still two staggered columns) */
@media (max-width: 1099px) {
  .mite-grid { grid-template-columns: minmax(0, 1fr); }
  .mite-intro { max-width: 720px; }
}

/* Phones: one column, cards in reading order (photo, steps, checklist, photo), no stagger */
@media (max-width: 639px) {
  .mite-bento { grid-template-columns: minmax(0, 1fr); }
  .mite-col { display: contents; }        /* lets every card be ordered on its own */
  .mite-photo--a  { order: 1; }
  .mite-feature   { order: 2; }
  .mite-info      { order: 3; }
  .mite-photo--b  { order: 4; }
  .mite-info,
  .mite-feature   { padding: 24px; }
  .mite-photo--a .mite-frame { aspect-ratio: 4 / 3; }   /* back to the compact ratio on phones */
  .mite-chips { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   S3. SERVICES PAGE – SECTION 3: DEEP MATTRESS STAIN REMOVAL
   Layout: centred heading, an endless "stain ticker", then a two-part
   workbench – a photo card with pulsing target dots + an interactive
   "stain finder" (pick a stain, read how we treat it, watch the 4-step
   treatment path light up). Same gap everywhere, nothing overlaps.
   ========================================================================== */
.stain {
  padding-block: clamp(64px, 8vw, 104px); /* equal top and bottom */
  background: var(--surface);
  border-block: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);        /* footer link #stain-cleaning lands below the sticky navbar */
  overflow-x: clip;
}

/* ---------- S3-a. Centred heading (pill + title + text share the section-2 styles) ---------- */
.stain-head {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

/* ---------- S3-b. Stain ticker – scrolls endlessly, pauses on hover ---------- */
.stain-marquee {
  margin-block: clamp(32px, 4vw, 48px);   /* same space above and below the ticker */
  padding-block: 16px;
  border-block: 1px solid var(--border);
  overflow: hidden;
  /* Soft fade at both ends (alpha mask only – no colour involved) */
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--text) 8%, var(--text) 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, var(--text) 8%, var(--text) 92%, transparent);
}
.stain-track {
  display: flex;
  width: max-content;
  animation: stainMarquee 34s linear infinite;
}
.stain-marquee:hover .stain-track { animation-play-state: paused; }
/* Two identical groups sit side by side; moving by exactly one group (-50%) makes a seamless loop */
.stain-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: 36px;
  padding-inline-end: 36px;               /* keeps the gap between the two groups equal to the gap between items */
}
.stain-group li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}
.stain-group .icon { width: 18px; height: 18px; color: var(--accent); }
@keyframes stainMarquee { to { transform: translateX(-50%); } }

/* ---------- S3-c. Workbench grid ---------- */
.stain-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 32px);            /* same gap between the two cards in every direction */
  align-items: stretch;                   /* both cards end on the same line */
}
.stain-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.stain-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 40px -24px var(--glow-2), 0 0 0 4px var(--glow);
}

/* ---------- Photo card: picture on top, caption BELOW ---------- */
.stain-photo {
  margin: 0;
  padding: 12px;                          /* same space on every side of the picture */
  display: flex;
  flex-direction: column;
}
.stain-frame {
  position: relative;
  flex: 1 0 auto;
  aspect-ratio: 5 / 4;     /* keeps the photo card the same height as the finder card */
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.stain-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: miteDrift 16s ease-in-out infinite alternate;   /* slow breathing zoom (shared keyframes) */
}
/* Target dots on the three stains (no text on the photo). --x / --y are positions in the picture. */
.stain-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;                  /* centres the dot on the point */
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);        /* ring in the page colour keeps the dot visible on the white mattress */
}
.stain-dot::before {                      /* expanding ping ring */
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  animation: stainPing 2.6s ease-out infinite var(--delay, 0s);
}
@keyframes stainPing {
  0%   { transform: scale(1);   opacity: 0.95; }
  100% { transform: scale(3.2); opacity: 0; }
}
.stain-photo figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 8px 6px;
}
.stain-photo figcaption strong { font-size: 1.125rem; font-weight: 600; color: var(--text); }
.stain-photo figcaption span   { font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* ---------- S3-d. Stain finder card ---------- */
.stain-finder {
  padding: 28px;                          /* same space on all sides */
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stain-finder h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.stain-hint { margin-top: 6px; font-size: 1.0625rem; color: var(--muted); }

/* Four stain buttons (2 x 2) */
.stain-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stain-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: start;
  color: var(--text);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.stain-tab:hover { border-color: var(--accent); transform: translateY(-2px); }
.stain-tab-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.stain-tab-icon .icon { width: 18px; height: 18px; }
.stain-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Result panel – all four answers share ONE grid cell, so the panel never changes height */
.stain-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
html.js .stain-panel { display: grid; }
html.js .stain-case { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
html.js .stain-case.is-active {
  opacity: 1;
  visibility: visible;
  animation: stainSwap 0.5s var(--ease);
}
@keyframes stainSwap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stain-case { display: grid; align-content: start; gap: 12px; }
.stain-case + .stain-case { margin-top: 20px; }          /* only matters without JS, where all answers are listed */
html.js .stain-case + .stain-case { margin-top: 0; }
.stain-case h4 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.stain-case p  { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.stain-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stain-chips li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Treatment path: 4 nodes joined by lines that fill one after another ---------- */
.stain-steps {
  --fill: stainFillA;                     /* JS flips A / B so the animation restarts on every new choice */
  --node: stainNodeA;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;                       /* sits just above the button */
}
.stain-steps.is-b { --fill: stainFillB; --node: stainNodeB; }

.stain-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
  font-size: 0.9375rem;                   /* 15px */
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.stain-node {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 700;
}
/* Connector between two nodes: ::after = track, ::before = fill. It starts/ends 8px away from each node, so lines never touch the circles. */
.stain-steps li:not(:last-child)::before,
.stain-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;                              /* vertical centre of a 40px node */
  inset-inline-start: calc(50% + 28px);   /* 20px node radius + 8px gap */
  width: calc(100% - 56px);
  height: 3px;
  border-radius: 2px;
}
.stain-steps li:not(:last-child)::after  { background: var(--border); }
.stain-steps li:not(:last-child)::before { z-index: 1; background: var(--accent); }

/* With JS: start "switched off", then light up in order (every 0.8s) */
html.js .stain-node { border-color: var(--border); background: var(--bg); color: var(--muted); }
html.js .stain-steps li:not(:last-child)::before { width: 0; }
html.js .is-in .stain-node {
  animation: var(--node) 0.35s var(--ease) calc(var(--i, 0) * 0.8s) both;
}
html.js .is-in .stain-steps li:not(:last-child)::before {
  animation: var(--fill) 0.5s linear calc(var(--i, 0) * 0.8s + 0.3s) both;
}
/* Two identical keyframe sets (A / B): switching the name restarts the animation */
@keyframes stainNodeA { from { border-color: var(--border); background: var(--bg); color: var(--muted); transform: scale(0.85); } to { border-color: var(--accent); background: var(--accent); color: var(--bg); transform: none; } }
@keyframes stainNodeB { from { border-color: var(--border); background: var(--bg); color: var(--muted); transform: scale(0.85); } to { border-color: var(--accent); background: var(--accent); color: var(--bg); transform: none; } }
@keyframes stainFillA { from { width: 0; } to { width: calc(100% - 56px); } }
@keyframes stainFillB { from { width: 0; } to { width: calc(100% - 56px); } }

.stain-finder .svc-btn { align-self: flex-start; }

/* ---------- S3-e. Responsive ---------- */
@media (max-width: 1023px) {
  .stain-grid { grid-template-columns: minmax(0, 1fr); }
  .stain-frame { aspect-ratio: 4 / 3; }   /* compact photo once the cards stack */
}
@media (max-width: 479px) {
  .stain-finder { padding: 20px; }
  .stain-tabs { grid-template-columns: minmax(0, 1fr); }
  .stain-panel { padding: 16px; }
}


/* ==========================================================================
   9. SERVICES PAGE – SECTION 4: DEEP MATTRESS SANITIZATION
   Layout: centred heading -> [ arch photo | vertical protocol rail ] -> scrolling band.
   - The photo sits in an ARCH frame; a light travels around its edge.
   - The rail is a column of 5 rows (round node + card). A line joins the nodes and
     fills up as the steps play, so it doubles as the autoplay progress bar.
   - Captions sit BELOW the photo. Every gap comes from --san-gap or the grid gaps,
     and each decorative line lives in its own empty space, so nothing overlaps.
   ========================================================================== */
.san {
  --san-gap: 14px;                        /* space between the step cards (the rail length follows it) */
  --san-node: 48px;                       /* diameter of the round icon nodes                           */
  --san-off: 14px;                        /* how far each node sits below the top of its card           */
  --san-arch: 16px;                       /* simple rounded rectangle for the photo frame        */
  padding-block: 80px;                    /* consistent section spacing                                        */
  background: var(--bg);
  border-top: 1px solid var(--border);    /* keeps it separate from the section above (both use --bg)   */
  scroll-margin-top: var(--nav-h);        /* footer link #deep-sanitization lands below the sticky navbar */
  overflow-x: clip;
}

/* ---------- 9a. Centred heading ---------- */
.san-head {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;                              /* even rhythm: label, title, text */
  text-align: center;
}

/* Label with a short line on each side (different from Section 2's pill) */
.san-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.san-eyebrow::before,
.san-eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
}

.san-head h2 {
  font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.san-lead {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 9b. Stage: photo | rail ---------- */
.san-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- 9c. Arch photo ---------- */
.san-visual {
  width: min(100%, 480px);
  margin: 0;
  justify-self: center;
  display: grid;
  gap: 24px;                              /* picture -> caption */
}

/* Angle that the travelling light uses (lets the gradient rotate smoothly) */
@property --san-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Layer 1: thin ring. Its gradient slowly rotates = a light running around the arch */
.san-arch {
  aspect-ratio: 4 / 5;
  padding: 3px;                           /* ring thickness */
  border-radius: var(--san-arch);
  background: conic-gradient(from var(--san-a), var(--border) 0 55%, var(--secondary) 80%, var(--accent) 100%);
  animation: sanSpin 8s linear infinite;
}
/* Layer 2: quiet gap between the ring and the photo */
.san-arch-in {
  height: 100%;
  padding: 10px;
  border-radius: var(--san-arch);
  background: var(--bg);
}
/* Layer 3: the photo window */
.san-frame {
  position: relative;
  height: 100%;
  border-radius: var(--san-arch);
  overflow: hidden;
  background: var(--surface);             /* shows only while a photo is loading */
}
.san-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* photo always fills the arch */
  object-position: var(--pos, 50% 50%);   /* focus point is set per photo in the HTML */
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.9s var(--ease), transform 7s var(--ease);
}
/* The new photo fades in while slowly "settling" to its normal size */
.san-img.is-active {
  opacity: 1;
  transform: scale(1);
}

@keyframes sanSpin { to { --san-a: 360deg; } }

/* Caption row (below the photo): text on one side, step counter on the other */
.san-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
/* All three captions share one grid cell, so the row never changes height */
.san-caps { display: grid; }
.san-cap {
  grid-area: 1 / 1;
  display: grid;
  gap: 4px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
.san-cap.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease) 0.25s, transform 0.5s var(--ease) 0.25s, visibility 0s;
}
.san-cap strong { font-size: 1.125rem; font-weight: 600; color: var(--text); }
.san-cap span   { font-size: 1rem; line-height: 1.5; color: var(--muted); }

.san-count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.san-count b {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

/* ---------- 9d. Protocol rail ---------- */
.san-panel { display: grid; gap: 28px; }   /* rail -> buttons */
.san-steps { display: grid; gap: var(--san-gap); }

/* One row = node + card. The row is relative so its connecting line can be placed inside it. */
.san-item { position: relative; }

/* The whole row is one big button (easy to tap, one focus ring) */
.san-step {
  width: 100%;
  display: grid;
  grid-template-columns: var(--san-node) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  text-align: start;
  border-radius: 22px;
}

/* Round icon node (sits in its own column, left of the card) */
.san-node {
  position: relative;
  width: var(--san-node);
  height: var(--san-node);
  margin-top: var(--san-off);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Dashed ring inside the node – only visible (and slowly turning) on the active step */
.san-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px dashed var(--bg);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

/* Card with the step text */
.san-card {
  display: grid;
  gap: 4px;
  padding: 16px 20px;                     /* same space on all sides */
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.san-step-num {
  font-size: 0.875rem;                    /* 14px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.san-step-title {
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.san-step-desc {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Hover (steps not yet active) */
.san-step:hover .san-card { border-color: var(--accent); }

/* Done steps: accent outline on the node */
.san-item.is-done .san-node { border-color: var(--accent); }

/* Active step: filled node, spotlight card */
.san-item.is-active .san-node {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--glow);
}
.san-item.is-active .san-node::after {
  opacity: 1;
  animation: sanTurn 10s linear infinite;
}
.san-item.is-active .san-card {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 18px 32px -22px var(--glow-2);
}
@keyframes sanTurn { to { transform: rotate(360deg); } }

/* Connecting line between nodes: grey track (::before) + accent fill (::after).
   It starts 4px under a node and ends 4px above the next one, so lines never touch the nodes. */
.san-item::before,
.san-item::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--san-node) / 2 - 1px);
  top: calc(var(--san-off) + var(--san-node) + 4px);
  bottom: calc(4px - var(--san-gap) - var(--san-off));
  width: 2px;
  border-radius: 2px;
}
.san-item::before { background: var(--border); }
.san-item::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}
.san-item.is-done::after { transform: scaleY(1); }

/* Active line fills over 6s. It only runs while the section is on screen (.is-playing is set by index.js)
   and pauses while the visitor hovers or focuses the rail. When it ends, index.js moves to the next step. */
.san-item.is-active::after {
  animation: sanFill 6s linear forwards paused;
}
.san.is-playing .san-item.is-active::after { animation-play-state: running; }
@media (hover: hover) {
  .san-steps:hover .san-item.is-active::after { animation-play-state: paused; }
}
.san-stage:has(.san-step:focus-visible) .san-item.is-active::after { animation-play-state: paused; }
@keyframes sanFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* The last row has no line to draw, but its (invisible) fill still times the step */
.san-item:last-child::before { display: none; }
.san-item:last-child::after  { opacity: 0; }

/* Buttons under the rail */
.san-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.san .svc-btn--ghost:hover { background: var(--surface); }

/* ---------- 9e. Scrolling band ---------- */
.san-band {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 14px;                          /* same space on all sides */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.san-band-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.san-band-label .icon { width: 18px; height: 18px; }

/* Window the list scrolls through; the edges fade out (the mask only controls fading, it adds no colour) */
.san-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.san-track {
  display: flex;
  width: max-content;
  animation: sanMarquee 32s linear infinite;
}
.san-band:hover .san-track { animation-play-state: paused; }
.san-group {
  display: flex;
  gap: 12px;
  padding-inline-end: 12px;               /* trailing gap, so both copies are exactly the same width (seamless loop) */
}
.san-group li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}
.san-group .icon { width: 16px; height: 16px; color: var(--accent); }
/* Moves exactly one copy; --san-dir is 1 in LTR and -1 in RTL (set in rtl.css) */
@keyframes sanMarquee { to { transform: translateX(calc(-50% * var(--san-dir, 1))); } }

/* ---------- 9f. Responsive ---------- */
/* Tablet / phone: photo on top, rail below (one column) */
@media (max-width: 899px) {
  .san-stage { grid-template-columns: minmax(0, 1fr); }
  .san-visual { width: min(100%, 440px); }
}

/* Phones */
@media (max-width: 639px) {
  .san { --san-node: 44px; }
  .san-step { gap: 12px; }
  .san-card { padding: 14px 16px; }
  .san-cta { flex-direction: column; }
  .san-cta .svc-btn { width: 100%; }
  .san-band { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .san-band-label { justify-self: start; }
}


/* ==========================================================================
   10. SERVICES PAGE – SECTION 5: ODOUR REMOVAL & MATTRESS FRESHENING
   Layout: one wide column (no side-by-side halves).
     heading -> drag-to-wipe "stale to fresh" stage -> slider row -> segmented strip -> CTA.
   - --p (set on .fresh by index.js, default 55%) is how much of the stage is "fresh".
   - The fresh photo is clipped from the START side, so the same maths works in LTR and RTL.
   - Every caption, label and card sits BELOW or beside the photo, never on it.
   ========================================================================== */
.fresh {
  --p: 55%;                               /* freshness level = how far the handle has moved           */
  padding-block: 80px;                    /* consistent section spacing                                      */
  background: var(--surface);
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);        /* #odour-removal lands below the sticky navbar              */
  overflow-x: clip;
}

/* ---------- 10a. Centred heading ---------- */
.fresh-head {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;                              /* even rhythm: label, title, text */
  text-align: center;
}
.fresh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Three bars that rise and fall like a gentle breeze */
.fresh-air { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.fresh-air i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: freshAir 1.6s ease-in-out infinite;
}
.fresh-air i:nth-child(2) { animation-delay: 0.2s; }
.fresh-air i:nth-child(3) { animation-delay: 0.4s; }
@keyframes freshAir { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.fresh-head h2 {
  font-size: clamp(2.25rem, 1.325rem + 2.8vw, 3.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.fresh-lead {
  max-width: 62ch;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 10b. Wipe stage ---------- */
/* Frame = a gallery "mat" around the photo */
.fresh-frame {
  padding: 10px;                          /* same space on every side */
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 30px 60px -36px var(--glow-2);
}
.fresh-stage {
  position: relative;
  aspect-ratio: 21 / 10;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);             /* shows only while photos load */
  isolation: isolate;
  cursor: ew-resize;
  touch-action: pan-y;                    /* sideways drag moves the handle, up/down still scrolls the page */
  user-select: none;
}
.fresh-layer { position: absolute; inset: 0; }
.fresh-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  pointer-events: none;
  animation: freshDrift 14s ease-in-out infinite alternate;   /* slow breathing zoom (both photos, in sync) */
}
@keyframes freshDrift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Stale photo: dulled and hazy */
.fresh-layer--stale img { filter: grayscale(0.8) brightness(0.86) contrast(0.9); }
.fresh-layer--stale::after {              /* soft haze layer */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  opacity: 0.3;
  pointer-events: none;
}

/* Fresh photo: clipped so only the part on the START side of the handle shows (LTR default; RTL in rtl.css) */
.fresh-layer--fresh { clip-path: inset(0 calc(100% - var(--p)) 0 0); }

/* Odour wisps rise through the stale side and fade (they live in the stale layer, so the fresh photo hides them) */
.fresh-wisp {
  position: absolute;
  bottom: -25%;
  inset-inline-start: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-2) 0, transparent 70%);
  opacity: 0;
  z-index: 1;
  animation: freshRise var(--t) ease-in infinite;
  animation-delay: var(--dl);
}
@keyframes freshRise {
  0%   { bottom: -25%; opacity: 0;   transform: scale(0.6); }
  20%  { opacity: 1; }
  100% { bottom: 105%; opacity: 0;   transform: scale(1.5); }
}

/* Twinkles on the fresh side */
.fresh-spark {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  width: 24px;
  height: 24px;
  z-index: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--glow));
  animation: freshTwinkle 3.2s ease-in-out infinite;
  animation-delay: var(--dl);
}
@keyframes freshTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.15) rotate(20deg); }
}

/* Divider line + round handle. Position follows --p (the handle is kept inside the stage near the ends) */
.fresh-line {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--p);
  width: 3px;
  margin-inline-start: -1.5px;            /* centres the line on the exact boundary */
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  z-index: 2;
  pointer-events: none;
}
.fresh-knob {
  position: absolute;
  top: 50%;
  inset-inline-start: clamp(40px, var(--p), calc(100% - 40px));
  width: 52px;
  height: 52px;
  margin-top: -26px;
  margin-inline-start: -26px;             /* centres the handle on the line */
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 8px 20px -8px var(--glow-2);
  z-index: 3;
  pointer-events: none;
}
.fresh-knob::after {                      /* ring that pulses outwards to say "drag me" */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: freshPing 2.4s ease-out infinite;
}
@keyframes freshPing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- 10c. Slider row (under the photo) ---------- */
.fresh-ctrl {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.fresh-end { font-size: 0.9375rem; font-weight: 600; color: var(--text); }

.fresh-slider { position: relative; height: 28px; display: grid; align-items: center; }
/* Visible track: fills with the accent up to the handle (inset 14px = half the thumb, so the fill meets the thumb exactly) */
.fresh-rail {
  height: 8px;
  margin-inline: 14px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--border) var(--p));
}
/* Real (invisible-track) range input laid over the rail: gives mouse, touch and keyboard control */
.fresh-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
          appearance: none;
  cursor: grab;
}
.fresh-range:focus-visible { outline: none; }
.fresh-range::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.fresh-range::-moz-range-track              { height: 28px; background: transparent; border: 0; }
.fresh-range::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 28px;
  height: 28px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
  transition: box-shadow 0.25s var(--ease);
}
.fresh-range::-moz-range-thumb {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
  transition: box-shadow 0.25s var(--ease);
}
.fresh-range:hover::-webkit-slider-thumb,
.fresh-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--glow); }
.fresh-range:hover::-moz-range-thumb,
.fresh-range:focus-visible::-moz-range-thumb     { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--glow); }

.fresh-readout {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.fresh-val {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--accent);
}
.fresh-dot { margin-inline: 6px; }

/* ---------- 10d. Segmented strip: four odour sources in ONE bordered bar ---------- */
.fresh-notes {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;                               /* the gap shows the --border colour = thin dividers */
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--border);
  overflow: hidden;
}
.fresh-note {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;                          /* same space on all sides */
  background: var(--bg);
}
.fresh-note h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.fresh-note p  { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }

.fresh-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.fresh-note:hover .fresh-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
}
/* Accent line grows along the bottom edge on hover */
.fresh-note::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;                 /* RTL: right (rtl.css) */
  transition: transform 0.4s var(--ease);
}
.fresh-note:hover::after { transform: scaleX(1); }

/* Icons pop in one after another when the strip scrolls into view */
html.js .is-in .fresh-icon { animation: freshPop 0.6s var(--ease) calc(0.3s + var(--i, 0) * 0.14s) backwards; }
@keyframes freshPop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }

/* ---------- 10e. Closing call to action ---------- */
.fresh-cta {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.fresh-cta p {
  max-width: 28ch;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.125rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.fresh-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fresh .svc-btn--ghost:hover { background: var(--bg); }

/* ---------- 10f. Responsive ---------- */
/* Tablet / small laptop: taller stage, strip becomes 2 x 2 */
@media (max-width: 1099px) {
  .fresh-stage { aspect-ratio: 16 / 9; }
  .fresh-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: square stage, slider on its own row with the two labels under it, strip in one column */
@media (max-width: 639px) {
  .fresh-eyebrow { letter-spacing: 0.06em; text-align: center; }   /* keeps the label compact on phones */
  .fresh-frame { padding: 8px; border-radius: 28px; }
  .fresh-stage { aspect-ratio: 1 / 1; border-radius: 22px; }
  .fresh-knob { width: 44px; height: 44px; margin-top: -22px; margin-inline-start: -22px; }
  .fresh-ctrl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .fresh-slider { grid-column: 1 / -1; grid-row: 1; }
  .fresh-end--fresh { text-align: end; }
  .fresh-notes { grid-template-columns: minmax(0, 1fr); }
  .fresh-note { padding: 24px; }
  .fresh-cta-actions { width: 100%; flex-direction: column; }
  .fresh-cta-actions .svc-btn { width: 100%; }
}


/* ==========================================================================
   11. SERVICES PAGE – SECTION 6: OUR COMPLETE CLEANING PROCESS
   Layout: a horizontal filmstrip (different from every section above).
     heading -> sideways scroller (cards snap one by one) -> tool row -> progress rail.
   - Scroll-snap does the "one card at a time" feel; index.js only adds the active card,
     the progress rail, the arrow buttons, mouse dragging and the arrow keys.
   - The scroller is a flex row, so it flips by itself in RTL (only the hint arrow needs rtl.css).
   - Photos carry no text: the step number, title and sentence sit BELOW each photo.
   ========================================================================== */
.proc {
  --proc-gap: 18px;
  padding-block: 80px;                    /* consistent section spacing                                        */
  background: var(--bg);
  border-top: 1px solid var(--border);    /* keeps it separate from Section 5 above                      */
  scroll-margin-top: var(--nav-h);        /* #cleaning-process lands below the sticky navbar             */
  overflow-x: clip;
}

/* ---------- 11a. Centred heading ---------- */
.proc-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;                              /* even rhythm: label, title, text */
  text-align: center;
}
/* Label: a small solid square + text (no pill and no lines, so it differs from the other sections) */
.proc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;                   /* 17px */
  font-weight: 600;
  color: var(--muted);
}
.proc-eyebrow i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  animation: procSquare 3.2s ease-in-out infinite;
}
@keyframes procSquare { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg) scale(0.85); } }

.proc-head h2 {
  font-size: clamp(2.25rem, 1.325rem + 2.8vw, 3.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.proc-lead {
  max-width: 56ch;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 11b. Four-step process grid ---------- */
.proc-view {
  width: 100%;
}
.proc-scroller {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--proc-gap);
  margin: 0;
  padding: 8px 4px 12px;
  list-style: none;
  overflow: visible;
}

/* ---------- 11c. Card: photo on top, text below ---------- */
.proc-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
/* Active card: lifts a little, outline turns accent, soft shadow */
.proc-card.is-active {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px -14px var(--glow-2);
}
.proc-card:hover,
.proc-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px -14px var(--glow-2);
}

.proc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}
.proc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);                 /* resting: slightly zoomed in */
  transition: transform 1.1s var(--ease);
}
.proc-card.is-active .proc-media img { transform: scale(1); }   /* active: settles to normal */
/* A thin light sweeps down the photo of the active step (decoration only, no text) */
.proc-media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 4px var(--glow);
  opacity: 0;
  pointer-events: none;
}
.proc-card.is-active .proc-media::after { animation: procScan 3.4s ease-in-out 0.4s infinite; }
@keyframes procScan {
  0%   { top: 0;    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: calc(100% - 3px); opacity: 0; }
}

.proc-body { display: grid; gap: 12px; align-content: start; }
.proc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proc-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9375rem;                   /* 15px */
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.proc-card.is-active .proc-pill { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.proc-card:hover .proc-pill,
.proc-card:focus-within .proc-pill { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.proc-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.proc-chip .icon { width: 20px; height: 20px; }
.proc-card.is-active .proc-chip .icon { animation: procBob 2.4s ease-in-out infinite; }
@keyframes procBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Step 4: the tick is always visible and redraws itself every time the card becomes active */
.proc-chip--tick .icon { stroke-dasharray: 1; }
.proc-card.is-active .proc-chip--tick .icon { animation: procTick 0.9s var(--ease) 0.3s backwards; }
@keyframes procTick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.proc-body h3 {
  font-size: clamp(1.5rem, 1.225rem + 0.7vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.4em;                     /* reserve two title lines so descriptions align */
}
.proc-body p { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }

/* ---------- 11d. Tool row: hint + previous / next ---------- */
.proc-tools {
  margin-top: clamp(20px, 3vw, 28px);
  padding-inline: var(--proc-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.proc-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--muted); }
.proc-hint .icon { width: 18px; height: 18px; color: var(--accent); animation: procNudge 1.6s ease-in-out infinite; }
@keyframes procNudge { 0%, 100% { translate: 0 0; } 50% { translate: calc(6px * var(--proc-dir, 1)) 0; } }
.proc.is-used .proc-hint .icon { animation: none; }       /* the hint stops once the visitor has tried it */
.proc-arrows { display: flex; gap: 10px; }
.proc-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.proc-btn .icon { width: 20px; height: 20px; }
.proc-prev .icon { transform: scaleX(-1); }               /* previous points to the start side (RTL in rtl.css) */
.proc-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: scale(1.06); }
.proc-btn:focus-visible,
.proc-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proc-btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- 11e. Progress rail ---------- */
.proc-rail {
  margin-top: clamp(24px, 3vw, 32px);
  padding-inline: var(--proc-edge);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  --proc-num: 2.5rem;                     /* height of the big number: the lines sit on its middle */
}
.proc-node {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}
.proc-num { font-family: var(--font-head); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 500; line-height: var(--proc-num); }
.proc-name { font-size: 0.8125rem; font-weight: 500; }   /* 13px */
.proc-node.is-done { color: var(--accent); }
.proc-node.is-active { color: var(--text); }
.proc-node.is-active .proc-num { animation: procPop 0.5s var(--ease); }
@keyframes procPop { 0% { transform: scale(0.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.proc-node:hover { color: var(--text); }
/* Line between two stops: grey track + accent fill (--f runs from 0 to 1, set by index.js) */
.proc-seg {
  position: relative;
  flex: 1 1 0;
  align-self: flex-start;
  height: 4px;
  margin-top: calc(var(--proc-num) / 2 - 2px);
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.proc-seg::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;                  /* fills from the start side in both directions */
  width: calc(var(--f, 0) * 100%);
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- 11f. Responsive ---------- */
@media (max-width: 1099px) {
  .proc-scroller { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .proc-scroller { grid-template-columns: minmax(0, 1fr); }
  .proc-card { padding: 16px; gap: 16px; }
  .proc-media { aspect-ratio: 16 / 10; }
}

/* Calm version for visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .proc-eyebrow i,
  .proc-hint .icon,
  .proc-chip .icon,
  .proc-node.is-active .proc-num,
  .proc-card.is-active .proc-media::after { animation: none !important; }
  .proc-media img { transform: none; transition: none; }
  .proc-card.is-active { transform: none; }
}

/* ==========================================================================
   12. PRICING PAGE – HERO BANNER (fills the screen below the navbar)
   Layout: a "quilted" stack.
     photo (nothing on top of it)  ->  solid band: headline | four price tickets
   - The photo and the content never share the same space, so each stays fully readable.
   - The band's top edge is scalloped like quilting, with a row of moving stitches under it.
   - Tickets are even cards (20px inside, 16px apart). The band has equal top and bottom padding.
   ========================================================================== */
.price-hero {
  --price-gap: 16px;                      /* space between the tickets                    */
  --price-pad: clamp(32px, 4vw, 48px);    /* band padding: used for BOTH top and bottom   */
  display: flex;
  flex-direction: column;                 /* photo on top, band underneath                */
  min-height: calc(100vh - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--nav-h) - 1px);   /* 1px = navbar bottom border */
  background: var(--bg);
}

/* Full-height photo banner with the complete pricing content centered over it. */
.price-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  place-items: center;
  isolation: isolate;
}
@media (min-width: 1100px) {
  .price-hero {
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    min-height: 0;
  }
}
.price-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  min-height: 0;
}
.price-band {
  width: 100%;
  padding: clamp(24px, 5vh, 56px) 0;
  background: transparent;
  border: 0;
}
.price-band::before,
.price-stitch { display: none; }
.price-grid {
  width: min(1320px, calc(100% - 48px));
  padding: clamp(24px, 3vw, 44px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------- 12a. Photo ---------- */
.price-photo {
  position: relative;
  flex: 1;                                /* takes all the height the band leaves over     */
  min-height: clamp(260px, 40svh, 520px);
  overflow: hidden;
}
.price-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;               /* shifts the crop down a little more to keep the cleaner in frame */
  transform-origin: 50% 70%;
  animation: priceDrift 18s ease-in-out infinite alternate;   /* slow, gentle zoom */
}
@keyframes priceDrift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Foam bubbles: soft rings that rise and fade (decoration only) */
.price-bubble {
  position: absolute;
  bottom: 0;
  inset-inline-start: var(--x);
  width: var(--s);
  height: var(--s);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--glow);
  opacity: 0;
  animation: priceRise var(--t) ease-in var(--dl) infinite;
  pointer-events: none;
}
@keyframes priceRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(-420px) scale(1.15); opacity: 0; }
}

/* ---------- 12b. Band with quilted top edge ---------- */
.price-band {
  position: relative;
  padding-block: var(--price-pad);        /* equal top and bottom */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
/* Scalloped edge: a row of half circles rising over the bottom of the photo */
.price-band::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -11px;
  height: 12px;
  background: radial-gradient(circle at 50% 100%, var(--surface) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
  pointer-events: none;
}
/* Row of stitches just under the scallops; the dashes slowly march along */
.price-stitch {
  position: absolute;
  inset-inline: 0;
  top: 16px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--secondary) 0 8px, transparent 8px 16px);
  animation: priceStitch 1.8s linear infinite;
}
@keyframes priceStitch { from { background-position-x: 0; } to { background-position-x: calc(16px * var(--price-dir, 1)); } }

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);   /* headline | tickets */
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ---------- 12c. Headline block ---------- */
.price-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}
/* Label: a pill with a pulsing dot */
.price-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--accent);
}
.price-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pricePing 2s ease-out infinite;
}
@keyframes pricePing { 0% { box-shadow: 0 0 0 0 var(--glow); } 100% { box-shadow: 0 0 0 10px transparent; } }
.price-copy h1 {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.price-lead { max-width: 42ch; font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.price-hero .svc-btn--ghost:hover { background: var(--bg); }
.price-hero .svc-btn--ghost { background: var(--surface); }

/* ---------- 12d. Price tickets ---------- */
.price-tickets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--price-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.price-ticket {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-ticket:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 24px -14px var(--glow-2); }

/* Top-view mattress drawn to scale: outline draws itself, stitches march on hover */
.price-bed { width: 64px; height: 64px; margin-bottom: 12px; overflow: visible; }
.price-bed * { fill: none; stroke-width: 2; stroke-linecap: round; }
.price-bed-edge { stroke: var(--accent); stroke-dasharray: 1; }
.price-bed-pillow { stroke: var(--secondary); }
.price-bed-stitch { stroke: var(--secondary); stroke-dasharray: 3 4; }
html.js .price-ticket.is-in .price-bed-edge { animation: priceDraw 1.2s var(--ease) calc(var(--d, 0ms) + 300ms) backwards; }
@keyframes priceDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.price-ticket:hover .price-bed-stitch { animation: priceMarch 0.8s linear infinite; }
@keyframes priceMarch { to { stroke-dashoffset: -7; } }

.price-size { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.price-dim { font-size: 0.9375rem; color: var(--muted); }
/* Price row sits under a dashed "tear-off" line, like a ticket stub */
.price-from {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.price-from b {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;     /* digits keep their width while counting up */
  color: var(--accent);
}

/* ---------- 12e. Responsive ---------- */
/* Tablet / small laptop: headline on top, tickets below in one row */
@media (max-width: 1099px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-lead { max-width: 60ch; }
}
/* Large phones / small tablets: tickets 2 x 2 */
@media (max-width: 759px) {
  .price-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones */
@media (max-width: 479px) {
  .price-ticket { padding: 16px; }
  .price-bed { width: 56px; height: 56px; }
  .price-actions { width: 100%; flex-direction: column; }
  .price-actions .svc-btn { width: 100%; }
}

/* Keep the whole pricing composition centered over the full-height photo. */
.price-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  place-items: center;
  isolation: isolate;
}
@media (min-width: 1100px) {
  .price-hero {
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    min-height: 0;
  }
}
.price-photo { position: absolute; z-index: -1; inset: 0; min-height: 0; }
.price-band {
  width: 100%;
  padding: clamp(24px, 5vh, 56px) 0;
  background: transparent;
  border: 0;
}
.price-band::before,
.price-stitch { display: none; }
.price-grid {
  width: min(1320px, calc(100% - 48px));
  padding: clamp(24px, 3vw, 44px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Calm version for visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .price-photo img,
  .price-stitch,
  .price-eyebrow i,
  .price-ticket:hover .price-bed-stitch,
  html.js .price-ticket.is-in .price-bed-edge { animation: none !important; }
  .price-bubble { display: none; }
}

/* ==========================================================================
   13. PRICING PAGE – SECTION 2: MATTRESS CLEANING PACKAGES
   Layout: "rising bubbles".
     heading -> three glowing soap-bubble orbs of growing size, each with its text BELOW it -> small print.
   - The orb row is bottom-aligned, so the bubbles climb from small to large (value is visible at a glance).
   - Every orb has a mattress drawing inside and a ring of tiny glowing bubbles orbiting OUTSIDE it,
     so decoration never touches the text.
   - --s (set per item in the HTML) scales the orb: 0.68 / 0.84 / 1 of --pk-max.
   ========================================================================== */
.pk {
  --pk-max: clamp(200px, 21vw, 264px);    /* diameter of the largest orb                    */
  --pk-ring: 26px;                        /* how far the orbiting ring sits outside an orb  */
  padding-block: 80px;                    /* consistent section spacing                           */
  background: var(--bg);
  scroll-margin-top: var(--nav-h);        /* #packages lands below the sticky navbar        */
  overflow-x: clip;
}

/* ---------- 13a. Centred heading ---------- */
.pk-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;                              /* even rhythm: label, title, text */
  text-align: center;
}
/* Label: a small glowing bubble + text */
.pk-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.pk-eyebrow i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 14px 3px var(--glow);
  animation: pkBlink 2.6s ease-in-out infinite;
}
@keyframes pkBlink { 0%, 100% { box-shadow: 0 0 8px 1px var(--glow); } 50% { box-shadow: 0 0 20px 6px var(--glow); } }
.pk-head h2 {
  font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pk-lead { max-width: 58ch; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }

/* ---------- 13b. The three packages ---------- */
.pk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);            /* even gap between packages */
  margin: 0;
  padding: 0;
  list-style: none;
}
.pk-item { display: grid; grid-template-rows: auto 1fr; justify-items: center; text-align: center; }   /* row 1 = orb, row 2 = text (stretches to the tallest package) */

/* Stage: a fixed-height row, orbs sit on its bottom edge so the bigger ones rise higher.
   Height = largest orb + room for the ring (both sides) + the float movement */
.pk-stage {
  width: 100%;
  height: calc(var(--pk-max) + var(--pk-ring) * 2 + 32px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(var(--pk-ring) + 24px);   /* clear space under the ring, even at the lowest point of the float */
}
/* Box = orb + ring; it gently bobs up and down (each one starts at a different moment) */
.pk-box {
  position: relative;
  width: calc(var(--pk-max) * var(--s));
  aspect-ratio: 1;
  animation: pkBob 6s ease-in-out var(--bd, 0s) infinite alternate;
}
@keyframes pkBob { from { transform: translateY(6px); } to { transform: translateY(-8px); } }

/* The soap bubble: thin rim, glowing halo, soft inner light and a small shine */
.pk-orb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, var(--glow) 100%),
    var(--surface);
  box-shadow: 0 0 34px 4px var(--glow), inset 0 0 26px var(--glow);
  animation: pkGlow 3.6s ease-in-out infinite alternate;
}
@keyframes pkGlow {
  from { box-shadow: 0 0 22px 2px var(--glow), inset 0 0 18px var(--glow); }
  to   { box-shadow: 0 0 46px 10px var(--glow), inset 0 0 32px var(--glow); }
}
/* Shine spot (top, start side) */
.pk-orb::before {
  content: "";
  position: absolute;
  top: 10%;
  inset-inline-start: 16%;
  width: 24%;
  height: 12%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.75;
  transform: rotate(-32deg);
}
/* Dark theme: the shine must be LIGHT on a dark bubble, so it uses the text colour */
html[data-theme="dark"] .pk-orb::before { background: var(--text); opacity: 0.55; }
/* Entrance: the bubble inflates */
html.js .pk-item.is-in .pk-orb {
  animation: pkPop 1s var(--ease) calc(var(--d, 0ms) + 150ms) backwards, pkGlow 3.6s ease-in-out infinite alternate;
}
@keyframes pkPop { 0% { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

/* Ring of tiny glowing bubbles that orbits OUTSIDE the orb */
.pk-ring {
  position: absolute;
  inset: calc(var(--pk-ring) * -1);
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: pkSpin 18s linear infinite;
}
.pk-item:nth-child(2) .pk-ring { animation-duration: 14s; animation-direction: reverse; }
@keyframes pkSpin { to { transform: rotate(360deg); } }
.pk-ring i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px var(--glow);
  translate: -50% -50%;
}
.pk-ring i:nth-child(1) { top: 0;   left: 50%; }
.pk-ring i:nth-child(2) { top: 75%; left: 6.7%;  width: 8px; height: 8px; }
.pk-ring i:nth-child(3) { top: 75%; left: 93.3%; width: 9px; height: 9px; }

/* Mattress drawings inside the orbs (all strokes use the site's colour variables) */
.pk-art { width: 62%; height: 62%; overflow: visible; }
.pk-art * { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pk-bed { stroke: var(--accent); }
.pk-bed-q { stroke: var(--secondary); stroke-dasharray: 4 5; }
.pk-leg { stroke: var(--secondary); }
/* Essential: dust lifts off the mattress and fades */
.pk-dust { fill: var(--secondary); stroke: none; transform-box: fill-box; transform-origin: center; animation: pkDust 2.8s ease-out var(--dl, 0s) infinite; }
@keyframes pkDust { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
/* Deep: steam curls rise and fade */
.pk-steam { stroke: var(--accent); stroke-dasharray: 34; animation: pkSteam 2.8s ease-in-out var(--dl, 0s) infinite; }
@keyframes pkSteam { 0% { stroke-dashoffset: 34; opacity: 0; } 35% { opacity: 1; } 100% { stroke-dashoffset: -34; opacity: 0; } }
/* Complete: the shield tick draws itself, sparkles twinkle */
.pk-shield { stroke: var(--accent); }
.pk-shield-tick { stroke: var(--accent); stroke-dasharray: 40; animation: pkShield 3.6s ease-in-out infinite; }
@keyframes pkShield { 0% { stroke-dashoffset: 40; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
.pk-spark { stroke: var(--secondary); transform-box: fill-box; transform-origin: center; animation: pkTwinkle 2.2s ease-in-out var(--dl, 0s) infinite; }
@keyframes pkTwinkle { 0%, 100% { transform: scale(0.4); opacity: 0.3; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- 13c. Text under each orb ---------- */
.pk-body { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 12px; }   /* flex: the feature list takes the spare height, so all three buttons line up at the bottom */
.pk-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--text);
}
.pk-item--hot .pk-tag { background: var(--accent); border-color: var(--accent); color: var(--bg); }   /* "Most popular" stands out */
.pk-body h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 600; line-height: 1.2; }
.pk-for { min-height: 3.3em; font-size: 1rem; line-height: 1.65; color: var(--muted); }   /* two lines reserved, so all prices line up */
/* Price sits between two dashed "stitch" lines */
.pk-price {
  width: 100%;
  padding-block: 14px;
  border-block: 2px dashed var(--border);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.pk-price b {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 18px var(--glow);
}
/* What's included: ticks draw themselves when the package appears */
.pk-feats { flex: 1; width: 100%; margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 10px; text-align: start; }
.pk-feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.pk-tick { width: 22px; height: 22px; color: var(--accent); stroke-dasharray: 1; }
html.js .pk-item.is-in .pk-tick { animation: pkTick 0.7s var(--ease) calc(var(--d, 0ms) + 600ms) backwards; }
@keyframes pkTick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pk-body .svc-btn { margin-top: 8px; width: 100%; padding-inline: 16px; }
.pk-body .svc-btn--ghost:hover { background: var(--surface); }

.pk-note { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 60ch; text-align: center; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 13d. Responsive ---------- */
/* Small tablets and phones: one package per row, orbs stay centred */
@media (max-width: 759px) {
  .pk { --pk-max: 240px; }               /* bigger orbs, since each one now has the full width */
  .pk-list { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pk-stage { height: auto; align-items: center; padding-block: calc(var(--pk-ring) + 12px); }   /* each orb only needs its own height */
  .pk-for { min-height: 0; }
}

/* Calm version for visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .pk-box,
  .pk-orb,
  .pk-ring,
  .pk-eyebrow i,
  .pk-dust,
  .pk-steam,
  .pk-shield-tick,
  .pk-spark,
  html.js .pk-item.is-in .pk-orb,
  html.js .pk-item.is-in .pk-tick { animation: none !important; }
  .pk-steam { stroke-dashoffset: 0; }
  .pk-dust { opacity: 1; }
}

/* ==========================================================================
   13.5. CONTACT PAGE – HERO BANNER (100vh Full Background Showcase)
   - Layout: 100vh canvas with live mattress steam cleaning background.
   - Symmetrical vertical padding (equal top and bottom).
   - Zero overlap: Left-aligned surface card protects all text and interactive items,
     while leaving the right-side steam extraction imagery completely unobstructed.
   - Rising foam bubbles & glowing pulse indicator animations.
   - Colors: strictly --bg, --surface, --accent, --secondary, --text, --muted,
     --border, --glow, --glow-2.
   - Typography uses the shared system font stacks, with all font sizes strictly >= 13px.
   ========================================================================== */
.contact-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(36px, 5vh, 60px);    /* Strict equal top and bottom padding */
  background-color: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed background visual: captures live mattress steam extraction and deep sanitization */
.contact-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.contact-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;             /* Keeps the cleaning machine and mattress fabric crystal clear */
  opacity: 0.96;
}

/* Foam bubbles: soft rings that rise and fade through the 100vh banner */
.contact-bubble {
  position: absolute;
  bottom: -32px;
  inset-inline-start: var(--x);
  width: var(--s);
  height: var(--s);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: var(--glow);
  opacity: 0;
  animation: contactBubbleRise var(--t) ease-in var(--dl) infinite;
  pointer-events: none;
}

@keyframes contactBubbleRise {
  0% {
    transform: translateY(0) scale(0.65);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(calc(-100vh - 60px)) scale(1.15);
    opacity: 0;
  }
}

/* Symmetrical container holding un-overlapped content */
.contact-hero-container {
  width: 100%;
  position: relative;
  z-index: 2;
  padding-inline: clamp(16px, 3vw, 40px);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

/* Zero-overlap hygienic card encasing text on solid surface for guaranteed contrast */
.contact-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 16px 40px var(--glow-2);
  display: grid;
  gap: 20px;                              /* Even spacing inside card */
  align-content: start;
}

/* Status indicator badge */
.contact-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-pulse-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow);
  animation: contactPulse 2.4s infinite;
  flex-shrink: 0;
}

@keyframes contactPulse {
  0% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.contact-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.contact-hero-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* Quick contact channels */
.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel-item:hover,
.contact-channel-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--glow-2);
}

.contact-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.contact-channel-icon .icon {
  width: 20px;
  height: 20px;
}

.contact-channel-info {
  display: grid;
  gap: 2px;
}

.contact-channel-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--muted);
}

.contact-channel-val {
  font-family: var(--font-body);
  font-size: 0.875rem;                    /* 14px */
  font-weight: 700;
  color: var(--text);
}

/* Actions and guarantees */
.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.contact-hero-btn {
  font-family: var(--font-body);
  font-size: 0.9375rem;                   /* 15px */
  font-weight: 600;
  padding: 13px 26px;
}

.contact-guarantee-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  color: var(--muted);
}

.contact-guarantee-note .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Right-side showcase floating spec pill (leaves photo completely visible) */
.contact-hero-showcase {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 260px;
  pointer-events: none;
}

.contact-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
  max-width: 100%;
  margin-inline-start: auto;
  justify-content: end;
}

.contact-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px var(--glow-2);
  pointer-events: auto;
  animation: contactFloat 4.2s ease-in-out infinite;
}
.contact-spec-tag:nth-child(2) { animation-delay: -1.1s; }
.contact-spec-tag:nth-child(3) { animation-delay: -2.2s; }
.contact-spec-tag:nth-child(4) { animation-delay: -0.6s; }
.contact-spec-tag:nth-child(5) { animation-delay: -1.7s; }

@keyframes contactFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.contact-spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-spec-icon .icon {
  width: 16px;
  height: 16px;
}

.contact-spec-meta {
  display: grid;
  gap: 2px;
}

.contact-spec-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.contact-spec-title {
  font-family: var(--font-body);
  font-size: 0.875rem;                    /* 14px */
  color: var(--text);
  font-weight: 700;
}

/* Responsive view (< 960px) */
@media (max-width: 959px) {
  .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .contact-hero-card {
    max-width: 580px;
    width: 100%;
  }
  .contact-hero-showcase {
    justify-content: flex-end;
    min-height: auto;
  }
  .contact-spec-grid { justify-content: end; }
}

@media (max-width: 540px) {
  .contact-spec-grid { grid-template-columns: minmax(0, 1fr); width: min(100%, 340px); }
  .contact-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   13.6. CONTACT PAGE – SECTION 2: BOOKING FORM & LIVE ESTIMATE
   - Symmetrical vertical padding (equal top and bottom).
   - Zero-overlap grid layout: form column + sticky live estimate summary.
   - All text sizes strictly >= 13px (0.8125rem).
   - Colour system: strictly site variables (--bg, --surface, --accent,
     --secondary, --text, --muted, --border, --glow, --glow-2).
   - Bubble animations inside summary card with float keyframes.
   ========================================================================== */
.book-sec {
  padding-block: clamp(56px, 8vh, 88px);    /* Strict equal top and bottom padding */
  background-color: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

/* Section Header */
.book-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.book-eyebrow {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.book-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.book-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Two-column layout */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
  padding-top: 5px;
}

.book-form-card { grid-column: 2; grid-row: 1; }
.book-summary-col { grid-column: 1; grid-row: 1; }

/* Form Container Card */
.book-form-card {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 36px var(--glow-2);
}

.book-form {
  display: grid;
  gap: 26px;
}

/* Step Fieldset & Legends */
.book-step {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.book-step-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  padding: 0;
  width: 100%;
}

.book-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;                    /* 14px */
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.book-step-text {
  display: grid;
  gap: 2px;
}

.book-step-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.book-step-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Step 1: Size Cards Grid */
.book-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.book-size-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: block;
}

.book-size-inner {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.book-size-card:hover .book-size-inner {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.book-size-card.is-selected .book-size-inner {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--glow), 0 6px 18px var(--glow-2);
}

.book-size-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.book-size-icon .icon {
  width: 22px;
  height: 22px;
}

.book-size-name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.book-size-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.book-size-price {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

/* Step 2: Treatment List */
.book-treat-list {
  display: grid;
  gap: 12px;
}

.book-treat-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.book-treat-item:hover {
  border-color: var(--secondary);
}

.book-treat-item.is-checked {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 2px 10px var(--glow-2);
}

.book-treat-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.book-treat-item.is-checked .book-treat-box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.book-treat-box .icon {
  width: 14px;
  height: 14px;
}

.book-treat-info {
  display: grid;
  gap: 2px;
}

.book-treat-name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.book-treat-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.book-treat-badge {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);                      /* text colour keeps 4.5:1+ on the soft sage tint in both themes */
  background: var(--glow);
  padding: 4px 10px;
  border-radius: 999px;
}

.book-treat-price {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent);
}

/* Steps 3 & 4: Inputs & Grids */
.book-schedule-grid,
.book-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.book-field {
  display: grid;
  gap: 6px;
}

.book-field--full {
  grid-column: 1 / -1;
}

.book-label {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.book-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.book-input {
  width: 100%;
  padding: 12px 14px;
  padding-inline-end: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.book-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.book-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
  font-size: 1.0625rem;
}

.book-input-icon {
  position: absolute;
  inset-inline-end: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.book-select {
  appearance: none;
  cursor: pointer;
}

.book-textarea {
  resize: vertical;
  min-height: 80px;
  padding-inline-end: 14px;
}

/* Submit bar */
.book-submit-bar {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.book-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

.book-disclaimer {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.book-msg {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  border-radius: 10px;
  padding: 0;
  transition: all 0.3s ease;
}

.book-msg.is-success {
  padding: 14px 18px;
  background: var(--glow);
  border: 1px solid var(--secondary);
  color: var(--text);
}

.book-msg.is-error {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
}

/* Summary Column (Sticky on Desktop) */
.book-summary-col {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.book-summary-card {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 32px);
  box-shadow: 0 12px 36px var(--glow-2);
  display: grid;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

/* Floating sanitizing bubbles inside summary card */
.book-summary-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.book-bubble {
  position: absolute;
  bottom: -20px;
  inset-inline-start: var(--bx);
  width: var(--bs);
  height: var(--bs);
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  background: var(--glow);
  opacity: 0;
  animation: bookBubbleFloat var(--bt) ease-in var(--bdl) infinite;
}

@keyframes bookBubbleFloat {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  20%  { opacity: 0.75; }
  80%  { opacity: 0.55; }
  100% { transform: translateY(-300px) scale(1.1); opacity: 0; }
}

.book-summary-head,
.book-summary-body,
.book-trust-list,
.book-help-strip {
  position: relative;
  z-index: 2;
}

.book-summary-tag {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.book-summary-title {
  font-family: var(--font-head);
  font-size: 1.35rem;                     /* ~21px */
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 0;
}

/* Breakdown body */
.book-summary-body {
  display: grid;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.book-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
}

.book-sum-row.is-hidden {
  display: none;
}

.book-sum-label {
  color: var(--muted);
}

.book-sum-val {
  font-weight: 700;
  color: var(--text);
}

.book-sum-divider {
  height: 1px;
  background: var(--border);
  margin-block: 4px;
}

.book-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.book-total-meta {
  display: grid;
  gap: 2px;
}

.book-total-label {
  font-family: var(--font-head);
  font-size: 1.0625rem;                   /* 17px */
  font-weight: 700;
  color: var(--text);
}

.book-total-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.book-total-amount {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-head);
  color: var(--accent);
  font-weight: 700;
}

.book-total-curr {
  font-size: 1.25rem;
  line-height: 1.2;
}

.book-total-num {
  font-size: 2.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Reassurance Badges */
.book-trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.book-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.book-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.book-trust-icon .icon {
  width: 16px;
  height: 16px;
}

.book-trust-text {
  display: grid;
  gap: 2px;
}

.book-trust-text strong {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.book-trust-text span {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Phone strip */
.book-help-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
}

.book-help-txt {
  color: var(--muted);
  font-weight: 500;
}

.book-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.book-help-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 959px) {
  .book-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-form-card,
  .book-summary-col { grid-column: auto; grid-row: auto; }
  .book-summary-col {
    position: static;
  }
}

@media (max-width: 639px) {
  .book-size-grid,
  .book-schedule-grid,
  .book-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   13.7. CONTACT PAGE – SECTION 3: MAP & SERVICE COVERAGE
   - Symmetrical vertical padding (equal top and bottom).
   - Full-width responsive map stage with zero overlap.
   - Clean 3-column information cards positioned neatly below the map.
   - All text sizes strictly >= 13px (0.8125rem).
   - Strict site color variables only.
   ========================================================================== */
.contact-map-sec {
  padding-block: clamp(56px, 8vh, 88px);    /* Strict equal top and bottom padding */
  background-color: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.map-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 48px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.map-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.map-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.map-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* Full Map Container */
.map-stage {
  width: 100%;
  height: clamp(340px, 45vh, 460px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px var(--glow-2);
  overflow: hidden;
  background-color: var(--surface);
  position: relative;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

html[data-theme="dark"] .map-iframe {
  filter: grayscale(80%) invert(90%) hue-rotate(180deg) contrast(0.88);
}

/* 3-Column Information Cards below map (zero overlap) */
.map-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.map-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 6px 20px var(--glow-2);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.map-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
}

.map-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.map-info-icon .icon {
  width: 18px;
  height: 18px;
}

.map-info-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;                   /* 17px */
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.map-info-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.map-info-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 899px) {
  .map-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   13.8. CONTACT PAGE – SECTION 4: SERVICE COVERAGE & AREA AVAILABILITY
   - Symmetrical vertical padding (equal top and bottom).
   - Sticky pinned radar command card (left) and sequential scrolling area cards (right).
   - Zero overlap: columns are strictly partitioned in CSS Grid.
   - All text sizes strictly >= 13px (0.8125rem).
   - Strict site color variables only.
   - Animated radar rings, pulsing beacon & floating sanitizing bubbles.
   ========================================================================== */
.cov-sec {
  padding-block: clamp(56px, 8vh, 88px);    /* Strict equal top and bottom padding */
  background-color: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.cov-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.cov-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cov-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.cov-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Grid: Left Sticky Column + Right Scrolling Column */
.cov-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* Pinned Sticky Card */
.cov-sticky-col {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.cov-pinned-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 32px);
  box-shadow: 0 12px 36px var(--glow-2);
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Floating bubbles inside pinned card */
.cov-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cov-bubble {
  position: absolute;
  bottom: -20px;
  inset-inline-start: var(--cx);
  width: var(--cs);
  height: var(--cs);
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  background: var(--glow);
  opacity: 0;
  animation: covBubbleRise var(--ct) ease-in var(--cdl) infinite;
}

@keyframes covBubbleRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  20%  { opacity: 0.75; }
  80%  { opacity: 0.55; }
  100% { transform: translateY(-280px) scale(1.1); opacity: 0; }
}

.cov-pinned-top,
.cov-active-box,
.cov-check-box,
.cov-pinned-footer {
  position: relative;
  z-index: 2;
}

/* Radar Animation Header */
.cov-pinned-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cov-radar-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cov-radar-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  position: relative;
  z-index: 2;
}

.cov-radar-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  opacity: 0;
  animation: covRadarPulse 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.cov-radar-ring--1 { animation-delay: 0s; }
.cov-radar-ring--2 { animation-delay: 1s; }
.cov-radar-ring--3 { animation-delay: 2s; }

@keyframes covRadarPulse {
  0% {
    transform: scale(0.2);
    opacity: 0.9;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.cov-status-text {
  display: grid;
  gap: 2px;
}

.cov-status-pill {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cov-pinned-title {
  font-family: var(--font-head);
  font-size: 1.25rem;                     /* 20px */
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Active Zone Live Display */
.cov-active-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cov-active-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.cov-active-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;                   /* 17px */
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.cov-active-eta {
  font-family: var(--font-body);
  font-size: 0.875rem;                    /* 14px */
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

/* Interactive Postal Code / Area Checker */
.cov-check-box {
  display: grid;
  gap: 8px;
}

.cov-check-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--text);
}

.cov-input-group {
  display: flex;
  gap: 8px;
}

.cov-check-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;                    /* 14px */
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cov-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.cov-check-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
  font-size: 0.8125rem;                   /* 13px */
}

.cov-check-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cov-check-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cov-check-btn .icon {
  width: 18px;
  height: 18px;
}

.cov-check-result {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.cov-check-result.is-matched {
  color: var(--accent);
  font-weight: 600;
}

/* Pinned Footer */
.cov-pinned-footer {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.cov-book-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9375rem;                   /* 15px */
  font-weight: 600;
}

.cov-pinned-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  color: var(--muted);
  line-height: 1.4;
}

.cov-pinned-note .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Right Column: Scrolling Area Cards */
.cov-scroll-col {
  display: grid;
  gap: clamp(24px, 3.5vw, 36px);
}

.cov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 8px 24px var(--glow-2);
  display: grid;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cov-card.is-active,
.cov-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--glow-2);
}

.cov-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cov-zone-badge {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
}

.cov-sla-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

.cov-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cov-card-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.cov-card-meta {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.cov-meta-item {
  display: grid;
  gap: 2px;
}

.cov-meta-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cov-meta-val {
  font-family: var(--font-body);
  font-size: 0.875rem;                    /* 14px */
  color: var(--text);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 959px) {
  .cov-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cov-sticky-col {
    position: static;
  }
}

@media (max-width: 639px) {
  .cov-card-header { flex-direction: column; justify-content: center; gap: 8px; }
  .cov-zone-badge,
  .cov-sla-tag { flex-shrink: 0; white-space: nowrap; text-align: center; }
}

/* ==========================================================================
   13.9. CONTACT PAGE – SECTION 5: WHY CONTACT US (Build Trust)
   - Unique single-flow panoramic layout: not a 2-column, not a 3-column layout.
   - Symmetrical vertical padding (equal top and bottom).
   - Zero overlap: Centerpiece photography with captions strictly positioned underneath.
   - 4-Pillar linear verification chain with custom check nodes.
   - All text sizes strictly >= 13px (0.8125rem).
   - Strict site color variables only.
   ========================================================================== */
.trust-sec {
  padding-block: clamp(56px, 8vh, 88px);    /* Strict equal top and bottom padding */
  background-color: var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
}

.trust-container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 48px);
}

.trust-head {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.trust-eyebrow {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.trust-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.trust-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Centerpiece Panoramic Media Stage */
.trust-stage {
  grid-column: 1;
  max-width: none;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.trust-frame {
  width: 100%;
  flex: 1;
  min-height: clamp(320px, 42vh, 420px);
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px var(--glow-2);
  overflow: hidden;
  background-color: var(--surface);
}

.trust-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Captions strictly below photo (zero overlap) */
.trust-caption-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 14px var(--glow-2);
}

.trust-badge-pill .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* 4-Pillar Linear Verification Chain */
.trust-chain {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  max-width: none;
  margin: 0;
  width: 100%;
}

@keyframes trustNodeSplitIn {
  from { opacity: 0; transform: translate(var(--trust-x), var(--trust-y)) scale(0.96); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.trust-chain.is-in .trust-node {
  animation: trustNodeSplitIn 650ms var(--ease) backwards;
}
.trust-chain.is-in .trust-node:nth-child(1) { --trust-x: -28px; --trust-y: -18px; animation-delay: 50ms; }
.trust-chain.is-in .trust-node:nth-child(2) { --trust-x: 28px; --trust-y: -18px; animation-delay: 150ms; }
.trust-chain.is-in .trust-node:nth-child(3) { --trust-x: -28px; --trust-y: 18px; animation-delay: 250ms; }
.trust-chain.is-in .trust-node:nth-child(4) { --trust-x: 28px; --trust-y: 18px; animation-delay: 350ms; }

.trust-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 2.5vw, 24px);
  box-shadow: 0 6px 20px var(--glow-2);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-node:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
}

.trust-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-node-num {
  font-family: var(--font-head);
  font-size: 0.875rem;                    /* 14px */
  font-weight: 700;
  color: var(--accent);
}

.trust-node-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.trust-node-icon .icon {
  width: 14px;
  height: 14px;
}

.trust-node-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.trust-node-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 959px) {
  .trust-container { grid-template-columns: minmax(0, 1fr); }
  .trust-stage,
  .trust-chain { grid-column: auto; }
  .trust-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .trust-chain {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   14. ABOUT PAGE – HERO BANNER (fills the screen below the navbar)
   Layout: "the bubble window".
     text on the plain background  |  one giant bubble-shaped photo window running off the screen edge
   - The photo and the text live in different cells, so they never overlap and both stay fully readable.
   - Glowing bubbles float along the window's curved edge, in the gap between photo and text.
   - Phones / tablets: the window goes on top with a rounded BOTTOM edge, the text sits under it.
   - Everything uses logical properties, so it flips by itself in RTL.
   ========================================================================== */
.about-hero {
  --about-photo: 56fr;                    /* share of the width for the photo window (text gets 44fr) */
  --about-pad: clamp(40px, 6vw, 72px);    /* text block padding: used for BOTH top and bottom         */
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, var(--about-photo));
  min-height: calc(100vh - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--nav-h) - 1px);   /* 1px = navbar bottom border */
  background: var(--bg);
  overflow-x: clip;
}

/* ---------- 14a. Photo window ---------- */
.about-stage { position: relative; grid-column: 2; grid-row: 1; }    /* second column = end side */
.about-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  /* round on the side facing the text (start side), square where it runs off the screen */
  border-start-start-radius: 40% 50%;
  border-end-start-radius: 40% 50%;
  box-shadow: 0 0 0 3px var(--secondary), 0 0 46px 6px var(--glow);   /* thin bubble rim + soft glow */
  transform-origin: var(--about-origin, 100% 50%);
  animation: aboutInflate 1.2s var(--ease) backwards, aboutRim 4s ease-in-out 1.2s infinite alternate;
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;               /* keeps the technician and the mattress in view */
}
@keyframes aboutInflate { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes aboutRim {
  from { box-shadow: 0 0 0 3px var(--secondary), 0 0 28px 2px var(--glow); }
  to   { box-shadow: 0 0 0 3px var(--secondary), 0 0 60px 12px var(--glow); }
}

/* ---------- 14b. Glowing bubbles on the curved edge ---------- */
.about-bubbles { position: absolute; inset: 0; pointer-events: none; }
.about-bubble {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin-inline-start: calc(var(--s) / -2);   /* centre the bubble on its point */
  margin-top: calc(var(--s) / -2);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 55%, var(--glow) 100%);   /* glass: the photo shows through */
  box-shadow: 0 0 26px 6px var(--glow), inset 0 0 16px var(--glow);
  animation: aboutPop 0.9s var(--ease) calc(var(--dl) + 0.6s) backwards,
             aboutFloat var(--t) ease-in-out var(--dl) infinite alternate,
             aboutGlow 3.2s ease-in-out var(--dl) infinite alternate;
}
/* Shine spot on each bubble */
.about-bubble::before {
  content: "";
  position: absolute;
  top: 14%;
  inset-inline-start: 20%;
  width: 28%;
  height: 16%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.85;
  transform: rotate(-32deg);
}
html[data-theme="dark"] .about-bubble::before { background: var(--text); opacity: 0.6; }   /* light shine on dark mode */
@keyframes aboutPop   { from { transform: scale(0.2); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); } }
@keyframes aboutFloat { from { translate: 0 -8px; } to { translate: 0 10px; } }
@keyframes aboutGlow  {
  from { box-shadow: 0 0 14px 2px var(--glow), inset 0 0 10px var(--glow); }
  to   { box-shadow: 0 0 30px 8px var(--glow), inset 0 0 18px var(--glow); }
}

/* ---------- 14c. Text block ---------- */
.about-copy {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;                              /* even rhythm between every item */
  padding-block: var(--about-pad);        /* equal top and bottom */
  /* start edge lines up with the navbar logo; end edge leaves room for the bubbles */
  padding-inline-start: max(var(--gutter), calc((100vw - 1320px) / 2));
  padding-inline-end: clamp(48px, 5vw, 80px);
}
.about-copy > * { max-width: 100%; }

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}
.about-eyebrow svg { width: 30px; height: 19px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.about-copy h1 {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Stitched underline (a quilt stitch that slowly marches) */
.about-stitch {
  width: 112px;
  height: 3px;
  background: repeating-linear-gradient(to right, var(--accent) 0 10px, transparent 10px 18px);
  animation: aboutStitch 1.8s linear infinite;
}
@keyframes aboutStitch { from { background-position-x: 0; } to { background-position-x: calc(18px * var(--about-dir, 1)); } }
.about-lead { max-width: 46ch; font-size: 17px !important; line-height: 1.65; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-hero .svc-btn--ghost:hover { background: var(--surface); }

/* Stats: three equal columns under a dashed line */
.about-stats {
  width: 100%;
  max-width: 480px;
  margin: 4px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 2px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-stats li { display: grid; gap: 4px; align-content: start; }
.about-stats b {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;     /* digits keep their width while counting up */
  color: var(--accent);
}
.about-stats li > span { font-size: 0.9375rem; line-height: 1.35; color: var(--muted); }

/* ---------- 14d. Responsive ---------- */
/* Small laptops: slightly smaller bubbles so they never reach the text */
@media (max-width: 1239px) {
  .about-bubble { width: calc(var(--s) * 0.8); height: calc(var(--s) * 0.8); margin-inline-start: calc(var(--s) * -0.4); margin-top: calc(var(--s) * -0.4); }
  .about-copy { padding-inline-end: 44px; }
}
/* Tablets and phones: photo window on top (round BOTTOM edge), text underneath */
@media (max-width: 999px) {
  .about-hero {
    --about-origin: 50% 0%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(clamp(300px, 44svh, 520px), 1fr) auto;   /* photo takes the spare height */
  }
  .about-stage { grid-column: 1; grid-row: 1; }
  .about-copy { grid-column: 1; grid-row: 2; padding-inline: var(--gutter); }
  .about-photo { border-radius: 0 0 50% 50% / 0 0 26% 26%; }
  .about-bubble { inset-inline-start: var(--mx); top: var(--my); }
  .about-stats { max-width: none; }
}
/* Phones */
@media (max-width: 479px) {
  .about-actions { width: 100%; flex-direction: column; }
  .about-actions .svc-btn { width: 100%; }
  .about-stats { gap: 12px; }
}

/* Calm version for visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .about-photo,
  .about-bubble,
  .about-stitch { animation: none !important; }
}

/* ==========================================================================
   14b. HOME 1 – HERO BANNER (fills the screen below the navbar)
   Layout: "bubble stage".
     full-bleed photo (no overlay, fully visible)  +  bubbles rising over it  +  solid panel on the end side
     numbers strip BELOW the photo (nothing is written on the photo itself)
   - The panel is solid, so text is readable in light and dark mode, and the photo stays untouched.
   - Bubbles sit behind the panel, so they can never cover text.
   - Logical properties are used, so the panel flips to the other side in RTL (the photo is mirrored to match).
   ========================================================================== */
.home-hero {
  display: flex;
  flex-direction: column;                 /* stage on top, numbers strip underneath */
  min-height: calc(100vh - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--nav-h) - 1px);   /* 1px = navbar bottom border */
  background: var(--bg);
}

/* ---------- 14b-1. Stage + background photo ---------- */
.home-stage {
  position: relative;
  flex: 1;                                /* takes all the height the strip leaves over */
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 5vh, 56px);  /* equal top and bottom */
  background: var(--surface);             /* only visible while the photo loads */
  overflow: hidden;
  isolation: isolate;                     /* keeps photo + bubbles behind the panel */
}
.home-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* photo always fills the banner */
  object-position: 30% 0%;                /* keep the technician's head clear of the banner edge */
  transform-origin: 30% 0%;
  animation: homeDrift 18s ease-in-out infinite alternate;   /* slow, gentle zoom */
}
@keyframes homeDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ---------- 14b-2. Bubbles ---------- */
.home-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;                            /* above the photo, below the panel */
  overflow: hidden;
  pointer-events: none;                   /* never blocks clicks */
}
/* One bubble: thin rim, soft glow fill. Used by the ambient bubbles and the mouse bubbles. */
.home-bubble,
.home-pop {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at 30% 28%, var(--glow) 0, var(--glow-2) 48%, transparent 72%);
  box-shadow: inset 0 0 10px var(--glow), 0 0 16px var(--glow-2);
}
.home-bubble::after,
.home-pop::after {                        /* small highlight dot that makes it look like a soap bubble */
  content: "";
  position: absolute;
  top: 18%;
  inset-inline-start: 20%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.75;
}
/* Ambient bubbles: start under the banner, rise, sway left/right, fade in and out */
.home-bubble {
  bottom: 0;
  inset-inline-start: var(--x);
  opacity: 0;
  animation: homeRise var(--t) ease-in var(--d) infinite;
}
@keyframes homeRise {
  0%   { opacity: 0;   transform: translate(0, 100%); }
  12%  { opacity: 0.9; }
  50%  { transform: translate(var(--sw), -45vh) scale(1.08); }
  88%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(calc(var(--sw) * -1), -95vh) scale(0.95); }
}
/* Mouse / tap bubbles (created by index.js): float up a little, then fade away */
.home-pop {
  opacity: 0;
  animation: homePop 1.9s ease-out forwards;
}
@keyframes homePop {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.4); }
  15%  { opacity: 0.95; }
  100% { opacity: 0;   transform: translate(var(--dx), -110px) scale(1.15); }
}

/* ---------- 14b-3. Content panel ---------- */
.home-inner { display: flex; justify-content: flex-end; }   /* end side: right in LTR, left in RTL */
.home-panel {
  width: min(100%, 520px);
  padding: clamp(24px, 3vw, 40px);        /* same padding on every side */
  display: grid;
  gap: clamp(14px, 2.2vh, 22px);          /* even rhythm between the panel items */
  justify-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px var(--glow-2), 0 0 0 6px var(--glow-2);
}
/* Every panel item rises in one after the other (order comes from --i in the HTML) */
.home-panel > * { animation: homeIn 0.7s var(--ease) calc(var(--i, 0) * 90ms + 150ms) both; }
@keyframes homeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill above the headline */
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-eyebrow .icon { width: 16px; height: 16px; animation: homeTwinkle 2.4s ease-in-out infinite; }
@keyframes homeTwinkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.25) rotate(18deg); }
}

/* Headline: the second half has a slow shimmer that moves across the letters */
.home-panel h1 {
  font-size: clamp(2rem, min(3.6vw, 6.4vh), 3.5rem);   /* scales with width AND height so it always fits */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.home-shine {
  color: var(--accent);                   /* fallback if gradient text is not supported */
  background: linear-gradient(100deg, var(--accent) 30%, var(--text) 50%, var(--accent) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: homeShine 5s ease-in-out infinite;
}
@keyframes homeShine {
  0%   { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}

.home-lead {
  font-size: clamp(1rem, 1.9vh, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

/* Buttons */
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;                       /* keeps the shine inside the pill */
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.home-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.home-btn--solid {
  background: var(--accent);
  color: var(--bg);
  animation: homeBeat 3s ease-in-out 1.6s infinite;   /* soft pulse that draws the eye to the main button */
}
.home-btn--ghost { background: transparent; color: var(--accent); }
@keyframes homeBeat {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.home-btn::after {                        /* light sweep on hover */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, var(--glow), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.6s var(--ease);
}
.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow), 0 12px 24px -12px var(--glow-2);
}
.home-btn:hover::after { inset-inline-start: 130%; }
.home-btn--solid:hover .icon { transform: translateX(4px); }
.home-btn--ghost:hover { background: var(--surface); }

/* Trust chips: three equal columns, icon on top, text below */
.home-chips {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;                              /* same gap between every chip */
}
.home-chips li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;                     /* same padding top/bottom, even sides */
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.home-chips .icon { width: 22px; height: 22px; color: var(--accent); }
.home-chips li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

/* ---------- 14b-4. Numbers strip (below the photo) ---------- */
.home-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 20px;                    /* equal top and bottom */
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.home-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-inline: 12px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.home-stats li + li { border-inline-start: 1px solid var(--border); }   /* thin divider between numbers */
.home-stats b {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

/* ---------- 14b-5. Tablet / mobile (< 900px) ---------- */
@media (max-width: 899px) {
  .home-stage { align-items: flex-end; }
  .home-bg img { object-position: 34% 0; transform-origin: 34% 0; }
  /* Empty space above the panel so the top of the photo (the technician) stays visible */
  .home-inner { margin-top: clamp(160px, 32svh, 300px); justify-content: center; }
  .home-panel { width: 100%; }
}
@media (max-width: 479px) {
  .home-actions { width: 100%; }
  .home-btn { flex: 1 1 100%; }          /* buttons stack neatly at full width */
  .home-chips { gap: 8px; }
  .home-chips li { padding: 12px 6px; }
  .home-stats li { padding-inline: 6px; }
}

/* ==========================================================================
   14c. HOME 1 – SECTION 2: WHAT'S HIDING INSIDE YOUR MATTRESS?
   Layout: "the cross-section board".
     centred heading  ->  one wide mattress cross-section with a numbered marker column  ->  four always-visible notes  ->  button
   - Nothing expands and nothing is stacked: the four notes are laid out side by side under the drawing.
   - Picking a marker or a note lights ONE layer; the other layers dim. A timer line on the note also advances the layers by itself.
   - Effects: drifting dust motes, rising bubbles, a scanner light bar, crawling mites, dripping sweat,
     floating allergens, pulsing dirt, and a puff of dust + bubbles when a layer is picked.
   - The bubbles reuse .home-bubble / .home-pop from the banner (14b).
   - Logical properties are used everywhere; in RTL the drawing is mirrored (see rtl.css).
   ========================================================================== */
.hid-sec {
  --hid-pin: clamp(28px, 3.8vw, 44px);    /* size of the numbered markers */
  --hid-dur: 5s;                          /* time each layer stays in focus on its own */
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);  /* equal top and bottom */
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow), transparent 60%),
    var(--bg);
  overflow: hidden;
  isolation: isolate;                     /* keeps the effects behind the content */
}
.hid-wrap {
  position: relative;
  display: grid;
  gap: clamp(28px, 3.5vw, 44px);          /* one even gap between heading, board and button */
  justify-items: center;
}

/* ---------- 14c-1. Background effects ---------- */
.hid-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hid-dust { position: absolute; inset: 0; }
/* One dust mote: a tiny dot that drifts slowly and twinkles (size / path / speed set by index.js) */
.hid-mote {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: hidMote var(--t) ease-in-out var(--d) infinite;
}
@keyframes hidMote {
  0%   { opacity: 0;   transform: translate(0, 0); }
  25%  { opacity: 0.5; }
  75%  { opacity: 0.35; }
  100% { opacity: 0;   transform: translate(var(--dx), var(--dy)); }
}

/* ---------- 14c-2. Heading ---------- */
.hid-head {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.6vw, 18px);
  text-align: center;
}
.hid-head h2 {
  max-width: 20ch;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hid-head p {
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 14c-3. Board: drawing + notes share one width ---------- */
.hid-board {
  width: 100%;                         /* align the drawing and all four notes with the section container */
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
}

/* Drawing */
.hid-frame {
  position: relative;
  aspect-ratio: 960 / 440;               /* same shape as the drawing's viewBox (960 x 440) */
}
.hid-frame::before {                      /* soft glow behind the slab */
  content: "";
  position: absolute;
  inset: 6% 12% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--glow-2), transparent 70%);
}
.hid-svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }

/* Layers */
.hid-band--a { fill: var(--surface); }
.hid-band--b { fill: var(--bg); }
.hid-base { fill: var(--border); }
.hid-seam,
.hid-stitch,
.hid-fibre,
.hid-pore { fill: none; stroke: var(--border); stroke-width: 2; }
.hid-seam { stroke: var(--secondary); }
.hid-stitch { stroke-dasharray: 6 6; }
.hid-fibre { stroke-linecap: round; }
.hid-outline { fill: none; stroke: var(--secondary); stroke-width: 2.5; }
use[href="#hid-coil"] { fill: none; stroke: var(--secondary); stroke-width: 3; stroke-linecap: round; }

/* Highlight of the selected layer */
.hid-hl {
  fill: var(--glow-2);
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.hid-board[data-active="0"] .hid-hl[data-layer="0"],
.hid-board[data-active="1"] .hid-hl[data-layer="1"],
.hid-board[data-active="2"] .hid-hl[data-layer="2"],
.hid-board[data-active="3"] .hid-hl[data-layer="3"] { opacity: 1; }

/* Things living in the layers */
.hid-g { transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.hid-mite { fill: var(--secondary); stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }
.hid-drop { fill: var(--glow); stroke: var(--accent); stroke-width: 1.5; }
.hid-spore { fill: var(--glow-2); stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.hid-blob { fill: var(--muted); opacity: 0.55; }
/* Only the picked layer stays at full strength; the others fade back */
.hid-board[data-active] .hid-g { opacity: 0.3; }
.hid-board[data-active="0"] .hid-g[data-layer="0"],
.hid-board[data-active="1"] .hid-g[data-layer="1"],
.hid-board[data-active="2"] .hid-g[data-layer="2"],
.hid-board[data-active="3"] .hid-g[data-layer="3"] { opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }

/* Motion inside the drawing (transform-box makes each group spin / scale around its own centre) */
.hid-crawl,
.hid-drip,
.hid-float,
.hid-pulse { transform-box: fill-box; transform-origin: center; }
.hid-crawl { animation: hidCrawl var(--t) ease-in-out var(--d) infinite alternate; }
.hid-drip  { animation: hidDrip 3.2s ease-in var(--d) infinite; }
.hid-float { animation: hidFloat 6s ease-in-out var(--d) infinite alternate; }
.hid-pulse { animation: hidPulse 4s ease-in-out var(--d) infinite alternate; }
@keyframes hidCrawl { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
@keyframes hidDrip {
  0%   { transform: translateY(-6px) scale(0.9); opacity: 0.6; }
  60%  { opacity: 1; }
  100% { transform: translateY(12px) scale(1.1); opacity: 0.3; }
}
@keyframes hidFloat {
  from { transform: translate(-8px, 6px) rotate(-20deg); }
  to   { transform: translate(8px, -8px) rotate(20deg); }
}
@keyframes hidPulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to   { transform: scale(1.1);  opacity: 1; }
}

/* Scanner bar sweeping across the slab */
.hid-scan { animation: hidScan 7s linear infinite; }
@keyframes hidScan { from { transform: translateX(0); } to { transform: translateX(950px); } }

/* Dotted line from a layer to its marker */
.hid-link line { stroke: var(--secondary); stroke-width: 2; stroke-dasharray: 4 5; transition: stroke 0.3s var(--ease); }
.hid-link circle { fill: var(--secondary); transition: fill 0.3s var(--ease); }
.hid-board[data-active="0"] .hid-link[data-layer="0"] :is(line, circle),
.hid-board[data-active="1"] .hid-link[data-layer="1"] :is(line, circle),
.hid-board[data-active="2"] .hid-link[data-layer="2"] :is(line, circle),
.hid-board[data-active="3"] .hid-link[data-layer="3"] :is(line, circle) { stroke: var(--accent); }
.hid-board[data-active="0"] .hid-link[data-layer="0"] circle,
.hid-board[data-active="1"] .hid-link[data-layer="1"] circle,
.hid-board[data-active="2"] .hid-link[data-layer="2"] circle,
.hid-board[data-active="3"] .hid-link[data-layer="3"] circle { fill: var(--accent); }

/* Numbered markers: sit in the empty column at the end of the drawing, one per layer */
.hid-pin {
  position: absolute;
  top: var(--y);
  inset-inline-start: 94.3%;              /* marker column: x = 925 of the 960-wide drawing */
  width: var(--hid-pin);
  height: var(--hid-pin);
  margin-top: calc(var(--hid-pin) / -2);
  margin-inline-start: calc(var(--hid-pin) / -2);
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  font-family: var(--font-head);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 700;
  color: var(--accent);
  animation: hidRing 2.8s ease-out infinite;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.hid-pin:hover { transform: scale(1.12); }
.hid-pin[aria-pressed="true"] { background: var(--accent); color: var(--bg); animation: none; box-shadow: 0 0 0 5px var(--glow); }
@keyframes hidRing {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  80%, 100% { box-shadow: 0 0 0 12px transparent; }
}

/* Dust puffs + bubbles released when a layer is picked (created by index.js) */
.hid-burst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hid-puff {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: hidPuff 1.6s ease-out forwards;
}
@keyframes hidPuff {
  0%   { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0;   transform: translate(var(--dx), var(--dy)) scale(0.4); }
}

/* ---------- 14c-4. The four notes (always visible) ---------- */
.hid-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;                              /* same gap between every note */
  margin: 0;
  padding: 0;
  list-style: none;
}
.hid-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 16px;                     /* same padding on every side */
  text-align: start;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.hid-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.hid-item[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}
/* Timer line along the top edge; it fills while this layer is in focus and then moves on to the next one */
.hid-bar {
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.hid-bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.hid-item[aria-pressed="true"] .hid-bar i { animation: hidFill var(--hid-dur) linear forwards; }
.hid-sec.is-paused .hid-bar i { animation-play-state: paused; }   /* paused while the visitor hovers / focuses or the section is off screen */
@keyframes hidFill { from { width: 0; } to { width: 100%; } }

.hid-item-top { display: flex; align-items: center; gap: 10px; }
.hid-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  font-family: var(--font-head);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 700;
  color: var(--accent);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hid-item[aria-pressed="true"] .hid-num { background: var(--accent); color: var(--bg); }
.hid-item-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.hid-where {
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hid-item-text { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- 14c-5. Button ---------- */
.hid-cta { display: flex; justify-content: center; }

/* ---------- 14c-6. Tablet / mobile ---------- */
@media (max-width: 899px) {
  .hid-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .hid-legend { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   14d. HOME 2 – HERO BANNER (fills the screen below the navbar)
   Layout: "bubble reveal stage".
     full-bleed photo (no overlay, fully visible)  +  poppable bubbles and sparkles over it  +  solid panel on the START side
     "how it works" strip BELOW the photo (nothing is written on the photo itself)
   What is new compared with Home 1:
     - the photo is revealed by a growing circle (a bubble), then drifts slowly
     - the headline's last words rotate (dust mites / tough stains / stale odours / hidden germs)
     - a quick price picker inside the panel (real radio buttons, price counts to the new value)
     - bubbles can be popped by clicking / tapping them, the mouse leaves a bubble trail
     - steps are lit one after another by a sweeping line
   Only the site's colour variables are used. Logical properties flip everything in RTL (the photo is mirrored in rtl.css).
   ========================================================================== */
.h2-hero {
  display: flex;
  flex-direction: column;                 /* stage on top, steps strip underneath */
  min-height: calc(100vh - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--nav-h) - 1px);   /* 1px = navbar bottom border */
  background: var(--bg);
}

/* ---------- 14d-1. Stage + background photo ---------- */
.h2-stage {
  --h2-rise: 90vh;                        /* how far the bubbles rise (set smaller on mobile) */
  position: relative;
  flex: 1;                                /* takes all the height the strip leaves over */
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 5vh, 56px);  /* equal top and bottom */
  background: var(--surface);             /* only visible while the photo loads */
  overflow: hidden;
  isolation: isolate;                     /* keeps photo + effects behind the panel */
}
.h2-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  animation: h2Reveal 1.6s var(--ease) both;          /* a circle grows and uncovers the whole photo */
}
.h2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* photo always fills the banner */
  object-position: 20% 50%;               /* keeps the hand and machine in view */
  transform-origin: 70% 55%;
  animation: h2Drift 20s ease-in-out 1.6s infinite alternate;   /* slow zoom, starts after the reveal */
}
@keyframes h2Reveal {
  from { clip-path: circle(0% at 72% 62%); }
  to   { clip-path: circle(150% at 72% 62%); }
}
@keyframes h2Drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ---------- 14d-2. Effects layer: bubbles + sparkles ---------- */
.h2-fx {
  position: absolute;
  inset: 0;
  z-index: -1;                            /* above the photo, below the panel */
  overflow: hidden;
  pointer-events: none;                   /* the layer never blocks clicks; only the bubbles listen (below) */
}
/* One bubble: thin rim, soft glow fill, little highlight dot. Shared by rising, trail and spray bubbles. */
.h2-bubble,
.h2-pop {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at 30% 28%, var(--glow) 0, var(--glow-2) 48%, transparent 72%);
  box-shadow: inset 0 0 10px var(--glow), 0 0 16px var(--glow-2);
}
.h2-bubble::after,
.h2-pop::after {
  content: "";
  position: absolute;
  top: 18%;
  inset-inline-start: 20%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.75;
}
/* Rising bubbles: start under the banner, rise, sway, fade in and out. They can be clicked, so they get a pointer. */
.h2-bubble {
  bottom: 0;
  inset-inline-start: var(--x);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  animation: h2Rise var(--t) ease-in var(--d) infinite;
}
.h2-bubble.is-popped { visibility: hidden; }          /* popped: hidden until its next rise (index.js removes the class) */
@keyframes h2Rise {
  0%   { opacity: 0;   transform: translate(0, 100%); }
  12%  { opacity: 0.9; }
  50%  { transform: translate(var(--sw), calc(var(--h2-rise) * -0.5)) scale(1.08); }
  88%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(calc(var(--sw) * -1), calc(var(--h2-rise) * -1)) scale(0.95); }
}
/* Trail / spray bubbles (created by index.js): drift to (--dx, --dy), then fade away */
.h2-pop {
  opacity: 0;
  animation: h2Spray 1.7s ease-out forwards;
}
@keyframes h2Spray {
  0%   { opacity: 0;    transform: translate(0, 0) scale(0.4); }
  15%  { opacity: 0.95; }
  100% { opacity: 0;    transform: translate(var(--dx), var(--dy)) scale(1.1); }
}
/* Ring that flashes where a bubble was popped */
.h2-ring {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px var(--glow);
  animation: h2Ring 0.6s ease-out forwards;
}
@keyframes h2Ring {
  from { opacity: 1; transform: scale(0.6); }
  to   { opacity: 0; transform: scale(1.9); }
}
/* Sparkles: little four-point stars that twinkle on the mattress */
.h2-spark {
  position: absolute;
  top: var(--y);
  inset-inline-start: var(--x);
  width: 20px;
  height: 20px;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: h2Twinkle 3.2s ease-in-out var(--d) infinite;
}
html[data-theme="dark"] .h2-spark { background: var(--secondary); }   /* readable on the bright photo in dark mode */
@keyframes h2Twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.3) rotate(0); }
  50%      { opacity: 0.95; transform: scale(1.15) rotate(45deg); }
}

/* ---------- 14d-3. Content panel (start side) ---------- */
.h2-inner {
  position: relative;
  display: flex;
  justify-content: flex-start;            /* start side: left in LTR, right in RTL */
}
.h2-panel {
  width: min(100%, 540px);
  padding: clamp(20px, 2.6vw, 36px);      /* same padding on every side */
  display: grid;
  gap: clamp(12px, 2vh, 20px);            /* even rhythm between the panel items */
  justify-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px var(--glow-2), 0 0 0 6px var(--glow-2);
}
/* Every panel item rises in one after the other (order comes from --i in the HTML) */
.h2-panel > * { animation: h2In 0.7s var(--ease) calc(var(--i, 0) * 90ms + 400ms) both; }
@keyframes h2In {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill above the headline */
.h2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2-eyebrow .icon { width: 16px; height: 16px; animation: h2Beat 2.4s ease-in-out infinite; }
@keyframes h2Beat {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.25) rotate(18deg); }
}

/* Headline: line 1 is plain, line 2 is the rotating word with a slow shimmer */
.h2-panel h1 {
  font-size: clamp(1.875rem, min(3.2vw, 5.6vh), 3.125rem);   /* scales with width AND height so it always fits */
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h2-word-wrap {
  display: block;                         /* the changing word always sits on its own line, so nothing jumps */
  overflow: hidden;                       /* the word slides in and out inside this box */
  padding-block: 0.04em 0.12em;           /* room for letter tails (g, y) */
}
.h2-word {
  display: inline-block;
  color: var(--accent);                   /* fallback if gradient text is not supported */
  background: linear-gradient(100deg, var(--accent) 30%, var(--text) 50%, var(--accent) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  animation: h2Shine 5s ease-in-out infinite;
}
.h2-word.is-out { opacity: 0; transform: translateY(-45%); }             /* old word leaves upwards */
.h2-word.is-pre { opacity: 0; transform: translateY(45%); transition: none; }   /* new word waits below, then rises in */
@keyframes h2Shine {
  0%   { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}

.h2-lead {
  font-size: clamp(1rem, 1.9vh, 1.0625rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}

/* ---------- Price picker card ---------- */
.h2-pick {
  width: 100%;
  display: grid;
  gap: 12px;                              /* even gap: label / tiles / result */
  padding: 16px;                          /* same padding on every side */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.h2-pick-label {
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2-sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.h2-size { position: relative; display: block; }
.h2-size input {                          /* the real radio sits invisibly on top of its tile, so the whole tile is clickable */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.h2-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;                      /* same padding top/bottom, even sides */
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.h2-chip small {
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 400;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.h2-size:hover .h2-chip { transform: translateY(-2px); border-color: var(--accent); }
.h2-size input:checked + .h2-chip {       /* picked size */
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--glow);
}
.h2-size input:checked + .h2-chip small { color: var(--bg); }
.h2-size input:focus-visible + .h2-chip { outline: 2px solid var(--accent); outline-offset: 3px; }
.h2-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.h2-quote b {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}
.h2-dim { font-size: 0.8125rem; }

/* ---------- Buttons ---------- */
.h2-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h2-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;                       /* keeps the shine inside the pill */
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.h2-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.h2-btn--solid {
  background: var(--accent);
  color: var(--bg);
  animation: h2Pulse 3s ease-in-out 2s infinite;      /* soft pulse that draws the eye to the main button */
}
.h2-btn--ghost { background: transparent; color: var(--accent); }
@keyframes h2Pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.h2-btn::after {                          /* light sweep on hover */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, var(--glow), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.6s var(--ease);
}
.h2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow), 0 12px 24px -12px var(--glow-2);
}
.h2-btn:hover::after { inset-inline-start: 130%; }
.h2-btn--solid:hover .icon { transform: translateX(4px); }
.h2-btn--ghost:hover { background: var(--surface); }

/* ---------- 14d-4. Steps strip (below the photo) ---------- */
.h2-strip {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 18px;                    /* equal top and bottom */
}
.h2-strip-line {                          /* thin line that sweeps from the start to the end, again and again */
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  animation: h2Line 8s linear 1.2s infinite;
}
@keyframes h2Line {
  0%        { width: 0; opacity: 1; }
  75%       { width: 100%; opacity: 1; }
  90%, 100% { width: 100%; opacity: 0; }
}
.h2-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
  padding-block: 0;
  list-style: none;
}
.h2-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;                   /* even space on both sides of every step */
}
.h2-steps li + li { border-inline-start: 1px solid var(--border); }   /* thin divider between steps */
.h2-step-no {                             /* numbered circle: lights up in turn (wave of 4 steps) */
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  animation: h2Light 8s ease-in-out calc(var(--i) * 1.5s + 1.2s) infinite;
}
@keyframes h2Light {
  0%, 4%    { background: var(--bg);     color: var(--accent); box-shadow: 0 0 0 0 var(--glow); }
  10%, 60%  { background: var(--accent); color: var(--bg);     box-shadow: 0 0 0 6px var(--glow); }
  70%, 100% { background: var(--bg);     color: var(--accent); box-shadow: 0 0 0 0 var(--glow); }
}
.h2-step-text { display: grid; gap: 2px; font-size: 0.875rem; color: var(--muted); }
.h2-step-text b {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- 14d-5. Tablet / mobile (< 900px) ----------
   The photo becomes a full-width picture on top (the whole scene stays visible), the panel sits right under it. */
@media (max-width: 899px) {
  .h2-stage {
    --h2-photo-h: clamp(220px, 56vw, 400px);          /* height of the photo block */
    --h2-rise: var(--h2-photo-h);                     /* bubbles rise only inside the photo */
    display: block;
    padding-block: calc(var(--h2-photo-h) + 20px) 20px;   /* room for the photo above, then equal 20px under the panel */
  }
  .h2-bg,
  .h2-fx { inset: 0 0 auto 0; height: var(--h2-photo-h); }
  .h2-bg img { object-position: 62% 50%; transform-origin: 62% 50%; }
  .h2-panel { width: 100%; }
  .h2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-steps li { padding-block: 12px; }
  .h2-steps li:nth-child(odd) { padding-inline-start: 0; }
  .h2-steps li:nth-child(3) { border-inline-start: 0; }
  .h2-steps li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 479px) {
  .h2-actions { width: 100%; }
  .h2-btn { flex: 1 1 100%; }                         /* buttons stack neatly at full width */
  .h2-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 2 x 2 size tiles */
  .h2-steps { grid-template-columns: minmax(0, 1fr); }
  .h2-steps li,
  .h2-steps li:nth-child(odd) { padding-inline: 0; border-inline-start: 0; }
  .h2-steps li + li { border-top: 1px solid var(--border); }
}

/* ---------- 14d-6. Reduced motion: photo shows straight away and stays still, no bubbles / sparkles / rotation ---------- */
@media (prefers-reduced-motion: reduce) {
  .h2-bg,
  .h2-bg img,
  .h2-word,
  .h2-btn--solid,
  .h2-eyebrow .icon,
  .h2-strip-line,
  .h2-step-no,
  .h2-panel > * { animation: none !important; }
  .h2-fx { display: none; }
  .h2-strip-line { width: 100%; }
}

/* ==========================================================================
   14e. HOME 2 – SECTION 2: MATTRESS HEALTH CHECK – KNOW WHAT'S BENEATH
   Layout: two columns.
     start side: headline + two paragraphs + outline button
     end side:   [quote card over dark card]  |  [tall photo, set lower than the cards by --hc-off]
   - The cards column and the photo are the same height; the photo is pushed down by --hc-off and the cards column
     gets the same space underneath, so the two columns finish together.
   - Top and bottom padding of the section are equal. Cards use equal padding and an equal 16px gap.
   - Bubbles (the same look as the banner) rise behind everything; the dark card flips with the theme (text <-> background).
   - Only the site's colour variables are used. Logical properties flip the layout in RTL.
   ========================================================================== */
.hc-sec {
  --hc-off: clamp(32px, 4.8vw, 64px);     /* how far the photo sits lower than the cards */
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--bg);
}

/* ---------- 14e-1. Background bubbles ---------- */
.hc-fx {
  --h2-rise: 100cqh;                      /* bubbles rise through the full section height */
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;                   /* lets "cqh" mean the height of this layer */
  pointer-events: none;                   /* only the bubbles themselves listen (see .h2-bubble) */
}

/* ---------- 14e-2. Two-column grid ---------- */
.hc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 515fr) minmax(0, 556fr);   /* text : cards + photo */
  column-gap: clamp(32px, 6vw, 69px);     /* one even gap between the two sides */
  align-items: center;                    /* text is centred next to the cards */
}
.hc-head { grid-column: 1 / -1; }

/* ---------- 14e-3. Text side ---------- */
.hc-copy {
  display: grid;
  gap: 24px;                              /* same gap between headline, paragraphs and button */
  justify-items: start;
}
.hc-copy h2 {
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.125rem);
  font-weight: 400;                       /* light headline, like the layout reference */
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hc-shine {                               /* "what's beneath" shimmers slowly */
  color: var(--accent);                   /* fallback if gradient text is not supported */
  background: linear-gradient(100deg, var(--accent) 30%, var(--text) 50%, var(--accent) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  animation: hcShine 5s ease-in-out infinite;
}
@keyframes hcShine {
  0%   { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}
.hc-copy p {
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Outline button with a pulsing dot */
.hc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
  border: 1px solid var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  overflow: hidden;                       /* keeps the fill inside the pill */
  isolation: isolate;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hc-btn i {                               /* the ring-shaped dot */
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transition: border-color 0.3s var(--ease);
  animation: hcDot 2.2s ease-in-out infinite;
}
@keyframes hcDot {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
.hc-btn::before {                         /* colour fill that grows from the middle on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.45s var(--ease);
}
.hc-btn:hover { color: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hc-btn:hover::before { clip-path: circle(75% at 50% 50%); }
.hc-btn:hover i { border-color: var(--bg); }

/* ---------- 14e-4. Cards + photo side ---------- */
.hc-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* two equal columns */
  gap: 16px;                              /* same gap between the columns and between the cards */
}
.hc-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--hc-off);           /* leaves room under the cards so the photo can finish lower */
}
.hc-card {
  flex: 1;                                /* both cards are the same height */
  margin: 0;
  padding: 24px;                          /* same padding on every side */
  border-radius: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hc-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }

/* Quote card */
.hc-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.hc-quote-ic {                            /* round badge with a solid quote mark and a soft pulse ring */
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  animation: hcRing 2.8s ease-in-out infinite;
}
.hc-quote-ic .icon { width: 20px; height: 20px; fill: currentColor; stroke-width: 1; }
@keyframes hcRing {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.hc-quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.hc-quote figcaption {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* Dark card: uses --text as its background and --bg for its text, so it stays readable in light AND dark mode */
.hc-dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}
.hc-dark h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bg);
}
.hc-pill {                                /* rounded bar that holds the round icons + counter */
  display: inline-flex;
  align-items: center;
  gap: 6px;                               /* the round icons sit side by side, never on each other */
  padding: 8px;
  border: 1px solid var(--secondary);
  border-radius: 999px;
}
.hc-ava,
.hc-more {
  flex: none;
  display: flex;                          /* keeps "+" and "15" on one line */
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.hc-ava {
  background: var(--bg);
  color: var(--accent);
  animation: hcBob 3s ease-in-out calc(var(--i) * 0.4s) infinite;   /* gentle wave, one after another */
}
.hc-more {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  animation: hcRing 2.8s ease-in-out 0.6s infinite;
}
@keyframes hcBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Photo: tall, rounded, starts lower than the cards and ends level with the cards' bottom space */
.hc-photo {
  display: flex;
  margin-top: var(--hc-off);
}
.hc-frame {
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);             /* only visible while the photo loads */
}
.hc-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hcDrift 16s ease-in-out infinite alternate;   /* slow breathing zoom */
}
@keyframes hcDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
/* When the photo scrolls into view, a circle of picture grows from the middle (like a bubble) */
html.js .hc-photo.is-in .hc-frame { animation: hcWipe 1.3s var(--ease) 0.2s backwards; }
@keyframes hcWipe {
  from { clip-path: circle(0% at 50% 50%); }
  to   { clip-path: circle(100% at 50% 50%); }
}

/* ---------- 14e-5. Tablet / mobile ---------- */
@media (max-width: 899px) {
  .hc-wrap { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }   /* text on top, cards + photo below */
  .hc-copy p { max-width: none; }
}
@media (max-width: 559px) {
  .hc-sec { --hc-off: 0px; }             /* single column: no offset needed */
  .hc-right { grid-template-columns: minmax(0, 1fr); }
  .hc-frame { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- 14e-6. Reduced motion: no bubbles, shimmer, pulses or drifting; photo shows straight away ---------- */
@media (prefers-reduced-motion: reduce) {
  .hc-fx { display: none; }
  .hc-shine,
  .hc-btn i,
  .hc-quote-ic,
  .hc-ava,
  .hc-more,
  .hc-frame img,
  html.js .hc-photo.is-in .hc-frame { animation: none !important; }
}

/* ==========================================================================
   14f. HOME 2 – SECTION 3: SPECIALIZED CLEANING TREATMENTS
   Layout: heading row  ->  one wide featured card (2 columns)  ->  two equal cards.
   - Featured card is the high-contrast card: --text as its background and --bg for its text, so it works in light AND dark mode.
   - Section top and bottom padding are equal; every gap between rows / cards is 24px; card padding is equal on every side.
   - Reveal ("split"): the featured card opens from its centre, the lower cards slide in from opposite sides, ticks draw themselves.
   - Bubbles reuse the banner's bubble styles (.h2-bubble / .h2-pop / .h2-ring).
   - Only the site's colour variables are used. Logical properties flip the layout in RTL.
   ========================================================================== */
.tx-sec {
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ---------- 14f-1. Background bubbles (same layer rules as section 2) ---------- */
.tx-fx {
  --h2-rise: 100cqh;                      /* bubbles rise through the full section height */
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;                   /* only the bubbles themselves listen */
}

/* ---------- 14f-2. Layout ---------- */
.tx-wrap {
  display: grid;
  gap: 24px;                              /* one even gap between heading, featured card and the pair */
}

/* Heading row */
.tx-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  column-gap: 48px;
  align-items: end;                       /* the note lines up with the bottom of the headline */
  padding-bottom: 24px;                   /* with the 24px grid gap = 48px before the cards */
}
.tx-head h2 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.tx-head h2 em {                          /* second line: italic, accent colour */
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.tx-head p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 14f-3. Shared bits: price, note, description ---------- */
.tx-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
}
.tx-price > span:first-child { font-size: 0.875rem; font-weight: 600; opacity: 0.8; }   /* the word "From" */
.tx-price b {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.tx-note { font-size: 0.875rem; font-weight: 600; opacity: 0.8; }
.tx-desc { font-size: 1.0625rem; line-height: 1.6; }

/* ---------- 14f-4. Featured card ---------- */
.tx-feat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* two equal columns */
  gap: 48px;
  padding: clamp(24px, 2.5vw, 32px);      /* same padding on every side */
  border-radius: 24px;
  background: var(--text);                /* high-contrast card: flips with the theme */
  color: var(--bg);
}
.tx-feat-main {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}
.tx-tag {                                 /* "Most chosen" pill */
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 700;
}
.tx-feat h3 {
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg);
}
.tx-feat .tx-price b { font-size: clamp(2.75rem, 1.6rem + 3vw, 4.5rem); }   /* the big price */
.tx-feat-side {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
}
.tx-feat .tx-desc { opacity: 0.85; }

/* Benefit list with dividers */
.tx-list { width: 100%; }
.tx-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;                    /* equal space above and below every row */
  font-size: 1.0625rem;
  font-weight: 500;
}
.tx-list li:first-child { padding-top: 0; }
.tx-list li:last-child { padding-bottom: 0; }
.tx-list li + li { border-top: 1px solid var(--muted); }
.tx-tick {                                /* round badge with a tick that draws itself */
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.tx-tick .icon { width: 14px; height: 14px; stroke-width: 3; stroke-dasharray: 1; }
html.js .tx-sec.is-in .tx-tick .icon { animation: txTick 0.6s var(--ease) calc(var(--n, 0) * 150ms + 1.1s) backwards; }
.tx-list li:nth-child(2) { --n: 1; }
.tx-list li:nth-child(3) { --n: 2; }
@keyframes txTick {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* Solid button */
.tx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tx-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.tx-btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow); }
.tx-btn:hover .icon { transform: translateX(4px); }
.tx-btn:focus-visible { outline-color: var(--bg); }

/* ---------- 14f-5. The two lower cards ---------- */
.tx-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* two equal cards */
  gap: 24px;
}
.tx-card {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;                              /* even rhythm inside the card */
  padding: clamp(24px, 2.5vw, 32px);      /* same padding on every side (matches the featured card) */
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tx-card h3 { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 700; line-height: 1.2; }
.tx-card .tx-note { color: var(--muted); opacity: 1; }
.tx-card .tx-price b { color: var(--accent); }
.tx-card .tx-desc { color: var(--muted); }
.tx-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }
.tx-card--hot { border-color: var(--accent); animation: txPulse 3s ease-in-out infinite; }   /* accent border with a soft pulse */
.tx-card--hot:hover { animation: none; }
@keyframes txPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.tx-link {                                /* text link with an arrow */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.tx-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.tx-link:hover .icon { transform: translateX(4px); }

/* ---------- 14f-6. "Split" reveal (only when scripts are running; without them everything is simply visible) ----------
   Before the section is seen the cards are hidden; index.js adds "is-in" when it scrolls into view. */
html.js .tx-sec:not(.is-in) .tx-head,
html.js .tx-sec:not(.is-in) .tx-feat,
html.js .tx-sec:not(.is-in) .tx-card { opacity: 0; }
html.js .tx-sec.is-in .tx-head { animation: txRise 0.8s var(--ease) backwards; }
/* Featured card: opens like a curtain from its centre, then its content fades in */
html.js .tx-sec.is-in .tx-feat { animation: txOpen 1s var(--ease) 0.2s backwards; }
html.js .tx-sec.is-in .tx-feat > * { animation: txFade 0.6s var(--ease) 0.9s backwards; }
/* Lower cards: slide in from opposite sides (the sign flips in RTL, see rtl.css) */
html.js .tx-sec.is-in .tx-card { animation: txSlide 0.9s var(--ease) 0.7s backwards; }
html.js .tx-sec.is-in .tx-card:first-child { --from: -64px; }
html.js .tx-sec.is-in .tx-card:last-child { --from: 64px; animation-delay: 0.85s; }
@keyframes txRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes txOpen {
  from { opacity: 1; clip-path: inset(0 50% 0 50% round 24px); }
  to   { opacity: 1; clip-path: inset(0 0 0 0 round 24px); }
}
@keyframes txFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes txSlide {
  from { opacity: 0; transform: translateX(var(--from, 0)); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 14f-7. Tablet / mobile ---------- */
@media (max-width: 899px) {
  .tx-head { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }   /* note goes under the title */
  .tx-feat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tx-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .tx-btn { width: 100%; justify-content: center; }
}

/* ---------- 14f-8. Reduced motion: everything shows straight away, no bubbles or pulses ---------- */
@media (prefers-reduced-motion: reduce) {
  .tx-fx { display: none; }
  .tx-card--hot,
  html.js .tx-sec.is-in .tx-head,
  html.js .tx-sec.is-in .tx-feat,
  html.js .tx-sec.is-in .tx-feat > *,
  html.js .tx-sec.is-in .tx-card,
  html.js .tx-sec.is-in .tx-tick .icon { animation: none !important; }
  html.js .tx-sec:not(.is-in) .tx-head,
  html.js .tx-sec:not(.is-in) .tx-feat,
  html.js .tx-sec:not(.is-in) .tx-card { opacity: 1; }
}

/* ==========================================================================
   14g. HOME 2 – SECTION 4: CLEANING TECHNOLOGY & EQUIPMENT
   Layout: centred heading  ->  three equal photo cards  ->  four-box proof strip.
   - Photo captions sit BELOW the photos; nothing is written on an image, so nothing can overlap.
   - Every gap is 24px; card padding is 20px on every side; section top and bottom padding are equal.
   - "Split" reveal: two panels cover the photo and slide apart from the centre; the text then rises in.
   - Bubbles reuse the banner's bubble styles (.h2-bubble / .h2-pop / .h2-ring).
   - Only the site's colour variables are used (they flip in dark mode). Logical properties flip the layout in RTL.
   ========================================================================== */
.ct-sec {
  --dir: 1;                               /* 1 = left-to-right, -1 = right-to-left (rtl.css) */
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ---------- 14g-1. Background bubbles ---------- */
.ct-fx {
  --h2-rise: 100cqh;                      /* bubbles rise through the full section height */
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;                   /* only the bubbles themselves listen */
}

/* ---------- 14g-2. Layout: one column of three rows, one even 24px gap ---------- */
.ct-wrap {
  display: grid;
  gap: 24px;
}

/* Heading block */
.ct-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 24px;                    /* with the 24px grid gap = 48px before the cards */
  text-align: center;
}
.ct-pill {                                /* small label with a twinkling icon */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.ct-pill .icon { width: 16px; height: 16px; animation: ctTwinkle 2.4s ease-in-out infinite; }
@keyframes ctTwinkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.25) rotate(18deg); }
}
.ct-head h2 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ct-head h2 em {                          /* second line: italic, accent colour */
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.ct-head p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 14g-3. Equipment cards ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* three equal cards */
  gap: 24px;
}
.ct-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;                          /* same padding on every side */
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ct-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }

/* Photo + caption (the caption is BELOW the photo, never on it) */
.ct-fig { display: grid; gap: 12px; margin: 0; }   /* margin reset: the photo spans the full card width */
.ct-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}
.ct-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.ct-card:hover .ct-photo img { transform: scale(1.06); }
.ct-fig figcaption {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Text part */
.ct-body {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;                                /* all three cards end at the same height */
}
.ct-num {                                 /* big outlined number */
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.ct-body h3 { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); font-weight: 700; line-height: 1.2; }
.ct-body p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.ct-chips {                               /* two small spec chips */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;                       /* chips sit at the bottom of every card */
  padding-top: 4px;
}
.ct-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- 14g-4. Proof strip ---------- */
.ct-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* four equal boxes */
  gap: 24px;
}
.ct-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;                          /* same padding as the cards */
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ct-stat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.ct-stat-ic {                             /* round icon badge with a soft pulse ring */
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.ct-stat-ic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ctRing 2.8s ease-out infinite;
}
@keyframes ctRing {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}
.ct-stat-ic .icon { width: 22px; height: 22px; }
.ct-stat-tx { display: grid; gap: 2px; min-width: 0; }
.ct-stat-tx b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--text); }
.ct-stat-tx small { font-size: 0.875rem; line-height: 1.35; color: var(--muted); }

/* ---------- 14g-5. "Split" reveal (only when scripts run; without them everything is simply visible) ----------
   index.js adds "is-in" to each part (heading, cards, boxes) when it scrolls into view. */
html.js .ct-sec .ct-photo::before,
html.js .ct-sec .ct-photo::after {        /* the two panels that cover the photo and split apart */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;                           /* a hair over half so no seam shows */
  z-index: 1;
  background: var(--accent);
  transition: transform 0.9s var(--ease) calc(var(--n, 0) * 150ms + 0.2s);
}
html.js .ct-sec .ct-photo::before { inset-inline-start: 0; }
html.js .ct-sec .ct-photo::after { inset-inline-end: 0; }
html.js .ct-sec .ct-card.is-in .ct-photo::before { transform: translateX(calc(-101% * var(--dir))); }
html.js .ct-sec .ct-card.is-in .ct-photo::after { transform: translateX(calc(101% * var(--dir))); }
/* Hidden until seen */
html.js .ct-sec .ct-head:not(.is-in),
html.js .ct-sec .ct-card:not(.is-in),
html.js .ct-sec .ct-stat:not(.is-in) { opacity: 0; }
html.js .ct-sec .ct-head.is-in { animation: ctRise 0.8s var(--ease) backwards; }
html.js .ct-sec .ct-card.is-in { animation: ctRise 0.8s var(--ease) calc(var(--n, 0) * 150ms) backwards; }
html.js .ct-sec .ct-card.is-in .ct-fig figcaption,
html.js .ct-sec .ct-card.is-in .ct-body { animation: ctRise 0.7s var(--ease) calc(var(--n, 0) * 150ms + 0.8s) backwards; }
html.js .ct-sec .ct-stat.is-in { animation: ctPop 0.7s var(--ease) calc(var(--n, 0) * 120ms) backwards; }
@keyframes ctRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ctPop {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 14g-6. Laptop / tablet / mobile ---------- */
@media (max-width: 1099px) {
  .ct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* proof strip: 2 x 2 */
}
@media (max-width: 899px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }               /* cards stack, one per row */
  .ct-card { flex-direction: row; align-items: stretch; }           /* tablet: photo left, text right */
  .ct-fig { flex: 0 0 44%; align-content: start; }
}
@media (max-width: 679px) {
  .ct-card { flex-direction: column; }                              /* mobile: photo on top again */
  .ct-fig { flex: none; }
  .ct-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14g-7. Reduced motion: everything shows straight away, no bubbles, panels or pulses ---------- */
@media (prefers-reduced-motion: reduce) {
  .ct-fx { display: none; }
  .ct-pill .icon,
  .ct-stat-ic::after,
  html.js .ct-sec .ct-head.is-in,
  html.js .ct-sec .ct-card.is-in,
  html.js .ct-sec .ct-card.is-in .ct-fig figcaption,
  html.js .ct-sec .ct-card.is-in .ct-body,
  html.js .ct-sec .ct-stat.is-in { animation: none !important; }
  html.js .ct-sec .ct-photo::before,
  html.js .ct-sec .ct-photo::after { display: none; }
  html.js .ct-sec .ct-head:not(.is-in),
  html.js .ct-sec .ct-card:not(.is-in),
  html.js .ct-sec .ct-stat:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   14h. HOME 2 – SECTION 5: MATTRESS CARE BY LIFESTYLE
   Layout: heading row (title + progress tracker)  ->  four equal slots in one row, each holding one card.
   - PINNED SCROLL (laptop / desktop, tall enough window): the section is taller than the screen and its stage is
     "sticky", so it stays in place while you scroll. index.js turns the scroll position into --k (0 -> 1) for each card:
     Family flies in from the TOP, Kids from the RIGHT, Guest Room from the BOTTOM, Hotel from the LEFT.
   - Otherwise (tablet, mobile, short window, reduced motion) there is no pinning: cards fly in once, when seen.
   - Photo captions sit BELOW the photos. Every gap is 24px, card padding is 20px, stage padding is equal top and bottom.
   - Bubbles reuse the banner's bubble styles (.h2-bubble / .h2-pop / .h2-ring).
   - Only the site's colour variables are used (they flip in dark mode). Logical properties flip the layout in RTL.
   ========================================================================== */
.lf-sec {
  --dir: 1;                               /* 1 = left-to-right, -1 = right-to-left (rtl.css) */
  position: relative;
  overflow: clip;                         /* "clip" (not "hidden") so the sticky stage still works */
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.lf-stage {
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
}

/* Pinned mode (class added by index.js only when it really fits): tall section + sticky stage */
.lf-sec.is-pinned { height: 380vh; }      /* the extra height is the scroll distance for the four cards */
.lf-sec.is-pinned .lf-stage {
  position: sticky;
  top: var(--nav-h);                      /* sits right under the navbar */
  display: grid;
  align-content: center;                  /* content centred: equal space above and below */
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  padding-block: 24px;
}

/* ---------- 14h-1. Background bubbles ---------- */
.lf-fx {
  --h2-rise: 100cqh;                      /* bubbles rise through the full stage height */
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;                   /* only the bubbles themselves listen */
}

/* ---------- 14h-2. Heading row ---------- */
.lf-wrap { display: grid; gap: 24px; }
.lf-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);   /* title : tracker */
  column-gap: 48px;
  align-items: end;                       /* tracker lines up with the bottom of the intro */
}
.lf-intro { display: grid; gap: 12px; }
.lf-intro h2 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lf-intro h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.lf-intro p { max-width: 560px; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }

/* Progress tracker: four equal columns, line runs from the centre of the first node to the centre of the last */
.lf-progress { display: grid; gap: 12px; }
.lf-track {
  --fill: 0;                              /* 0 -> 1, set by index.js */
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lf-track::before,
.lf-track::after {                        /* grey line + the accent line that fills over it */
  content: "";
  position: absolute;
  top: 15px;
  inset-inline-start: 12.5%;
  height: 2px;
  border-radius: 2px;
}
.lf-track::before { width: 75%; background: var(--border); }
.lf-track::after { width: calc(var(--fill) * 75%); background: var(--accent); }
.lf-step {
  position: relative;                     /* sits above the line */
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.lf-node {                                /* round badge; the tick draws itself when its card has landed */
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--bg);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lf-node .icon { width: 16px; height: 16px; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s var(--ease) 0.1s; }
.lf-step.is-on { color: var(--text); }
.lf-step.is-on .lf-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.lf-step.is-on .lf-node .icon { stroke-dashoffset: 0; }
.lf-hint {                                /* only shown while pinned */
  display: none;
  align-items: center;
  gap: 8px;
  justify-self: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.lf-hint .icon { width: 16px; height: 16px; color: var(--accent); transform: rotate(90deg); animation: lfBob 1.6s ease-in-out infinite; }
.lf-sec.is-pinned .lf-hint { display: inline-flex; }
.lf-sec.is-pinned .lf-hint.is-off { visibility: hidden; }          /* hides itself at the end, keeps its space (no jump) */
@keyframes lfBob {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50%      { transform: rotate(90deg) translateX(5px); }
}

/* ---------- 14h-3. Board, slots and cards ---------- */
.lf-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* four equal slots */
  gap: 24px;
  padding: 6px;                           /* room for the hover glow ... */
  margin: -6px;                           /* ... cancelled, so the edges stay aligned with the heading */
  overflow: clip;                         /* clips cards that are still flying in */
}
.lf-slot {                                /* empty outlined place the card lands in */
  position: relative;
  display: grid;
  border-radius: 24px;
  border: 2px dashed var(--border);
}
.lf-slot::before {                        /* big slot number, visible until the card arrives */
  content: attr(data-n);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--muted);
}
.lf-card {
  --k: 1;                                 /* 0 = away, 1 = landed (index.js sets it while pinned) */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: -2px;                           /* covers the slot outline exactly */
  padding: 20px;                          /* same padding on every side */
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  /* Fly-in: direction (--fx, --fy) x distance x (1 - k); a small tilt and scale make it feel alive */
  transform:
    translate(calc(var(--fx) * var(--dir) * (1 - var(--k)) * 70vw), calc(var(--fy) * (1 - var(--k)) * 80vh))
    rotate(calc((1 - var(--k)) * var(--rot)))
    scale(calc(0.9 + 0.1 * var(--k)));
  opacity: min(1, calc(var(--k) * 3));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lf-card:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }
.lf-card.is-landed { animation: lfLand 0.7s var(--ease); }          /* soft ring when a card settles into its slot */
@keyframes lfLand {
  from { box-shadow: 0 0 0 0 var(--glow); }
  to   { box-shadow: 0 0 0 18px transparent; }
}

/* Lead card (Family): the high-contrast card, flips with the theme like section 3 */
.lf-card--lead { background: var(--text); border-color: var(--text); color: var(--bg); }
.lf-card--lead .lf-fig figcaption,
.lf-card--lead .lf-body h3,
.lf-card--lead .lf-body p { color: var(--bg); }
.lf-card--lead .lf-tag { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.lf-card--lead .lf-chips li { background: var(--bg); color: var(--text); border-color: var(--bg); }
.lf-card--lead:hover { border-color: var(--accent); }

/* Photo + caption (caption BELOW the photo) */
.lf-fig { display: grid; gap: 12px; margin: 0; }
.lf-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.lf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.lf-card:hover .lf-photo img { transform: scale(1.06); }
.lf-photo::after {                        /* one soft shine sweeps over the photo when its card lands */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, var(--glow) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.lf-card.is-landed .lf-photo::after { animation: lfShine 1.1s var(--ease) 0.1s; }
@keyframes lfShine {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}
.lf-fig figcaption { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* Text part */
.lf-body { display: grid; align-content: start; justify-items: start; gap: 12px; flex: 1; }
.lf-tag {                                 /* small label: who the care is for */
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.lf-body h3 { font-size: clamp(1.25rem, 1rem + 0.5vw, 1.375rem); font-weight: 700; line-height: 1.25; }
.lf-body p { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }   /* chips sit at the bottom of every card */
.lf-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- 14h-4. Not pinned: each card flies in once when it is seen (tablet, mobile, short window) ---------- */
html.js .lf-sec:not(.is-pinned) .lf-card { transition: transform 0.9s var(--ease) calc(var(--n, 0) * 120ms), opacity 0.9s var(--ease) calc(var(--n, 0) * 120ms), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
html.js .lf-sec:not(.is-pinned) .lf-card:not(.is-in) { --k: 0; }
/* Not pinned: the flight is short (it stays inside the board) */
.lf-sec:not(.is-pinned) .lf-card {
  transform:
    translate(calc(var(--fx) * var(--dir) * (1 - var(--k)) * 80px), calc(var(--fy) * (1 - var(--k)) * 80px))
    rotate(calc((1 - var(--k)) * var(--rot)))
    scale(calc(0.9 + 0.1 * var(--k)));
}

/* ---------- 14h-5. Laptop / tablet / mobile ---------- */
@media (max-width: 1099px) {
  .lf-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 2 x 2 */
}
@media (max-width: 899px) {
  .lf-head { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }   /* tracker goes under the title */
}
@media (max-width: 599px) {
  .lf-board { grid-template-columns: minmax(0, 1fr); }                /* one card per row */
}

/* ---------- 14h-6. Reduced motion: no pinning, no flying, no bubbles - everything is simply shown ---------- */
@media (prefers-reduced-motion: reduce) {
  .lf-fx { display: none; }
  .lf-hint .icon,
  .lf-card.is-landed,
  .lf-card.is-landed .lf-photo::after { animation: none !important; }
  html.js .lf-sec .lf-card { --k: 1 !important; transition: none; }
  .lf-step .lf-node .icon { stroke-dashoffset: 0; }
}

/* ==========================================================================
   14i. HOME 2 – SECTION 6: YOUR CLEANING JOURNEY
   Layout: heading  ->  bento grid (4 columns, 24px gaps):
     tile 1 big (2 cols x 2 rows, photo)  |  tiles 2 + 3 small  |  tile 4 wide dark  |  tile 5 full-width bar.
   - Photo caption sits BELOW the photo. Tile padding is 24px on every side. Section top and bottom padding are equal.
   - Reveal: tiles pop up in order; the photo opens like a growing bubble; number badges pulse.
   - Bubbles reuse the banner's bubble styles (.h2-bubble / .h2-pop / .h2-ring).
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.jn-sec {
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.jn-fx {                                  /* bubble layer */
  --h2-rise: 100cqh;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}
.jn-wrap { display: grid; gap: 40px; }

/* Heading */
.jn-head { display: grid; gap: 12px; max-width: 640px; }
.jn-head h2 { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.jn-head h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.jn-head p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }

/* Bento grid: named areas keep every tile exactly where it should be */
.jn-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b c"
    "a a d d"
    "e e e e";
  gap: 24px;
}
.jn-tile--a { grid-area: a; }
.jn-tile--b { grid-area: b; }
.jn-tile--c { grid-area: c; }
.jn-tile--d { grid-area: d; }
.jn-tile--e { grid-area: e; }

/* Tiles */
.jn-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;                          /* same padding on every side */
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.jn-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }
.jn-text { display: grid; gap: 8px; }
.jn-num { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.jn-tile h3 { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); font-weight: 700; line-height: 1.2; }
.jn-tile p { font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* Round icon badge with a soft pulse ring */
.jn-ic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.jn-ic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: jnRing 2.8s ease-out infinite;
}
.jn-ic .icon { width: 22px; height: 22px; }
@keyframes jnRing {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* Tile 1: photo fills the free height, caption below it */
.jn-fig { display: flex; flex-direction: column; flex: 1; gap: 12px; margin: 0; min-height: 0; }
.jn-photo { position: relative; flex: 1; min-height: 220px; overflow: hidden; border-radius: 16px; background: var(--bg); }
.jn-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.jn-tile:hover .jn-photo img { transform: scale(1.06); }
.jn-fig figcaption { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* Tile 4: wide dark tile (text colour and background swap with the theme) */
.jn-tile--d { flex-direction: row; align-items: center; gap: 20px; background: var(--text); border-color: var(--text); color: var(--bg); }
.jn-tile--d h3,
.jn-tile--d p { color: var(--bg); }
.jn-tile--d .jn-num { color: var(--secondary); }
.jn-tile--d .jn-ic { background: var(--accent); color: var(--bg); }
.jn-tile--d:hover { border-color: var(--accent); }

/* Tile 5: full-width bar (icon, text, button on one line) */
.jn-tile--e { flex-direction: row; align-items: center; gap: 20px; }
.jn-tile--e .jn-text { flex: 1; }
.jn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.jn-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.jn-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow); }
.jn-btn:hover .icon { transform: translateX(4px); }

/* ---------- Reveal (only when scripts run). index.js adds "is-in" to each tile when it is seen ---------- */
html.js .jn-tile:not(.is-in) { opacity: 0; }
html.js .jn-tile.is-in { animation: jnPop 0.9s var(--ease) calc(var(--n, 0) * 120ms) backwards; }
html.js .jn-tile.is-in .jn-photo { animation: jnBubble 1.2s var(--ease) calc(var(--n, 0) * 120ms + 0.3s) backwards; }
@keyframes jnPop {
  from { opacity: 0; transform: translateY(40px) scale(0.94) rotate(var(--r, 0deg)); }
  to   { opacity: 1; transform: none; }
}
@keyframes jnBubble {                     /* photo opens like a growing bubble */
  from { clip-path: circle(0% at 50% 50%); }
  to   { clip-path: circle(100% at 50% 50%); }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1023px) {
  .jn-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "d d"
      "e e";
  }
  .jn-photo { min-height: 260px; }
}
@media (max-width: 639px) {
  .jn-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e"; }
  .jn-tile--d,
  .jn-tile--e { flex-direction: column; align-items: flex-start; }
  .jn-btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion: everything shows straight away, no bubbles or pulses ---------- */
@media (prefers-reduced-motion: reduce) {
  .jn-fx { display: none; }
  .jn-ic::after,
  html.js .jn-tile.is-in,
  html.js .jn-tile.is-in .jn-photo { animation: none !important; }
  html.js .jn-tile:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   14j. HOME 2 – SECTION 7: MATTRESS CARE KNOWLEDGE HUB
   Layout (simple): heading row  ->  one large article (start side) + two small articles stacked (end side).
   - Every article has a photo. No text is ever placed on a photo; category, time and title sit below / beside it.
   - Gaps are 24px, card padding is 20px on every side, section top and bottom padding are equal.
   - Reveal: cards rise in order and the photo settles from a slight zoom. Bubbles reuse the banner's bubble styles.
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.kh-sec {
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.kh-fx {                                  /* bubble layer */
  --h2-rise: 100cqh;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}
.kh-wrap { display: grid; gap: 40px; }

/* Heading row */
.kh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.kh-intro { display: grid; gap: 12px; max-width: 760px; }
.kh-intro h2 { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.kh-intro h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.kh-intro p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.kh-all, .kh-link {                       /* text links with an arrow */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.kh-all { flex: none; }
.kh-all .icon, .kh-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.kh-all:hover .icon, .kh-link:hover .icon { transform: translateX(4px); }

/* Grid: large article | two small ones */
.kh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kh-side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* Cards */
.kh-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;                          /* same padding on every side */
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kh-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), 0 18px 30px -18px var(--glow-2); }
.kh-photo { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); }
.kh-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.kh-card:hover .kh-photo img { transform: scale(1.06); }
.kh-body { display: grid; align-content: start; justify-items: start; gap: 12px; flex: 1; }
.kh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kh-tag {                                 /* category pill */
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.kh-time { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.kh-time .icon { width: 16px; height: 16px; }
.kh-card h3 { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.kh-text { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.kh-link { margin-top: auto; }            /* link sits at the bottom of every card */

/* Large article: photo grows to fill the free height */
.kh-card--feat .kh-photo { flex: 1; min-height: 240px; }
.kh-card--feat .kh-photo img { position: absolute; inset: 0; }
.kh-card--feat h3 { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); }

/* Small articles: photo on the start side, text on the end side */
.kh-side .kh-card { flex-direction: row; align-items: stretch; }
.kh-side .kh-photo { flex: 0 0 38%; min-height: 180px; }
.kh-side .kh-photo img { position: absolute; inset: 0; }

/* ---------- Reveal (only when scripts run). index.js adds "is-in" to each card when it is seen ---------- */
html.js .kh-card:not(.is-in) { opacity: 0; }
html.js .kh-card.is-in { animation: khRise 0.8s var(--ease) calc(var(--n, 0) * 130ms) backwards; }
html.js .kh-card.is-in .kh-photo img { animation: khSettle 1.4s var(--ease) calc(var(--n, 0) * 130ms) backwards; }
@keyframes khRise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes khSettle {
  from { transform: scale(1.18); }
  to   { transform: scale(1); }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 899px) {
  .kh-grid { grid-template-columns: minmax(0, 1fr); }               /* large article on top, small ones below */
  .kh-card--feat .kh-photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 599px) {
  .kh-head { flex-direction: column; align-items: flex-start; }
  .kh-side .kh-card { flex-direction: column; }                      /* photo on top again */
  .kh-side .kh-photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}

/* ---------- Reduced motion: everything shows straight away, no bubbles ---------- */
@media (prefers-reduced-motion: reduce) {
  .kh-fx { display: none; }
  html.js .kh-card.is-in,
  html.js .kh-card.is-in .kh-photo img { animation: none !important; }
  html.js .kh-card:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   14k. HOME 2 – CALL TO ACTION WITH BACKGROUND IMAGE
   - Full-width photo. The text lives in ONE solid panel (--bg), never directly on the photo, so it is readable in light
     and dark mode. The photo stays visible on the free side of the section.
   - Section top and bottom padding are equal; panel padding is equal on every side; gaps are 16px / 24px.
   - Effects: slow photo drift, panel rise, bubbles over the photo (click to pop), pulsing main button, self-drawing ticks.
   - Mobile: the photo sits above the panel (nothing overlaps). Only the site's colour variables are used.
   ========================================================================== */
.cta-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);  /* equal top and bottom */
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 50%;
  animation: ctaDrift 24s ease-in-out infinite alternate;   /* slow zoom + drift */
}
@keyframes ctaDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.1) translateX(-1.5%); }
}
.cta-fx {                                 /* bubble layer over the photo, under the panel */
  --h2-rise: 100cqh;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

/* Panel */
.cta-wrap { display: grid; }
.cta-sec--home1 .cta-wrap {
  justify-items: center;
}
.cta-sec--home1 .cta-panel {
  width: min(100%, 620px);
  justify-items: start;
  margin-inline: auto;
  text-align: left;
}
.cta-sec--home1 .cta-panel > p {
  max-width: 520px;
}
.cta-sec--home1 .cta-list {
  width: 100%;
  justify-items: start;
  margin-inline: 0;
  text-align: start;
}
.cta-sec--home1 .cta-list li {
  font-size: 1.25rem;
}
.cta-sec--home1 .cta-actions {
  justify-content: flex-start;
  width: 100%;
}
.cta-sec--home1 .cta-btn {
  height: 60px;
  font-size: 1.25rem;
  min-width: 220px;
}
.cta-panel {
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(100%, 560px);                /* leaves the rest of the photo visible */
  margin-inline-start: auto;              /* panel sits on the end side, the technician stays visible on the start side */
  padding: clamp(24px, 3vw, 40px);        /* same padding on every side */
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 24px 48px -24px var(--glow-2);
}
.cta-panel h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.cta-panel h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.cta-panel > p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }

/* Tick list */
.cta-list { display: grid; gap: 10px; }
.cta-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; }
.cta-tick {                               /* round badge, tick draws itself */
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.cta-tick .icon { width: 14px; height: 14px; stroke-width: 3; stroke-dasharray: 1; }
html.js .cta-panel.is-in .cta-tick .icon { animation: ctaTick 0.6s var(--ease) calc(var(--n, 0) * 150ms + 0.8s) backwards; }
.cta-list li:nth-child(2) { --n: 1; }
.cta-list li:nth-child(3) { --n: 2; }
@keyframes ctaTick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Buttons */
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  animation: ctaPulse 3s ease-in-out infinite;      /* soft ring pulse on the main button */
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cta-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow); animation: none; }
.cta-btn:hover .icon { transform: translateX(4px); }
.cta-btn--ghost { background: transparent; color: var(--accent); animation: none; }
.cta-btn--ghost:hover { background: var(--accent); color: var(--bg); }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

/* Reveal (only when scripts run): the panel rises in */
html.js .cta-panel:not(.is-in) { opacity: 0; }
html.js .cta-panel.is-in { animation: ctaRise 0.9s var(--ease) backwards; }
@keyframes ctaRise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Mobile / small tablet: photo on top, panel below (no text on the photo) */
@media (max-width: 699px) {
  .cta-sec { display: grid; padding-block: 0; }
  .cta-bg { position: relative; z-index: 0; aspect-ratio: 16 / 10; }
  .cta-fx { bottom: auto; aspect-ratio: 16 / 10; height: auto; }
  .cta-wrap { padding-block: 24px; }              /* equal space above and below the panel */
  .cta-panel { width: 100%; }
  .cta-btn { width: 100%; }
}

/* Reduced motion: still photo, no bubbles or pulses, panel shows at once */
@media (prefers-reduced-motion: reduce) {
  .cta-fx { display: none; }
  .cta-bg img,
  .cta-btn,
  html.js .cta-panel.is-in,
  html.js .cta-panel.is-in .cta-tick .icon { animation: none !important; }
  html.js .cta-panel:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   14l. HOME 2 – CONTACT CTA WITH FULL BACKGROUND IMAGE
   - The photo fills the whole section. All text lives in ONE solid panel (--bg), never directly on the photo,
     so it is readable in light and dark mode. The photo stays visible around the panel.
   - Panel: two equal columns (text | contact rows), 40px padding on every side, 40px between the columns.
   - Section top and bottom padding are equal. Rows are separated by hairlines with equal padding above and below.
   - Effects: slow photo drift, panel rise, rows slide in, pulsing icon rings, bubbles (click to pop).
   - Mobile: photo strip above, panel below (nothing overlaps). Only the site's colour variables are used.
   ========================================================================== */
.cc-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 128px);  /* equal top and bottom: lots of photo shows above and below the panel */
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cc-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cc-bg img { width: 100%; height: 100%; object-fit: cover; animation: ccDrift 26s ease-in-out infinite alternate; }
@keyframes ccDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.1) translateX(1.5%); }
}
.cc-fx {                                  /* bubble layer over the photo, under the panel */
  --h2-rise: 100cqh;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

/* Panel */
.cc-wrap { display: grid; }
.cc-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* two equal columns */
  align-items: center;
  gap: 40px;
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 40px);                  /* same padding on every side */
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 24px 48px -24px var(--glow-2);
}
.cc-copy { display: grid; justify-items: start; gap: 16px; }
.cc-copy h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.cc-copy h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.cc-copy p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Buttons */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cc-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.cc-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow); }
.cc-btn:hover .icon { transform: translateX(4px); }
.cc-btn--ghost { background: transparent; color: var(--accent); }
.cc-btn--ghost:hover { background: var(--accent); color: var(--bg); }

/* Contact rows */
.cc-list { display: grid; }
.cc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;                    /* equal space above and below every row */
}
.cc-row:first-child { padding-top: 0; }
.cc-row:last-child { padding-bottom: 0; }
.cc-row + .cc-row { border-top: 1px solid var(--border); }
.cc-ic {                                  /* round icon badge with a pulse ring */
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.cc-ic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ccRing 2.8s ease-out infinite;
}
.cc-row:nth-child(2) .cc-ic::after { animation-delay: 0.5s; }
.cc-row:nth-child(3) .cc-ic::after { animation-delay: 1s; }
.cc-row:nth-child(4) .cc-ic::after { animation-delay: 1.5s; }
@keyframes ccRing {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}
.cc-ic .icon { width: 22px; height: 22px; }
.cc-info { display: grid; gap: 2px; min-width: 0; }
.cc-info small { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.cc-info a,
.cc-info > span { font-size: 1.0625rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.cc-info a { transition: color 0.25s var(--ease); }
.cc-info a:hover { color: var(--accent); }

/* Reveal (only when scripts run): panel rises, then the rows slide in one by one */
html.js .cc-panel:not(.is-in) { opacity: 0; }
html.js .cc-panel.is-in { animation: ccRise 0.9s var(--ease) backwards; }
html.js .cc-panel.is-in .cc-row { animation: ccSlide 0.7s var(--ease) calc(var(--n, 0) * 140ms + 0.6s) backwards; }
@keyframes ccRise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes ccSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Tablet: columns stack */
@media (max-width: 799px) {
  .cc-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
/* Mobile: photo strip on top, panel below (no panel on the photo) */
@media (max-width: 599px) {
  .cc-sec { display: grid; padding-block: 0; }
  .cc-bg { position: relative; z-index: 0; aspect-ratio: 16 / 10; }
  .cc-fx { bottom: auto; aspect-ratio: 16 / 10; height: auto; }
  .cc-wrap { padding-block: 24px; }                 /* equal space above and below the panel */
  .cc-btn { width: 100%; }
}

/* Reduced motion: still photo, no bubbles or pulses, everything shows at once */
@media (prefers-reduced-motion: reduce) {
  .cc-fx { display: none; }
  .cc-bg img,
  .cc-ic::after,
  html.js .cc-panel.is-in,
  html.js .cc-panel.is-in .cc-row { animation: none !important; }
  html.js .cc-panel:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   14m. HOME 1 – SECTION 3: OUR CLEANING SERVICES (scroll-pinned reveal)
   Layout: "the opening stage".
     heading  ->  one stage that is pinned under the navbar
   - Start (--p: 0): the photo fills the whole stage width. While the page scrolls, --p goes 0 -> 1 (set by index.js):
     the side cards GROW in from the edges (flex-grow = --p) and the photo narrows to the middle.
   - After the reveal, the pinned scroll steps through the three services (photo, caption, details change).
   - Without scripts, on phones and tablets, or with reduced motion: no pinning, --p stays 1 (everything is shown).
   - Nothing overlaps: the caption sits below the photo, and the cards only ever fill the space next to it.
   - Bubbles float over the photo only (so they can never touch text); they reuse .home-bubble / .home-pop from the banner (14b).
   ========================================================================== */
.cln-sec {
  --cln-h: clamp(440px, calc(100svh - var(--nav-h) - 72px), 520px);   /* stage height: fits under the navbar */
  --cln-top: calc(var(--nav-h) + max(24px, (100svh - var(--nav-h) - var(--cln-h)) / 2));   /* pins centred in the free screen height */
  --cln-gap: 16px;                                                    /* gap between photo and cards once open */
  padding-block: clamp(56px, 7vw, 96px);                              /* equal top and bottom */
  background: var(--bg);
  overflow-x: clip;                       /* 'clip' (not 'hidden') so sticky pinning keeps working */
}
.cln-wrap { display: grid; gap: clamp(28px, 3.5vw, 44px); }

/* ---------- 14m-1. Heading ---------- */
.cln-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
  gap: 24px clamp(24px, 4vw, 64px);
}
.cln-head-title { display: grid; justify-items: start; gap: clamp(12px, 1.6vw, 18px); }
.cln-head h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cln-head p { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }

/* ---------- 14m-2. Pinned track + stage ---------- */
.cln-pin { position: relative; }
/* Pinning only switches on when index.js adds .is-pinned (desktop, motion allowed) */
.cln-sec.is-pinned .cln-track { height: calc(var(--cln-h) + 260vh); }   /* scroll distance = stage height + 260vh */
.cln-sec.is-pinned .cln-pin {
  position: sticky;
  top: var(--cln-top);
  height: var(--cln-h);
}
/* Stage: phones/tablets use a simple grid; desktop uses a row whose side cards grow with --p */
.cln-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cln-media { grid-column: 1 / -1; order: -1; }   /* phones / tablets: photo first, then the two cards */

/* ---------- 14m-3. Photo + caption ---------- */
.cln-media { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.cln-photos {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: 4 / 3;                    /* phones / tablets; desktop gets its height from the stage */
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);             /* only visible while the photo loads */
  overflow: hidden;
  isolation: isolate;
}
.cln-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.8s var(--ease);   /* soft crossfade between services */
}
.cln-photo.is-active { opacity: 1; animation: clnDrift 10s ease-out forwards; }   /* slow zoom while shown */
@keyframes clnDrift { from { transform: scale(1); } to { transform: scale(1.07); } }
.cln-bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }

/* Caption below the photo: service name + three progress dots */
.cln-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}
.cln-cap-names { display: grid; }
.cln-cap-name {                           /* the three names share one spot and fade */
  grid-area: 1 / 1;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cln-cap-name.is-active { opacity: 1; transform: none; }
.cln-dots { display: flex; gap: 6px; }
.cln-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.4s var(--ease), background-color 0.4s var(--ease);
}
.cln-dots i.is-active { width: 28px; background: var(--accent); }

/* ---------- 14m-4. Side cards ---------- */
.cln-card {
  min-width: 0;
  overflow: hidden;                       /* hides the content while the card is still narrow */
  border-radius: 24px;
  border: 1px solid var(--border);
}
.cln-card-in {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 24px;                          /* same padding on every side */
}
.cln-card--list { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cln-card--info { background: var(--surface); color: var(--text); }

.cln-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cln-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: clnBlink 2s ease-in-out infinite; }
@keyframes clnBlink { 50% { opacity: 0.35; transform: scale(0.8); } }
.cln-card--info .cln-kicker { color: var(--accent); }

/* Left card: big number + service buttons */
.cln-big { display: grid; gap: 4px; }
.cln-big b { font-family: var(--font-head); font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); font-weight: 500; line-height: 1; }
.cln-big span { font-size: 0.9375rem; line-height: 1.5; opacity: 0.9; }
.cln-list {
  flex: 1;                                /* the three rows share the free height evenly */
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--bg);
}
.cln-list li { display: flex; }
.cln-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: start;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--bg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cln-row:hover { transform: translateX(4px); }
html[dir="rtl"] .cln-row:hover { transform: translateX(-4px); }
.cln-row-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.cln-row-icon .icon { width: 18px; height: 18px; }
.cln-row-name { flex: 1; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.cln-row-arrow { width: 18px; height: 18px; opacity: 0; transition: opacity 0.3s var(--ease); }
.cln-row[aria-pressed="true"] { background: var(--bg); color: var(--accent); }
.cln-row[aria-pressed="true"] .cln-row-arrow { opacity: 1; }

/* Footer link of both cards (sits at the bottom edge) */
.cln-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cln-link-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.cln-card--info .cln-link { color: var(--accent); border-color: var(--border); }
.cln-card--info .cln-link-btn { background: var(--accent); color: var(--bg); }
.cln-link:hover .cln-link-btn { transform: translateX(4px) scale(1.06); }
html[dir="rtl"] .cln-link:hover .cln-link-btn { transform: translateX(-4px) scale(1.06); }

/* Right card: the three detail texts share one spot (grid stack), so the card height never jumps */
.cln-panels { display: grid; }
.cln-panel {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.cln-panel.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.cln-tag {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;                   /* 13px */
  font-weight: 600;
  color: var(--muted);
}
.cln-panel h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 600; line-height: 1.2; }
.cln-panel p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.cln-ticks { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--border); }
.cln-ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--text); }
.cln-ticks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* ---------- 14m-5. Desktop (>= 1100px): one row; the side cards grow with --p ---------- */
@media (min-width: 1100px) {
  .cln-stage {
    container-type: inline-size;          /* lets the card content know the final card width (cqw) */
    display: flex;
    gap: calc(var(--p, 1) * var(--cln-gap));   /* the gaps open together with the cards */
    height: var(--cln-h);
  }
  .cln-media { order: 0; flex: 1.5 1 0; }   /* back to the middle; photo keeps 1.5 shares; each card grows from 0 to 1 share */
  .cln-photos { aspect-ratio: auto; }
  .cln-card {
    flex: var(--p, 1) 1 0;
    opacity: clamp(0, calc((var(--p, 1) - 0.2) * 1.5), 1);   /* fades in once it has started to open */
  }
  /* Content keeps its final width while the card opens, so text never re-wraps (the card just reveals it) */
  .cln-card-in { width: calc((100cqw - 2 * var(--cln-gap)) / 3.5); }
  .cln-head { margin-bottom: 0; }
}

/* ---------- 14m-6. Phones ---------- */
@media (max-width: 639px) {
  .cln-head { grid-template-columns: minmax(0, 1fr); }
  .cln-stage { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   14n. HOME 1 – SECTION 4: WHY MATTRESS CLEANING MATTERS
   Layout: "bubble cluster".
     text column (sticky on desktop)  +  five reason bubbles in a honeycomb: 3 on top, 2 tucked between them below
   - Each bubble holds an icon and a number; the title and text are CAPTIONS BELOW the bubble, so nothing overlaps.
   - Effects: bubbles rise in one after another, float gently, ripple, wobble when popped; popping releases small bubbles.
   - Background bubbles rise behind the content (they reuse .home-bubble from the banner, 14b).
   - Logical properties are used, so everything flips correctly in RTL.
   ========================================================================== */
.cm-sec {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);  /* equal top and bottom */
  background: var(--surface);
  overflow: clip;                         /* 'clip' keeps the sticky text column working */
  isolation: isolate;
}
.cm-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cm-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);            /* even gap between the two columns */
}

/* ---------- 14n-1. Text column ---------- */
.cm-head {
  display: grid;
  justify-items: start;
  gap: clamp(14px, 1.8vw, 20px);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.cm-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.cm-head p { max-width: 46ch; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.cm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 14n-2. Honeycomb of bubbles ---------- */
.cm-cluster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-cell { grid-column: span 2; position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.cm-cell:nth-child(4) { grid-column: 2 / span 2; }   /* second row sits between the bubbles above */
.cm-cell:nth-child(5) { grid-column: 4 / span 2; }
.cm-cell h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.cm-cell p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

/* The bubble itself */
.cm-bubble {
  position: relative;
  width: min(100%, 168px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 30% 26%, var(--glow) 0, var(--glow-2) 46%, var(--bg) 78%);
  color: var(--accent);
  box-shadow: inset 0 0 18px var(--glow), 0 12px 28px -14px var(--glow-2);
  animation: cmFloat 6s ease-in-out calc(var(--i) * -1.1s) infinite;     /* each bubble floats out of step */
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cm-bubble::before {                      /* soft highlight, like a soap bubble */
  content: "";
  position: absolute;
  top: 14%;
  inset-inline-start: 18%;
  width: 20%;
  height: 12%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.8;
  transform: rotate(-30deg);
}
.cm-bubble::after {                       /* ripple ring that keeps spreading out */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: cmRipple 4s ease-out calc(var(--i) * -0.8s) infinite;
}
.cm-bubble .icon { width: 44px; height: 44px; }
.cm-num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; }
.cm-bubble:hover,
.cm-bubble:focus-visible { transform: scale(1.08); box-shadow: inset 0 0 22px var(--glow), 0 0 0 6px var(--glow), 0 18px 34px -14px var(--glow-2); }
.cm-bubble.is-pop { animation: cmPop 0.6s var(--ease); }   /* quick jelly wobble when clicked */
@keyframes cmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cmRipple { 0% { opacity: 0.6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.22); } }
@keyframes cmPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.14, 0.9); }
  60%  { transform: scale(0.94, 1.08); }
  100% { transform: scale(1); }
}

/* Small bubbles released from a popped bubble (created by index.js; they reuse .home-pop from 14b) */
.cm-pops { position: absolute; inset: 0 0 auto; aspect-ratio: 1; pointer-events: none; }

/* Entrance: bubbles rise in one after another (classes added by index.js; without scripts everything is simply shown) */
.cm-sec.is-ready .cm-cell { opacity: 0; transform: translateY(40px) scale(0.85); }
.cm-sec.is-in .cm-cell {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) calc(var(--i) * 120ms), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 120ms);
}

/* ---------- 14n-3. Tablet / phone ---------- */
@media (max-width: 1099px) {
  .cm-wrap { grid-template-columns: minmax(0, 1fr); }
  .cm-head { position: static; }
}
@media (max-width: 639px) {
  .cm-cluster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-cell,
  .cm-cell:nth-child(4),
  .cm-cell:nth-child(5) { grid-column: auto; }
  .cm-cell:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }   /* last bubble centred */
  .cm-bubble { width: min(100%, 140px); }
  .cm-bubble .icon { width: 36px; height: 36px; }
}

/* ==========================================================================
   14o. HOME 1 – SECTION 5: OUR CLEANING PROCESS (scroll-pinned card pile)
   Layout: "the card pile".
     centred heading  ->  one stage pinned under the navbar
   - Start (--p: 0): the six step cards lie in a small tilted pile in the middle of the stage.
   - While the page scrolls, --p goes 0 -> 1 (set by index.js): each card flies to its own place, straightens and
     grows to full size, ending as an even 3 x 2 grid with equal gaps and no overlap.
   - Every card = photo on top, text BELOW it. All text is 14px or larger.
   - Without scripts, on phones and tablets, or with reduced motion: no pinning, --p stays 1 (the finished grid).
   - Bubbles drift behind the cards; a burst of bubbles pops when the cards land (they reuse .home-bubble / .home-pop, 14b).
   ========================================================================== */
.cp-sec {
  --cp-h: clamp(520px, calc(100svh - var(--nav-h) - 64px), 660px);   /* stage height: fits under the navbar */
  --cp-top: calc(var(--nav-h) + max(24px, (100svh - var(--nav-h) - var(--cp-h)) / 2));   /* pins centred in the free height */
  --cp-gap: 16px;                         /* gap between the cards once they are in place */
  --dir: 1;                               /* flips to -1 in RTL so the cards fly the right way */
  padding-block: clamp(56px, 7vw, 96px);  /* equal top and bottom */
  background: var(--bg);
  overflow-x: clip;                       /* 'clip' (not 'hidden') so sticky pinning keeps working */
}
html[dir="rtl"] .cp-sec { --dir: -1; }
.cp-wrap { display: grid; gap: clamp(28px, 3.5vw, 44px); }

/* ---------- 14o-1. Heading ---------- */
.cp-head { display: grid; justify-items: center; gap: clamp(12px, 1.6vw, 18px); text-align: center; }
.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;                    /* 14px */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cp-eyebrow .icon { width: 16px; height: 16px; }
.cp-head h2 { max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.cp-head p { max-width: 56ch; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }

/* ---------- 14o-2. Track + pinned stage ---------- */
.cp-pin { position: relative; }
/* Pinning only switches on when index.js adds .is-pinned (desktop, motion allowed) */
.cp-sec.is-pinned .cp-track { height: calc(var(--cp-h) + 220vh); }   /* scroll distance = stage height + 220vh */
.cp-sec.is-pinned .cp-pin { position: sticky; top: var(--cp-top); height: var(--cp-h); }
.cp-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }   /* bubbles stay behind the cards */

/* Stage = the finished grid. Phones: 1 column, tablets: 2 columns, desktop: 3 x 2 */
.cp-stage {
  container-type: inline-size;            /* lets the cards read the stage width (cqw) */
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cp-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px)  { .cp-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .cp-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: var(--cp-h); }
}

/* ---------- 14o-3. Cards ---------- */
.cp-card {
  --q: calc(1 - var(--p, 1));             /* 1 = still in the pile, 0 = in place */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 14px;                          /* same padding on every side */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 30px -18px var(--glow-2);
  will-change: transform;
}
/* Desktop: move each card from the pile (centre of the stage) to its own cell, straighten it and scale it up.
   Cell offset from the centre: columns = (stage width + gap) / 3, rows = (stage height + gap) / 4. */
@media (min-width: 1100px) {
  .cp-card {
    transform:
      translate(
        calc(var(--q) * (var(--cx) * var(--dir) * (100cqw + var(--cp-gap)) / -3 + var(--ox))),
        calc(var(--q) * (var(--cy) * (var(--cp-h) + var(--cp-gap)) / -4 + var(--oy)))
      )
      rotate(calc(var(--q) * var(--rot)))
      scale(calc(1 - var(--q) * 0.55));
  }
}
.cp-img { flex: 1 1 0; min-height: 110px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cp-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.cp-body { display: grid; gap: 8px; padding-inline: 4px; }
.cp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-step { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cp-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); }
.cp-ic .icon { width: 17px; height: 17px; }
.cp-body h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.cp-body p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

/* Phones / tablets: photo gets a fixed height because the card height comes from its content */
@media (max-width: 1099px) { .cp-img { flex: none; height: clamp(150px, 32vw, 220px); } }

/* ==========================================================================
   14p. HOME 1 – SECTION 6: OUR PRICING PLANS (unfolding plan panels)
   Layout: "unfolding panels".
     heading (title + intro/chips)  ->  three tall panels side by side, exactly ONE is open (wide), the others stay narrow
   - Every panel = photo on top, a thin progress line, then the text BELOW the photo (nothing is written on a photo).
   - The photo takes whatever height the text leaves free, so folded panels show a tall photo and the open one a wide photo.
   - Open panel: price counts up, features tick in one by one, photo drifts slowly; the folded details grow open (grid-rows trick).
   - The panels also open one after another on their own (the progress line shows the time left) until the visitor picks one.
   - Phones / tablets: no side-by-side, the panels stack and open like an accordion.
   - Only the site colour variables are used. Logical properties are used, so everything flips correctly in RTL.
   - Background bubbles reuse .home-bubble from the banner (14b).
   ========================================================================== */
.pp-sec {
  --pp-h: 660px;                          /* deck height on desktop (the photo uses whatever the text leaves free) */
  --pp-open: 2.2;                         /* how much wider the open panel is than a folded one */
  --pp-gap: 16px;                         /* gap between the panels */
  --pp-dur: 6s;                           /* time each panel stays open on its own */
  position: relative;
  isolation: isolate;                     /* keeps the bubbles behind the content */
  overflow: clip;
  padding-block: clamp(56px, 7vw, 96px);  /* equal top and bottom */
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.pp-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }   /* bubble layer */
.pp-wrap { display: grid; gap: clamp(28px, 3.5vw, 44px); }

/* ---------- 14p-1. Heading ---------- */
.pp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);   /* title on the start side, intro on the end side */
  align-items: end;
  gap: clamp(24px, 4vw, 64px);            /* even gap between the two columns */
}
.pp-title { display: grid; justify-items: start; gap: clamp(12px, 1.6vw, 18px); }
.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;                    /* 14px */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pp-eyebrow .icon { width: 16px; height: 16px; }
.pp-title h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.pp-intro { display: grid; justify-items: start; gap: clamp(14px, 1.8vw, 20px); }
.pp-intro p { max-width: 52ch; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.pp-chips .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- 14p-2. Deck (desktop: one row of three panels) ---------- */
.pp-deck { display: flex; gap: var(--pp-gap); height: var(--pp-h); }

/* ---------- 14p-3. Panel ---------- */
.pp-panel {
  position: relative;                     /* anchor for the stretched button (see .pp-pick::after) */
  flex: 1 1 0;                            /* folded panels share the space equally */
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 14px;                          /* same padding on every side */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 30px -18px var(--glow-2);
  transition: flex-grow 0.75s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pp-panel.is-active {
  flex-grow: var(--pp-open);              /* the open panel takes the extra width */
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 24px 40px -24px var(--glow-2);
}
.pp-panel:not(.is-active):hover { transform: translateY(-4px); border-color: var(--accent); }

/* Photo: fills the free height; the image is cropped, never stretched */
.pp-photo { position: relative; flex: 1 1 0; min-height: 140px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.pp-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 0.7s var(--ease);
}
.pp-panel:not(.is-active):hover .pp-photo img { transform: scale(1.06); }
.pp-panel.is-active .pp-photo img { animation: ppDrift 10s ease-in-out infinite alternate; }   /* slow zoom while open */
@keyframes ppDrift { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Progress line: full while the panel is open; it fills over --pp-dur when the panels change on their own */
.pp-timer { flex: none; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pp-timer i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.pp-panel.is-active .pp-timer i { width: 100%; }
.pp-sec.is-auto .pp-panel.is-active .pp-timer i { width: 0; animation: ppFill var(--pp-dur) linear forwards; }
.pp-sec.is-hold .pp-panel.is-active .pp-timer i { animation-play-state: paused; }   /* pauses while hovered / focused / off screen */
@keyframes ppFill { to { width: 100%; } }

/* Text block */
.pp-body { flex: none; display: grid; align-content: start; gap: 10px; padding-inline: 4px; }
.pp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--accent);
}
.pp-tag .icon { width: 14px; height: 14px; animation: ppTwinkle 2.6s ease-in-out infinite; }
.pp-tag--hot { border-color: var(--accent); background: var(--accent); color: var(--bg); }   /* the "most popular" badge */
@keyframes ppTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(18deg); } }

.pp-body h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
/* The real button lives in the heading; ::after stretches it over the whole panel so the entire panel is clickable */
.pp-pick { text-align: start; color: inherit; }
.pp-pick::after { content: ""; position: absolute; inset: 0; border-radius: 20px; cursor: pointer; }
.pp-pick:focus-visible { outline: none; }
.pp-pick:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.pp-panel.is-active .pp-pick::after { cursor: default; }

.pp-price { display: flex; align-items: baseline; gap: 8px; }
.pp-price > span { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.pp-price b {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;     /* digits keep their width while counting */
  color: var(--accent);
}

/* Folded details: height animates from 0 to its natural size with the grid-rows trick */
.pp-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.pp-panel.is-active .pp-more { grid-template-rows: 1fr; }
.pp-more-in {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 4px;                           /* room for the focus ring; the negative margin cancels it out */
  margin: -4px;
  overflow: hidden;
  visibility: hidden;                     /* folded links can never be tabbed to */
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s 0.6s;
}
.pp-panel.is-active .pp-more-in { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease) 0.25s, visibility 0s; }
.pp-for { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.pp-feats { display: grid; gap: 8px; }
.pp-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 20px !important; line-height: 1.5; color: var(--text); }
.pp-feats .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); stroke-width: 2.4; stroke-dasharray: 24; }
/* Features tick in one after another every time the panel opens */
.pp-panel.is-active .pp-feats li { animation: ppSlide 0.55s var(--ease) calc(var(--k) * 90ms + 300ms) backwards; }
.pp-panel.is-active .pp-feats .icon { animation: ppDraw 0.6s var(--ease) calc(var(--k) * 90ms + 450ms) backwards; }
@keyframes ppSlide { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * -16px)); } to { opacity: 1; transform: none; } }
@keyframes ppDraw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
html[dir="rtl"] .pp-feats li { --dir: -1; }

/* Book button (above the stretched panel button, so it stays clickable) */
.pp-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: start;
  height: 48px;
  padding-inline: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;                       /* keeps the shine inside the button */
  transition: background-color 0.25s var(--ease);
}
.pp-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.pp-btn:hover { background: var(--text); }
.pp-btn:hover .icon { transform: translateX(4px); }
html[dir="rtl"] .pp-btn:hover .icon { transform: scaleX(-1) translateX(4px); }
.pp-btn:focus-visible { outline-offset: 2px; }
.pp-btn::after {                          /* a soft light sweeps across the button now and then */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, var(--glow), transparent);
  transform: skewX(-20deg);
  animation: ppShine 4.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes ppShine { 0% { inset-inline-start: -40%; } 35%, 100% { inset-inline-start: 140%; } }

/* Cue that is only shown while the panel is folded */
.pp-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 700; color: var(--accent); }
.pp-hint .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.pp-panel:hover .pp-hint .icon { transform: translateX(4px); }
.pp-panel.is-active .pp-hint { display: none; }
html[dir="rtl"] .pp-hint .icon { transform: scaleX(-1); }
html[dir="rtl"] .pp-panel:hover .pp-hint .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- 14p-4. Note under the deck ---------- */
.pp-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; text-align: center; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.pp-note a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.pp-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pp-note .icon { width: 16px; height: 16px; }

/* ---------- 14p-5. Entrance (classes added by index.js; without scripts everything is simply shown) ---------- */
.pp-sec.is-ready:not(.is-in) .pp-panel { opacity: 0; }
.pp-sec.is-in .pp-panel { animation: ppRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 140ms) backwards; }       /* panels rise one by one */
.pp-sec.is-in .pp-photo { animation: ppWipe 1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i) * 140ms + 200ms) backwards; }   /* photos are wiped open */
@keyframes ppRise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes ppWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 14p-6. Tablet / phone: panels stack and open like an accordion ---------- */
@media (max-width: 1099px) {
  .pp-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pp-deck { flex-direction: column; height: auto; }
  .pp-panel,
  .pp-panel.is-active { flex: none; }
  .pp-photo { flex: none; min-height: 0; height: clamp(120px, 22vw, 160px); transition: height 0.6s var(--ease); }
  .pp-panel.is-active .pp-photo { height: clamp(190px, 40vw, 280px); }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .pp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }   /* two columns of features on tablets */
}
@media (max-width: 639px) {
  .pp-btn { width: 100%; justify-self: stretch; }
}

/* ---------- 14p-7. Reduced motion: nothing drifts, shines or twinkles; the open panel is simply shown ---------- */
@media (prefers-reduced-motion: reduce) {
  .pp-fx { display: none; }
  .pp-panel,
  .pp-more,
  .pp-more-in,
  .pp-photo { transition: none; }
  .pp-panel.is-active .pp-photo img,
  .pp-tag .icon,
  .pp-btn::after,
  .pp-panel.is-active .pp-feats li,
  .pp-panel.is-active .pp-feats .icon,
  .pp-sec.is-in .pp-panel,
  .pp-sec.is-in .pp-photo { animation: none; }
}


/* ==========================================================================
   14q. HOME 1 – SECTION 7: CUSTOMER REVIEWS (testimonial wall)
   Layout: "review wall".
     start side: eyebrow, headline with a highlighted phrase, big score + stars, hint
     end side:   two columns of review cards that drift in opposite directions (one up, one down),
                 with soft fades at the top and bottom of the wall
   - Each card = badge, quote, then avatar + name + plan. Spacing inside the cards and between the columns is even.
   - Each column is written twice in the HTML; the loop moves exactly one copy (50 %), so it never shows a gap.
   - Hover / keyboard focus on the wall, or the section being off screen, pauses the drifting (class .is-away from index.js).
   - Avatars are cropped from the site photos with --fx / --fy (face position) and the zoom --z.
   - Phones: the wall becomes a swipeable row (scroll-snap). Reduced motion: no drifting, one static copy of every card.
   - Only the site colour variables are used. Logical properties are used, so everything flips correctly in RTL.
   ========================================================================== */
.tw-sec {
  --tw-h: clamp(540px, 78vh, 700px);      /* height of the wall on desktop / tablet */
  --tw-g: 16px;                           /* gap between cards and between the two columns */
  position: relative;
  overflow: clip;
  padding-block: clamp(56px, 7vw, 96px);  /* equal top and bottom */
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.tw-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);            /* even gap between the two columns */
}

/* ---------- 14q-1. Start side ---------- */
.tw-head { display: grid; justify-items: start; gap: clamp(16px, 2vw, 24px); }
.tw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;                    /* 14px */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.tw-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tw-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: twPing 2.2s ease-out infinite; }   /* ripple */
@keyframes twPing { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
.tw-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
/* Highlighted phrase: a solid accent marker behind the words */
.tw-mark {
  display: inline-block;                  /* the marker is never split over two lines */
  white-space: nowrap;
  padding-inline: 0.18em;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
}

/* Score: big number, stars above the caption */
.tw-score { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.tw-num {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;     /* digits keep their width while counting */
  color: var(--text);
}
.tw-rate { display: grid; gap: 6px; }
.tw-stars { display: flex; gap: 4px; }
.tw-stars .icon { width: 20px; height: 20px; color: var(--accent); fill: var(--accent); }
.tw-rate p { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.tw-hint { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.tw-hint-swipe { display: none; }         /* only phones show the swipe hint */

/* ---------- 14q-2. Wall ---------- */
.tw-wall {
  height: var(--tw-h);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);   /* soft fade top and bottom */
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.tw-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tw-g);
  height: 100%;
  padding-inline: 4px;                    /* room so card borders and shadows are never clipped at the sides */
}
.tw-col { min-width: 0; }
.tw-track { display: flex; flex-direction: column; will-change: transform; }
.tw-col--up .tw-track { animation: twUp 46s linear infinite; }
.tw-col--down .tw-track { animation: twDown 54s linear infinite; }
@keyframes twUp   { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes twDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.tw-wall:hover .tw-track,
.tw-wall:focus-within .tw-track,
.tw-sec.is-away .tw-track { animation-play-state: paused; }

/* One copy of a column: cards with an even gap, plus one trailing gap so the two copies join without a jump */
.tw-group { display: grid; gap: var(--tw-g); padding-block: 4px var(--tw-g); }

/* ---------- 14q-3. Review card ---------- */
.tw-card {
  display: grid;
  gap: 16px;
  padding: 22px;                          /* same padding on every side */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 30px -18px var(--glow-2);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tw-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.tw-badge {
  justify-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--text);                /* flips with the theme */
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.tw-quote { margin: 0; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; color: var(--text); }
.tw-who { display: flex; align-items: center; gap: 12px; }
.tw-ava { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent); background: var(--bg); --z: 3.3; }
.tw-ava img {                             /* a zoomed crop: the face point (--fx, --fy) is moved to the middle of the circle */
  position: absolute;
  max-width: none;
  width: calc(var(--z) * 100%);
  height: auto;
  left: calc(50% - var(--fx) * var(--z) * 100%);     /* physical 'left' on purpose: the photo itself is never mirrored */
  top: calc(50% - var(--fy) * var(--z) * 100%);
}
.tw-name { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.tw-role { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* The highlighted card (solid accent) */
.tw-card--hot { background: var(--accent); border-color: var(--accent); }
.tw-card--hot .tw-quote,
.tw-card--hot .tw-name,
.tw-card--hot .tw-role { color: var(--bg); }
.tw-card--hot .tw-badge { background: var(--bg); color: var(--accent); }
.tw-card--hot .tw-ava { border-color: var(--bg); }
.tw-card--hot:hover { border-color: var(--text); }

/* ---------- 14q-4. Entrance (classes added by index.js; without scripts everything is simply shown) ---------- */
.tw-sec.is-ready:not(.is-in) .tw-in,
.tw-sec.is-ready:not(.is-in) .tw-col { opacity: 0; }
.tw-sec.is-in .tw-in { animation: twRise 0.8s var(--ease) calc(var(--i) * 110ms) backwards; }                  /* start side rises line by line */
.tw-sec.is-in .tw-col--up { animation: twRise 1s cubic-bezier(0.22, 1, 0.36, 1) 200ms backwards; }          /* the two columns slide in from opposite sides */
.tw-sec.is-in .tw-col--down { animation: twDrop 1s cubic-bezier(0.22, 1, 0.36, 1) 350ms backwards; }
.tw-sec.is-in .tw-mark { animation: twWipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) 450ms backwards; }               /* marker is painted on */
.tw-sec.is-in .tw-stars .icon { animation: twStar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--k) * 110ms + 500ms) backwards; }   /* stars light up one by one */
@keyframes twRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes twDrop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes twWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html[dir="rtl"] .tw-sec.is-in .tw-mark { animation-name: twWipeRtl; }
@keyframes twWipeRtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes twStar { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }

/* ---------- 14q-5. Tablet: heading on top, wall below ---------- */
@media (max-width: 1099px) {
  .tw-wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- 14q-6. Phone: the wall becomes a swipeable row, one card at a time ---------- */
@media (max-width: 639px) {
  .tw-wall { height: auto; -webkit-mask-image: none; mask-image: none; }
  .tw-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; }
  .tw-col,
  .tw-track,
  .tw-group { display: contents; }        /* every card becomes a direct item of the swipeable row */
  .tw-group[aria-hidden="true"] { display: none; }
  .tw-card { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
  .tw-hint-hover { display: none; }
  .tw-hint-swipe { display: inline; }
}

/* ---------- 14q-7. Reduced motion: nothing drifts; every card is shown once, in a calm static grid ---------- */
@media (prefers-reduced-motion: reduce) {
  .tw-dot::after,
  .tw-col .tw-track,
  .tw-sec.is-in .tw-in,
  .tw-sec.is-in .tw-col,
  .tw-sec.is-in .tw-mark,
  .tw-sec.is-in .tw-stars .icon { animation: none; }
  .tw-card { transition: none; }
  .tw-wall { height: auto; -webkit-mask-image: none; mask-image: none; }
  .tw-group[aria-hidden="true"] { display: none; }
  .tw-group { padding-block: 0; }
}


/* ==========================================================================
   15. SCROLL-REVEAL HELPER
   Elements with class "reveal" start hidden (only when JS is running) and play
   a fade + rise once index.js adds "is-in". Stagger with style="--d:120ms".
   ========================================================================== */
@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
html.js .reveal { opacity: 0; }
html.js .reveal.is-in {
  opacity: 1;
  animation: reveal 0.8s var(--ease) var(--d, 0ms) backwards;   /* "backwards" = no fill afterwards, so hover effects still work */
}


/* ==========================================================================
   ABOUT PAGE – SECTION 2: OUR BRAND STORY
   Reference layout: 2-column split layout with tall featured portrait photo on the left,
   brand narrative + 2-card proof grid on the right (Stat & Promise card + Service Showcase card).
   Strict rules applied:
   - Zero overlap: text, cards, photos and buttons never touch or collide. Captions strictly below photos.
   - All text >= 13px, fully legible in both dark and light modes.
   - Strictly uses only the site's colour variables (--bg, --surface, --accent, --secondary, --text, --muted, --border, --glow, --glow-2).
   - Equal top and bottom padding (clamp(64px, 8vw, 100px)). Spacing between columns and cards is even.
   - Split reveal animation: curtain panels part on images, left and right sides split-slide into place, metric counts up.
   ========================================================================== */

.story-sec {
  --dir: 1;                                      /* 1 = LTR, -1 = RTL (set in rtl.css) */
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);        /* Strictly equal top and bottom padding */
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

/* Two-column container */
.story-container {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

/* ---------- Left Column: Tall Featured Portrait Photo ---------- */
.story-visual {
  position: relative;
  display: flex;
}

.story-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 30px var(--glow-2);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Viewfinder corner brackets: camera editorial accent */
.story-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.story-corner--tr {
  top: 20px;
  inset-inline-end: 20px;
  border-inline-start: none;
  border-bottom: none;
  border-start-end-radius: 6px;
}

.story-corner--br {
  bottom: 20px;
  inset-inline-end: 20px;
  border-inline-start: none;
  border-top: none;
  border-end-end-radius: 6px;
}

/* ---------- Right Column: Narrative + 2 Cards ---------- */
.story-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 3.2vw, 36px);
}

/* Header: eyebrow, title, lead */
.story-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-eyebrow .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.story-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.story-lead {
  font-family: var(--font-body);
  font-size: 14px !important;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Bottom Cards Grid: 2 equal cards */
.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

/* Base Card */
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px var(--glow-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--glow-2);
}

/* ---------- Card 1: Stat & Action ---------- */
.story-card--stat {
  gap: 14px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 600;
  color: var(--accent);
}

.story-badge .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.story-metric {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-block: 4px;
}

.story-num {
  font-size: clamp(2.75rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.story-unit {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.story-metric-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;                           /* 14px */
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.story-action-wrap {
  margin-top: 4px;
}

.story-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;                          /* 15px */
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  text-align: center;
}

.story-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow), 0 8px 18px var(--glow-2);
}

/* ---------- Card 2: Feature Showcase ---------- */
.story-card--feature {
  min-height: 280px;
  padding: 0;
  overflow: hidden;
}

.story-subphoto {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
  border: 0;
  background: var(--bg);
  flex-shrink: 0;
}

.story-subphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.story-card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.story-card-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;                          /* 17px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.story-card-desc {
  font-family: var(--font-body);
  font-size: 0.84375rem;                         /* 13.5px */
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.story-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.story-circle-btn .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.story-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--glow), 0 8px 16px var(--glow-2);
}

/* ==========================================================================
   SPLIT REVEAL ANIMATION (when JavaScript is enabled)
   ========================================================================== */

/* Curtain panels over the photos that split apart horizontally */
html.js .story-sec .story-photo::before,
html.js .story-sec .story-photo::after,
html.js .story-sec .story-subphoto::before,
html.js .story-sec .story-subphoto::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: var(--accent);
  transition: transform 0.85s var(--ease);
}

html.js .story-sec .story-photo::before,
html.js .story-sec .story-subphoto::before {
  inset-inline-start: 0;
}

html.js .story-sec .story-photo::after,
html.js .story-sec .story-subphoto::after {
  inset-inline-end: 0;
}

/* Split panels slide apart when in view */
html.js .story-sec.is-in .story-photo::before,
html.js .story-sec.is-in .story-subphoto::before {
  transform: translateX(calc(-101% * var(--dir, 1)));
}

html.js .story-sec.is-in .story-photo::after,
html.js .story-sec.is-in .story-subphoto::after {
  transform: translateX(calc(101% * var(--dir, 1)));
}

/* Split entry: visual slides from left, content slides from right */
html.js .story-sec [data-story-visual]:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(-30px * var(--dir, 1)));
}

html.js .story-sec [data-story-content]:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(30px * var(--dir, 1)));
}

html.js .story-sec.is-in [data-story-visual],
html.js .story-sec.is-in [data-story-content] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Stagger cards pop-in */
html.js .story-sec [data-story-card]:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}

html.js .story-sec.is-in [data-story-card] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991px) {
  .story-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .story-photo {
    min-height: 380px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

@media (max-width: 639px) {
  .story-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .story-photo {
    min-height: 280px;
  }
}


/* ==========================================================================
   ABOUT PAGE – SECTION 3: OUR MISSION, VISION & VALUES
   Layout: Two cards side by side.
   Scroll Animation: Card 1 slides in from left, Card 2 slides in from right.
   Split Reveal: Photo curtain panels separate horizontally on entry.
   Hover Effect: Content details smoothly appear and expand on hover.
   Strict rules applied:
   - Zero overlap: captions strictly below photos inside the card body.
   - All text >= 13px, fully legible in both dark and light modes.
   - Only site's colour variables (--bg, --surface, --accent, --secondary, --text, --muted, --border, --glow, --glow-2).
   - Equal top and bottom padding, even card spacing, zero unnecessary gaps.
   ========================================================================== */

.mv-sec {
  --dir: 1;                                      /* 1 = LTR, -1 = RTL (set in rtl.css) */
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);        /* Strictly equal top and bottom padding */
  background: var(--surface);                    /* Alternating surface background */
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.mv-container {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 48px);
}

/* Header */
.mv-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mv-eyebrow .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.mv-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.mv-lead {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); /* 15px - 17px */
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Two-Card Grid */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 40px);
  align-items: stretch;
}

/* Card Container */
.mv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px var(--glow-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
  outline: none;
}

.mv-card:hover,
.mv-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--glow-2);
  border-color: var(--secondary);
}

/* Card Photo with Split Reveal Curtain */
.mv-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.mv-card:hover .mv-photo img,
.mv-card:focus-visible .mv-photo img {
  transform: scale(1.04);
}

/* Card Body (Positioned strictly below image - Zero Overlap) */
.mv-body {
  padding: clamp(22px, 2.5vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 600;
  color: var(--accent);
}

.mv-badge .icon {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.mv-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;                            /* 20px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.mv-card-summary {
  font-family: var(--font-body);
  font-size: 0.9375rem;                          /* 15px */
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Detailed Content Revealed on Hover */
.mv-details {
  position: absolute;
  z-index: 3;
  inset: auto 14px 14px;
  max-height: calc(100% - 28px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
}

.mv-card:hover .mv-details,
.mv-card:focus-visible .mv-details {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mv-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mv-list strong {
  font-family: var(--font-head);
  font-size: 0.875rem;                           /* 14px */
  font-weight: 700;
  color: var(--text);
}

.mv-list span {
  font-family: var(--font-body);
  font-size: 0.84375rem;                         /* 13.5px */
  line-height: 1.45;
  color: var(--muted);
}

/* Hover Hint */
.mv-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.3s var(--ease);
}

.mv-hint-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.mv-hint .icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.25s var(--ease);
}

.mv-card:hover .mv-hint .icon,
.mv-card:focus-visible .mv-hint .icon {
  transform: translateX(calc(4px * var(--dir, 1)));
}

.mv-card:hover .mv-hint,
.mv-card:focus-visible .mv-hint {
  opacity: 0.5;
}

/* Touch devices: always show details cleanly */
@media (hover: none) {
  .mv-details {
    max-height: none;
    opacity: 1;
    transform: none;
    padding-top: 14px;
  }
  .mv-hint {
    display: none;
  }
}

/* ==========================================================================
   SPLIT REVEAL & LEFT/RIGHT SCROLL ANIMATION (when JavaScript is enabled)
   ========================================================================== */

/* Split Curtain panels over the photos */
html.js .mv-sec .mv-photo::before,
html.js .mv-sec .mv-photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: var(--accent);
  transition: transform 0.85s var(--ease);
}

html.js .mv-sec .mv-photo::before { inset-inline-start: 0; }
html.js .mv-sec .mv-photo::after { inset-inline-end: 0; }

html.js .mv-sec.is-in .mv-photo::before {
  transform: translateX(calc(-101% * var(--dir, 1)));
}

html.js .mv-sec.is-in .mv-photo::after {
  transform: translateX(calc(101% * var(--dir, 1)));
}

/* Header rise-in */
html.js .mv-sec [data-mv-header]:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}

html.js .mv-sec.is-in [data-mv-header] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Left Card slides in from LEFT */
html.js .mv-sec .mv-card--left:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(-40px * var(--dir, 1)));
}

/* Right Card slides in from RIGHT */
html.js .mv-sec .mv-card--right:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(40px * var(--dir, 1)));
}

html.js .mv-sec.is-in .mv-card--left,
html.js .mv-sec.is-in .mv-card--right {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease) 0.15s, transform 0.85s var(--ease) 0.15s;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 899px) {
  .mv-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}


/* ==========================================================================
   ABOUT PAGE – SECTION 4: OUR CLEANING EXPERTISE
   Layout: 3-column reference architecture.
   - Left Column: Two stacked cards (01 & 03) sliding in from left.
   - Center Column: Featured central card with machinery photo, split curtains,
     eyebrow badge, title, lead, and solid CTA button.
   - Right Column: Two stacked cards (02 & 04) sliding in from right.
   Strict rules applied:
   - Zero overlap: text sits strictly below images inside card containers.
   - All text >= 13px, fully legible in both dark and light modes.
   - Only site's colour variables (--bg, --surface, --accent, --secondary, --text, --muted, --border, --glow, --glow-2).
   - Equal top and bottom padding, even card spacing, zero unnecessary gaps.
   ========================================================================== */

.exp-sec {
  --dir: 1;                                      /* 1 = LTR, -1 = RTL (set in rtl.css) */
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);        /* Strictly equal top and bottom padding */
  background: var(--bg);                         /* Clean ivory background */
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.exp-container {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
}

.exp-header {
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 760px;
  text-align: center;
}

/* 3-Column Grid */
.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}

.exp-col {
  display: flex;
  flex-direction: column;
}

.exp-col--left,
.exp-col--right {
  justify-content: space-between;
  gap: clamp(20px, 2.5vw, 32px);
}

.exp-col--center {
  justify-content: stretch;
}

/* Base Card */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--glow-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--glow-2);
}

/* Flanking Cards (01, 02, 03, 04) */
.exp-card--flank {
  padding: clamp(22px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.exp-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.875rem;                           /* 14px */
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px var(--surface);
}

.exp-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-card-title {
  font-family: var(--font-head);
  font-size: 1.125rem;                          /* 18px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.exp-card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;                           /* 14px */
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Featured Center Card */
.exp-card--center {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exp-photo {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.exp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.exp-card--center:hover .exp-photo img {
  transform: scale(1.04);
}

.exp-center-body {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.exp-badge .icon {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.exp-center-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.exp-center-lead {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.05vw, 1.05rem); /* 15px - 17px */
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.exp-cta-wrap {
  margin-top: 6px;
}

.exp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;                          /* 15px */
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}

.exp-cta-btn .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.exp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--glow), 0 8px 18px var(--glow-2);
}

/* ==========================================================================
   SPLIT REVEAL & LEFT/RIGHT SCROLL ANIMATION (when JavaScript is enabled)
   ========================================================================== */

/* Curtain panels over the center photo */
html.js .exp-sec .exp-photo::before,
html.js .exp-sec .exp-photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: var(--accent);
  transition: transform 0.85s var(--ease);
}

html.js .exp-sec .exp-photo::before { inset-inline-start: 0; }
html.js .exp-sec .exp-photo::after { inset-inline-end: 0; }

html.js .exp-sec.is-in .exp-photo::before {
  transform: translateX(calc(-101% * var(--dir, 1)));
}

html.js .exp-sec.is-in .exp-photo::after {
  transform: translateX(calc(101% * var(--dir, 1)));
}

/* Left Column slides in from LEFT */
html.js .exp-sec [data-exp-left]:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(-36px * var(--dir, 1)));
}

/* Right Column slides in from RIGHT */
html.js .exp-sec [data-exp-right]:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(36px * var(--dir, 1)));
}

/* Center Column pops and rises */
html.js .exp-sec [data-exp-center]:not(.is-in) {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

html.js .exp-sec.is-in [data-exp-left],
html.js .exp-sec.is-in [data-exp-right] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease) 0.1s, transform 0.8s var(--ease) 0.1s;
}

html.js .exp-sec.is-in [data-exp-center] {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1023px) {
  .exp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .exp-col--center {
    order: -1;                                   /* Center featured card appears first on tablets/mobile */
  }
  .exp-col--left,
  .exp-col--right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .exp-col--left,
  .exp-col--right {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}


/* ==========================================================================
   ABOUT PAGE – SECTION 5: OUR TEAM & PROFESSIONAL STANDARDS
   Layout: Innovative Spotlight & 2x2 Standards Bento Matrix.
   - Left: Certified Specialist Spotlight card with photo, split curtain reveal,
     specialist badge, name, quote, and credential tags.
   - Right: 2x2 Bento Matrix of Professional Standards (STD-01 to STD-04),
     each with standard code pill, icon, title, and specification.
   - Ambient FX: Floating glowing bubble system (.team-bubbles) floating through the section.
   Strict rules applied:
   - Zero overlap: text sits strictly below images inside card containers.
   - All text >= 13px, fully legible in both dark and light modes.
   - Only site's colour variables (--bg, --surface, --accent, --secondary, --text, --muted, --border, --glow, --glow-2).
   - Equal top and bottom padding, even card spacing, zero unnecessary gaps.
   ========================================================================== */

.team-sec {
  --dir: 1;                                      /* 1 = LTR, -1 = RTL (set in rtl.css) */
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);        /* Strictly equal top and bottom padding */
  background: url("../images/Professional Mattress Cleaning Serenity.png") center / cover fixed;
  border-top: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

.team-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--surface);
  opacity: 0.88;
  pointer-events: none;
}

@media (max-width: 767px) {
  .team-sec { background-attachment: scroll; }
}

/* Ambient Floating Bubbles */
.team-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.team-bubble {
  position: absolute;
  width: var(--bs);
  height: var(--bs);
  left: var(--bx);
  top: var(--by);
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at 30% 28%, var(--glow) 0, var(--glow-2) 48%, transparent 72%);
  box-shadow: inset 0 0 10px var(--glow), 0 0 16px var(--glow-2);
  animation: teamFloat var(--bt) ease-in-out var(--bd) infinite alternate;
}

.team-bubble::after {
  content: "";
  position: absolute;
  top: 18%;
  inset-inline-start: 20%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.75;
}

@keyframes teamFloat {
  0%   { transform: translateY(0) scale(0.96); opacity: 0.45; }
  50%  { opacity: 0.85; }
  100% { transform: translateY(-34px) scale(1.08); opacity: 0.55; }
}

.team-container {
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 48px);
}

/* Header */
.team-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;                          /* 13px minimum */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-eyebrow .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.team-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.team-lead {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); /* 15px - 17px */
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Main Asymmetric Stage: Left Spotlight vs Right 2x2 Matrix */
.team-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: stretch;
}

/* ---------- Left Spotlight Card ---------- */
.team-spotlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px var(--glow-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow-2);
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.team-spotlight:hover .team-photo img {
  transform: scale(1.04);
}

.team-spotlight-body {
  padding: clamp(22px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px */
  font-weight: 600;
  color: var(--accent);
}

.team-badge .icon {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.team-spotlight-name {
  font-family: var(--font-head);
  font-size: 1.25rem;                            /* 20px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.team-spotlight-quote {
  font-family: var(--font-body);
  font-size: 0.9375rem;                          /* 15px */
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 14px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8125rem;                          /* 13px */
  font-weight: 600;
  color: var(--text);
}

/* ---------- Right 2x2 Standards Bento Matrix ---------- */
.team-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px var(--glow-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px var(--glow-2);
  border-color: var(--secondary);
}

.team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-code {
  font-family: var(--font-head);
  font-size: 0.8125rem;                          /* 13px */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.team-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.team-card-icon .icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.team-card-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;                          /* 17px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.team-card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;                           /* 14px */
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   SPLIT REVEAL & STAGGERED ENTRANCE ANIMATIONS (when JavaScript is enabled)
   ========================================================================== */

/* Curtain panels over the spotlight photo */
html.js .team-sec .team-photo::before,
html.js .team-sec .team-photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: var(--accent);
  transition: transform 0.85s var(--ease);
}

html.js .team-sec .team-photo::before { inset-inline-start: 0; }
html.js .team-sec .team-photo::after { inset-inline-end: 0; }

html.js .team-sec.is-in .team-photo::before {
  transform: translateX(calc(-101% * var(--dir, 1)));
}

html.js .team-sec.is-in .team-photo::after {
  transform: translateX(calc(101% * var(--dir, 1)));
}

/* Header rise-in */
html.js .team-sec [data-team-header]:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}

html.js .team-sec.is-in [data-team-header] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Left Spotlight slides in from LEFT */
html.js .team-sec [data-team-spotlight]:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(-36px * var(--dir, 1)));
}

html.js .team-sec.is-in [data-team-spotlight] {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease) 0.1s, transform 0.85s var(--ease) 0.1s;
}

/* Right Matrix Cards slide in with staggered pop-up */
html.js .team-sec [data-team-card]:not(.is-in) {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
}

html.js .team-sec.is-in [data-team-card] {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease) calc(0.15s + var(--card-i, 0) * 0.1s),
              transform 0.75s var(--ease) calc(0.15s + var(--card-i, 0) * 0.1s);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991px) {
  .team-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 639px) {
  .team-matrix {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}


/* ==========================================================================
   15g. ABOUT PAGE – SECTION 6: WHY CUSTOMERS CHOOSE US
   Diamond-cross CSS Grid — central hub surrounded by four numbered
   reason cards at cardinal positions (top, left, right, bottom).
   ========================================================================== */

/* --- Section wrapper --- */
.why-sec {
  display: none !important;
  --dir: 1;
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Container centres the content */
.why-container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* --- Section header --- */
.why-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.why-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.why-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 12px;
}

.why-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- Diamond-cross grid --- */
.why-diamond {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    ".       top     .     "
    "left    hub     right "
    ".       bottom  .     ";
  gap: clamp(16px, 2.5vw, 24px);
  align-items: center;
  justify-items: center;
}

/* --- Card placement --- */
.why-card--top    { grid-area: top; }
.why-card--left   { grid-area: left; }
.why-card--right  { grid-area: right; }
.why-card--bottom { grid-area: bottom; }

/* --- Reason cards --- */
.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  text-align: center;
  width: 100%;
  max-width: 280px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--glow);
}

/* Numbered badge */
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Card icon */
.why-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.why-card-icon .icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
}

/* Card typography */
.why-card-title {
  font-family: var(--font-head);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.why-card-desc {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Central hub --- */
.why-hub {
  grid-area: hub;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

/* Hub photo with split reveal */
.why-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.why-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Split reveal curtain panels (accent overlay slides apart) */
.why-photo::before,
.why-photo::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50.5%;
  height: 100%;
  background: var(--accent);
  z-index: 2;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1) 0.2s;
}

.why-photo::before { left: 0; }
.why-photo::after  { right: 0; }

/* Hub stat badge */
.why-hub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-hub-number {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.why-hub-label {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--muted);
}

/* --- Bubbles (ambient floating + mouse trail) --- */
.why-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.why-bubble {
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  width: var(--bs, 16px);
  height: var(--bs, 16px);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  animation: whyFloat var(--bt, 5s) ease-in-out infinite;
  animation-delay: var(--bd, 0s);
  pointer-events: none;
}

@keyframes whyFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0.12; }
  50%  { transform: translateY(-30px) scale(1.15); opacity: 0.18; }
  100% { transform: translateY(0) scale(1); opacity: 0; }
}

/* --- Scroll-entry animations --- */

/* Split reveal: curtains separate on scroll-in */
html.js .why-sec.is-in .why-photo::before {
  transform: translateX(calc(-101% * var(--dir, 1)));
}

html.js .why-sec.is-in .why-photo::after {
  transform: translateX(calc(101% * var(--dir, 1)));
}

/* Header rise-in */
html.js .why-sec [data-why-header]:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}

html.js .why-sec.is-in [data-why-header] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Hub rises in */
html.js .why-sec [data-why-hub]:not(.is-in) {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
}

html.js .why-sec.is-in [data-why-hub] {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease) 0.1s, transform 0.85s var(--ease) 0.1s;
}

/* Top card slides down from above */
html.js .why-sec .why-card--top:not(.is-in) {
  opacity: 0;
  transform: translateY(calc(-28px * var(--dir, 1)));
}

/* Left card slides from the left */
html.js .why-sec .why-card--left:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(-36px * var(--dir, 1)));
}

/* Right card slides from the right */
html.js .why-sec .why-card--right:not(.is-in) {
  opacity: 0;
  transform: translateX(calc(36px * var(--dir, 1)));
}

/* Bottom card slides up from below */
html.js .why-sec .why-card--bottom:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

/* All cards transition when is-in */
html.js .why-sec.is-in [data-why-card] {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease) calc(0.15s + var(--card-i, 0) * 0.1s),
              transform 0.75s var(--ease) calc(0.15s + var(--card-i, 0) * 0.1s);
}

/* --- Responsive breakpoints --- */

/* Tablet: collapse diamond into 2-column grid */
@media (max-width: 991px) {
  .why-diamond {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hub    hub   "
      "top    left  "
      "right  bottom";
    gap: clamp(16px, 3vw, 24px);
  }

  .why-card {
    max-width: none;
  }

  .why-hub {
    max-width: 360px;
    justify-self: center;
  }
}

/* Mobile: single column stack */
@media (max-width: 639px) {
  .why-diamond {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hub"
      "top"
      "left"
      "right"
      "bottom";
    gap: 16px;
  }

  .why-hub {
    max-width: 300px;
  }
}


/* ==========================================================================
   16. REDUCED MOTION – respect the visitor's system setting
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* Endless / decorative animations are switched off completely */
  .book-bubble,
  .contact-bubble,
  .contact-pulse-orb,
  .contact-spec-tag,
  .cov-bubble,
  .cov-radar-ring,
  .svc-slide.is-active,
  .svc-panel,
  .mite-frame img,
  .mite-frame::after,
  .mite-icon::after,
  html.js .reveal.is-in,
  html.js .is-in .mite-tick .icon,
  html.js .is-in .mite-steps li,
  .san-arch,
  .san-item.is-active .san-node::after,
  .san-track,
  .fresh-layer img,
  .fresh-air i,
  .fresh-knob::after,
  .fresh-spark,
  .fresh-wisp,
  html.js .is-in .fresh-icon { animation: none !important; }
  .svc-tab.is-active .svc-tab-bar i { animation: none; width: 100%; }
  .mite-frame::after { display: none; }
  .stain-track,
  .stain-frame img,
  .stain-dot::before,
  html.js .stain-case.is-active,
  html.js .is-in .stain-node,
  html.js .is-in .stain-steps li::before { animation: none !important; }
  /* Ticker becomes a calm wrapped list; the duplicate group is hidden */
  .stain-track { width: auto; }
  .stain-group { flex-wrap: wrap; justify-content: center; padding-inline-end: 0; }
  .stain-group[aria-hidden="true"] { display: none; }
  html.js .stain-node { border-color: var(--accent); background: var(--accent); color: var(--bg); }
  html.js .stain-steps li:not(:last-child)::before { width: calc(100% - 56px); }
  /* Show everything straight away */
  html.js .reveal,
  html.js .mite-steps li { opacity: 1; }
  html.js .mite-tick .icon { stroke-dashoffset: 0; }

  /* Section 4: no travelling light, no autoplay; the band becomes a calm wrapped list */
  .san-item.is-active::after { animation: none; }
  .san-marquee { -webkit-mask-image: none; mask-image: none; }
  .san-track { width: auto; }
  .san-group { flex-wrap: wrap; justify-content: center; padding-inline-end: 0; }
  .san-group[aria-hidden="true"] { display: none; }

  /* Home 1 banner: photo stays still, no bubbles, no shimmer or pulse; panel shows straight away */
  .home-bg img,
  .home-shine,
  .home-btn--solid,
  .home-eyebrow .icon,
  .home-panel > * { animation: none !important; }
  .home-bubbles { display: none; }

  /* Home 1 Section 2: no dust, bubbles, scanner, crawling, dripping or ring pulses; the first layer is shown as picked */
  .hid-fx,
  .hid-burst { display: none; }
  .hid-scan,
  .hid-crawl,
  .hid-drip,
  .hid-float,
  .hid-pulse,
  .hid-pin { animation: none !important; }
  .hid-item[aria-pressed="true"] .hid-bar i { animation: none; width: 100%; }

  /* Home 1 Section 3: no zoom, no blinking dot, no bubbles; the stage is shown complete (index.js also turns pinning off) */
  .cln-photo.is-active,
  .cln-dot { animation: none !important; }
  .cln-bubbles { display: none; }

  /* Home 1 Section 4: bubbles stop floating and rippling, background bubbles hidden, everything is simply shown */
  .cm-bubble,
  .cm-bubble::after,
  .cm-bubble.is-pop { animation: none !important; }
  .cm-fx { display: none; }
  .cm-sec.is-ready .cm-cell { opacity: 1; transform: none; }

  /* Home 1 Section 5: no bubbles; the cards are shown as the finished grid (index.js also turns pinning off) */
  .cp-fx { display: none; }

  /* Section 5: no drifting, twinkling or rising; sparkles stay visible, wisps are hidden */
  .fresh-wisp { display: none; }
  .fresh-spark { opacity: 0.9; }

  /* About Section 2 Our Brand Story: no split panels or animations */
  .story-sec [data-story-visual],
  .story-sec [data-story-content],
  .story-sec [data-story-card] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .story-sec .story-photo::before,
  .story-sec .story-photo::after,
  .story-sec .story-subphoto::before,
  .story-sec .story-subphoto::after { display: none !important; }

  /* About Section 3 Mission, Vision & Values: no animations */
  .mv-sec [data-mv-header],
  .mv-sec .mv-card--left,
  .mv-sec .mv-card--right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mv-sec .mv-photo::before,
  .mv-sec .mv-photo::after { display: none !important; }
  .mv-details { max-height: none !important; opacity: 1 !important; transform: none !important; padding-top: 14px !important; }
  .mv-hint { display: none !important; }

  /* About Section 4 Cleaning Expertise: no animations */
  .exp-sec [data-exp-left],
  .exp-sec [data-exp-right],
  .exp-sec [data-exp-center] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .exp-sec .exp-photo::before,
  .exp-sec .exp-photo::after { display: none !important; }

  /* About Section 5 Team & Standards: no animations or bubbles */
  .team-sec [data-team-header],
  .team-sec [data-team-spotlight],
  .team-sec [data-team-card] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .team-sec .team-photo::before,
  .team-sec .team-photo::after { display: none !important; }
  .team-bubbles { display: none !important; }

  /* About Section 6 Why Customers Choose Us: no animations or bubbles */
  .why-sec [data-why-header],
  .why-sec [data-why-hub],
  .why-sec [data-why-card] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .why-sec .why-photo::before,
  .why-sec .why-photo::after { display: none !important; }
  .why-bubbles { display: none !important; }
}

/* Sitewide content type scale: keep the shared site header and primary page
   titles intact while standardising supporting content and subheadings. */
:is(main, .site-footer) :is(h3, h4, h5, h6, p, li, figcaption, label, input, select, textarea, button, a) {
  font-size: 14px !important;
}

.about-hero .about-copy .about-lead {
  font-size: 17px !important;
}

.home-one-page main p {
  font-size: 17px !important;
}

.home-one-page .cln-ticks li {
  font-size: 16px !important;
}

.home-one-page .hid-item :is(.hid-where, .hid-item-text) {
  font-size: 17px !important;
}

.story-header .story-lead,
.story-card--stat .story-metric-desc,
.mv-sec .mv-lead,
.mv-sec .mv-card-summary,
.mv-sec .mv-list strong,
.mv-sec .mv-list span {
  font-size: 17px !important;
}

.team-sec :is(.team-eyebrow, .team-lead, .team-badge, .team-spotlight-name, .team-spotlight-quote, .team-pill, .team-code, .team-card-title, .team-card-desc) {
  font-size: 17px !important;
}

.exp-sec :is(.exp-num, .exp-card-title, .exp-card-desc) {
  font-size: 17px !important;
}

.services-page p {
  font-size: 17px !important;
}

.services-page h2 {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important;
}

.pricing-page p {
  font-size: 17px !important;
}

.pricing-page h2 {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important;
}

.pricing-page .pk-feats li,
.pricing-page .pk-body .svc-btn {
  font-size: 17px !important;
}

.home-two-page p {
  font-size: 17px !important;
}

.home-two-page h2 {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important;
}

/* Keep the Home 1 plan checklist visibly readable over broad page-level type rules. */
.home-one-page .pp-sec .pp-feats li {
  font-size: 20px !important;
}

.home-two-page .cta-panel {
  justify-items: start;
  text-align: left;
}

.home-two-page .cta-list {
  justify-self: start;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.home-two-page .cta-actions {
  justify-content: flex-start;
  width: 100%;
}

.home-two-page .cc-sec {
  display: none;
}

.home-two-page > section:not(.h2-hero) {
  padding-block: 80px !important;
}

.contact-page main p,
.contact-page .cc-sec p {
  font-size: 17px !important;
}

.contact-page main h2,
.contact-page .cc-sec h2 {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important;
}

.site-footer :is(h3, p, li, a, small, input, button) {
  font-size: 17px !important;
}

.about-cta p { font-size: 17px !important; }
.about-cta h2 { font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important; }

.back-to-top {
  position: fixed;
  z-index: 1200;
  inset-inline-end: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 24px var(--glow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { box-shadow: 0 0 0 4px var(--glow), 0 12px 28px var(--glow-2); }

.story-title,
.mv-title,
.exp-center-title,
.team-title,
.why-title {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem) !important;
}
/* ==========================================================================
   13.1. PRICING PAGE – SECTION 3: MATTRESS SIZE PRICING  ("the size reel")
   Layout: one normal panel with four size buttons that update the photo and prices.
     heading -> stitched thread with 4 knots -> photo window (caption BELOW it) -> price board + price-tag button.
   - Clicking a size moves the "needle" along the thread; the bed photos crossfade between sizes,
     and the three price reels (rolling digits) spin to the new numbers.
   - Nothing is written on a photo, nothing slides sideways, no cards are stacked, no SVG is used.
   - index.js reads the table at the end of the section and sets --p on the thread while crossfading photos.
   ========================================================================== */
.szr {
  --szr-num: clamp(1.375rem, 0.9rem + 1.9vw, 2.625rem);     /* size of the price digits                               */
  padding-block: 80px;                                      /* consistent section spacing (same top and bottom)       */
  background: var(--bg);
}

/* ---------- 13.1a. Size picker panel ---------- */
.szr-track { height: auto; }
.szr-stage {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(18px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 56px -28px var(--glow-2);
}

/* ---------- 13.1b. Heading ---------- */
.szr-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.szr-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.szr-eyebrow i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 14px 3px var(--glow);
  animation: szrBlink 2.6s ease-in-out infinite;
}
@keyframes szrBlink { 0%, 100% { box-shadow: 0 0 8px 1px var(--glow); } 50% { box-shadow: 0 0 20px 6px var(--glow); } }
.szr-head h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.szr-head h2 .svc-accent { display: inline-block; }                    /* "See your price." never splits across two lines */
.szr-lead { max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* ---------- 13.1c. Thread: the rail is a quiet line, the fill is a dashed "stitch" the needle pulls along ---------- */
.szr-thread { position: relative; }
.szr-rail {                                                 /* runs from the centre of the first knot to the centre of the last */
  position: absolute;
  top: 13px;
  inset-inline: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}
.szr-fill {                                                 /* width follows the selected size */
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(var(--p, 0) * 100%);
  background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 14px);
}
.szr-needle {                                               /* the needle at the head of the thread, with its eye */
  position: absolute;
  inset-inline-end: -12px;
  top: 50%;
  width: 22px;
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--glow);
}
.szr-needle::before {
  content: "";
  position: absolute;
  inset-inline-end: 3px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--surface);
}
.szr-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.szr-node {
  width: 100%;
  padding: 4px 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.szr-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: var(--surface);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.szr-node:hover { color: var(--text); }
.szr-node:hover .szr-dot { box-shadow: 0 0 0 4px var(--glow); }
.szr-node.is-reached .szr-dot { background: var(--accent); border-color: var(--accent); }      /* the thread has reached this knot */
.szr-node.is-active { color: var(--text); }
.szr-node.is-active .szr-dot { box-shadow: 0 0 0 5px var(--glow); animation: szrPulse 2.2s ease-in-out infinite; }
@keyframes szrPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--glow); } 50% { box-shadow: 0 0 0 8px var(--glow-2); } }

/* ---------- 13.1d. Photo window (the caption sits BELOW it, never on it) ---------- */
.szr-figure { flex: none; width: 100%; min-height: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.szr-frame {
  position: relative;
  flex: none;
  height: clamp(220px, 34vw, 440px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}
.szr-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 60%);
  opacity: 1;
  user-select: none;
}
/* Later photos start hidden; index.js crossfades them in as the size changes. */
.szr-layer + .szr-layer { opacity: 0; }
/* Quilt-stitch border inside the frame (decorative, no text sits here) */
.szr-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 2px dashed var(--bg);
  border-radius: 12px;
  pointer-events: none;
}
/* The glowing edge of the bubble that opens the next photo */
.szr-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  translate: -50% -50%;
  box-shadow: 0 0 26px 6px var(--glow), inset 0 0 26px 4px var(--glow);
  pointer-events: none;
}
/* Foam bubbles drifting up through the photo */
.szr-bub {
  position: absolute;
  bottom: -40px;
  inset-inline-start: var(--x);
  z-index: 2;
  width: var(--s);
  height: var(--s);
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--glow);
  box-shadow: inset 0 0 8px var(--glow), 0 0 12px var(--glow);
  opacity: 0;
  pointer-events: none;
  animation: szrRise var(--t, 9s) linear var(--dl, 0s) infinite;
}
@keyframes szrRise {
  0%   { bottom: -40px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { bottom: 105%; opacity: 0; }
}

/* Caption under the photo: size name, dimensions and one short line (swaps with a soft rise whenever the size changes) */
.szr-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.szr-name { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.15; }
.szr-dim { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 1rem; color: var(--muted); }
.szr-dim b { font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; color: var(--accent); }
.szr-fit { flex: 1 1 260px; min-width: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.szr-time { color: var(--muted); }
.szr-time::before { content: "\00B7"; margin-inline: 6px 8px; }
.szr-caption.is-swap > * { animation: szrIn 0.6s var(--ease) backwards; }
.szr-caption.is-swap > :nth-child(2) { animation-delay: 70ms; }
.szr-caption.is-swap > :nth-child(3) { animation-delay: 140ms; }
@keyframes szrIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 13.1e. Price board: three reels of rolling digits, then the price-tag button ---------- */
.szr-foot { display: flex; align-items: stretch; gap: 16px; }
.szr-board {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}
.szr-cell { padding: 10px 14px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.szr-cell + .szr-cell { border-inline-start: 2px dashed var(--border); }     /* stitched dividers, like the price lines in Section 2 */
.szr-cell-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }   /* 13px */
.szr-l-short { display: none; }

/* One reel = rupee sign + four digit wheels. Each wheel is a window onto a tall strip of numbers. */
.szr-reel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-head);
  font-size: var(--szr-num);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.szr-cur { margin-inline-end: 2px; font-size: max(0.875rem, 0.6em); }          /* never below 14px */
.szr-comma { transition: opacity 0.3s var(--ease); }
.szr-comma.is-off { opacity: 0; }                                              /* no thousands yet (prices under 1,000) */
.szr-wheel {
  --wh: 1.28em;                                                                /* height of one digit window */
  position: relative;
  box-sizing: content-box;
  width: 0.72em;
  height: var(--wh);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.16em;
  background: var(--surface);
}
.szr-wheel::before {                                                           /* soft fade at the top and bottom edge, so the digits look like they curve away */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(var(--surface), transparent 28%, transparent 72%, var(--surface));
  pointer-events: none;
}
.szr-wheel::after {                                                            /* the hairline crease across the middle, like a flip board */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
.szr-strip {
  display: block;
  transform: translateY(calc(var(--i, 0) * var(--wh) * -1));                    /* index.js sets --i (which face of the strip shows) */
  transition: transform 1.15s cubic-bezier(0.22, 0.9, 0.24, 1) var(--wd, 0ms);  /* --wd staggers the wheels so they stop one after another */
  will-change: transform;
}
.szr-strip span { display: block; height: var(--wh); line-height: var(--wh); text-align: center; }

/* Price-tag button: a punched hole, a stitched edge that runs on hover, and an arrow made of two CSS lines */
.szr-tag {
  position: relative;
  flex: 0 0 330px;                                          /* fixed width: the board next to it never shifts when the size changes */
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  padding-inline-start: 58px;                               /* room for the hole */
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg);
  transform-origin: 28px 50%;                               /* swings from the hole */
  transition: box-shadow 0.25s var(--ease);
}
.szr-tag-hole {
  position: absolute;
  inset-inline-start: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 2px 3px var(--glow-2);
}
.szr-tag-text { display: grid; gap: 2px; }
.szr-tag small { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; }   /* 13px */
.szr-tag b { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; line-height: 1.2; }
.szr-tag-arrow {
  position: relative;
  flex: none;
  width: 24px;
  height: 2px;
  margin-inline-start: auto;
  background: currentColor;
  transition: translate 0.25s var(--ease);
}
.szr-tag-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.szr-tag:hover,
.szr-tag:focus-visible {
  box-shadow: 0 0 0 4px var(--glow), 0 14px 26px -14px var(--glow-2);
  animation: szrSwing 0.9s ease-in-out;
}
.szr-tag:hover .szr-tag-arrow,
.szr-tag:focus-visible .szr-tag-arrow { translate: 5px 0; }
@keyframes szrSwing { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 55% { transform: rotate(3deg); } 80% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }

/* ---------- 13.1f. Small print + the plain price table (only visible without JavaScript) ---------- */
.szr-note { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 60ch; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.szr-fallback { display: none; }
html.js .szr-fallback { display: none; }
html:not(.js) .szr-fallback { display: block; }
html:not(.js) .szr-track { display: none; }
.szr-fb-title { margin-bottom: 20px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 600; text-align: center; }
.szr-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.szr-table caption { padding-bottom: 12px; font-size: 0.9375rem; color: var(--muted); }
.szr-table th,
.szr-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: start; }
.szr-table thead th { background: var(--surface); font-weight: 600; }

/* ---------- 13.1g. Responsive ---------- */
/* Below the desktop width: the price tag drops under the board and fills the width,
   and "About 45 min on site" gets its own line under the sentence */
@media (max-width: 1099px) {
  .szr-foot { flex-direction: column; }
  .szr-tag { flex: none; width: 100%; }
  .szr-time { display: block; }
  .szr-time::before { display: none; }
}
/* Phones: shorter labels, tighter board, name + size share a line, one-line text under them */
@media (max-width: 599px) {
  .szr { padding-block: 56px; }
  .szr-stage { border-radius: 18px; }
  .szr-frame { border-radius: 14px; }
  .szr-l-long { display: none; }
  .szr-l-short { display: inline; }
  .szr-cell { padding: 8px 4px; }
  .szr-fit { flex-basis: 100%; }
  /* slimmer reels so three prices fit side by side on a phone */
  .szr { --szr-num: 1.25rem; }
  .szr-reel { gap: 2px; }
  .szr-wheel { width: 0.66em; }
}
/* Narrow phones (360px and below): a touch smaller still, so no digit touches a divider */
@media (max-width: 400px) {
  .szr { --szr-num: 1.125rem; }
}
/* Short screens (laptops, phones on their side): give the photo more room */
@media (max-height: 820px) {
  .szr-lead { display: none; }
}
@media (max-height: 700px) {
  .szr-eyebrow { display: none; }
}
@media (max-height: 660px) {
  .szr-head h2 { font-size: 1.25rem; }
}
/* Very short screens: keep the photo compact. */
@media (max-height: 540px), (max-width: 340px) {
  .szr-frame { height: clamp(180px, 45vw, 260px); }
}
/* Extra-small phones (320px): slightly smaller digits so each price fits its cell */
@media (max-width: 340px) {
  .szr { --szr-num: 1rem; }
}

/* Calm version for visitors who prefer less motion (sizes switch without the bubble ring or spinning digits) */
@media (prefers-reduced-motion: reduce) {
  .szr-eyebrow i,
  .szr-bub,
  .szr-node.is-active .szr-dot,
  .szr-caption.is-swap > *,
  .szr-tag:hover,
  .szr-tag:focus-visible { animation: none !important; }
  .szr-strip { transition: none !important; }
  .szr-bub { opacity: 0; }
}


/* ==========================================================================
   12.2 PRICING PAGE – SECTION 4: ADD-ON SERVICES ("build your bill")
   Layout: heading  ->  two columns: six toggle cards (start)  |  live receipt (end, sticky).
   - Shapes: square corners with a small radius, a folded "dog-ear" corner on each card, a rubber stamp and a torn
     zig-zag receipt edge. No bento, no expanding panels, no arches, pills or circles.
   - Text sizes and heading styles match the other pricing sections. Gaps are 24px, card padding is 24px on every side.
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.ao {
  padding-block: 80px;                    /* same top and bottom, like the other pricing sections */
  background: var(--surface);
  scroll-margin-top: var(--nav-h);        /* #add-ons lands below the sticky navbar */
  overflow-x: clip;
}

/* ---------- Heading (same look as the packages heading) ---------- */
.ao-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.ao-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.ao-eyebrow i {                           /* small square marker that turns */
  width: 12px;
  height: 12px;
  border: 2px solid var(--secondary);
  background: var(--glow);
  animation: aoSpin 5s linear infinite;
}
@keyframes aoSpin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
.ao-head h2 { font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.ao-lead { max-width: 58ch; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }

/* ---------- Two columns ---------- */
.ao-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);   /* cards | receipt */
  gap: 40px;
  align-items: start;
}
.ao-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ao-item { display: grid; perspective: 900px; }

/* ---------- Add-on card ---------- */
.ao-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  padding: 24px;                          /* same padding on every side */
  text-align: start;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ao-card::before {                        /* the folded corner (dog-ear): page colour + fold colour */
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(225deg, var(--surface) 50%, var(--border) 50%);
  transition: background 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.ao-card::after {                         /* one soft shine sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, var(--glow) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ao-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ao-card:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.ao-card:hover::before { width: 36px; height: 36px; }
.ao-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ao-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline-end: 24px; }   /* keeps clear of the fold */
.ao-ico {                                 /* square icon badge */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  transition: transform 0.6s var(--ease);
}
.ao-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ao-card:hover .ao-ico { transform: rotate(-8deg) scale(1.08); }
.ao-price { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; color: var(--text); }
.ao-name { font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.ao-desc { font-size: 1rem; line-height: 1.65; color: var(--muted); }

/* Bottom row: status text (start) + stamp (end), side by side, never on top of each other */
.ao-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-top: 4px; padding-top: 16px; border-top: 2px dashed var(--border); }
.ao-state { font-size: 0.9375rem; font-weight: 600; color: var(--accent); }
.ao-on { display: none; }
.ao-stamp {                               /* rubber stamp: slams in when the card is selected */
  padding: 4px 12px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: rotate(-8deg) scale(1.8);
}

/* Selected state */
.ao-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ao-card[aria-pressed="true"]::before { background: linear-gradient(225deg, var(--surface) 50%, var(--accent) 50%); }
.ao-card[aria-pressed="true"] .ao-off { display: none; }
.ao-card[aria-pressed="true"] .ao-on { display: inline; }
.ao-card[aria-pressed="true"] .ao-stamp { opacity: 1; transform: rotate(-8deg); animation: aoStamp 0.5s var(--ease); }
.ao-card[aria-pressed="true"] .ao-ico { animation: aoFlip 0.7s var(--ease); }
@keyframes aoStamp {
  0%   { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  60%  { opacity: 1; transform: rotate(-8deg) scale(0.9); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes aoFlip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* Square confetti (made by index.js) when a card is added */
.ao-bit {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: var(--accent);
  pointer-events: none;
  animation: aoBit 0.8s var(--ease) forwards;
}
.ao-bit:nth-child(even) { background: var(--secondary); }
@keyframes aoBit {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rt)); }
}

/* ---------- Entrance: cards are "dealt" onto the table one by one (only when scripts run) ---------- */
html.js .ao-item:not(.is-in) { opacity: 0; }
html.js .ao-item.is-in { animation: aoDeal 0.9s var(--ease) calc(var(--n, 0) * 110ms) backwards; }
@keyframes aoDeal {
  from { opacity: 0; transform: translate(calc((var(--n) - 2.5) * 24px), -60px) rotate(calc((var(--n) - 2.5) * 4deg)) rotateX(40deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Receipt ---------- */
.ao-receipt-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 24px);         /* stays in view while you browse the cards */
  filter: drop-shadow(0 0 1px var(--accent)) drop-shadow(0 14px 18px var(--glow));   /* outline + soft shadow follow the torn edge */
}
.ao-receipt {
  display: grid;
  gap: 16px;
  padding: 24px 24px 40px;                /* extra bottom room for the torn edge */
  background: var(--bg);
  color: var(--text);
  /* torn zig-zag bottom edge */
  -webkit-mask: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) 50% / 20px 100%;
          mask: conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) 50% / 20px 100%;
}
.ao-r-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px dashed var(--border); }
.ao-r-head h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.ao-count { font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.ao-empty { font-size: 1rem; line-height: 1.65; color: var(--muted); }
.ao-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ao-lines:empty { display: none; }
.ao-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 1rem; line-height: 1.5; animation: aoLine 0.5s var(--ease); }
.ao-line span { min-width: 0; }
.ao-line b { flex: none; font-weight: 600; }
.ao-line.is-out { animation: aoLineOut 0.3s var(--ease) forwards; }
@keyframes aoLine    { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes aoLineOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(24px); } }
.ao-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 16px; border-block: 2px dashed var(--border); font-size: 1rem; font-weight: 600; color: var(--muted); }
.ao-total b { font-family: var(--font-head); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 600; color: var(--text); }
.ao-note { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.ao-btn {                                 /* square-cornered button, same size and weight as the site buttons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ao-btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.ao-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow); }
.ao-btn:hover .icon { transform: translateX(4px); }
.ao-clear { justify-self: center; background: none; border: 0; padding: 4px 8px; font-size: 0.9375rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ao-clear[hidden] { display: none; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 959px) {
  .ao-layout { grid-template-columns: minmax(0, 1fr); }              /* receipt moves under the cards */
  .ao-receipt-wrap { position: static; }
}
@media (max-width: 599px) {
  .ao-list { grid-template-columns: minmax(0, 1fr); }                /* one card per row */
}

/* ---------- Reduced motion: no dealing, spinning, confetti or sweeping ---------- */
@media (prefers-reduced-motion: reduce) {
  .ao-eyebrow i,
  html.js .ao-item.is-in,
  .ao-card[aria-pressed="true"] .ao-stamp,
  .ao-card[aria-pressed="true"] .ao-ico,
  .ao-line { animation: none !important; }
  html.js .ao-item:not(.is-in) { opacity: 1; }
  .ao-card:hover::after { transition: none; }
  .ao-bit { display: none; }
}


/* ==========================================================================
   12.3 PRICING PAGE – SECTION 5: WHAT'S INCLUDED ("the contents page")
   Layout: heading  ->  photo frame (start)  |  numbered contents list (end).
   - Point at / tap a row: the photo wipes over to that step with a scan line, the caption changes. It also flips by itself.
   - Photos are real images. No SVG (ticks are drawn with CSS borders). Square corners only: no bento, panels, arches, pills or circles.
   - Text sizes and heading styles match the other pricing sections. Row padding is 20px on every side, columns are 40px apart.
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.wi {
  padding-block: 80px;                    /* same top and bottom, like the other pricing sections */
  background: var(--bg);
  scroll-margin-top: var(--nav-h);        /* #whats-included lands below the sticky navbar */
  overflow-x: clip;
}

/* ---------- Heading (same look as the packages heading) ---------- */
.wi-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.wi-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.wi-eyebrow i { width: 12px; height: 12px; border: 2px solid var(--secondary); background: var(--glow); animation: aoSpin 5s linear infinite; }   /* square marker (aoSpin is defined in section 4) */
.wi-head h2 { font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.wi-lead { max-width: 58ch; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }

/* ---------- Two columns ---------- */
.wi-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

/* ---------- Photo frame ---------- */
.wi-fig { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; margin: 0; }
.wi-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.wi-img {                                 /* all photos are stacked; only the active one (and the one leaving) show */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}
.wi-img.is-prev { opacity: 1; z-index: 1; }
.wi-img.is-on { opacity: 1; z-index: 2; animation: wiWipe 0.9s var(--ease), wiDrift 12s ease-in-out infinite alternate; }
@keyframes wiWipe  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }   /* new photo rises over the old one */
@keyframes wiDrift { from { transform: scale(1); } to { transform: scale(1.08); } }               /* slow zoom while it is on show */
.wi-frame::after {                        /* scan line that sweeps up with every change */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 4px var(--glow-2);
  opacity: 0;
  pointer-events: none;
}
.wi-frame.is-swap::after { animation: wiScan 0.9s var(--ease); }
@keyframes wiScan {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(calc(-1 * var(--wi-h, 480px))); }
}
.wi-fig figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.wi-fig figcaption b { color: var(--accent); font-weight: 700; }
.wi-fig figcaption span:last-child { text-align: end; color: var(--text); font-weight: 600; }
.wi-timer { display: block; height: 4px; background: var(--border); overflow: hidden; }       /* timer bar: fills while a step is on show */
.wi-timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .wi-timer i { transform-origin: right; }
.wi-timer i.is-run { animation: wiTimer var(--wi-time, 4.5s) linear forwards; }
@keyframes wiTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Contents list ---------- */
.wi-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.wi-li { border-bottom: 1px solid var(--border); }
.wi-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;     /* number | text | package tag */
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px;                          /* same padding on every side */
  text-align: start;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.wi-row::before {                         /* accent bar that grows down the start edge of the active row */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.wi-row:hover { transform: translateX(6px); }
html[dir="rtl"] .wi-row:hover { transform: translateX(-6px); }
.wi-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wi-row.is-on { background: var(--surface); }
.wi-row.is-on::before { transform: scaleY(1); }
.wi-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--muted); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.wi-row.is-on .wi-num { color: var(--accent); transform: scale(1.12); transform-origin: left; }
.wi-text { display: grid; gap: 4px; min-width: 0; }
.wi-name { font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.wi-desc { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.wi-tag {                                 /* which package it starts in */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.wi-row.is-on .wi-tag { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wi-tick {                                /* tick drawn with borders (no SVG) */
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Entrance (only when scripts run): rows slide in one by one, the photo frame wipes open ---------- */
html.js .wi-li:not(.is-in) { opacity: 0; }
html.js .wi-li.is-in { animation: wiRow 0.8s var(--ease) calc(var(--n, 0) * 100ms) backwards; }
@keyframes wiRow { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .wi-li.is-in { animation-name: wiRowRtl; }
@keyframes wiRowRtl { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
html.js .wi-fig:not(.is-in) .wi-frame { clip-path: inset(0 0 100% 0); }
html.js .wi-fig.is-in .wi-frame { animation: wiOpen 1.1s var(--ease) backwards; }
@keyframes wiOpen { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 899px) {
  .wi-layout { grid-template-columns: minmax(0, 1fr); }               /* photo on top, list below */
  .wi-fig { position: static; }
  .wi-frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) {
  .wi-row { grid-template-columns: 40px minmax(0, 1fr); }            /* tag drops under the text */
  .wi-tag { grid-column: 2; justify-self: start; }
  .wi-fig figcaption { flex-direction: column; gap: 4px; }
  .wi-fig figcaption span:last-child { text-align: start; }
}

/* ---------- Reduced motion: no wipes, drifting, scan line, sliding rows or timer ---------- */
@media (prefers-reduced-motion: reduce) {
  .wi-eyebrow i,
  .wi-img.is-on,
  .wi-frame.is-swap::after,
  html.js .wi-li.is-in,
  html.js .wi-fig.is-in .wi-frame,
  .wi-timer i.is-run { animation: none !important; }
  html.js .wi-li:not(.is-in) { opacity: 1; }
  html.js .wi-fig:not(.is-in) .wi-frame { clip-path: none; }
  .wi-row, .wi-row:hover { transform: none; transition: none; }
}


/* ==========================================================================
   12.4 PRICING PAGE – SECTION 6: FAQs & PRICING TRANSPARENCY ("flip cards + price ticket")
   Layout: heading  ->  four-cell price ticket  ->  control row  ->  3 x 2 grid of flip cards.
   - A flip card shows the question; tap and it turns over (3D) to show the answer on its back. Nothing expands.
   - No SVG, no bento, no panels, no arches, pills or circles (square corners, CSS-drawn arrows).
   - Text sizes and heading styles match the other pricing sections. Gaps are 24px; card padding is 24px on every side.
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.fq {
  padding-block: 80px;                    /* same top and bottom, like the other pricing sections */
  background: var(--surface);
  scroll-margin-top: var(--nav-h);        /* #faqs lands below the sticky navbar */
  overflow-x: clip;
}

/* ---------- Heading (same look as the packages heading) ---------- */
.fq-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.fq-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.fq-eyebrow i { width: 12px; height: 12px; border: 2px solid var(--secondary); background: var(--glow); animation: aoSpin 5s linear infinite; }   /* square marker (aoSpin is defined in section 4) */
.fq-head h2 { font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.fq-lead { max-width: 58ch; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }

/* ---------- Price ticket: four equal cells divided by hairlines ---------- */
.fq-ticket {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;                               /* the gap shows the border colour = the dividers */
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.fq-ticket::after {                       /* one shine sweeps across the ticket when it appears */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, var(--glow) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.fq-ticket.is-in::after { animation: fqShine 1.4s var(--ease) 0.2s; }
@keyframes fqShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.fq-cell { display: grid; align-content: start; gap: 8px; padding: 24px; background: var(--bg); transition: background-color 0.3s var(--ease); }
.fq-cell:hover { background: var(--surface); }
.fq-big { font-family: var(--font-head); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); font-weight: 600; line-height: 1.05; color: var(--accent); }
.fq-lab { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.fq-sub { font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* ---------- Control row ---------- */
.fq-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.fq-bar-title { font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 600; line-height: 1.2; }
.fq-all {                                 /* square button, same size and weight as the site buttons */
  height: 48px;
  padding-inline: 26px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.fq-all:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }

/* ---------- Flip cards ---------- */
.fq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fq-item { display: grid; perspective: 1000px; }
.fq-card {
  position: relative;
  display: grid;                          /* both faces share one cell, so the card is as tall as the taller face */
  width: 100%;
  padding: 0;
  text-align: start;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.fq-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fq-card[aria-pressed="true"] { transform: rotateY(180deg); }
.fq-face {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  padding: 24px;                          /* same padding on every side */
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fq-card:hover .fq-face { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.fq-back { transform: rotateY(180deg); background: var(--accent); border-color: var(--accent); color: var(--bg); }   /* the answer side: accent colour */
.fq-q { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.fq-back .fq-q { color: var(--bg); }
.fq-text { font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.fq-text--a { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; line-height: 1.65; }
.fq-hint { display: flex; align-items: center; gap: 8px; align-self: end; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.fq-back .fq-hint { color: var(--bg); }
.fq-arrow {                               /* arrow drawn with borders (no SVG) */
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  animation: fqNudge 1.6s ease-in-out infinite;
}
.fq-arrow--back { transform: rotate(-135deg); }
@keyframes fqNudge { 0%, 100% { margin-inline-start: 0; } 50% { margin-inline-start: 6px; } }
.fq-face { grid-template-rows: auto 1fr auto; }                    /* label top, text middle, hint pinned to the bottom */

/* ---------- Entrance (only when scripts run): cards flip up from the table one by one ---------- */
html.js .fq-item:not(.is-in) { opacity: 0; }
html.js .fq-item.is-in { animation: fqDeal 0.9s var(--ease) calc(var(--n, 0) * 100ms) backwards; }
@keyframes fqDeal { from { opacity: 0; transform: translateY(40px) rotateX(-60deg); } to { opacity: 1; transform: none; } }
html.js .fq-ticket:not(.is-in) { opacity: 0; }
html.js .fq-ticket.is-in { animation: fqRise 0.9s var(--ease) backwards; }
@keyframes fqRise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 959px) {
  .fq-ticket { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* 2 x 2 */
  .fq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .fq-ticket { grid-template-columns: minmax(0, 1fr); }
  .fq-grid { grid-template-columns: minmax(0, 1fr); }
  .fq-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Reduced motion: cards swap instantly, nothing sweeps or nudges ---------- */
@media (prefers-reduced-motion: reduce) {
  .fq-eyebrow i,
  .fq-arrow,
  .fq-ticket.is-in::after,
  html.js .fq-item.is-in,
  html.js .fq-ticket.is-in { animation: none !important; }
  html.js .fq-item:not(.is-in),
  html.js .fq-ticket:not(.is-in) { opacity: 1; }
  .fq-card { transition: none; }
}


/* ==========================================================================
   13ae. ABOUT PAGE – SECTION 6: A DAY AT SEREN (pinned film strip)
   Layout: centred heading  ->  time ruler (5 stops + moving marker)  ->  a strip of five photo frames.
   - Pinned mode (wide AND tall window): the section is tall, its stage is sticky, and the scroll position slides the strip sideways.
     The frame in the middle is lifted, the others tilt back a little, the photos drift inside their frames.
   - Not pinned (small / short window): the strip is a normal swipe row with snap points; the ruler follows it.
   - Captions sit BELOW the photos. Square corners only, no SVG. Gaps 24px, frame padding 20px on every side.
   - Only the site's colour variables are used (they flip in dark mode).
   ========================================================================== */
.dy-sec {
  position: relative;
  overflow: clip;                         /* "clip" (not "hidden") so the sticky stage still works */
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.dy-stage { padding-block: clamp(64px, 8vw, 100px); }   /* equal top and bottom */
.dy-stage .container { display: grid; gap: 24px; }

/* Pinned mode (class added by index.js only when it really fits) */
.dy-sec.is-pinned .dy-stage {
  position: sticky;
  top: var(--nav-h);                      /* rests right under the navbar */
  display: grid;
  align-content: center;                  /* content centred: equal space above and below */
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  padding-block: 80px;
}

/* ---------- Heading ---------- */
.dy-head { display: grid; justify-items: center; gap: 12px; max-width: 720px; margin-inline: auto; text-align: center; }
.dy-eyebrow { font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dy-title { font-family: var(--font-head); font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1.12; color: var(--text); }
.dy-sub { font-size: 17px !important; line-height: 1.7; color: var(--muted); }

/* ---------- Time ruler ---------- */
.dy-ruler { display: grid; gap: 12px; }
.dy-ticks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.dy-ticks li { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 16px !important; font-weight: 600; color: var(--text); transition: color 0.3s var(--ease); }
.dy-ticks li:first-child { justify-content: flex-start; }
.dy-ticks li:last-child { justify-content: flex-end; }
.dy-ticks li:not(:first-child):not(:last-child) { justify-content: center; }
.dy-sq { width: 8px; height: 8px; border: 2px solid var(--border); transform: rotate(45deg); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.dy-ticks li.is-on { color: var(--text); }
.dy-ticks li.is-on .dy-sq { background: var(--accent); border-color: var(--accent); }
.dy-rail { position: relative; display: block; height: 4px; background: var(--border); }
.dy-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--dy-p, 0)); transform-origin: left; }
html[dir="rtl"] .dy-fill { transform-origin: right; }
.dy-mark {                                /* square marker that rides the rail */
  position: absolute;
  top: 50%;
  inset-inline-start: calc(var(--dy-p, 0) * (100% - 16px));
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
  animation: dyPulse 2.4s ease-in-out infinite;
}
@keyframes dyPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--glow); } 50% { box-shadow: 0 0 0 9px transparent; } }

/* ---------- Film strip ---------- */
.dy-view {
  padding: 12px 0 16px;                   /* room for the lift and shadow of the middle frame */
  margin: -12px 0 -16px;
  overflow-x: auto;                       /* normal swipe row (replaced by the sliding strip when pinned) */
  scroll-snap-type: x mandatory;
  scrollbar-width: auto;
  scrollbar-color: var(--accent) var(--border);
  overscroll-behavior-inline: contain;
  outline-offset: 4px;
}
.dy-view::-webkit-scrollbar { height: 12px; }
.dy-view::-webkit-scrollbar-track { background: var(--border); border-radius: 999px; }
.dy-view::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--border); border-radius: 999px; }
.dy-sec.is-pinned .dy-view { overflow: hidden; scroll-snap-type: none; }
.dy-track { display: flex; flex-wrap: nowrap; gap: 24px; margin: 0; padding: 0; list-style: none; width: max-content; min-width: 100%; will-change: transform; }
.dy-frame {
  --s: 1; --o: 1; --r: 0deg; --x: 0px;   /* set by index.js from the frame's distance to the middle */
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: clamp(280px, 30vw, 400px);
  padding: 20px;                          /* same padding on every side */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  scroll-snap-align: center;
  transform: scale(var(--s)) rotateY(var(--r));
  opacity: 1;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.dy-frame.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow), 0 18px 30px -18px var(--glow-2); }
.dy-fig { display: grid; gap: 12px; margin: 0; }
.dy-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--surface); }
.dy-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateX(var(--x)) scale(1.14); }   /* drifts inside its frame */
.dy-frame:first-child .dy-photo img { object-position: center top; transform: translateX(var(--x)) scale(1.02); transform-origin: center top; }
.dy-fig figcaption { font-size: 15px !important; line-height: 1.4; color: var(--muted); }
.dy-body { display: grid; align-content: start; gap: 8px; flex: 1; }
.dy-time { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.dy-body h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; color: var(--text); }
.dy-body p { font-size: 16px !important; line-height: 1.6; color: var(--text); }

@media (max-width: 600px) {
  .dy-ticks li { gap: 4px; font-size: 12px !important; }
  .dy-sq { width: 7px; height: 7px; }
}

/* ---------- Reduced motion: no pulsing marker, no tilt / drift (the strip is the normal swipe row) ---------- */
@media (prefers-reduced-motion: reduce) {
  .dy-mark { animation: none; }
  .dy-frame { transform: none; transition: none; }
  .dy-photo img { transform: scale(1.14); }
}

/* Shared typography for every page and section title. */
:is(main h1, main h2, .contact-page main h2, .contact-page .cc-sec h2, .about-cta h2) {
  font-family: var(--font-head) !important;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  color: var(--text);
}

:is(main h1, main h2, .contact-page main h2, .contact-page .cc-sec h2, .about-cta h2)
  :is(.svc-accent, .home-shine, .tw-mark, em) {
  color: var(--accent) !important;
}

/* About page: use the same 80px vertical spacing in every section. */
.about-hero .about-copy { padding-block: 80px !important; }
.story-sec,
.mv-sec,
.exp-sec,
.team-sec,
.why-sec,
.dy-stage,
.about-cta { padding-block: 80px !important; }
.dy-sec .dy-view { margin-bottom: 0; }
.about-cta .cc-wrap { padding-block: 0 !important; }
.page-shell .dy-sec .dy-head .dy-sub { font-size: 18px !important; }

.pricing-cta {
  padding-block: 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.pricing-cta .container {
  max-width: 1280px;
}
.pricing-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 20px 50px -34px var(--glow-2);
}
.pricing-cta__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 58%;
}
.pricing-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 64px);
  text-align: center;
}
.pricing-cta h2 { max-width: 26ch; }
.pricing-cta p { max-width: 58ch; font-size: 17px !important; line-height: 1.6; color: var(--muted); }
@media (max-width: 700px) {
  .pricing-cta__inner { grid-template-columns: 1fr; }
  .pricing-cta__image { height: clamp(190px, 55vw, 280px); min-height: 0; }
  .pricing-cta__content { padding: 28px 22px 34px; }
}

/* Shared pill radius for CTA links and buttons on every page, including their hover and focus states. */
:is(a, button)[class*="btn"],
:is(a, button)[class*="cta"],
a.szr-tag {
  border-radius: 999px !important;
}
