/* ==========================================================================
   Meave — design system
   ========================================================================== */

:root {
  --bg: #FAF6F0;
  --bg-alt: #F2ECE2;
  --primary: #2D4A3E;
  --primary-dark: #1F3329;
  --accent: #C67B5C;
  --accent-dark: #A9674B;
  --text: #202020;
  --text-muted: #343434;
  --border: #E6DFD3;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;

  --section-y: 56px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgba(30, 30, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 30, 30, 0.06);
}

@media (min-width: 768px) {
  :root {
    --section-y: 80px;
    --header-h: 76px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-y: 96px;
  }
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8B5040;
  margin-bottom: 12px;
}

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--text);
  max-width: 60ch;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: var(--section-y) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--primary);
  color: #F5EFE3;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #FAF6F0;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #FFFFFF;
  border-color: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #FAF6F0;
}

.section--dark .btn-ghost {
  color: #FAF6F0;
  border-color: rgba(250, 246, 240, 0.5);
}

.section--dark .btn-ghost:hover {
  background: #FAF6F0;
  color: var(--primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--accent);
}

.text-link svg {
  transition: transform 0.15s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: auto;
  height: 88px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-logo img {
    height: 64px;
  }
}

.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.site-nav__link {
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  padding: 6px 0;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__link:hover,
.site-nav__item--has-menu:focus-within > .site-nav__link,
.site-nav__link[aria-current="page"] {
  color: var(--primary);
}

.site-nav__link:hover::after,
.site-nav__item--has-menu:hover > .site-nav__link::after,
.site-nav__item--has-menu:focus-within > .site-nav__link::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* About Meave dropdown — desktop */
.site-nav__item--has-menu {
  position: relative;
}

.site-nav__submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(31, 51, 41, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

/* invisible bridge so the 10px gap doesn't close the menu */
.site-nav__submenu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.site-nav__item--has-menu:hover .site-nav__submenu,
.site-nav__item--has-menu:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-nav__submenu a:hover,
.site-nav__submenu a:focus-visible {
  background: var(--bg-alt);
  transform: translateX(3px);
}

.site-header__cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-radius: var(--radius-sm);
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle__close {
  display: none;
}

[data-nav-open] .nav-toggle__open {
  display: none;
}

[data-nav-open] .nav-toggle__close {
  display: block;
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 32px 20px 120px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 40;
}

[data-nav-open] .mobile-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Bulletproof: when the nav is open, force its primary items visible
   regardless of any stuck inline opacity, transform, or visibility state
   left behind by page transitions, bfcache restores, or other scripts. */
[data-nav-open] .mobile-nav,
[data-nav-open] .mobile-nav__list,
[data-nav-open] .mobile-nav__list > li,
[data-nav-open] .mobile-nav__row,
[data-nav-open] .mobile-nav__link,
[data-nav-open] .mobile-nav__expand,
[data-nav-open] .mobile-nav__cta {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-nav-open] {
  overflow: hidden;
}

.mobile-nav__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__cta {
  width: 100%;
}

/* About Meave dropdown — mobile sub-links (indented) */
.mobile-nav__submenu {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
}

.mobile-nav__sublink {
  display: block;
  padding: 11px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* Collapsible behaviour — JS adds [data-collapsible] when enhancement is active.
   Without JS, submenus stay visible (graceful fallback). */
.mobile-nav__row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__row .mobile-nav__link {
  flex: 1;
  border-bottom: none;
}

.mobile-nav__expand {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.mobile-nav__expand:hover,
.mobile-nav__expand:focus-visible {
  background: var(--bg-alt);
  outline: none;
}

.mobile-nav__expand svg {
  transition: transform 0.25s ease;
}

.mobile-nav__item--has-menu.is-open .mobile-nav__expand svg {
  transform: rotate(180deg);
}

.mobile-nav[data-collapsible] .mobile-nav__submenu {
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 14px;
  transition: max-height 0.28s ease, margin-top 0.28s ease, margin-bottom 0.28s ease;
}

.mobile-nav[data-collapsible] .mobile-nav__item--has-menu.is-open .mobile-nav__submenu {
  max-height: 600px;
  margin-top: 6px;
  margin-bottom: 6px;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 48px 0 56px;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0 88px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 96px 0 112px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
  }
}

.hero__body h1 {
  margin-bottom: 20px;
}

.hero__body .lede {
  margin-bottom: 32px;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero__image {
    aspect-ratio: 16 / 10;
    max-width: 560px;
    margin: 0 auto;
  }
}

.hero__meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Card grid
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D6CDBE;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  margin-bottom: 20px;
}

.card__title {
  margin-bottom: 10px;
}

.card__body {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card__link {
  margin-top: auto;
}

/* Pillar card variant — hero three-buyer split */
.pillar-grid {
  gap: 20px;
}

@media (min-width: 1024px) {
  .pillar-grid {
    gap: 24px;
  }
}

.pillar-card {
  border-top: 4px solid var(--accent);
}

.pillar-card:nth-child(2) {
  border-top-color: var(--primary);
}

.pillar-card:nth-child(3) {
  border-top-color: #8A9A5B;
}

.pillar-card .card__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   Logo strip
   ========================================================================== */

.logo-strip {
  text-align: center;
}

.logo-strip__label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
}

.logo-strip__item {
  min-width: 120px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  background: var(--bg);
}

/* Real logo variant — no dashed box, greyscale image */
.logo-strip__item--logo {
  border: none;
  background: transparent;
  padding: 0;
  min-width: unset;
  height: auto;
}
.logo-strip__item--logo img {
  height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo-strip__item--logo img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.homepage-credibility {
  padding-top: 42px;
  padding-bottom: 54px;
}

.homepage-credibility .logo-strip {
  margin-bottom: 38px;
}

.homepage-credibility__stats {
  margin-top: 0;
}

/* ── Logo belt / conveyor ticker ─────────────────────────────────── */
/* JS wraps .logo-strip__row in .logo-belt and duplicates the logos  */
.logo-belt {
  overflow: hidden;
  /* Fade edges so logos don't hard-clip */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
}

.logo-belt__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logoBelt var(--belt-duration, 38s) linear infinite;
}

.logo-belt__track:hover {
  animation-play-state: paused;
}

@keyframes logoBelt {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-belt__track {
    animation: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: auto !important;
  }
}

/* ==========================================================================
   About snippet
   ========================================================================== */

.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}

.about-split__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 440px;
}

