/* =========================================================
   GATEWAYS EDUCATION & WELLBEING — shared stylesheet
   Concept: "Many paths, one gateway" — calm paper, winding paths,
   reaching stars. Each service has its own colour world taken
   from its logo (set by the body class: theme-ap, theme-tuition,
   theme-explorers). Edit the tokens below to restyle everything.
   ========================================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Paper + ink (warm, low-stimulus base) */
  --paper: #f8f4ec;
  --paper-2: #f0e9db;
  --paper-3: #e6dcc8;
  --card: #fffdf8;
  --ink: #1d1631;
  --ink-soft: #4a4360;
  --ink-mute: #6b6480;
  --line: rgba(29, 22, 49, 0.12);

  /* Gateways Education & Wellbeing (main logo) */
  --green: #1f9e6e;
  --green-bright: #3ddc97;
  --green-ink: #0b6645;
  --purple: #4a2a86;
  --purple-deep: #2a1653;
  --purple-soft: #ece5f7;
  --gold: #e2a51b;

  /* Gateways Alternative Provision (navy + teal logo) */
  --ap: #0e8a8a;
  --ap-ink: #0b2752;
  --ap-soft: #def0ee;
  /* Gateways Tuition (plum + coral logo) */
  --tu: #c4365a;
  --tu-ink: #561b6a;
  --tu-coral: #f27a6b;
  --tu-soft: #f8e4e6;
  /* Gateways Explorers (forest + gold + teal logo) */
  --ex: #2c6a37;
  --ex-gold: #dda21a;
  --ex-teal: #1d8a95;
  --ex-soft: #f6ecd2;

  /* Default page accent = main brand */
  --accent: var(--green);
  --accent-ink: var(--purple);
  --accent-text: var(--green-ink);
  --accent-soft: #e2f4ea;
  --accent-bright: var(--green-bright);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.9rem, 0.86rem + 0.15vw, 0.98rem);
  --step-0: clamp(1.06rem, 1rem + 0.25vw, 1.18rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.55vw, 1.55rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
  --step-3: clamp(2rem, 1.55rem + 2vw, 3.3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  --step-5: clamp(3.1rem, 1.9rem + 6vw, 7.6rem);

  /* Space + shape */
  --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --maxw: 1320px;
  --radius: 28px;
  --radius-lg: clamp(28px, 2vw + 18px, 48px);
  --shadow: 0 1px 2px rgba(29, 22, 49, .05), 0 12px 40px -18px rgba(29, 22, 49, .25);
  --shadow-lg: 0 2px 4px rgba(29, 22, 49, .05), 0 30px 80px -30px rgba(29, 22, 49, .4);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* Page themes (one colour world per service) */
.theme-ap { --accent: var(--ap); --accent-ink: var(--ap-ink); --accent-text: #08706f; --accent-soft: var(--ap-soft); --accent-bright: #3fb8b0; }
.theme-tuition { --accent: var(--tu); --accent-ink: var(--tu-ink); --accent-text: #a9284b; --accent-soft: var(--tu-soft); --accent-bright: var(--tu-coral); }
.theme-explorers { --accent: var(--ex); --accent-ink: var(--ex); --accent-text: var(--ex); --accent-soft: var(--ex-soft); --accent-bright: var(--ex-gold); }

/* ===== BASE ===== */
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html:not(.calm) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 68ch; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 560; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .5em;
  font-variation-settings: "SOFT" 60, "opsz" 96; text-wrap: balance; color: var(--ink);
}
h1 { font-size: var(--step-5); letter-spacing: -.035em; }
h2 { font-size: var(--step-4); letter-spacing: -.03em; }
h3 { font-size: var(--step-2); line-height: 1.12; }
h4 { font-size: var(--step-1); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 430; color: var(--accent-text); font-variation-settings: "SOFT" 100, "opsz" 96, "WONK" 1; }
strong { font-weight: 700; }
ul { padding-left: 1.2em; }
::selection { background: var(--accent-bright); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ===== BUTTONS ===== */
.btn {
  --b: var(--ink); --t: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; background: var(--b); color: var(--t); font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--b); cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(29, 22, 49, .55); border-color: var(--accent); }
.btn:hover::after { transform: translateY(0); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { --b: var(--accent); --t: #fff; }
.btn-accent::after { background: var(--accent-ink); }
.btn-accent:hover { border-color: var(--accent-ink); }
.btn-ghost { --b: transparent; --t: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn-light { --b: var(--paper); --t: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--accent-text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ===== HEADER / NAV ===== */
.utility {
  background: var(--purple-deep); color: #efe9ff; font-size: .9rem;
}
.utility .wrap { display: flex; gap: 1.4rem; align-items: center; justify-content: flex-end; min-height: 40px; flex-wrap: wrap; }
.utility a { color: inherit; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; min-height: 40px; }
.utility a:hover { color: var(--green-bright); }
.utility svg { width: 16px; height: 16px; }
.utility .u-left { margin-right: auto; opacity: .85; }
.calm-toggle {
  display: inline-flex; align-items: center; gap: .55rem; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; min-height: 40px; padding: 0;
}
.calm-toggle .switch { width: 34px; height: 20px; border-radius: 20px; background: rgba(255,255,255,.25); position: relative; transition: background .3s; }
.calm-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.calm-toggle[aria-pressed="true"] .switch { background: var(--green); }
.calm-toggle[aria-pressed="true"] .switch::after { transform: translateX(14px); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 236, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -25px rgba(29,22,49,.5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .header-inner { height: 70px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .72rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; font-family: var(--font-body); white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--paper-2); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 999px 999px 999px 999px; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-cta { margin-left: .6rem; }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(720px, 92vw); transform: translate(-50%, 8px);
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; grid-template-columns: 240px 1fr; overflow: hidden; opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item.open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item:nth-last-child(-n+3) > .mega { left: auto; right: -40px; transform: translate(0, 8px); }
.nav-item.open:nth-last-child(-n+3) > .mega { transform: translate(0, 0); }
.mega-intro { background: var(--m-soft, var(--accent-soft)); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.mega-intro img { width: 100%; max-width: 200px; height: auto; }
.mega-intro p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.mega-links { list-style: none; margin: 0; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; align-content: start; }
.mega-links a { display: block; padding: .7rem .85rem; border-radius: 14px; text-decoration: none; transition: background .2s; }
.mega-links a:hover, .mega-links a:focus-visible { background: var(--paper); }
.mega-links strong { display: block; font-size: .98rem; line-height: 1.3; }
.mega-links span { display: block; font-size: .84rem; color: var(--ink-mute); line-height: 1.35; margin-top: .15rem; }
.m-ap { --m-soft: var(--ap-soft); }
.m-tu { --m-soft: var(--tu-soft); }
.m-ex { --m-soft: var(--ex-soft); }
.m-main { --m-soft: #e2f4ea; }
.m-purple { --m-soft: var(--purple-soft); }

.menu-toggle { display: none; margin-left: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span { transform: translate(-50%, -50%); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); background: var(--paper); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); background: var(--paper); }

@media (max-width: 1420px) {
  .main-nav { position: fixed; inset: 0; top: 0; z-index: 60; background: var(--purple-deep); color: #fff; padding: 6.5rem var(--gutter) 3rem; overflow-y: auto;
    clip-path: circle(0 at calc(100% - 3rem) 3rem); visibility: hidden; transition: clip-path .7s var(--ease), visibility .7s; margin: 0; }
  .menu-open .main-nav { clip-path: circle(150% at calc(100% - 3rem) 3rem); visibility: visible; }
  .menu-toggle { display: block; z-index: 70; }
  .menu-open .menu-toggle { background: var(--green); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav-link { color: #fff; width: 100%; justify-content: space-between; font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 500; padding: 1rem 0; border-radius: 0; min-height: 60px; }
  .nav-link:hover, .nav-item.open > .nav-link { background: none; color: var(--green-bright); }
  .nav-link[aria-current="page"], .nav-link.is-current { color: var(--green-bright); box-shadow: none; }
  .nav-link .chev { width: 22px; height: 22px; }
  .mega, .nav-item:nth-last-child(-n+3) > .mega { position: static; transform: none !important; width: auto; opacity: 1; visibility: visible; display: none; background: transparent; box-shadow: none; border: 0; grid-template-columns: 1fr; border-radius: 0; }
  .nav-item.open > .mega { display: block; }
  .mega-intro { display: none; }
  .mega-links { grid-template-columns: 1fr; padding: 0 0 1rem; }
  .mega-links a { color: #fff; padding: .7rem 0; }
  .mega-links a:hover { background: none; color: var(--green-bright); }
  .mega-links span { color: rgba(255,255,255,.65); }
  .nav-cta { margin: 2rem 0 0; border: 0; }
  .nav-cta .btn { width: 100%; --b: var(--green-bright); --t: var(--ink); }
  .mobile-extra { display: block !important; margin-top: 2rem; color: rgba(255,255,255,.8); }
  .mobile-extra a { color: #fff; }
}
.mobile-extra { display: none; }
@media (max-width: 720px) {
  .utility .u-left, .utility .u-hide-sm { display: none; }
  .utility .wrap { justify-content: space-between; gap: .8rem; }
  .brand img, .site-header.is-scrolled .brand img { height: 42px; }
  :root { --header-h: 72px; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { position: relative; padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--step-5); margin-bottom: .35em; }
.page-hero .lede { margin-bottom: 0; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .blob { position: absolute; inset: 4%; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: var(--accent-soft); animation: morph 18s ease-in-out infinite; }
.hero-art .ring { position: absolute; inset: 0; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; animation: spin 80s linear infinite; }
.hero-art img { position: relative; width: 62%; filter: drop-shadow(0 20px 30px rgba(29,22,49,.12)); }
.hero-art .logo-plate { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); width: 88%; background: var(--card); border-radius: 22px; padding: 1rem 1.4rem; box-shadow: var(--shadow); }
.hero-art .logo-plate img { width: 100%; filter: none; }
.crumbs { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; width: 80%; margin: 0 auto; order: -1; }
  .page-hero h1 { font-size: var(--step-4); }
}

/* ===== HOME HERO ===== */
.home-hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: center; padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem); overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; position: relative; z-index: 2; }
.home-hero h1 { font-size: clamp(3.1rem, 1rem + 7vw, 8.2rem); line-height: .92; letter-spacing: -.045em; margin-bottom: .3em; }
.home-hero h1 em { display: inline-block; }
.home-hero .lede { font-size: var(--step-1); }
.hero-mark { position: relative; aspect-ratio: 1; }
.hero-mark .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e3f7ec 0%, #efe7fa 55%, transparent 72%); }
.hero-mark img { position: absolute; inset: 14% 12% 10% 14%; width: 74%; height: auto; animation: float 9s ease-in-out infinite; }
.hero-mark .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(74,42,134,.14); }
.hero-mark .orbit.o2 { inset: 9%; border-style: dashed; border-color: rgba(31,158,110,.3); animation: spin 120s linear infinite; }
.sparkle { position: absolute; width: var(--s, 22px); height: var(--s, 22px); color: var(--c, var(--gold)); animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; font-weight: 700; }
.trust-row svg { width: 18px; height: 18px; color: var(--green); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); z-index: 3; text-decoration: none; }
.scroll-cue i { width: 2px; height: 42px; background: linear-gradient(var(--ink-mute), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@media (max-width: 900px) {
  .home-hero { min-height: auto; }
  .home-hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { width: min(210px, 52vw); margin: 0 auto 0 0; order: -1; }
  .scroll-cue { display: none; }
}

/* Winding path that draws on scroll */
.path-svg { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.path-svg path { fill: none; stroke-linecap: round; }

/* ===== MARQUEE ===== */
.marquee { --gap: 2.4rem; overflow: hidden; padding-block: 1.4rem; border-block: 1px solid var(--line); background: var(--card); position: relative; z-index: 2; }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; font-weight: 400; color: var(--ink-soft); display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--gold); }

/* ===== LAYOUT HELPERS ===== */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split > .s-head { grid-column: 1 / span 5; }
.split > .s-body { grid-column: 7 / span 6; }
.split.reverse > .s-head { grid-column: 8 / span 5; order: 2; }
.split.reverse > .s-body { grid-column: 1 / span 6; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > *, .split.reverse > * { grid-column: auto !important; order: initial !important; }
  .sticky-head { position: static; }
}
.bg-soft { background: var(--accent-soft); }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--purple-deep); color: #f3eefc; }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-ink .eyebrow { color: var(--green-bright); }
.bg-ink .lede, .bg-ink p { color: rgba(243,238,252,.85); }
.rounded-top { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.rounded { border-radius: var(--radius-lg); }
.inset { margin-inline: clamp(.5rem, 1.5vw, 1.5rem); border-radius: var(--radius-lg); }

/* tick list */
.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; align-items: start; }
.ticks li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1631' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; margin-top: .1rem; }
.bg-ink .ticks li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ===== CARDS ===== */
.card { background: var(--card); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2.2rem); border: 1px solid var(--line); position: relative; }
.card h3 { font-size: var(--step-1); margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.icon-badge { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1.2rem; }
.icon-badge svg { width: 26px; height: 26px; }

/* Spotlight hover (cursor-follow glow) */
.spot { --mx: 50%; --my: 50%; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.spot:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* ===== AUDIENCE SWITCHER ===== */
.switcher { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.4rem); }
.switcher [role="tablist"] { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem; background: var(--paper); border-radius: 999px; width: fit-content; max-width: 100%; margin-bottom: 1.8rem; }
.switcher [role="tab"] { min-height: 48px; padding: .6rem 1.2rem; border-radius: 999px; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-soft); transition: background .3s, color .3s; }
.switcher [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.switcher [role="tabpanel"] { animation: fadeUp .5s var(--ease); }
.switcher [role="tabpanel"] h3 { font-size: var(--step-2); }
.route-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.route-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); text-decoration: none; font-weight: 700; min-height: 60px; transition: background .3s, transform .4s var(--ease); }
.route-list a:hover { background: var(--accent-soft); transform: translateX(4px); }
.route-list svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
@media (max-width: 640px) { .route-list { grid-template-columns: 1fr; } .switcher [role="tablist"] { border-radius: 22px; } }

/* ===== SERVICE DOORS (bento) ===== */
.doors { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.door { grid-column: span 6; position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.6rem); text-decoration: none; min-height: 420px; overflow: hidden; background: var(--d-bg); color: var(--ink); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); transform-style: preserve-3d; }
.door:hover { box-shadow: var(--shadow-lg); }
.door .door-logo { background: #fff; border-radius: 20px; padding: 1rem 1.3rem; width: min(100%, 360px); box-shadow: 0 10px 30px -20px rgba(0,0,0,.35); }
.door .door-logo img { width: 100%; height: auto; }
.door h3 { margin-top: auto; padding-top: 2rem; font-size: var(--step-3); }
.door p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.door .go { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; position: absolute; right: clamp(1.5rem, 3vw, 2.6rem); bottom: clamp(1.5rem, 3vw, 2.6rem); transition: transform .5s var(--ease), background .3s; }
.door:hover .go { transform: rotate(-45deg) scale(1.08); background: var(--d-accent); }
.door .go svg { width: 24px; height: 24px; }
.door .door-text { padding-right: 70px; }
.door .mark-bg { position: absolute; right: -6%; top: -8%; width: 52%; opacity: .1; transform: rotate(-8deg); transition: transform .9s var(--ease), opacity .6s; pointer-events: none; }
.door:hover .mark-bg { transform: rotate(0deg) scale(1.06); opacity: .16; }
.door-ap { --d-bg: var(--ap-soft); --d-accent: var(--ap); }
.door-eotas { --d-bg: #e7eef8; --d-accent: var(--ap-ink); grid-column: span 5; }
.door-tu { --d-bg: var(--tu-soft); --d-accent: var(--tu); grid-column: span 7; }
.door-ex { --d-bg: var(--ex-soft); --d-accent: var(--ex); }
.door-ex .door-logo { width: auto; background: none; box-shadow: none; padding: 0; }
.door-ex .door-logo img { width: 150px; }
@media (max-width: 900px) { .door, .door-eotas, .door-tu { grid-column: 1 / -1; min-height: 360px; } }

/* ===== STACKING CARDS (signature) ===== */
.stack { position: relative; display: grid; gap: clamp(1.5rem, 4vh, 3rem); padding-bottom: 4vh; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem + var(--i, 0) * 1.4rem);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3.6rem); min-height: min(72vh, 640px);
  background: var(--c-bg); color: #fff; box-shadow: 0 -10px 60px -30px rgba(0,0,0,.6);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  transform-origin: 50% 0; will-change: transform; overflow: hidden;
}
.stack-card h3 { color: #fff; font-size: var(--step-4); line-height: .95; margin-bottom: .4em; }
.stack-card .num { font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--c-accent); margin-bottom: 1rem; display: block; }
.stack-card .tag { font-size: var(--step-1); font-family: var(--font-display); font-weight: 400; line-height: 1.3; color: rgba(255,255,255,.92); max-width: 30ch; }
.stack-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.stack-card li { padding: .85rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); line-height: 1.4; }
.stack-card .outcome { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--c-accent); color: var(--c-on, #10101a); font-weight: 700; line-height: 1.4; }
.stack-card .outcome small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-bottom: .2rem; }
.stack-card .mark-bg { position: absolute; right: -4%; bottom: -10%; width: 38%; opacity: .07; pointer-events: none; filter: grayscale(1) brightness(3); }
.stack-card .shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }
.c-nurture { --c-bg: #3b2275; --c-accent: #c9b8f5; }
.c-curriculum { --c-bg: #0d5a43; --c-accent: var(--green-bright); }
.c-reint { --c-bg: #0b2752; --c-accent: #7fd6cf; }
.c-a { --c-bg: #3b2275; --c-accent: #c9b8f5; }
.c-b { --c-bg: #0d5a43; --c-accent: var(--green-bright); }
.c-c { --c-bg: #0b2752; --c-accent: #7fd6cf; }
.c-d { --c-bg: #5a1a6b; --c-accent: #f8a99f; }
@media (max-width: 900px) {
  .stack-card { grid-template-columns: 1fr; min-height: auto; top: calc(var(--header-h) + .8rem + var(--i, 0) * .8rem); }
  .stack-card h3 { font-size: var(--step-3); }
}

/* ===== STEPS / TIMELINE ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: var(--step-3); font-style: italic; color: var(--accent-text); line-height: 1; display: block; margin-bottom: 1rem; }
.steps h3 { font-size: var(--step-1); }
.steps p { font-size: .98rem; margin: 0; color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 clamp(3rem, 6vw, 5rem); }
.timeline::before, .timeline .progress { content: ""; position: absolute; left: clamp(1rem, 2vw, 1.6rem); top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--paper-3); }
.timeline .progress { background: linear-gradient(var(--green), var(--accent)); transform-origin: top; transform: scaleY(var(--p, 0)); bottom: .5rem; }
.timeline > li { position: relative; padding: 0 0 2.4rem; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1 * clamp(3rem, 6vw, 5rem) + clamp(1rem, 2vw, 1.6rem) - 9px); top: .35rem; width: 21px; height: 21px; border-radius: 50%; background: var(--paper); border: 3px solid var(--paper-3); transition: border-color .4s, background .4s, transform .4s var(--ease); }
.timeline > li.is-done::before { border-color: var(--accent); background: var(--accent); transform: scale(1.15); }
.timeline .phase { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); }
.timeline h3 { font-size: var(--step-2); margin: .3rem 0 .6rem; }
.timeline ul { margin: .6rem 0 0; color: var(--ink-soft); }
.timeline ul li { margin-bottom: .3rem; }

/* ===== SIDE INDEX (long pages) ===== */
.with-index { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-index { position: sticky; top: calc(var(--header-h) + 2rem); }
.page-index p { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); margin-bottom: .8rem; }
.page-index ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.page-index a { display: block; padding: .5rem 0 .5rem 1.1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font-size: .97rem; line-height: 1.35; transition: color .25s, border-color .25s; }
.page-index a:hover { color: var(--ink); }
.page-index a.is-active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 700; }
.content-block { padding-bottom: clamp(3rem, 6vw, 5.5rem); margin-bottom: clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 2rem); }
.content-block:last-child { border-bottom: 0; margin-bottom: 0; }
.content-block h2 { font-size: var(--step-3); }
.content-block .sub { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--accent-text); margin: -.2em 0 1em; font-weight: 400; }
@media (max-width: 1000px) {
  .with-index { grid-template-columns: 1fr; }
  .page-index { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; margin: 0 calc(-1 * var(--gutter)); padding: .6rem var(--gutter); background: rgba(248,244,236,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .page-index p { display: none; }
  .page-index ol { display: flex; gap: .5rem; overflow-x: auto; border: 0; scrollbar-width: none; }
  .page-index ol::-webkit-scrollbar { display: none; }
  .page-index a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; margin: 0; min-height: 40px; display: flex; align-items: center; font-size: .9rem; background: var(--card); }
  .page-index a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

/* ===== QUOTE / TESTIMONIAL ===== */
.quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; letter-spacing: -.02em; font-weight: 420; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 100, "opsz" 96; }
.quote-mark { font-family: var(--font-display); font-size: 9rem; line-height: .6; color: var(--green-bright); height: 4rem; display: block; }
.quote-by { margin-top: 1.6rem; font-weight: 700; }
.quote-by span { display: block; font-weight: 400; color: var(--ink-mute); }
.bg-ink .quote-by span { color: rgba(243,238,252,.7); }

/* ===== FIGURE (pathways guide) ===== */
.figure-frame { background: var(--card); border-radius: var(--radius-lg); padding: clamp(.6rem, 1.4vw, 1.2rem); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.figure-frame img { border-radius: calc(var(--radius-lg) - 12px); width: 100%; }
.figure-frame figcaption { font-size: .92rem; color: var(--ink-mute); padding: .9rem .5rem .2rem; }
.zoom-btn { all: unset; cursor: zoom-in; display: block; border-radius: calc(var(--radius-lg) - 12px); }
.zoom-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(20,12,40,.82); backdrop-filter: blur(4px); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 16px; }
.lightbox button { position: absolute; top: .6rem; right: .6rem; }

/* ===== FAQ ===== */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--card); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 520; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1631' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin: 0; }

/* ===== CTA BAND ===== */
.cta-band { position: relative; overflow: hidden; background: var(--purple-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 6vw, 6rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }
.cta-band h2 { color: #fff; font-size: var(--step-4); margin: 0; }
.cta-band h2 em { color: var(--green-bright); }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .contact-lines { display: grid; gap: .6rem; margin-top: 1rem; }
.cta-band .contact-lines a { color: #fff; font-weight: 700; font-size: var(--step-1); text-decoration: none; display: inline-flex; gap: .7rem; align-items: center; }
.cta-band .contact-lines a:hover { color: var(--green-bright); }
.cta-band .contact-lines svg { width: 22px; height: 22px; color: var(--green-bright); flex: none; }
.cta-band .deco { position: absolute; right: -60px; top: -60px; width: 340px; opacity: .14; pointer-events: none; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ===== DOWNLOADS / POLICIES ===== */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.doc-list a, .doc-list .doc-pending { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 72px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.3; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.doc-list a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.doc-list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.doc-list .ic svg { width: 20px; height: 20px; }
.doc-list small { display: block; font-weight: 400; color: var(--ink-mute); font-size: .84rem; }
.doc-pending { opacity: .75; border-style: dashed !important; }

/* ===== FORMS ===== */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .98rem; }
.field .hint { font-weight: 400; color: var(--ink-mute); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--paper-3); background: var(--card);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .9rem; margin-top: .35rem; display: none; font-weight: 700; }
.field.has-error .error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--paper-3); background: var(--card); cursor: pointer; font-weight: 700; font-size: .95rem; transition: all .25s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .9rem; color: var(--ink-mute); margin: 0; }
.form-status { display: none; padding: 1.2rem 1.4rem; border-radius: 18px; font-weight: 700; }
.form-status.ok { display: block; background: #e2f4ea; color: var(--green-ink); }
.form-status.err { display: block; background: #fbe5e3; color: #8c1d18; }
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ===== HORIZONTAL STAGES (tuition) ===== */
.hscroll { position: relative; }
.hscroll-pin { position: sticky; top: calc(var(--header-h) + 1rem); overflow: hidden; }
.hscroll-track { display: flex; gap: 1.2rem; width: max-content; will-change: transform; padding: 1rem var(--gutter) 2rem; }
.stage { width: clamp(320px, 32vw, 470px); min-height: 460px; flex: none; background: var(--card); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line); display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 2rem); }
.stage:nth-child(3n+1) { background: var(--tu-soft); }
.stage:nth-child(3n+2) { background: #f1e7f4; }
.stage .years { font-family: var(--font-display); font-style: italic; color: var(--accent-text); font-size: var(--step-1); }
.stage h3 { font-size: var(--step-2); margin: .3rem 0 .4rem; }
.stage .sub { font-weight: 700; color: var(--ink-soft); margin-bottom: 1rem; }
.stage p { font-size: .98rem; }
.stage .link-arrow { margin-top: auto; }
.hscroll-progress { height: 4px; border-radius: 4px; background: var(--paper-3); margin: 0 var(--gutter); overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hscroll { height: auto !important; }
  .hscroll-pin { position: static; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hscroll-track { transform: none !important; }
  .stage { scroll-snap-align: start; width: min(84vw, 380px); min-height: 0; }
  .hscroll-progress { display: none; }
}
.calm .hscroll { height: auto !important; }
.calm .hscroll-pin { position: static; overflow-x: auto; }
.calm .hscroll-track { transform: none !important; }

/* ===== STAT / FACT STRIP ===== */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts div { background: var(--card); padding: 1.6rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--accent-ink); font-weight: 520; margin-bottom: .4rem; }
.facts span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ===== AFTERNOON CLOCK (Explorers) ===== */
.afternoon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.afternoon li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 1.4rem; }
.afternoon time { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--ex-gold); display: block; margin-bottom: .4rem; }
@media (max-width: 860px) { .afternoon { grid-template-columns: 1fr 1fr; } }

/* ===== MAP PLACEHOLDER ===== */
.map-slot { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--ap-soft); display: grid; place-items: center; text-align: center; padding: 2rem; border: 1px solid var(--line); }
.map-slot svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.map-slot .map-inner { position: relative; max-width: 380px; background: var(--card); padding: 1.6rem; border-radius: 22px; box-shadow: var(--shadow); }
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== LEGAL / LONG-FORM ===== */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); }
.toc { background: var(--card); border-radius: 22px; padding: 1.4rem 1.6rem; border: 1px solid var(--line); margin: 2rem 0; }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.placeholder { background: #fff3c4; padding: 0 .3em; border-radius: 4px; font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer { background: #160d2c; color: #d9d1ec; padding: clamp(3.5rem, 7vw, 6.5rem) 0 2rem; margin-top: var(--section); position: relative; overflow: hidden; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); }
.footer-logo { background: var(--paper); border-radius: 22px; padding: 1rem 1.3rem; display: inline-block; margin-bottom: 1.4rem; }
.footer-logo img { width: 240px; }
.site-footer h2 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 1.1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.site-footer ul a { display: inline-flex; min-height: 36px; align-items: center; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer p { color: #c9c0de; font-size: .98rem; }
.footer-family { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-family .fam-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: .5rem; }
.footer-family a { background: var(--paper); border-radius: 16px; padding: .55rem .9rem; display: inline-flex; align-items: center; transition: transform .4s var(--ease); }
.footer-family a:hover { transform: translateY(-3px); }
.footer-family img { height: 42px; width: auto; }
.ofsted-badge { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: .6rem .9rem; font-size: .9rem; color: #fff; }
.ofsted-badge strong { color: var(--green-bright); }
.safeguard { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.06); font-size: .92rem; }
.legal-strip { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .86rem; color: rgba(217,209,236,.75); }
.legal-strip ul { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.legal-strip button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; min-height: 36px; text-decoration: underline; text-underline-offset: .2em; }
.legal-strip button:hover { color: var(--green-bright); }
.legal-strip .company { max-width: 70ch; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-socials a:hover { background: var(--green); color: #fff; }
.footer-socials svg { width: 20px; height: 20px; }
.footer-word { position: absolute; right: -2vw; bottom: -4vw; font-family: var(--font-display); font-size: 22vw; line-height: .8; color: rgba(255,255,255,.03); pointer-events: none; font-style: italic; letter-spacing: -.05em; white-space: nowrap; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ===== COOKIE CONSENT ===== */
.cc { position: fixed; z-index: 200; left: 1rem; bottom: 1rem; width: min(440px, calc(100vw - 2rem)); background: var(--card); color: var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.5rem; display: none; }
.cc.show { display: block; animation: fadeUp .5s var(--ease); }
.cc h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .4rem; letter-spacing: -.01em; }
.cc p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cc-actions .btn { min-height: 48px; font-size: .95rem; padding: .6rem 1rem; }
.cc-actions .btn-ghost { color: var(--ink); }
.cc-manage { grid-column: 1 / -1; background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 44px; color: var(--ink); }
.cc-prefs { display: none; margin: .4rem 0 1rem; border-top: 1px solid var(--line); }
.cc.expanded .cc-prefs { display: block; }
.cc-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cc-row strong { display: block; font-size: .98rem; }
.cc-row span { font-size: .85rem; color: var(--ink-mute); display: block; }
.cc-switch { position: relative; flex: none; width: 50px; height: 30px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 2; }
.cc-switch i { position: absolute; inset: 0; border-radius: 30px; background: var(--paper-3); transition: background .25s; }
.cc-switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cc-switch input:checked + i { background: var(--green); }
.cc-switch input:checked + i::after { transform: translateX(20px); }
.cc-switch input:disabled + i { opacity: .55; }
.cc-switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-save { width: 100%; margin-top: .4rem; }
.cc a { color: var(--ink); font-weight: 700; }

/* ===== REVEAL ANIMATIONS ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 70ms + .1s); }
.js .split-words.in .w > span { transform: none; }

@keyframes morph { 0%,100% { border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; } 50% { border-radius: 58% 42% 44% 56% / 42% 56% 44% 58%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.7) rotate(25deg); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== CALM MODE + REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .split-words .w > span { opacity: 1 !important; transform: none !important; }
  .stack-card { transform: none !important; }
}
.calm *, .calm *::before, .calm *::after { animation: none !important; transition-duration: .01ms !important; }
.calm .reveal, .calm .split-words .w > span { opacity: 1 !important; transform: none !important; }
.calm .stack-card { transform: none !important; }
.calm .stack-card .shade { opacity: 0 !important; }
.calm body::before { display: none; }
.calm .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
.calm .marquee-track [aria-hidden="true"] { display: none; }

/* ===== PRINT ===== */
@media print { .utility, .site-header, .cc, .site-footer .footer-word, .scroll-cue { display: none !important; } body::before { display: none; } }

/* ===== QA FIXES ===== */
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .arrow { display: inline-flex; }
.placeholder { color: #1d1631; }
.site-footer { margin-top: calc(var(--section) * .5); }
.footer-family img { height: 52px; }
.cta-band .eyebrow, .bg-ink .eyebrow { color: var(--green-bright); }
.door-ex .door-logo img { width: 180px; }
.cta-band > * { min-width: 0; }
.cta-band .contact-lines a { overflow-wrap: anywhere; font-size: clamp(1rem, .9rem + .6vw, 1.55rem); }
.stack-card.no-stick { position: relative; top: auto; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.theme-explorers .bg-ink { background: #1c3a23; }
.theme-explorers .cta-band { background: #1c3a23; }
.theme-tuition .bg-ink { background: #3d1249; }
.theme-ap .bg-ink { background: #0b2752; }
/* backdrop-filter makes the header a containing block for fixed children: drop it while the menu is open */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
@media (min-width: 901px) {
  .hscroll-pin { min-height: calc(100vh - var(--header-h) - 1rem); display: flex; flex-direction: column; justify-content: center; }
}
.hscroll-head { padding: 0 var(--gutter); width: min(100%, calc(var(--maxw) + 2 * var(--gutter))); margin: 0 auto .5rem; }
/* AA contrast for white text on accent buttons */
:root { --accent-btn: #137a55; }
.theme-ap { --accent-btn: #0a7272; }
.theme-tuition { --accent-btn: var(--tu); }
.theme-explorers { --accent-btn: var(--ex); }
.btn-accent { --b: var(--accent-btn); }
.btn-accent:hover { border-color: var(--accent-ink); }
.door:hover .go { background: var(--d-accent); }
.with-index > * { min-width: 0; }
.split > * { min-width: 0; }
.stage { padding: 1.6rem 1.7rem; min-height: 0; }
.stage p { font-size: .95rem; line-height: 1.55; margin-bottom: .7em; }
.stage h3 { font-size: var(--step-1); }
.stage .sub { margin-bottom: .7rem; }
.hscroll-head h2 { margin-bottom: .3em; }
/* if the pinned strip won't fit the screen, fall back to a swipeable row */
.hscroll.no-pin { height: auto !important; }
.hscroll.no-pin .hscroll-pin { position: static; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 0; }
.hscroll.no-pin .hscroll-track { transform: none !important; }
.hscroll.no-pin .stage { scroll-snap-align: start; }
.hscroll.no-pin .hscroll-progress { display: none; }
.nav-cta .btn { white-space: nowrap; }
.nav-link .chev { flex: none; }

/* ===== VIDEO HEADER (home) ===== */
.home-hero.has-video { margin: .6rem clamp(.5rem, 1.5vw, 1.5rem) 0; border-radius: var(--radius-lg); min-height: min(86vh, 860px); color: #fff; background: var(--purple-deep); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(24,12,52,.92) 0%, rgba(24,12,52,.74) 38%, rgba(24,12,52,.25) 75%, rgba(24,12,52,.1) 100%),
  linear-gradient(0deg, rgba(24,12,52,.55) 0%, transparent 35%); }
.has-video .wrap { display: block; }
.has-video .hero-copy { max-width: 760px; }
.has-video h1 { color: #fff; }
.has-video h1 em { color: var(--green-bright); }
.has-video .eyebrow { color: var(--green-bright); }
.has-video .lede { color: rgba(255,255,255,.9); }
.has-video .btn-ghost { --t: #fff; border-color: rgba(255,255,255,.85); }
.has-video .btn-ghost:hover { border-color: var(--accent); }
.has-video .trust-row li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.has-video .trust-row svg { color: var(--green-bright); }
.has-video .scroll-cue { color: rgba(255,255,255,.8); }
.has-video .scroll-cue i { background: linear-gradient(rgba(255,255,255,.8), transparent); }
.video-toggle { position: absolute; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(24,12,52,.45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s; z-index: 3; }
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: var(--green); }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 900px) {
  .home-hero.has-video { min-height: 0; padding-top: clamp(14rem, 55vw, 22rem); border-radius: 28px; }
  .hero-media img, .hero-media video { object-position: 55% 30%; }
  .hero-shade { background: linear-gradient(180deg, rgba(24,12,52,.15) 0%, rgba(24,12,52,.55) 30%, rgba(24,12,52,.92) 55%, rgba(24,12,52,.96) 100%); }
  .video-toggle { top: 1rem; bottom: auto; }
}

/* ===== CLIENT EDITS: v5 ===== */
/* Lexend throughout: accessibility-focused, plain zeros, no fancy display face */
:root { --font-display: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif; --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif; --header-h: 100px; }
body { font-weight: 350; line-height: 1.7; }
h1, h2, h3, h4 { font-weight: 600; font-variation-settings: normal; letter-spacing: -.025em; line-height: 1.08; }
h1, .home-hero h1 { letter-spacing: -.035em; }
.home-hero h1 { font-size: clamp(2.8rem, 1rem + 6vw, 7rem); line-height: 1; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; font-variation-settings: normal; }
.marquee span, .stack-card .num, .steps li::before, .stage .years, .afternoon time, .footer-word, .content-block .sub, .quote, .quote-by, .quote-mark { font-style: normal !important; font-variation-settings: normal; }
.quote { font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.marquee span { font-weight: 400; }
.faq summary { font-weight: 500; }
strong, b, .btn, .nav-link, .eyebrow { font-weight: 600; }
/* bigger logo */
.brand img { height: 74px; }
.site-header.is-scrolled .brand img { height: 58px; }
.site-header.is-scrolled .header-inner { height: 80px; }
@media (max-width: 720px) { :root { --header-h: 80px; } .brand img, .site-header.is-scrolled .brand img { height: 56px; } }
/* simple dropdown menus */
.mega.dd { display: block; width: auto; min-width: 270px; left: 0; transform: translateY(8px); padding: .5rem; border-radius: 18px; }
.nav-item.open > .mega.dd { transform: translateY(0); }
.nav-item:nth-last-child(-n+3) > .mega.dd { left: auto; right: 0; transform: translateY(8px); }
.nav-item.open:nth-last-child(-n+3) > .mega.dd { transform: translateY(0); }
.mega.dd .mega-links { display: block; padding: 0; }
.mega.dd .mega-links a { padding: .65rem .9rem; border-radius: 12px; font-weight: 500; white-space: nowrap; }
.mega.dd .mega-links a[aria-current="page"] { background: var(--paper-2); font-weight: 600; }
@media (max-width: 1420px) { .mega.dd, .nav-item:nth-last-child(-n+3) > .mega.dd { min-width: 0; padding: 0; border-radius: 0; } .mega.dd .mega-links a { padding: .7rem 0; white-space: normal; } .mega.dd .mega-links a[aria-current="page"] { background: none; color: var(--green-bright); } }
/* pathways guide: don't clip the Ofsted logo in the corner */
.figure-frame { padding: clamp(.6rem, 1.4vw, 1rem); }
.figure-frame img, .zoom-btn { border-radius: 6px; }
.lightbox img { border-radius: 6px; }
/* compact desktop nav so the bigger logo + Lexend fit */
@media (min-width: 1421px) {
  .header-inner { gap: 1rem; }
  .nav-link { font-size: .92rem; padding: .45rem .5rem; gap: .2rem; }
  .nav-link .chev { width: 12px; height: 12px; }
  .nav-cta { margin-left: .35rem; }
  .nav-cta .btn { padding: .55rem 1rem; font-size: .92rem; }
  .brand img { height: 66px; }
  .site-header.is-scrolled .brand img { height: 54px; }
}
/* ===== v6 ===== */
/* blurb modules: icon, title, text, button (no box) */
.blurb { display: flex; flex-direction: column; align-items: flex-start; }
.blurb h3 { font-size: var(--step-1); margin-bottom: .4em; }
.blurb p { color: var(--ink-soft); flex: 1; }
.blurb .btn { margin-top: .6rem; }
/* Carly portrait */
.portrait { position: relative; margin: 2rem 0 0; width: min(320px, 80%); }
.portrait img { width: 100%; height: auto; border-radius: 160px 160px 28px 28px; border: 6px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.portrait::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 170px 170px 34px 34px; border: 2px solid var(--green-bright); opacity: .5; z-index: -1; }
.portrait { isolation: isolate; }
.bg-soft .blurb .icon-badge { background: var(--card); }
