/* ==== fonts.css ==== */
/* Self-hosted fonts, latin subsets (from @fontsource / @fontsource-variable).
 * Pairing A (default): Outfit display, Figtree body, Fraunces italic accent (SOFT axis).
 * Fallback faces use metric overrides so the swap from system font to web font does not shift text. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-soft-italic.woff2") format("woff2"); }

/* Metric-compatible fallbacks (computed against Arial / Liberation Sans and Georgia) */
/* One face per weight band: the fallback is synthetic bold (same advances at every weight), while the
 * web fonts widen as they get bolder, so each band gets its own size-adjust (measured in Chromium against
 * Liberation Sans, which shares Arial's advance widths). */
@font-face { font-family: "Outfit Fallback"; font-weight: 100 449; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 99.6%; ascent-override: 100.4%; descent-override: 26.1%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; font-weight: 450 549; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 99.9%; ascent-override: 100.1%; descent-override: 26.0%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; font-weight: 550 649; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.7%; ascent-override: 98.3%; descent-override: 25.6%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; font-weight: 650 749; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.5%; ascent-override: 96.6%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; font-weight: 750 900; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.2%; ascent-override: 95.0%; descent-override: 24.7%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-weight: 100 449; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.1%; ascent-override: 94.0%; descent-override: 24.8%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-weight: 450 549; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.9%; ascent-override: 93.2%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-weight: 550 649; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.0%; ascent-override: 92.2%; descent-override: 24.3%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-weight: 650 749; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 104.2%; ascent-override: 91.2%; descent-override: 24.0%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; font-weight: 750 900; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.9%; ascent-override: 89.7%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"), local("Georgia");
  size-adjust: 104%; ascent-override: 94%; descent-override: 24.5%; line-gap-override: 0%; }
/* Where Georgia is missing (Linux, some Android), Times-metric serifs need a bigger adjustment (measured against Liberation Serif Italic). */
@font-face { font-family: "Fraunces Fallback Serif"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 110.8%; ascent-override: 88.4%; descent-override: 22.1%; line-gap-override: 0%; }

/* ==== tokens.css ==== */
/* Design tokens. Pages and components use the semantic tokens (--heading, --text, --accent, --primary,
 * --band-*), never raw brand hex. Surface contexts only re-point tokens. */
:root {
  color-scheme: light;

  /* Brand */
  /* Round 2 (client: "a bit soft / childish"): deeper navy and ink, cooler and paler tints, finer lines,
     tighter radii, crisper shadows. Brand blue and green are unchanged; green is the accent. */
  --blue: #2A6BA0;
  --blue-deep: #1A4C78;
  --blue-bright: #2F7FC0;
  --blue-soft: #E4ECF4;
  --blue-mist: #F3F6FA;
  --green: #4C9A2A;
  --green-bright: #56A538;
  --green-strong: #38791D;       /* 5.4:1 on white: buttons and small green text */
  --green-deep: #2A6114;
  --green-soft: #E3EDDD;
  --green-mist: #F6F9F4;
  --lime: #9BD47A;               /* green on navy, 6.2:1 */
  --navy: #0A3157;
  --navy-deep: #06213D;
  --navy-soft: #154874;
  --sky: #7FB7E0;
  --sky-soft: #EAF2F9;
  --sun: #EDB93E;                /* small warm highlight only (stars, sparkles) */
  --sun-soft: #FBF4E1;
  --coral: #DE6E55;
  --coral-soft: #F9EAE5;
  --ink: #17293B;                /* 14.6:1 on white */
  --slate: #475869;              /* 7.3:1 on white */
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --mist: #F5F7F9;

  /* Semantic */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: var(--mist);
  --text: var(--ink);
  --heading: var(--navy);
  --muted: var(--slate);
  --line: rgba(10, 49, 87, 0.11);
  --line-strong: rgba(10, 49, 87, 0.22);
  --accent: var(--green);              /* the accent phrase in headings */
  --dot: var(--green);                 /* eyebrow leaf, list leaves */
  --dot-2: var(--blue);
  --link: var(--blue-deep);
  --primary: var(--green-strong);
  --primary-hover: #2E6717;
  --primary-contrast: #FFFFFF;
  --primary-glow: rgba(56, 121, 29, 0.38);
  --secondary: var(--navy);
  --secondary-contrast: #FFFFFF;
  --tile: var(--green-soft);           /* icon tile background */
  --tile-fg: var(--green-deep);
  --tile-2: var(--blue-soft);
  --tile-2-fg: var(--blue-deep);
  --success: #2E7D32;
  --success-soft: #E5F3E6;
  --error: #B3261E;
  --error-soft: #FCEBEA;
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue);

  /* Bands (page sections) */
  --band-blue: #F1F5FA;
  --band-blue-strong: var(--blue-soft);
  --band-green: #F3F7F0;
  --band-green-strong: var(--green-soft);
  --band-mist: #F5F7F9;
  --band-deep: var(--navy);
  --band-deep-2: var(--navy-deep);

  /* Gradients and glows */
  --grad-leaf: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 50%, var(--blue) 100%);
  --grad-sky: linear-gradient(160deg, var(--blue-mist) 0%, #FFFFFF 60%);
  --glow-green: radial-gradient(closest-side, rgba(86, 165, 56, 0.10), rgba(86, 165, 56, 0) 70%);
  --glow-blue: radial-gradient(closest-side, rgba(42, 107, 160, 0.10), rgba(42, 107, 160, 0) 70%);

  /* Type */
  --font-display: "Outfit", "Outfit Fallback", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Figtree Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-accent: "Fraunces", "Fraunces Fallback", "Fraunces Fallback Serif", "Iowan Old Style", Georgia, serif;
  --accent-style: italic;
  --accent-weight: 400;
  --accent-size: 1.06em;
  --accent-tracking: -0.02em;
  --accent-settings: "SOFT" 100, "opsz" 72;
  --display-weight: 600;
  --display-tracking: -0.022em;
  --body-weight: 400;

  --fs-display: clamp(2.7rem, 1.6rem + 3.4vw, 4.7rem);
  --fs-h1: clamp(2.3rem, 1.45rem + 2.4vw, 3.6rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 1.6vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --fs-h4: 1.2rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.68;

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: 48px;
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 820px;
  --section-y: clamp(96px, 8.6vw, 132px);
  --head-gap: clamp(40px, 4.6vw, 72px);   /* section head to content */
  --gap: clamp(24px, 3vw, 40px);
  --header-h: 74px;
  --header-top: 16px;
  --header-clear: calc(var(--header-h) + var(--header-top) + 18px);
  /* Round 3, taller heroes: the hero photo's height and a full hero band's minimum height follow the screen
     height (from 1024px, see kit.css). 63% of a 900px screen is a 567px photo; 780px is the ceiling. */
  --hero-photo-h: clamp(440px, 63vh, 780px);
  --hero-min-h: clamp(560px, 82vh, 940px);

  /* Radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --r-leaf: 14% 86% 14% 86% / 18% 82% 18% 82%;

  /* Shadows, tinted navy */
  --shadow-1: 0 0 0 1px rgba(10, 49, 87, 0.06), 0 1px 2px rgba(10, 49, 87, 0.06), 0 4px 12px -4px rgba(10, 49, 87, 0.10);
  --shadow-2: 0 0 0 1px rgba(10, 49, 87, 0.06), 0 2px 4px rgba(10, 49, 87, 0.05), 0 14px 30px -12px rgba(10, 49, 87, 0.20);
  --shadow-3: 0 0 0 1px rgba(10, 49, 87, 0.05), 0 4px 8px rgba(10, 49, 87, 0.05), 0 26px 56px -20px rgba(10, 49, 87, 0.32);
  --shadow-primary: 0 10px 26px -10px var(--primary-glow);
  --ring: 0 0 0 1px var(--line);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(18px) saturate(1.5);
  --glass-dark-bg: rgba(8, 38, 68, 0.58);
  --glass-dark-border: rgba(255, 255, 255, 0.24);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.25, 0.6, 0.3, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);   /* reveals: long and soft, never bouncy */
  --t-1: 140ms; --t-2: 240ms; --t-3: 420ms; --t-4: 700ms; --t-5: 1100ms;

  /* Layers */
  --z-base: 1; --z-raised: 10; --z-sticky: 50; --z-float: 90; --z-header: 100;
  --z-overlay: 200; --z-modal: 300; --z-lab: 400; --z-toast: 500;
}

@media (max-width: 1023px) {
  :root { --gutter: 32px; --section-y: 88px; }
}
@media (max-width: 599px) {
  :root {
    --gutter: 20px;
    --section-y: 76px;
    --header-h: 62px;
    --header-top: 10px;
    --r-xl: 24px;
    --r-lg: 20px;
    --fs-display: clamp(2.3rem, 1.25rem + 4.6vw, 2.7rem);
    --fs-h1: clamp(2.05rem, 1.3rem + 3vw, 2.3rem);
    --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 1.95rem);
    --fs-body: 1.0625rem;
  }
}

/* ----- Surface contexts: components adapt automatically ----- */
.on-navy, .band--navy, .band--deep, .card--navy {
  --heading: #FFFFFF;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: var(--lime);
  --dot: var(--lime);
  --link: #FFFFFF;
  --tile: rgba(255, 255, 255, 0.10);
  --tile-fg: var(--lime);
  --tile-2: rgba(255, 255, 255, 0.10);
  --tile-2-fg: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.06);
  --focus-ring: 0 0 0 3px var(--navy), 0 0 0 6px var(--lime);
  color: var(--text);
}
.on-light, .card:not(.card--navy), .glass {
  --heading: var(--navy);
  --text: var(--ink);
  --muted: var(--slate);
  --line: rgba(10, 49, 87, 0.11);
  --accent: var(--green);
  --dot: var(--green);
  --link: var(--blue-deep);
  --tile: var(--green-soft);
  --tile-fg: var(--green-deep);
  --tile-2: var(--blue-soft);
  --tile-2-fg: var(--blue-deep);
  --surface: #FFFFFF;
}
.on-green {
  --heading: var(--navy);
  --accent: var(--green-strong);
  --tile: #FFFFFF;
}

/* ==== base.css ==== */
/* Reset and base typography */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--body-weight);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { display: block; overflow-x: clip; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--green-soft); color: var(--navy); }
.on-navy ::selection, .band--navy ::selection { background: var(--lime); color: var(--navy); }

/* Headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display { font-size: var(--fs-display); line-height: 1.04; }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.016em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; }
h5, h6 { font-size: 1rem; line-height: 1.4; }

/* The accent phrase: one italic serif phrase at the end of a heading */
.accent {
  font-family: var(--font-accent);
  font-style: var(--accent-style);
  font-weight: var(--accent-weight);
  font-size: var(--accent-size);
  letter-spacing: var(--accent-tracking);
  font-variation-settings: var(--accent-settings);
  color: var(--accent);
  padding-inline-end: 0.05em;   /* keeps the italic overhang inside reveal masks */
}
em.accent { font-style: var(--accent-style); }
.accent--block { display: block; }

/* Eyebrow: micro uppercase label with a leaf dot. When a long eyebrow wraps (phones), the text wraps
   in balanced lines beside the leaf and the leaf stays level with the first line. */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  text-wrap: balance;
  gap: 0.7em;
  font: 700 var(--fs-micro)/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--heading) 84%, transparent);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 14px;
  background: var(--dot);
  border-radius: 0 100% 0 100%;        /* a small leaf */
  transform: rotate(45deg);
  margin-inline: 2px 1px;
  margin-block-start: max(0px, calc((1.3em - 14px) / 2));   /* centred on the first line */
}
.eyebrow--plain::before { display: none; }
.eyebrow--pill {
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--dot) 12%, var(--surface, #fff));
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
  max-width: 38.5em;  /* about 60 characters. em, not ch: ch follows the font that has loaded, so text re-wrapped when web fonts swapped in */
}
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
strong, b { font-weight: 700; }

/* Default rhythm: copy straight after a heading gets air */
:is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) + :is(p, .lead, ul, ol) { margin-top: var(--s-4); }
/* ...but not inside compact grid/flex components, where the container's own gap already spaces them
   (otherwise the margin stacks on the gap and the title looks detached from its text). */
:is(.feature, .card__body, .step, .timeline__item, .timeline__body, .callout, .quote-card, .notice > div, .form-success) > :is(h2, h3, h4, .h2, .h3, .h4) + :is(p, ul, ol) { margin-top: 0; }
:is(h1, h2, .h1, .h2) + .lead { margin-top: var(--s-5); }

/* Prose: long-form copy (privacy, FAQs answers) */
.prose { max-width: 45em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--fs-h3); }
.prose h3 { margin-top: 1.5em; font-size: var(--fs-h4); }
.prose a { color: var(--link); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--dot);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2em;
  color: var(--heading);
}

/* Lists with leaf ticks */
.list-leaf, .list-check { list-style: none; padding: 0; display: grid; gap: 12px; }
.list-leaf > li, .list-check > li { position: relative; padding-left: 34px; }
.list-leaf > li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.42em;
  width: 12px; height: 16px;
  background: var(--dot);
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
}
.list-check > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6E17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.on-navy .list-check > li::before, .band--navy .list-check > li::before {
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4068' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.list-check--lg > li { padding-left: 40px; font-weight: 600; color: var(--heading); }
.list-check--lg > li::before { width: 28px; height: 28px; top: 0; background-size: 16px; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible { box-shadow: var(--focus-ring); }
iframe:focus { outline: 3px solid var(--blue); outline-offset: 3px; }  /* embedded maps never match :focus-visible */

/* Skip link */
.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: calc(var(--z-header) + 10);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only, .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;
}

a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }

/* SVG icons from the sprite */
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }

@media (prefers-contrast: more) {
  :root { --line: rgba(10, 49, 87, 0.4); --muted: var(--ink); --focus-ring: 0 0 0 2px var(--navy); }
}
@media (forced-colors: active) {
  .btn, .chip, .pill { border: 1px solid ButtonText; }
}

/* Brand logo (symbol from the sprite). .logo--white for navy and photo bands. */
.logo { display: block; height: auto; }
.logo--white { --logo-blue: #fff; --logo-green: #fff; }

/* ==== layout.css ==== */
/* Layout primitives: container, sections, bands with soft fades, grids, split, stacks. */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
}
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--hero-clear { padding-top: calc(var(--header-clear) + clamp(12px, 2vw, 28px)); }

/* Variant wrappers never affect layout */
/* lab:start */
[data-vg] { display: contents; }
/* lab:end */

/* ----- Bands ----- */
.band--white { background-color: #fff; }
.band--paper { background-color: var(--paper); }
.band--blue-soft { background-color: var(--band-blue); }
.band--blue { background-color: var(--band-blue-strong); }
.band--green-soft { background-color: var(--band-green); }
.band--green { background-color: var(--band-green-strong); }
.band--mist { background-color: var(--band-mist); }
.band--navy, .band--deep { background-color: var(--band-deep); color: var(--text); }
.band--sky { background-image: var(--grad-sky); }

/* Soft fades between bands (brightstarts-study §5): a 5-stop eased gradient painted over the band colour,
 * from the colour of the neighbour (default: the page background). Set the neighbour with .fade-from-* / .fade-to-*. */
.band--fade-top, .band--fade-bottom, .band--fade {
  --fade-h: clamp(72px, 9vw, 140px);
  --fade-a: var(--fade-from, var(--bg));
  --fade-b: var(--fade-to, var(--bg));
  --fade-grad-top: linear-gradient(to bottom, var(--fade-a) 0,
    color-mix(in srgb, var(--fade-a) 78%, transparent) calc(var(--fade-h) * 0.22),
    color-mix(in srgb, var(--fade-a) 44%, transparent) calc(var(--fade-h) * 0.5),
    color-mix(in srgb, var(--fade-a) 14%, transparent) calc(var(--fade-h) * 0.78),
    transparent var(--fade-h));
  --fade-grad-bottom: linear-gradient(to top, var(--fade-b) 0,
    color-mix(in srgb, var(--fade-b) 78%, transparent) calc(var(--fade-h) * 0.22),
    color-mix(in srgb, var(--fade-b) 44%, transparent) calc(var(--fade-h) * 0.5),
    color-mix(in srgb, var(--fade-b) 14%, transparent) calc(var(--fade-h) * 0.78),
    transparent var(--fade-h));
}
.band--navy:is(.band--fade-top, .band--fade-bottom, .band--fade) { --fade-h: clamp(36px, 3.6vw, 56px); }
.band--fade-top { background-image: var(--fade-grad-top); }
.band--fade-bottom { background-image: var(--fade-grad-bottom); }
.band--fade { background-image: var(--fade-grad-top), var(--fade-grad-bottom); }
.fade-from-blue { --fade-from: var(--band-blue); }
.fade-from-green { --fade-from: var(--band-green); }
.fade-from-mist { --fade-from: var(--band-mist); }
.fade-from-navy { --fade-from: var(--band-deep); }
.fade-from-white { --fade-from: #fff; }
.fade-to-blue { --fade-to: var(--band-blue); }
.fade-to-green { --fade-to: var(--band-green); }
.fade-to-mist { --fade-to: var(--band-mist); }
.fade-to-navy { --fade-to: var(--band-deep); }
.fade-to-white { --fade-to: #fff; }

/* Rounded, inset floating panel */
.band--rounded {
  margin-inline: clamp(8px, 1.2vw, 20px);
  border-radius: var(--r-xl);
}
.band--rounded-bottom { border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* Soft glows for heroes and feature bands */
.glow-tr::before, .glow-bl::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: var(--glow-green);
}
.glow-tr::before { top: -30%; right: -20%; }
.glow-bl::before { bottom: -30%; left: -25%; background: var(--glow-blue); }

/* ----- Section head ----- */
.section-head { max-width: 760px; margin-bottom: var(--head-gap); }
.section-head > h2, .section-head > h1 { max-width: 14.5em; }
.section-head > .lead { margin-top: var(--s-5); }
.section-head > .btn-row { margin-top: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center > h2, .section-head--center > h1 { margin-inline: auto; }
.section-head--center > .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; gap: var(--s-5) var(--gap); align-items: end; }
/* a button that follows the lead in the side column needs air above it */
.section-head__side > .lead + :is(.btn, .btn-row, .link-arrow) { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; }
  .section-head--split > .lead, .section-head--split > .section-head__side { margin-top: 0; padding-bottom: 6px; }
}

/* ----- Grids ----- */
.grid { display: grid; gap: var(--gap); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

/* ----- Split: two columns from 900px ----- */
.split {
  --split-gap: clamp(32px, 6vw, 96px);
  display: grid;
  gap: var(--split-gap);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--40-60 { grid-template-columns: 2fr 3fr; }
  .split--60-40 { grid-template-columns: 3fr 2fr; }
  .split--55-45 { grid-template-columns: 1.1fr 0.9fr; }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
}

/* ----- Stacks and clusters ----- */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--stack, var(--s-5)); }
.stack--sm { --stack: var(--s-3); }
.stack--lg { --stack: var(--s-7); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, var(--s-3)); align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
.bleed { margin-inline: calc(-1 * var(--gutter)); }
.measure { max-width: 38.5em; }
.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: var(--s-4); }
.mt-m { margin-top: var(--s-6); }
.mt-l { margin-top: var(--s-8); }
.hairline { height: 1px; background: var(--line); border: 0; margin-block: var(--s-6); }

