/* ==========================================================================
   WataBox Jamaica, public site

   Light, water-clear surfaces. Deep navy ink. One action colour (reef blue).
   Leaf green is reserved for "yes": ticks, positive states, the perk tag.
   Bricolage Grotesque for display, Figtree for reading. Light by default;
   the switch in the nav turns on the dark theme ([data-theme="dark"] on
   <html>, set before first paint by app/Views/site/head.php).

   Shape system, one rule applied everywhere:
     buttons, chips, nav island ....... full pill
     framed media and cards ........... 28px shell / 22px core (double bezel)
     tiles and panels ................. 24px
     inputs ........................... 14px
     tags and status labels ........... 6px
   ========================================================================== */

/* --------------------------------------------------------------- fonts
   Self-hosted (SIL Open Font License 1.1; licences in assets/fonts/).
   Variable files: Bricolage Grotesque carries weight, width and optical
   size; Figtree carries weight. latin-ext only downloads when a page
   actually contains those characters (a visitor's accented name, say). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/figtree-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@layer reset, tokens, base, layout, components, sections, motion, utilities;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  body { min-height: 100svh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; padding: 0; }
  table { border-collapse: collapse; border-spacing: 0; }
  address { font-style: normal; }
  [hidden] { display: none !important; }
}

/* ----------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    /* Brand, identical in both themes */
    --navy:   #072A4A;
    --reef:   #0B57B8;
    --splash: #1E88E5;
    --aqua:   #45C4F5;
    --ice:    #BDE9FF;
    --leaf:   #3E9A1C;
    --lime:   #6ABF23;

    /* Light theme. Every text pairing below was measured at 4.5:1 or better. */
    --bg:          #F5F9FC;
    --bg-tint:     #EAF3FA;
    --surface:     #FDFEFF;
    --shell:       rgb(10 35 64 / .045);
    --ink-1:       #0A2340;
    --ink-2:       #26425E;
    --ink-3:       #4C6480;
    --line:        rgb(10 35 64 / .09);
    --line-2:      rgb(10 35 64 / .17);
    --accent:      #0B57B8;
    --accent-hi:   #094A9C;
    --accent-ink:  #FFFFFF;
    --accent-soft: #E3EFFB;
    --link:        #0B57B8;
    --pos:         #2E7A13;
    --pos-soft:    #E4F2D8;
    --neg:         #B32B2B;
    --neg-soft:    #FBE6E6;
    --mid:         #96590A;
    --mid-soft:    #FBEFD9;
    /* The alkaline outlet (Filtration Process Brief: blue for mineral-enhanced, teal for alkaline) */
    --teal:        #0A7363;
    --teal-ink:    #FFFFFF;
    --teal-soft:   #E0F4EF;
    --glass:       rgb(253 254 255 / .66);
    --glass-2:     rgb(253 254 255 / .92);
    --panel:       rgb(253 254 255 / .93);
    --phone:       #0E2236;

    --shadow-1: 0 1px 2px rgb(7 42 74 / .05), 0 2px 8px -3px rgb(7 42 74 / .07);
    --shadow-2: 0 1px 2px rgb(7 42 74 / .05), 0 22px 44px -22px rgb(11 87 184 / .30);
    --shadow-3: 0 2px 6px rgb(7 42 74 / .05), 0 44px 90px -40px rgb(11 87 184 / .42);
    --inner-hi: inset 0 1px 0 rgb(255 255 255 / .75);

    /* Type */
    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t-xs:   0.8125rem;
    --t-sm:   0.9375rem;
    --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --t-lede: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
    --t-h3:   clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
    --t-h2:   clamp(2rem, 1.3rem + 2.5vw, 3.4rem);
    --t-h1:   clamp(2.6rem, 1rem + 4vw, 4.4rem);

    /* Space */
    --gutter:  clamp(1.25rem, 4.5vw, 3rem);
    --page:    1240px;
    --section: clamp(5.5rem, 10vw, 9.5rem);
    --nav-h:   4rem;

    /* Shape */
    --r-pill:  999px;
    --r-frame: 28px;
    --r-core:  22px;
    --r-tile:  24px;
    --r-input: 14px;
    --r-tag:   6px;

    /* Motion: curves from the animate skill's table, never improvised */
    --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    /* Layers: the only z-index values on the page */
    --z-raised: 1;
    --z-menu:   40;
    --z-nav:    50;
    --z-skip:   60;

    color-scheme: light;
  }

  /* Dark theme, when the visitor picks it. Screen only, so a page printed
     from the dark theme still comes out as dark ink on white paper. */
  @media screen {
    :root[data-theme="dark"] {
      --bg:          #061A2E;
      --bg-tint:     #08213A;
      --surface:     #0C2741;
      --shell:       rgb(189 233 255 / .055);
      --ink-1:       #EAF3FB;
      --ink-2:       #BCD0E3;
      --ink-3:       #8CA6BF;
      --line:        rgb(189 233 255 / .1);
      --line-2:      rgb(189 233 255 / .19);
      --accent:      #1A6BD0;
      --accent-hi:   #155FBF;
      --accent-soft: rgb(69 196 245 / .12);
      --link:        #7CC0F7;
      --pos:         #8FD45C;
      --pos-soft:    rgb(143 212 92 / .13);
      --neg:         #F28B8B;
      --neg-soft:    rgb(242 139 139 / .13);
      --mid:         #E7B15A;
      --mid-soft:    rgb(231 177 90 / .13);
      --teal:        #4FD1BC;
      --teal-ink:    #061A2E;
      --teal-soft:   rgb(79 209 188 / .12);
      --glass:       rgb(8 33 58 / .58);
      --glass-2:     rgb(8 33 58 / .9);
      --panel:       rgb(7 28 49 / .9);
      --phone:       #040F1B;

      --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
      --shadow-2: 0 1px 2px rgb(0 0 0 / .25), 0 22px 44px -22px rgb(0 0 0 / .6);
      --shadow-3: 0 2px 6px rgb(0 0 0 / .3), 0 44px 90px -40px rgb(0 0 0 / .7);
      --inner-hi: inset 0 1px 0 rgb(255 255 255 / .06);

      color-scheme: dark;
    }
  }
}

/* ------------------------------------------------------------------- base */
@layer base {
  html { scroll-padding-top: calc(var(--nav-h) + 2.5rem); }
  /* Smooth only for in-page clicks: site.js adds the class after load, so
     arriving on a #fragment (a shared link, the form's redirect) jumps
     straight there instead of animating down a 13,000px page. */
  html.is-ready { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html.is-ready { scroll-behavior: auto; } }

  body {
    background: var(--bg);
    color: var(--ink-2);
    font: 400 var(--t-base)/1.65 var(--font-body);
    overflow-x: clip;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-stretch: 94%;
    font-weight: 650;
    color: var(--ink-1);
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
  }
  h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
  h2 { font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.04; }
  h3 { font-size: var(--t-h3); font-weight: 620; letter-spacing: -0.016em; line-height: 1.22; }

  p, li, dd { text-wrap: pretty; }
  strong, b { font-weight: 650; color: var(--ink-1); }
  ::selection { background: var(--ice); color: var(--navy); }

  :focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; border-radius: 8px; }

  /* Controls are not content: no long-press selection, no double-tap delay */
  button, .btn, .chip, [role="button"] { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
  a { touch-action: manipulation; }

  /* iOS zooms into any field under 16px and never zooms back out */
  input, select, textarea { font-size: 16px; }
}

