/* =============================================================================
   base.css Ã¢â‚¬â€ the fluid foundation. Copy into every site as css/base.css.
   Nothing here is width-locked: type, spacing and layout scale continuously
   from ~360px phones to ultrawide. This file is why sites are dynamic off the bat.
   ============================================================================= */

/* Brand webfonts Ã¢â‚¬â€ served from /fonts (licensed, do not redistribute) */
@font-face {
  font-family: "PP Museum"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/PPMuseum-Light.woff2") format("woff2"), url("../fonts/PPMuseum-Light.woff") format("woff");
}
@font-face {
  font-family: "PP Radio Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/PPRadioGrotesk-Regular.woff2") format("woff2"), url("../fonts/PPRadioGrotesk-Regular.woff") format("woff");
}

:root {
  /* COLOURS Ã¢â‚¬â€ The Bower V3 (Figma tokens: AdmiralBlue / GoldenSunset / SeaformWhite / OceanGreen). */
  --brand:      #071838;   /* Ocean Blue */
  --brand-dark: #040e22;   /* darker Ocean Blue (hovers, headers) */
  --accent:     #B36835;   /* GoldenSunset */
  --ocean-green:#025155;   /* Ocean Green */
  --muted:      #6b6b6b;   /* secondary text */
  --surface:    #E6E6E6;   /* SeaformWhite */
  --ink:        #071838;   /* body text */
  --white:      #ffffff;

  /* TYPE Ã¢â‚¬â€ fluid scale mapped from the Figma text styles (H1@80, H2@61, SubH1@22,
     BodyCopyLrg@23, BodyCopyMed@18, Disclaimer@16 Ã¢â‚¬â€ all on a 1920 canvas). */
  /* "gill-sans-nova" is Gill Sans Nova Light from Adobe Fonts (Typekit, linked in head.php). */
  --font:         "gill-sans-nova", "Gill Sans", "PP Radio Grotesk", system-ui, sans-serif;
  --font-sub:     "PP Radio Grotesk", var(--font);
  --font-display: "PP Museum", Georgia, serif;
  --t-header: clamp(44px, 4.2vw, 80px);    /* H1 Ã¢â‚¬â€ PP Museum Light */
  --t-h1:     clamp(38px, 4.2vw, 80px);
  --t-h2:     clamp(30px, 3.2vw, 61px);    /* H2 Ã¢â‚¬â€ PP Museum Light */
  --t-h3:     clamp(24px, 2.6vw, 31px);
  --t-sub:  clamp(15px, 1.15vw, 22px);     /* SubH1 Ã¢â‚¬â€ Radio Grotesk, tracked, uppercase */
  --t-lg:   clamp(17px, 1.2vw,  23px);     /* BodyCopyLrg Ã¢â‚¬â€ Gill Sans Light */
  --t-md:   clamp(15px, .95vw,  18px);     /* BodyCopyMed */
  --t-body: 16px;
  --t-small: 13px;
  --t-cta:   clamp(14px, .85vw, 16px);     /* pill button label Ã¢â‚¬â€ PP Museum Light */

  /* SPACING Ã¢â‚¬â€ gutters and section rhythm breathe with the viewport.
     Figma canvas: 1920 wide, 200px side margins Ã¢â€ â€™ 1520 content width. */
  --wrap: 1520px;                             /* max content width; page itself is fluid */
  --pad:  clamp(20px, 5vw, 96px);             /* fluid side padding */
  --section-y: clamp(56px, 8vw, 128px);       /* vertical section rhythm */
  --measure: 68ch;                            /* readable line-length cap */

  --tail-band: 19.375vw;   /* whale-tail band height (svg 1920x372) â€” MUST be the
                              same reference for BOTH mask layers, else a ~1px
                              seam appears where neither layer covers */
  --hero-run: 100svh;      /* scroll the hero video holds for while the marble
                              tail sweeps up over it (100svh = a full sweep) */
  --nav-h: 68px;
  --radius: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Minimal reset Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; overscroll-behavior-y: none; }
body {
  font-family: var(--font);
  font-weight: 300;   /* Gill Sans Nova Light Ã¢â‚¬â€ the only weight in the Typekit kit */
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                         /* body never gets a horizontal scrollbar */
  overscroll-behavior-y: none;                /* no rubber-band bounce past the top/bottom */
  overflow-wrap: break-word;                  /* long words wrap instead of overflowing (else clipped by overflow-x) */
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Typography scale (headings are PP Museum Light per the V3 design) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
h1 { font-family: var(--font-display); font-size: var(--t-h1); line-height: 1.2; font-weight: 300; letter-spacing: .02em; }
h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.2; font-weight: 300; letter-spacing: .02em; }
h3 { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.2; font-weight: 300; letter-spacing: .02em; }
p  { max-width: var(--measure); }
/* Unbreakable tokens (URLs, emails, long single words) break instead of running off narrow screens. */
a, h1, h2, h3, h4, h5, h6, td, li { overflow-wrap: anywhere; }
.eyebrow { font-family: var(--font-sub); font-size: var(--t-sub); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Layout helpers Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }

/* Auto-fit grid that never overflows: cells wrap when they can't hold min width. */
.grid { display: grid; gap: clamp(16px, 3vw, 32px); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* Wide content (tables/code/diagrams) scrolls inside its own box, never the page. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Buttons Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Pill buttons Ã¢â‚¬â€ PP Museum Light label, fully rounded (Figma: 20px radius on a 40px pill). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 0.35em 2.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-cta);
  letter-spacing: .02em;
  transition: all 0.4s ease-out !important;
}
.btn:active { transform: translateY(1px); }
/* Submit in flight: spinner appended after the label (main.js toggles .is-loading) */
.btn.is-loading::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .6em;
  vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-fill    { background: var(--brand); color: var(--white); }
.btn-fill:hover  {background: #c28c68;}
.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand); color: var(--white); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Hero (100svh so mobile chrome doesn't clip it) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;   /* vh fallback for Safari < 15.4 */
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); z-index: -1; }
.hero__inner { padding: var(--pad); display: grid; gap: 1.2rem; justify-items: center; }
.hero h1 { font-size: var(--t-header); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Navigation Ã¢â‚¬â€ links left Ã‚Â· logo centre Ã‚Â· pills right (Figma Header) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: clamp(12px, 2.2vw, 42px);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);   /* start at 0 so the glass FADES in instead of snapping (flash) */
  transition: transform .3s var(--ease), background .3s var(--ease), padding .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease), -webkit-backdrop-filter .3s var(--ease); }
