/* ============================================================
   Vertex Academy — homepage styles
   Brand: blue #1f6dd6 / gold #f5a623, with playful accents and
   bolder shapes for energy. Fredoka (display) + Plus Jakarta Sans.
   ------------------------------------------------------------
   Token note: the semantic-by-colour names below kept their roles
   from the old teal/green identity but now hold the blue+gold
   values, so every existing usage rebrands automatically. The new
   --blue/--gold/--accent names are the canonical names going forward
   (and are what placement.html references).
   ============================================================ */
:root {
  /* canonical blue + gold system */
  --blue: #1f6dd6;
  --blue-deep: #1856ad;
  --blue-bright: #2b7af0;
  --blue-ink: #14346b;
  --gold: #f5a623;
  --gold-deep: #ef9510;
  --gold-bright: #fbb938;
  --blue-soft: #eaf2fd;
  --gold-soft: #fdf3e0;
  --cream: #fbf8f1;

  /* playful accents — per-topic bars, kid delight (use sparingly) */
  --accent-green: #3bb55a;
  --accent-teal: #19b3b3;
  --pink: #ec5a9e;
  --purple: #8b5cf6;
  --red: #e5453d;

  /* legacy role names, remapped to the new palette so usages flow */
  --teal: #1f6dd6;         /* primary, buttons, .hl */
  --teal-deep: #14346b;    /* darkest, dark panels */
  --teal-700: #1856ad;     /* primary hover */
  --green: #1856ad;        /* eyebrows, secondary text, ticks → blue-deep (gold is booking only) */
  --green-bright: #f5a623; /* secondary highlight → gold */
  --lime: #fbb938;         /* .swoosh underline */
  --mint: #eaf2fd;         /* tinted section bg / ::selection */
  --lightgreen: #fdf3e0;   /* tinted section bg */
  --sun: #f5a623;          /* stars / highlights */
  --sun-soft: #fdf3e0;
  --white: #FFFFFF;
  --ink: #1d2433;
  --muted: #5b6478;
  --muted-2: #8a93a6;
  --border: #e4e9f2;
  --border-soft: #eef2f8;

  --font-head: "Fredoka", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --shadow-xs: 0 1px 2px rgba(20,52,107,0.05);
  --shadow-sm: 0 2px 8px rgba(20,52,107,0.06), 0 1px 2px rgba(20,52,107,0.04);
  --shadow-md: 0 18px 44px -20px rgba(20,52,107,0.35);
  --shadow-lg: 0 30px 60px -24px rgba(20,52,107,0.34);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 40px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
/* Links inside body copy. The reset above strips link styling on purpose, so
   that nav items, buttons and cards can look like what they are. The cost is
   that a link sitting inside a paragraph becomes indistinguishable from the
   text around it, which fails WCAG 1.4.1: colour alone is not enough, and here
   there is not even colour. Scoped two ways so nothing existing moves:
     - to prose containers inside .section, which excludes the footer and nav.
       320 of the 342 classless links on this site are footer nav lists, and
       underlining those would be wrong; only about 22 are real prose links.
     - to links carrying no class of their own, so every .btn, .franchise-link,
       .lk, .pcard and friend is untouched. */
.section p a:not([class]),
.section li a:not([class]),
.section h3 a:not([class]) { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.section p a:not([class]):hover,
.section li a:not([class]):hover,
.section h3 a:not([class]):hover { color: var(--blue-deep); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--mint); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
/* clip (not hidden) so the sticky nav keeps working — no element may widen the page */
body { overflow-x: clip; }
.narrow { max-width: 880px; }

/* ---------- shared section bits ---------- */
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 80px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.eyebrow .star { width: 15px; height: 15px; color: var(--sun); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .section-head h1 { font-size: clamp(32px, 4.4vw, 46px); }
.section-head h2 .hl, .section-head h1 .hl { color: var(--teal); position: relative; white-space: nowrap; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }
.section-head.center p { margin-inline: auto; }

.bg-mint { background: var(--mint); }
.bg-light { background: var(--lightgreen); }
.bg-paper { background: var(--white); }

/* underline swoosh on highlighted words */
.swoosh { background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 32%; padding: 0 2px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
/* Long translated labels (Indonesian "Apa yang kami lakukan dan tidak lakukan", 16 Oct 2026) overflowed a
   320px phone; on narrow screens a button may wrap rather than push the page sideways. */
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 24px -12px rgba(31,109,214,0.7); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(31,109,214,0.7); }
.btn-primary:active { transform: translateY(0); }
/* Booking CTA. Brand gold is reserved for "Book a free assessment" (owner's
   rule, 16 Nov 2026: two colours for the page, one accent for the main CTA),
   so it is keyed on the link target rather than a new class that would need a
   sweep of every header and generator. Navy text: white on --gold is 2.0:1,
   --blue-ink on --gold is 6.0:1 and on --gold-deep (hover) 5.2:1. */
.btn-primary[href$="#assessment"], #assessSubmit { background: var(--gold); color: var(--blue-ink); box-shadow: 0 12px 24px -12px rgba(245,166,35,0.7); }
.btn-primary[href$="#assessment"]:hover, #assessSubmit:hover { background: var(--gold-deep); box-shadow: 0 16px 30px -12px rgba(245,166,35,0.7); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.franchise-link { color: rgba(255,255,255,0.85); font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; align-self: center; }
.franchise-link:hover { color: var(--gold-bright); }
.franchise-link[href$="#assessment"] { color: var(--gold); }
/* Same job as .franchise-link but for LIGHT sections: that one is white-on-dark
   and disappears in the hero. Sits in a .hero-actions flex row beside buttons,
   hence align-self. */
.hero-alt-link { color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; align-self: center; }
.hero-alt-link:hover { color: var(--blue-deep); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-sm { padding: 11px 20px; font-size: 15px; }

/* ---------- nav ---------- */
/* Two-row header. Sticky top is minus the utility-strip height, so the strip
   scrolls away with the page and only the main row stays pinned. */
.nav { position: sticky; top: -38px; z-index: 100; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.nav-top { background: var(--blue-ink); }
.nav-top-inner { display: flex; align-items: center; justify-content: flex-end; gap: 20px; height: 38px; }
.nav-top a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 500; font-size: 13px; transition: color .18s var(--ease), background .18s var(--ease); }
.nav-top-mail { margin-right: auto; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,0.62); }
.nav-top-mail:hover { color: #fff; }
.nav-top-link { color: rgba(255,255,255,0.85); }
.nav-top-link:hover { color: var(--gold-bright); }
.nav-top-portal { background: #fff; color: var(--blue-ink); border-radius: 999px; padding: 5px 14px 5px 12px; font-weight: 600; }
.nav-top-portal:hover { background: var(--gold-bright); }
.nav.scrolled { box-shadow: 0 8px 30px -18px rgba(20,52,107,0.4); border-bottom-color: var(--border-soft); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.logo-text .a { color: var(--blue); } .logo-text .b { color: var(--gold-deep); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 22px); margin-inline: auto; }
/* Secondary destinations: kept out of the desktop bar to reduce crowding,
   restored in the mobile menu (and always present in the footer). */
.nav-links a.nav-2nd { display: none; }
.nav-links a.nav-mobile-only { display: none; }   /* utility-strip links, shown in the drawer ≤640px only */
.nav-links a { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; position: relative; transition: color .18s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 2.5px; width: 0; background: var(--green); border-radius: 2px; transition: width .22s var(--ease); }
.nav-links a:hover { color: var(--teal); } .nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--teal); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- grouped primary nav ---------- */
/* Four grouped items replaced the flat link row in Sep 2026. That row sat
   exactly on its arithmetic ceiling (README invariant 26 / public-site.md):
   six links was the limit of the 1144px content column, and a seventh pushed
   .nav-cta outside it with `overflow-x: clip` hiding the damage. Grouping
   retires the constraint instead of rationing against it, and it lets every
   programme carry a sentence at the point where the choice is actually made.

   The panels are CSS-only, on hover and :focus-within, DELIBERATELY. Three
   different script contexts serve these pages — hub.js, site.js, and the
   inline NAV_SCRIPT that curriculum-scraper/generate_seo_pages.py emits — and
   no shared behaviour reaches all three. Focusing the trigger opens the panel,
   which makes its links focusable, so the keyboard path works with no JS at
   all. Do not "improve" this into a click handler without adding the script to
   all three.

   .nav-panel resolves its absolute position against .nav (sticky is a
   positioned ancestor), NOT against .nav-group, which is why the panel spans
   the full header width while sitting inside one nav item. */
.nav-group { display: flex; align-items: center; }
.nav-group-t { display: inline-flex; align-items: center; gap: 6px; }
.nav-chev { flex-shrink: 0; transition: transform .2s var(--ease); }
.nav-group:hover .nav-chev, .nav-group:focus-within .nav-chev { transform: rotate(180deg); }
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border-soft); box-shadow: 0 28px 50px -30px rgba(20,52,107,0.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.nav-group:hover > .nav-panel, .nav-group:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel-in { display: flex; gap: 26px; padding-block: 26px 30px; align-items: stretch; }
.nav-pcols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nav-pcols.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-links .nav-panel a { white-space: normal; }
.nav-links .nav-panel a::after { display: none; }
.nav-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; transition: border-color .18s var(--ease), background .18s var(--ease); }
.nav-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.nav-links .nav-panel a.nav-card { color: var(--ink); }
.nav-card b { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--blue-ink); }
.nav-card span { font-family: var(--font-body); font-weight: 400; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.nav-tag { font-family: var(--font-body); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--gold-soft); color: #8a5a00; margin-top: auto; }
.nav-tag.off { background: #eef1f6; color: var(--muted); }
.nav-tag.on { background: var(--blue-soft); color: var(--blue-deep); }
.nav-list { flex: 1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; align-content: start; }
.nav-links .nav-panel .nav-list a { display: block; padding: 9px 11px; border-radius: 9px; font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--ink); }
.nav-links .nav-panel .nav-list a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav-promo { width: 290px; flex-shrink: 0; background: var(--blue-ink); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.nav-promo .k { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-bright); }
.nav-promo h3 { font-size: 19px; color: #fff; }
.nav-promo p { font-size: 13.5px; line-height: 1.6; color: #b9cdea; flex-grow: 1; }
.nav-links .nav-panel a.nav-promo-cta { display: block; text-align: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 11px; }
.nav-links .nav-panel a.nav-promo-cta:hover { background: var(--blue-deep); }
.nav-links .nav-panel a.nav-promo-cta[href$="#assessment"] { background: var(--gold); color: var(--blue-ink); }
.nav-links .nav-panel a.nav-promo-cta[href$="#assessment"]:hover { background: var(--gold-bright); }
/* Learn: four columns of free resources (maths, science, tools, practice). */
.nav-panel-in.nav-learn { display: grid; grid-template-columns: 1.55fr 1.1fr 1.1fr 1fr; gap: 30px; }
.nav-links .nav-panel a.nav-lh2 { margin-top: 10px; }
.nav-lcol { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nav-links .nav-panel a.nav-lh { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--blue-ink); padding: 0 0 4px; }
.nav-links .nav-panel a.nav-lh:hover { color: var(--blue); }
.nav-ls { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nav-chips.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-chips.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-links .nav-panel .nav-chips a { display: block; text-align: center; white-space: nowrap; padding: 8px 4px; border: 1px solid var(--border); border-radius: 9px; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink); }
.nav-links .nav-panel .nav-chips a:hover, .nav-links .nav-panel .nav-chips a[aria-current] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.nav-tools { list-style: none; display: grid; gap: 1px; }
.nav-links .nav-panel .nav-tools a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-inline: -10px; border-radius: 9px; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink); }
.nav-links .nav-panel .nav-tools a:hover, .nav-links .nav-panel .nav-tools a[aria-current] { background: var(--blue-soft); color: var(--blue-deep); }
.nav-tools svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--blue); }
/* A quiet fifth item: the placement test is self-serve and costs no staff
   time, so it earns header space, but it is not the primary action. */
.nav-links a.nav-quiet { color: var(--blue-deep); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, var(--mint) 0%, rgba(225,245,238,0) 55%), #fff; }
.hero-blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; z-index: 0; filter: blur(0.5px); }
.hero-blob.b1 { width: 520px; height: 520px; right: -150px; top: -120px; background: var(--blue-soft); opacity: .8; transform: rotate(12deg); }
.hero-blob.b2 { width: 240px; height: 240px; left: -90px; bottom: 30px; background: var(--mint); opacity: .7; border-radius: 50%; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 8px 16px 8px 10px; border-radius: 999px; margin-bottom: 24px; }
.hero-tag .pill { background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); line-height: 1.02; }
.hero h1 .hl { color: var(--teal); }
.hero-sub { font-size: 20px; color: var(--muted); max-width: 540px; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stars { display: flex; align-items: center; gap: 3px; color: var(--sun); }
.hero-stars svg { width: 18px; height: 18px; }
.hero-trust .rt { font-size: 14.5px; color: var(--muted); } .hero-trust .rt b { color: var(--ink); font-family: var(--font-head); }

/* hero card cluster */
.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; position: relative; z-index: 2; }
.hero-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-h h3, .hero-card-h h2 { font-size: 18px; }
.chip { font-family: var(--font-head); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.chip-green { background: var(--lightgreen); color: var(--green); }
.chip-mint { background: var(--mint); color: var(--teal); }
.chip-sun { background: var(--sun-soft); color: #876100; }
.hc-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.hc-row:last-child { border-bottom: 0; }
.hc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.hc-row .nm { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.hc-row .mt { font-size: 12.5px; color: var(--muted); }
.hc-row .badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--blue-deep); }
.hero-float { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 13px 16px; z-index: 3; display: flex; align-items: center; gap: 11px; }
.hero-float .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.hero-float.f1 { top: -22px; left: -26px; }
.hero-float.f2 { bottom: -24px; right: -18px; }
.hero-float .t1 { font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.1; }
.hero-float .t2 { font-size: 12px; color: var(--muted); }

/* ---------- value strip ---------- */
.values { background: var(--teal); color: #fff; }
.values .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 22px; }
.value { display: flex; align-items: center; gap: 13px; padding: 14px 8px; }
.value .vi { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,0.14); display: grid; place-items: center; flex-shrink: 0; }
.value .vi svg { width: 22px; height: 22px; color: var(--lime); }
.value h4, .value h3 { color: #fff; font-size: 15.5px; line-height: 1.2; }
.value p { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 2px; }
.value + .value { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 22px; }

/* ---------- study hubs ---------- */
.hubs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.hub { border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hub:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hub::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; opacity: .5; }
.hub.maths::after { background: var(--mint); } .hub.english::after { background: var(--sun-soft); }
.hub-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.hub.maths .hub-ic { background: var(--teal); color: #fff; } .hub.english .hub-ic { background: var(--sun); color: #4a3500; }
.hub h3 { font-size: 26px; position: relative; z-index: 1; }
.hub .yrs { display: inline-block; margin: 10px 0 14px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--green); background: var(--lightgreen); padding: 4px 12px; border-radius: 999px; position: relative; z-index: 1; }
.hub p { color: var(--muted); font-size: 15.5px; position: relative; z-index: 1; max-width: 90%; }
.hub ul { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.hub li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); }
.hub li svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.hub .btn { position: relative; z-index: 1; }
/* English "Coming soon" hub card + waitlist capture */
.hub h3 .tag-soon { font-size: 12px; vertical-align: middle; margin-left: 10px; }
.waitlist-form { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.waitlist-form input[type="email"] { flex: 1 1 190px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font: inherit; font-size: 15px; background: #fff; }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-msg { flex-basis: 100%; margin: 2px 0 0; font-size: 13.5px; min-height: 18px; }

/* ---------- the method (steps) ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.method-grid::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px); z-index: 0; }
.mstep { position: relative; }
.mstep > * { position: relative; }
.mnum { width: 68px; height: 68px; border-radius: 22px; background: #fff; border: 2px solid var(--mint); color: var(--teal); font-family: var(--font-head); font-weight: 700; font-size: 26px; display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.mstep:nth-child(2) .mnum { border-color: var(--lightgreen); }
.mstep:nth-child(3) .mnum { border-color: var(--sun-soft); }
.mstep h3 { font-size: 19px; margin-bottom: 9px; }
.mstep p { color: var(--muted); font-size: 15px; }

/* ---------- membership pricing ---------- */
.pricing { background: var(--teal-deep); color: #fff; position: relative; overflow: hidden; }
.pricing::before { content: ""; position: absolute; top: -140px; right: -100px; width: 420px; height: 420px; border-radius: 50%; background: rgba(245,166,35,0.16); }
.pricing .section-head h2, .pricing .section-head h1 { color: #fff; }
.pricing .section-head p { color: rgba(255,255,255,0.78); }
.pricing .eyebrow { color: var(--lime); }
/* What every tier includes. Sits on the dark pricing band, so the ticks are
   gold and the text is near-white: the old version was 13.5px muted grey on
   dark blue, which is the one place on this site contrast had actually failed. */
.incl { position: relative; z-index: 1; margin: 22px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.incl-lab { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-bright); }
.incl-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 900px; }
.incl-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255,255,255,0.92); }
.incl-list svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold-bright); }
.incl-terms { font-size: 13.5px; color: rgba(255,255,255,0.68); margin: 0; text-align: center; }