/* ----------------------------------------------------------------- layout */
@layer layout {
  .wrap { width: min(100% - var(--gutter) * 2, var(--page)); margin-inline: auto; }
  .wrap--narrow { --page: 960px; }
  .section { padding-block: var(--section); }
  .section--tint { background: var(--bg-tint); }
  .measure { max-width: 62ch; }
  .lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
  .muted { color: var(--ink-3); }
  .stack > * + * { margin-top: var(--gap, 1rem); }
}

/* ------------------------------------------------------------- components */
@layer components {

  /* Accessibility helpers ------------------------------------------------ */
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: fixed; z-index: var(--z-skip); left: 1rem; top: 1rem;
    padding: .75rem 1.1rem; border-radius: var(--r-input);
    background: var(--ink-1); color: var(--bg); font-weight: 650;
    transform: translateY(-160%);
    transition: transform 200ms var(--ease-out);
  }
  .skip-link:focus-visible { transform: none; }

  .icon { flex-shrink: 0; }

  /* Buttons -------------------------------------------------------------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
    min-height: 3.25rem;
    padding: .375rem .375rem .375rem 1.4rem;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font: 650 1rem/1 var(--font-body);
    letter-spacing: -0.005em;
    white-space: nowrap;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / .2),
      0 1px 2px rgb(7 42 74 / .22),
      0 10px 24px -10px rgb(11 87 184 / .6);
    transition:
      transform 160ms var(--ease-out),
      background-color 200ms ease,
      box-shadow 200ms ease;
  }
  .btn__icon {
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: rgb(255 255 255 / .16);
    transition: transform 300ms var(--ease-out), background-color 200ms ease;
  }
  .btn:active { transform: scale(.97); }
  .btn--sm { min-height: 2.75rem; font-size: var(--t-sm); padding-left: 1.15rem; gap: .7rem; }
  .btn--sm .btn__icon { width: 2rem; height: 2rem; }
  .btn--block { width: 100%; }
  .btn[aria-disabled="true"] { opacity: .72; pointer-events: none; }

  @media (hover: hover) and (pointer: fine) {
    .btn:hover { background: var(--accent-hi); }
    .btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.06); background: rgb(255 255 255 / .22); }
  }

  /* Text link with a trailing arrow */
  .link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 650; color: var(--link);
    text-decoration: underline; text-decoration-thickness: 1.5px;
    text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    transition: text-decoration-color 200ms ease;
  }
  .link .icon { transition: transform 300ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .link:hover { text-decoration-color: currentColor; }
    .link:hover .icon { transform: translateY(2px); }
    .link--right:hover .icon { transform: translateX(3px); }
  }

  /* Kicker: the single pill eyebrow allowed above the hero -------------- */
  .kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    max-width: 100%;
    padding: .45rem .85rem .45rem .6rem;
    /* Half the one-line height, so it is a pill until the copy wraps */
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
    font: 600 var(--t-sm)/1.25 var(--font-body);
    color: var(--ink-2);
  }
  .kicker .icon { color: var(--aqua); }

  /* Section eyebrow, used on at most one section in three */
  .eyebrow {
    display: block;
    font: 650 var(--t-sm)/1.2 var(--font-body);
    color: var(--link);
    margin-bottom: 1rem;
  }

  /* Tags and status ------------------------------------------------------ */
  .tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .38em .6em;
    border-radius: var(--r-tag);
    font: 650 .75rem/1 var(--font-body);
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .tag--perk { background: var(--pos-soft); color: var(--pos); }
  .tag--opt  { background: var(--accent-soft); color: var(--link); }
  .tag--soon { background: var(--mid-soft); color: var(--mid); }

  .status {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45em .7em;
    border-radius: var(--r-tag);
    font: 650 var(--t-xs)/1 var(--font-body);
    white-space: nowrap;
  }
  .status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
  .status--on  { color: var(--pos); background: var(--pos-soft); }
  .status--off { color: var(--neg); background: var(--neg-soft); }

  /* Double bezel: a shell with a hairline, holding a core with its own
     highlight and a concentric, smaller radius. */
  .bezel {
    padding: 6px;
    border-radius: var(--r-frame);
    background: var(--shell);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .bezel__core {
    height: 100%;
    border-radius: var(--r-core);
    background: var(--surface);
    box-shadow: var(--inner-hi), var(--shadow-1);
    overflow: hidden;
  }
  .bezel--photo .bezel__core { background: var(--bg-tint); }
  .bezel--photo img { width: 100%; height: 100%; object-fit: cover; }

  /* Icon tiles */
  .glyph {
    display: grid; place-items: center; flex-shrink: 0;
    width: 3rem; height: 3rem;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
  }
  .glyph--leaf { background: var(--pos-soft); color: var(--pos); }
  .glyph--sun  { background: var(--mid-soft); color: var(--mid); }
  .glyph--sm   { width: 2.5rem; height: 2.5rem; border-radius: 12px; }
  /* Dark theme: reef blue is too dim on navy, so plain glyphs take the link
     blue. The leaf and sun tints keep their own colours. */
  :where([data-theme="dark"]) .glyph:where(:not(.glyph--leaf, .glyph--sun)) { color: var(--link); }

  /* Navigation: a floating island ---------------------------------------- */
  .nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 32px; pointer-events: none; }

  .site-nav {
    position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
    padding: max(.75rem, env(safe-area-inset-top)) var(--gutter) 0;
    pointer-events: none;
  }
  .site-nav__inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
    /* Wider than the page column, so the six journeys, the residents link and
       the eligibility button fit on one line from 1380px up. */
    width: min(100%, 1400px);
    height: var(--nav-h);
    margin-inline: auto;
    padding: 0 .375rem 0 1.1rem;
    border-radius: var(--r-pill);
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 0 0 1px var(--line), var(--inner-hi);
    transition: background-color 300ms ease, box-shadow 300ms ease;
  }
  .site-nav.is-condensed .site-nav__inner {
    background: var(--glass-2);
    box-shadow: inset 0 0 0 1px var(--line), var(--inner-hi), var(--shadow-2);
  }
  .site-nav__brand { flex-shrink: 0; display: block; }
  .site-nav__brand img { height: 2.6rem; width: auto; }

  .site-nav__links { display: flex; align-items: center; gap: clamp(.9rem, 1.5vw, 1.4rem); margin-inline: auto; white-space: nowrap; }
  .site-nav__links a {
    position: relative;
    padding-block: .5rem;
    font: 550 var(--t-sm)/1 var(--font-body);
    color: var(--ink-2);
    transition: color 200ms ease;
  }
  .site-nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 300ms var(--ease-out);
  }
  .site-nav__links a[aria-current] { color: var(--ink-1); }
  .site-nav__links a[aria-current]::after { transform: scaleX(1); }
  /* Where the residents' links end and the property owners' begin */
  .site-nav__links .site-nav__split { padding-left: clamp(.9rem, 1.5vw, 1.4rem); border-left: 1px solid var(--line-2); }
  @media (hover: hover) and (pointer: fine) {
    .site-nav__links a:hover { color: var(--ink-1); }
    .site-nav__links a:hover::after { transform: scaleX(1); }
  }

  .site-nav__end { display: flex; align-items: center; gap: .375rem; }

  /* Theme switch: the sun swells and is bitten into a moon. Going dark, the
     rays leave first and the bite follows; coming back, the bite leaves first
     and the rays return as the sun shrinks. */
  .theme-toggle {
    display: none;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    place-items: center;
    color: var(--ink-1);
    transition: background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .js .theme-toggle { display: grid; }
  .theme-toggle:active { transform: scale(.94); }
  @media (hover: hover) and (pointer: fine) { .theme-toggle:hover { background: var(--line); } }
  .theme-toggle__icon { overflow: visible; }
  .theme-toggle__sun, .theme-toggle__rays { transform-origin: center; }
  .theme-toggle__sun  { transition: transform 450ms var(--ease-out); }
  .theme-toggle__rays { transition: transform 450ms var(--ease-out), opacity 300ms ease; }
  .theme-toggle__bite { transition: transform 250ms var(--ease-out); }
  :where([data-theme="dark"]) .theme-toggle__sun  { transform: scale(1.75); transition-duration: 250ms; }
  :where([data-theme="dark"]) .theme-toggle__rays { transform: rotate(-25deg); opacity: 0; transition-duration: 150ms; }
  :where([data-theme="dark"]) .theme-toggle__bite { transform: translateX(-7px); transition: transform 300ms var(--ease-out) 150ms; }

  .site-nav__toggle {
    display: none;
    width: 3.25rem; height: 3.25rem;
    border-radius: 50%;
    place-items: center;
    color: var(--ink-1);
    transition: background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .site-nav__toggle:active { transform: scale(.94); }
  .burger { position: relative; display: block; width: 22px; height: 14px; }
  .burger i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform 320ms var(--ease-out);
  }
  .burger i:first-child { top: 2px; }
  .burger i:last-child { top: 10px; }
  [aria-expanded="true"] .burger i:first-child { transform: translateY(4px) rotate(45deg); }
  [aria-expanded="true"] .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

  @media (max-width: 1379px) {
    .site-nav__links, .site-nav__cta { display: none; }
    .site-nav__end { margin-left: auto; }
    .site-nav__toggle { display: grid; }
    .js .theme-toggle { width: 3.25rem; height: 3.25rem; }
    /* Without JavaScript the sheet cannot open, so the links stay visible. */
    html:not(.js) .site-nav__inner { height: auto; flex-wrap: wrap; padding-block: .6rem; border-radius: var(--r-tile); }
    html:not(.js) .site-nav__links { display: flex; flex-wrap: wrap; width: 100%; gap: .25rem 1rem; }
    html:not(.js) .site-nav__toggle { display: none; }
  }

  /* Full-screen menu sheet (sits under the island so the X stays on top) */
  .menu {
    position: fixed; inset: 0; z-index: var(--z-menu);
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: calc(var(--nav-h) + max(.75rem, env(safe-area-inset-top)) + 2.25rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: opacity 240ms var(--ease-out), clip-path 520ms var(--ease-drawer);
  }
  .menu.is-open { opacity: 1; clip-path: inset(0 0 0 0); }
  .menu__nav li + li { border-top: 1px solid var(--line); }
  .menu__nav a {
    display: block; padding-block: .85rem;
    font: 650 clamp(1.85rem, 7vw, 2.5rem)/1.1 var(--font-display);
    font-stretch: 94%;
    letter-spacing: -0.03em;
    color: var(--ink-1);
    opacity: 0; transform: translateY(1.25rem);
    transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out);
  }
  .menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(90ms + var(--i, 0) * 45ms); }
  .menu__foot { display: grid; gap: 1.25rem; }
  .menu__contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; color: var(--link); }
  .menu__group { margin-top: 1.75rem; margin-bottom: .25rem; font: 650 var(--t-sm)/1.2 var(--font-body); color: var(--ink-3); }
  .menu__group:first-child { margin-top: 0; }

  /* Forms ---------------------------------------------------------------- */
  .field { display: grid; gap: .5rem; align-content: start; }
  .field--full { grid-column: 1 / -1; }
  .field label { font: 650 var(--t-sm)/1.3 var(--font-body); color: var(--ink-1); }
  .field .req { color: var(--neg); margin-left: .15em; }
  .field__hint { font-size: var(--t-xs); color: var(--ink-3); }
  .field__error {
    display: flex; align-items: center; gap: .4rem;
    font: 600 var(--t-xs)/1.35 var(--font-body);
    color: var(--neg);
  }
  .input {
    width: 100%;
    min-height: 3.25rem;
    padding: .8rem 1rem;
    border-radius: var(--r-input);
    border: 1.5px solid var(--line-2);
    background: var(--bg);
    color: var(--ink-1);
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  }
  .input::placeholder { color: var(--ink-3); opacity: 1; }
  .input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgb(30 136 229 / .16); }
  .input:focus-visible { outline: 2.5px solid var(--link); outline-offset: 2px; }
  .input[aria-invalid="true"] { border-color: var(--neg); }
  .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(217 63 63 / .14); }
  textarea.input { min-height: 8rem; resize: vertical; line-height: 1.5; }
  .select { position: relative; }
  .select .input { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
  .select .icon { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-3); }

  .sublabel { font-weight: 550 !important; color: var(--ink-3) !important; }
  .radio, .check {
    display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
    font-size: var(--t-sm); line-height: 1.4; color: var(--ink-1); cursor: pointer;
  }
  .radio { min-height: 2.75rem; padding: .7rem .9rem; border-radius: var(--r-input); box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--bg); transition: box-shadow 160ms ease, background-color 160ms ease; }
  .radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
  :where([data-theme="dark"]) .radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--link); }
  .radio input, .check input { width: 1.25rem; height: 1.25rem; margin: .05rem 0 0; accent-color: var(--accent); cursor: pointer; }
  :where([data-theme="dark"]) :is(.radio, .check) input { accent-color: var(--link); }
  .check span { font-weight: 550; }

  /* Flash and result panels */
  .flash {
    display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-size: var(--t-sm);
  }
  .flash strong { display: block; color: inherit; margin-bottom: .15rem; }
  .flash--bad { background: var(--neg-soft); color: var(--neg); }
  .flash--ok  { background: var(--pos-soft); color: var(--pos); }
  form > .flash { margin-bottom: 1.75rem; }
  .flash__list { margin-top: .6rem; display: grid; gap: .3rem; list-style: disc; padding-left: 1.1rem; }
  .flash__list a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
}