/* ----- Phones: centre everything readable ----- */
@media (max-width: 599px) {
  .section-head, .section-head--split, .center-phone { text-align: center; margin-inline: auto; }
  .section-head > h2, .section-head > h1, .section-head > .lead { margin-inline: auto; }
  .section-head .btn-row, .center-phone .btn-row, .btn-row--phone-center { justify-content: center; }
  .split > * { text-align: center; }
  .split .btn-row { justify-content: center; }
  .split .list-check, .split .list-leaf, .center-phone .list-check, .center-phone .list-leaf { text-align: left; width: fit-content; max-width: 100%; margin-inline: auto; }
  .split form, .split .prose, .text-left-phone { text-align: left; }
  .btn-row--stack-phone { flex-direction: column; align-items: stretch; }
  .btn-row--stack-phone .btn { width: 100%; }
}

/* Visibility helpers: .hide-phone hides on phones (< 600px), .show-phone shows only on phones.
   Use for trimming words, e.g. <p class="eyebrow">Fully funded<span class="hide-phone"> for nurseries</span></p> */
@media (max-width: 599px) { .hide-phone { display: none !important; } }
@media (min-width: 600px) { .show-phone { display: none !important; } }

/* ==== components.css ==== */
/* Shared components. See docs/COMPONENTS.md for markup. */

/* =========================================================== Buttons */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--primary-contrast);
  --btn-ring: transparent;
  --btn-shadow: var(--shadow-primary);
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 0 0 1.5px var(--btn-ring), var(--btn-shadow);
  font: 700 1rem/1.15 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out),
    box-shadow var(--t-2) var(--ease-out), translate var(--t-2) var(--ease-out), scale var(--t-1) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { translate: 0 -1px; }
