/* ==========================================================================
   RAYS CHILDCARE — STYLESHEET
   Plain CSS. No build step, no preprocessor, no framework.

   Contents
   01. Design tokens
   02. Reset & base elements
   03. Typography
   04. Layout primitives
   05. Buttons
   06. Header & navigation
   07. Hero & page hero
   08. Section furniture
   09. Cards & grids
   10. Lists, chips & callouts
   11. Steps, quotes & figures
   12. In-page sub-navigation
   13. Accordion
   14. Forms
   15. CTA band
   16. Footer
   17. Utilities, motion & print
   18. Responsive
   ========================================================================== */


/* 01. DESIGN TOKENS ======================================================== */

:root {
  /* Brand ------------------------------------------------------------- */
  --ink:         #17323F;  /* headings, dark sections, primary buttons    */
  --ink-2:       #1F4353;  /* dark section gradient partner                 */
  --gold:        #F2A93B;  /* DECORATIVE on light backgrounds only         */
  --gold-deep:   #8F5108;  /* the accessible gold, for text on light       */
  --sage:        #266659;  /* secondary accent — AA on cream, sand, white   */
  --blush:       #F7DDD6;  /* soft card tint                              */

  /* Surfaces ---------------------------------------------------------- */
  --cream:       #FDF8F1;
  --sand:        #F3E8D9;
  --white:       #FFFFFF;

  /* Text -------------------------------------------------------------- */
  --text:        #25333A;
  --muted:       #556670;  /* AA on cream, sand, white and blush           */
  --on-ink:      #F4EDE3;
  --on-ink-muted:#C2D3DB;

  /* Lines ------------------------------------------------------------- */
  --line:        #E7DCCB;   /* decorative separators only                    */
  --line-strong: #D6C6AD;   /* decorative borders on cards, chips, accordions */
  --line-input:  #8A7A60;   /* form field borders — 3:1, per WCAG 1.4.11      */
  --line-ink:    rgba(244, 237, 227, .18);

  /* Type -------------------------------------------------------------- */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-dyslexic: "OpenDyslexic", "Comic Sans MS", var(--font-body);

  --step--1: clamp(.82rem,  .79rem + .15vw,  .90rem);
  --step-0:  clamp(1.05rem, 1.00rem + .28vw, 1.17rem);
  --step-1:  clamp(1.25rem, 1.16rem + .45vw, 1.50rem);
  --step-2:  clamp(1.55rem, 1.40rem + .75vw, 2.05rem);
  --step-3:  clamp(2.00rem, 1.70rem + 1.40vw, 3.00rem);
  --step-4:  clamp(2.45rem, 1.95rem + 2.30vw, 4.00rem);

  /* Space ------------------------------------------------------------- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 4.5rem;  --sp-10: 6rem;

  /* Layout ------------------------------------------------------------ */
  --container:       1180px;
  --container-tight: 820px;
  --gutter:          clamp(1.15rem, .8rem + 1.8vw, 2.5rem);
  --section-y:       clamp(3.5rem, 2.4rem + 4.6vw, 6.5rem);
  --header-h:        74px;

  /* Effects ----------------------------------------------------------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 50, 63, .05),
               0 2px 8px rgba(23, 50, 63, .05);
  --shadow-md: 0 2px 6px rgba(23, 50, 63, .06),
               0 12px 28px -10px rgba(23, 50, 63, .16);
  --shadow-lg: 0 4px 12px rgba(23, 50, 63, .07),
               0 28px 56px -18px rgba(23, 50, 63, .24);

  --ease: cubic-bezier(.32, .72, .28, 1);
}


/* 02. RESET & BASE ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible, .site-header :focus-visible {
  outline-color: var(--gold);
}

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

hr { border: 0; border-top: 1px solid var(--line); }


/* 03. TYPOGRAPHY ========================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
h4 { font-size: var(--step-0); line-height: 1.4; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}

.prose > * + * { margin-top: var(--sp-4); }
.prose p { max-width: 68ch; }
.prose h3 { margin-top: var(--sp-6); }
.prose strong { font-weight: 600; color: var(--ink); }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: var(--sp-4); z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink); color: var(--on-ink);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--font-display); font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--on-ink); }


/* 04. LAYOUT PRIMITIVES =================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--tight { max-width: var(--container-tight); }

.section { padding-block: var(--section-y); }
.section--sand   { background: var(--sand); }
.section--tint   { background: var(--blush); }
.section--white  { background: var(--white); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Dark band -------------------------------------------------------------- */
.on-ink {
  background: var(--ink);
  background-image:
    radial-gradient(120% 90% at 85% 0%, rgba(242, 169, 59, .16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--on-ink);
}
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--white); }
.on-ink .lead, .on-ink .muted { color: var(--on-ink-muted); }
/* Buttons carry their own foreground via --btn-fg, so they must be excluded
   here or the gold link colour lands on the gold button background. */