/* --------------------------------------------------------------- sections */
@layer sections {

  /* Hero ----------------------------------------------------------------- */
  .hero {
    position: relative; isolation: isolate;
    padding-top: calc(var(--nav-h) + clamp(2.25rem, 5vw, 4rem));
    padding-bottom: clamp(4rem, 8vw, 7rem);
    /* Contain the glows sideways (a phone would otherwise widen the whole
       layout to fit them) but let them fade vertically into the next section. */
    overflow-x: clip;
  }
  /* Ambient light: daylight off the top right, a hint of leaf at the foot */
  .hero::before, .hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  }
  .hero::before {
    width: min(70rem, 95vw); aspect-ratio: 1; right: -18%; top: -38%;
    background: radial-gradient(closest-side, rgb(69 196 245 / .22), rgb(69 196 245 / 0) 72%);
  }
  .hero::after {
    width: min(40rem, 70vw); aspect-ratio: 1; left: -14%; top: 38%;
    background: radial-gradient(closest-side, rgb(106 191 35 / .09), rgb(106 191 35 / 0) 70%);
  }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .hero h1 { margin-top: 1.5rem; font-size: clamp(2.3rem, 1rem + 3.4vw, 3.9rem); line-height: 1.04; max-width: 20ch; }
  .hero__accent { color: var(--accent); }
  :where([data-theme="dark"]) .hero__accent { color: var(--link); }


  .hero__lede { margin-top: 1.4rem; max-width: 44ch; }
  .hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.9rem; }
  .hero__micro { margin-top: .9rem; font-size: var(--t-sm); color: var(--ink-3); }
  .proof { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; }
  .proof li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: var(--t-sm); line-height: 1.4; color: var(--ink-1); font-weight: 550; }
  .proof .icon { color: var(--pos); margin-top: .05rem; }

  .hero__media { position: relative; padding: 0 0 3rem 14%; }
  .hero__photo { aspect-ratio: 4 / 5; }
  .hero__inset {
    position: absolute; left: 0; bottom: 0;
    width: 50%;
    aspect-ratio: 5 / 4;
    rotate: -3deg;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3);
  }

  /* Part two: property owners. A deep band marks the switch of audience;
     the same reef-to-navy water in both themes, so its colours are fixed. */
  .owners { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
  .owners__inner {
    padding: clamp(2.25rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    border-radius: 36px;
    color: #D6E8F7;
    background:
      radial-gradient(80% 70% at 92% 0%, rgb(69 196 245 / .4), rgb(69 196 245 / 0) 60%),
      radial-gradient(60% 60% at 0% 100%, rgb(106 191 35 / .16), rgb(106 191 35 / 0) 60%),
      linear-gradient(160deg, var(--reef), var(--navy) 80%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), var(--shadow-3);
  }
  .owners__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 650 var(--t-sm)/1.3 var(--font-body); color: #BDE9FF; }
  .owners h2 { margin-top: 1.25rem; max-width: 22ch; color: #fff; }
  .owners__lede { margin-top: 1.25rem; max-width: 52ch; font-size: var(--t-lede); line-height: 1.55; color: #D6E8F7; }
  .owners__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.9rem; }
  .owners__micro { margin-top: .9rem; font-size: var(--t-sm); color: #D6E8F7; }
  .owners :focus-visible { outline-color: #fff; }
  .btn--light { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 10px 24px -10px rgb(0 0 0 / .45); }
  .btn--light .btn__icon { background: var(--accent-soft); color: var(--reef); }
  @media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #EAF3FA; } .btn--light:hover .btn__icon { background: #D3E6FA; } }
  .link--light { color: #fff; }
  .proof--light { border-top-color: rgb(255 255 255 / .18); max-width: 52rem; }
  .proof--light li { color: #fff; }
  .proof--light .icon { color: #BDE9FF; }

  /* Board decision snapshot: who does what ------------------------------- */
  .board__head { max-width: 52rem; }
  .board__head .lede { margin-top: 1.2rem; }
  .duty-wrap { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
  .duty { width: 100%; table-layout: fixed; font-size: var(--t-sm); }
  .duty th, .duty td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; line-height: 1.5; }
  .duty thead th { font: 650 var(--t-sm)/1.25 var(--font-body); color: var(--ink-3); background: var(--bg-tint); }
  .duty thead th:first-child { width: 24%; }
  .duty tbody tr + tr > * { border-top: 1px solid var(--line); }
  .duty tbody th { font: 620 1rem/1.35 var(--font-display); color: var(--ink-1); }
  .duty td { color: var(--ink-2); }
  .duty__shared td { color: var(--ink-1); font-weight: 550; background: var(--bg-tint); }
  .duty__both { display: flex; gap: .6rem; align-items: start; }
  .duty__both .icon { color: var(--link); margin-top: .1rem; }
  .board__note { margin-top: 1rem; font-size: var(--t-xs); color: var(--ink-3); }

  /* Role selector ------------------------------------------------------ */
  .roles { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .role { display: flex; }
  .role .bezel__core { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.4rem, 2.4vw, 1.9rem); width: 100%; }
  .role h3 { margin-top: .4rem; }
  .role p { font-size: var(--t-sm); color: var(--ink-2); }
  .role__links { margin-top: auto; padding-top: .6rem; display: grid; gap: .55rem; font-size: var(--t-sm); }

  /* The machine: bento ----------------------------------------------------- */
  .machine__head { max-width: 50rem; }
  .machine__head .lede { margin-top: 1.4rem; }
  .bento {
    margin-top: clamp(2.75rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(14rem, auto);
    gap: 1rem;
  }
  .bento > .bezel { display: flex; }
  .bento .bezel__core { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.5rem, 2.6vw, 2.1rem); width: 100%; }
  .bento h3 { margin-top: .6rem; }
  .bento p { color: var(--ink-2); font-size: var(--t-sm); }
  .bento .tile-note { margin-top: auto; padding-top: .75rem; font-size: var(--t-xs); color: var(--ink-3); }
  .tile--pay, .tile--monitor { grid-column: span 6; }
  .tile--care, .tile--eco, .tile--size { grid-column: span 4; }
  .tile-note .tag { margin-right: .35rem; }

  /* Water quality: the treatment flow --------------------------------- */
  .water__head { max-width: 52rem; }
  .water__head .lede { margin-top: 1.4rem; max-width: 62ch; }
  .water .flow { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
  .flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 1rem; align-items: stretch; }
  .flow__shared, .outlet { position: relative; padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }
  .flow__shared { background: var(--surface); display: flex; flex-direction: column; }
  .flow__outlets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .outlet { --c: var(--accent); --c-ink: var(--accent-ink); background: var(--accent-soft); display: flex; flex-direction: column; }
  :where([data-theme="dark"]) .outlet--mineral { --c: var(--link); --c-ink: var(--navy); }
  .outlet--alkaline { --c: var(--teal); --c-ink: var(--teal-ink); background: var(--teal-soft); }
  .flow__shared .rail { --c: var(--ink-1); --c-ink: var(--bg); }
  .flow__source { display: flex; align-items: center; gap: .5rem; font: 600 var(--t-sm)/1.3 var(--font-body); color: var(--ink-3); }
  .flow__source .icon { color: var(--aqua); }
  .flow__title { margin-top: .6rem; font-size: 1.125rem; }
  .outlet .flow__title { margin-top: 0; color: var(--c); }
  :where([data-theme="dark"]) .outlet .flow__title { color: var(--ink-1); }
  .flow__split { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; gap: .5rem; font: 600 var(--t-sm)/1.35 var(--font-body); color: var(--ink-2); }
  .flow__split .icon { flex: none; color: var(--link); }
  .flow__caption { margin-top: .9rem; font-size: var(--t-xs); color: var(--ink-3); }

  /* A rail of stages: code chip, name, and a line on to the next */
  .rail { margin-top: 1rem; display: grid; gap: .55rem; }
  .rail__stage { position: relative; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 2.4rem; }
  .rail__stage:not(:last-child)::after {
    content: ""; position: absolute; left: calc(1.55rem - 1px); top: 2.15rem; height: calc(100% - 1.6rem);
    width: 2px; border-radius: 2px; background: var(--c); opacity: .35;
  }
  .rail__code {
    display: grid; place-items: center; height: 2.1rem;
    border-radius: var(--r-tag);
    background: var(--c); color: var(--c-ink);
    font: 700 .8125rem/1 var(--font-body); letter-spacing: .02em;
  }
  .rail__name { font: 600 var(--t-sm)/1.3 var(--font-body); color: var(--ink-1); }

  .outlet__out { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: flex-end; gap: 1rem; }
  .outlet__out p { font: 600 var(--t-sm)/1.35 var(--font-body); color: var(--ink-1); padding-bottom: .4rem; }
  .bottle { width: 60px; height: 140px; flex: none; overflow: visible; }
  .bottle__tap { fill: var(--ink-3); opacity: .6; }
  .bottle__drop { fill: var(--c); opacity: 0; }
  .bottle__glass { fill: var(--surface); }
  .bottle__outline { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

  /* Two finishes, side by side on wide screens, stacked on phones */
  .choices { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .choice { display: grid; gap: .7rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
  .choice--alkaline .glyph { background: var(--teal-soft); color: var(--teal); }
  .choice h3 { margin-top: .3rem; }
  .choice p { color: var(--ink-2); }
  .choice__path { font: 600 var(--t-xs)/1.4 var(--font-body); color: var(--ink-3) !important; }
  .choice__note { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--ink-3); }
  .water__more { margin-top: 1.75rem; }

  .tile--eco .bezel__core { background: linear-gradient(165deg, #EEF8E6, #DDF0CD); }
  :where([data-theme="dark"]) .tile--eco .bezel__core { background: linear-gradient(165deg, rgb(143 212 92 / .12), rgb(143 212 92 / .05)); }
  .pay-modes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
  .pay-mode {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .75rem; border-radius: var(--r-pill);
    background: var(--bg-tint); color: var(--ink-1);
    font: 600 var(--t-xs)/1 var(--font-body);
  }
  .pay-mode--soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); }

  /* For your property: sticky head, scrolling list ------------------------- */
  .stick { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(3rem, 8vw, 7.5rem); align-items: start; }
  .stick__head { position: sticky; top: calc(var(--nav-h) + 3rem); }
  .stick__head .link { margin-top: 2rem; }
  .benefits { display: grid; gap: clamp(2.25rem, 4vw, 3rem); }
  .benefit { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
  .benefit h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
  .benefit p { margin-top: .45rem; color: var(--ink-2); max-width: 58ch; }

  /* Residents: a water band ------------------------------------------------ */
  .band {
    position: relative; isolation: isolate; overflow: hidden;
    margin-inline: clamp(.5rem, 2vw, 1.5rem);
    border-radius: 36px;
    padding-block: clamp(3rem, 8vw, 7rem);
  }
  .band__photo { position: absolute; inset: 0; z-index: -2; }
  .band__photo img { width: 100%; height: 100%; object-fit: cover; }
  .band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(7 42 74 / .05), rgb(7 42 74 / .32));
  }
  .band__panel {
    width: min(100% - var(--gutter) * 2, 68rem);
    margin-inline: auto;
    padding: clamp(1.75rem, 4.5vw, 3.75rem);
    border-radius: var(--r-frame);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), var(--shadow-3);
  }
  .band__panel .lede { margin-top: 1rem; }
  .band__panel h2 + .perks { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
  .perks { margin-top: clamp(2rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.75rem; }
  .perk { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
  .perk h3 { font-size: 1.0625rem; }
  .perk p { margin-top: .15rem; font-size: var(--t-sm); color: var(--ink-2); }

  /* Pricing --------------------------------------------------------------- */
  .pricing__head { display: grid; gap: 1.4rem; max-width: 46rem; }
  .prices { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
  .price:only-child { max-width: 36rem; }
  .price .bezel__core { display: grid; gap: .35rem; padding: clamp(1.75rem, 3.5vw, 2.6rem); }
  .price__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; }
  .price__top > div { flex: 1 1 12rem; min-width: 0; }
  .price__vol {
    font: 760 clamp(3.2rem, 2rem + 4.4vw, 5.4rem)/.86 var(--font-display);
    font-stretch: 90%;
    letter-spacing: -0.05em;
    color: var(--ink-1);
    white-space: nowrap;
  }
  .price__name { color: var(--ink-3); margin-top: .5rem; }
  .price__amt { margin-top: 1.6rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
  .price__amt strong { font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .price__amt span { color: var(--ink-3); font-size: var(--t-sm); }
  .price__per { color: var(--ink-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
  .pricing__notes { margin-top: 2rem; display: grid; gap: .4rem; max-width: 70ch; font-size: var(--t-sm); color: var(--ink-3); }

  /* Host requirements: a note for developers under the sticky heading */
  .stick__head .eyebrow { margin-bottom: 1rem; }
  .note-card { margin-top: 2rem; display: grid; gap: .6rem; justify-items: start; padding: 1.5rem; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
  .note-card h3 { font-size: 1.125rem; }
  .note-card p { font-size: var(--t-sm); color: var(--ink-2); }
  .stick__head .note-card .link { margin-top: .25rem; }

  /* Monitoring and service ---------------------------------------------- */
  .service { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .service .bezel__core { display: grid; gap: .7rem; align-content: start; padding: clamp(1.5rem, 2.6vw, 2.1rem); }
  .service h3 { margin-top: .4rem; }
  .service p { color: var(--ink-2); font-size: var(--t-sm); }
  .ticks { display: grid; gap: .55rem; font-size: var(--t-sm); color: var(--ink-1); }
  .ticks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
  .ticks .icon { color: var(--pos); }

  /* Commercial models ---------------------------------------------------- */
  .models { margin-top: clamp(2.25rem, 4.5vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .model .bezel__core { display: grid; gap: .8rem; align-content: start; justify-items: start; padding: clamp(1.6rem, 3vw, 2.4rem); }
  .model p { color: var(--ink-2); max-width: 52ch; }

  /* Find a station -------------------------------------------------------- */
  .dir__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.75rem 3rem; }
  .dir__head .lede { margin-top: 1rem; }
  .search { position: relative; width: min(100%, 25rem); }
  .search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
  .search .input { padding-left: 2.85rem; background: var(--surface); }
  .dir__list { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem; }
  .dir__parish { font: 650 var(--t-sm)/1.2 var(--font-body); color: var(--ink-3); margin-bottom: .75rem; }
  .stations { display: grid; gap: .6rem; }
  .station {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "glyph name status" "glyph meta status";
    column-gap: 1rem; row-gap: .1rem; align-items: start;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  }
  .station__glyph { grid-area: glyph; }
  .station__name { grid-area: name; font: 620 1.0625rem/1.25 var(--font-display); color: var(--ink-1); }
  .station__meta { grid-area: meta; font-size: var(--t-sm); color: var(--ink-3); }
  .station .status { grid-area: status; align-self: center; }
  .empty {
    display: grid; justify-items: start; gap: .6rem;
    padding: 2rem; border-radius: var(--r-tile);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .empty .icon { color: var(--aqua); }
  .empty p { max-width: 52ch; }

  /* How it works: timeline ----------------------------------------------- */
  .timeline { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
  /* Each step owns the segment that leads to the next one */
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    content: ""; position: absolute; top: calc(1.4rem - 1px); left: 3.6rem; right: calc(-1.5rem + .8rem);
    height: 2px; border-radius: 2px;
  }
  .step:not(:last-child)::before { background: var(--line-2); }
  .step:not(:last-child)::after { background: linear-gradient(90deg, var(--aqua), var(--accent)); transform-origin: left; }
  .step { position: relative; display: grid; gap: .75rem; align-content: start; }
  .step__num {
    position: relative; z-index: var(--z-raised);
    display: grid; place-items: center;
    width: 2.8rem; height: 2.8rem; border-radius: 50%;
    background: var(--accent); color: #fff;
    font: 700 1rem/1 var(--font-display);
    box-shadow: 0 0 0 6px var(--bg);
  }
  .step h3 { margin-top: .6rem; }
  .step p { color: var(--ink-2); font-size: var(--t-sm); }
  .step .tag { justify-self: start; margin-top: .25rem; }

  /* Questions: two columns, everything visible ---------------------------- */
  .qa { margin-top: clamp(2.75rem, 5vw, 3.75rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 5rem); }
  .qa dt { font: 620 var(--t-h3)/1.25 var(--font-display); font-stretch: 94%; letter-spacing: -0.016em; color: var(--ink-1); }
  .qa dd { margin-top: .55rem; color: var(--ink-2); max-width: 54ch; }
  .qa__more { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-2); }

  /* Trust: the page's one marquee ----------------------------------------- */
  .trust { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-block: 1px solid var(--line); overflow: hidden; }
  .trust h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
  .trust__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
  .motion-toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 2.5rem; padding: .5rem .95rem;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    font: 650 var(--t-sm)/1 var(--font-body); color: var(--ink-1);
    transition: background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .motion-toggle:active { transform: scale(.97); }
  @media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: var(--surface); } }
  .motion-toggle__play, [data-paused="true"] .motion-toggle__pause { display: none; }
  [data-paused="true"] .motion-toggle__play { display: inline-flex; align-items: center; gap: .4rem; }
  .motion-toggle__pause { display: inline-flex; align-items: center; gap: .4rem; }
  .marquee {
    margin-top: 2rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .marquee__track { display: flex; width: max-content; }
  .marquee__group { display: flex; gap: .75rem; padding-right: .75rem; }
  .chip {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .85rem 1.25rem .85rem 1rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
    font: 600 var(--t-sm)/1.2 var(--font-body);
    color: var(--ink-1);
    white-space: nowrap;
  }
  .chip .icon { color: var(--pos); }

  /* Resources under the questions */
  .resources { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-tile); background: var(--bg-tint); }
  .resources h3 { font-size: 1.125rem; }
  .resources ul { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem 2rem; }

  /* App: real screenshots in device frames ------------------------------- */
  .showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
  .showcase .lede { margin-top: 1.4rem; }
  .features { margin-top: 2rem; display: grid; gap: .85rem; }
  .features li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
  .features .icon { color: var(--pos); margin-top: .2rem; }
  .stores { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
  .store {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: .65rem 1.1rem .65rem .9rem;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    color: var(--ink-1);
  }
  .store small { display: block; font-size: .6875rem; color: var(--ink-3); line-height: 1.1; }
  .store strong { display: block; font: 650 .9375rem/1.15 var(--font-display); }
  .store svg { width: 1.4rem; height: 1.4rem; }

  .phones { position: relative; aspect-ratio: 1 / 1.22; max-width: 33rem; margin-inline: auto; width: 100%; }
  .phone {
    position: absolute; width: 49%;
    aspect-ratio: 390 / 844;
    padding: 2.4%;
    border-radius: 13% / 6%;
    background: linear-gradient(155deg, #23405C, var(--phone) 45%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .18), var(--shadow-3);
  }
  .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5.2%; }
  .phone--back  { left: 5%;  top: 1%;  rotate: -6deg; }
  .phone--front { right: 5%; top: 7%;  rotate: 5deg; }

  /* Book a site visit ----------------------------------------------------- */
  .enquire__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 6rem); align-items: start; }
  .enquire__copy .lede { margin-top: 1.3rem; }
  .slots {
    margin-top: 1.75rem;
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .65rem .9rem;
    border-radius: var(--r-tag);
    background: var(--pos-soft); color: var(--pos);
    font: 650 var(--t-sm)/1.3 var(--font-body);
  }
  .slots__dot { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .slots__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; }
  .channels { margin-top: 2.25rem; display: grid; gap: .6rem; }
  .channel {
    display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center;
    padding: .9rem 1.1rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
    transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
  }
  .channel small { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.2; }
  .channel span { font-weight: 650; color: var(--ink-1); }
  .channel .icon { color: var(--accent); }
  :where([data-theme="dark"]) .channel .icon { color: var(--link); }
  a.channel:active { transform: scale(.98); }
  @media (hover: hover) and (pointer: fine) {
    a.channel:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
  }
  .channel--static { box-shadow: none; background: transparent; padding-block: .4rem; }

  .form-card .bezel__core { padding: clamp(1.25rem, 4vw, 2.6rem); }
  .form-card h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
  .form-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; }
  .form-card__for { margin-top: .3rem; font-size: var(--t-sm); color: var(--ink-3); }
  .form-card__time { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--link); font: 650 var(--t-xs)/1 var(--font-body); white-space: nowrap; }
  .form-card__sub { margin-top: 1.25rem; color: var(--ink-1); font-weight: 550; }
  .form-card__hint { margin-top: .3rem; font-size: var(--t-sm); color: var(--ink-3); }
  .form-card form { margin-top: 1.5rem; }

  /* The form's three numbered parts, as on ClearFlow's PDF */
  fieldset { border: 0; padding: 0; min-width: 0; }
  .part { display: grid; gap: 1.4rem; }
  .part + .part { margin-top: 2.25rem; }
  .part__title {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    padding-bottom: .7rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line-2);
    font: 650 1.0625rem/1.2 var(--font-display); letter-spacing: .01em; color: var(--ink-1); text-transform: uppercase;
  }
  .part__num { display: grid; place-items: center; min-width: 2.2rem; height: 1.9rem; border-radius: var(--r-tag); background: var(--accent); color: var(--accent-ink); font: 700 .8125rem/1 var(--font-body); }
  .group > legend { padding: 0; margin-bottom: .6rem; font: 650 var(--t-sm)/1.3 var(--font-body); color: var(--ink-1); }
  .legend__aside { font-weight: 500; color: var(--ink-3); }
  .group > .field__error { margin-bottom: .5rem; }
  .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.25rem; }
  .choices-grid { display: grid; gap: .5rem; }
  .choices-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .group[aria-invalid="true"] .radio, .utility__row[aria-invalid="true"] .radio { box-shadow: inset 0 0 0 1.5px var(--neg); }

  /* Utilities: a Yes / No / Unsure grid that becomes rows of buttons on phones */
  .utility { border-radius: var(--r-input); background: var(--bg-tint); padding: .5rem 1rem 1rem; }
  .utility__head, .utility__row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 5.25rem); gap: .5rem; align-items: center; }
  .utility__head { padding: .5rem 0; font: 650 var(--t-xs)/1.2 var(--font-body); color: var(--ink-3); }
  .utility__head span + span { text-align: center; }
  .utility__row { padding-top: .5rem; }
  .utility__row + .utility__row { border-top: 1px solid var(--line); margin-top: .5rem; }
  .utility__name { font-size: var(--t-sm); font-weight: 550; color: var(--ink-1); }
  .radio--cell { justify-content: center; grid-template-columns: auto; min-height: 2.75rem; padding: .5rem; background: var(--surface); }
  .radio--cell span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .radio--cell input { margin: 0; }
  .utility__row > .field__error { grid-column: 1 / -1; }
  .form-card .btn { margin-top: 2rem; }
  .form-card__fine { margin-top: 1.1rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.55; }
  .form-card__fine a { color: var(--link); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
  .done { display: grid; justify-items: start; gap: .9rem; padding-block: 1rem; }
  .done__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--pos-soft); color: var(--pos); }

  /* Footer ---------------------------------------------------------------- */
  .site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; border-top: 1px solid var(--line); background: var(--bg-tint); font-size: var(--t-sm); }
  .site-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
  .site-footer__brand p { margin-top: .35rem; color: var(--ink-2); max-width: 34ch; line-height: 1.55; }
  .site-footer__about { margin-top: 1.1rem; font: 650 var(--t-sm)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-1); }
  .brand-plate { display: inline-block; }
  .brand-plate img { height: 3.4rem; width: auto; }
  .site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .7rem 2rem; }
  .site-footer__nav a, .site-footer__legal a { color: var(--ink-2); transition: color 200ms ease; }
  .site-footer__contact { display: grid; gap: .7rem; }
  .site-footer__contact a, .site-footer__hours { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); }
  .site-footer__contact .icon { color: var(--ink-3); }
  @media (hover: hover) and (pointer: fine) {
    .site-footer__nav a:hover, .site-footer__legal a:hover, .site-footer__contact a:hover { color: var(--ink-1); }
  }
  .site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: var(--ink-3); }
  .site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .site-footer__credits { flex-basis: 100%; font-size: var(--t-xs); }

  /* In the dark theme the logo sits on a light plate rather than being inverted */
  :where([data-theme="dark"]) :is(.site-nav__brand, .brand-plate) {
    background: rgb(253 254 255 / .94); border-radius: 12px; padding: .2rem .45rem;
  }
  :where([data-theme="dark"]) .site-nav__brand img { height: 2.3rem; }

  /* Legal and 404 pages --------------------------------------------------- */
  .page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)); }
  .page-head p { margin-top: 1rem; color: var(--ink-3); }
  .prose { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
  .prose > * { max-width: 72ch; }
  .prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 2.6rem; }
  .prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
  .prose p, .prose ul, .prose blockquote { margin-top: 1rem; }
  .prose ul { padding-left: 1.2rem; list-style: disc; }
  .prose li + li { margin-top: .4rem; }
  .prose li::marker { color: var(--aqua); }
  .prose blockquote { padding: 1rem 1.25rem; border-radius: 14px; background: var(--mid-soft); color: var(--ink-1); }
  .prose blockquote p { margin: 0; }
  .prose code { font-size: .9em; padding: .1em .35em; border-radius: 6px; background: var(--bg-tint); }
  .prose .note { color: var(--ink-3); }
  .page-head--wide { max-width: var(--page); }
  .page-head--wide h1 { margin-top: .25rem; max-width: 18ch; }
  .page-head--wide .lede { margin-top: 1.25rem; max-width: 62ch; color: var(--ink-2); }
  .section--first { padding-top: clamp(3rem, 6vw, 4.5rem); }
  .stages__group { margin-top: 2.5rem; font-size: 1.125rem; }
  .stages { margin-top: 1rem; display: grid; gap: .6rem; }
  .stage-card { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
  .stage-card summary {
    display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
    min-height: 3.5rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; border-radius: 18px;
  }
  .stage-card summary::-webkit-details-marker { display: none; }
  .stage-card__code { display: grid; place-items: center; height: 2.2rem; border-radius: var(--r-tag); background: var(--accent-soft); color: var(--link); font: 700 .8125rem/1 var(--font-body); }
  .stage-card__title { font: 620 1.0625rem/1.3 var(--font-display); color: var(--ink-1); }
  .stage-card__title small { display: block; margin-top: .15rem; font: 500 var(--t-xs)/1.3 var(--font-body); color: var(--ink-3); }
  .stage-card__toggle { color: var(--ink-3); transition: transform 300ms var(--ease-out); }
  .stage-card[open] .stage-card__toggle { transform: rotate(45deg); }
  .stage-card__body { padding: 0 1.1rem 1.25rem calc(1.1rem + 3.4rem + 1rem); display: grid; gap: .35rem; }
  .stage-card__body h4 { margin-top: .5rem; font: 650 var(--t-sm)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-1); }
  .stage-card__body p { color: var(--ink-2); max-width: 60ch; }
  .results { margin-top: 2rem; display: grid; gap: .6rem; }
  .results__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .results__row h3 { font-size: 1.0625rem; }
  .results__row p { margin-top: .15rem; font-size: var(--t-sm); color: var(--ink-2); }
  .cta-band { display: grid; gap: 1.25rem; justify-items: start; }
  .lost { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: var(--section); }
  .lost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .75rem; }
}