.btn:active { scale: 0.97; }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn__icon { width: 1.15em; height: 1.15em; transition: translate var(--t-3) var(--ease-spring); }
.btn:hover .btn__icon { translate: 4px 0; }
.btn:hover .btn__icon--down { translate: 0 3px; }
.btn--primary:hover, .btn:not([class*="btn--"]):hover { --btn-bg: var(--primary-hover); }
.btn--secondary, .btn--navy { --btn-bg: var(--secondary); --btn-fg: var(--secondary-contrast); --btn-shadow: 0 10px 26px -12px rgba(10, 49, 87, 0.5); }
.btn--secondary:hover, .btn--navy:hover { --btn-bg: color-mix(in srgb, var(--secondary) 86%, #000); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: #fff; --btn-shadow: 0 10px 26px -12px rgba(42, 107, 160, 0.55); }
.btn--blue:hover { --btn-bg: var(--blue-deep); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-shadow: var(--shadow-1); }
.btn--white:hover { --btn-bg: #fff; --btn-shadow: var(--shadow-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--heading); --btn-ring: var(--line-strong); --btn-shadow: 0 0 0 0 transparent; }
.btn--ghost:hover { --btn-bg: var(--heading); --btn-fg: var(--bg); --btn-ring: var(--heading); }
.on-navy .btn--ghost:hover, .band--navy .btn--ghost:hover { --btn-fg: var(--navy); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--navy); --btn-shadow: 0 10px 28px -10px rgba(155, 212, 122, 0.55); }
.btn--lime:hover { --btn-bg: #B3E297; }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.18); --btn-fg: #fff; --btn-ring: rgba(255, 255, 255, 0.45); --btn-shadow: none; backdrop-filter: blur(10px); }
.btn--sm { --btn-h: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { --btn-h: 58px; padding: 0 32px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--icon { width: var(--btn-h); padding: 0; }
.btn--icon .btn__icon { width: 20px; height: 20px; }
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-right-color: transparent; animation: ats-spin 700ms linear infinite;
}
@keyframes ats-spin { to { transform: rotate(360deg); } }

/* Link with a circle arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}
.link-arrow__circle {
  display: grid;
  place-items: center;
  width: 2em; height: 2em;
  border-radius: 50%;
  background: var(--tile);
  color: var(--tile-fg);
  transition: translate var(--t-3) var(--ease-spring), background-color var(--t-2), color var(--t-2);
}
.link-arrow__circle .icon { width: 1.05em; height: 1.05em; }
.link-arrow:hover .link-arrow__circle { translate: 4px 0; background: var(--heading); color: var(--bg); }
.on-navy .link-arrow:hover .link-arrow__circle, .band--navy .link-arrow:hover .link-arrow__circle { color: var(--navy); }
.link-arrow--sm { font-size: var(--fs-small); }

.text-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* =========================================================== Pills, chips, badges */
.pill, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--heading) 7%, transparent);
  color: var(--heading);
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.pill .icon, .chip .icon { width: 1.1em; height: 1.1em; }
.pill--white, .chip--white { background: #fff; box-shadow: var(--shadow-1); color: var(--navy); }
.pill--green, .chip--green { background: var(--green-soft); color: var(--green-deep); }
.pill--blue, .chip--blue { background: var(--blue-soft); color: var(--blue-deep); }
.pill--navy, .chip--navy { background: var(--navy); color: #fff; }
.pill--lime, .chip--lime { background: var(--lime); color: var(--navy); }
.pill--outline, .chip--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pill--glass, .chip--glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--navy); box-shadow: var(--shadow-1); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
a.chip:hover, button.chip:hover { background: var(--navy); color: #fff; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (pointer: coarse) { a.chip, button.chip { min-height: 44px; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green-deep);
  font: 700 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--blue { background: var(--blue-soft); color: var(--blue-deep); }
.badge--navy { background: var(--navy); color: #fff; }
.badge--lime { background: var(--lime); color: var(--navy); }
.badge--white { background: #fff; color: var(--navy); box-shadow: var(--shadow-1); }
.badge--sun { background: var(--sun-soft); color: #7A5600; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }

/* =========================================================== Icon tiles */
.icon-tile {
  --tile-size: 52px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tile-size);
  height: var(--tile-size);
  border-radius: 50%;
  background: var(--tile);
  color: var(--tile-fg);
}
.icon-tile .icon { width: 46%; height: 46%; }
.icon-tile--sm { --tile-size: 40px; }
.icon-tile--lg { --tile-size: 64px; }
.icon-tile--xl { --tile-size: 80px; }
.icon-tile--square { border-radius: 30%; }
.icon-tile--leaf { border-radius: 8% 50% 8% 50%; }
.icon-tile--green { background: var(--green-soft); color: var(--green-deep); }
.icon-tile--blue { background: var(--blue-soft); color: var(--blue-deep); }
.icon-tile--navy { background: var(--navy); color: var(--lime); }
.icon-tile--solid { background: var(--primary); color: #fff; }
.icon-tile--white { background: #fff; color: var(--green-strong); box-shadow: var(--shadow-1); }
.icon-tile--sun { background: var(--sun-soft); color: #8A6100; }
.icon-tile--coral { background: var(--coral-soft); color: #A6412B; }

/* Feature: icon + title + text */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.feature > .icon-tile { grid-row: span 2; }
.feature__title { font: 700 1.125rem/1.3 var(--font-body); color: var(--heading); letter-spacing: -0.005em; }
.feature__text { color: var(--text); font-size: var(--fs-small); line-height: 1.6; }
.feature--stack { grid-template-columns: 1fr; text-align: inherit; gap: 10px; }
.feature--stack > .icon-tile { grid-row: auto; margin-bottom: 6px; }
@media (max-width: 599px) {
  .feature--stack { justify-items: center; text-align: center; }
}

/* =========================================================== Cards */
.card {
  --card-pad: clamp(24px, 2.5vw, 36px);
  --card-r: var(--r-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--card-r);
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.card__body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body > .btn, .card__body > .link-arrow { margin-top: auto; align-self: flex-start; }
.card__title { font: var(--display-weight) var(--fs-h4)/1.25 var(--font-display); letter-spacing: -0.012em; color: var(--heading); }
.card__text { font-size: var(--fs-small); line-height: 1.62; }
.card__media { position: relative; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; background: var(--green-mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t-4) var(--ease-out); }
.card__media--inset { margin: 10px 10px 0; border-radius: calc(var(--card-r) - 10px); }
.card__icon { margin-bottom: 6px; }
.card--flat { box-shadow: none; }
.card--outline { box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; }
.card--glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-2); }
/* tinted cards (round 2): a pale wash with a hairline, not a block of pastel */
.card--green { background: linear-gradient(180deg, var(--green-mist), #fff 85%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent), var(--shadow-1); }
.card--green-mist { background: var(--green-mist); box-shadow: inset 0 0 0 1px var(--line); }
.card--blue { background: linear-gradient(180deg, var(--blue-mist), #fff 85%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent), var(--shadow-1); }
.card--blue-mist { background: var(--blue-mist); box-shadow: inset 0 0 0 1px var(--line); }
.card--sun { background: var(--sun-soft); box-shadow: inset 0 0 0 1px rgba(160, 120, 20, 0.14); }
.card--navy { background: var(--navy); box-shadow: var(--shadow-2); }
.card--lg { --card-r: var(--r-xl); --card-pad: clamp(28px, 3.6vw, 56px); }
.card--center { text-align: center; align-items: center; }
.card--center .card__body { align-items: center; }
.card--center .card__body > .btn, .card--center .card__body > .link-arrow { align-self: center; }

/* Pillar card: tinted card, inset photo, icon disc overlapping the photo edge */
.card--pillar .card__media { margin: 10px 10px 0; border-radius: calc(var(--card-r) - 10px); }
.card--pillar .card__body { padding-top: 0; }
.card--pillar .card__icon { position: relative; display: block; width: fit-content; margin-top: -26px; z-index: 2; }
.card--pillar .card__icon .icon-tile { box-shadow: 0 0 0 5px var(--card-bg, #fff); }
.card--pillar.card--green { --card-bg: var(--green-mist); }
.card--pillar.card--blue { --card-bg: var(--blue-mist); }
.card--pillar.card--sun { --card-bg: var(--sun-soft); }

/* Linked card: one stretched link, lift on hover */
.card--link { transition: translate var(--t-3) var(--ease-out), box-shadow var(--t-3) var(--ease-out); }
.card--link:hover { translate: 0 -4px; box-shadow: var(--shadow-2); }
.card--link:hover .card__media img { scale: 1.045; }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card__link:focus-visible { box-shadow: none; }
.card--link:has(.card__link:focus-visible) { box-shadow: var(--focus-ring); }

/* Horizontal card (thumbnail left) */
.card--row { flex-direction: row; align-items: center; }
.card--row .card__media { flex: 0 0 38%; align-self: stretch; aspect-ratio: auto; min-height: 160px; }
@media (max-width: 599px) {
  .card--row { flex-direction: column; }
  .card--row .card__media { flex: none; width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

/* =========================================================== Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--s-6) 0;
}
.stat { text-align: center; padding-inline: var(--s-5); }
.stats--lines .stat + .stat { box-shadow: inset 1.5px 0 0 var(--line); }
.stat__value {
  display: block;
  font: var(--display-weight) clamp(2.3rem, 1.6rem + 1.8vw, 3.4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.stat__bar { display: block; width: 44px; height: 5px; margin: 16px auto 14px; border-radius: 4px; background: var(--dot); }
.stat:nth-child(4n + 2) .stat__bar { background: var(--blue); }
.stat:nth-child(4n + 3) .stat__bar { background: var(--green-bright); }
.stat:nth-child(4n + 4) .stat__bar { background: var(--sky); }
.stat__label { display: block; color: var(--muted); font-weight: 500; line-height: 1.4; margin-top: 8px; }
.stat--left { text-align: left; padding-inline: 0; }
.stat--left .stat__bar { margin-inline: 0; }
@media (max-width: 599px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
  .stats--lines .stat + .stat { box-shadow: none; }
  .stat { padding-inline: 4px; }
}

/* =========================================================== Media and photo masks */
.media {
  --ar: 4 / 3;
  position: relative;
  aspect-ratio: var(--ar);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--green-mist);
  isolation: isolate;
}
.media > picture, .card__media picture { display: contents; }
.media img { width: 100%; height: 100%; }
.media img { object-fit: cover; object-position: var(--focus, 50% 50%); }
.media--auto { aspect-ratio: auto; }
.media--shadow { box-shadow: var(--shadow-2); }
.mask-round { border-radius: var(--r-lg); }
.mask-xl { border-radius: var(--r-xl); }
.mask-circle { border-radius: 50%; --ar: 1 / 1; }
.mask-pill { border-radius: var(--r-pill); }
.mask-leaf { border-radius: 12% 50% 12% 50% / 12% 50% 12% 50%; }
.mask-leaf-alt { border-radius: 50% 12% 50% 12% / 50% 12% 50% 12%; }
.mask-arch { border-radius: 50% 50% var(--r-lg) var(--r-lg) / var(--arch-h, 38%) var(--arch-h, 38%) var(--r-lg) var(--r-lg); }
.mask-blob { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
.mask-blob-2 { border-radius: 42% 58% 62% 38% / 52% 38% 62% 48%; }
.mask-blob-3 { border-radius: 64% 36% 54% 46% / 38% 56% 44% 62%; }
/* clip-path and border-radius clip box-shadow, so shadows go on a wrapper */
.mask-shadow { filter: drop-shadow(0 22px 26px rgba(10, 49, 87, 0.16)); }
.media--border { box-shadow: 0 0 0 6px #fff, var(--shadow-2); }

/* Missing image placeholder (build warns too) */
.img-missing {
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(76, 154, 42, 0.10) 0 14px, rgba(42, 107, 160, 0.07) 14px 28px),
    var(--green-mist);
  color: var(--green-deep);
  text-align: center;
  font: 700 var(--fs-micro)/1.35 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.img-missing span { max-width: 26ch; opacity: 0.8; }

/* Framed photo compositions */
.framed { position: relative; isolation: isolate; }
.framed__motif { position: absolute; z-index: -1; pointer-events: none; --motif-leaf: var(--green-soft); --motif-trunk: var(--blue-soft); }
.framed__motif--tr { top: -12%; right: -10%; width: 42%; }
.framed__motif--bl { bottom: -10%; left: -10%; width: 38%; }
.framed__chip { position: absolute; z-index: 3; }
.framed__chip--tl { top: 8%; left: -4%; }
.framed__chip--br { bottom: 8%; right: -4%; }
.framed__chip--bl { bottom: 10%; left: -5%; }
.framed__sticker { position: absolute; z-index: 3; left: -5%; bottom: 6%; }
.framed__inset { position: absolute; z-index: 2; width: 38%; right: -6%; bottom: -8%; }
.framed__card { position: absolute; z-index: 3; top: 6%; left: -8%; max-width: 230px; }
@media (max-width: 599px) {
  .framed__chip--tl, .framed__chip--bl { left: 0; }
  .framed__chip--br { right: 0; }
  .framed__inset { right: -2%; }
  .framed__card { left: 0; }
}

/* Photo stack: big photo + overlapping circle + tilted small photo */
.photo-stack { position: relative; padding: 0 8% 10% 0; isolation: isolate; }
.photo-stack__main { position: relative; z-index: 1; }
.photo-stack__circle { position: absolute; z-index: 2; right: 0; bottom: 0; width: 40%; }
.photo-stack__circle .media { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 7px #fff, var(--shadow-2); }
.photo-stack__tilt { position: absolute; z-index: 2; left: -4%; top: 6%; width: 34%; rotate: -5deg; }
.photo-stack__tilt .media { box-shadow: 0 0 0 6px #fff, var(--shadow-2); border-radius: var(--r-md); }

/* Collage: three photos in a loose grid */
.collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage > :first-child { grid-row: span 2; }
.collage .media { height: 100%; }

/* =========================================================== Stickers */
.sticker {
  --sticker-size: 128px;
  --sticker-bg: var(--lime);
  --sticker-fg: var(--navy);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--sticker-size);
  height: var(--sticker-size);
  border-radius: 50%;
  background: var(--sticker-bg);
  color: var(--sticker-fg);
  box-shadow: var(--shadow-2);
  rotate: -9deg;
  text-align: center;
  isolation: isolate;
}
.sticker__ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); transition: rotate var(--t-5) var(--ease-out); }
.sticker__ring text { font: 700 10.5px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; fill: currentColor; }
.sticker:hover .sticker__ring { rotate: 40deg; }
.sticker__value { font: 800 2.2rem/0.9 var(--font-display); letter-spacing: -0.03em; }
.sticker__unit { display: block; font: 700 0.8rem/1.1 var(--font-body); letter-spacing: 0.02em; margin-top: 2px; }
.sticker--navy { --sticker-bg: var(--navy); --sticker-fg: #fff; }
.sticker--navy .sticker__value { color: var(--lime); }
.sticker--white { --sticker-bg: #fff; --sticker-fg: var(--navy); }
.sticker--green { --sticker-bg: var(--green-strong); --sticker-fg: #fff; }
.sticker--sm { --sticker-size: 100px; }
.sticker--sm .sticker__value { font-size: 1.7rem; }
.sticker--sm .sticker__ring text { font-size: 12.5px; }
.sticker--lg { --sticker-size: 160px; }
.sticker--lg .sticker__value { font-size: 2.8rem; }

/* =========================================================== Brand motif (tree and leaves) */
.motif { display: block; width: 100%; height: auto; overflow: visible; }
.motif--white { --motif-leaf: #5A9BD3; --motif-trunk: var(--lime); }
.motif--soft { --motif-leaf: var(--blue-soft); --motif-trunk: var(--green-soft); }
.motif--lime { --motif-leaf: var(--lime); --motif-trunk: var(--lime); }
.leaf-dot { display: inline-block; width: 10px; height: 14px; background: var(--dot); border-radius: 0 100% 0 100%; transform: rotate(45deg); }

/* =========================================================== Logo strip and marquee */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 20px; list-style: none; padding: 0; }
.logo-pill {
  display: grid;
  place-items: center;
  height: 88px;
  min-width: 140px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.logo-pill img { max-height: 60px; width: auto; object-fit: contain; }
.logo-pill--sm { height: 64px; min-width: 96px; padding: 10px 18px; border-radius: var(--r-sm); }
.logo-pill--sm img { max-height: 42px; }
.logo-pill--lg { height: 120px; min-width: 180px; }
.logo-pill--lg img { max-height: 84px; }
/* Portrait and compact accreditation marks carry small print, so they get the pill's full height
   (otherwise they look much smaller than the wide SAAS logo beside them) */
:is(.logo-pill--qualifications-scotland, .logo-pill--modern-apprenticeships) { padding-block: 6px; }
:is(.logo-pill--qualifications-scotland, .logo-pill--modern-apprenticeships) img { max-height: 76px; }
.logo-pill--sm:is(.logo-pill--qualifications-scotland, .logo-pill--modern-apprenticeships) img { max-height: 54px; }
.logo-pill--lg:is(.logo-pill--qualifications-scotland, .logo-pill--modern-apprenticeships) img { max-height: 108px; }

.marquee {
  --marquee-speed: 40s;
  --marquee-gap: 20px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: var(--marquee-gap); width: max-content; padding-block: 12px; animation: ats-marquee var(--marquee-speed) linear infinite; }
.marquee__track > * { flex: none; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
/* Pause button for the moving logo strips (added by kit.js): only shown while it has keyboard focus */
.strip-pause {
  position: absolute; top: 4px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: var(--r-pill);
  background: var(--navy); color: #fff;
  font: 700 var(--fs-small)/1.2 var(--font-body);
  cursor: pointer;
  opacity: 0; pointer-events: none;
}
.strip-pause:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid #fff; outline-offset: -5px; }
.strip-pause[aria-pressed="true"]::after { content: " (paused)"; }
@keyframes ats-marquee { to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* =========================================================== Accordion */
.accordion { display: grid; gap: 14px; }
.accordion__item {
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-3) var(--ease-out);
  --heading: var(--navy);
  --text: var(--ink);
}
.accordion__item[open] { box-shadow: var(--shadow-2); }
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 18px 16px 24px;
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
  font: 600 1.125rem/1.35 var(--font-display);
  color: var(--heading);
  letter-spacing: -0.008em;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::marker { content: ""; }
.accordion__toggle {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-mist);
  transition: background-color var(--t-2), rotate var(--t-3) var(--ease-out);
}
.accordion__toggle::before, .accordion__toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--navy);
  transition: rotate var(--t-3) var(--ease-out), opacity var(--t-2);
}
.accordion__toggle::after { rotate: 90deg; }
.accordion__item[open] .accordion__toggle { background: var(--green-strong); }
.accordion__item[open] .accordion__toggle::before { background: #fff; }
.accordion__item[open] .accordion__toggle::after { rotate: 0deg; opacity: 0; }
.accordion__panel { overflow: hidden; }
.accordion__content { padding: 0 24px 24px; color: var(--text); max-width: 43.6em; }
.accordion__content > * + * { margin-top: 0.8em; }
.accordion__content a { color: var(--link); font-weight: 600; }
.accordion--flat .accordion__item { box-shadow: inset 0 0 0 1.5px var(--line); }
.accordion--flat .accordion__item[open] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (max-width: 599px) {
  .accordion__summary { padding-left: 18px; font-size: 1.0625rem; text-align: left; }
  .accordion__content { padding: 0 18px 20px; text-align: left; }
}

/* =========================================================== Tabs (wrap on phones, never scroll sideways) */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--s-6);
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--font-body);
  color: var(--navy);
  transition: background-color var(--t-2), color var(--t-2);
}
.tabs__tab:hover { background: var(--green-mist); }
.tabs__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs__tab .icon { width: 1.15em; height: 1.15em; }
.tabs__panel:focus-visible { border-radius: var(--r-md); }
.tabs--center .tabs__list { margin-inline: auto; }
@media (max-width: 599px) {
  .tabs__list { justify-content: center; margin-inline: auto; width: 100%; border-radius: var(--r-md); }
  .tabs__tab { flex: 1 1 auto; justify-content: center; padding-inline: 14px; }
}

/* =========================================================== Slider / carousel */
.slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: var(--r-lg); touch-action: pan-y; }
.slider__track { display: flex; gap: var(--slider-gap, 24px); transition: transform 620ms var(--ease-out); will-change: transform; }
.slider__slide { flex: 0 0 var(--slide-w, 100%); min-width: 0; }
.slider--cards { --slide-w: min(380px, 86%); }
.slider--cards .slider__viewport { overflow: visible; border-radius: 0; }
.slider--cards-clip .slider__viewport { overflow: hidden; }
.slider__controls { display: flex; align-items: center; gap: 12px; margin-top: var(--s-6); }
.slider__controls--center { justify-content: center; }
.slider__arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-1);
  transition: background-color var(--t-2), color var(--t-2), opacity var(--t-2);
}
.slider__arrow--next { background: var(--navy); color: #fff; }
.slider__arrow:hover { background: var(--green-strong); color: #fff; }
.slider__arrow[disabled] { opacity: 0.4; cursor: default; }
.slider__arrow .icon { width: 20px; height: 20px; }
/* 44px tap targets at every width; the visible dot is the ::before */
.slider__dots { display: flex; flex-wrap: wrap; gap: 0; margin-inline: 4px; }
.slider__dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.slider__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: width var(--t-3) var(--ease-out), background-color var(--t-2); }
.slider__dot[aria-current="true"]::before { width: 24px; border-radius: 6px; background: var(--green-strong); }
.slider__progress { flex: 1; max-width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.slider__progress > span { display: block; height: 100%; width: var(--p, 0%); background: var(--green-strong); border-radius: inherit; transition: width var(--t-3) var(--ease-out); }
/* Compact counter ("3 of 12"), shown instead of dots on phones when there are more than 4 positions */
.slider__count { display: none; min-width: 5.5em; text-align: center; font: 700 var(--fs-small)/1 var(--font-body); color: var(--heading); font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .slider__controls { justify-content: center; }
  /* 44px tap targets on phones; with many slides the dots give way to the counter (slider.js adds .slider--many) */
  .slider__dots { flex-wrap: nowrap; margin-inline: 0; }
  .slider--many .slider__dots { display: none; }
  .slider--many .slider__count { display: block; }
}

/* =========================================================== Quote and testimonial */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: clamp(28px, 3vw, 44px);
  padding-top: calc(clamp(28px, 3vw, 44px) + 54px);   /* clear space for the speech marks above the text */
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-1);
  isolation: isolate;
  --heading: var(--navy);
}
.quote-card__mark { position: absolute; z-index: -1; top: clamp(24px, 2.6vw, 36px); left: clamp(26px, 2.9vw, 42px); width: 40px; height: 40px; color: var(--green); fill: currentColor; opacity: 0.9; }
.quote-card__stars { display: flex; gap: 3px; color: var(--sun); }
.quote-card__stars .icon { width: 18px; height: 18px; }
.quote-card__text { font: 500 clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem)/1.5 var(--font-display); color: var(--heading); letter-spacing: -0.008em; }
.quote-card__by { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.quote-card__avatar {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-deep);
  font: 700 1rem/1 var(--font-display);
}
.quote-card__name { display: block; font-weight: 700; color: var(--heading); letter-spacing: 0.02em; }
.quote-card__role { display: block; color: var(--muted); font-size: var(--fs-small); line-height: 1.4; }
.quote-card--tint { background: var(--green-mist); box-shadow: none; }
.quote-card--navy { background: var(--navy); --heading: #fff; color: rgba(255, 255, 255, 0.86); }
.quote-card--navy .quote-card__mark { color: var(--lime); }
.quote-card--navy .quote-card__role { color: rgba(255, 255, 255, 0.7); }
.big-quote { font: 500 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.35 var(--font-display); color: var(--heading); letter-spacing: -0.015em; text-wrap: balance; }

/* =========================================================== Timeline */
.timeline { position: relative; list-style: none; padding: 0; display: grid; gap: var(--s-7); }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--green-soft), var(--blue-soft)); border-radius: 2px; }
.timeline__item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 22px; }
.timeline__node {
  grid-row: span 3;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: 700 1.05rem/1 var(--font-display);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}
.timeline__meta { font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.timeline__title { font: var(--display-weight) var(--fs-h4)/1.3 var(--font-display); color: var(--heading); }
.timeline__text { color: var(--text); }
/* timeline--cards: each item's copy sits on a white card (sec.timeline(..., cards=true) wraps it in .timeline__body).
   Works with --zigzag: the card is one grid cell, so it moves to either side as a whole. */
.timeline--cards .timeline__body {
  display: grid; gap: 6px; align-content: start;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-1);
}
.timeline--cards .timeline__item { gap: 6px 18px; }
.timeline--cards .timeline__body .timeline__meta { padding-top: 0; }
@media (min-width: 900px) {
  .timeline--zigzag::before { left: 50%; margin-left: -1px; }
  .timeline--zigzag .timeline__item { grid-template-columns: 1fr 48px 1fr; gap: 0 40px; }
  .timeline--zigzag .timeline__node { grid-column: 2; grid-row: 1 / span 3; }
  .timeline--zigzag .timeline__item > :not(.timeline__node) { grid-column: 3; }
  .timeline--zigzag .timeline__item:nth-child(even) > :not(.timeline__node) { grid-column: 1; text-align: right; }
}
@media (max-width: 599px) { .timeline { text-align: left; } }

/* =========================================================== Steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); } }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.step__num {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font: 700 1.35rem/1 var(--font-display);
}
.step:last-child .step__num { background: var(--primary); color: #fff; }
.step__num:empty::before { content: counter(step); }
.step__title { font: var(--display-weight) var(--fs-h4)/1.3 var(--font-display); color: var(--heading); }
.step__text { color: var(--text); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .steps--joined .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 72px;
    right: -12px;
    height: 2px;
    background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 0);
    background-size: 10px 2px;
  }
}
@media (max-width: 599px) {
  .step { align-items: center; text-align: center; }
}
.steps--cards .step { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }

/* Numbered marker (forms, small steps) */
.num-marker { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--navy); font: 700 0.875rem/1 var(--font-body); flex: none; }

/* =========================================================== CTA band (closing navy card) */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: clamp(360px, 36vw, 520px);
  padding: clamp(40px, 6vw, 88px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 92% 105%, rgba(86, 165, 56, 0.20), transparent 70%),
    radial-gradient(55% 70% at 68% 112%, rgba(42, 107, 160, 0.55), transparent 70%),
    var(--band-deep);
  box-shadow: var(--shadow-3);
}
.cta-band__copy { position: relative; z-index: 2; max-width: 560px; min-width: 0; }
.cta-band__title { font-size: calc(var(--fs-h2) * 1.1); line-height: 1.08; }
.cta-band__lead { margin-top: var(--s-5); max-width: 29.5em; }
.cta-band .btn-row { margin-top: var(--s-6); }
.cta-band__motif {
  position: absolute;
  z-index: 1;
  right: clamp(-120px, -6vw, -40px);
  bottom: calc(var(--cta-motif-w) * -0.42);
  --cta-motif-w: clamp(300px, 46%, 600px);
  width: var(--cta-motif-w);
  pointer-events: none;
  translate: 0 calc((1 - min(1, var(--progress, 1) * 3)) * 18%);
}
.cta-band--green { background: radial-gradient(60% 80% at 90% 100%, rgba(155, 212, 122, 0.35), transparent 70%), var(--green-deep); }
.cta-band--light { background: var(--band-green); box-shadow: none; }
.cta-band--light .cta-band__motif { --motif-leaf: var(--blue-soft); --motif-trunk: var(--green-soft); }
@media (max-width: 599px) {
  .cta-band { text-align: center; padding-bottom: 200px; }
  .cta-band__copy { margin-inline: auto; }
  .cta-band__lead { margin-inline: auto; }
  .cta-band .btn-row { justify-content: center; flex-direction: column; align-items: stretch; }
  .cta-band__motif { --cta-motif-w: 300px; right: 50%; margin-right: -150px; bottom: -130px; }
  .cta-band .btn { white-space: normal; text-align: center; }
}
@media (max-width: 399px) { .cta-band { padding-inline: 22px; } }
/* Tablets: keep the copy clear of the tree motif */
@media (min-width: 600px) and (max-width: 1023px) { .cta-band__copy { max-width: min(560px, 58%); } }

/* =========================================================== Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--header-clear);
  padding-bottom: clamp(56px, 7vw, 104px);
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%; right: -14%;
  width: min(820px, 80vw);
  aspect-ratio: 1;
  background: var(--glow-green);
  pointer-events: none;
}
.page-hero--tint { background: linear-gradient(to bottom, var(--band-green) 0%, var(--band-green) 70%, var(--bg) 100%); }
.page-hero--blue { background: linear-gradient(to bottom, var(--band-blue) 0%, var(--band-blue) 70%, var(--bg) 100%); }
.page-hero__inner { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; padding-top: clamp(4px, 1.2vw, 16px); }
@media (min-width: 900px) { .page-hero--has-image .page-hero__inner { grid-template-columns: 1.08fr 0.92fr; } }
.page-hero__title { max-width: 9.9em; }
.page-hero__lead { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero__media { position: relative; }
.page-hero__motif { position: absolute; z-index: -1; top: -14%; right: -12%; width: 46%; pointer-events: none; }
.page-hero__chips { margin-top: var(--s-6); }
@media (max-width: 599px) {
  .page-hero__copy { text-align: center; }
  .page-hero__title, .page-hero__lead { margin-inline: auto; }
  .page-hero .btn-row { justify-content: center; flex-direction: column; align-items: stretch; }
  .page-hero__chips { justify-content: center; }
}

/* Breadcrumbs were removed from every page in round 2 (the BreadcrumbList JSON-LD stays, see build.cjs). */

/* =========================================================== Notice box */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--blue-mist);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(42, 107, 160, 0.14);
  text-align: left;
}
.notice > .icon-tile { --tile-size: 40px; background: #fff; color: var(--blue); }
.notice__title { font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.notice--green { background: var(--green-mist); box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.18); }
.notice--green > .icon-tile { color: var(--green-strong); }
.notice--sun { background: var(--sun-soft); box-shadow: inset 0 0 0 1px rgba(245, 194, 76, 0.4); }
.notice--sun > .icon-tile { color: #8A6100; }
.notice--todo { background: #FFF6E5; box-shadow: inset 0 0 0 1.5px #F0B44C; }

/* Callout card (the "Still wondering" card) */
.callout { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--green-mist); box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.16); display: grid; gap: 12px; }

/* =========================================================== Map frame */
.map-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--blue-mist); box-shadow: 0 0 0 6px #fff, var(--shadow-2); aspect-ratio: var(--ar, 16 / 10); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.map-frame__card { position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 32px); }
.map-frame iframe { z-index: 1; }
/* Static layer behind the iframe: visible if the embed is blocked (privacy extensions, offline) */
.map-frame__fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px; text-align: center; color: var(--navy);
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--navy) 12%, transparent) 1px, transparent 0) 0 0 / 22px 22px, linear-gradient(135deg, var(--blue-mist), var(--green-mist));
}
.map-frame__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50% 50% 50% 8%; rotate: -45deg; background: var(--green-strong); color: #fff; box-shadow: var(--shadow-2); }
.map-frame__pin .icon { rotate: 45deg; width: 26px; height: 26px; }
.map-frame__addr { font-weight: 700; font-size: var(--fs-small); }
.map-frame__open { position: absolute; z-index: 2; top: 14px; right: 14px; min-height: 44px; padding: 8px 16px; transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2); }
.map-frame__open:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.map-frame__open .icon:first-child { color: var(--green-strong); }
.map-frame__open .icon:last-of-type { width: 0.95em; height: 0.95em; color: var(--muted); }
@media (max-width: 599px) { .map-frame__open { left: 12px; right: 12px; top: auto; bottom: 12px; justify-content: center; } }
.map-frame:has(.map-frame__card) .map-frame__open { top: 14px; bottom: auto; }

/* =========================================================== Social icon buttons */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.social__link {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--heading) 8%, transparent);
  color: var(--heading);
  transition: background-color var(--t-2), color var(--t-2), translate var(--t-2) var(--ease-out);
}
.social__link svg { width: 20px; height: 20px; fill: currentColor; }
.social__link:hover { translate: 0 -2px; background: #fff; }
.social__link--instagram:hover { color: #E1306C; }
.social__link--facebook:hover { color: #1877F2; }
.social__link--tiktok:hover { color: #000; }
.social__link--whatsapp:hover { color: #25D366; }

/* =========================================================== Floating chrome: ask pill and back to top */
.float-ask {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px 0 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font: 700 0.9375rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75), var(--shadow-3);
  transition: translate var(--t-3) var(--ease-out), opacity var(--t-3), background-color var(--t-2);
}
.float-ask:hover { background: #128C4A; }
.float-ask__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #25D366; }
.float-ask__icon svg { width: 17px; height: 17px; fill: #fff; }
html.float-tucked .float-ask, html.menu-open .float-ask { translate: 0 calc(100% + 30px); opacity: 0; pointer-events: none; }
/* Phones and tablets: the float waits until the page has been scrolled a little (kit.js adds .float-on),
   so it never sits on a hero button or a form field on the first screen. Always there without JS. */
@media (max-width: 1023px) { html.js:not(.float-on) .float-ask { translate: 0 calc(100% + 30px); opacity: 0; pointer-events: none; } }
@media (max-width: 599px) {
  .float-ask { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .float-ask__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .float-ask__icon { width: 34px; height: 34px; }
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 600 var(--fs-small)/1 var(--font-body);
  color: inherit;
  text-decoration: none;
}
.to-top__icon {
  display: grid; place-items: end center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: background-color var(--t-2);
}
.to-top__icon svg { width: 30px; height: 30px; translate: 0 6px; transition: translate var(--t-3) var(--ease-spring); }
.to-top:hover .to-top__icon { background: rgba(255, 255, 255, 0.18); }
.to-top:hover .to-top__icon svg { translate: 0 1px; }

/* =========================================================== Misc */
.divider-leaves { display: flex; justify-content: center; gap: 10px; margin-block: var(--s-6); }
.divider-leaves span { width: 10px; height: 14px; border-radius: 0 100% 0 100%; transform: rotate(45deg); background: var(--green); opacity: 0.85; }
.divider-leaves span:nth-child(2) { background: var(--blue); }
.divider-leaves span:nth-child(3) { background: var(--green-bright); }
.value-tag { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--heading); }
.value-tag s { color: var(--muted); font-weight: 500; }
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--muted); font-weight: 600; font-size: var(--fs-small); list-style: none; padding: 0; }
.ticker li { display: inline-flex; align-items: center; gap: 22px; }
.ticker li + li::before { content: ""; width: 7px; height: 10px; border-radius: 0 100% 0 100%; transform: rotate(45deg); background: var(--dot); }

/* =========================================================== Lightbox (optional) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 33, 61, 0.82); backdrop-filter: blur(4px); }
.lightbox__figure img { max-height: 84vh; width: auto; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lightbox__figure figcaption { margin-top: 12px; color: #fff; text-align: center; font-weight: 600; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 26px; line-height: 1; box-shadow: var(--shadow-2); }

@media (max-width: 599px) {
  .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .feature > .icon-tile { grid-row: auto; }
}

/* ==== forms.css ==== */
/* Forms: fields, choice cards, multi-step progress, states. Inputs are 16px+ so iOS never zooms. */

.form { display: grid; gap: 20px; text-align: left; }
.form-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-3);
  --heading: var(--navy);
  --text: var(--ink);
}
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid > .field--full, .form-grid > .form-grid__full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; min-width: 0; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 0.9375rem/1.3 var(--font-body); color: var(--heading); }
.field__optional { font: 500 var(--fs-micro)/1.3 var(--font-body); color: var(--muted); }
.field__hint { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
.field__hint .icon { width: 1em; height: 1em; margin-top: 0.2em; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  font-size: max(16px, 1rem);
  caret-color: var(--green-strong);
  transition: box-shadow var(--t-2) var(--ease-out), background-color var(--t-2);
  -webkit-appearance: none;
  appearance: none;
}
.input { line-height: 52px; height: 52px; }      /* placeholder vertically centred, including Safari */
.input::placeholder, .textarea::placeholder { color: var(--slate); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--navy) 42%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--green-soft); }
.textarea { min-height: 140px; padding: 14px 18px; line-height: 1.55; resize: vertical; }
.select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4068' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
input[type="date"].input { line-height: normal; display: flex; align-items: center; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }

/* States */
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { box-shadow: inset 0 0 0 2px var(--error); background: var(--error-soft); }
.field.is-valid .input, .field.is-valid .select, .field.is-valid .textarea { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--success) 60%, transparent); }
.field__error { display: none; gap: 6px; align-items: flex-start; color: var(--error); font: 600 var(--fs-small)/1.4 var(--font-body); }
.field__error .icon { width: 1.05em; height: 1.05em; margin-top: 0.15em; }
.field.is-invalid .field__error { display: flex; }

/* Honeypot: hidden from people, visible to bots */
.hp-field { display: none !important; }

/* Choice cards (radio and checkbox) */
.choices { display: grid; gap: 12px; border: 0; padding: 0; min-width: 0; }
.choices__legend { font: 700 0.9375rem/1.3 var(--font-body); color: var(--heading); margin-bottom: 10px; padding: 0; }
.choices--2 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.choices--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--t-2), background-color var(--t-2);
}
.choice__card .icon-tile { --tile-size: 40px; }
.choice__text { display: grid; gap: 2px; flex: 1; }
.choice__title { font-weight: 700; color: var(--navy); line-height: 1.3; }
.choice__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.choice__check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  display: grid; place-items: center;
  transition: background-color var(--t-2), box-shadow var(--t-2);
}
.choice__input[type="checkbox"] + .choice__card .choice__check { border-radius: 7px; }
.choice__check::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; }
.choice:hover .choice__card { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--navy) 42%, transparent); }
.choice__input:checked + .choice__card { background: var(--green-mist); box-shadow: inset 0 0 0 2px var(--green-strong); }
.choice__input:checked + .choice__card .choice__check { background: var(--green-strong); box-shadow: none; }
.choice__input:checked + .choice__card .choice__check::after { opacity: 1; }
.choice__input:focus-visible + .choice__card { box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--green-soft); }
.choices--pills .choice__card { min-height: 46px; padding: 8px 18px; border-radius: var(--r-pill); }
.choices--pills .choice__check { display: none; }
.choices--pills .choice__input:checked + .choice__card { background: var(--navy); box-shadow: none; }
.choices--pills .choice__input:checked + .choice__card .choice__title { color: #fff; }
.choices.is-invalid .choice__card { box-shadow: inset 0 0 0 1.5px var(--error); }
.choices .choice__input:focus-visible + .choice__card { box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px var(--green-soft); } /* after the invalid rule: the focus ring always shows */
.choices + .field__error, .choices .field__error { margin-top: 8px; }
.choices.is-invalid .field__error { display: flex; }

/* Multi-step progress */
.stepper { display: grid; gap: 14px; margin-bottom: var(--s-6); }
.stepper__bar { height: 6px; border-radius: 6px; background: var(--green-mist); overflow: hidden; }
.stepper__fill { display: block; height: 100%; width: var(--progress, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--green-bright), var(--green-strong)); transition: width var(--t-4) var(--ease-out); }
.stepper__steps { display: flex; justify-content: space-between; gap: 8px; list-style: none; padding: 0; }
.stepper__step { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-small)/1.2 var(--font-body); color: var(--muted); }
.stepper__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-mist); color: var(--green-deep); font: 700 0.8125rem/1 var(--font-body); flex: none; transition: background-color var(--t-2), color var(--t-2); }
.stepper__step.is-current { color: var(--navy); }
.stepper__step.is-current .stepper__dot { background: var(--navy); color: #fff; }
.stepper__step.is-done .stepper__dot { background: var(--green-strong); color: #fff; }
@media (max-width: 599px) { .stepper__label { display: none; } .stepper__step.is-current .stepper__label { display: inline; } }
.form-step { display: grid; gap: 20px; }
.form-step__title { font: var(--display-weight) var(--fs-h3)/1.2 var(--font-display); color: var(--heading); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }
.form-nav .btn--ghost { margin-right: auto; }
.form-note { font-size: var(--fs-small); color: var(--muted); }
.form-note .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.form-status { font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }

/* Success panel */
.form-success {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px) clamp(8px, 2vw, 24px);
  text-align: center;
  overflow: hidden;
}
.form-success__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green-strong); }
.form-success__icon .icon { width: 40px; height: 40px; stroke-width: 2.4; }
.form-success__title { font: var(--display-weight) var(--fs-h2)/1.1 var(--font-display); color: var(--heading); }
.form-success__text { max-width: 28.2em; color: var(--text); }
.leaf-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.leaf-confetti i {
  position: absolute; top: -20px;
  width: 12px; height: 17px;
  border-radius: 0 100% 0 100%;
  background: var(--c, var(--green));
  animation: ats-leaf-fall var(--d, 2.4s) var(--ease-soft) var(--delay, 0s) forwards;
  opacity: 0;
}
@keyframes ats-leaf-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 30px), 420px) rotate(var(--r, 280deg)); }
}
@media (prefers-reduced-motion: reduce) { .leaf-confetti { display: none; } }

/* ==== header.css ==== */
/* Site header: glass pill + dropdowns.
 * Mobile menu: A drop card (default), B full-screen sheet, C side drawer. */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  pointer-events: none;
  padding-top: var(--header-top);
  transition: translate 320ms var(--ease-out), padding var(--t-3) var(--ease-out);
}
.site-header__bar {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 16px;
  width: calc(100% - 2 * var(--gutter) + 24px);
  max-width: calc(var(--container) + 24px);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 12px 0 24px;
  border-radius: var(--r-pill);
  transition: height var(--t-3) var(--ease-out), max-width var(--t-3) var(--ease-out);
}
.site-header__bar::before, .site-header__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.site-header__bar::before {
  background: color-mix(in srgb, #fff 88%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 0 1px rgba(10, 49, 87, 0.06), 0 1px 2px rgba(10, 49, 87, 0.04), 0 8px 24px -10px rgba(10, 49, 87, 0.16);
}
.site-header__bar::after { box-shadow: 0 12px 32px -14px rgba(10, 49, 87, 0.24); opacity: 0; transition: opacity var(--t-3); }
html.is-scrolled .site-header__bar::after { opacity: 1; }
html.is-scrolled .site-header__bar::before { background: color-mix(in srgb, #fff 96%, transparent); }
html.is-scrolled .site-header { --header-top: 10px; }
html.is-scrolled .site-header__bar { height: calc(var(--header-h) - 10px); }
html.header-hidden:not(.menu-open) .site-header { translate: 0 calc(-100% - 40px); }

.site-header__logo { display: inline-flex; align-items: center; justify-self: start; height: 100%; padding-block: 12px; border-radius: 12px; text-decoration: none; }
.site-header__logo svg, .site-header__logo img { height: 46px; width: auto; transition: scale var(--t-3) var(--ease-out), rotate var(--t-3) var(--ease-spring); transform-origin: left center; }
html.is-scrolled .site-header__logo svg, html.is-scrolled .site-header__logo img { scale: 0.88; }
.site-header__logo:hover svg, .site-header__logo:hover img { rotate: -2deg; }
.brand-fallback { font: 800 1.35rem/1 var(--font-display); color: var(--blue); letter-spacing: -0.02em; }
.brand-fallback b { color: var(--green); font-weight: 700; font-size: 0.7em; letter-spacing: 0.12em; text-transform: uppercase; }

/* Nav links */
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  color: var(--navy);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-2);
}
.site-nav__link:hover, .site-nav__item.is-open > .site-nav__link { background: rgba(10, 49, 87, 0.06); }
.site-nav__link[aria-current="page"]::after, .site-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 7px; height: 10px;
  margin-left: -3.5px;
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
  background: var(--green);
}
.site-nav__chev { width: 16px; height: 16px; transition: rotate var(--t-3) var(--ease-out); }
.site-nav__item.is-open .site-nav__chev { rotate: 180deg; }
.site-nav__ext { width: 14px; height: 14px; opacity: 0.6; }

/* Dropdown panel (style A) */
.site-nav__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 250px;
  padding: 8px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  translate: -50% -6px;
  scale: 0.97;
  transform-origin: top center;
  transition: opacity 180ms var(--ease-out), translate 200ms var(--ease-out), scale 200ms var(--ease-out), visibility 0s linear 200ms;
}
.site-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
.site-nav__item.is-open > .site-nav__panel,
html:not(.js) .site-nav__item:hover > .site-nav__panel,
html:not(.js) .site-nav__item:focus-within > .site-nav__panel {
  opacity: 1; visibility: visible; translate: -50% 0; scale: 1;
  transition: opacity 180ms var(--ease-out), translate 200ms var(--ease-out), scale 200ms var(--ease-out), visibility 0s;
}
.dd-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.dd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--t-2);
}
.dd-link:hover, .dd-link:focus-visible { background: var(--blue-mist); }
.dd-link[aria-current="page"] { background: var(--blue-mist); }
.dd-link__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-mist); color: var(--blue-deep); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t-2), color var(--t-2); }
.dd-link__ico .icon { width: 18px; height: 18px; }
.dd-link:hover .dd-link__ico, .dd-link[aria-current="page"] .dd-link__ico { background: var(--navy); color: #fff; box-shadow: none; }


/* Actions */
.site-header__actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.site-header__login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--navy); font: 600 0.9375rem/1 var(--font-body); text-decoration: none; }
.site-header__login:hover { background: rgba(10, 49, 87, 0.06); }
.site-header__login .icon { width: 18px; height: 18px; color: var(--green-strong); }
.site-header__cta { --btn-h: 50px; }
html.is-scrolled .site-header__cta { --btn-h: 46px; }

.menu-toggle {
  position: relative;
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(10, 49, 87, 0.07);
  color: var(--navy);
}
.menu-toggle__lines, .menu-toggle__lines::before { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: currentColor; transition: rotate var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out), width var(--t-3); }
.menu-toggle__lines { top: 50%; translate: 0 -4px; }
.menu-toggle__lines::before { content: ""; top: 0; left: 0; margin: 0; translate: 0 8px; width: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { translate: 0 0; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { translate: 0 0; rotate: -90deg; width: 18px; }

@media (max-width: 1199px) {
  .site-header__login { display: none; }
}
@media (max-width: 1023px) {
  .site-header__bar { grid-template-columns: 1fr auto; padding: 0 8px 0 18px; }
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 599px) {
  .site-header__bar { width: calc(100% - 20px); padding: 0 7px 0 14px; gap: 8px; }
  .site-header__logo svg, .site-header__logo img { height: 36px; }
  .site-header__cta { --btn-h: 44px; padding: 0 16px; font-size: 0.9375rem; }
  html.is-scrolled .site-header__cta { --btn-h: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  .site-header__cta { padding: 0 12px; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header__bar::before { background: #fff; backdrop-filter: none; }
}

/* ======================================================= Mobile menu (shared) */
.mobile-menu { position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); }
.mobile-menu__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--navy-deep) 18%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.mobile-menu__panel {
  position: absolute;
  top: calc(var(--header-top) + var(--header-h) + 8px);
  left: 10px; right: 10px;
  max-height: calc(100dvh - var(--header-top) - var(--header-h) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 26px;
  background: color-mix(in srgb, #fff 90%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(6, 33, 61, 0.06), 0 30px 70px -20px rgba(6, 33, 61, 0.38);
  opacity: 0;
  translate: 0 -12px;
  scale: 0.98;
  transform-origin: top center;
  transition: opacity 360ms var(--ease-out), translate 440ms cubic-bezier(0.22, 1, 0.36, 1), scale 440ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open .mobile-menu__scrim { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { opacity: 1; translate: 0 0; scale: 1; }
.mobile-menu__head { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 14px 10px; }
.mobile-menu__head svg, .mobile-menu__head img { height: 38px; width: auto; }
.mobile-menu__logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: 10px; }
.mobile-menu__close { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(10, 49, 87, 0.07); color: var(--navy); }
.mobile-menu__close .icon { width: 22px; height: 22px; }
@media (min-width: 600px) and (max-width: 1023px) {
  .mobile-menu__panel { left: auto; right: max(calc((100% - var(--container)) / 2), var(--gutter)); width: 420px; }
}

.mm-list { list-style: none; padding: 0; }
.mm-item { position: relative; }
.mm-item + .mm-item::before { content: ""; position: absolute; top: 0; left: 58px; right: 10px; height: 1px; background: var(--line); }
.mm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 15px;
  color: var(--navy);
  font: 600 1.0625rem/1.25 var(--font-body);
  text-decoration: none;
  text-align: left;
  transition: background-color var(--t-2);
}
.mm-row:hover { background: rgba(10, 49, 87, 0.05); }
.mm-row[aria-current="page"] { background: var(--blue-mist); }
.mm-row[aria-current="page"] .mm-ico { background: var(--navy); color: #fff; }
.mm-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--blue-mist); color: var(--blue-deep); box-shadow: inset 0 0 0 1px var(--line); }
.mm-ico .icon { width: 19px; height: 19px; }
.mm-row__label { flex: 1; }
.mm-row__chev { width: 18px; height: 18px; color: var(--muted); transition: rotate 440ms cubic-bezier(0.22, 1, 0.36, 1); }
.mm-row[aria-expanded="true"] .mm-row__chev { rotate: 180deg; }
.mm-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 440ms cubic-bezier(0.22, 1, 0.36, 1); }
.mm-sub > div { overflow: hidden; }
.mm-sub.is-open { grid-template-rows: 1fr; }
.mm-sub ul { list-style: none; padding: 2px 0 8px 50px; display: grid; gap: 2px; }
.mm-subrow { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mm-subrow:hover, .mm-subrow[aria-current="page"] { background: var(--blue-mist); color: var(--navy); }
.mm-cta { padding: 12px 6px 4px; }
.mm-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 6px 6px; }
.mm-quick a { flex: 1 1 auto; justify-content: center; min-height: 44px; }

/* lab:start Menu B: full-screen sheet */
:root[data-menu="b"] .mobile-menu { z-index: calc(var(--z-header) + 1); }
:root[data-menu="b"] .mobile-menu__panel {
  inset: 0;
  max-height: none;
  height: 100dvh;
  border-radius: 0;
  padding: calc(var(--header-top) + 4px) max(var(--gutter), 16px) 24px;
  background: #fff;
  backdrop-filter: none;
  translate: 0 24px;
  scale: 1;
  width: auto;
}
:root[data-menu="b"] .mobile-menu__head { display: flex; min-height: var(--header-h); padding-bottom: 18px; }
:root[data-menu="b"] .mm-row { min-height: 60px; font-size: 1.25rem; font-family: var(--font-display); }
:root[data-menu="b"] .mm-ico { width: 42px; height: 42px; }
:root[data-menu="b"] .mm-item + .mm-item::before { left: 66px; }
/* Menu C: side drawer */
:root[data-menu="c"] .mobile-menu { z-index: calc(var(--z-header) + 1); }
:root[data-menu="c"] .mobile-menu__panel {
  top: 0; bottom: 0; right: 0; left: auto;
  width: min(400px, 88vw);
  max-height: none;
  border-radius: 28px 0 0 28px;
  padding: calc(var(--header-top) + 4px) 16px 24px;
  background: #fff;
  backdrop-filter: none;
  translate: 100% 0;
  scale: 1;
  opacity: 1;
}
:root[data-menu="c"] .mobile-menu.is-open .mobile-menu__panel { translate: 0 0; }
:root[data-menu="c"] .mobile-menu__head { display: flex; min-height: var(--header-h); }
:root[data-menu="c"] .mobile-menu__scrim { background: color-mix(in srgb, var(--navy-deep) 40%, transparent); }
/* lab:end */

/* ==== footer.css ==== */
/* Footer: navy sheet with big rounded top corners and a rising tree on the horizon.
 * The area behind the corners shows --footer-under (set it on body in page CSS to match your last band). */
.site-footer { --footer-r: clamp(28px, 4vw, 56px); background: var(--footer-under, var(--bg)); }
.footer-sheet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--footer-r) var(--footer-r) 0 0;
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(42, 107, 160, 0.35), transparent 70%),
    var(--band-deep);
  padding-top: clamp(64px, 7vw, 104px);
}
.footer-top {
  display: grid;
  gap: 48px clamp(24px, 4vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } .footer-brand, .footer-contact { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 2.6fr 1.5fr 1.5fr 1.5fr 2.6fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
}
.footer-brand__logo { display: inline-block; border-radius: 12px; }
.footer-brand__logo svg, .footer-brand__logo img { height: 64px; width: auto; }
.footer-brand__lede { margin-top: 22px; max-width: 15.5em; text-wrap: balance; font: var(--display-weight) 1.2rem/1.35 var(--font-display); color: #fff; letter-spacing: -0.012em; }
.footer-brand .social { margin-top: 24px; }
.footer-brand .social__link { background: rgba(255, 255, 255, 0.09); color: #fff; }
.footer-brand .social__link:hover { background: #fff; }
.footer-col__title { margin-bottom: 16px; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
.footer-links { list-style: none; padding: 0; display: grid; gap: 2px; }
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-2), translate var(--t-2) var(--ease-out);
}
.footer-links a:hover { color: var(--lime); translate: 3px 0; }
.footer-links a[aria-current="page"] { color: #fff; font-weight: 700; }
.footer-links a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; width: 7px; height: 10px; border-radius: 0 100% 0 100%; transform: rotate(45deg); background: var(--lime); }
.footer-links .icon { width: 14px; height: 14px; opacity: 0.7; }
.footer-contact__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.footer-contact__item { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.86); }
.footer-contact__item .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--lime); flex: none; }
.footer-contact__item a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-contact__item a:hover { color: var(--lime); }
.footer-contact .btn { margin-top: 22px; }
/* r3 qa-a: 44px tap targets for footer links on touch screens (desktop keeps the tighter rhythm) */
@media (max-width: 1199px), (pointer: coarse) {
  .footer-links a { min-height: 44px; min-width: 44px; }
  .footer-links { gap: 0; }
  .footer-contact__item { align-items: center; }
  .footer-contact__item:first-child { align-items: flex-start; }
  .footer-contact__item a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact__list { gap: 6px; }
}