.on-ink a:not(.btn) { color: var(--gold); }
.on-ink a:not(.btn):hover { color: var(--white); }
.on-ink hr { border-color: var(--line-ink); }
.on-ink strong { color: var(--white); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.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(260px, 100%), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }


/* 05. BUTTONS ============================================================= */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: .8em 1.6em;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .18s var(--ease),
              box-shadow .18s var(--ease),
              background-color .18s var(--ease),
              color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: var(--ink); --btn-fg: var(--on-ink); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
}
.btn--gold:hover { --btn-bg: #ffc061; --btn-bd: #ffc061; }

.on-ink .btn--ghost,
.cta-band .btn--ghost {
  --btn-fg: var(--on-ink);
  --btn-bd: rgba(244, 237, 227, .4);
}
.on-ink .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  --btn-bg: var(--on-ink);
  --btn-fg: var(--ink);
  --btn-bd: var(--on-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-deep);
}
.link-arrow::after {
  content: "";
  width: .85em; height: .85em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.link-arrow:hover { color: var(--ink); text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px) rotate(45deg); }
.on-ink .link-arrow { color: var(--gold); }
.on-ink .link-arrow:hover { color: var(--white); }


/* 06. HEADER & NAVIGATION ================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 241, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* Logo ------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand__tag {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: .28rem;
}

/* Desktop nav ------------------------------------------------------------ */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;          /* comfortable tap target */
  padding: .55rem .85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: color .18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .4rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}
.header-actions .btn { min-height: 46px; padding: .6em 1.3em; font-size: .95rem; }

/* Icon buttons ----------------------------------------------------------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  color: var(--ink);
  background: transparent;
  /* Button boundaries must be perceivable: 3:1 per WCAG 1.4.11. */
  border: 1px solid var(--line-input);
  border-radius: var(--r-pill);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--sand); border-color: var(--gold); }
.icon-btn svg { width: 21px; height: 21px; }

/* Dyslexia-friendly toggle */
.a11y-toggle { position: relative; }
.a11y-toggle__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.a11y-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.a11y-toggle .a11y-toggle__on,
.a11y-toggle[aria-pressed="true"] .a11y-toggle__off { display: none; }
.a11y-toggle[aria-pressed="true"] .a11y-toggle__on { display: block; }