.about-split__image--landscape {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-focus-left {
  object-position: 36% center;
}

.image-focus-lower {
  object-position: center 55%;
}

.image-focus-top {
  object-position: center 20%;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial__mark {
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.testimonial__attrib {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonial__name {
  display: block;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================================================
   Testimonials carousel — mobile-only horizontal scroll-snap with controls
   ========================================================================== */

.testimonials-carousel {
  position: relative;
}

.testimonials-carousel__controls {
  display: none;
}

@media (max-width: 1023px) {
  .testimonials-carousel__track.card-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials-carousel__track.card-grid::-webkit-scrollbar {
    display: none;
  }
  .testimonials-carousel__track .testimonial {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }

  .testimonials-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }

  .testimonials-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .testimonials-carousel__btn:hover,
  .testimonials-carousel__btn:focus-visible {
    background: var(--primary);
    color: #FFFFFF;
    outline: none;
  }
  .testimonials-carousel__btn:active {
    transform: scale(0.94);
  }

  .testimonials-carousel__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .testimonials-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(45, 74, 62, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .testimonials-carousel__dot.is-active {
    background: var(--accent-dark);
    width: 22px;
    border-radius: 4px;
  }
}

/* ==========================================================================
   Steps (How it works)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.step {
  position: relative;
  padding-left: 0;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FAF6F0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 4px 24px;
  color: var(--text-muted);
  max-width: 68ch;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(250, 246, 240, 0.82);
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(250, 246, 240, 0.8);
  padding: 56px 0 24px;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(250, 246, 240, 0.8);
}

.site-footer a:hover {
  color: #FAF6F0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #FAF6F0;
  margin-bottom: 12px;
  display: inline-block;
}

.site-footer__about {
  max-width: 40ch;
  line-height: 1.55;
}

.site-footer__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FAF6F0;
  margin: 0 0 14px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(250, 246, 240, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  width: fit-content;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 246, 240, 0.25);
  border-radius: 50%;
  color: rgba(250, 246, 240, 0.85);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-link:hover {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
}

.site-footer__bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(250, 246, 240, 0.6);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   Sticky CTA (mobile)
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[data-nav-open] .sticky-cta {
  display: none;
}

/* Force green regardless of the .btn-accent class in the markup — the
   terracotta accent blended into the orange "What schools say" section as
   the button floated over it. Green reads clearly on the light and
   terracotta sections it passes; it is hidden by JS before the dark CTA
   band so it never blends there. */
.sticky-cta .btn,
.sticky-cta .btn:hover,
.sticky-cta .btn:focus-visible {
  width: 100%;
  max-width: 420px;
  background: var(--primary);
  border-color: var(--primary);
  color: #FAF6F0;
  box-shadow: 0 10px 28px rgba(45, 74, 62, 0.35);
}

.sticky-cta .btn:hover,
.sticky-cta .btn:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Focus rings */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   Page hero (inner pages — compact variant of home hero)
   ========================================================================== */

.page-hero {
  padding: 44px 0 34px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 64px 0 52px;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 72px 0 64px;
  }
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.page-hero__body h1 {
  margin-bottom: 18px;
}

.page-hero__body .lede {
  margin-bottom: 28px;
  max-width: 52ch;
}

.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-large {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.02rem;
}

.page-nav-sticky__pill--cta {
  background: var(--cream);
  color: var(--accent-dark);
  font-weight: 600;
}

.org-contact-prompt {
  max-width: 52ch;
  margin: -8px 0 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(198, 123, 92, 0.12);
}

.org-contact-prompt__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.org-contact-prompt p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.page-hero__fineprint {
  font-size: 0.94rem;
  color: var(--text);
  margin: 0;
}

.page-hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .page-hero__image {
    aspect-ratio: 16 / 10;
    max-width: 560px;
    margin: 0 auto;
  }
}

.page-hero__image--landscape {
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.page-hero__image--landscape img {
  object-fit: contain;
  object-position: center center;
}

.page-hero__image--tall {
  aspect-ratio: 2 / 3;
}

.page-hero--tight {
  padding: 48px 0 16px;
}

@media (min-width: 768px) {
  .page-hero--tight {
    padding: 72px 0 24px;
  }
}

.page-hero__body--centred {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__body--centred .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Stat row
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

@media (min-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stat-row--compact .stat__num {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

/* ==========================================================================
   Prose split (About)
   ========================================================================== */

.prose-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .prose-split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
  }
}

.prose-split__aside h2 {
  margin-bottom: 16px;
}

.prose-split__aside .lede {
  margin-bottom: 0;
}

.prose p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.1em;
}

.prose-split .prose p {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Check lists
   ========================================================================== */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .check-list--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}

.check-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.check-list li span {
  color: var(--text);
  line-height: 1.5;
}

.inline-check-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inline-check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.38;
}

.inline-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* ==========================================================================
   Credential list (About)
   ========================================================================== */

.credential-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .credential-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Centre an orphaned final card in the 2-col desktop grid */
@media (min-width: 1024px) {
  .credential-list > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((900px - 24px) / 2);
    margin-inline: auto;
  }
}

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credential-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.credential-list strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.credential-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==========================================================================
   Credentials carousel — mobile-only horizontal scroll-snap with controls
   ========================================================================== */

.credentials-carousel {
  position: relative;
}

.credentials-carousel__controls {
  display: none;
}

@media (max-width: 1023px) {
  .credentials-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    max-width: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .credentials-carousel__track::-webkit-scrollbar {
    display: none;
  }
  .credentials-carousel__track > li {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }

  .credentials-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }

  .credentials-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .credentials-carousel__btn:hover,
  .credentials-carousel__btn:focus-visible {
    background: var(--primary);
    color: #FFFFFF;
    outline: none;
  }
  .credentials-carousel__btn:active {
    transform: scale(0.94);
  }

  .credentials-carousel__dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .credentials-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(45, 74, 62, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .credentials-carousel__dot.is-active {
    background: var(--accent-dark);
    width: 20px;
    border-radius: 4px;
  }
}

/* ==========================================================================
   Principles carousel — mobile-only horizontal scroll-snap with controls
   ========================================================================== */

.principles-carousel {
  position: relative;
}

.principles-carousel__controls {
  display: none;
}

@media (max-width: 1023px) {
  .principles-carousel__track.card-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .principles-carousel__track.card-grid::-webkit-scrollbar {
    display: none;
  }
  .principles-carousel__track > .card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }

  .principles-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }

  .principles-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .principles-carousel__btn:hover,
  .principles-carousel__btn:focus-visible {
    background: var(--primary);
    color: #FFFFFF;
    outline: none;
  }
  .principles-carousel__btn:active {
    transform: scale(0.94);
  }

  .principles-carousel__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .principles-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(45, 74, 62, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .principles-carousel__dot.is-active {
    background: var(--accent-dark);
    width: 22px;
    border-radius: 4px;
  }
}

/* ==========================================================================
   Packages carousel — mobile-only horizontal scroll-snap with controls
   ========================================================================== */

.packages-carousel {
  position: relative;
}

.packages-carousel__controls {
  display: none;
}

@media (max-width: 1023px) {
  .packages-carousel__track.package-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 16px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .packages-carousel__track.package-grid::-webkit-scrollbar {
    display: none;
  }
  .packages-carousel__track > .package-card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }

  .packages-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }

  .packages-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .packages-carousel__btn:hover,
  .packages-carousel__btn:focus-visible {
    background: var(--primary);
    color: #FFFFFF;
    outline: none;
  }
  .packages-carousel__btn:active {
    transform: scale(0.94);
  }

  .packages-carousel__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .packages-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(45, 74, 62, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .packages-carousel__dot.is-active {
    background: var(--accent-dark);
    width: 22px;
    border-radius: 4px;
  }
}

/* ==========================================================================
   About split — two-column with content + image
   ========================================================================== */

.about-split__content h2 {
  margin-bottom: 16px;
}

.about-split__content .eyebrow {
  margin-bottom: 8px;
}

/* ==========================================================================
   Package cards (For Parents)
   ========================================================================== */

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.package-card--feature {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.package-card__tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--primary);
  color: #FAF6F0;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.package-card__head {
  margin-bottom: 14px;
}