/* groups sit at the page edges (the .wrap padding is overridden); the logo is
   absolutely centred on .nav, which spans the viewport, so it is page-centred */
.nav__bar { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  min-height: var(--nav-h); max-width: none; padding-inline: 35px; }
.nav__logo { position: absolute; left: 50%; transform: translateX(-50%); }
.nav__logo img { width: clamp(132px, 12.5vw, 240px); height: auto;
  transition: width .3s var(--ease); }
/* glass state: 20% smaller logo so the whole bar reads slimmer */
.nav.is-scrolled .nav__logo img {width: clamp(106px, 12vw, 192px);}
/* Both nav groups sit ~60px in from the page gutters (design: closer to the logo) */
.nav__links { display: flex; gap: clamp(8px, .8vw, 15px); }
.nav__links a, .nav__faqs { font-family: var(--font-sub); font-size: clamp(11px, .68vw, 13px); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; white-space: nowrap; }
.nav__right { display: flex; align-items: center; gap: clamp(10px, 1vw, 20px); margin-left: auto; }
.nav__cta { padding-block: .25em; min-width: clamp(150px, 11.5vw, 220px); }
.nav__cta--ghost { background: rgba(255,255,255,.05); backdrop-filter: blur(12px); border-color: currentColor; color: inherit; }
/* Homepage bar: transparent over the hero. Sub-pages (.nav--static): solid navy
   at the top. Once scrolled, BOTH become the stained-glass strip Ã¢â‚¬â€ translucent
   navy, backdrop blur, soft diffuse shadow. */
.nav:not(.nav--static) { background: transparent; color: var(--surface); }
/* sub-page bar: solid navy, with breathing room below the logo too */
.nav.nav--static { background: var(--brand); color: var(--surface);
  padding-bottom: clamp(10px, 1.6vw, 28px); }
.nav.is-scrolled { background: rgba(7,24,56,.72); color: var(--surface);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px -12px rgba(8,15,26,.35);
  padding-top: clamp(8px, 1vw, 18px); padding-bottom: clamp(4px, .5vw, 10px); }
/* Fill CTA is always white-on-navy Ã¢â‚¬â€ no flip between the transparent and glass states. */
.nav .nav__cta--fill { background: var(--surface); color: var(--brand); }

.nav__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; padding: 8px; min-width: 44px; min-height: 44px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(86vw, 340px);
  background: var(--white); color: var(--ink); z-index: 60; padding: clamp(24px, 6vw, 48px);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__close { align-self: flex-end; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 32px; line-height: 1; background: none; border: 0; color: inherit; }
.drawer__links { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; font-size: var(--t-lg); }