.footer-accred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.footer-accred__label { font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); margin-right: 8px; }
.footer-accred .logo-strip { justify-content: flex-start; gap: 12px; }
.footer-accred .logo-pill { height: 64px; min-width: 0; padding: 8px 16px; border-radius: 16px; box-shadow: none; }
.footer-accred .logo-pill img { max-height: 46px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding-block: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.64);
}
.footer-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.84); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a:hover { color: var(--lime); }
.footer-legal .to-top { color: #fff; font-size: var(--fs-small); }

/* The horizon: faint wordmark beside a rising tree, clipped at the bottom edge */
.footer-horizon { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 32px); height: clamp(130px, 13vw, 210px); margin-top: 8px; overflow: hidden; pointer-events: none; }
.footer-horizon__word {
  flex: none;
  white-space: nowrap;
  margin-bottom: -0.2em;
  font: 800 clamp(4.5rem, 10vw, 10rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: color-mix(in srgb, #fff 6%, var(--band-deep));
}
.footer-horizon__tree {
  order: -1;
  flex: none;
  width: clamp(170px, 17vw, 270px);
  margin-bottom: calc(clamp(170px, 17vw, 270px) * -0.3);
  --motif-leaf: rgba(255, 255, 255, 0.13);
  --motif-trunk: rgba(155, 212, 122, 0.55);
}
@media (max-width: 719px) {
  .footer-sheet { text-align: center; }
  .footer-brand__lede { margin-inline: auto; }
  .footer-brand .social, .footer-accred, .footer-accred .logo-strip { justify-content: center; }
  .footer-contact__list { justify-items: center; }
  .footer-contact__item { text-align: left; }
  .footer-links { justify-items: center; }
  .footer-links a[aria-current="page"]::before { display: none; }
  .footer-legal { justify-content: center; text-align: center; flex-direction: column; }
  .footer-legal__links { justify-content: center; }
  .footer-accred__label { width: 100%; margin: 0; }
  .footer-horizon__word { display: none; }
  .footer-horizon__tree { width: 52vw; margin-bottom: -16vw; }
  .footer-horizon { height: 40vw; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .footer-top { text-align: left; }
}

/* ==== motion.css ==== */
/* Motion: hidden "before" states exist only with JS and only when motion is welcome.
 * Content is always visible without JS. motion.js animates with the Web Animations API on
 * opacity + translate/scale so it never fights transforms or hovers. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js [data-reveal]:not([data-reveal="none"]):not(.is-revealed),
  html.js [data-stagger] > :not([data-reveal="none"]):not(.is-revealed),
  html.js [data-split]:not(.is-revealed),
  html.js [data-count]:not(.is-revealed) { opacity: 0; }

  /* failsafe: if the engine never starts, everything appears after 3s */
  html.js:not(.ats-motion) [data-reveal],
  html.js:not(.ats-motion) [data-stagger] > *,
  html.js:not(.ats-motion) [data-split],
  html.js:not(.ats-motion) [data-count] { animation: ats-motion-failsafe 1ms linear 3s both; }
}
@keyframes ats-motion-failsafe { to { opacity: 1; } }

/* Split headings: words in mask spans; clip-path (not overflow) so there is no layout shift */
.split__line { display: inline; }
.split__w { display: inline-block; }
.split__i { display: inline-block; }
.is-split:not(.is-split-done) .split__w { clip-path: inset(-0.3em -0.25em -0.22em -0.25em); }
.split__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hover niceties for fine pointers */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-tilt] { transition: transform var(--t-3) var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cta-band__motif { translate: none !important; }
}

/* ==== scroll.css ==== */
/* Scroll-led components (round 2). Markup and options: docs/COMPONENTS.md, live demos on /kitchen-sink/.
 *   [data-scroll-progress]  per-element --p (0 to 1) from the scroll position   .parallax  .scale-in
 *   .draw-line              steps joined by a line that fills as you scroll, numbers that switch on
 *   .draw-path              any SVG path that draws itself with scroll
 *   .sticky-story           pinned column (heading, swapping photos) beside scrolling steps
 *   .orbit                  hub and spoke, a list on phones
 *   .glass-card .glass-chip frosted surfaces    .lift  gentle hover lift
 * Rules: everything is readable with no JS (scroll.js only adds state classes and custom properties), nothing
 * moves with prefers-reduced-motion, nothing is wider than its container. */

/* ------------------------------------------------------------------ progress helpers */
@media (prefers-reduced-motion: no-preference) {
  /* photo drifts a little slower than the page: put .parallax on a clipped frame around the image */
  html.js .parallax[data-scroll-progress] { overflow: clip; }
  html.js .parallax[data-scroll-progress] > :is(img, picture, .media, .parallax__layer) {
    translate: 0 calc((var(--p, 0.5) - 0.5) * var(--parallax, -48px));
    scale: var(--parallax-scale, 1.1);
    will-change: translate;
  }
  /* grows into place as it enters: use with data-scroll-progress="enter" */
  html.js .scale-in[data-scroll-progress] {
    scale: calc(var(--scale-from, 0.92) + (1 - var(--scale-from, 0.92)) * var(--p, 1));
    opacity: calc(0.35 + 0.65 * var(--p, 1));
    transform-origin: 50% 60%;
  }
  /* drifts up or down by its own amount: --float: -30px */
  html.js .float-y[data-scroll-progress] { translate: 0 calc((var(--p, 0.5) - 0.5) * var(--float, -30px)); }
}

/* ------------------------------------------------------------------ draw-line */
.draw-line {
  --dl-num: 44px;                 /* marker size */
  --dl-gap: clamp(16px, 2vw, 24px);
  --dl-track: var(--line-strong);
  --dl-fill: var(--green);
  --dl-p: 1;                      /* no JS: the line is simply drawn */
  position: relative;
  display: grid;
  gap: clamp(28px, 3.4vw, 48px);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: dl;
}
.draw-line::before, .draw-line::after {
  content: "";
  position: absolute;
  top: var(--dl-start, calc(var(--dl-num) / 2));       /* scroll.js measures the first and last marker */
  bottom: var(--dl-end, calc(var(--dl-num) / 2));
  left: calc(var(--dl-num) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--dl-track);
}
.draw-line::after { background: var(--dl-fill); transform-origin: 50% 0; transform: scaleY(var(--dl-p)); }
html.js .draw-line.is-live { --dl-p: 0; }
.draw-line__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--dl-num) minmax(0, 1fr);
  gap: var(--dl-gap);
  align-items: start;
  counter-increment: dl;
}
.draw-line__num {
  display: grid;
  place-items: center;
  width: var(--dl-num);
  height: var(--dl-num);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 6px var(--dl-surface, var(--bg));
  font: 700 1rem/1 var(--font-display);
  transition: background-color var(--t-3) var(--ease-out), color var(--t-3) var(--ease-out), box-shadow var(--t-3) var(--ease-out), scale var(--t-4) var(--ease-spring);
}
.draw-line__num:empty::before { content: counter(dl); }
.draw-line__num .icon { width: 20px; height: 20px; }
.draw-line__body { min-width: 0; padding-top: calc((var(--dl-num) - 1.6em) / 2); display: grid; gap: 8px; }
.draw-line__body > * { margin: 0; }
.draw-line__title { font: var(--display-weight) var(--fs-h4)/1.25 var(--font-display); letter-spacing: -0.012em; color: var(--heading); }
.draw-line__meta { font: 700 var(--fs-micro)/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-strong); }
/* small green text needs the strong green for AA on light surfaces; navy bands keep the lime accent */
:is(.on-navy, .band--navy, .band--deep, .card--navy) .draw-line__meta { color: var(--accent); }
:is(.on-navy, .band--navy, .band--deep, .card--navy) :is(.on-light, .card:not(.card--navy), .glass) .draw-line__meta { color: var(--green-strong); }
/* live states: markers wait (outlined) until the line reaches them */
html.js .draw-line.is-live .draw-line__item:not(.is-reached) .draw-line__num {
  background: var(--dl-surface, var(--bg));
  color: var(--muted);
  box-shadow: 0 0 0 6px var(--dl-surface, var(--bg)), inset 0 0 0 2px var(--dl-track);
}
html.js .draw-line.is-live .draw-line__item.is-active .draw-line__num { background: var(--primary); color: #fff; scale: 1.12; box-shadow: 0 0 0 6px var(--dl-surface, var(--bg)), 0 0 0 7px color-mix(in srgb, var(--primary) 35%, transparent); }
.on-navy .draw-line, .band--navy .draw-line { --dl-surface: var(--band-deep); --dl-fill: var(--lime); }
.on-navy .draw-line__num, .band--navy .draw-line__num { background: var(--lime); color: var(--navy); }

/* cards on the line */
.draw-line--cards .draw-line__body { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); transition: box-shadow var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out); }
html.js .draw-line--cards.is-live .draw-line__item.is-active .draw-line__body { box-shadow: var(--shadow-2); }

/* row on desktop: steps side by side, the line runs across and draws as the row scrolls into view */
@media (min-width: 900px) {
  .draw-line--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); }
  .draw-line--row::before, .draw-line--row::after { top: calc(var(--dl-num) / 2 - 1px); bottom: auto; left: var(--dl-start, calc(var(--dl-num) / 2)); right: var(--dl-end, calc(var(--dl-num) / 2)); width: auto; height: 2px; }
  .draw-line--row::after { transform-origin: 0 50%; transform: scaleX(var(--dl-p)); }
  .draw-line--row .draw-line__item { grid-template-columns: minmax(0, 1fr); }
  .draw-line--row .draw-line__body { padding-top: 0; }
  .draw-line--row.draw-line--center .draw-line__item { justify-items: center; text-align: center; }
  .draw-line--row.draw-line--center::before, .draw-line--row.draw-line--center::after { left: var(--dl-start, calc(50% / var(--dl-n, 3))); right: var(--dl-end, calc(50% / var(--dl-n, 3))); }
}
@media (max-width: 599px) {
  .draw-line { --dl-num: 40px; --dl-gap: 14px; }
}