/* -------------------------------------------------------------- responsive */
@layer sections {
  @media (max-width: 1180px) {
    .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Six steps no longer fit across: the timeline turns vertical */
    .timeline { grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 46rem; }
    .step:not(:last-child)::before, .step:not(:last-child)::after { left: calc(1.4rem - 1px); right: auto; top: 3.6rem; bottom: calc(-2rem + .8rem); width: 2px; height: auto; }
    .step:not(:last-child)::after { background: linear-gradient(180deg, var(--aqua), var(--accent)); transform-origin: top; }
    .step { grid-template-columns: auto 1fr; column-gap: 1.25rem; }
    .step__num { grid-row: span 3; }
    .step h3 { margin-top: .35rem; }
    .flow { grid-template-columns: minmax(0, 1fr); }
    .flow__shared .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
    .flow__shared .rail__stage { grid-template-columns: minmax(0, 1fr); align-items: start; gap: .5rem; }
    .flow__shared .rail__stage:not(:last-child)::after { left: auto; right: calc(-.75rem + 2px); top: calc(1.05rem - 1px); width: calc(.75rem - 4px); height: 2px; }
    .flow__split .icon { rotate: 90deg; }
  }

  @media (max-width: 980px) {
    .hero__grid, .stick, .showcase, .enquire__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__media { max-width: 36rem; padding-left: 10%; }
    .stick__head { position: static; }
    .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .tile--pay, .tile--monitor { grid-column: span 3; }
    .tile--care, .tile--eco, .tile--size { grid-column: span 2; }
    .phones { max-width: 30rem; }
  }

  @media (max-width: 760px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento > * { grid-column: auto !important; }
    .perks, .qa, .prices, .choices, .service, .models, .pair, .proof { grid-template-columns: minmax(0, 1fr); }
    .site-footer__top { grid-template-columns: minmax(0, 1fr); }
    .choices-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Board snapshot: each row becomes its own card */
    .duty-wrap { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
    .duty, .duty tbody, .duty tr, .duty th, .duty td { display: block; width: 100%; }
    .duty thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .duty tbody tr { padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
    .duty tbody tr + tr { margin-top: .6rem; }
    .duty tbody tr + tr > * { border-top: 0; }
    .duty th, .duty td { padding: .3rem 0; }
    .duty tbody th { padding-bottom: .5rem; }
    .duty td::before { content: attr(data-label); display: block; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
    .duty__shared td { background: none; }
    .duty__both .icon { display: none; }
  }

  @media (max-width: 640px) {
    .hero__media { padding: 0; }
    .hero__photo { aspect-ratio: 4 / 3.4; }
    .hero__inset { display: none; }
    .roles { grid-template-columns: minmax(0, 1fr); }
    /* Details span the full row on phones instead of squeezing beside the status */
    .station { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "meta meta"; row-gap: .3rem; }
    .station .status { align-self: start; }
    .station__glyph { display: none; }
    .phones { aspect-ratio: 1 / 1.36; }
    .phone { width: 52%; }
    .phone--back { left: 2%; }
    .phone--front { right: 2%; top: 12%; }
    /* Shared stages back to a column; the two outlets stay side by side */
    .flow__shared .rail { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
    .flow__shared .rail__stage { grid-template-columns: 3.1rem minmax(0, 1fr); align-items: center; gap: .75rem; }
    .flow__shared .rail__stage:not(:last-child)::after { left: calc(1.55rem - 1px); right: auto; top: 2.15rem; width: 2px; height: calc(100% - 1.6rem); }
    .flow__outlets { gap: .5rem; }
    .outlet { padding: 1rem .75rem; }
    .outlet .rail__stage { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
    .outlet .rail__stage:not(:last-child)::after { display: none; }
    .outlet .rail__code { justify-self: start; padding-inline: .6rem; }
    .outlet__out { flex-direction: column; align-items: flex-start; }
    .choices-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .utility { padding-inline: .75rem; }
    .utility__head { display: none; }
    .utility__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .utility__name { grid-column: 1 / -1; }
    .radio--cell { grid-template-columns: auto auto; gap: .5rem; }
    .radio--cell span { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; }
    .stage-card summary { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; }
    .stage-card__body { padding-left: 1.1rem; }
  }
}

/* ----------------------------------------------------------------- motion */
@layer motion {
  /* Load sequence for the hero: CSS animations, so they stay smooth while the
     page is still busy loading. */
  @keyframes rise   { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--r-frame)); } to { clip-path: inset(0 0 0 0 round var(--r-frame)); } }
  @keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
  @keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drift  { to { transform: translateX(-50%); } }
  @keyframes ping   { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

  .js [data-intro] { animation: rise 1000ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
  .js .hero__photo { animation: unveil 1250ms var(--ease-in-out) 120ms both; }
  .js .hero__photo img { animation: settle 1700ms var(--ease-out) 120ms both; }
  .js .hero__inset { animation: rise 1000ms var(--ease-out) 650ms both; }

  /* Scroll reveal: once per element, never re-animated on the way back up */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
    transition:
      opacity 900ms var(--ease-out),
      transform 900ms var(--ease-out),
      filter 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

  /* The treatment flow: each stage lights in treatment order (the shared
     four, then both outlets together, since they run in parallel), then a
     drip fills each outlet's bottle. Stage i lights at 300ms + i * 320ms; the
     last of eight is lit by about 2.5s, when the bottles start to fill. */
  .js .flow .rail__code {
    background: var(--shell); color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-2);
    transition: background-color 350ms ease, color 350ms ease, box-shadow 350ms ease;
    transition-delay: calc(300ms + var(--i, 0) * 320ms);
  }
  .js .flow.is-in .rail__code { background: var(--c); color: var(--c-ink); box-shadow: none; }
  .js .flow .rail__stage::after { transform: scaleY(0); transform-origin: top; transition: transform 300ms var(--ease-out); transition-delay: calc(450ms + var(--i, 0) * 320ms); }
  .js .flow.is-in .rail__stage::after { transform: none; }
  .js .flow .bottle__water { transform: translateY(160px); transition: transform 2400ms linear 2700ms; }
  .js .flow.is-in .bottle__water { transform: none; }
  .js .flow.is-in .bottle__drop { animation: drip 600ms cubic-bezier(.55, 0, 1, .45) 2700ms 4 both; }
  .js .flow.is-in .bottle__drop--late { animation-delay: 3000ms; }
  .js .flow.is-in .bottle__wave { animation: wave 1200ms linear 2700ms 2; }
  @media (max-width: 1180px) and (min-width: 641px) {
    .js .flow__shared .rail__stage::after { transform: scaleX(0); transform-origin: left; }
  }
  @keyframes drip {
    0%   { opacity: 0; transform: translateY(0); }
    15%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(70px); }
  }
  @keyframes wave { to { transform: translateX(30px); } }

  /* The timeline line draws, then each step lights in turn */
  .js .step::after { transform: scaleX(0); transition: transform 420ms var(--ease-in-out); transition-delay: calc(260ms + var(--i, 0) * 480ms); }
  .js .timeline.is-in .step::after { transform: scaleX(1); }
  .js .step__num { background: var(--surface); color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--line-2), 0 0 0 6px var(--bg); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; transition-delay: calc(100ms + var(--i, 0) * 480ms); }
  .js .timeline.is-in .step__num { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--bg); }
  @media (max-width: 1180px) {
    .js .step::after { transform: scaleY(0); }
    .js .timeline.is-in .step::after { transform: scaleY(1); }
  }

  /* One marquee, constant speed, paused while someone is reading it */
  .marquee__track { animation: drift 55s linear infinite; }
  .trust.is-paused .marquee__track { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

  /* Real availability, so this dot earns its pulse */
  .slots__dot::after { animation: ping 2.2s var(--ease-out) 2; opacity: 0; }

  /* Theme change: the new theme opens as a circle from the switch (site.js
     drives it). The browser's own crossfade is off so only the circle plays. */
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

  /* Reduced motion: keep the fades that help comprehension, drop movement */
  @media (prefers-reduced-motion: reduce) {
    .js [data-intro], .js .hero__inset { animation: fade 300ms ease both; }
    .js .hero__photo, .js .hero__photo img { animation: none; }
    .js [data-reveal] { transform: none; filter: none; transition: opacity 300ms ease; }
    .js .step::after { transform: none; transition: none; }
    .js .flow .bottle__water { transform: none; transition: none; }
    .js .flow.is-in .bottle__drop, .js .flow.is-in .bottle__wave { animation: none; }
    .js .flow .rail__code, .js .flow .rail__stage::after { transition: none; transform: none; background: var(--c); color: var(--c-ink); box-shadow: none; }
    .stage-card__toggle { transition: none; }
    .js .step__num { transition: none; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__track { animation: none; width: auto; }
    .marquee__group { flex-wrap: wrap; padding-right: 0; }
    .marquee__group[aria-hidden="true"] { display: none; }
    .slots__dot::after { animation: none; }
    .motion-toggle { display: none; }
    .menu, .menu__nav a { transition: opacity 200ms ease; clip-path: none; transform: none; }
    .burger i { transition: none; }
    .theme-toggle__sun, .theme-toggle__rays, .theme-toggle__bite { transition: none; }
    ::view-transition-new(root) { animation: fade 200ms ease both; }
  }
}

/* -------------------------------------------------------------- utilities */
@layer utilities {
  .mt-1 { margin-top: .5rem; }
  .mt-2 { margin-top: 1rem; }
  .mt-3 { margin-top: 1.5rem; }
  .tnum { font-variant-numeric: tabular-nums; }

  /* While the theme changes, every colour switches in the same frame instead
     of each element fading on its own clock. The switch's icon still morphs. */
  .theme-swap :not(.theme-toggle, .theme-toggle *),
  .theme-swap :not(.theme-toggle, .theme-toggle *)::before,
  .theme-swap :not(.theme-toggle, .theme-toggle *)::after { transition: none !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-nav, .menu, .skip-link, .nav-sentinel, .motion-toggle, .marquee__group[aria-hidden="true"] { display: none !important; }
  .js [data-reveal], .js [data-intro], .js .hero__photo, .js .hero__photo img {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
    animation: none !important; transition: none !important;
  }
  .marquee__track { animation: none !important; width: auto; }
  .marquee__group { flex-wrap: wrap; }
  .hero { padding-top: 1rem; }
  .section { padding-block: 2rem; }
  .band__photo { display: none; }
  body { background: #fff; color: #000; }
}