.package-card__head h3 {
  margin-bottom: 6px;
}

.package-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
}

.package-card__price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.package-card__sub {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}

.package-card .inline-check-list {
  flex-grow: 1;
}

.package-card__cta {
  width: 100%;
  margin-top: auto;
}

/* ==========================================================================
   Programme cards (For Schools)
   ========================================================================== */

.programme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.programme-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.programme-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(198, 123, 92, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  width: fit-content;
}

.programme-card h3 {
  margin-bottom: 12px;
}

.programme-card > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.programme-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Pull quote (testimonial highlight)
   ========================================================================== */

.pull-quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.pull-quote__mark {
  color: var(--accent);
  margin: 0 auto 16px;
  opacity: 0.8;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--primary);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

.pull-quote cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: block;
}

.pull-quote cite strong {
  color: var(--primary);
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.featured-quote {
  background: var(--accent);
}

.featured-quote .pull-quote {
  max-width: 900px;
}

.featured-quote .pull-quote__mark {
  color: #FFFFFF;
  opacity: 0.24;
}

.featured-quote .pull-quote blockquote,
.featured-quote .pull-quote cite,
.featured-quote .pull-quote cite strong {
  color: #FFFFFF;
}

.featured-quote .pull-quote cite {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
  font-weight: 500;
}

.featured-quote .pull-quote cite strong {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ==========================================================================
   Card meta (used on For Orgs card grid)
   ========================================================================== */

.card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
}

/* ==========================================================================
   Contact — routes, layout, form, details
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.contact-route {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.contact-route:nth-child(2) {
  border-top-color: var(--primary);
}

.contact-route:nth-child(3) {
  border-top-color: #8A9A5B;
}

.contact-route__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-route h3 {
  margin-bottom: 10px;
}

.contact-route > p {
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.55;
}

.contact-route .text-link {
  margin-top: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
  }
}

.contact-layout__form h2 {
  margin-bottom: 12px;
}

.contact-layout__form .lede {
  margin-bottom: 22px;
}

.contact-form-section {
  padding-top: 42px;
}

.contact-routes-section {
  padding-top: 46px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 32px;
  }
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__field[hidden] {
  display: none;
}

.contact-form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9A948A;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  line-height: 1.5;
}

.contact-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form__check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.contact-form__submit {
  align-self: flex-start;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form__submit.is-ready {
  opacity: 1;
}

.contact-form__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}

.contact-form__note svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form__note a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.contact-layout__image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.contact-layout__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.contact-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-card--credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credential-badge--light {
  color: var(--primary);
  border-color: var(--border);
  background: var(--bg);
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.contact-details svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-details a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.contact-details a:hover {
  border-bottom-color: currentColor;
}

/* ==========================================================================
   Audience selector (Home retrofit) — "I am a…" cards
   ========================================================================== */

.audience-selector-section {
  padding: 0 0 24px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .audience-selector-section {
    padding: 0 0 48px;
    margin-top: -48px;
  }
}

.audience-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .audience-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 26px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--text);
}

.audience-card__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.audience-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.audience-card__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 4px 0 14px;
}

.audience-card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.audience-card:hover .audience-card__arrow {
  color: var(--accent);
}

.audience-card__arrow svg {
  transition: transform 0.18s ease;
}

.audience-card:hover .audience-card__arrow svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Trust bar — Triple P seal
   ========================================================================== */

.trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: auto 1fr;
    gap: 40px;
    padding: 28px 36px;
  }
}

.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--bg);
}

.trust-seal__ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FAF6F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-seal__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.trust-seal__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.trust-seal__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: 0.98rem;
}

.trust-bar__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-bar__headline {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0;
}

.trust-bar__body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   HOME PAGE OVERRIDES
   ========================================================================== */