/* Mobile drawer ---------------------------------------------------------- */
.nav-toggle { display: none; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: calc(var(--header-h) + var(--sp-4)) var(--gutter) var(--sp-6);
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__list { display: grid; gap: var(--sp-1); }
.drawer__link {
  display: block;
  padding: .85rem .5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer__link:hover,
.drawer__link.is-active { color: var(--gold-deep); }
.drawer__foot { margin-top: auto; display: grid; gap: var(--sp-3); }
.drawer__foot .btn { width: 100%; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(23, 50, 63, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.is-open { opacity: 1; visibility: visible; }


/* 07. HERO & PAGE HERO ==================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  top: -22%; right: -14%;
  width: min(720px, 62vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 169, 59, .30), transparent 66%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__title { color: var(--white); }
.hero__title em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero__lead {
  max-width: 56ch;
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--on-ink-muted);
}
.hero__actions { margin-top: var(--sp-6); }
.hero__art { position: relative; }
.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
}

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -60%; left: -10%;
  width: min(620px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 169, 59, .26), transparent 68%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: var(--white); max-width: 22ch; }
.page-hero .lead { max-width: 62ch; margin-top: var(--sp-4); }
.page-hero--center .page-hero__inner { text-align: center; }
.page-hero--center .page-hero__title,
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--sp-4);
  font-size: var(--step--1);
  color: var(--on-ink-muted);
}
.breadcrumb a { color: var(--on-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before {
  content: "";
  width: .4em; height: .4em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.breadcrumb [aria-current="page"] { color: var(--white); }


/* 08. SECTION FURNITURE =================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-ink .eyebrow,
.page-hero .eyebrow { color: var(--gold); }
.eyebrow__mark { width: 30px; height: 20px; flex: none; }
.on-ink .eyebrow__mark rect,
.page-hero .eyebrow__mark rect { fill: currentColor; }

.section__head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section__head--center { margin-inline: auto; text-align: center; }
/* .eyebrow is a flex row, so text-align: center does not centre it. */
.section__head--center .eyebrow { justify-content: center; }
.section__head .lead { margin-top: var(--sp-3); }

.on-ink .section__head .lead { color: var(--on-ink-muted); }

/* Split feature ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__body > * + * { margin-top: var(--sp-4); }

.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--sand);
}
.media img {
  display: block;
  width: 100%;
  height: auto;
}
.media--tint { background: var(--blush); }
.media--ink { background: var(--ink); }


/* 09. CARDS & GRIDS ======================================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease),
              box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card__title { font-size: var(--step-1); }
.card__text { color: var(--muted); }

.on-ink .card {
  background: rgba(244, 237, 227, .06);
  border-color: var(--line-ink);
  box-shadow: none;
}
.on-ink .card__text { color: var(--on-ink-muted); }

.card--icon:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.on-ink .card--icon:hover { border-color: var(--gold); background: rgba(244, 237, 227, .1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  flex: none;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--r-md);
}
.card__icon svg { width: 28px; height: 28px; }
.on-ink .card__icon { color: var(--ink); }

/* Whole-card link -------------------------------------------------------- */
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card--link .card__title { color: var(--ink); }
.card--link .link-arrow { margin-top: auto; }

/* Numbered card ---------------------------------------------------------- */
.card__num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-deep);
}
.on-ink .card__num { color: var(--gold); }


/* 10. LISTS, CHIPS & CALLOUTS ============================================ */

/* Tick list -------------------------------------------------------------- */
.checks { display: grid; gap: .7rem; }
.checks li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 1.15rem; height: .62rem;
  border-left: 3px solid var(--gold-deep);
  border-bottom: 3px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.on-ink .checks li::before { border-color: var(--gold); }
.checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem var(--sp-5); }

/* Bulleted list ---------------------------------------------------------- */
.bullets { display: grid; gap: .55rem; }
.bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .7em;
  width: .42rem; height: .42rem;
  background: var(--gold);
  border-radius: 50%;
}
.on-ink .bullets li { color: var(--on-ink-muted); }

/* Chips ------------------------------------------------------------------ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem .95rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: background-color .18s var(--ease),
              border-color .18s var(--ease),
              transform .18s var(--ease);
}
.chip:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.chip--sage { border-color: rgba(47, 122, 107, .4); }
.chip--sage:hover { background: var(--sage); border-color: var(--sage); color: var(--white); }

/* Callout ---------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--r-md);
}
.callout__icon { flex: none; color: var(--gold-deep); }
.callout__icon svg { width: 34px; height: 34px; }
.callout > div > * + * { margin-top: var(--sp-3); }
.callout__title { font-size: var(--step-1); }

.on-ink .callout {
  background: rgba(244, 237, 227, .06);
  border-color: var(--line-ink);
  border-left-color: var(--gold);
}
.on-ink .callout__icon { color: var(--gold); }

.note {
  padding: var(--sp-4) var(--sp-5);
  background: var(--sand);
  border-radius: var(--r-md);
  font-size: .95rem;
  color: var(--muted);
}
.note strong { color: var(--ink); }
.on-ink .note { background: rgba(244, 237, 227, .09); color: var(--on-ink-muted); }
.on-ink .note strong { color: var(--white); }

/* 11. STEPS, QUOTES & FIGURES ============================================ */

/* The column count is declared by the caller (steps--4, steps--5) rather than
   derived with auto-fit: auto-fit only sees the container width, so a 4-item
   list in a narrow container would strand the last item on its own row. */
.steps { display: grid; gap: var(--sp-6) var(--sp-5); counter-reset: step; }
.steps--row { grid-template-columns: 1fr; }

