/* ==========================================================================
   Happy Beings Foundation — site styles
   --------------------------------------------------------------------------
   Visual idea: "one painted sky". A bright sky-blue watercolour wash (made to
   match the foundation's artwork), warm watercolour-paper backgrounds, deep
   navy ink, the artwork's gold, and the many colours of the painted hands as
   accents for the four areas of work.

   Accessibility notes
   - Body text is navy/ink on paper (>= 11:1). Navy on the watercolour wash is
     >= 5:1 everywhere (the wash is generated with a clamped darkest tone).
   - Gold (#b08d4e) is decorative only; text-safe gold is --gold-700.
   - All motion is opt-in via prefers-reduced-motion: no-preference.
   - No inline styles anywhere, so the Content-Security-Policy can stay strict.

   Contents
   1. Fonts            6. Hero & page heroes   11. Get involved / contact
   2. Design tokens    7. Sections & headings  12. FAQ
   3. Base             8. Cards & pillars      13. Footer
   4. Utilities        9. Philosophy band      14. Enhancements (JS)
   5. Header & nav    10. Facts / transparency 15. Print & forced colours
   ========================================================================== */

/* 1. Fonts — self-hosted, SIL Open Font License (see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
  /* Brand colours (sampled from the supplied artwork, then tuned for contrast) */
  --ink: #06263f;            /* deep navy: headings, buttons, footer */
  --ink-2: #0d3a5c;          /* hover for navy buttons */
  --text: #1b3346;           /* body text on paper  (11.9:1) */
  --text-2: #3f5466;         /* secondary text on paper/white (7.2:1) */
  --paper: #fbf8f1;          /* watercolour paper */
  --paper-2: #f4efe3;        /* alternate section */
  --card: #ffffff;
  --line: #ddd5c3;           /* hairlines on paper */
  --line-strong: #8a7f68;    /* non-text UI boundaries (>= 3:1) */

  --sky-050: #eef8fd;
  --sky-100: #dbf1fb;
  --sky-300: #8fd2f2;
  --sky-500: #2a9dd5;        /* decorative */
  --sky-700: #0b6a99;        /* links on light backgrounds (5.9:1 on white) */
  --sky-800: #08547a;

  --gold-200: #f2dc9f;
  --gold-300: #e8c97b;       /* text on navy (9.8:1) */
  --gold-500: #b08d4e;       /* artwork gold — decorative only */
  --gold-700: #7a5a16;       /* gold text on paper (5.6:1) */

  /* Accent per area of work — taken from the colours of the painted hands */
  --well: #5a4a8a;   --well-tint: #efebf7;    /* violet hand */
  --learn: #835410;  --learn-tint: #fbf1dc;   /* butter-yellow / ochre hand */
  --relief: #9e3446; --relief-tint: #fae8ea;  /* coral-rose hand */
  --earth: #3c6632;  --earth-tint: #e8f1e1;   /* sage hand */

  --link: var(--sky-700);
  --link-hover: var(--sky-800);
  --focus: #06263f;
  --focus-halo: #ffffff;

  /* Type */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.42vw, 1.375rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.35rem, 1.6rem + 3.4vw, 4.25rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

  /* Shape & depth */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(6 38 63 / 0.06), 0 6px 18px -6px rgb(6 38 63 / 0.10);
  --shadow-2: 0 2px 6px rgb(6 38 63 / 0.08), 0 24px 48px -18px rgb(6 38 63 / 0.35);

  /* Layout */
  --container: 74rem;
  --container-narrow: 48rem;
  --header-h: 4.5rem;
  --subnav-h: 0rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 650ms;

  color-scheme: light;
}