@media (max-width: 860px) {
  /* logo left, burger right â€” the desktop links, FAQs and pills all move into
     the drawer (FAQs is listed there in nav.php) */
  .nav__links, .nav__cta, .nav__faqs { display: none; }
  .nav__burger { display: flex; }
  .nav__bar { gap: 8px; }
  .nav__logo { position: static; left: auto; transform: none; margin-right: auto; }
  .nav__logo img { width: clamp(120px, 40vw, 190px); }
  .nav.is-scrolled .nav__logo img { width: clamp(96px, 32vw, 152px); }
  .nav__right { margin-right: 0; }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Footer Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.footer { background: var(--brand-dark); color: var(--white); padding-block: clamp(40px, 6vw, 72px); }
.footer__inner { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.footer__legal { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; font-size: var(--t-cta); letter-spacing: .06em; text-transform: uppercase; }
.footer__social { display: flex; gap: 1rem; list-style: none; padding: 0; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.12); }
.footer__copy { font-size: 13px; opacity: .8; line-height: 1.8; max-width: none; }
.footer__copy a { text-decoration: underline; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Forms Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form label { display: grid; gap: .4rem; font-size: 14px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; padding: .8em 1em; border: 1px solid #cfcfcf; border-radius: var(--radius); background: var(--white); width: 100%;  /* font-size >=16px so iOS Safari doesn't zoom on focus */
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 13px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* honeypot */
.form__msg { font-size: 14px; }
.form__msg.is-error { color: #b0261a; }

/* Body offset so fixed nav never covers content on sub-pages. */
.has-static-nav { padding-top: calc(var(--nav-h) + clamp(24px, 3.5vw, 64px)); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Legal pages (privacy / terms) Ã¢â‚¬â€ long-form readable typography Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.legal { max-width: 95ch; }
.legal p { max-width: none; }   /* lift the global 68ch paragraph cap inside legal pages */
.legal h1 { font-size: var(--t-h2); }
.legal h2 { font-size: var(--t-h3); margin-top: 2.2rem; }
.legal h3 { font-size: var(--t-lg); margin-top: 1.6rem; }
.legal p, .legal ul, .legal ol { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-top: .4rem; }
.legal a { color: var(--brand); text-decoration: underline; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Image-layout repertoire Ã¢â‚¬â€ frames, captions, galleries (immersive, not stiff) Ã¢â€â‚¬Ã¢â€â‚¬ */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-cap { position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem; color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); font-weight: 600; pointer-events: none; }
.gallery { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.gallery-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Reduced motion: every animation must have a no-motion path (spec Ã‚Â§1.5). Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* =============================================================================
   FRONT-END RESET (30 Jul 2026) Ã¢â‚¬â€ the V3 homepage CSS was scrapped pending the
   new design. Everything above is the untouched starter foundation. The blocks
   below are the only page-specific styles kept (thank-you page + reveal).
   ============================================================================= */

/* Scroll reveal: main.js adds .in when the element enters view */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Thank-you page Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.lp { background: var(--brand); }
.lp-eyebrow { font-family: var(--font-sub); text-transform: uppercase; font-weight: 400; letter-spacing: .34em; color: var(--surface); margin: 0; }
.lp-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 6vw, 86px); line-height: 1.12; letter-spacing: .02em; color: var(--surface); margin: 0; }
.lp-statement__note { font-size: clamp(14px, 1.1vw, 21px); font-weight: 300; letter-spacing: .04em; color: var(--surface); opacity: .85; max-width: 70ch; }
.lp-thanks { min-height: 100svh; display: grid; place-content: center; gap: 1.2rem; text-align: center; padding: var(--pad); color: var(--surface); }
.lp-thanks p { margin-inline: auto; }
.lp-thanks__back { color: var(--surface); text-decoration: underline; text-underline-offset: 3px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =============================================================================
   Homepage rebuild Ã¢â‚¬â€ TheBower-Desktop1920 (new design, 30 Jul 2026).
   Section 1: nav (foundation styles above) + hero video + whale-tail handover.
   ============================================================================= */

/* Warm cream behind the marble texture (sampled from Textures/MarbleTexture.webp) */
:root { --cream: #F5F1EA; }

/* -- Hero -- full-viewport brand video on a navy stage; the marble canvas sits
   above it in z-order and sweeps over it, led by the whale tail. -- */
/* The video is NOT masked. The hero box runs a full sweep taller than the
   viewport and its inner pin sticks at 100svh, so a clean, full-viewport video
   holds still while the cream marble canvas scrolls up over it. */
.bw-hero { position: relative; z-index: 0; background: var(--brand);
  height: calc(100vh + var(--hero-run)); height: calc(100svh + var(--hero-run)); }
.bw-hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh;
  min-height: 480px; overflow: clip; }
.bw-hero__frame { position: relative; height: 100%; overflow: hidden; }
.bw-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* top scrim so the transparent nav reads over the sky */
.bw-hero__frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 32%; z-index: 1;
  pointer-events: none; background: linear-gradient(180deg, rgba(7,24,56,.55), rgba(7,24,56,0)); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Whale tail + marble canvas Ã¢â‚¬â€ navy curve over the cream marble that the
   following sections sit on. The tail SVG's solid top meets the hero's navy. Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Texture lives on an oversized ::before layer that main.js drifts vertically
   (--plx) as you scroll Ã¢â‚¬â€ a soft parallax. No JS / reduced motion: static. */
.bw-marble { position: relative; z-index: 1; overflow: hidden; background: var(--cream); }
/* HOMEPAGE ONLY (--sweep): the canvas rides up over the held hero video, its top edge
   cut into the whale tail so the tail is what passes over the footage. Sub-pages
   (medical) reuse .bw-marble on its own, so EVERYTHING tail-related belongs here —
   the pull-up and mask would hide their intro under the fixed nav, and the tail-band
   padding would open a ~279px void above a heading with no tail to clear. */
.bw-marble--sweep { margin-top: calc(-1 * var(--hero-run));
  padding-top: var(--tail-band);            /* content clears the tail curve */
  -webkit-mask-image: url("../images/whale-tail-up.svg"), linear-gradient(#000 0 0);
          mask-image: url("../images/whale-tail-up.svg"), linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat, no-repeat; mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
          mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
  -webkit-mask-position: top, bottom; mask-position: top, bottom; }
.bw-marble::before { content: ""; position: absolute; left: 0; right: 0; top: -12%; bottom: -12%;
  background: url("../images/marble-cream.webp") center / cover no-repeat;
  opacity: .45;  /* 55% lighter â€” the --cream base shows through */
  transform: translateY(var(--plx, 0px)); will-change: transform; }
.bw-marble > * { position: relative; }
.bw-tail { margin-top: -1px; }   /* no hairline gap against the navy hero */
.bw-tail img { width: 100%; height: auto; display: block; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Intro Ã¢â‚¬â€ A Life of Distinction Awaits (on the marble canvas) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-intro {padding: clamp(3.5rem, 8vw, 9rem) var(--pad) clamp(4rem, 0vw, 9rem);}
/* intro copy is centred (two-class selectors so this also wins over the mobile
   left-align rule), with a larger, slightly heavier opening line */
.bw-intro__col .bw-body,
.bw-intro__col .bw-body p { text-align: center; text-align-last: center; }
.bw-intro__lead { font-weight: 600; font-size: clamp(21px, 1.5vw, 29px); line-height: 1.4; }
.bw-intro__name { font-weight: 600; }
.bw-intro__col { max-width: 867px; margin-inline: auto; display: grid;
  gap: clamp(1.8rem, 3.5vw, 3.5rem); justify-items: center; text-align: center; }

/* Short bronze rule under headings (GoldenSunset) Ã¢â‚¬â€ .rule-grow animates it
   from the centre outward when it enters view (main.js reveal observer). */
.bw-rule { width: min(292px, 40vw); height: 1px; background: var(--accent); border: 0; margin-inline: auto; }
.rule-grow { transform: scaleX(0); transform-origin: 50% 50%; transition: transform 1s var(--ease) .25s; }
.rule-grow.in { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .rule-grow { transform: none; transition: none; } }

/* Big body copy Ã¢â‚¬â€ Gill Sans Light, justified (Figma BodyCopyLrg) */
.bw-body { font-size: var(--t-lg); line-height: 1.5; letter-spacing: .04em;
  text-align: justify; text-align-last: left; max-width: 770px; }
.bw-body p { max-width: none; }
.bw-body p + p { margin-top: 1em; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Wave title Ã¢â‚¬â€ main.js splits [data-wave] lines into letters; when the
   heading enters view (.in) each letter rises and fades on a stagger, so the
   reveal travels through the text like a wave, line after line. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-wave__line { display: block; }
.bw-wave .ch { display: inline-block; white-space: pre; opacity: 0; transform: translateY(.5em);
  transition: opacity .55s var(--ease), transform .7s cubic-bezier(.22,.9,.32,1.18);
  transition-delay: calc(var(--i) * 42ms); }
.bw-wave.in .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bw-wave .ch { opacity: 1; transform: none; transition: none; } }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Scroll-grow brand video Ã¢â‚¬â€ starts ~44% wide, grows as it rises through the
   viewport until it sits 50px from each page edge (main.js [data-grow-video]).
   Sized by escaping the section's side padding symmetrically (not 100vw), so it
   stays perfectly centred regardless of scrollbar width. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-grow { margin: clamp(2.5rem, 6vw, 6rem) calc(50px - var(--pad)) 0;
  transform-origin: 50% 50%; will-change: transform; }
.bw-grow video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Fixed-background parallax bleed Ã¢â‚¬â€ the image is position:fixed (pinned to
   the viewport) and clip-path confines it to this 95svh window, so the page
   scrolls past a stationary image. iOS-safe, unlike background-attachment. Ã¢â€â‚¬Ã¢â€â‚¬ */
/* navy base: the fixed image can never flash the page white before it paints */
.bw-fixedbleed { position: relative; height: 95vh; height: 95svh; clip-path: inset(0);
  background: var(--brand); }
.bw-fixedbleed > img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; }
/* blackÃ¢â€ â€™transparent legibility gradient along the bottom Ã¢â‚¬â€ behind the note, over the image */
.bw-fixedbleed::after { content: ""; position: absolute; inset: auto 0 0; height: 90px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); pointer-events: none; }
.bw-fixedbleed__note { position: absolute; z-index: 1; left: var(--pad);
  bottom: calc(clamp(1.2rem, 3vw, 4rem) - 15px);
  color: var(--surface); font-size: clamp(12px, .85vw, 16px); letter-spacing: .01em; max-width: none;
  text-shadow: 0 4px 50px rgba(0,0,0,.5); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Statements scroll story Ã¢â‚¬â€ the pin holds a full viewport while main.js maps
   section progress to each image's rise and the active highlight. Without JS
   (or with reduced motion) .is-run is never added: a static full-height band,
   first statement highlighted, images parked out of view. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-statements { position: relative; background: var(--brand); }
.bw-statements__pin { position: relative; height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden; display: grid; place-items: center; }
/* the still behind the words, crossfading between slides */
.bw-statements__img { position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity .9s var(--ease); }
.bw-statements__img.is-active { opacity: 1; }
.bw-statements__img img { width: 100%; height: 100%; object-fit: cover; }
.bw-statements__pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(7,24,56,.42), rgba(7,24,56,.42)),
              radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 72%); }

/* titles run across the full width; the neighbours stay visible, cropped at the edges */
.bw-statements__stage { position: relative; z-index: 2; width: 100%; overflow: hidden;
  display: grid; justify-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
/* justify-self:start so the track's left edge sits at the stage's left edge —
   the grid would otherwise centre this (much wider) child and throw the maths */
.bw-statements__track { justify-self: start; display: flex; align-items: center;
  gap: clamp(48px, 7vw, 150px); will-change: transform; transition: transform .7s var(--ease); }
.bw-statements__slide { flex: 0 0 auto; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 86px); line-height: 1.1; letter-spacing: .04em;
  color: #fff; opacity: .3; white-space: nowrap;
  transition: opacity .6s var(--ease); }
.bw-statements__slide:hover, .bw-statements__slide:focus-visible { opacity: .6; }
.bw-statements__slide.is-active { opacity: 1; }
/* descriptions stack so the block never jumps height between slides */
.bw-statements__descs { display: grid; padding-inline: var(--pad); }
.bw-statements__desc { grid-area: 1 / 1; max-width: 46ch; text-align: center;
  color: rgba(255,255,255,.86); font-size: var(--t-md); line-height: 1.6; letter-spacing: .02em;
  opacity: 0; transition: opacity .6s var(--ease); }
.bw-statements__desc.is-active { opacity: 1; }

/* circular prev/next controls — one on each edge of the frame */
.bw-statements__nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bw-statements__arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(56px, 5.5vw, 78px);
  height: clamp(56px, 5.5vw, 78px);
  border-radius: 50%;
  background: rgba(230,230,230,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  cursor: pointer;
  color: #fff;
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 1;
  padding: 0 0 6px;   /* optical centre — the ‹ › glyphs sit high in the box */
  transition: background .3s var(--ease), color .3s var(--ease);
  }
.bw-statements__arrow[data-st-prev] { left:  clamp(20px, 5vw, 90px); }
.bw-statements__arrow[data-st-next] { right: clamp(20px, 5vw, 90px); }
.bw-statements__arrow:hover, .bw-statements__arrow:focus-visible {
  color: var(--accent); background: rgba(255,255,255,.5); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Statements on mobile Ã¢â‚¬â€ no room for images to rise beside the text, so the
   pin + highlight sequence stays but the active image sits as a steady frame
   below the statements and crossfades on each handover (main.js .is-shown).
   transform is locked off so the desktop rise math can keep running harmlessly. */
@media (max-width: 860px) {
  .bw-statements__arrow { width: 46px; height: 46px; font-size: 26px; }
  .bw-statements__arrow[data-st-prev] { left: 12px; }
  .bw-statements__arrow[data-st-next] { right: 12px; }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ V&A expanding strip Ã¢â‚¬â€ no gaps; the open tile is widest, the rest sit at
   visibly different widths under a light navy veil that lifts on hover/open.
   Hover/focus/tap moves the open state (main.js [data-expand-gallery]). Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-strip { display: flex; }
.bw-strip__tile { position: relative; overflow: hidden; margin: 0; min-width: 0;
  height: clamp(220px, 27vw, 524px); flex: var(--g, 1) 1 0; cursor: pointer;
  transition: flex-grow .65s var(--ease); }
/* resting widths Ã¢â‚¬â€ deliberately uneven so the strip reads composed */
.bw-strip__tile:nth-child(1) { --g: 1.25; }
.bw-strip__tile:nth-child(2) { --g: .9; }
/* the leaves still is the open one at rest and is only 641px wide, so it opens
   narrower than the others â€” smaller on load and less growth on hover */
.bw-strip__tile:nth-child(2).is-open { --g: 1.6; }
.bw-strip__tile:nth-child(3) { --g: 1.3; }
.bw-strip__tile.is-open { --g: 2.2; }
.bw-strip__tile img { width: 100%; height: 100%; object-fit: cover; }
.bw-strip__tile::after { content: ""; position: absolute; inset: 0;
  background: rgba(7,24,56,.35); transition: opacity .5s var(--ease); pointer-events: none; }
.bw-strip__tile.is-open::after, .bw-strip__tile:hover::after { opacity: 0; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Location Ã¢â‚¬â€ Where Life Gets Richer: navy marble band, parallax texture Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-location { position: relative; overflow: hidden; background: var(--brand); color: var(--surface);
  padding: clamp(4rem, 9vw, 10rem) var(--pad); }
.bw-location::before { content: ""; position: absolute; left: 0; right: 0; top: -12%; bottom: -12%;
  background: url("../images/marble-navy.webp") center / cover no-repeat;
  transform: translateY(var(--plx, 0px)); will-change: transform; }
.bw-location > * { position: relative; }
.bw-location__inner { max-width: 867px; margin-inline: auto; display: grid;
  gap: clamp(1.8rem, 3.5vw, 3.5rem); justify-items: center; text-align: center; }
.bw-location .bw-body { max-width: 663px; }
/* copy is centred to match the band's centred heading and rule (two-class
   selectors so this also wins over the mobile left-align rule) */
.bw-location .bw-body,
.bw-location .bw-body p,
.bw-location .bw-body li { text-align: center; text-align-last: center; }
/* In this centred band an OUTSIDE list marker is stranded at the far left of the
   line box, nowhere near its centred text. Drop the markers and carry a dash in
   generated content instead, so it sits against the word and centres with it.
   NBSP, not a plain space: trailing space in content is collapsed. */
.bw-location .bw-body ul { list-style: none; padding-left: 0; }
.bw-location .bw-body li::before { content: "-\00a0"; }
.bw-rule--light { background: rgba(230,230,230,.65); }
.btn-accent { background: var(--accent); color: var(--surface); }
.btn-accent:hover { opacity: .9; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Aerial callouts Ã¢â‚¬â€ precinct render in a 16:9 cover window. Each .bw-callout
   is anchored by --x/--y (label top) with --len as its total drop; the line
   draws upward from the anchor (scaleY, origin bottom), then the label bounces
   in on its own delay (--d). The Bower's own marker is --mono instead: a B
   monogram whose two arms draw outward to a dot each side, then the B pops.
   All keyed off .in from the reveal observer. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-aerial__fig { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.bw-aerial__img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%; }

.bw-callout { position: absolute; left: var(--x); top: var(--y); height: var(--len);
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  gap: .55em; pointer-events: none; }
.bw-callout--plain { height: auto; }
.bw-callout em {
  font-family: var(--font-sub);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(7px, .65vw, 13px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);            /* dark text now that it sits on a light plate */
  background: rgb(255 255 255 / 60%);
  padding: 2px 11px 0px;
  white-space: nowrap;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(9px) scale(.92);
  transition: opacity .45s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .5s),
              transform .45s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .5s);
  }
.bw-callout i {
  flex: 1;
  width: 1px;
  background: rgb(255 255 255 / 85%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease) var(--d);
  }
.bw-aerial__fig.in .bw-callout em { opacity: 1; transform: none; }
.bw-aerial__fig.in .bw-callout i { transform: scaleY(1); }

/* The Bower's own marker: B monogram with an arm drawing outward to a dot each side.
   A row, not a column, so --x/--y are its centre and there is no --len. These rules sit
   AFTER the base ones on purpose — same specificity, so source order is what wins. */
.bw-callout--mono { flex-direction: row; align-items: center; height: auto; gap: .5em;
  transform: translate(-50%, -50%); }
.bw-callout--mono img { width: clamp(20px, 2.9vw, 44px); height: auto; flex: none;
  /* the source SVG has no fill, so it renders black — force it white for the dark render */
  filter: brightness(0) invert(1);
  opacity: 0; transform: scale(.8);
  transition: opacity .5s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .35s),
              transform .5s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .35s); }
.bw-callout--mono i { position: relative; flex: none; width: clamp(18px, 4.5vw, 70px); height: 1px;
  transform: scaleX(0); transition: transform .6s var(--ease) var(--d); }
.bw-callout--mono i:first-of-type { transform-origin: right; }   /* both draw outward from the B */
.bw-callout--mono i:last-of-type  { transform-origin: left; }
/* the dot terminating each arm, on its OUTER end */
.bw-callout--mono i::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%; background: rgb(255 255 255 / 85%); }
.bw-callout--mono i:first-of-type::after { left: -2.5px; }
.bw-callout--mono i:last-of-type::after { right: -2.5px; }
.bw-aerial__fig.in .bw-callout--mono i { transform: scaleX(1); }
.bw-aerial__fig.in .bw-callout--mono img { opacity: 1; transform: none; }
/* mobile: thin the callouts out â€” the render is too small for all of them */
@media (max-width: 860px) {
  .bw-callout--sm-hide { display: none; }
}


/* Ã¢â€â‚¬Ã¢â€â‚¬ Amenities Ã¢â‚¬â€ Effortless by Design: scroll-pinned showcase (Seaton pattern).
   Section height = 100svh + 70svh per extra step; the pin holds while scroll
   drives the step index (main.js [data-scrolly]). Inactive categories stay
   visible but faded; images stack and crossfade with a slight scale settle. Ã¢â€â‚¬Ã¢â€â‚¬ */
/* natural height, normal flow — categories open on click, nothing is pinned */
.bw-amen { position: relative; background: var(--surface); padding-block: var(--section-y); }
.bw-amen__pin { display: block; }
/* inner width capped tighter than --wrap so the title/list sit close to the image */
.bw-amen__inner { width: 100%; max-width: min(var(--wrap), 1340px); margin-inline: auto; padding-inline: var(--pad); }
.bw-amen__inner > h2 { color: var(--brand); margin-bottom: clamp(1.8rem, 3.5vw, 4rem); }
.bw-amen__grid { display: grid; grid-template-columns: minmax(230px, 330px) 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start; }

.bw-amen__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.bw-amen__cat { opacity: .26; transition: opacity .45s var(--ease); }
.bw-amen__cat.is-active { opacity: 1; }
.bw-amen__name { display: inline-block; background: none; border: 0; padding: 0; text-align: left;
  font-family: var(--font-sub); font-weight: 400; font-size: clamp(13px, .95vw, 18px);
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand); cursor: pointer; }
/* Seaton-style accordion: only the active category shows its items */
.bw-amen__items { list-style: none; margin: 0; padding: 0;
  font-size: clamp(14px, .9vw, 17px); line-height: 1.55; letter-spacing: .03em; color: var(--brand);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .55s var(--ease), opacity .45s var(--ease), margin .45s var(--ease); }
.bw-amen__cat.is-active .bw-amen__items { max-height: 12rem; opacity: 1; margin-top: .45em; }

.bw-amen__media { position: relative; margin: 0; aspect-ratio: 5 / 3; overflow: hidden;
  width: 100%; max-width: 980px; justify-self: end; }
.bw-amen__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease), transform 1.3s var(--ease); }
.bw-amen__img.is-active { opacity: 1; transform: scale(1); }
.bw-amen__shot { display: none; }   /* mobile-only; see the mobile block below */