/* ------------------------------------------------------------------ draw-path (SVG) */
.draw-path { display: block; width: 100%; height: auto; overflow: visible; }
.draw-path path, .draw-path line, .draw-path polyline { fill: none; stroke: var(--dl-fill, var(--green)); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.draw-path .draw-path__track { stroke: var(--line-strong); }
html.js .draw-path.is-live :is(path, line, polyline):not(.draw-path__track) { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }

/* ------------------------------------------------------------------ sticky scroll story */
.sticky-story {
  --story-top: calc(var(--header-h) + var(--header-top) + 28px);
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.sticky-story__pin { min-width: 0; }
.sticky-story__media { position: relative; display: grid; margin-top: var(--s-6); border-radius: var(--r-lg); overflow: hidden; background: var(--band-mist); box-shadow: var(--shadow-2); aspect-ratio: var(--story-ar, 4 / 3); max-height: min(52vh, 460px); width: 100%; }
.sticky-story__frame { grid-area: 1 / 1; position: relative; min-height: 0; opacity: 0; visibility: hidden; scale: 1.04; transition: opacity 600ms var(--ease-smooth), scale 900ms var(--ease-smooth), visibility 0s linear 600ms; }
.sticky-story__frame.is-active { opacity: 1; visibility: visible; scale: 1; transition: opacity 600ms var(--ease-smooth), scale 900ms var(--ease-smooth), visibility 0s; }
.sticky-story__frame :is(img, picture, .media) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.sticky-story__frame picture { display: block; }
.sticky-story__caption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; }
.sticky-story__count { margin-top: var(--s-4); font: 600 var(--fs-small)/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.sticky-story__count b { color: var(--heading); font-weight: 700; }
.sticky-story__steps { align-content: start; }
.sticky-story__inline { margin-top: 8px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
@media (min-width: 600px) and (max-width: 899px) { .sticky-story__inline { aspect-ratio: 2 / 1; } }
.sticky-story__inline :is(img, picture, .media) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
html:not(.js) .sticky-story__count { display: none; }

@media (min-width: 900px) {
  .sticky-story { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .sticky-story--reverse .sticky-story__pin { order: 2; }
  .sticky-story__pin { position: sticky; top: var(--story-top); }
  .sticky-story__inline { display: none; }
  /* generous steps so each one has its moment beside the pinned column */
  .sticky-story__steps { --ss-pt: clamp(8px, 4vh, 48px); --ss-pb: clamp(24px, 12vh, 140px); --ss-ip: clamp(20px, 5vh, 52px); gap: 0; padding-block: var(--ss-pt) var(--ss-pb); }
  .sticky-story__steps .draw-line__item { padding-block: var(--ss-ip); }
  .sticky-story__steps::before, .sticky-story__steps::after { top: var(--dl-start, calc(var(--ss-pt) + var(--ss-ip) + var(--dl-num) / 2)); }
  .sticky-story__steps .draw-line__body { transition: opacity var(--t-3) var(--ease-out), translate var(--t-4) var(--ease-smooth), box-shadow var(--t-3) var(--ease-out); }
  html.js .sticky-story.is-live .draw-line__item:not(.is-active) .draw-line__body { opacity: 0.72; }
  /* [r2 qa-c] the small green label of a dimmed step fell to 3.1:1 on light surfaces; it rests in the heading colour
     and turns green when its step becomes active. On navy it stays lime (already AA when dimmed). */
  html.js .sticky-story.is-live .draw-line__item:not(.is-active) .draw-line__meta { color: var(--heading); }
  html.js :is(.on-navy, .band--navy, .band--deep, .card--navy) .sticky-story.is-live .draw-line__item:not(.is-active) .draw-line__meta { color: var(--accent); }
  html.js .sticky-story.is-live .draw-line__item.is-active .draw-line__body { translate: 6px 0; }
}
/* short laptop screens: shrink the pinned photo so the whole pinned column still fits under the header */
@media (min-width: 900px) and (max-height: 720px) {
  .sticky-story { --story-top: calc(var(--header-h) + var(--header-top) + 16px); }
  .sticky-story__media { max-height: clamp(170px, calc(100vh - 440px), 460px); margin-top: var(--s-5); }
}
@media (max-width: 899px) {
  /* phones and tablets: a clean stacked list with the line; each step carries its own photo */
  .sticky-story__media, .sticky-story__count { display: none; }
  .sticky-story__pin { text-align: center; }
  .sticky-story__pin > * { margin-inline: auto; }
}

/* ------------------------------------------------------------------ orbit (hub and spoke) */
.orbit {
  --orbit-n: 6;
  --orbit-start: -90deg;
  --orbit-rx: 38cqw;
  --orbit-ry: 24cqw;
  --orbit-turn: 0deg;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--s-5);
  justify-items: center;
  width: 100%;
  max-width: var(--orbit-max, 860px);
  margin-inline: auto;
}
.orbit__hub {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  place-content: center;
  gap: 6px;
  width: clamp(120px, 34vw, 168px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--navy) 8%, transparent), var(--shadow-3);
  font: 600 1rem/1.2 var(--font-display);
}
.orbit__hub .icon { width: 36px; height: 36px; color: var(--lime); }
.orbit__hub img, .orbit__hub .logo { max-width: 76%; height: auto; }
.orbit__hub--light { background: #fff; color: var(--heading); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5), var(--shadow-3); }
.orbit__hub--photo { padding: 0; overflow: hidden; }
.orbit__hub--photo :is(img, picture, .media) { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.orbit__spokes { display: none; }
.orbit__items { position: relative; z-index: 1; display: grid; gap: 12px; width: 100%; list-style: none; padding: 0; margin: 0; }
.orbit__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-1);
  color: var(--text);
  text-align: left;
  font-size: var(--fs-small);
  line-height: 1.4;
}
.orbit__item b, .orbit__item strong { display: block; color: var(--heading); font: 600 1rem/1.25 var(--font-display); }
.orbit__item > .icon-tile, .orbit__item > .icon { flex: none; }
@media (min-width: 600px) and (max-width: 899px) { .orbit__items { grid-template-columns: 1fr 1fr; } }
/* list mode: a short stem joins the hub to the list */
@media (max-width: 899px) {
  .orbit__hub::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: calc(var(--s-5) + 10px); margin-left: -1px; background: var(--line-strong); z-index: -1; }
}
@media (min-width: 900px) {
  @supports (width: calc(1px * cos(10deg))) and (container-type: inline-size) {
    .orbit { container-type: inline-size; display: block; height: auto; aspect-ratio: 1 / 0.64; }
    .orbit::before { content: ""; position: absolute; z-index: 0; left: calc(50% - var(--orbit-rx)); top: calc(50% - var(--orbit-ry)); width: calc(2 * var(--orbit-rx)); height: calc(2 * var(--orbit-ry)); border-radius: 50%; border: 1px dashed var(--line-strong); pointer-events: none; }
    .orbit__hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(140px, 22cqw, 200px); }
    .orbit__items { position: absolute; inset: 0; display: block; }
    .orbit__item, .orbit__spoke {
      --a: calc(var(--orbit-start) + var(--orbit-turn) + (360deg / var(--orbit-n)) * var(--i, 0));
      --dx: calc(cos(var(--a)) * var(--orbit-rx));
      --dy: calc(sin(var(--a)) * var(--orbit-ry));
    }
    .orbit__item {
      position: absolute;
      left: calc(50% + var(--dx));
      top: calc(50% + var(--dy));
      translate: -50% -50%;
      width: max-content;
      max-width: min(250px, 27cqw);
      transition: box-shadow var(--t-3) var(--ease-out), scale var(--t-3) var(--ease-out);
    }
    .orbit__item:hover { box-shadow: var(--shadow-2); scale: 1.03; }
    .orbit__spokes { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .orbit__spoke {
      position: absolute;
      left: 50%; top: 50%;
      height: 2px;
      margin-top: -1px;
      width: hypot(var(--dx), var(--dy));
      transform-origin: 0 50%;
      rotate: atan2(var(--dy), var(--dx));
      background: linear-gradient(to right, var(--green), var(--blue));
      opacity: 0.55;
      border-radius: 2px;
    }
  }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* with data-scroll-progress the ring turns a few degrees as you scroll and the spokes grow out of the hub */
  html.js .orbit[data-scroll-progress] { --orbit-turn: calc((var(--p, 0.5) - 0.5) * var(--orbit-swing, 24deg)); }
  html.js .orbit[data-scroll-progress] .orbit__spoke { scale: clamp(0, calc(var(--p, 1) * 3.2 - 0.25), 1) 1; }
}

/* ------------------------------------------------------------------ glass */
.glass-card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 1px 2px rgba(10, 49, 87, 0.05), 0 18px 40px -18px rgba(10, 49, 87, 0.28);
  color: var(--text);
}
.glass-card--dark {
  --heading: #fff; --text: rgba(255, 255, 255, 0.88); --muted: rgba(255, 255, 255, 0.72); --accent: var(--lime); --dot: var(--lime); --link: #fff;
  --line: rgba(255, 255, 255, 0.16);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--glass-dark-border), 0 18px 40px -18px rgba(6, 33, 61, 0.5);
  color: var(--text);
}
.glass-card--sm { padding: 14px 16px; border-radius: var(--r-md); }
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 6px 16px -8px rgba(10, 49, 87, 0.3);
  color: var(--navy);
  font: 600 var(--fs-small)/1.2 var(--font-body);
  text-decoration: none;
}
.glass-chip .icon { width: 16px; height: 16px; color: var(--green-strong); flex: none; }
.glass-chip--dark { background: rgba(6, 33, 61, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); color: #fff; }
.glass-chip--dark .icon { color: var(--lime); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(255, 255, 255, 0.94); }
  .glass-card--dark { background: rgba(10, 49, 87, 0.86); }
  .glass-chip { background: rgba(255, 255, 255, 0.94); }
  .glass-chip--dark { background: rgba(6, 33, 61, 0.86); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-card--dark { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-chip { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-chip--dark { background: var(--navy-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* gentle hover lift, no tilt */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lift { transition: translate var(--t-3) var(--ease-smooth), box-shadow var(--t-3) var(--ease-smooth); }
  .lift:hover { translate: 0 -3px; box-shadow: var(--shadow-2); }
  .glass-card.lift:hover { box-shadow: inset 0 0 0 1px var(--glass-border), 0 2px 4px rgba(10, 49, 87, 0.06), 0 26px 48px -20px rgba(10, 49, 87, 0.36); }
  .glass-card--dark.lift:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 26px 48px -20px rgba(6, 33, 61, 0.6); }
}

/* ------------------------------------------------------------------ two doors (closing CTA pair) */
.doors { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 820px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: clamp(300px, 26vw, 360px);
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.door::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--green); }
.door__title { font-size: calc(var(--fs-h2) * 1.02); }
.door__text { max-width: 26em; }
.door .btn-row { margin-top: auto; padding-top: 10px; gap: 12px 20px; align-items: center; }
.door__motif { position: absolute; z-index: -1; right: -56px; bottom: -84px; width: 260px; opacity: 0.5; pointer-events: none; }
.door--navy { background: radial-gradient(70% 90% at 100% 110%, rgba(42, 107, 160, 0.6), transparent 70%), var(--band-deep); box-shadow: var(--shadow-3); }
.door--navy::before { background: var(--lime); }
.door--navy .door__motif { opacity: 0.16; }
.door--blue { background: linear-gradient(160deg, var(--blue-mist), #fff 70%); }
.door--blue::before { background: var(--blue); }
@media (max-width: 599px) {
  .door { align-items: center; text-align: center; min-height: 0; }
  .door .btn-row { flex-direction: column; width: 100%; }
  .door .btn-row .btn { width: 100%; }
}

/* ==== kit.css ==== */
/* Round 3 components. Markup and options: docs/COMPONENTS.md ("Round 3 components"), live on /kitchen-sink/.
 *   .stack-cards     panels that slide up and stack over each other as you scroll
 *   .compare         comparison table: us versus others, ticks and crosses
 *   .showcase        browser or tablet frame for a real screenshot, with glass callouts
 *   .run-total       a total that climbs as each item scrolls past
 *   .switch          two-state pill toggle (a tab pair) that swaps two panels
 *   .logo-wall       rows of logos drifting in opposite directions
 *   .contact-icon    brand-correct email, WhatsApp, phone and contact form icons
 *   .who-gets        "your apprentice gets / your whole team gets" pair (wording rule)
 * Rules (same as scroll.css): readable with no JS, nothing moves with prefers-reduced-motion, nothing is wider
 * than its container, and everything measures itself on scroll so it works inside Design Lab options and tabs
 * that were hidden at load. JS: src/js/core/kit.js. */

/* ------------------------------------------------------------------ stacking cards */
.stack-cards {
  --sc-top: calc(var(--header-clear) + 4px);   /* where the first card pins */
  --sc-step: 14px;                              /* how much of each earlier card stays visible */
  --sc-gap: clamp(20px, 2.4vw, 32px);
  display: grid;
  gap: var(--sc-gap);
  list-style: none;
  padding: 0;
  margin: 0;
}
.stack-cards__item { --sc-i: 0; min-width: 0; }
.stack-cards__item:nth-child(2) { --sc-i: 1; }
.stack-cards__item:nth-child(3) { --sc-i: 2; }
.stack-cards__item:nth-child(4) { --sc-i: 3; }
.stack-cards__item:nth-child(5) { --sc-i: 4; }
.stack-cards__item:nth-child(6) { --sc-i: 5; }
.stack-cards__item:nth-child(n + 7) { --sc-i: 6; }
.stack-card {
  --sc-accent: var(--green);
  --sc-wash: var(--green-mist);
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 48px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 -1px 0 rgba(10, 49, 87, 0.04), 0 24px 48px -28px rgba(10, 49, 87, 0.34);
  overflow: clip;
  transform-origin: 50% 0;
}
.stack-card::before {                      /* fine accent edge along the top */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--sc-accent);
}
.stack-card--blue { --sc-accent: var(--blue); --sc-wash: var(--blue-mist); }
.stack-card--green { --sc-accent: var(--green); --sc-wash: var(--green-mist); }
.stack-card--tint { background: linear-gradient(180deg, var(--sc-wash), #fff 62%); }
.stack-card--navy { --sc-accent: var(--lime); background: var(--navy); box-shadow: 0 24px 48px -28px rgba(6, 33, 61, 0.6); }
.stack-card__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.stack-card__copy > * { margin: 0; }
.stack-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stack-card__num {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sc-accent); color: #fff;
  font: 700 0.95rem/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.stack-card--navy .stack-card__num { color: var(--navy); }
.stack-card__meta { font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stack-card__logo { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.stack-card__title { font-size: var(--fs-h3); text-wrap: balance; }
.stack-card__text { max-width: 34em; color: var(--text); }
.stack-card__value { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); }
.stack-card__value b { font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.stack-card__media { position: relative; min-width: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sc-wash); }
.stack-card__media :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.stack-card__media--plain { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
@media (min-width: 900px) {
  .stack-card { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); min-height: var(--sc-min, 0); }
  .stack-card--flip .stack-card__media { order: -1; }
  .stack-card--solo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .stack-card { text-align: center; }
  .stack-card__copy { justify-items: center; }
  .stack-card__top { justify-content: center; }
  .stack-card .list-check, .stack-card .list-leaf { text-align: left; }
}
/* The stacking itself: desktop and tablet landscape, screens tall enough, motion allowed. Everywhere else
   (phones, reduced motion, very short screens, a card taller than the screen: kit.js adds .is-flat) it is a
   plain list of cards. */
@media (min-width: 900px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .stack-cards:not(.is-flat) { gap: clamp(36px, 7vh, 72px); padding-bottom: calc(var(--sc-step) * 3); }
  .stack-cards:not(.is-flat) > .stack-cards__item { position: sticky; top: calc(var(--sc-top) + var(--sc-i) * var(--sc-step)); }
  /* kit.js writes --sc-c (0 to 1): how far the next card has slid over this one */
  html.js .stack-cards.is-live:not(.is-flat) .stack-card {
    scale: calc(1 - var(--sc-c, 0) * 0.035);
    filter: brightness(calc(1 - var(--sc-c, 0) * 0.06));
  }
}

/* ------------------------------------------------------------------ comparison table */
.compare {
  --cmp-us: var(--green-strong);          /* colour of "our" column */
  --cmp-us-wash: var(--green-mist);
  --cmp-col: minmax(112px, 0.5fr);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
  padding: clamp(6px, 1vw, 12px) clamp(10px, 2vw, 24px) clamp(10px, 1.4vw, 18px);
}
.compare--blue { --cmp-us: var(--blue); --cmp-us-wash: var(--blue-mist); }
.compare--navy { --cmp-us: var(--navy); --cmp-us-wash: var(--blue-mist); }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare__table :is(th, td) { padding: 16px clamp(8px, 1.4vw, 20px); text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.compare__table thead th { padding-block: 18px; font: 700 var(--fs-small)/1.25 var(--font-display); color: var(--muted); vertical-align: bottom; }
.compare__table thead th:first-child { text-align: left; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.compare__table :is(thead, tbody) :is(th, td):first-child { width: 46%; text-align: left; padding-left: clamp(6px, 1vw, 12px); }
.compare__table tbody th { font: 600 1rem/1.35 var(--font-display); color: var(--heading); }
.compare__table tbody th small { display: block; margin-top: 3px; font: 400 var(--fs-small)/1.45 var(--font-body); color: var(--muted); }
.compare__table td { font-size: var(--fs-small); line-height: 1.45; color: var(--text); }
/* our column: a tinted, ringed column with rounded ends */
.compare__table .compare__us { background: var(--cmp-us-wash); box-shadow: inset 2px 0 0 var(--cmp-us), inset -2px 0 0 var(--cmp-us); border-bottom-color: color-mix(in srgb, var(--cmp-us) 14%, transparent); color: var(--heading); font-weight: 600; }
.compare__table thead .compare__us { border-radius: var(--r-md) var(--r-md) 0 0; background: var(--cmp-us); box-shadow: none; color: #fff; }
.compare__table tbody tr:last-child .compare__us { border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: inset 2px 0 0 var(--cmp-us), inset -2px 0 0 var(--cmp-us), inset 0 -2px 0 var(--cmp-us); }
.compare__head-logo { display: block; max-height: 30px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
.compare__head-tag { display: block; margin-top: 4px; font: 600 var(--fs-micro)/1.3 var(--font-body); opacity: 0.86; }
.compare__mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.compare__mark .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.compare__mark--yes { background: var(--cmp-us); color: #fff; }
.compare__mark--no { background: var(--mist); color: #8794A1; box-shadow: inset 0 0 0 1px var(--line); }
.compare__mark--part { background: var(--sun-soft); color: #7A5600; }
.compare__mark + .compare__note { display: block; margin-top: 6px; }
.compare__note { font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.compare__us .compare__note { color: var(--text); }
.compare__foot { margin: 14px 0 4px; padding-inline: clamp(6px, 1vw, 12px); font-size: var(--fs-micro); color: var(--muted); }
@media (max-width: 599px) {
  .compare { padding-inline: 8px; }
  .compare__table :is(th, td) { padding: 14px 6px; }
  .compare__table :is(thead, tbody) :is(th, td):first-child { width: 44%; padding-left: 6px; }
  .compare__table thead th { font-size: var(--fs-micro); }
  .compare__table tbody th { font-size: 0.9375rem; }
  .compare__table td { font-size: var(--fs-micro); }
  .compare__head-logo { max-height: 22px; }
  /* compare--stack (for cells that hold sentences): each row becomes a small card with labelled lines */
  .compare--stack { padding: 0; background: none; box-shadow: none; }
  .compare--stack .compare__table, .compare--stack tbody, .compare--stack tr, .compare--stack :is(th, td) { display: block; width: auto !important; }
  .compare--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare--stack tbody { display: grid; gap: 14px; }
  .compare--stack tr { padding: 18px 16px 8px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); }
  .compare--stack .compare__table tbody th { padding: 0 0 10px !important; border: 0; text-align: center !important; font-size: 1.0625rem; }
  .compare--stack .compare__table td { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px !important; margin-bottom: 8px; border: 0; border-radius: var(--r-sm); text-align: left; font-size: var(--fs-small); background: var(--mist); box-shadow: none !important; }
  .compare--stack .compare__table td::before { content: attr(data-label); grid-column: 1 / -1; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .compare--stack .compare__table td.compare__us { border-radius: var(--r-sm); background: var(--cmp-us-wash); box-shadow: inset 0 0 0 1.5px var(--cmp-us) !important; }
  .compare--stack .compare__table td.compare__us::before { color: var(--cmp-us); }
  .compare--stack .compare__mark + .compare__note { margin-top: 0; }
  .compare--stack td > .compare__note:only-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ product showcase frame */
.showcase {
  --showcase-ar: 16 / 10;                 /* the screenshot's visible ratio */
  --showcase-pad: clamp(0px, 4vw, 44px);  /* room for the callouts to overhang the frame */
  position: relative;
  margin: 0;
  padding-inline: 0;
}
.showcase__frame {
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 49, 87, 0.1), 0 2px 4px rgba(10, 49, 87, 0.05), 0 34px 70px -30px rgba(10, 49, 87, 0.42);
  overflow: hidden;
}
.showcase__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #EEF2F6; border-bottom: 1px solid var(--line); }
.showcase__bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #C9D3DD; }
.showcase__bar i:nth-child(1) { background: #EC6A5E; }
.showcase__bar i:nth-child(2) { background: #F4BF4F; }
.showcase__bar i:nth-child(3) { background: #61C554; }
.showcase__url {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 1 360px; min-width: 0; height: 24px; margin-inline: auto; padding: 0 12px;
  border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font: 500 0.75rem/1 var(--font-body); color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.showcase__url .icon { flex: none; width: 11px; height: 11px; color: var(--green-strong); }
.showcase__bar::after { content: ""; flex: none; width: 44px; }      /* balances the three dots so the URL sits centred */
.showcase__screen { position: relative; aspect-ratio: var(--showcase-ar); background: var(--mist); overflow: hidden; }
.showcase__screen :is(picture, img, video) { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.showcase__screen--auto { aspect-ratio: auto; }
.showcase__screen--auto :is(picture, img) { height: auto; }
/* tablet: dark bezel, camera dot */
.showcase--tablet { --showcase-ar: 4 / 3; }
.showcase--tablet .showcase__frame { padding: clamp(10px, 1.6vw, 18px); border-radius: clamp(20px, 3vw, 34px); background: #10161D; box-shadow: inset 0 0 0 2px #2A333D, 0 34px 70px -30px rgba(10, 49, 87, 0.5); }
.showcase--tablet .showcase__frame::before { content: ""; position: absolute; top: 50%; left: clamp(3px, 0.5vw, 6px); width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: #3A4654; }
.showcase--tablet .showcase__screen { border-radius: clamp(8px, 1.2vw, 14px); }
.showcase--tilt .showcase__frame { rotate: -1.5deg; }
/* phone: narrow tall frame */
.showcase--phone { --showcase-ar: 9 / 19; max-width: 300px; margin-inline: auto; }
.showcase--phone .showcase__frame { padding: 9px; border-radius: 40px; background: #10161D; box-shadow: inset 0 0 0 2px #2A333D, 0 34px 70px -30px rgba(10, 49, 87, 0.5); }
.showcase--phone .showcase__screen { border-radius: 31px; }
.showcase__callouts { display: grid; gap: 12px; margin-top: 16px; list-style: none; padding: 0; }
.showcase__callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: left;
}
.showcase__callout .icon-tile { grid-row: span 2; }
.showcase__callout b { font: 600 0.9375rem/1.3 var(--font-display); color: var(--heading); }
.showcase__callout > span:not(.icon-tile) { grid-column: 2; font-size: var(--fs-micro); line-height: 1.4; color: var(--muted); }
.showcase__callout b:only-of-type:last-child { grid-row: span 2; }
.showcase__caption { margin-top: 14px; font-size: var(--fs-micro); color: var(--muted); text-align: center; }
@media (min-width: 600px) and (max-width: 899px) { .showcase__callouts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  /* callouts float over the corners of the frame as glass cards; the figure pads itself so they never
     reach past the container */
  .showcase--callouts { padding-inline: var(--showcase-pad); }
  .showcase__callouts { position: absolute; inset: 0; z-index: 2; display: block; margin: 0; pointer-events: none; }
  .showcase__callout {
    position: absolute; max-width: min(260px, 42%); pointer-events: auto;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 0 0 1px var(--glass-border), 0 1px 2px rgba(10, 49, 87, 0.05), 0 18px 40px -18px rgba(10, 49, 87, 0.34);
  }
  .showcase__callout:nth-child(1), .showcase__callout--tl { top: 16%; left: 0; right: auto; bottom: auto; }
  .showcase__callout:nth-child(2), .showcase__callout--br { bottom: 12%; right: 0; left: auto; top: auto; }
  .showcase__callout:nth-child(3), .showcase__callout--tr { top: 9%; right: 0; left: auto; bottom: auto; }
  .showcase__callout:nth-child(4), .showcase__callout--bl { bottom: 8%; left: 0; right: auto; top: auto; }
  .showcase__callout.showcase__callout--tl { top: 16%; left: 0; right: auto; bottom: auto; }
  .showcase__callout.showcase__callout--br { bottom: 12%; right: 0; left: auto; top: auto; }
  .showcase__callout.showcase__callout--tr { top: 9%; right: 0; left: auto; bottom: auto; }
  .showcase__callout.showcase__callout--bl { bottom: 8%; left: 0; right: auto; top: auto; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* with data-scroll-progress on the figure the callouts drift a few pixels against each other */
  html.js .showcase[data-scroll-progress] .showcase__callout { translate: 0 calc((var(--p, 0.5) - 0.5) * -28px); }
  html.js .showcase[data-scroll-progress] .showcase__callout:nth-child(even) { translate: 0 calc((var(--p, 0.5) - 0.5) * 28px); }
}
@media (prefers-reduced-transparency: reduce) { .showcase__callout { background: #fff; } }

/* ------------------------------------------------------------------ running total */
.run-total { --rt-top: calc(var(--header-clear) + 8px); display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
.run-total__panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: var(--shadow-3);
  color: rgba(255, 255, 255, 0.86);
  overflow: clip;
}
.run-total__panel > * { margin: 0; }
.run-total__k { font: 700 var(--fs-micro)/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.run-total__sum { font: 700 clamp(3rem, 2.2rem + 3.4vw, 4.8rem)/1 var(--font-display); letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; }
.run-total__note { display: flex; align-items: center; gap: 6px; min-height: 2.9em; font-size: var(--fs-small); line-height: 1.45; color: rgba(255, 255, 255, 0.84); }
.run-total__note .icon { flex: none; width: 16px; height: 16px; color: var(--lime); }
.run-total__meter { display: flex; gap: 5px; }
.run-total__meter i { flex: 1 1 0; min-width: 6px; height: 6px; border-radius: 3px; background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 0 / 100% 100%, rgba(255, 255, 255, 0.18); transition: background-size 700ms var(--ease-smooth); }
html.js .run-total.is-live .run-total__meter i:not(.is-on) { background-size: 0% 100%, auto; }
.run-total__cost { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); font: 700 var(--fs-micro)/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.run-total__cost b { font: 700 1.9rem/1 var(--font-display); letter-spacing: -0.03em; text-transform: none; color: var(--lime); }
.run-total__items { display: grid; gap: clamp(16px, 2vw, 24px); list-style: none; padding: 0; margin: 0; min-width: 0; }
.run-total__item { position: relative; min-width: 0; }
/* a light state for page CSS to build on: the item the total has just added */
html.js .run-total.is-live .run-total__item { transition: opacity var(--t-3) var(--ease-out); }
html.js .run-total.is-live .run-total__item:not(.is-added) { opacity: 0.72; }
.run-total__add { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--green-soft); color: var(--green-deep); font: 700 var(--fs-small)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.run-total__add .icon { width: 14px; height: 14px; }
@media (min-width: 900px) {
  .run-total { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .run-total--reverse .run-total__aside { order: 2; }
  .run-total__aside { position: sticky; top: var(--rt-top); }
  .run-total__items { gap: clamp(20px, 5vh, 44px); }
}
@media (min-width: 900px) and (max-height: 699px) { .run-total__aside { position: static; } }
@media (max-width: 899px) {
  .run-total__aside { text-align: center; }
  .run-total__panel { max-width: 460px; margin-inline: auto; text-align: center; }
  .run-total__note { justify-content: center; }
}
/* run-total--bar: the total is a slim bar that stays under the header while any layout scrolls beneath it */
.run-total--bar { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.run-total--bar .run-total__aside { position: static; z-index: 5; order: 0; }
.run-total--bar .run-total__panel { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 10px 28px; padding: 16px clamp(18px, 2.4vw, 30px); align-items: center; }
.run-total--bar .run-total__sum { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); }
.run-total--bar .run-total__note { min-height: 0; }
.run-total--bar .run-total__cost { padding-top: 10px; }
@media (min-width: 600px) {
  .run-total--bar .run-total__aside { position: sticky; top: var(--rt-top); }
  .run-total--bar .run-total__panel { grid-template-columns: auto auto minmax(0, 1fr) auto; text-align: left; }
  .run-total--bar .run-total__meter { grid-column: 1 / -1; order: 5; }
  .run-total--bar .run-total__cost { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); flex-direction: column; align-items: flex-start; gap: 4px; }
  .run-total--bar .run-total__note { justify-content: flex-start; }
}
@media (min-width: 600px) and (max-height: 599px) { .run-total--bar .run-total__aside { position: static; } }

/* ------------------------------------------------------------------ toggle switch (two-state pill) */
.switch {
  --sw-a: var(--navy);                    /* thumb colour for the first option */
  --sw-b: var(--green-strong);            /* and for the second */
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  isolation: isolate;
}
.switch--mono { --sw-b: var(--navy); }
.switch--center { margin-inline: auto; }
.switch__thumb {
  position: absolute; z-index: -1;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--r-pill);
  background: var(--sw-a);
  box-shadow: 0 6px 16px -8px rgba(10, 49, 87, 0.6);
  transition: translate 520ms var(--ease-smooth), background-color 520ms var(--ease-smooth);
}
.switch__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; min-width: 0;
  padding: 8px clamp(14px, 2.4vw, 28px);
  border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--font-display);
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  transition: color var(--t-2);
}
.switch__opt .icon { flex: none; width: 1.15em; height: 1.15em; }
.switch__opt[aria-selected="true"] { color: #fff; }
.switch__opt:not([aria-selected="true"]):hover { color: var(--green-strong); }
.switch[data-active="1"] .switch__thumb,
.switch:has(.switch__opt:nth-of-type(2)[aria-selected="true"]) .switch__thumb { translate: 100% 0; background: var(--sw-b); }
.on-navy .switch, .band--navy .switch { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); --sw-a: #fff; --sw-b: var(--lime); }
:is(.on-navy, .band--navy) .switch__opt { color: #fff; }
:is(.on-navy, .band--navy) .switch__opt[aria-selected="true"] { color: var(--navy); }
:is(.on-navy, .band--navy) .switch__opt:not([aria-selected="true"]):hover { color: var(--lime); }
.switch-view__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-bottom: var(--s-6); }
.switch-view__hint { font-size: var(--fs-small); color: var(--muted); }
.switch-view__panel:focus-visible { border-radius: var(--r-md); }
/* no JS: the switch cannot work, so it is hidden and both panels are shown one after the other */
html.no-js .switch-view .switch, html.no-js .switch-view__bar { display: none; }
html.no-js .switch-view__panel[hidden] { display: block !important; margin-top: var(--s-7); }
@media (max-width: 599px) {
  .switch { width: 100%; }
  .switch__opt { padding-inline: 8px; font-size: 0.9375rem; gap: 7px; }
}
@media (max-width: 379px) { .switch__opt .icon { display: none; } }
@media (prefers-reduced-motion: reduce) { .switch__thumb { transition: none; } }

/* ------------------------------------------------------------------ logo wall (drifting marquee rows) */
.logo-wall {
  --lw-gap: clamp(12px, 1.6vw, 20px);
  --lw-speed: 64s;
  --lw-h: 92px;                           /* tile height */
  display: grid;
  gap: var(--lw-gap);
  overflow: clip;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.logo-wall__row { display: flex; gap: var(--lw-gap); width: max-content; list-style: none; padding: 6px 0; margin: 0; animation: ats-logo-wall var(--lw-speed) linear infinite; }
.logo-wall__row:nth-child(even) { animation-direction: reverse; animation-duration: calc(var(--lw-speed) * 1.18); }
.logo-wall__row:nth-child(3) { animation-duration: calc(var(--lw-speed) * 0.9); }
.logo-wall { position: relative; }
.logo-wall:hover .logo-wall__row, .logo-wall:focus-within .logo-wall__row, .logo-wall.is-paused .logo-wall__row { animation-play-state: paused; }
@keyframes ats-logo-wall { to { transform: translateX(calc(-50% - var(--lw-gap) / 2)); } }
.logo-wall__tile {
  flex: none;
  display: grid; place-items: center;
  height: var(--lw-h);
  min-width: calc(var(--lw-h) * 1.7);
  padding: 14px 26px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -12px rgba(10, 49, 87, 0.3);
}
.logo-wall__tile img { display: block; max-height: calc(var(--lw-h) - 36px); max-width: 190px; width: auto; height: auto; object-fit: contain; }
.logo-wall--sm { --lw-h: 72px; }
.logo-wall--quiet .logo-wall__tile img { filter: grayscale(1); opacity: 0.72; transition: filter var(--t-3), opacity var(--t-3); }
.logo-wall--quiet .logo-wall__tile:hover img { filter: none; opacity: 1; }
@media (max-width: 599px) { .logo-wall { --lw-h: 72px; --lw-speed: 48s; } .logo-wall__tile { padding: 12px 18px; } .logo-wall__tile img { max-width: 140px; } }
@media (prefers-reduced-motion: reduce) {
  /* no drift: the first row becomes a tidy centred grid of every logo, the repeats are hidden */
  .logo-wall { -webkit-mask-image: none; mask-image: none; }
  .logo-wall__row { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-wall__row:not(:first-child), .logo-wall__row > [aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------------------ contact icons (brand-correct) */
.contact-icon {
  --ci-bg: var(--navy);
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ci-bg);
  color: #fff;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--ci-bg) 80%, transparent);
}
.contact-icon svg { width: 54%; height: 54%; fill: currentColor; stroke: none; }
.contact-icon--whatsapp { --ci-bg: #25D366; }                     /* WhatsApp green, white glyph */
.contact-icon--whatsapp svg { width: 60%; height: 60%; }
.contact-icon--email { --ci-bg: var(--blue); }                    /* ATS blue */
.contact-icon--contact { --ci-bg: var(--navy); }
.contact-icon--phone { --ci-bg: var(--green-strong); }
.contact-icon--round { border-radius: 50%; }
.contact-icon--sm { width: 36px; height: 36px; border-radius: 10px; }
.contact-icon--lg { width: 60px; height: 60px; border-radius: 18px; }
.contact-icon--sm.contact-icon--round, .contact-icon--lg.contact-icon--round { border-radius: 50%; }
/* a contact row: icon, small label, value. The whole row is the link. */
.contact-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 16px;
  min-height: 72px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--heading);
  text-align: left;
  text-decoration: none;
  transition: translate var(--t-3) var(--ease-out), box-shadow var(--t-3) var(--ease-out);
}
.contact-row .contact-icon { grid-row: span 2; }
.contact-row__label { align-self: end; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-row__value { grid-column: 2; align-self: start; font: 600 1.0625rem/1.3 var(--font-display); color: var(--heading); overflow-wrap: anywhere; }
.contact-row__go { grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); transition: translate var(--t-2), color var(--t-2); }
a.contact-row:hover { translate: 0 -2px; box-shadow: var(--shadow-2); }
a.contact-row:hover .contact-row__go { translate: 3px 0; color: var(--green-strong); }
.contact-rows { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
:is(.on-navy, .band--navy) .contact-row { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
:is(.on-navy, .band--navy) .contact-row :is(.contact-row__value) { color: #fff; }
:is(.on-navy, .band--navy) .contact-row__label, :is(.on-navy, .band--navy) .contact-row__go { color: rgba(255, 255, 255, 0.72); }
:is(.on-navy, .band--navy) .contact-icon--contact { --ci-bg: #fff; color: var(--navy); }
:is(.on-navy, .band--navy) a.contact-row:hover { background: rgba(255, 255, 255, 0.12); }
@media (prefers-reduced-motion: reduce) { a.contact-row:hover { translate: none; } }

/* ------------------------------------------------------------------ who gets what (wording rule) */
.who-gets { display: grid; gap: clamp(16px, 2vw, 24px); }
.who-gets__intro { font: 600 var(--fs-h4)/1.3 var(--font-display); color: var(--heading); text-align: center; }
.who-gets__grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .who-gets__grid { grid-template-columns: 1fr 1fr; } }
.who-gets__card {
  --wg: var(--blue);
  --wg-wash: var(--blue-mist);
  position: relative;
  display: grid; gap: 18px; align-content: start;
  padding: clamp(22px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 4px 0 var(--wg), var(--shadow-2);
}
.who-gets__card--team { --wg: var(--green); --wg-wash: var(--green-mist); }
.who-gets__card > * { margin: 0; }
.who-gets__head { display: flex; align-items: center; gap: 14px; }
.who-gets__head .icon-tile { background: var(--wg); color: #fff; }
.who-gets__title { font-size: var(--fs-h3); }
.who-gets__list { display: grid; gap: 0; list-style: none; padding: 0; }
.who-gets__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.who-gets__item > .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--wg); }
.who-gets__item b { font: 600 1.0625rem/1.3 var(--font-display); color: var(--heading); }
.who-gets__item span { grid-column: 2; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.who-gets__item em { grid-column: 3; grid-row: 1 / span 2; padding: 5px 12px; border-radius: var(--r-pill); background: var(--wg-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wg) 26%, transparent); font: 700 var(--fs-small)/1.2 var(--font-display); font-style: normal; color: var(--heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
.who-gets__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 16px clamp(18px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--navy); color: #fff; font: 600 1.0625rem/1.3 var(--font-display); }
.who-gets__sum b { color: var(--lime); font-weight: 700; }
.who-gets__sum span + span { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
@media (max-width: 599px) {
  .who-gets__head { flex-direction: column; text-align: center; }
  .who-gets__item { grid-template-columns: auto minmax(0, 1fr); }
  .who-gets__item em { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .who-gets__sum { flex-direction: column; text-align: center; }
  .who-gets__sum span + span { padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); width: 100%; }
}

/* ------------------------------------------------------------------ taller heroes (round 3) */
/* Inner page heroes were "squished at the top": the photo was a fixed square however tall the screen was.
   From 1024px the hero photo's height now follows the screen (--hero-photo-h), so the hero fills roughly
   70 to 85 percent of the first screen. Phones and tablets keep their layout. Page heroes built by hand can
   use the same tokens: --hero-photo-h for the photo, .section--hero-tall for a full-height band. */
@media (min-width: 1024px) {
  .page-hero { padding-bottom: clamp(52px, 4.6vw, 76px); }
  .page-hero--has-image .page-hero__inner { min-height: var(--hero-photo-h); }
  .page-hero__media > .mask-shadow > .media,
  .page-hero__media > .media { aspect-ratio: auto; height: var(--hero-photo-h); }
  .page-hero--has-image .page-hero__inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); }
  .section--hero-tall { display: grid; align-content: center; min-height: var(--hero-min-h); }
  .section--hero-tall > .container { width: 100%; }
}

/* ==== hubba-demo.css ==== */
/* Hubba Training walkthrough (round 4; faster and sharper in round 5). Markup: src/partials/hubba-demo.njk. JS: src/js/core/hubba-demo.js.
 * A copy of the guided tour on the hubbatraining.com home page, in a frame. The screens keep Hubba's own
 * product colours; the frame, ring, note card and controls use the Hubba blue of this site (--hd-accent).
 * Sharpness: the screens are 2432px wide files (phones 990px). The frame is sized so that the screen is exactly
 * 1216px wide in a 1240px container (330px on phones), which puts one picture pixel on one screen pixel on a
 * 2x (phones 3x) display. Keep the bezel padding and border in step with that if either changes. Nothing may
 * sit over the screen that softens it: no filter, no blur, and only a whisper of dimming (--hd-dim). */
.hubba-demo {
  --hd-accent: var(--blue, #2A6BA0);
  --hd-accent-2: var(--blue-bright, #2F7FC0);
  --hd-accent-deep: var(--blue-deep, #1A4C78);
  --hd-glow: 42, 107, 160;
  --hd-ink: #0f1b2d;
  --hd-ink-2: #475569;
  --hd-mute: #64748b;
  --hd-ease: cubic-bezier(.23, 1, .32, 1);
  --hd-glide: cubic-bezier(.4, 0, .2, 1);
  --hd-dim: rgba(15, 27, 45, .06);   /* how much the rest of the screen darkens around the ring (round 4 was .34) */
  --hd-move: .24s;                   /* ring and card glide */
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  text-align: left;
}
.hubba-demo *, .hubba-demo *::before, .hubba-demo *::after { box-sizing: border-box; }
.hubba-demo [hidden] { display: none !important; }

/* the white bezel that holds the screen, the caption and the progress bar */
.hubba-demo__bezel {
  position: relative;
  padding: 11px 11px 18px;   /* 1240 - 2 x (11 + 1 border) = a 1216px screen */
  border-radius: 30px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .05), 0 2px 4px rgba(15, 27, 45, .04), 0 30px 60px -30px rgba(15, 27, 45, .28), 0 50px 90px -50px rgba(var(--hd-glow), .4);
}

/* the screen */
.hubba-demo__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1216 / 760;
  border-radius: 22px;
  background: #e8efeb;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .06);
  -webkit-user-select: none; user-select: none;
}
.hubba-demo__shots { position: absolute; inset: 0; }
.hubba-demo__shot { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .16s linear; }
.hubba-demo__shot.is-on { opacity: 1; }
.hubba-demo__shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top left; border-radius: 0; }

/* side menu hotspots: only useful once the visitor has taken over */
.hubba-demo__hots { position: absolute; inset: 0; z-index: 2; }
.hubba-demo__hot { position: absolute; border-radius: 8px; cursor: pointer; }
.hubba-demo[data-view="free"] .hubba-demo__hot:hover { background: rgba(255, 255, 255, .14); }
.hubba-demo:not(.is-live) .hubba-demo__hots { display: none; }

/* the highlight ring, with the rest of the screen dimmed */
.hubba-demo__ring {
  position: absolute; top: 0; left: 0; z-index: 50;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hd-accent), 0 0 26px 4px rgba(var(--hd-glow), .4), 0 0 0 9999px var(--hd-dim);
  transition: transform var(--hd-move) var(--hd-glide), width var(--hd-move) var(--hd-glide), height var(--hd-move) var(--hd-glide), border-radius var(--hd-move) var(--hd-glide), opacity .14s var(--hd-ease), box-shadow .18s;
}
.hubba-demo__ring.is-on { opacity: 1; }
.hubba-demo__ring.is-ghost {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0 0 4px rgba(var(--hd-glow), 0), 0 0 26px 4px rgba(var(--hd-glow), 0), 0 0 0 9999px var(--hd-dim);
  transition-duration: .1s;
}
.hubba-demo__breathe {
  position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  box-shadow: 0 0 0 7px rgba(var(--hd-glow), .24), 0 0 34px 8px rgba(var(--hd-glow), .32);
  animation: hubba-demo-breathe 2.4s cubic-bezier(.37, 0, .63, 1) .3s infinite;
}
.hubba-demo__ring.is-ghost .hubba-demo__breathe, .hubba-demo__ring:not(.is-on) .hubba-demo__breathe { animation: none; }
.hubba-demo__flash { position: absolute; inset: 0; border-radius: inherit; background: var(--hd-accent); opacity: 0; }
.hubba-demo__flash.is-go { animation: hubba-demo-flash .3s var(--hd-ease) both; }
@keyframes hubba-demo-breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes hubba-demo-flash { from { opacity: .32; } to { opacity: 0; } }

/* the note card */
.hubba-demo__card {
  position: absolute; top: 0; left: 0; z-index: 55;
  width: min(330px, calc(100% - 24px));
  opacity: 0; pointer-events: none;
  visibility: hidden; /* out of the tab order while the card is not shown */
  transition: transform var(--hd-move) var(--hd-glide), opacity .14s var(--hd-ease), visibility 0s linear .14s;
  -webkit-user-select: text; user-select: text;
}
.hubba-demo__card.is-on { opacity: 1; pointer-events: auto; visibility: visible; transition: transform var(--hd-move) var(--hd-glide), opacity .14s var(--hd-ease), visibility 0s; }
.hubba-demo__card-in {
  position: relative; overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .07), 0 2px 4px rgba(15, 27, 45, .05), 0 18px 40px -14px rgba(15, 27, 45, .32), 0 40px 70px -34px rgba(var(--hd-glow), .4);
}
.hubba-demo__card-in::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--hd-accent), var(--hd-accent-2)); }
.hubba-demo__head { display: flex; align-items: center; gap: 10px; }
.hubba-demo__spark {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--hd-accent-2), var(--hd-accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(var(--hd-glow), .8);
}
.hubba-demo__spark svg { width: 16px; height: 16px; }
.hubba-demo__part { display: block; font-size: 10.5px; line-height: 1.5; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hd-accent); }
.hubba-demo__count { display: block; font-size: 11px; line-height: 1.5; color: var(--hd-mute); font-variant-numeric: tabular-nums; }
.hubba-demo__body.is-in { animation: hubba-demo-in .14s var(--hd-ease) both; }
@keyframes hubba-demo-in { from { opacity: 0; } to { opacity: 1; } }
.hubba-demo__title { display: block; margin: 12px 0 0; font-size: 16.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--hd-ink); }
.hubba-demo__text { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--hd-ink-2); text-wrap: pretty; max-width: none; }
.hubba-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.hubba-demo__dots { display: flex; gap: 4px; }
.hubba-demo__dots i { display: block; width: 6px; height: 6px; border-radius: 99px; background: #e3e7ea; transition: width .2s, background-color .2s; }
.hubba-demo__dots i.is-done { background: color-mix(in srgb, var(--hd-accent) 45%, #fff); }
.hubba-demo__dots i.is-now { width: 16px; background: var(--hd-accent); }
.hubba-demo__btns { display: flex; align-items: center; gap: 6px; }
.hubba-demo__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 0 12px; margin: 0;
  border: 0; border-radius: 99px; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; line-height: 1; font-weight: 600; color: var(--hd-ink-2);
  -webkit-tap-highlight-color: transparent;
}
.hubba-demo__btn:hover { background: #f1f3f5; }
.hubba-demo__btn:disabled, .hubba-demo__btn[aria-disabled="true"] { opacity: .4; cursor: default; background: none; }
.hubba-demo__btn--go { padding: 0 14px; background: var(--hd-accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--hd-glow), .9); }
.hubba-demo__btn--go:hover { background: var(--hd-accent-deep); }
.hubba-demo__btn svg { width: 14px; height: 14px; }
.hubba-demo__btn--go .hubba-demo__ic-end, .hubba-demo__btn--go.is-end .hubba-demo__ic-next { display: none; }
.hubba-demo__btn--go.is-end .hubba-demo__ic-end { display: block; }
.hubba-demo :is(button, a):focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hubba-demo__arrow { position: absolute; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); display: none; }
.hubba-demo__arrow.is-top { display: block; top: -5px; box-shadow: -1px -1px 0 rgba(15, 27, 45, .08); }
.hubba-demo__arrow.is-bottom { display: block; bottom: -5px; box-shadow: 1px 1px 0 rgba(15, 27, 45, .08); }
.hubba-demo__arrow.is-left { display: block; left: -5px; box-shadow: -1px 1px 0 rgba(15, 27, 45, .08); }
.hubba-demo__arrow.is-right { display: block; right: -5px; box-shadow: 1px -1px 0 rgba(15, 27, 45, .08); }

/* "In Hubba this opens ..." note */
.hubba-demo__toast {
  position: absolute; left: 50%; bottom: 16px; z-index: 58; max-width: calc(100% - 24px);
  padding: 9px 16px; border-radius: 99px; background: var(--hd-ink); color: #fff; font-size: 13px; line-height: 1.3; font-weight: 500;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--hd-ease);
}
.hubba-demo__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* opening and closing cards */
.hubba-demo__cover { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(246, 249, 247, .7); animation: hubba-demo-in .2s both; }
/* the tour starts by itself as soon as it is on screen, so the opening card is only for visitors who asked for
   reduced motion (they press "Start the tour"); everyone else sees the clear screen until the first note */
.hubba-demo:not(.is-still)[data-view="intro"] .hubba-demo__cover { display: none; }
.hubba-demo__panel {
  width: 100%; max-width: 470px; padding: 28px 24px; border-radius: 26px; background: #fff; text-align: center;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .05), 0 40px 80px -30px rgba(15, 27, 45, .45);
  animation: hubba-demo-rise .26s cubic-bezier(.2, .7, .2, 1) both;
  -webkit-user-select: text; user-select: text;
}
@keyframes hubba-demo-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.hubba-demo__badge { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: color-mix(in srgb, var(--hd-accent) 14%, #fff); color: var(--hd-accent-deep); }
.hubba-demo__badge svg { width: 20px; height: 20px; }
.hubba-demo__eyebrow { display: block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hd-accent-deep); }
.hubba-demo__big { display: block; margin: 8px 0 0; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--hd-ink); }
.hubba-demo__outro .hubba-demo__big { margin-top: 16px; }
.hubba-demo__lead { max-width: 380px; margin: 12px auto 0; font-size: 14.5px; line-height: 1.6; color: var(--hd-mute); }
.hubba-demo__start {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 24px; padding: 0 28px;
  border: 0; border-radius: 99px; background: var(--hd-accent); color: #fff; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(var(--hd-glow), .8);
}
.hubba-demo__start:hover { background: var(--hd-accent-deep); }
.hubba-demo__start svg { position: relative; width: 16px; height: 16px; }
.hubba-demo__start span { position: relative; }
.hubba-demo__start-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .2); transform: scaleX(0); transform-origin: left; }
.hubba-demo__soon { display: block; margin-top: 10px; font-size: 12px; color: var(--hd-mute); }
.hubba-demo.is-still .hubba-demo__soon { display: none; }
.hubba-demo__skip { display: flex; width: fit-content; align-items: center; min-height: 44px; margin: 4px auto 0; padding: 0 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--hd-ink-2); }
.hubba-demo__skip:hover { color: var(--hd-ink); text-decoration: underline; text-underline-offset: 2px; }
.hubba-demo__ends { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hubba-demo__end { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 24px; border-radius: 99px; border: 1px solid #dfe3e6; background: #fff; color: var(--hd-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.hubba-demo__end:hover { border-color: var(--hd-ink); }
.hubba-demo__end--go { border-color: var(--hd-accent); background: var(--hd-accent); color: #fff; }
.hubba-demo__end--go:hover { border-color: var(--hd-accent-deep); background: var(--hd-accent-deep); }
.hubba-demo__end svg { width: 16px; height: 16px; }

/* caption and the nine progress segments */
.hubba-demo__bar { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 16px; padding: 0 8px; }
.hubba-demo__caption { min-height: 22px; margin: 0; max-width: none; text-align: center; font-size: 14px; line-height: 1.55; color: var(--hd-ink-2); }
.hubba-demo__caption b { font-weight: 600; color: var(--hd-ink); }
.hubba-demo__idle { color: var(--hd-mute); }
.hubba-demo__segs { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 640px; }
.hubba-demo__seg { flex: 1 1 0; min-width: 0; display: flex; align-items: center; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hubba-demo__seg-track { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(15, 27, 45, .12); transition: height .15s; }
.hubba-demo__seg:hover .hubba-demo__seg-track { height: 5px; }
.hubba-demo__seg-fill { display: block; height: 100%; border-radius: 99px; background: var(--hd-accent); transform: scaleX(0); transform-origin: left; }
.hubba-demo__play { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; color: var(--hd-ink-2); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.hubba-demo__play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 1px solid rgba(15, 27, 45, .14); background: rgba(255, 255, 255, .8); }
.hubba-demo__play:hover { color: var(--hd-ink); }
.hubba-demo__play svg { position: relative; width: 12px; height: 12px; }
.hubba-demo__play .hubba-demo__ic-pause, .hubba-demo__play.is-playing .hubba-demo__ic-play { display: none; }
.hubba-demo__play.is-playing .hubba-demo__ic-pause { display: block; }
.hubba-demo__fine { margin: 14px auto 0; max-width: none; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted, #475869); }
.hubba-demo__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* without JS: the first screen and a plain list of the nine parts */
.hubba-demo__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; margin: 16px 8px 0; padding: 0; list-style: none; counter-reset: hd; font-size: 14px; line-height: 1.5; color: var(--hd-ink-2); }
.hubba-demo__list li { counter-increment: hd; margin: 0; padding: 0; }
.hubba-demo__list li::before { content: counter(hd) ". "; font-weight: 600; color: var(--hd-ink); }
.hubba-demo__list b { font-weight: 600; color: var(--hd-ink); }
.hubba-demo.is-live .hubba-demo__list { display: none; }
.hubba-demo:not(.is-live) :is(.hubba-demo__bar, .hubba-demo__ring, .hubba-demo__card, .hubba-demo__cover, .hubba-demo__toast) { display: none; }

/* touch and small screens: 44px targets */
@media (pointer: coarse), (max-width: 1023px) {
  .hubba-demo__btn { padding: 0 16px; font-size: 13.5px; }
  .hubba-demo__play { width: 44px; height: 44px; }
  .hubba-demo__segs { gap: 4px; }
}
/* phones: nine segments cannot each be 44px wide on one line, so they sit in two rows of five (the play button is the tenth) */
@media (max-width: 599px) {
  .hubba-demo__segs { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 0 4px; }
  .hubba-demo__play { order: 10; justify-self: center; }
}

/* phones: Hubba's own phone layout in a narrower, taller frame */
@media (max-width: 599px) {
  /* 344 - 2 x (6 + 1 border) = a 330px screen, the width the phone screens were captured at; on phones narrower
     than the page gutters allow, the frame borrows from the gutters (never wider than the window less 16px) */
  .hubba-demo__bezel { width: min(344px, 100vw - 16px); max-width: none; margin-left: calc((100% - min(344px, 100vw - 16px)) / 2); margin-right: 0; padding: 6px 6px 12px; border-radius: 22px; }
  .hubba-demo__stage { aspect-ratio: 330 / 702; border-radius: 17px; }
  .hubba-demo__bar { margin-top: 12px; padding: 0 6px; }
  .hubba-demo__caption { font-size: 13.5px; min-height: 42px; }
  .hubba-demo__panel { padding: 24px 18px; border-radius: 22px; }
  .hubba-demo__card-in { padding: 13px 14px 12px; }
  .hubba-demo__foot { margin-top: 8px; }
}

/* reduced motion: nothing moves, nothing plays by itself (the JS also stops its clock) */
@media (prefers-reduced-motion: reduce) {
  .hubba-demo *, .hubba-demo *::before, .hubba-demo *::after { transition: none !important; animation: none !important; }
}
.hubba-demo.is-still *, .hubba-demo.is-still *::before, .hubba-demo.is-still *::after { transition: none !important; animation: none !important; }

/* ==== lab.css ==== */
/* Design Lab (preview builds only, removed from launch). A slim tab fixed to the left edge, vertically centred
 * (the right side is kept for the "Questions? Ask us" float). It opens a side panel that slides in from the left,
 * full height with its own scroll, so the page stays visible beside it. The tab rides on the panel's edge while
 * open and closes it again. */
/* .lab is only a wrapper: the tab and the panel are each position: fixed (no transform on any ancestor). */
.lab { --lab-w: min(360px, 88vw); --lab-ease: cubic-bezier(0.16, 1, 0.3, 1); font-family: "Figtree", system-ui, sans-serif; color: #0A3157; }
.lab__tab {
  position: fixed;
  z-index: var(--z-lab);
  left: 0;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 40px;
  padding: 6px 0 14px;
  border-radius: 0 16px 16px 0;
  background: #0A3157;
  color: #fff;
  font: 700 0.8125rem/1 "Figtree", system-ui, sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 14px 34px -12px rgba(6, 33, 61, 0.55);
  transition: background-color 200ms, left 300ms var(--lab-ease), width 200ms;
}
.lab__tab:hover { background: #06213D; width: 44px; }
.lab__aa { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #9BD47A; color: #0A3157; font: 700 0.875rem/1 Georgia, serif; font-style: italic; }
.lab__tab-label { writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
.lab__count { display: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #9BD47A; color: #0A3157; font-size: 0.6875rem; line-height: 20px; text-align: center; }
.lab__count:not(:empty) { display: inline-block; }
html.lab-open .lab__tab { left: var(--lab-w); }
.lab__panel {
  position: fixed;
  z-index: var(--z-lab);
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--lab-w);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 0 0 1px rgba(10, 49, 87, 0.08), 24px 0 70px -24px rgba(6, 33, 61, 0.45);
  overflow: hidden;
  animation: lab-in 300ms var(--lab-ease);
}
@keyframes lab-in { from { translate: -100% 0; } }
.lab__head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: max(18px, env(safe-area-inset-top)) 14px 14px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(10, 49, 87, 0.08); }
.lab__title { font: 700 1.05rem/1.2 "Figtree", system-ui, sans-serif; }
.lab__sub { grid-column: 1; font-size: 0.8125rem; color: #50657A; line-height: 1.35; }
.lab__close { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 49, 87, 0.06); }
.lab__close svg { width: 20px; height: 20px; }
.lab__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 12px; }
.lab__section-title { margin: 14px 8px 6px; font: 700 0.75rem/1.3 "Figtree", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #50657A; }
.lab__group { padding: 10px 8px 12px; border-radius: 16px; }
.lab__group + .lab__group { border-top: 1px solid rgba(10, 49, 87, 0.07); }
.lab__group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; margin-bottom: 6px; text-align: left; font: 700 0.9375rem/1.25 "Figtree", system-ui, sans-serif; color: #0A3157; border-radius: 10px; }
.lab__group-title span { color: #50657A; font-weight: 600; font-size: 0.75rem; }
button.lab__group-title:hover { color: #3D8420; }
.lab__options { display: grid; gap: 4px; }
.lab__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  text-align: left;
  font: 600 0.9375rem/1.25 "Figtree", system-ui, sans-serif;
  color: #1E3A52;
  transition: background-color 150ms;
}
.lab__opt:hover { background: #F5F8F3; }
.lab__opt::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(10, 49, 87, 0.25); }
.lab__opt[aria-checked="true"] { background: #EEF6E9; color: #0A3157; }
.lab__opt[aria-checked="true"]::before { box-shadow: inset 0 0 0 5px #3D8420; }
.lab__rec { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #E2EDF6; color: #1F5482; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.lab__empty { padding: 8px 8px 4px; font-size: 0.875rem; color: #50657A; }
.lab__foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(10, 49, 87, 0.08); }
.lab__reset { flex: 1; min-height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(10, 49, 87, 0.2); font-weight: 700; color: #0A3157; }
.lab__reset:hover { background: #0A3157; color: #fff; }
.lab-flash { animation: lab-flash 1200ms ease-out; }
@keyframes lab-flash { 0% { box-shadow: inset 0 0 0 4px rgba(76, 154, 42, 0.7); } 100% { box-shadow: inset 0 0 0 4px rgba(76, 154, 42, 0); } }
@media (max-width: 1023px) {
  /* compact tab: just the "Aa" disc, kept inside the side gutter so it never sits over text */
  .lab__tab { width: 28px; min-height: 48px; justify-content: center; padding: 6px 0; gap: 6px; border-radius: 0 12px 12px 0; }
  .lab__tab:hover { width: 30px; }
  .lab__tab-label { display: none; }
  .lab__aa { width: 22px; height: 22px; font-size: 0.75rem; }
  .lab__count { min-width: 18px; height: 18px; padding: 0 4px; line-height: 18px; font-size: 0.625rem; }
  .lab__opt, .lab__group-title { min-height: 44px; }
}
@media (max-width: 599px) {
  /* 20px visible (inside the 20px phone gutter), 48px tall; the hit area reaches 36px wide */
  .lab__tab { width: 20px; padding: 4px 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 10px 24px -10px rgba(6, 33, 61, 0.55); }
  .lab__tab:hover { width: 20px; }
  .lab__tab::after { content: ""; position: absolute; inset: -2px -16px -2px 0; }
  .lab__aa { width: auto; height: auto; background: none; color: #9BD47A; font-size: 0.75rem; }
  .lab__count { min-width: 14px; height: 14px; padding: 0 2px; line-height: 14px; font-size: 0.5625rem; border-radius: 7px; }
  .lab__panel { border-radius: 0 18px 18px 0; padding-bottom: env(safe-area-inset-bottom); }
  /* the panel covers most of a phone, so the ask pill steps aside while it is open */
  html.lab-open .float-ask { opacity: 0; pointer-events: none; }
}
html.menu-open .lab { display: none; }