.step { position: relative; padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* Number sits beside the title in the flow, so it can never overlap it no
   matter how far the heading wraps. */
.step__head { display: flex; align-items: center; gap: var(--sp-3); }
.step__num {
  flex: none;
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__head h3 { margin: 0; }
.step > p { margin-top: var(--sp-3); }
.on-ink .step { border-top-color: var(--line-ink); }

/* Column ladder. Deliberately no 2-column step for the 5-item list: it would
   strand item 05 on its own row, so it stays a single column until it fits. */
@media (min-width: 640px)  { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Quote ------------------------------------------------------------------ */
.quote { display: grid; gap: var(--sp-4); max-width: 56ch; }
/* For pull-quotes that head a full-width section and need a longer measure. */
.quote--wide { max-width: 72ch; }
.quote__mark { color: var(--gold); font-family: var(--font-display); font-size: 4rem; line-height: .6; }
.quote__text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -.01em;
}
.quote__cite { font-style: normal; color: var(--muted); font-size: var(--step-0); }
.on-ink .quote__text { color: var(--white); }
.on-ink .quote__cite { color: var(--on-ink-muted); }

/* Closing statement ------------------------------------------------------ */
.statement {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}
.on-ink .statement { color: var(--white); }


/* 12. IN-PAGE SUB-NAVIGATION ============================================== */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(253, 248, 241, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: .5rem;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link {
  flex: none;
  display: block;
  padding: .6rem .95rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.subnav__link:hover { background: var(--sand); color: var(--ink); }
.subnav__link.is-active { background: var(--ink); color: var(--on-ink); }

/* Pages with a sticky sub-nav need extra room when jumping to an anchor. */
html.has-subnav { scroll-padding-top: calc(var(--header-h) + 4.25rem); }


/* 13. ACCORDION ========================================================== */

.accordion { display: grid; gap: var(--sp-3); }
.accordion__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.accordion__item.is-open { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.on-ink .accordion__item {
  background: rgba(244, 237, 227, .06);
  border-color: var(--line-ink);
}
.on-ink .accordion__item.is-open { border-color: var(--gold); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: 1.15rem clamp(1.15rem, .9rem + .8vw, 1.6rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.accordion__trigger:hover { color: var(--gold-deep); }
.on-ink .accordion__trigger { color: var(--white); }
.on-ink .accordion__trigger:hover { color: var(--gold); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }

/* Collapsed panels use height, so their content would still be reachable by
   keyboard and screen readers. visibility:hidden removes it from the tab
   order and the accessibility tree until the item is opened. */
.accordion__panel {
  visibility: hidden;
  transition: grid-template-rows .3s var(--ease), visibility .3s;
}
.accordion__item.is-open .accordion__panel { visibility: visible; }
.accordion__panel p {
  padding: 0 clamp(1.15rem, .9rem + .8vw, 1.6rem) 1.3rem;
  color: var(--muted);
  max-width: 72ch;
}
.accordion__panel p + p { padding-top: 0; }
.on-ink .accordion__panel p { color: var(--on-ink-muted); }


/* 14. FORMS ============================================================== */

.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }

.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--gold-deep); }

.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line-input);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #8A9AA2; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--gold); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, .28);
}
.textarea { min-height: 130px; resize: vertical; }

.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2317323F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 13px;
}

.field__error {
  font-size: .88rem;
  font-weight: 500;
  color: #A3241C;
  min-height: 0;
}
.field__error:empty { display: none; }

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select { border-color: #A3241C; box-shadow: 0 0 0 4px rgba(163, 36, 28, .13); }

/* Checkbox --------------------------------------------------------------- */
.check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  accent-color: var(--ink);
  cursor: pointer;
}
.check.has-error { color: #A3241C; }

.form__status {
  padding: 1.15rem 1.35rem;
  background: var(--sand);
  border-left: 4px solid var(--sage);
  border-radius: var(--r-sm);
  font-size: .98rem;
}
.form__status:empty { display: none; }
.form__status.is-success { background: rgba(47, 122, 107, .1); border-left-color: var(--sage); }
.form__status.is-error { background: rgba(163, 36, 28, .08); border-left-color: #A3241C; }

.form__fineprint {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Contact cards ---------------------------------------------------------- */
.contact-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--r-md);
}
.contact-card__icon svg { width: 23px; height: 23px; }
.contact-card__label {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-card__value { font-size: var(--step-0); line-height: 1.5; }
.contact-card__value a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-card__value a:hover { color: var(--gold-deep); text-decoration: underline; }


/* 15. CTA BAND =========================================================== */

.cta-band {
  padding-block: clamp(3rem, 2.2rem + 3.6vw, 5rem);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: stretch;
}
.cta-band__actions .btn { width: 100%; }


/* 16. FOOTER ============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: var(--sp-9) var(--sp-6);
  font-size: .97rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-ink);
}
.site-footer h3 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer__about p { margin-top: var(--sp-4); max-width: 34ch; }
.footer__list { display: grid; gap: .55rem; }
.footer__list a { color: var(--on-ink-muted); text-decoration: none; }
.footer__list a:hover { color: var(--gold); text-decoration: underline; }
.footer__contact { display: grid; gap: var(--sp-4); }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact svg { width: 19px; height: 19px; flex: none; margin-top: .28em; color: var(--gold); }
.footer__contact a { color: var(--on-ink-muted); text-decoration: none; }
.footer__contact a:hover { color: var(--gold); }

.newsletter { display: grid; gap: var(--sp-3); }
.newsletter__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter .input {
  flex: 1 1 180px;
  min-height: 48px;
  background: rgba(244, 237, 227, .07);
  border-color: var(--line-ink);
  color: var(--on-ink);
}
.newsletter .input::placeholder { color: rgba(244, 237, 227, .45); }
.newsletter .input:focus { border-color: var(--gold); }
.newsletter .btn { min-height: 48px; }
.newsletter small { font-size: .82rem; opacity: .8; line-height: 1.5; }
.newsletter .form__status {
  background: rgba(244, 237, 227, .08);
  border-left-color: var(--gold);
  color: var(--on-ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  font-size: .89rem;
}
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--on-ink-muted);
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.footer__social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; }

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(1rem, .5rem + 1.5vw, 2rem);
  bottom: clamp(1rem, .5rem + 1.5vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #ffc061; }
.to-top svg { width: 20px; height: 20px; }


/* 17. UTILITIES, MOTION & PRINT =========================================== */

/* Staggered scroll reveal. Only hides content once main.js has confirmed it
   can reveal it again (html.reveal-ready), so a script failure never hides
   anything from a visitor. */
.js.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.full { grid-column: 1 / -1; }

/* Dyslexia-friendly mode.
   Switched on by the header toggle; persisted in localStorage.
   Only overrides font + spacing, never colour, so contrast is unaffected. */
[data-dyslexia="on"] body,
[data-dyslexia="on"] .brand__name,
[data-dyslexia="on"] .nav__link,
[data-dyslexia="on"] .btn,
[data-dyslexia="on"] .eyebrow,
[data-dyslexia="on"] .section__head h2,
[data-dyslexia="on"] .card__title,
[data-dyslexia="on"] .accordion__trigger,
[data-dyslexia="on"] .field label,
[data-dyslexia="on"] .quote__text,
[data-dyslexia="on"] .contact-card__label,
[data-dyslexia="on"] .site-footer h3,
[data-dyslexia="on"] .statement {
  font-family: var(--font-dyslexic);
  letter-spacing: .035em;
  word-spacing: .12em;
}
[data-dyslexia="on"] body { line-height: 1.85; }
[data-dyslexia="on"] h1,
[data-dyslexia="on"] h2,
[data-dyslexia="on"] h3 { letter-spacing: .01em; }
[data-dyslexia="on"] .input,
[data-dyslexia="on"] .textarea,
[data-dyslexia="on"] .select { letter-spacing: .02em; }

/* Motion opt-out --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js.reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--link:hover, .card--icon:hover, .chip:hover { transform: none; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .drawer, .scrim, .to-top, .cta-band,
  .footer__grid, .footer__bottom, .newsletter, .btn-row, .subnav,
  .breadcrumb, .to-top { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-ink { background: #fff !important; color: #000 !important; }
  .on-ink h1, .on-ink h2, .on-ink h3, .on-ink p, .on-ink li { color: #000 !important; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .card, .accordion__item { break-inside: avoid; border: 1px solid #bbb; box-shadow: none; }
  .accordion__panel { grid-template-rows: 1fr !important; }
}


/* 18. RESPONSIVE ========================================================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band__actions .btn { width: auto; }
  .page-hero__title { max-width: none; }
}

@media (max-width: 640px) {
  .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .checks--grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .cta-band__actions { flex-direction: column; }
  .statement { font-size: var(--step-1); }
  .accordion__trigger { font-size: 1rem; }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
}