@media (max-width: 760px) {
  .bw-amen__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}


/* Ã¢â€â‚¬Ã¢â€â‚¬ Finishes compare slider Ã¢â‚¬â€ two palettes of the same room; the teal layer is
   clipped to the right of the brace divider (--cx). Drag anywhere (pan-y keeps
   vertical scrolling alive on touch), tap to jump, or arrow-key the handle. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-compare { position: relative; overflow: hidden; width: 100%;
  height: 92vh; height: 92svh;   /* explicit height Ã¢â‚¬â€ aspect-ratio+max-height would cap the WIDTH via size transfer */
  user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.bw-compare__base, .bw-compare__top { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; -webkit-user-drag: none; }
/* straight-edge fallback only Ã¢â‚¬â€ main.js swaps this for a path() that follows
   the brace curve, so the two palettes are masked along the fin itself */
.bw-compare__top { clip-path: inset(0 0 0 var(--cx, 62%)); }
.bw-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--cx, 62%);
  transform: translateX(-50%); width: clamp(80px, 8.5vw, 140px);
  cursor: ew-resize; touch-action: none; }
.bw-compare__brace { width: 100%; height: 100%; object-fit: fill; pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(0,0,0,.25)); }
.bw-compare__knob {
  position: absolute;
  left: 67%;
  bottom: 13%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,234,.9);
  background: rgba(7,24,56,.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #F4F1EA;
  font-size: 28px;
  padding-bottom: 2px;
  letter-spacing: -1px;
  font-weight: 600;
  }