/* 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 1rem);
}
.has-subnav { --subnav-h: 3.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: var(--step-5); font-weight: 650; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.25; }

p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 68ch; text-wrap: pretty; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 7px var(--focus-halo);
}
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; box-shadow: none; }

[lang="sa-Latn"] { font-family: var(--font-serif); font-style: normal; }

::selection { background: var(--sky-300); color: var(--ink); }

/* 4. Utilities ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  z-index: 1000;
  padding: 0.85rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  stroke-width: 1.75;
}

.stack > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.email { overflow-wrap: break-word; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgb(6 38 63 / 0.6); }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold-300); color: var(--ink); }
.btn-gold:hover { background: var(--gold-200); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover, .btn-gold:hover { transform: translateY(-1px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform 180ms ease; }
@media (prefers-reduced-motion: no-preference) {
  .link-arrow:hover .icon { transform: translateX(3px); }
}

/* "Many hands" colour strip — the colours of the painted hands */
.hands-strip {
  display: block;
  width: 9.5rem;
  height: 6px;
  border-radius: 6px;
  margin: 0 0 var(--space-5);
  background: linear-gradient(90deg,
    #7d6aa6 0 10%, #a8bd8a 10% 20%, #d9a4a8 20% 30%, #6e7682 30% 40%, #e3cf8f 40% 50%,
    #b47b86 50% 60%, #e8d6cd 60% 70%, #9b7f74 70% 80%, #d6dd94 80% 90%, #d0606e 90% 100%);
}
.center .hands-strip, .hands-strip--center { margin-inline: auto; }

/* 5. Header & navigation ------------------------------------------------ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-500), var(--sky-500));
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: hb-progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes hb-progress { to { transform: scaleX(1); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(251 248 241 / 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(6 38 63 / 0.45); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 48px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 56px; border-radius: 3px; box-shadow: 0 1px 3px rgb(6 38 63 / 0.25); }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.12rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.brand-name span { display: block; }
.brand-name span + span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 0.3rem;
}

.primary-nav { width: 100%; }
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav li { margin: 0; }
.primary-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.primary-nav a:not(.btn):hover { background: var(--sky-100); color: var(--ink); }
.primary-nav a[aria-current="page"] {
  background: var(--sky-100);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--gold-500);
}
.nav-cta { display: none; }

/* Mobile menu. Without JavaScript, assets/css/nojs.css (loaded inside <noscript>)
   shows the links as a plain list instead. */
@media (max-width: 63.999rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 48px;
    padding: 0.5rem 0.95rem;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font: 650 1rem/1 var(--font-sans);
    cursor: pointer;
  }
  .nav-toggle:hover { background: var(--sky-100); }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-close { display: inline-block; }
  .nav-open .nav-toggle .icon-menu { display: none; }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(6 38 63 / 0.45);
  }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.15rem; }
  .primary-nav a:not(.btn) {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-m);
    font-size: 1.125rem;
  }
  .nav-cta { display: flex; width: 100%; margin-top: var(--space-4); }
}

@media (max-width: 22.49rem) {
  .header-inner { gap: var(--space-2) var(--space-3); }
  .brand { gap: 0.5rem; }
  .brand img { width: 36px; height: 48px; }
  .brand-name { font-size: 1rem; }
  .brand-name span + span { font-size: 0.62rem; letter-spacing: 0.2em; }
  .nav-toggle { padding-inline: 0.75rem; gap: 0.35rem; }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .primary-nav { width: auto; display: flex; align-items: center; gap: var(--space-4); }
  .primary-nav ul { flex-wrap: nowrap; }
  .primary-nav a:not(.btn) { padding-inline: 0.75rem; }
}
@media (min-width: 80rem) {
  .nav-cta { display: inline-flex; }
}