/* --- Cinematic hero --- */
.hero-cinematic {
  position: relative;
  min-height: min(620px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  z-index: 0;
}

.hero-cinematic__video {
  display: block;
  filter: saturate(0.88) contrast(0.96);
}

.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, 0.55);
  opacity: 1;
  z-index: 1;
}

.hero-cinematic__content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 660px;
}

.hero-cinematic__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 28px -44px 32px -44px;
  background:
    radial-gradient(circle at 42% 46%, rgba(250, 246, 240, 0.78) 0%, rgba(250, 246, 240, 0.55) 42%, rgba(250, 246, 240, 0.24) 70%, rgba(250, 246, 240, 0) 100%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-cinematic__eyebrow {
  color: #FFFFFF;
  background: var(--primary);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* Hero CTAs: bigger, bolder, higher-contrast (accessibility) */
.hero-cinematic__ctas .btn,
.hero-cinematic__ghost {
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-cinematic__ctas .btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.hero-cinematic__ctas .btn-accent:hover {
  background: #8E5640;
  border-color: #8E5640;
  color: #FFFFFF;
}

.hero-cinematic__h1 {
  font-size: clamp(2.8rem, 2rem + 4vw, 5rem);
  color: var(--primary);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 12.5ch;
  text-shadow: 0 1px 20px rgba(250, 246, 240, 0.78);
}

.hero-cinematic__lede {
  color: var(--text);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  max-width: 55ch;
  margin-bottom: 36px;
  line-height: 1.65;
  text-shadow: 0 1px 18px rgba(250, 246, 240, 0.92);
}

.hero-cinematic__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  align-items: center;
}

.hero-cinematic__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: #FFFFFF;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.hero-cinematic__ghost:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
}

.hero-cinematic__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cinematic__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.hero-cinematic__trust svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hero-cinematic {
    min-height: auto;
    align-items: center;
  }

  .hero-cinematic__bg {
    inset: 0;
    width: 100%;
    object-position: center;
    opacity: 1;
  }

  .hero-cinematic__overlay {
    background:
      linear-gradient(180deg, rgba(250, 246, 240, 0.82) 0%, rgba(250, 246, 240, 0.68) 58%, rgba(250, 246, 240, 0.5) 100%),
      linear-gradient(0deg, rgba(45, 74, 62, 0.16), rgba(45, 74, 62, 0.16));
    opacity: 1;
  }

  .hero-cinematic__content {
    padding-top: 52px;
    padding-bottom: 52px;
    text-align: center;
  }

  .hero-cinematic__eyebrow {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 16px;
    padding: 10px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-align: center;
  }

  .hero-cinematic__h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin: 0 auto 18px;
    max-width: 14ch;
    text-align: center;
  }

  .hero-cinematic__lede {
    max-width: 32ch;
    margin: 0 auto 24px;
    font-size: 0.98rem;
    line-height: 1.55;
    text-align: center;
  }

  .hero-cinematic__ctas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
  }

  .hero-cinematic__ctas .btn,
  .hero-cinematic__ghost {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 0.88rem;
  }

  .hero-cinematic__trust {
    justify-content: center;
    gap: 8px;
  }

  .hero-cinematic__trust span {
    font-size: 0.78rem;
    min-height: 40px;
    padding: 10px 12px;
  }
}

/* Word-by-word fade-up — JS wraps each word in a .hw span */
@keyframes wordFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cinematic__h1 .hw {
  display: inline-block;
  opacity: 0;
  animation: wordFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Dark audience selector band --- */
.audience-selector-section--dark {
  background: var(--bg-alt);
  padding: 34px 0 46px;
  margin-top: 0;
}

.audience-selector-section--dark .audience-card {
  background: #FFFFFF;
  border-color: var(--border);
  box-shadow: none;
}

.audience-selector-section--dark .audience-card__tag {
  color: var(--accent);
}

.audience-selector-section--dark .audience-card__title {
  color: var(--primary);
}

.audience-selector-section--dark .audience-card__body {
  color: var(--text);
}

.audience-selector-section--dark .audience-card__arrow {
  color: var(--primary);
}

.audience-selector-section--dark .audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

/* --- Featured quote band --- */
.featured-quote-band {
  background: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-quote-band__mark {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.1;
  width: 140px;
  height: 112px;
  color: #FFFFFF;
  pointer-events: none;
}

.featured-quote-band__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
}

.featured-quote-band__attrib {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 16px 0 0;
  position: relative;
}

/* --- Scroll reveal classes (applied via JS — homepage only) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--left {
  transform: translateX(-16px);
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) !important;
}

/* ==========================================================================
   ABOUT PAGE ADDITIONS
   ========================================================================== */

.section--video-intro {
  background: var(--bg-alt);
}

.video-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.video-intro .eyebrow {
  color: var(--accent);
}

.video-intro h2 {
  color: var(--primary);
  margin-bottom: 40px;
}

.video-intro--home {
  margin-bottom: 64px;
}

.video-intro__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Embedded video element (intro video) */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 16;
}

.video-play-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.94);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(31, 51, 41, 0.18);
  pointer-events: none;
}

.video-play-cue__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.video-play-cue__icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-left: 12px solid #FFFFFF;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.video-embed video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-intro__sub {
  display: block;
  margin-top: -28px;
  margin-bottom: 40px;
  color: rgba(250, 246, 240, 0.6);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   ABOUT PAGE — bio portrait (small image next to story prose)
   ========================================================================== */

.bio-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 28px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg);
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

@media (min-width: 768px) {
  .bio-portrait {
    width: 180px;
    height: 180px;
  }
}

/* About-page hero — portrait variant (when image is a headshot) */
.page-hero__image--portrait {
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-left: auto;
}
.page-hero__image--portrait img {
  object-position: center top;
}

/* ==========================================================================
   SITEWIDE ANIMATION SYSTEM
   ========================================================================== */

/* ── 1. Page-load fade-in (pure CSS — works without JS) ─────────── */
/* Opacity-only fade — NEVER animate transform on <body>. A persisted
   transform (via animation-fill-mode: both) turns <body> into the
   containing block for position:fixed children, which pins the fixed
   mobile nav to the document instead of the viewport. When the page is
   scrolled, the open menu then renders off-screen and looks blank. */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
}