.bw-compare__cap { position: absolute; left: 50%; bottom: clamp(1.2rem, 3.5vh, 2.5rem);
  transform: translateX(-50%); max-width: none; text-align: center;
  font-family: var(--font-sub); font-size: clamp(10px, .8vw, 14px); font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--surface);
  text-shadow: 0 1px 5px rgba(0,0,0,.6); pointer-events: none; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Fixed-bleed CTA + ghost pill (Download Brochure over the kitchen bleed) Ã¢â€â‚¬Ã¢â€â‚¬ */
/* Spans the full width and centres the pill with flex, rather than left:50% +
   translateX(-50%). That older form left the shrink-to-fit box only HALF the
   section to lay out in (from the 50% mark to the right edge), so below ~390px
   the label had ~195px to work with and "Download Brochure" broke onto two
   lines. Full width - the side padding gives it the whole row instead. */
.bw-fixedbleed__cta { position: absolute; z-index: 1; left: 0; right: 0;
  display: flex; justify-content: center; padding-inline: var(--pad);
  bottom: clamp(1.8rem, 5vh, 3.5rem); }
.btn-ghost { background: rgba(230,230,230,.16); color: var(--surface); border-color: rgba(230,230,230,.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(230,230,230,.3); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Life Rights Ã¢â‚¬â€ copy left, palms-walk video right Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-liferights { background: var(--surface); padding: clamp(4rem, 8vw, 9rem) var(--pad) clamp(2rem, 4vw, 4rem); }
.bw-liferights__grid { max-width: var(--wrap); margin-inline: auto; display: grid;
  grid-template-columns: minmax(300px, 640px) minmax(300px, 660px); justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.bw-liferights__copy { display: grid; gap: clamp(1.4rem, 2.8vw, 2.6rem); justify-items: start; }
.bw-liferights__copy h2 { color: var(--brand); }
.bw-liferights__copy .bw-rule { margin-inline: 0; }
.bw-liferights__copy .bw-body { max-width: 470px; }
.bw-liferights__media { margin: 0; width: 100%; aspect-ratio: 20 / 21; overflow: hidden; }
.bw-liferights__media video, .bw-liferights__media img { width: 100%; height: 100%; object-fit: cover; }
/* --reverse: same two-column, media on the left (used to alternate on inner pages) */
.bw-liferights--reverse .bw-liferights__copy { order: 2; }
.bw-liferights--reverse .bw-liferights__media { order: 1; }
@media (max-width: 860px) {
  .bw-liferights__grid { grid-template-columns: 1fr; }
  /* stacked: copy always first, whatever the desktop order */
  .bw-liferights--reverse .bw-liferights__copy { order: 0; }
  .bw-liferights--reverse .bw-liferights__media { order: 0; }
}

/* Bulleted lists inside body copy â€” same type scale as the FAQ answers */
.bw-body ul { margin: .9em 0 0; padding-left: 1.3rem; }
.bw-body li { font-size: var(--t-md); line-height: 1.6; letter-spacing: .02em;
  text-align: left; margin-top: .35em; }
.bw-body ul + p { margin-top: .9em; }
.bw-body small { font-size: .8em; opacity: .75; }

/* -- Care lead-in -- centred heading handing the page over to the care story.
   Was a pinned whale-tail veil carrying the facilities list; that list has been
   removed and the Facilities nav link now points at the amenities showcase. -- */
.bw-carelead { position: relative; background: var(--surface);
  display: grid; justify-items: center;
  padding: clamp(4rem, 12vh, 9rem) var(--pad); }
.bw-carelead h2 { color: var(--brand); text-align: center; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Begin Your Next Chapter Ã¢â‚¬â€ laptop + numbered steps + underline lead form on
   navy. Pins while scroll steps the highlight through 1-4 (main.js
   [data-nextsteps]); numbers render from the CSS counter so the whole row
   (number + text) dims/highlights together. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-next { position: relative; background: var(--ocean-green); color: var(--surface); }
/* the STAGE (laptop + title + steps) is the only pinned part Ã¢â‚¬â€ the form flows
   separately below it and can never be clipped by the 100svh pin */
.bw-next__stage.is-run { height: 240vh; height: 240svh; }
.bw-next__pin { display: grid; align-content: start; gap: clamp(2rem, 5.5vh, 4rem);
  padding: calc(clamp(80px, 12vh, 130px) + 50px) var(--pad) clamp(1.8rem, 4vh, 3rem); }
/* sticks 40px early (holds 40px shy of the top); the form wrapper pulls up 200px
   over the pin's empty tail to close the gap between steps and form */
.bw-next__stage.is-run .bw-next__pin { position: sticky; top: 40px;
  height: calc(100vh - 40px); height: calc(100svh - 40px); overflow: hidden; }
/* Direct loads / cross-page links ending in #register get no JS click handler —
   scroll-margin approximates the same centring for the native hash jump. */
#register { scroll-margin-top: max(calc(var(--nav-h) + 24px), calc(50svh - 300px)); }
.bw-next__formwrap { margin-top: -200px; position: relative;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) calc(clamp(1.8rem, 4vh, 3rem) + 80px); }
.bw-next__grid { max-width: var(--wrap); margin-inline: auto; width: 100%; display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 1fr);
  gap: clamp(2.5rem, 5vw, 7rem); align-items: center; }
/* markt-laptop.webp is near-centred already (opaque margins 5.9% / 3.3%), so it
   needs only a hair of correction â€” unlike the old PNG's lopsided shadow */
.bw-next__laptop { margin: 0; }
.bw-next__laptop img { width: 100%; max-width: none; margin-left: -1.3%; height: auto; }
.bw-next__copy { display: grid; gap: clamp(1.3rem, 3vh, 2.2rem); justify-items: start; }
.bw-next__copy .bw-rule { margin-inline: 0; }

.bw-steps { display: grid; gap: clamp(.9rem, 2.2vh, 1.5rem); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.bw-steps li { display: grid; grid-template-columns: clamp(34px, 2.8vw, 52px) 1fr;
  gap: clamp(.9rem, 1.5vw, 1.4rem); align-items: start;
  opacity: .32; transition: opacity .45s var(--ease); }
.bw-steps li.is-active { opacity: 1; }
.bw-steps li::before { counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 2.6vw, 46px); line-height: 1; }
.bw-steps h3 { font-family: var(--font-sub); font-size: clamp(12px, .85vw, 16px);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.bw-steps p { font-size: clamp(13px, .85vw, 16px); line-height: 1.45; letter-spacing: .03em;
  margin-top: .25rem; max-width: 44ch; opacity: .85; }

/* Underline form on navy (V3 pattern: hairline rows, Museum labels) Ã¢â‚¬â€
   centred on the page like the steps block above it. */
.bw-form { width: 76.5%; max-width: calc(var(--wrap) * .765); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 3.2vw, 3.25rem); }
.bw-form .form__msg { grid-column: 1 / -1; }
.bw-form label { display: block; }
.bw-form__wide { grid-column: 1 / -1; }
.bw-form input:not([type="checkbox"]), .bw-form select, .bw-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(230,230,230,.5); border-radius: 0;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(16px, 1.05vw, 20px); letter-spacing: .02em;
  color: var(--surface); padding: 1em 0 .7em; outline: none;
}
.bw-form ::placeholder { color: rgba(230,230,230,.4); opacity: 1; }
.bw-form select:invalid { color: rgba(230,230,230,.4); }   /* placeholder option tint */
.bw-form select option { color: var(--ink); }
.bw-form input:focus, .bw-form select:focus, .bw-form textarea:focus { border-bottom-color: var(--surface); }
.bw-form textarea { resize: vertical; min-height: 2.4em; }
.bw-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: clamp(1rem, 2vw, 2rem); padding-top: clamp(1.2rem, 2.2vh, 2rem); }
/* consent text sits LEFT of its tick box, all on one line; muted tones, no underlines.
   Parent-qualified selector so it outranks `.bw-form label { display:block }`. */