/* 6. Hero & page heroes ------------------------------------------------- */
.wash {
  background-color: #8ad0f0;
  background-image: url("../images/wash-tall-820.jpg");
  background-image: image-set(
    url("../images/wash-tall-820.avif") type("image/avif"),
    url("../images/wash-tall-820.webp") type("image/webp"),
    url("../images/wash-tall-820.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center top;
  color: var(--ink);
}
@media (min-width: 48rem) {
  .wash {
    background-image: url("../images/wash-wide-1600.jpg");
    background-image: image-set(
      url("../images/wash-wide-1600.avif") type("image/avif"),
      url("../images/wash-wide-1600.webp") type("image/webp"),
      url("../images/wash-wide-1600.jpg") type("image/jpeg"));
    background-position: center;
  }
}
/* On the wash every text colour is navy (contrast >= 5:1 guaranteed by the image pipeline) */
.wash p, .wash li, .wash a:not(.btn), .wash h1, .wash h2, .wash h3 { color: var(--ink); }
.wash a:not(.btn) { text-decoration-color: rgb(6 38 63 / 0.55); }
.wash a:not(.btn):hover { text-decoration-color: var(--ink); }

/* torn watercolour-paper edges */
.edge-bottom, .edge-top { position: relative; }
.edge-bottom::after, .edge-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: clamp(14px, 2vw, 26px);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.edge-bottom::after { bottom: -1px; background-image: url("../images/edge-paper-up.svg"); }
.edge-top::before { top: -1px; background-image: url("../images/edge-paper-down.svg"); }
.after-alt.edge-top::before { background-image: url("../images/edge-alt-down.svg"); }

.hero {
  padding-block: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) clamp(3.75rem, 2.75rem + 4vw, 6rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero-motto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin-bottom: var(--space-5);
  font-size: var(--step-0);
}
.hero-motto [lang] { font-weight: 600; font-size: 1.1em; }
.hero-motto .motto-en {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 0.78);
  font-size: var(--step-0);
  font-weight: 650;
  letter-spacing: 0.01em;
}
.hero h1 { margin-bottom: var(--space-5); max-width: 15ch; }
.hero-lead { font-size: var(--step-1); line-height: 1.55; max-width: 40ch; margin-bottom: var(--space-6); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-actions .btn-secondary { background: rgb(255 255 255 / 0.55); }
.hero-actions .btn-secondary:hover { background: var(--ink); }
.hero-trust {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(6 38 63 / 0.3);
  font-size: var(--step--1);
  font-weight: 500;
  max-width: 46ch;
}
.hero-trust .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; }

.art-frame {
  margin: 0;
  justify-self: center;
  width: min(100%, 32rem);
}
.art-frame .frame {
  padding: clamp(0.5rem, 0.3rem + 1vw, 0.95rem);
  background: #fffdf7;
  border-radius: 4px;
  box-shadow: var(--shadow-2);
}
.art-frame img { width: 100%; height: auto; border-radius: 2px; }
@media (min-width: 64rem) {
  .hero .art-frame .frame { transform: rotate(1.25deg); }
}
.art-frame figcaption {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  text-align: center;
}

/* Inner-page hero */
.page-hero {
  padding-block: clamp(2rem, 1.4rem + 3vw, 4rem) clamp(3.25rem, 2.5rem + 4vw, 5.5rem);
}
.page-hero h1 { font-size: var(--step-5); max-width: 18ch; margin-bottom: var(--space-4); }
.page-hero .lead { font-size: var(--step-1); max-width: 52ch; font-weight: 500; margin-bottom: 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 600;
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; opacity: 0.7; }
.breadcrumb a { display: inline-block; padding-block: 0.35rem; }
.breadcrumb [aria-current="page"] { font-weight: 700; }

/* In-page section navigation (sticky, with scroll-spy) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgb(251 248 241 / 0.97);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.subnav li { margin: 0; flex: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { background: var(--sky-100); }
.subnav a.is-active {
  background: var(--ink);
  color: #fff;
}

/* 7. Sections & headings ------------------------------------------------ */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--paper-2); }
.section--sky { background: var(--sky-050); }
.section--tight { padding-block: calc(var(--section-pad) * 0.65); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head > :last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow .icon { width: 1.35rem; height: 1.35rem; }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.prose > * { max-width: 66ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li::marker { color: var(--gold-700); }

.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}

.pull-quote {
  position: relative;
  margin: var(--space-6) 0 0;
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 6px);
  border-radius: var(--radius-m);
  background: var(--sky-050);
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}
.pull-quote::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 5px;
  border-radius: 5px;
  background: var(--gold-500);
}
.pull-quote p { margin: 0; }