/* ── 2. Scroll-reveal — upgrade timing from 0.55s flat to spring ── */
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 3. Hero sub-element entrances (gate on .hero-anim set by JS) ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Initial hidden state — only when JS has kicked in */
.hero-anim .hero-cinematic__eyebrow,
.hero-anim .hero-cinematic__lede,
.hero-anim .hero-cinematic__ctas,
.hero-anim .hero-cinematic__trust {
  opacity: 0;
}

.hero-anim .hero-cinematic__eyebrow {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* Lede waits for the last H1 word (≈9 words × 85ms + 550ms animation = 1.3s) */
.hero-anim .hero-cinematic__lede {
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
}

.hero-anim .hero-cinematic__ctas {
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.hero-anim .hero-cinematic__trust {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.75s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim .hero-cinematic__eyebrow,
  .hero-anim .hero-cinematic__lede,
  .hero-anim .hero-cinematic__ctas,
  .hero-anim .hero-cinematic__trust {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ── 4. Nav link — smooth underline transition ───────────────────── */
.site-nav__link {
  transition: color 0.22s ease;
}

/* ── 5. Buttons — more presence on hover ────────────────────────── */
.btn {
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease,
              transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45, 74, 62, 0.18);
}

.btn-accent:hover:not(:disabled) {
  box-shadow: 0 10px 28px rgba(198, 123, 92, 0.40);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* ── 6. Cards — deeper lift, accent border on hover ─────────────── */
.card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(45, 74, 62, 0.13);
  border-color: var(--accent);
}

/* Testimonials */
.testimonial {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(45, 74, 62, 0.10);
}

/* Package cards */
.package-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease, border-color 0.25s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(45, 74, 62, 0.13);
}

/* Pull-quote */
.pull-quote {
  transition: transform 0.25s ease;
}

.pull-quote:hover {
  transform: translateY(-4px);
}

/* ── 7. Step number — spins to accent on hover ───────────────────── */
.step__num {
  transition: background-color 0.3s ease, color 0.3s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover .step__num {
  background: var(--accent);
  color: #FFFFFF;
  transform: scale(1.18) rotate(-8deg);
}

/* ── 8. Stat number — pop when count finishes ────────────────────── */
@keyframes statPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.12); color: var(--accent); }
  100% { transform: scale(1); }
}

.stat__num--done {
  animation: statPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── 9. Audience cards — stronger pop on dark band ───────────────── */
.audience-card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease, border-color 0.28s ease;
}

/* ── 10. Text links — underline draw ────────────────────────────── */
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link svg {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-link:hover svg {
  transform: translateX(5px);
}

/* =============================================================================
   COPY UPDATE — new utility classes
   ============================================================================= */

/* Closing line after a checklist */
.section__closing {
  margin-top: 24px;
  font-style: italic;
  color: var(--primary);
  font-size: 1.05rem;
  text-align: center;
}

/* Second lede in hero (organisations page) */
.lede--sub {
  margin-top: -8px;
  opacity: 0.85;
}

/* Package card fine-print and note variants */
.package-card__fineprint {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  margin-top: 8px;
  font-style: italic;
}

.package-card__sub--note {
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.75;
  margin-top: -4px;
}

/* Programme card sub-heading (primary / secondary labels) */
.programme-card__sub-head {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 16px 0 6px;
}

/* Card typical-projects list */
.card__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__list li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding-left: 14px;
  position: relative;
}

.card__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =============================================================================
   AMENDMENTS ROUND 2 — sticky in-page nav, programme tabs, layout tightening,
   larger logos, contact closing brand block
   ============================================================================= */

/* ── Sticky in-page section nav ─────────────────────────────────────────── */
.page-nav-sticky {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 40;
  background: var(--accent);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
  border-top: 1px solid rgba(250, 246, 240, 0.18);
  border-bottom: 1px solid rgba(31, 51, 41, 0.12);
  padding: 8px 0;
  margin: 0;
}

/* When the mobile nav is open, hide the sticky sub-page bar so it doesn't
   bleed over the menu overlay. */
[data-nav-open] .page-nav-sticky {
  display: none;
}

.page-nav-sticky .container {
  /* allow horizontal scroll on mobile without breaking page width */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.page-nav-sticky .container::-webkit-scrollbar { display: none; }

.page-nav-sticky__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .page-nav-sticky__list {
    justify-content: flex-start;
  }
}

.page-nav-sticky__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
  color: #FAF6F0;
  background: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-nav-sticky__pill::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #FAF6F0;
  opacity: 0;
  transform: scaleX(0.65);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-nav-sticky__pill:hover {
  background: rgba(250, 246, 240, 0.14);
  color: #FFFFFF;
  border-color: rgba(250, 246, 240, 0.22);
}

.page-nav-sticky__pill.is-active {
  background: #FAF6F0;
  color: var(--accent-dark);
  border-color: #FAF6F0;
  box-shadow: 0 8px 18px rgba(198, 123, 92, 0.22);
}

.page-nav-sticky__pill.is-active::after {
  opacity: 0;
  transform: scaleX(1);
}

/* Anchor scroll-margin so smooth-scrolled sections aren't hidden under both bars */
.page-inner [id] {
  scroll-margin-top: calc(var(--header-h, 72px) + 64px);
}

/* ── Programme tabs (Primary / Secondary toggle) ─────────────────────────── */
.programme-tabs {
  display: flex;
  flex-direction: column;
  margin: 16px 0 12px;
}