.bw-form .bw-form__consent { display: flex; align-items: center; gap: 1rem; white-space: nowrap;
  flex: none; color: rgba(230,230,230,.55);
  font-family: var(--font-sub); font-size: clamp(9px, .85vw, 13px); letter-spacing: .06em; text-transform: uppercase; }
.bw-form__consent a { text-decoration: none; }
.bw-form__consent input { appearance: none; width: 20px; height: 20px; border: 1px solid rgba(230,230,230,.55);
  background: transparent; flex: none; display: grid; place-content: center; cursor: pointer; }
.bw-form__consent input:checked::before { content: "\2715"; color: rgba(230,230,230,.75); font-size: 12px; line-height: 1; }
.bw-form__submit { background: none; border: 0; color: rgba(230,230,230,.55); padding: .4em 0;
  font-family: var(--font-sub); font-size: clamp(11px, .9vw, 14px); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; }
.bw-form__submit:hover, .bw-form__submit:focus-visible { color: var(--surface); }

@media (max-width: 860px) {
  .bw-next__grid { grid-template-columns: 1fr; gap: 2rem; }
  .bw-next__formwrap { margin-top: -40px; }   /* stacked content fills the pin Ã¢â‚¬â€ no 200px slack to reclaim */
  .bw-form { width: 100%; max-width: none; margin-left: 0; grid-template-columns: 1fr; }
  /* footer stacks and reads left: consent row (tick box first), then Submit on
     its own line, then the account link under it */
  .bw-form__foot { flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 1.1rem; }
  .bw-form .bw-form__consent { white-space: normal; align-items: flex-start; }
  .bw-form__consent input { order: -1; }        /* tick box on the left */
  .bw-form__submit { text-align: left; }
  .bw-form .bw-form__account { text-align: left; }   /* base rule is later in the file, so qualify to win */
}
@media (max-height: 820px) {
  .bw-next__pin { padding-top: clamp(60px, 9vh, 90px); }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Footer Ã¢â‚¬â€ navy marble (parallax via [data-plx]), centred identity, hairline
   base row: Ã‚Â© left Ã‚Â· Rainmaker credit centre Ã‚Â· legal links right. Ã¢â€â‚¬Ã¢â€â‚¬ */
.bw-footer { position: relative; overflow: hidden; background: var(--brand); color: var(--surface);
  padding: clamp(4rem, 8vw, 8rem) var(--pad) clamp(1.2rem, 2.5vw, 2rem); }
.bw-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -12%; bottom: -12%;
  background: url("../images/marble-navy.webp") center / cover no-repeat;
  transform: translateY(var(--plx, 0px)); will-change: transform; }