/* 8. Cards, pillars and principles ------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid rgb(6 38 63 / 0.07);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillars > li { margin: 0; }
.pillar {
  --accent: var(--ink);
  --tint: var(--sky-050);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid rgb(6 38 63 / 0.07);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}
.pillar h3 { font-size: var(--step-1); line-height: 1.25; margin-bottom: var(--space-3); }
.pillar p { color: var(--text-2); font-size: 0.98rem; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.pillar-link:hover { color: var(--accent); text-decoration: underline; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--tint, var(--sky-050));
  color: var(--accent, var(--ink));
}
.icon-badge .icon { width: 1.6rem; height: 1.6rem; }
.icon-badge--lg { width: 4.25rem; height: 4.25rem; }
.icon-badge--lg .icon { width: 2.1rem; height: 2.1rem; }

.accent-wellbeing { --accent: var(--well); --tint: var(--well-tint); }
.accent-learning { --accent: var(--learn); --tint: var(--learn-tint); }
.accent-relief { --accent: var(--relief); --tint: var(--relief-tint); }
.accent-earth { --accent: var(--earth); --tint: var(--earth-tint); }
.accent-leadership { --accent: var(--sky-700); --tint: var(--sky-100); }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles > li { margin: 0; }
.principles h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.principles p { color: var(--text-2); margin: 0; }
.principles .icon-badge { color: var(--ink); background: var(--sky-100); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1.5vw, 2rem);
}
.vm-card h3 { font-size: var(--step-2); }
.vm-card p { font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.55; color: var(--ink); margin: 0; }

/* Our work: detail sections */
.area {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .area { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
.area-num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.area h2 { font-size: var(--step-3); }
.area .icon-badge { margin-bottom: var(--space-4); }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.checklist li {
  position: relative;
  padding-left: 2rem;
}
.checklist li + li { margin-top: 0.6rem; }
.checklist .icon {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent, var(--sky-700));
}
.aside-card {
  background: var(--tint, var(--sky-050));
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.aside-card h3 { font-size: var(--step-1); }
.aside-card p { font-size: 0.98rem; }
.aside-card .btn { margin-top: var(--space-2); }

.note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  background: var(--sky-050);
  border: 1px solid var(--sky-100);
  font-size: 0.98rem;
}
.note .icon { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; color: var(--sky-700); }
.note p:last-child { margin-bottom: 0; }

/* 9. Philosophy band (navy, echoing gold on blue in the artwork) -------- */
.section--navy {
  background: var(--ink);
  color: #dce8f1;
  --focus: var(--gold-300);
  --focus-halo: var(--ink);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: var(--gold-200); }
.section--navy .eyebrow { color: var(--gold-300); }
.philosophy-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .philosophy-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.philosophy .art-frame { width: min(100%, 26rem); }
.philosophy .art-frame figcaption { color: #c7d8e4; }
.philosophy h2 { font-size: var(--step-4); color: var(--gold-300); margin-bottom: var(--space-3); }
.philosophy .translation {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.3;
  color: #fff;
  margin-bottom: var(--space-6);
}
.philosophy p { color: #dce8f1; }
.philosophy .tagline {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(232 201 123 / 0.4);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--gold-300);
}

/* 10. Facts / transparency --------------------------------------------- */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 40rem) {
  .facts > div { grid-template-columns: 11rem 1fr; }
}
.facts dt {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-top: 0.2rem;
}
.facts dd { margin: 0; color: var(--ink); font-weight: 550; }

.doc-library { display: grid; gap: var(--space-5); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { margin: 0; border-top: 1px solid var(--line); }
.doc-list a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 52px;
  padding: 0.75rem 0;
  font-weight: 600;
}
.doc-meta { color: var(--text-2); font-weight: 500; font-size: 0.9rem; }

/* 11. Get involved & contact ------------------------------------------- */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.paths > li { margin: 0; }
.path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.path-card h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.path-card p { color: var(--text-2); font-size: 0.98rem; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card .icon-badge { background: var(--sky-100); color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.steps li { counter-increment: step; position: relative; padding-left: 2.75rem; min-height: 2rem; }
.steps li + li { margin-top: 0.85rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.05rem;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.85rem, 0.6rem + 1vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-grid > li { margin: 0; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border-radius: var(--radius-m);
  border: 1px solid rgb(6 38 63 / 0.1);
  box-shadow: var(--shadow-1);
}
.contact-card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 750; margin: 0; color: var(--ink); }
.contact-card p { font-size: 0.95rem; color: var(--text-2); margin: 0; }
.contact-card .email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: auto; padding-top: 0.4rem; }
.contact-card a.email { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.contact-card--single { padding: 1.5rem 1.6rem; height: auto; align-self: center; }
.contact-card--single h3 { font-size: 1.05rem; }
.contact-card--single a.email { font-size: 1.15rem; }
@media (max-width: 24rem) {
  .contact-card--single { padding: 1.25rem 1rem; }
  .contact-card--single a.email { font-size: 1rem; }
}
.contact-note { margin-top: var(--space-6); }
.contact-card--single .email-row + h3 { margin-top: var(--space-4); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  min-width: 44px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font: 600 0.85rem/1 var(--font-sans);
  cursor: pointer;
}
.copy-btn:hover { background: var(--sky-050); border-color: var(--ink); }
.copy-btn .icon { width: 1rem; height: 1rem; }

.safety {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--radius-l);
  background: var(--relief-tint);
  border: 1px solid rgb(158 52 70 / 0.25);
}
.safety .icon { width: 1.75rem; height: 1.75rem; color: var(--relief); margin-top: 0.15rem; }
.safety h2 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.safety p:last-child { margin-bottom: 0; }
.safety a { font-weight: 700; color: var(--relief); }

/* Closing call to action on the wash */
.cta-band { padding-block: clamp(4.5rem, 3.5rem + 5vw, 7.5rem) clamp(4.5rem, 3.5rem + 5vw, 8rem); }
.cta-inner { max-width: 54rem; margin-inline: auto; text-align: center; }
.cta-inner h2 { font-size: var(--step-4); }
.cta-inner .lead { margin-inline: auto; font-weight: 500; max-width: 44ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.cta-contacts {
  display: grid;
  gap: 0.6rem;
  max-width: 38rem;
  margin: var(--space-6) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.cta-contacts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  margin: 0;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.cta-contacts .label { font-size: 0.9rem; font-weight: 700; color: var(--text-2); }
.wash .cta-contacts .label { color: var(--text-2); }
.wash .cta-contacts a:not(.btn) { font-weight: 700; display: inline-flex; align-items: center; min-height: 40px; color: var(--sky-700); }

/* 12. FAQ (native <details>, works without JavaScript) ----------------- */
.faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--sky-100);
  transition: transform 200ms ease;
}
.faq details[open] > summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    var(--sky-100);
}
.faq summary:hover { color: var(--sky-800); }
.faq .answer { padding: 0 0.25rem 1.35rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* 13. Footer ------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: clamp(14px, 2vw, 26px);
  padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem) 2rem;
  background: var(--ink);
  color: #d4e2ec;
  --focus: var(--gold-300);
  --focus-halo: var(--ink);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: clamp(14px, 2vw, 26px);
  margin-bottom: -1px;
  background: url("../images/edge-navy-up.svg") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  gap: 2.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.4fr 0.9fr; }
}
.site-footer .brand { color: #fff; }
.site-footer .brand-name span + span { color: var(--gold-300); }
.footer-motto { margin: var(--space-4) 0 0.25rem; font-size: 1.1rem; color: var(--gold-300); }
.footer-motto + p { color: #d4e2ec; font-size: 0.95rem; }
.footer-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
}
.footer-list a:hover { color: var(--gold-200); text-decoration: underline; }
.footer-contacts li + li { margin-top: 0.35rem; }
.footer-contacts .label { display: block; font-size: 0.82rem; color: #b8ccdb; }
.footer-contacts a { min-height: 32px; font-weight: 600; font-size: 0.95rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.9rem;
  color: #b8ccdb;
}
.footer-legal p { margin: 0; max-width: 72ch; }
.footer-legal a { color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: var(--space-4) 0 0; padding: 0; }

/* 14. Enhancements (only active when JavaScript runs) ------------------ */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
  text-decoration: none;
}
.to-top { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease; }
.to-top:hover { background: var(--ink-2); color: #fff; }
.to-top .icon { width: 1.4rem; height: 1.4rem; }

/* Reveal-on-scroll: content is visible by default; JS only hides items that
   start below the fold, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .reveal-ready [data-reveal].is-pending { opacity: 0; transform: translateY(16px); }
}

/* 404 */
.error-page { text-align: center; }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }

/* 15. Print & forced colours ------------------------------------------- */
@media print {
  .site-header, .subnav, .to-top, .progress, .nav-toggle, .cta-actions, .copy-btn { display: none !important; }
  .wash, .section--navy, .site-footer { background: none !important; color: #000 !important; }
  .section--navy h2, .section--navy p, .site-footer a, .site-footer p { color: #000 !important; }
  .edge-bottom::after, .edge-top::before, .site-footer::before { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="mailto:"]::after { content: ""; }
  body { font-size: 11pt; }
}

@media (forced-colors: active) {
  .btn, .nav-toggle, .copy-btn, .subnav a.is-active { border: 2px solid ButtonText; }
  .pillar::before, .hands-strip, .progress { forced-color-adjust: none; }
  .faq summary::after { forced-color-adjust: none; border: 1px solid CanvasText; }
}