.programme-tabs__input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.programme-tabs__head {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.programme-tabs__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1.5px solid rgba(45, 74, 62, 0.15);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #2D4A3E);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.programme-tabs__btn:hover {
  border-color: var(--accent, #C67B5C);
}

.programme-tabs__input:focus-visible + .programme-tabs__head .programme-tabs__btn,
.programme-tabs__btn:focus-visible {
  outline: 2px solid var(--accent, #C67B5C);
  outline-offset: 2px;
}

.programme-tabs__panel {
  display: none;
  margin: 0;
}

#prog-primary:checked ~ .programme-tabs__head label[for="prog-primary"],
#prog-secondary:checked ~ .programme-tabs__head label[for="prog-secondary"] {
  background: var(--accent, #C67B5C);
  color: #FFFFFF;
  border-color: var(--accent, #C67B5C);
}

#prog-primary:checked ~ .programme-tabs__panel--primary,
#prog-secondary:checked ~ .programme-tabs__panel--secondary {
  display: block;
  animation: progTabsFade 0.25s ease;
}

@keyframes progTabsFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Contact page: book-a-call / send-a-message chooser ──────────────────── */
.contact-choice {
  display: flex;
  flex-direction: column;
  margin: 22px 0 0;
}

.contact-choice__input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-choice__head {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.contact-choice__btn {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1.5px solid rgba(45, 74, 62, 0.18);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary, #2D4A3E);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-choice__btn:hover {
  border-color: var(--accent, #C67B5C);
}

#choice-call:focus-visible ~ .contact-choice__head label[for="choice-call"],
#choice-message:focus-visible ~ .contact-choice__head label[for="choice-message"] {
  outline: 2px solid var(--accent, #C67B5C);
  outline-offset: 2px;
}

#choice-call:checked ~ .contact-choice__head label[for="choice-call"],
#choice-message:checked ~ .contact-choice__head label[for="choice-message"] {
  background: var(--accent, #C67B5C);
  color: #FFFFFF;
  border-color: var(--accent, #C67B5C);
}

.contact-choice__panel {
  display: none;
  margin: 0;
}

#choice-call:checked ~ .contact-choice__panel--call,
#choice-message:checked ~ .contact-choice__panel--message {
  display: block;
  animation: progTabsFade 0.25s ease;
}

.tidycal-embed {
  min-height: 580px;
}

.contact-form__status {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-form__status--ok {
  background: rgba(45, 74, 62, 0.08);
  color: var(--primary, #2D4A3E);
  border: 1px solid rgba(45, 74, 62, 0.2);
}
.contact-form__status--error {
  background: rgba(169, 103, 75, 0.1);
  color: var(--accent-dark, #A9674B);
  border: 1px solid rgba(169, 103, 75, 0.3);
}

/* ── Layout tightening on inner pages ────────────────────────────────────── */
.page-inner .section {
  padding: 72px 0; /* down from 96px ~ 25% tighter */
}

@media (min-width: 768px) {
  .page-inner .page-hero:not(.page-hero--tight) {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .page-inner .page-hero__grid {
    gap: 40px; /* tighter than default */
  }
}

@media (max-width: 767px) {
  .page-inner .section {
    padding: 56px 0;
  }
}

/* ── Larger logos on schools & organisations ─────────────────────────────── */
.page-inner .logo-strip__item--logo img {
  height: 140px;
  max-width: 380px;
}

.school-logo-strip .logo-strip__row {
  gap: 16px 40px;
}

.page-inner .school-logo-strip {
  padding: 34px 0;
}

.school-logo-strip .logo-strip__label {
  margin-bottom: 18px;
}

.school-logo-strip .logo-belt {
  min-height: 110px;
  padding: 0;
}

.school-logo-strip .logo-belt__track {
  gap: 40px;
}

.school-logo-strip .logo-strip__item--logo {
  width: 240px;
  min-width: 240px;
  height: 100px;
  overflow: hidden;
}

.school-logo-strip .logo-strip__item--logo img,
.page-inner .school-logo-strip .logo-strip__item--logo img {
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 92px;
}

.school-logo-strip .logo-strip__item:not(.logo-strip__item--logo) {
  min-width: 180px;
  height: 64px;
}

.logo-strip__item--logo img[src*="islington"],
.page-inner .logo-strip__item--logo img[src*="islington"] {
  height: 78px;
  max-width: 220px;
}

.logo-strip__item--logo img[src*="lb-hillingdon"],
.page-inner .logo-strip__item--logo img[src*="lb-hillingdon"] {
  height: 72px;
  max-width: 220px;
}

.logo-strip__item--logo img[src*="hm-prison"],
.page-inner .logo-strip__item--logo img[src*="hm-prison"],
.logo-strip__item--logo img[src*="nelft"],
.page-inner .logo-strip__item--logo img[src*="nelft"],
.logo-strip__item--logo img[src*="king-solomon"],
.page-inner .logo-strip__item--logo img[src*="king-solomon"] {
  height: 112px;
  max-width: 260px;
}

.logo-strip__item--logo img[src*="ucl"],
.page-inner .logo-strip__item--logo img[src*="ucl"] {
  height: 48px;
  max-width: 160px;
}

.logo-strip__item--logo img[src*="hm-prison"],
.page-inner .logo-strip__item--logo img[src*="hm-prison"],
.logo-strip__item--logo img[src*="king-solomon"],
.page-inner .logo-strip__item--logo img[src*="king-solomon"] {
  height: 126px;
  max-width: 290px;
}

.school-logo-strip .logo-strip__item--logo img[src*="king-solomon"],
.page-inner .school-logo-strip .logo-strip__item--logo img[src*="king-solomon"] {
  height: auto;
  max-height: 100px;
  max-width: 235px;
}

.logo-strip__item--logo img[src*="BCP-Council"],
.page-inner .logo-strip__item--logo img[src*="BCP-Council"] {
  height: 108px;
  max-width: 160px;
}

.school-logo-strip .logo-strip__item--logo img[src*="BCP-Council"],
.page-inner .school-logo-strip .logo-strip__item--logo img[src*="BCP-Council"] {
  height: auto;
  max-height: 92px;
  max-width: 135px;
}

@media (max-width: 767px) {
  .page-inner .logo-strip__item--logo img {
    height: 110px;
    max-width: 280px;
  }

  .school-logo-strip .logo-strip__item--logo img,
  .page-inner .school-logo-strip .logo-strip__item--logo img {
    max-width: 190px;
    max-height: 86px;
  }

  .school-logo-strip .logo-strip__item--logo {
    width: 200px;
    min-width: 200px;
    height: 102px;
  }

  .school-logo-strip .logo-strip__item:not(.logo-strip__item--logo) {
    min-width: 150px;
    height: 56px;
  }

  .logo-strip__item--logo img[src*="islington"],
  .page-inner .logo-strip__item--logo img[src*="islington"],
  .logo-strip__item--logo img[src*="lb-hillingdon"],
  .page-inner .logo-strip__item--logo img[src*="lb-hillingdon"] {
    height: 64px;
    max-width: 190px;
  }

  .logo-strip__item--logo img[src*="hm-prison"],
  .page-inner .logo-strip__item--logo img[src*="hm-prison"],
  .logo-strip__item--logo img[src*="nelft"],
  .page-inner .logo-strip__item--logo img[src*="nelft"],
  .logo-strip__item--logo img[src*="king-solomon"],
  .page-inner .logo-strip__item--logo img[src*="king-solomon"] {
    height: 88px;
    max-width: 210px;
  }

  .logo-strip__item--logo img[src*="hm-prison"],
  .page-inner .logo-strip__item--logo img[src*="hm-prison"],
  .logo-strip__item--logo img[src*="king-solomon"],
  .page-inner .logo-strip__item--logo img[src*="king-solomon"] {
    height: 98px;
    max-width: 230px;
  }

  .logo-strip__item--logo img[src*="BCP-Council"],
  .page-inner .logo-strip__item--logo img[src*="BCP-Council"] {
    height: 86px;
    max-width: 130px;
  }
}

/* ── Contact closing-brand block ─────────────────────────────────────────── */
.closing-brand {
  text-align: center;
}

.closing-brand__inner {
  max-width: 760px;
  margin: 0 auto;
}

.closing-brand__lede {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  line-height: 1.45;
  color: rgba(250, 246, 240, 0.92);
  font-style: italic;
  margin: 0 0 28px;
}

.closing-brand__divider {
  display: inline-block;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent, #C67B5C);
  padding: 0 18px;
  position: relative;
  margin: 0 0 28px;
}

.closing-brand__divider::before,
.closing-brand__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 56px;
  height: 1px;
  background: rgba(250, 246, 240, 0.3);
}
.closing-brand__divider::before { right: 100%; }
.closing-brand__divider::after  { left: 100%; }

.closing-brand__statement {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  line-height: 1.5;
  color: #FAF6F0;
  margin: 0;
  font-weight: 500;
}

/* Reduced motion — kill the panel fade */
@media (prefers-reduced-motion: reduce) {
  .programme-tabs__panel { animation: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Dual-question interactive — "What does parenting look like / What is Triple P?"
   ========================================================================== */

.dual-question__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dual-question__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }
}

.dual-question__panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FFFFFF;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s ease,
              opacity 0.32s ease,
              filter 0.32s ease;
  box-shadow: 0 2px 6px rgba(31, 51, 41, 0.04);
}

.dual-question__panel--parents {
  background: linear-gradient(155deg, #FFFFFF 0%, #FBEEE5 100%);
}

.dual-question__panel--triplep {
  background: linear-gradient(155deg, #FFFFFF 0%, #E3ECE8 100%);
}

/* Hover lift (when not actively expanded) */
.dual-question__panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(31, 51, 41, 0.12);
}

/* When ONE panel is open, the OTHER softly dims */
.dual-question__grid.has-active .dual-question__panel:not(.is-open) {
  opacity: 0.55;
  filter: saturate(0.7);
  transform: none;
  box-shadow: 0 2px 6px rgba(31, 51, 41, 0.04);
}
.dual-question__grid.has-active .dual-question__panel:not(.is-open):hover {
  opacity: 1;
  filter: none;
  transform: translateY(-4px);
}

.dual-question__panel.is-open {
  box-shadow: 0 26px 50px rgba(31, 51, 41, 0.14);
}

.dual-question__trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 32px 28px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  min-height: 260px;
}

@media (min-width: 768px) {
  .dual-question__trigger {
    padding: 40px 36px;
    min-height: 290px;
  }
}

.dual-question__panel .dual-question__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.dual-question__panel--parents .dual-question__eyebrow {
  color: var(--accent-dark);
}

.dual-question__panel--triplep .dual-question__eyebrow {
  color: var(--primary);
}

.dual-question__title {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-right: 56px;
}

.dual-question__teaser {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

.dual-question__icon {
  position: absolute;
  top: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

@media (min-width: 768px) {
  .dual-question__icon { top: 40px; right: 36px; }
}

/* Hover state on the trigger spins the plus a touch */
.dual-question__panel:hover .dual-question__icon {
  transform: rotate(90deg) scale(1.05);
}

.dual-question__panel--parents:hover .dual-question__icon {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.dual-question__panel--triplep:hover .dual-question__icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Open state: plus → x */
.dual-question__panel.is-open .dual-question__icon {
  transform: rotate(135deg);
}

.dual-question__panel--parents.is-open .dual-question__icon {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.dual-question__panel--triplep.is-open .dual-question__icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Expandable body */
.dual-question__body {
  padding: 0 28px 32px;
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (min-width: 768px) {
  .dual-question__body { padding: 0 36px 40px; }
}

/* Hidden state via [hidden] is overridden by JS that toggles it */
.dual-question__body[hidden] { display: none; }

.dual-question__body p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.1em;
  max-width: 60ch;
}

.dual-question__body .btn {
  margin-top: 6px;
}

/* Reveal animation when opened */
.dual-question__panel.is-open .dual-question__body {
  animation: dq-fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dq-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dual-question__panel,
  .dual-question__icon,
  .dual-question__panel.is-open .dual-question__body {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Schools: Who carousel (mobile) ──────────────────────────────── */
.schools-who-carousel { position: relative; }
.schools-who-carousel__controls { display: none; }

@media (max-width: 1023px) {
  .schools-who-carousel__track.card-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .schools-who-carousel__track.card-grid::-webkit-scrollbar { display: none; }
  .schools-who-carousel__track > .card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
  .schools-who-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }
  .schools-who-carousel__btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .schools-who-carousel__btn:hover,
  .schools-who-carousel__btn:focus-visible {
    background: var(--primary); color: #fff; outline: none;
  }
  .schools-who-carousel__btn:active { transform: scale(0.94); }
  .schools-who-carousel__dots {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .schools-who-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .schools-who-carousel__dot.is-active {
    background: var(--accent-dark); width: 22px; border-radius: 4px;
  }
}

/* ── Schools: Programmes carousel (mobile) ───────────────────────── */
.schools-programmes-carousel { position: relative; }
.schools-programmes-carousel__controls { display: none; }

@media (max-width: 1023px) {
  .schools-programmes-carousel__track.programme-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .schools-programmes-carousel__track.programme-grid::-webkit-scrollbar { display: none; }
  .schools-programmes-carousel__track > .programme-card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
  .schools-programmes-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }
  .schools-programmes-carousel__btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .schools-programmes-carousel__btn:hover,
  .schools-programmes-carousel__btn:focus-visible {
    background: var(--primary); color: #fff; outline: none;
  }
  .schools-programmes-carousel__btn:active { transform: scale(0.94); }
  .schools-programmes-carousel__dots {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .schools-programmes-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .schools-programmes-carousel__dot.is-active {
    background: var(--accent-dark); width: 22px; border-radius: 4px;
  }
}

/* ── Schools programmes: desktop slideshow (opt-in) ──────────────── */
@media (min-width: 1024px) {
  .schools-programmes-carousel--desktop { max-width: 760px; margin-inline: auto; }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__track.programme-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__track.programme-grid::-webkit-scrollbar { display: none; }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__track > .programme-card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__controls {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary);
    background: transparent; color: var(--primary); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__btn:hover,
  .schools-programmes-carousel--desktop .schools-programmes-carousel__btn:focus-visible {
    background: var(--primary); color: #fff; outline: none;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__btn:active { transform: scale(0.94); }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__dots { display: inline-flex; align-items: center; gap: 8px; }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .schools-programmes-carousel--desktop .schools-programmes-carousel__dot.is-active {
    background: var(--accent-dark); width: 22px; border-radius: 4px;
  }
}

/* ── Pillars carousel (mobile) ───────────────────────────────────── */
.pillars-carousel { position: relative; }
.pillars-carousel__controls { display: none; }

@media (max-width: 1023px) {
  .pillars-carousel__track.card-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pillars-carousel__track.card-grid::-webkit-scrollbar { display: none; }
  .pillars-carousel__track > .card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
  .pillars-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }
  .pillars-carousel__btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .pillars-carousel__btn:hover,
  .pillars-carousel__btn:focus-visible {
    background: var(--primary); color: #fff; outline: none;
  }
  .pillars-carousel__btn:active { transform: scale(0.94); }
  .pillars-carousel__dots {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .pillars-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .pillars-carousel__dot.is-active {
    background: var(--accent-dark); width: 22px; border-radius: 4px;
  }
}

/* ── Generic carousel (mobile/tablet) ────────────────────────────────
   Reusable slideshow for any grid. Add `data-carousel` to a wrapper and
   the `mcarousel__track` class to the inner grid; JS injects the arrows
   and dots. Active below 1024px; the desktop grid is untouched. */
.mcarousel { position: relative; }
.mcarousel__controls { display: none; }

@media (max-width: 1023px) {
  .mcarousel__track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 16px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mcarousel__track::-webkit-scrollbar { display: none; }
  .mcarousel__track > * {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }

  .mcarousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
  }
  .mcarousel__btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .mcarousel__btn:hover,
  .mcarousel__btn:focus-visible {
    background: var(--primary); color: #fff; outline: none;
  }
  .mcarousel__btn:active { transform: scale(0.94); }
  .mcarousel__dots {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .mcarousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .mcarousel__dot.is-active {
    background: var(--accent-dark); width: 22px; border-radius: 4px;
  }
}

/* ── Generic carousel: desktop slideshow (opt-in via .mcarousel--desktop) */
@media (min-width: 1024px) {
  .mcarousel--desktop { max-width: 720px; margin-inline: auto; }
  .mcarousel--desktop .mcarousel__track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    gap: 14px;
    padding: 16px 20px 8px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .mcarousel--desktop .mcarousel__track::-webkit-scrollbar { display: none; }
  .mcarousel--desktop .mcarousel__track > * {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
  .mcarousel--desktop .mcarousel__controls {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px;
  }
  .mcarousel--desktop .mcarousel__btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary);
    background: transparent; color: var(--primary); display: inline-flex; align-items: center;
    justify-content: center; cursor: pointer; padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .mcarousel--desktop .mcarousel__btn:hover,
  .mcarousel--desktop .mcarousel__btn:focus-visible { background: var(--primary); color: #fff; outline: none; }
  .mcarousel--desktop .mcarousel__btn:active { transform: scale(0.94); }
  .mcarousel--desktop .mcarousel__dots { display: inline-flex; align-items: center; gap: 8px; }
  .mcarousel--desktop .mcarousel__dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(45, 74, 62, 0.28);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  .mcarousel--desktop .mcarousel__dot.is-active { background: var(--accent-dark); width: 22px; border-radius: 4px; }
}

/* ── Legal / policy pages ────────────────────────────────────────── */
.legal-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.legal-header .site-logo img { height: 40px; width: auto; }
.legal-header__link { font-weight: 500; color: var(--primary); }
.legal { padding: 52px 20px 72px; }
.legal__container { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); color: var(--primary); margin: 0 0 8px; line-height: 1.15; }
.legal__updated { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.4rem; color: var(--primary); margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; color: var(--primary); margin: 28px 0 10px; }
.legal p, .legal li { line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 16px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-dark); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--bg-alt); color: var(--primary); font-weight: 600; }
.legal__note { background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 24px 0; font-size: 0.95rem; }
.legal__note p:last-child { margin-bottom: 0; }
.legal-todo { background: #FCEFC7; color: #7a5b00; padding: 1px 6px; border-radius: 3px; font-weight: 500; font-size: 0.92em; }
.legal-footer { border-top: 1px solid var(--border); padding: 32px 20px; background: var(--bg-alt); }
.legal-footer__inner { max-width: 760px; margin: 0 auto; }
.legal-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.legal-footer__nav a { color: var(--primary); font-size: 0.92rem; font-weight: 500; }
.legal-footer__copy { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.legal-footer__copy a { color: var(--accent-dark); }

.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; opacity: 0.85; }
.site-footer__legal a:hover { opacity: 1; }

/* ── Cookie consent banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 72ch;
  color: #fff;
}
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn { padding: 10px 22px; font-size: 0.9rem; min-height: 0; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.cookie-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}