.bw-footer > * { position: relative; }
.bw-footer__inner { display: grid; gap: clamp(2rem, 4.5vw, 4rem); justify-items: center; text-align: center; }
.bw-footer__logo { width: clamp(240px, 25vw, 480px); height: auto; }
.bw-footer__contact { display: grid; gap: clamp(.9rem, 1.8vw, 1.5rem); justify-items: center; }
.bw-footer__contact h2 { font-size: clamp(24px, 2.3vw, 44px); }
.bw-footer__contact p { font-family: var(--font-sub); font-size: clamp(11px, .85vw, 16px);
  letter-spacing: .14em; line-height: 2; max-width: none; }   /* lowercase per design */
.bw-footer__mail { text-decoration: none; }
.bw-footer__seal { width: clamp(70px, 5.5vw, 105px); height: auto; }
.bw-footer__base { margin-top: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid rgba(230,230,230,.35);
  padding-top: clamp(.9rem, 1.6vw, 1.4rem); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  font-size: clamp(11px, .78vw, 14px); letter-spacing: .04em; opacity: .85; }
.bw-footer__base p { max-width: none; }
.bw-footer__base a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .bw-footer__base { justify-content: center; text-align: center; } }

/* Ã¢â€â‚¬Ã¢â€â‚¬ FAQs Ã¢â‚¬â€ centred column of hairline accordions (native details/summary) Ã¢â€â‚¬Ã¢â€â‚¬ */
.faq-wrap { max-width: 900px; }
.faq-head { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); justify-items: center;
  text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.faq-head h1 { color: var(--brand); font-size: var(--t-h2); }
.faq-list { border-top: 1px solid rgba(7,24,56,.18); }
.faq { border-bottom: 1px solid rgba(7,24,56,.18); }
.faq summary { cursor: pointer; list-style: none; position: relative;
  padding: clamp(1.1rem, 2vw, 1.5rem) 2.5rem clamp(1.1rem, 2vw, 1.5rem) 0;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(18px, 1.35vw, 26px);
  letter-spacing: .02em; color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%); font-family: var(--font-display); font-size: 1.3em;
  line-height: 1; transition: transform .3s var(--ease); }