.price-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: stretch; position: relative; z-index: 1; }
.price-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 40px; position: relative; box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: 24px; right: 24px; background: var(--sun); color: #4a3500; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 999px; letter-spacing: .03em; }
.price-card .plan { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.price-amt { display: flex; align-items: flex-start; gap: 4px; margin: 16px 0 4px; }
.price-amt .cur { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--teal); margin-top: 8px; }
.price-amt .num { font-family: var(--font-head); font-weight: 800; font-size: 76px; line-height: .9; letter-spacing: -0.04em; color: var(--teal); }
.price-amt .per { align-self: flex-end; font-size: 17px; color: var(--muted); margin-bottom: 12px; }
.price-card .note { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.tier-rows { margin: 6px 0 20px; }
.tier-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; font-size: 14.5px; }
.tier-row + .tier-row { border-top: 1px solid var(--border); }
.tier-row b { font-family: var(--font-head); font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-card li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.price-card li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.price-aside { display: flex; flex-direction: column; gap: 18px; }
.price-mini { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r); padding: 24px; }
.price-mini h4, .price-mini h3, .price-mini h2 { color: #fff; font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.price-mini h4 svg, .price-mini h3 svg, .price-mini h2 svg { width: 20px; height: 20px; color: var(--lime); }
.price-mini p { font-size: 14.5px; color: rgba(255,255,255,0.78); }

/* ---------- NZ Curriculum badge ---------- */
.nzc-badge { display: inline-flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px 8px 10px; box-shadow: var(--shadow-xs); }
.nzc-badge .nzc-mark { width: 30px; height: 30px; flex: none; }
.nzc-badge .nzc-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.nzc-badge .nzc-txt b { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nzc-badge .nzc-txt span { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.nzc-seal { width: 88px; height: 88px; margin: 0 auto 20px; display: block; }

/* ---------- member benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit .bi { width: 50px; height: 50px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.benefit:nth-child(3n+2) .bi { background: var(--lightgreen); color: var(--green); }
.benefit:nth-child(3n) .bi { background: var(--sun-soft); color: #946a00; }
.benefit h3 { font-size: 18px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14.5px; }

/* ---------- find a centre ---------- */
/* Single centre (Avondale) — a centered card, not a 3-column grid with two empty slots */
.centres-grid { display: grid; grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 18px; }
.centre { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; gap: 15px; align-items: flex-start; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.centre:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.centre .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--mint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.centre.soon { opacity: .72; }
.centre .nm { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.centre .nm .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.tag-open { background: var(--lightgreen); color: var(--green); }
.tag-soon { background: var(--sun-soft); color: #876100; }
.centre .ad { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.centre .lk { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--teal); margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- reviews ---------- */
.reviews { background: var(--mint); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .rs { display: flex; gap: 2px; color: var(--sun); margin-bottom: 14px; }
.review .rs svg { width: 18px; height: 18px; }
.review .qt { font-size: 15.5px; color: var(--ink); line-height: 1.6; flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.review .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; }
.review .nm { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; }
.review .ro { font-size: 13px; color: var(--muted); }
.reviews-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.gbadge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow-xs); font-size: 14.5px; }
.gbadge b { font-family: var(--font-head); }
.gbadge .stars { color: var(--sun); display: inline-flex; gap: 1px; } .gbadge .stars svg { width: 16px; height: 16px; }

/* ---------- bring a buddy ---------- */
.buddy { position: relative; overflow: hidden; }
.buddy-card { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-bright) 100%); border-radius: var(--r-xl); padding: 56px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center; }
.buddy-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.buddy-card::after { content: ""; position: absolute; left: 30%; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.buddy-card .eyebrow { color: rgba(255,255,255,0.85); position: relative; z-index: 1; }
.buddy-card .eyebrow .star { color: var(--sun); }
.buddy-card h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); position: relative; z-index: 1; }
.buddy-card p { color: rgba(255,255,255,0.9); font-size: 17px; margin-top: 14px; position: relative; z-index: 1; max-width: 90%; }
.buddy-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.buddy-actions .big { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; }
.buddy-actions .sm { font-size: 14px; color: rgba(255,255,255,0.85); }

/* ---------- resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.res { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .22s var(--ease); display: flex; flex-direction: column; }
.res:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.res .rtop { height: 132px; display: grid; place-items: center; position: relative; }
.res:nth-child(1) .rtop { background: var(--mint); } .res:nth-child(2) .rtop { background: var(--lightgreen); } .res:nth-child(3) .rtop { background: var(--sun-soft); } .res:nth-child(4) .rtop { background: var(--mint); }
.res .rtop svg { width: 46px; height: 46px; color: var(--teal); }
.res:nth-child(3) .rtop svg { color: #946a00; }
.res .rbody { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.res .rk { font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 8px; }
.res h3 { font-size: 18px; margin-bottom: 8px; }
.res p { color: var(--muted); font-size: 14px; flex: 1; }
.res .lk { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--teal); margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- app promo ---------- */
.app { background: var(--lightgreen); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.app h2 { font-size: clamp(30px, 4vw, 42px); }
.app p { color: var(--muted); font-size: 17px; margin: 16px 0 26px; max-width: 460px; }
.app ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.app li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; }
.app li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 20px; transition: transform .18s var(--ease); }
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn .s1 { font-size: 11px; opacity: .8; line-height: 1; } .store-btn .s2 { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.1; }
.phone-mock { position: relative; justify-self: center; }
.phone { width: 280px; height: 560px; background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 3; }
.ph-head { background: var(--teal); color: #fff; padding: 40px 20px 20px; }
.ph-head .h1 { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.ph-head .h2 { font-size: 12.5px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.ph-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; background: #f6faf8; }
.ph-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; padding: 13px; }
.ph-card .l1 { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; }
.ph-card .l2 { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ph-card .mini { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ph-cta { margin-top: auto; background: var(--blue); color: #fff; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 13px; border-radius: 14px; }

/* ---------- assessment form ---------- */
.assess { position: relative; }
.assess-card { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.assess-top { background: var(--teal); color: #fff; padding: 30px 40px; }
.assess-top h3 { color: #fff; font-size: 22px; }
.assess-top p { color: rgba(255,255,255,0.82); font-size: 14.5px; margin-top: 4px; }
.steps-ind { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.steps-ind .si { display: flex; align-items: center; gap: 8px; }
.steps-ind .dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; transition: .2s var(--ease); }
.steps-ind .si.active .dot { background: var(--sun); color: #4a3500; }
.steps-ind .si.done .dot { background: var(--lime); color: var(--teal-deep); }
.steps-ind .lbl { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.steps-ind .bar { width: 28px; height: 2px; background: rgba(255,255,255,0.22); }
.assess-body { padding: 36px 40px 40px; }
.fstep { display: none; }
.fstep.active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }   /* grid items default to min-width:auto — long <select> options would force the card past the viewport */
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); width: 100%; min-width: 0; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,109,214,0.16); }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field .err { font-size: 12.5px; color: #c0392b; display: none; }
.field.invalid .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; font-size: 14.5px; font-weight: 500; transition: .16s var(--ease); user-select: none; }
.choice:hover { border-color: var(--teal); }
.choice input { accent-color: var(--teal); width: 17px; height: 17px; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--mint); color: var(--teal); }
.assess-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 12px; }
.assess-actions .spacer { flex: 1; }
.assess-success { display: none; text-align: center; padding: 20px 10px 10px; }
.assess-success.show { display: block; animation: fadeUp .4s var(--ease); }
.assess-success .ring { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin: 0 auto 20px; }
.assess-success h3 { font-size: 24px; color: var(--teal); margin-bottom: 10px; }
.assess-success p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto 22px; }
.form-error-banner { display: none; margin-top: 16px; padding: 12px 15px; border-radius: 10px; background: #fdecea; color: #a32b1f; font-size: 14px; border: 1px solid #f4c9c2; }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s var(--ease); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--mint); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.faq-q .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; transition: .25s var(--ease); }
.faq-item.open .faq-q .ic { background: var(--teal); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- franchise CTA ---------- */
.franchise .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; background: var(--teal-deep); border-radius: var(--r-xl); padding: 56px; color: #fff; position: relative; overflow: hidden; }
.franchise .wrap::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(245,166,35,0.16); }
.franchise .eyebrow { color: var(--lime); position: relative; z-index: 1; }
.franchise h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); position: relative; z-index: 1; }
.franchise p { color: rgba(255,255,255,0.82); font-size: 17px; margin-top: 14px; position: relative; z-index: 1; }
.franchise .fr-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
/* The mailto buttons above are a no-op for visitors with no mail handler,
   so the address is always on the page to read and copy. */
.franchise .fr-email { margin: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.8); }
.franchise .fr-email span { color: #fff; font-weight: 600; user-select: all; -webkit-user-select: all; }
.fr-stats { display: flex; gap: 28px; }
.fr-stats .b { font-family: var(--font-head); font-weight: 800; font-size: 32px; } .fr-stats .s { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ---------- footer ---------- */
.footer { background: var(--teal-deep); color: rgba(255,255,255,0.78); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 8px; }
/* The year-band links used to exist only in the footer of the 17 generated
   curriculum pages, which is where they were least needed. As one strip they
   reach every page without taking a whole column. */
.footer-years { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-years > span { font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.footer-years a { font-size: 14.5px; color: rgba(255,255,255,0.74); transition: color .18s var(--ease); }
.footer-years a:hover { color: #fff; }
.footer .logo-text .a, .footer .logo-text .b { color: #fff; } .footer .logo-text .b { color: var(--lime); }
.footer-tag { margin-top: 16px; font-size: 15px; max-width: 300px; line-height: 1.65; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background .18s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
/* h2 belongs here. The hub and NCEA pages use <h2> in the footer so the
   document outline does not skip a level, and the generator's docstring said
   "the CSS covers both" — it did not. On those seven pages the column headings
   rendered at 24px in --ink, dark on the dark blue footer, for as long as the
   h2 variant has existed. */
.footer-col h4, .footer-col h3, .footer-col h2 { color: #fff; font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col address { font-size: 14.5px; color: rgba(255,255,255,0.74); font-style: normal; line-height: 1.6; transition: color .18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.13); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.6); }

/* ---------- home: the three routes ---------- */
/* Replaces the four-item value strip. The strip asserted things about Vertex;
   this asks the reader which of three problems they arrived with, which is the
   question the six programme cards below were making them answer unaided. */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.route-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.route-ic svg { width: 24px; height: 24px; color: #fff; }
.route h3 { font-size: 24px; color: var(--blue-ink); }
.route p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.route .go { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--blue-deep); }
.route.r-blue { background: #f7fafe; border-color: #e0eafa; }
.route.r-blue .route-ic { background: var(--blue); }
.route.r-sky { background: var(--blue-soft); border-color: #d5e4f8; }
.route.r-sky .route-ic { background: var(--blue-deep); }
.route.r-ink { background: #f6f5ef; border-color: #e6e1d3; }
.route.r-ink .route-ic { background: var(--blue-ink); }

/* ---------- home: the dated band ---------- */
/* An entry deadline is the one fact on this page with an expiry, so it gets a
   band of its own above the programme grid rather than a chip inside a card. */
.dband { background: var(--blue-ink); color: #fff; }
.dband .wrap { display: flex; align-items: center; gap: 36px; padding-block: 44px; }
.dband-date { width: 78px; height: 78px; flex-shrink: 0; border-radius: 20px; background: var(--gold); color: var(--blue-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dband-date b { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1; }
.dband-date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dband-copy { flex: 1; }
.dband h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.dband p { color: #b9cdea; font-size: 16px; margin-top: 8px; }

/* ---------- home: the centre ---------- */
.centre .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.centre h2 { color: var(--blue-ink); font-size: clamp(28px, 3.6vw, 38px); }
.centre p { color: #3d4759; font-size: 16px; margin-top: 16px; }
.centre-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.centre-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cstat { background: #fff; border-radius: var(--r); padding: 24px; }
.cstat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--blue); }
.cstat.navy b { color: var(--blue-ink); }
.cstat span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.anim-ready .reveal { opacity: 0; transform: translateY(30px); }
html.anim-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.anim-ready .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
/* nav collapses earlier than the content grids to avoid tablet overflow —
   raised to 1160px when links became single-line (white-space: nowrap) */
@media (max-width: 1160px) {
  .nav-links { display: none; }
  /* 44px minimum touch target. The bars are 24x19.5px, so the padding is
     doing the work; measured 40x36 before this. */
  .nav-toggle { display: block; padding: 12px 10px; min-width: 44px; min-height: 44px; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px 22px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border);
    /* Longer menus are taller than a 667px screen — must scroll themselves. */
    max-height: calc(100dvh - 76px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-links.open a { padding: 11px 0; width: 100%; font-size: 17px; } .nav-links.open a::after { display: none; }
  .nav-links.open a.nav-2nd { display: block; }   /* secondary items reappear in the mobile menu */
  /* Groups unfold in place in the drawer rather than collapsing behind an
     accordion. An accordion would need a click handler, and the three script
     contexts that serve these pages do not share one — see the note by
     .nav-group. The drawer already scrolls itself (max-height above), so the
     cost is length, and the gain is that every destination is reachable with
     no JS beyond the hamburger each page already carries. */
  .nav-links.open .nav-group { display: block; width: 100%; }
  /* In the drawer the trigger is a section heading, not a peer of the links
     under it, so it takes the heading colour rather than .nav-links' muted. */
  .nav-links.open .nav-group-t { border-bottom: 1px solid var(--border-soft); color: var(--blue-ink); font-size: 19px; padding-bottom: 9px; }
  .nav-links.open .nav-chev, .nav-links.open .nav-promo { display: none; }
  .nav-links.open .nav-panel { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border-top: 0; box-shadow: none; }
  .nav-links.open .nav-panel-in { flex-direction: column; gap: 8px; padding: 6px 0 14px; max-width: none; }
  .nav-links.open .nav-pcols, .nav-links.open .nav-pcols.n2, .nav-links.open .nav-list { grid-template-columns: 1fr; gap: 6px; }
  .nav-links.open .nav-panel a { font-size: 15px; }
  .nav-links.open .nav-panel .nav-list a { padding: 10px 11px; }
  .nav-links.open .nav-card { padding: 13px 14px; gap: 4px; }
  .nav-links.open .nav-card b { font-size: 15.5px; }
  .nav-links.open .nav-card span { font-size: 13px; }
  .nav-links.open .nav-panel-in.nav-learn { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 30px; }
  .nav-links.open .nav-panel a.nav-lh { width: auto; padding: 0 0 2px; font-size: 16px; }
  .nav-links.open .nav-panel .nav-chips a { width: auto; padding: 9px 2px; font-size: 14px; }
  .nav-links.open .nav-panel .nav-tools a { width: auto; padding: 9px 10px; }
}
@media (max-width: 1024px) {
  /* Five footer columns are too tight here: the brand takes its own row. */
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 460px; }
  .values .wrap { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-left: 0; padding-left: 8px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid::before { display: none; }
  .benefits-grid, .review-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .price-wrap, .app-grid, .buddy-card, .franchise .wrap, .pricing .price-wrap { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr 1fr; }
  .centre .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .hubs-grid, .benefits-grid, .review-grid, .res-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .values .wrap { grid-template-columns: 1fr 1fr; gap: 6px; padding-block: 16px; }
  .value { padding: 12px 6px; } .value + .value { border-left: 0; padding-left: 6px; }
  /* This element is both the .wrap and the card, so its padding cannot also
     serve as the page gutter — give it a real outside margin instead. */
  .buddy-card, .franchise .wrap { padding: 36px 26px; width: auto; margin-inline: 18px; }
  .price-card, .hub, .assess-body, .assess-top { padding-left: 24px; padding-right: 24px; }
  .fgrid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-float.f1 { left: 0; } .hero-float.f2 { right: 0; }
  .routes { grid-template-columns: 1fr; }
  .dband .wrap { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 36px; }
  .centre-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Utility strip: email only — Find a Centre / Parent Portal live in the hamburger here */
  /* Scoped through .nav-top for (0,2,0) — the bare selectors lost to
     `.nav-top a { display: inline-flex }` at (0,1,1) and never hid. */
  .nav-top .nav-top-link, .nav-top .nav-top-portal { display: none; }
  /* nowrap keeps the underline decoration on one line on desktop, but clips
     the heading off the side of a phone. Let it wrap here. */
  .section-head h2 .hl, .section-head h1 .hl { white-space: normal; }
  .nav-links.open a.nav-mobile-only { display: block; }
  /* Denser collapsed FAQ rows (~30% tighter), tap targets stay ≥44px */
  .faq-q { padding: 15px 18px; min-height: 44px; font-size: 15.5px; }
  .faq-a-inner { padding: 0 18px 17px; }
  .faq-list { gap: 9px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* The one-line 22px wordmark overflowed the header at 375px (452px wide,
     which put #navToggle off screen), so it used to be hidden here. The owner
     wants the name visible on phones (4 Oct 2026), so it is kept, stacked on
     two lines at 17px (15px under 360px), with a smaller mark, a tighter button
     and less gap. Measured to fit at 320px. Scoped to .nav so the footer
     wordmark is untouched. */
  .nav-inner { gap: 10px; }
  .nav .logo { gap: 7px; }
  .nav .logo svg { width: 34px; height: auto; }
  .nav .logo-text { display: flex; flex-direction: column; font-size: 17px; line-height: 1.02; letter-spacing: -0.01em; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn-sm { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 359px) {
  .nav .logo-text { font-size: 15px; }
  .price-amt .num { font-size: 60px; }
  .steps-ind .lbl { display: none; }
}

/* ---- Sticky mobile CTA (homepage) ---- */
/* Fixed booking bar on phones only; the section CTAs cover desktop. */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    padding: 15px 18px;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(31, 109, 214, 0.38);
    text-decoration: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .sticky-cta:active { background: var(--blue-hover, #1856ad); }
  /* Slides away while the assessment form itself is on screen (site.js observer) */
  .sticky-cta.cta-hidden { transform: translateY(calc(100% + 14px)); opacity: 0; pointer-events: none; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ============================================================
   Hub homepage + programme pages (One academy, six ways to grow)
   The root page is a programme hub; each programme (tutoring,
   olympiads, eduventures, university tours) gets its own page.
   ============================================================ */
/* ---------- full-bleed place band ---------- */
/* Photography of a PLACE. A stock photograph can honestly be a place, which is
   why this component exists separately from .ocard: a stock photograph cannot
   honestly be a Vertex student. Both bands on the site are Auckland, on the two
   pages that sell Auckland, and both were checked against the actual city
   before use. A Pexels search for "Auckland harbour bridge" returns Sydney. */
.pband { position: relative; height: 380px; overflow: hidden; }
.pband img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pband-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 0 28px; background: linear-gradient(to top, rgba(12,34,72,0.88), rgba(12,34,72,0)); }
.pband-cap b { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 3vw, 30px); color: #fff; }
.pband-cap span { display: block; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.86); margin-top: 7px; max-width: 640px; }

/* ---------- photo programme cards ---------- */
/* For pages that have real photography of the thing they describe. Vertex owns
   24 photographs of its own students at these events, in assets/nextgen/gallery
   and assets/infomatrix/gallery, and until now used them on two pages only.
   Never use a stock photograph here: a picture in this component reads as a
   picture of Vertex students. */
.ocards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ocard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ocard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.ocard-img { aspect-ratio: 16 / 10; background: var(--blue-soft); overflow: hidden; }
.ocard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ocard h3 { font-size: 26px; color: var(--blue-ink); }
.ocard p { color: var(--muted); font-size: 15.5px; line-height: 1.65; flex: 1; margin: 0; }
.ocard-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ocard-go { font-family: var(--font-head); font-weight: 600; color: var(--blue-deep); font-size: 15px; }
.ocard.paused { background: #fbfbfc; }
.ocard.paused h3 { color: var(--muted-2); }
.ocard.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 0; }
.ocard.wide .ocard-body { padding: 28px 32px; }

/* Three across, so all six programmes land in two rows the eye can compare,
   rather than three rows the reader has to hold in memory. */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 30px 26px; border-radius: var(--r-lg); border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard.pc-blue { background: var(--blue-soft); }
.pcard.pc-cream { background: var(--cream); border-color: var(--border-soft); }
.pcard.pc-plain { background: #fff; border-color: var(--border); }
.pcard-kicker { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-xs); color: var(--blue); }
.pcard h3 { font-size: 23px; margin: 2px 0 0; }
.pcard > p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; flex: 1; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-plain { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.pcard-arrow { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: var(--shadow-xs); transition: transform .18s ease; }
.pcard:hover .pcard-arrow { transform: translate(2px, -2px); }

/* compact hero used by programme pages */
.prog-hero { padding: 84px 0 64px; background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); }
.prog-hero .prog-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; margin-bottom: 18px; }
.prog-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; max-width: 760px; }
.prog-hero .sub { font-size: 18.5px; color: var(--muted); max-width: 640px; margin-top: 18px; line-height: 1.7; }
.prog-hero .prog-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.prog-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* key-dates timeline on olympiad pages */
.tl { max-width: 780px; margin: 0 auto; }
.tl-row { display: flex; gap: 22px; padding: 18px 4px; border-bottom: 1px dashed var(--border); align-items: baseline; }
.tl-row:last-child { border-bottom: 0; }
.tl-date { min-width: 170px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: 16px; }
.tl-body b { display: block; font-size: 16px; }
.tl-body p { color: var(--muted); font-size: 14.5px; margin-top: 3px; line-height: 1.6; }

/* interest form (programme pages) — reuses .assess-card/.fgrid/.field */
.interest-note { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 560px; margin: 18px auto 0; }

/* Programme paused notice — shown when a programme is not running for a season
   (GENIUS 2026–27: Australasian round cancelled by the organisers, 25 Aug 2026).
   Gold-tinted rather than red: this is a change of plan, not an error state. */
.prog-notice { display: flex; gap: 12px; align-items: flex-start; max-width: 620px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #f2ddb6; }
.prog-notice > svg { flex: none; margin-top: 3px; color: var(--gold-deep); }
.prog-notice b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.prog-notice p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--muted); }
.prog-notice.center { margin: 0 auto 26px; }
/* Two fixes that belong on the component, not on a call site.
   The link: on the study pages this is the register of licensed immigration
   advisers, which is the statutory safe harbour, so it has to look like a
   link wherever the notice sits. Inside .prog-hero it was inheriting the
   muted paragraph colour with no underline, which left the one link that
   matters most indistinguishable from body text.
   The gap: .prog-notice p has margin 0, so two paragraphs ran together with
   no separation at all. */
.prog-notice a { color: var(--blue); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; }
.prog-notice p + p { margin-top: 10px; }
.chip-off { background: #eef0f5; color: var(--muted); border: 1px solid var(--border); }
.prog-success { display: none; text-align: center; padding: 26px 10px 6px; }
.prog-success.show { display: block; }
.prog-success .ring { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; }

@media (max-width: 1100px) {
  .pcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ocards { grid-template-columns: 1fr; }
  .ocard.wide { flex-direction: column; align-items: stretch; }
  .pband { height: 280px; }
  .pband-cap { padding: 54px 0 22px; }
}
@media (max-width: 860px) {
  .pcards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pcard { padding: 24px 22px 22px; }
  .tl-row { flex-direction: column; gap: 4px; }
  .prog-hero { padding: 64px 0 48px; }
}

/* Skip link — the two-row sticky header plus a long nav means a keyboard user
   otherwise tabs through the whole chrome on every page. Visually hidden until
   focused (never display:none, which would take it out of the tab order and
   defeat the point). Targets #top, the <main> on every public page. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   Shared programme-page furniture — used by all three olympiad
   pages. The scenes themselves live in the .ngo-* / .imx-* /
   .gen-* blocks below; this is the artwork panel, the floating
   caption chips, the season stat strip and the medal row.
   ============================================================ */
.prog-hero.has-art { overflow: hidden; }
.prog-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.prog-art { position: relative; }
.prog-art > svg { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* caption chips floating over the artwork (same idiom as .hero-float) */
.prog-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-md); padding: 11px 15px; animation: prog-bob 5.5s ease-in-out infinite; }
.prog-float .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.prog-float .t1 { font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.15; }
.prog-float .t2 { font-size: 11.5px; color: var(--muted); }
.prog-float.a { top: 5%; left: -22px; }
.prog-float.b { top: 35%; right: -34px; animation-delay: -1.8s; }
.prog-float.c { bottom: 6%; left: 6%; animation-delay: -3.6s; }

@keyframes prog-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes prog-shine { 0% { transform: translateX(-150%); } 55%, 100% { transform: translateX(200%); } }

/* season stat strip */
/* auto-fit, not repeat(4): the GENIUS row dropped to three stats when its
   acceptance-rate claim was removed, and a hard four left an empty cell. This
   adapts to however many a page carries. */
.prog-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; max-width: 940px; margin: 0 auto; }
.prog-stat { text-align: center; padding: 4px 10px; }
.prog-stat + .prog-stat { border-left: 1px solid var(--border); }
.prog-stat b { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1; color: var(--blue); }
.prog-stat span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* gold/silver/bronze medal row (markup is inline SVG on the page) */
.prog-medals { display: flex; justify-content: center; align-items: flex-end; gap: 24px; margin-top: 30px; }
.prog-medal .gloss { transform-box: fill-box; animation: prog-shine 4.6s ease-in-out infinite; }
.prog-medal.m2 .gloss { animation-delay: .5s; }
.prog-medal.m3 .gloss { animation-delay: 1s; }
.prog-medal-note { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 560px; margin: 14px auto 0; }

@media (max-width: 1080px) {
  .prog-float.a { left: -8px; }
  .prog-float.b { right: -12px; }
}
@media (max-width: 900px) {
  .prog-hero-grid { grid-template-columns: 1fr; gap: 46px; }
  /* width:100% is load-bearing — auto margins on a grid item switch off
     stretch, which would leave the SVG at its 300px intrinsic default. */
  .prog-art { width: 100%; max-width: 520px; margin: 0 auto; }
  .prog-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .prog-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 700px) {
  .prog-float.a { left: 0; }
  .prog-float.b { right: 0; }
  .prog-float.c { left: 4%; }
  .prog-float .t2 { display: none; }
  .prog-medals { gap: 16px; }
}
@media (max-width: 560px) {
  .prog-stats { grid-template-columns: 1fr; }
  .prog-stat + .prog-stat { border-left: 0; border-top: 1px solid var(--border); padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-float, .prog-medal .gloss { animation: none !important; }
}

/* ============================================================
   NextGen Olympiad page (pages/olympiad-nextgen.html)
   Animated Sydney-harbour scene, division badges, subject cards
   and medals. Artwork is hand-built SVG in the Vertex blue+gold
   palette with ONE exception: the Cooee and Bunji koalas in the
   divisions section are Next Education's own mascots, used with
   their permission (confirmed 14 Aug 2026). They are the only
   third-party asset on the site — if that permission is ever
   withdrawn, delete .ngo-koala, .ngo-credit, the two <img> tags
   and assets/nextgen/, and nothing else breaks.
   Every animation in this block is switched off at the foot of
   it under prefers-reduced-motion.
   ============================================================ */
@keyframes ngo-spin { to { transform: rotate(360deg); } }
@keyframes ngo-twinkle { 0%, 100% { opacity: .25; transform: scale(.65); } 50% { opacity: 1; transform: scale(1); } }
@keyframes ngo-wave { to { transform: translateX(120px); } }
@keyframes ngo-koala-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ngo-fly { 0% { offset-distance: 0%; opacity: 0; } 7% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ngo-bubble { 0% { transform: translateY(2px); opacity: 0; } 25% { opacity: .95; } 100% { transform: translateY(-15px); opacity: 0; } }
@keyframes ngo-shine { 0% { transform: translateX(-150%); } 55%, 100% { transform: translateX(200%); } }

.ngo-rays { transform-origin: 300px 300px; animation: ngo-spin 90s linear infinite; }
.ngo-wave { animation: ngo-wave 7s linear infinite; }
.ngo-wave.w2 { animation-duration: 9.5s; }
.ngo-wave.w3 { animation-duration: 12s; }
.ngo-star { transform-box: fill-box; transform-origin: center; animation: ngo-twinkle 3.4s ease-in-out infinite; }
.ngo-star.s2 { animation-delay: -1.1s; }
.ngo-star.s3 { animation-delay: -2.2s; }
.ngo-star.s4 { animation-delay: -.6s; }
.ngo-star.s5 { animation-delay: -1.7s; }

/* The plane rides the dashed flight path. Without offset-path support it
   simply parks at the Auckland end, which still reads correctly. */
.ngo-plane { transform-box: fill-box; transform-origin: 50% 50%; transform: translate(468px, 98px); }
@supports (offset-path: path("M 0 0 L 1 1")) {
  .ngo-plane {
    transform: none;
    offset-path: path("M468 98 C416 56 328 62 286 130");
    offset-rotate: auto; offset-distance: 0%;
    animation: ngo-fly 11s ease-in-out infinite;
  }
}

/* divisions + subjects */
.ngo-divs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.ngo-div { position: relative; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 30px 26px 26px; }
.ngo-div::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.ngo-div.senior::before { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.ngo-div > svg { display: block; margin: 2px auto 14px; }
/* Division mascots. Fixed HEIGHT rather than width so the two koalas stand on
   the same baseline — their aspect ratios differ slightly, so matching widths
   would leave one floating above the other. */
.ngo-koala { display: block; height: 230px; width: auto; margin: -6px auto 10px;
  animation: ngo-koala-float 4.6s ease-in-out infinite; }
.ngo-div.senior .ngo-koala { animation-delay: .9s; }
.ngo-credit { text-align: center; color: var(--muted-2, var(--muted)); font-size: 12.5px;
  margin: 14px auto 0; max-width: 900px; }
.ngo-div h3 { font-size: 21px; margin: 0; }
.ngo-div .chip { margin: 10px 0 12px; }
.ngo-div p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* Two cards since English is not offered to NZ entrants (confirmed 7 Sep 2026);
   auto-fit keeps the row centred if a third subject is ever added back. */
.ngo-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 620px; margin: 22px auto 0; }
.ngo-subj-note { text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.6;
                 max-width: 620px; margin: 16px auto 0; }
.ngo-subj { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 24px 20px; }
.ngo-subj .si { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; }
.ngo-skoala { display: block; height: 128px; width: auto; margin: -4px auto 10px; }
.ngo-subj h3 { font-size: 17px; margin: 0 0 6px; }
.ngo-subj p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.ngo-bubble { transform-box: fill-box; animation: ngo-bubble 2.6s ease-in infinite; }
.ngo-bubble.b2 { animation-delay: .85s; }
.ngo-bubble.b3 { animation-delay: 1.7s; }

/* the Sydney week */
.ngo-week { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.ngo-wcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px 26px; }
.ngo-wcard .day { display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 5px 12px; }
.ngo-wcard.optional .day { color: var(--gold-deep); background: var(--gold-soft); }
.ngo-wcard h3 { font-size: 20px; margin: 12px 0 4px; }
.ngo-wcard ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ngo-wcard li { position: relative; padding-left: 24px; margin-top: 9px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.ngo-wcard li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
/* organiser's 2027 banner above the two cards, and a mascot pose tucked into
   the top corner of each card */
.ngo-gr-banner { max-width: 900px; margin: 0 auto 60px; }
.ngo-gr-banner img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ngo-wcard { position: relative; }
.ngo-wkoala { position: absolute; top: -48px; right: 10px; width: 150px; height: auto; pointer-events: none; }
.ngo-wcard h3, .ngo-wcard .day { max-width: calc(100% - 150px); }
@media (max-width: 560px) {
  .ngo-wkoala { width: 92px; top: -26px; right: 8px; }
  .ngo-wcard h3, .ngo-wcard .day { max-width: calc(100% - 84px); }
}

/* Certificate thresholds (Gold 90 / Silver 70 / Bronze 50). Ribbon colours are
   literal metal, not brand tokens — that is the whole point of the row. */
.ngo-medals { display: block; width: 100%; max-width: 420px; height: auto; margin: 26px auto 0; }
.ngo-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px auto 0; }
.ngo-cert { min-width: 150px; text-align: center; background: #fff; border: 1px solid var(--border);
            border-top: 4px solid currentColor; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
            padding: 16px 20px; }
.ngo-cert b { display: block; font-family: var(--font-head); font-size: 18px; color: currentColor; }
.ngo-cert span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ngo-cert.gold { color: #b8860b; }
.ngo-cert.silver { color: #6b7a8d; }
.ngo-cert.bronze { color: #a2662f; }

/* Registering, step by step. Five steps, so this is a vertical list rather
   than another .method-grid: that grid is hard-wired to four columns and is
   already used by "How Vertex helps" further down the page. Two identical
   numbered grids would read as the same section twice.

   The section exists because entry moved off this site on 21 Sep 2026.
   Families now leave for the organiser's platform, and every step they take
   there is a step we cannot see or fix, so the ones that go wrong quietly
   (the grade band, and picking English) are called out before they click. */
.ngo-reg { max-width: 720px; margin: 0 auto; counter-reset: ngoreg; }
.ngo-rstep { position: relative; padding: 0 0 26px 62px; counter-increment: ngoreg; }
.ngo-rstep::before { content: counter(ngoreg); position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--blue); background: #fff; border: 2px solid var(--blue-soft); }
/* The rail stops at the last step rather than running past it. */
.ngo-rstep:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px;
  bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px); }
.ngo-rstep h3 { font-size: 18px; margin: 8px 0 6px; }
.ngo-rstep p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.ngo-rstep p + p { margin-top: 8px; }
.ngo-rstep code { font-size: 14.5px; background: var(--blue-soft); color: var(--blue);
  border-radius: 6px; padding: 2px 7px; font-weight: 600; }
/* Warning steps: the band cannot be changed after entry, and the English paper
   is sold by the organiser but not offered to NZ entrants. Both are mistakes a
   parent makes in one click and cannot undo, so they get a visible flag. */
.ngo-rstep.warn h3::after { content: "Easy to get wrong"; margin-left: 10px; vertical-align: 2px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-deep); background: var(--gold-soft);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.ngo-reg-cta { max-width: 720px; margin: 6px auto 0; padding: 22px 26px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ngo-reg-cta p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 12px 0 0; }

/* ---------- Click-to-load video ----------
   Behaviour lives in assets/js/video-embed.js, which hooks any [data-yt].
   The curriculum pages carry their own near-identical .cur-video rules inline;
   this is the shared copy for everything else, sized as a feature embed rather
   than a thumbnail in a grid. */
.vx-video { position: relative; display: block; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--blue-soft);
  box-shadow: var(--shadow-md); cursor: pointer; }
.vx-video img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; }
.vx-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.vx-video:hover img { transform: scale(1.03); }
.vx-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vx-video-play span { width: 76px; height: 76px; border-radius: 999px; padding-left: 5px;
  background: rgba(43,122,240,.94); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(20,52,107,.40); transition: transform .25s ease, background .25s ease; }
.vx-video:hover .vx-video-play span,
.vx-video:focus-visible .vx-video-play span { transform: scale(1.08); background: rgba(24,86,173,.96); }
.vx-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px;
  background: linear-gradient(to top, rgba(20,52,107,.90), rgba(20,52,107,0));
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; }
.vx-video-cap em { display: block; font-style: normal; font-weight: 500;
  opacity: .85; font-size: 13px; margin-top: 3px; }
/* Study in New Zealand photography (scripts/build-study-nz.py). A wide banner
   under each study page's hero, a three-photo strip on the landing page, and
   the home page band that leads into the section. The photos are generated and
   generic on purpose; see the PHOTO_ALT comment in the generator. */
.snz-banner-wrap { margin-top: -28px; margin-bottom: 36px; position: relative; z-index: 1; }
.snz-banner { aspect-ratio: 16 / 5; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--blue-soft); }
.snz-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snz-photos { padding: 8px 0 72px; }
.snz-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.snz-mosaic figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); background: var(--blue-soft); }
.snz-mosaic figure:first-child { aspect-ratio: auto; }
.snz-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease; }
.snz-mosaic figure:hover img { transform: scale(1.04); }
.snz-mosaic figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 16px;
  border-radius: 999px; background: rgba(255,255,255,.94); color: var(--blue-ink);
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; }
.snz-band { position: relative; overflow: hidden; color: #fff; padding: 96px 0;
  background: #14346b url(/assets/study-nz/web/pin.jpg) center / cover no-repeat; }
.snz-band::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,52,107,.92) 0%, rgba(20,52,107,.72) 50%, rgba(20,52,107,.25) 100%); }
.snz-band .wrap { position: relative; }
.snz-band-copy { max-width: 620px; }
.snz-band .eyebrow { color: var(--gold-bright); }
.snz-band h2 { color: #fff; margin: 10px 0 16px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; }
.snz-band p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.6; }
.snz-band-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.snz-band-note { margin-top: 18px; font-size: 13px; opacity: .7; }
.snz-band-langs { margin-top: 16px; font-size: 15px !important; }
.snz-band-langs a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .snz-banner { aspect-ratio: 16 / 8; }
  .snz-banner-wrap { margin-top: -12px; }
  .snz-mosaic { grid-template-columns: 1fr 1fr; gap: 12px; }
  .snz-mosaic figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .snz-mosaic figcaption { font-size: 14px; left: 10px; bottom: 10px; padding: 6px 12px; }
  .snz-band { padding: 64px 0; }
}
.ngo-video-note { max-width: 860px; margin: 14px auto 0; text-align: center;
  color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- Photo grid + lightbox (assets/js/gallery.js) ---------- */
.vx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; max-width: 1060px; margin: 0 auto; }
.vx-gtile { position: relative; display: block; padding: 0; border: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); cursor: pointer;
  background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.vx-gtile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease; }
.vx-gtile:hover img, .vx-gtile:focus-visible img { transform: scale(1.06); }
.vx-gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px;
  background: linear-gradient(to top, rgba(20,52,107,.88), rgba(20,52,107,0));
  color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.vx-gtile:hover .vx-gcap, .vx-gtile:focus-visible .vx-gcap { opacity: 1; transform: none; }

body.vx-lb-open { position: fixed; left: 0; right: 0; overflow: hidden; }
.vx-lightbox { display: none; position: fixed; inset: 0; z-index: 200;
  /* Opaque, not rgba(). At .94 the sticky nav read straight through, and
     even at .97 Chromium composited far more of the page than 3% through
     the fixed-body overlay. A photo viewer should be a dark room. */
  background: #0a1630; align-items: center; justify-content: center; padding: 56px 20px; }
.vx-lightbox.on { display: flex; }
.vx-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex;
  flex-direction: column; align-items: center; gap: 12px; }
.vx-lb-figure img { max-width: 100%; max-height: calc(100vh - 150px);
  border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vx-lb-figure figcaption { color: #fff; font-size: 14.5px; text-align: center;
  max-width: 62ch; opacity: .92; }
.vx-lb-close, .vx-lb-nav { position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14); border-radius: 999px; line-height: 1;
  transition: background .2s ease; }
.vx-lb-close:hover, .vx-lb-nav:hover,
.vx-lb-close:focus-visible, .vx-lb-nav:focus-visible { background: rgba(255,255,255,.3); }
.vx-lb-close { top: 16px; right: 18px; width: 42px; height: 42px; font-size: 17px; }
.vx-lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  font-size: 30px; padding-bottom: 5px; }
.vx-lb-nav.prev { left: 14px; }
.vx-lb-nav.next { right: 14px; }

@media (max-width: 700px) {
  .ngo-divs, .ngo-week, .ngo-subjects { grid-template-columns: 1fr; }
  .vx-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  /* No hover on a touch screen, so the caption has to be there already. */
  .vx-gcap { opacity: 1; transform: none; font-size: 11.5px; padding: 24px 9px 8px; }
  .vx-lightbox { padding: 64px 10px; }
  /* Centred arrows would sit on top of the photo, which is nearly edge to
     edge here. Pin them to the bottom corners instead: out of the picture
     and inside thumb reach. Swipe works too, see gallery.js. */
  .vx-lightbox { padding-bottom: 76px; }
  .vx-lb-nav { width: 44px; height: 44px; font-size: 26px; top: auto;
    bottom: 16px; transform: none; }
  .vx-lb-nav.prev { left: 16px; }
  .vx-lb-nav.next { right: 16px; }
  .vx-video-play span { width: 60px; height: 60px; }
  .vx-video-cap { font-size: 14px; padding: 40px 14px 12px; }
  .ngo-rstep { padding-left: 52px; }
  .ngo-rstep::before { width: 36px; height: 36px; font-size: 15px; }
  .ngo-rstep:not(:last-child)::after { left: 17px; top: 38px; }
  /* The pill would wrap the heading onto three lines on a phone. */
  .ngo-rstep.warn h3::after { display: block; margin: 6px 0 0; width: fit-content; }
}
@media (prefers-reduced-motion: reduce) {
  .ngo-rays, .ngo-wave, .ngo-star, .ngo-plane, .ngo-bubble, .ngo-koala { animation: none !important; }
}

/* ============================================================
   Infomatrix page (pages/olympiad-infomatrix.html)
   A dark "arena" scene — hex mesh, circuit pulses feeding an AI
   chip, and a line-follower robot lapping its track — plus the
   nine-category board and the season stat strip. The panel is
   deliberately dark where NextGen's is sky: one is a tech
   competition, the other a summer olympiad, and the heroes
   should not read as the same page twice. Same rules as above:
   hand-built SVG, no third-party assets, all motion off under
   prefers-reduced-motion.
   ============================================================ */
@keyframes imx-pulse { to { stroke-dashoffset: -356; } }
@keyframes imx-ring { 0% { transform: scale(.55); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes imx-lap { to { offset-distance: 100%; } }
@keyframes imx-caret { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } }
@keyframes imx-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.imx-pulse { stroke-dasharray: 16 340; animation: imx-pulse 3.6s linear infinite; }
.imx-pulse.p2 { animation-duration: 4.6s; animation-delay: -1.4s; }
.imx-pulse.p3 { animation-duration: 5.4s; animation-delay: -2.6s; }
.imx-pulse.p4 { animation-duration: 4.1s; animation-delay: -3.3s; }
.imx-ring { transform-box: fill-box; transform-origin: center; animation: imx-ring 3.4s ease-out infinite; }
.imx-caret { animation: imx-caret 1.1s steps(1, end) infinite; }
.imx-led { animation: imx-blink 2.2s ease-in-out infinite; }
.imx-led.l2 { animation-delay: -.7s; }
.imx-led.l3 { animation-delay: -1.4s; }

/* the robot laps the track upright — offset-rotate:0deg, because the
   arena is drawn in perspective and a tangent-following bot would roll
   onto its roof at the far side of the oval. */
/* the lap starts at the right of the oval, not the left: at 0% — which is
   where it parks under reduced motion — the left side is behind a chip. */
.imx-bot { transform-box: fill-box; transform-origin: 50% 50%; transform: translate(380px, 344px); }
@supports (offset-path: path("M 0 0 L 1 1")) {
  .imx-bot {
    transform: none;
    offset-path: path("M380 344a120 30 0 1 0 -240 0a120 30 0 1 0 240 0");
    offset-rotate: 0deg; offset-distance: 0%;
    animation: imx-lap 9s linear infinite;
  }
}

/* the nine categories */
.imx-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.imx-cat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 24px; }
.imx-cat-h { display: flex; align-items: center; gap: 12px; }
.imx-cat-h .ci { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.imx-cat-h h3 { font-size: 19px; margin: 0; }
.imx-cat-h .n { margin-left: auto; font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--muted-2); }
.imx-cat > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 12px 0 16px; }
.imx-cat ul { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--border); }
.imx-cat li { display: flex; gap: 11px; padding: 12px 2px; border-bottom: 1px dashed var(--border); }
.imx-cat li:last-child { border-bottom: 0; padding-bottom: 0; }
.imx-cat li .num { font-family: var(--font-head); font-weight: 600; font-size: 11.5px; color: var(--blue); background: var(--blue-soft); border-radius: 7px; padding: 3px 7px; height: fit-content; flex: none; }
.imx-cat li b { display: block; font-size: 14.5px; font-weight: 600; }
/* direct child only — the .imx-flag pill lives inside the <b> and must not
   pick up the description's display:block */
.imx-cat li div > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 3px; }
.imx-flag { display: inline-block; margin-left: 7px; font-family: var(--font-head); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-deep); background: var(--gold-soft); border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
.imx-cat-note { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 620px; margin: 26px auto 0; }

@media (max-width: 900px) {
  .imx-cats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .imx-pulse, .imx-ring, .imx-caret, .imx-led, .imx-bot { animation: none !important; }
}

/* ============================================================
   GENIUS Olympiad page (pages/olympiad-genius.html)
   A turning globe with a sapling on it, discipline badges in
   orbit. Green-tinted where NextGen is sky and Infomatrix is
   navy — it is an environmental competition and the accent
   earns its place here. Same rules: hand-built SVG, no
   third-party assets, all motion off under reduced-motion.
   ============================================================ */
@keyframes gen-turn { to { transform: translateX(-320px); } }
@keyframes gen-sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes gen-orbit { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gen-rays { to { transform: rotate(360deg); } }
@keyframes gen-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: .95; } }

.gen-land { animation: gen-turn 26s linear infinite; }
.gen-plant { transform-box: fill-box; transform-origin: 50% 100%; animation: gen-sway 5.2s ease-in-out infinite; }
.gen-sun { transform-origin: 432px 88px; animation: gen-rays 70s linear infinite; }
.gen-badge { transform-box: fill-box; transform-origin: center; animation: gen-orbit 5.4s ease-in-out infinite; }
.gen-badge.d2 { animation-delay: -1.1s; }
.gen-badge.d3 { animation-delay: -2.2s; }
.gen-badge.d4 { animation-delay: -3.3s; }
.gen-badge.d5 { animation-delay: -4.2s; }
.gen-spark { animation: gen-twinkle 3.2s ease-in-out infinite; }
.gen-spark.s2 { animation-delay: -1.3s; }
.gen-spark.s3 { animation-delay: -2.4s; }

/* the nine disciplines */
.gen-disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gen-disc { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 24px 22px; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.gen-disc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gen-disc .di { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.gen-disc h3 { font-size: 17.5px; margin: 0 0 7px; }
.gen-disc p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.gen-disc .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--border); }
.gen-disc .meta span { font-family: var(--font-head); font-weight: 600; font-size: 11px; color: var(--muted); background: var(--cream); border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px 9px; }

/* awards */
.gen-awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.gen-award { position: relative; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 22px; }
.gen-award::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.gen-award.silver::before { background: linear-gradient(90deg, #a9b8cd, #cbd6e6); }
.gen-award.bronze::before { background: linear-gradient(90deg, #b87b3f, #d99a5b); }
.gen-award h3 { font-size: 19px; margin: 4px 0 2px; }
.gen-award .place { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.gen-award p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.gen-specials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.gen-special { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-xs); padding: 9px 16px 9px 12px; font-size: 14px; }
.gen-special svg { color: var(--gold-deep); flex: none; }

@media (max-width: 900px) {
  .gen-disciplines { grid-template-columns: repeat(2, 1fr); }
  .gen-awards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gen-disciplines { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gen-land, .gen-plant, .gen-sun, .gen-badge, .gen-spark { animation: none !important; }
}

/* ============================================================
   EduVentures page (pages/eduventures.html)
   An itinerary map of Aotearoa — coastline, route, dropped pins,
   a ferry and drifting cloud. A map rather than another scene,
   because the product is a planned multi-stop trip and no other
   programme page should look like this one.
   The coastline is a simplified real coastline: an equirectangular
   projection of ~45 points per island, with longitude scaled by
   cos(41°) so the country is not stretched sideways. Regenerate
   rather than nudge the path by hand if it ever needs changing.
   ============================================================ */
@keyframes ev-drift { from { transform: translateX(-90px); } to { transform: translateX(560px); } }
@keyframes ev-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ev-ring { 0% { transform: scale(.5); opacity: .65; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ev-travel { 0% { offset-distance: 0%; } 45%, 55% { offset-distance: 100%; } 100% { offset-distance: 0%; } }

.ev-cloud { animation: ev-drift 46s linear infinite; }
.ev-cloud.c2 { animation-duration: 64s; animation-delay: -22s; }
.ev-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: ev-bob 4.4s ease-in-out infinite; }
.ev-pin.p2 { animation-delay: -1.1s; }
.ev-pin.p3 { animation-delay: -2.2s; }
.ev-pin.p4 { animation-delay: -3.3s; }
.ev-ring { transform-box: fill-box; transform-origin: center; animation: ev-ring 3s ease-out infinite; }
.ev-boat { transform-box: fill-box; transform-origin: 50% 100%; animation: ev-bob 3.2s ease-in-out infinite; }

/* the third chip sits bottom-right here, over open ocean — bottom-left is
   Southland and Stewart Island, and lopping those off is exactly the detail
   a New Zealand reader notices. */
.ev-art .prog-float.c { bottom: 9%; left: auto; right: -20px; }

.ev-dot { transform-box: fill-box; transform-origin: 50% 50%; transform: translate(270px, 62px); }
@supports (offset-path: path("M 0 0 L 1 1")) {
  .ev-dot {
    transform: none;
    offset-path: path("M269.8 62.3Q272 86 283 103.4Q288 122 289.9 140.3Q301 141 312.4 137.1");
    offset-rotate: 0deg; offset-distance: 0%;
    animation: ev-travel 12s ease-in-out infinite;
  }
}

/* destinations */
.ev-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-place { display: flex; gap: 15px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 22px 20px; }
.ev-place .pi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #e8f6ec; color: #2f9c4c; }
.ev-place h3 { font-size: 16.5px; margin: 0 0 5px; }
.ev-place p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }
.ev-place .far { display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }

/* what a package covers */
.ev-includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.ev-include { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow-xs); }
.ev-include .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); margin-top: 1px; }
.ev-include b { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.ev-include span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 4px; }
.ev-includes-note { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 620px; margin: 26px auto 0; }

@media (max-width: 900px) {
  .ev-places, .ev-includes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ev-places, .ev-includes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-cloud, .ev-pin, .ev-ring, .ev-boat, .ev-dot { animation: none !important; }
}

/* ============================================================
   University Tours page (pages/university-tours.html)
   A campus quad in late-afternoon light — clock tower with moving
   hands, fluttering banners, a coach pulling in and students on
   the path. Warm gold sky, so it doesn't read as the NextGen
   panel; the clock is the point, since the product is a day.
   ============================================================ */
@keyframes ut-hand { to { transform: rotate(360deg); } }
@keyframes ut-drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes ut-flag { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.93); } }
@keyframes ut-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ut-toss { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-13px) rotate(9deg); } }

.ut-min { transform-box: fill-box; transform-origin: 50% 100%; animation: ut-hand 14s linear infinite; }
.ut-hr { transform-box: fill-box; transform-origin: 50% 100%; animation: ut-hand 168s linear infinite; }
/* The coach drives on an offset-path, the same construction as the moving
   pieces on the other programme pages. offset-distance defaults to 60% so it
   still sits on screen when the animation is off (reduced motion) rather than
   parked off-panel left, which is the failure mode of animating a plain
   translate from off-canvas. */
.ut-coach { transform: translate(300px, 372px); }
@supports (offset-path: path("M 0 0 L 1 1")) {
  .ut-coach {
    transform: none; transform-box: fill-box; transform-origin: 50% 50%;
    offset-path: path("M-150 372H670"); offset-rotate: 0deg; offset-distance: 60%;
    animation: ut-drive 24s linear infinite;
  }
}
.ut-flag { transform-box: fill-box; transform-origin: 0 50%; animation: ut-flag 3.6s ease-in-out infinite; }
.ut-flag.f2 { animation-delay: -1.2s; }
.ut-walk { transform-box: fill-box; transform-origin: 50% 100%; animation: ut-step 1.9s ease-in-out infinite; }
.ut-walk.w2 { animation-delay: -.6s; }
.ut-walk.w3 { animation-delay: -1.2s; }
.ut-cap { transform-box: fill-box; transform-origin: 50% 50%; animation: ut-toss 4.6s ease-in-out infinite; }

/* the campuses */
.ut-campuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.ut-campus { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px 24px 24px; }
.ut-campus::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.ut-campus.c2::before { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.ut-campus.c3::before { background: linear-gradient(90deg, #2f9c4c, #57c46f); }
.ut-campus h3 { font-size: 19px; margin: 0 0 3px; }
.ut-campus .where { display: block; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.ut-campus p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.ut-campus-note { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 640px; margin: 26px auto 0; }

/* questions worth asking */
.ut-asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 26px; max-width: 880px; margin: 0 auto; }
.ut-ask { display: flex; gap: 14px; align-items: flex-start; }
.ut-ask .q { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--blue); background: var(--blue-soft); border-radius: 9px; padding: 5px 10px; flex: none; }
.ut-ask b { display: block; font-size: 15.5px; }
.ut-ask span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 3px; }

@media (max-width: 900px) {
  .ut-campuses { grid-template-columns: 1fr; }
  .ut-asks { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ut-min, .ut-hr, .ut-coach, .ut-flag, .ut-walk, .ut-cap { animation: none !important; }
}

/* ============================================================
   Tutoring page (pages/tutoring.html) — Study Hub desk scene
   above the existing hero card. The card converts, so it stays
   exactly as it was; this sits above it. A parabola draws itself
   on the open book, the lamp breathes and the tea steams.
   Shorter panel (520x300) than the programme heroes because it
   shares the column with the card.
   ============================================================ */
@keyframes tut-draw { 0% { stroke-dashoffset: 170; } 40%, 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 170; } }
@keyframes tut-glow { 0%, 100% { opacity: .16; } 50% { opacity: .34; } }
@keyframes tut-steam { 0% { transform: translateY(4px); opacity: 0; } 25% { opacity: .55; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes tut-nib { 0%, 100% { transform: translate(0, 0); } 40%, 78% { transform: translate(3px, -2px); } }

.tut-art { position: relative; margin-bottom: 18px; }
.tut-art > svg { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-md); }
.tut-curve { stroke-dasharray: 170; animation: tut-draw 8s ease-in-out infinite; }
.tut-glow { animation: tut-glow 5s ease-in-out infinite; }
.tut-steam { transform-box: fill-box; animation: tut-steam 3.4s ease-in infinite; }
.tut-steam.s2 { animation-delay: 1.1s; }
.tut-steam.s3 { animation-delay: 2.2s; }
.tut-pencil { animation: tut-nib 8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .tut-curve, .tut-glow, .tut-steam, .tut-pencil { animation: none !important; }
  .tut-curve { stroke-dashoffset: 0; }
}

/* IPP3 collection notice under every form that takes personal details
   (audit round 5, 15 Oct 2026). flex-basis lets it sit under the
   single-row English waitlist form. The doubled class outranks card rules
   such as `.hub p` without !important. */
p.privacy-note.privacy-note { flex-basis: 100%; margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: left; overflow-wrap: anywhere; }
p.privacy-note.privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