.faq[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 2.5rem clamp(1.2rem, 2vw, 1.6rem) 0; }
.faq__a p { max-width: 62ch; font-size: var(--t-md); line-height: 1.6; letter-spacing: .02em;
  color: var(--brand); opacity: .85; }

/* "Already have an account?" â€” quiet underlined link under the submit row */
.bw-form__account { grid-column: 1 / -1; text-align: right; max-width: none;
  margin-top: clamp(.8rem, 1.5vh, 1.2rem); font-size: clamp(14px, 1vw, 17px); letter-spacing: .04em; }
.bw-form__account a { color: rgba(230,230,230,.6); text-decoration: underline; text-underline-offset: 3px; }
.bw-form__account a:hover { color: var(--surface); }

/* FAQ intro lead + multi-paragraph / bulleted answers */
.faq-intro { max-width: 74ch; font-size: var(--t-md); line-height: 1.7; letter-spacing: .02em;
  color: var(--brand); opacity: .85; }
.faq__a p + p, .faq__a p + ul, .faq__a ul + p { margin-top: .9em; }
.faq__a ul { margin: 0; padding-left: 1.3rem; max-width: 62ch; }
.faq__a li { font-size: var(--t-md); line-height: 1.6; letter-spacing: .02em;
  color: var(--brand); opacity: .85; margin-top: .35em; }

/* â”€â”€ Tail handover stack (Medical: Memory Support â†’ Responsive Care) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   A navy section whose BOTTOM edge is cut into the whale tail by a mask, so the
   tail carries the section's own marble texture (one continuous layer, not a
   flat SVG). It pins once the whole tail plus 100px is in view (sticky
   bottom:100px), then the next section rises over it behind the mirrored tail.
   Same 2-layer mask technique as the homepage care handover; pure CSS, no JS. */
/* the stack carries the lower section's colour, so the area the tail mask cuts
   away reveals that colour (not the page white) */
.bw-tailstack { position: relative; z-index: 0; background: var(--surface); }

/* Pinned with a TOP offset â€” `bottom:` sticky shifts an element UP as it comes
   from below (footer behaviour) and never holds here. --pin-top is set by
   main.js to (viewport âˆ’ 100 âˆ’ section height) so the section locks with its
   whole tail plus 100px in view; recomputed on resize only. */
.bw-tail-out {
  position: sticky; top: var(--pin-top, 0px); z-index: 0;
  padding-bottom: calc(var(--tail-band) + clamp(1.5rem, 3vw, 3rem));
  -webkit-mask-image: url("../images/whale-tail.svg"), linear-gradient(#000 0 0);
          mask-image: url("../images/whale-tail.svg"), linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat, no-repeat;  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
          mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
  -webkit-mask-position: bottom, top;  mask-position: bottom, top;
}

/* the section that rises over the pinned one, led by the INVERSE tail â€” the
   complement of the same curve (whale-tail-up.svg = fill BELOW the curve, where
   whale-tail.svg fills ABOVE it), so the two edges interlock exactly instead of
   reading as two separate tails. NOT the vertical mirror. */
.bw-tail-in {
  position: relative; z-index: 1;
  padding-top: calc(var(--tail-band) + clamp(1.5rem, 3vw, 3rem));
  -webkit-mask-image: url("../images/whale-tail-up.svg"), linear-gradient(#000 0 0);
          mask-image: url("../images/whale-tail-up.svg"), linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat, no-repeat;  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
          mask-size: 100% var(--tail-band), 100% calc(100% - var(--tail-band) + 2px);
  -webkit-mask-position: top, bottom;  mask-position: top, bottom;
}

/* â”€â”€ Stats strip â€” navy band, centred value + label pairs. Values use the shared
   [data-count] tally; p needs max-width:none to escape the global --measure. â”€â”€ */
.bw-stats { background: var(--brand); color: var(--surface);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad); }
.bw-stats__inner { max-width: var(--wrap); margin-inline: auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem); text-align: center; }
/* reveal the four items one at a time, left to right: a shorter fade than the
   global .fade-up plus a 200ms step per item, so they read as a sequence
   rather than overlapping (the shared observer adds .in to all four at once) */
.bw-stat.fade-up { transition-duration: .5s; transition-delay: var(--d, 0ms); }
.bw-stat__v { font-family: var(--font-display); font-weight: 300; line-height: 1.1;
  font-size: clamp(24px, 2.6vw, 46px); letter-spacing: .02em; max-width: none; }
.bw-stat__l { font-family: var(--font-sub); font-size: clamp(10px, .8vw, 14px);
  letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .5em; max-width: none; }
@media (max-width: 760px) { .bw-stats__inner { gap: clamp(1.6rem, 6vw, 2.4rem); } }

/* =============================================================================
   MOBILE REFINEMENTS
   ============================================================================= */
@media (max-width: 860px) {
  /* display titles three steps smaller (the clamp minimums are what apply here) */
  :root { --t-header: clamp(32px, 4.2vw, 80px); --t-h1: clamp(32px, 4.2vw, 80px);
          --t-h2: clamp(24px, 3.2vw, 61px);     --t-h3: clamp(20px, 2.6vw, 31px); }

  /* body copy reads left-aligned, never justified (centred blocks stay centred) */
  .bw-body, .bw-body p { text-align: left; text-align-last: left; }

}

@media (max-width: 760px) {

  /* each category's own image sits under its items and opens with it; the stacked
     crossfade figure is desktop-only (same URLs, so no extra image requests) */
  .bw-amen__media { display: none; }
  .bw-amen__shot { display: block; margin: 0; max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .55s var(--ease), opacity .45s var(--ease), margin .45s var(--ease); }
  .bw-amen__shot img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
  .bw-amen__cat.is-active .bw-amen__shot { max-height: 60vh; opacity: 1; margin-top: 1rem; }
}

/* Life Rights (homepage): single centred column â€” the two-column form of this
   component is still used throughout medical.php, so this is a modifier. */
.bw-liferights--centred .bw-liferights__grid { grid-template-columns: 1fr; }
.bw-liferights--centred .bw-liferights__copy { justify-items: center; text-align: center;
  max-width: 867px; margin-inline: auto; }
.bw-liferights--centred .bw-liferights__copy .bw-rule { margin-inline: auto; }
.bw-liferights--centred .bw-liferights__copy .bw-body { max-width: 720px; }
.bw-liferights--centred .bw-liferights__copy .bw-body,
.bw-liferights--centred .bw-liferights__copy .bw-body p { text-align: center; text-align-last: center; }
