/* ═══════════════════════════════════════════════════════════
   ML4Schools — redesign layer (Safety / Learning split)
   Loaded after tokens.css and base.css on the redesigned pages:
   index, safety, learning, about and the curriculum-connections
   guide. Carries the shared chrome (nav, buttons, footer) that the
   older pages still declare inline, plus the new section components.
   Palette comes from /tokens.css. Do not add a :root block here.
   ═══════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ── Shell ────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 32px; position: relative; }
section { position: relative; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 8px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.on-petrol .btn-outline { color: #fff; border-color: var(--on-petrol); }
.on-petrol .btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-primary  { background: var(--primary-strong); color: #fff; border-color: var(--primary-strong); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline  { background: transparent; color: var(--primary-dark); border-color: var(--primary-strong); }
.btn-outline:hover { border-color: var(--primary-dark); background: rgba(0,164,166,.08); }
.btn-white    { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-white:hover { background: var(--bg); border-color: var(--bg); }
.btn-sm { font-size: 12.5px; padding: 10px 18px; }
.text-link {
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: var(--primary-dark); text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.on-petrol .text-link { color: var(--primary-light); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* ── Nav (petrol, as live) ────────────────────────────────── */
#main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,49,51,.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 64px; display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 0 32px; display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em; color: #fff; text-decoration: none; flex-shrink: 0;
}
/* No trailing space after the chevron: the link is inline-flex (base.css), so a
   space here would render as a gap on any page that changes the display mode. */
.nav-logo::before { content: '❯'; color: var(--primary-light); font-weight: 700; }
.nav-logo .accent { color: var(--primary-light); }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 32px; }
.nav-link {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px;
  color: rgba(255,255,255,.72); text-decoration: none;
  padding: 8px 14px; border-radius: 6px; border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.nav-link.active { color: var(--primary-light); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
/* The two product pages lead the row; a hairline separates them from the rest. */
.nav-sep { width: 1px; height: 18px; background: rgba(255,255,255,.28); margin: 0 6px; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#main-nav .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
#main-nav .btn-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; height: 2px; width: 20px; background: #fff; border-radius: 1px; }
#mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 12px 20px 18px; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
#mobile-menu .nav-link {
  display: block; padding: 10px 14px; font-size: 12.5px;
  min-width: 220px; text-align: center;
}
#mobile-menu .btn {
  width: auto; min-width: 220px; max-width: 100%;
  padding: 10px 22px; font-size: 12.5px;
}
#mobile-menu .btn-primary { margin-top: 10px; }
@media (min-width: 761px) {
  #mobile-menu {
    left: auto; right: max(32px, calc((100% - 1200px) / 2 + 32px));
    top: 72px; width: 248px;
    align-items: stretch; gap: 6px; padding: 8px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
  }
  #mobile-menu .nav-link { display: none; }
  #mobile-menu .btn { width: 100%; min-width: 0; }
  #mobile-menu .btn-primary { margin-top: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Type ─────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark);
}
.display {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.045em;
}
.h2 {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1; letter-spacing: -.045em;
}
.h2-sm {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.035em;
}
.h3 {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: 32px; line-height: 1.12; letter-spacing: -.03em;
}
.title {
  font-family: 'Public Sans', sans-serif; font-weight: 800;
  font-size: 20px; line-height: 1.3; letter-spacing: -.02em;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--text-subtle); }
.body { font-size: 16px; line-height: 1.6; color: var(--text-subtle); }
.meta { font-family: var(--mono); font-weight: 500; font-size: 12.5px; line-height: 1.6; color: var(--text-subtle); }
.meta-accent { color: var(--primary-dark); }
.measure { max-width: 60ch; }

/* ── Bands ────────────────────────────────────────────────── */
.band { padding: 96px 0; }
.band-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
}
.band-tight { padding: 64px 0; }
.on-petrol { background: var(--navy); color: #fff; }
.on-petrol-deep { background: var(--navy-deep); color: #fff; }
.on-petrol .eyebrow, .on-petrol-deep .eyebrow { color: var(--primary-light); }
.on-petrol .lead, .on-petrol .body, .on-petrol-deep .lead, .on-petrol-deep .body { color: rgba(255,255,255,.78); }
.on-petrol .meta, .on-petrol-deep .meta { color: rgba(255,255,255,.78); }

/* A section opener: heading block on the left, a short aside on the right. */
.split-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
  margin-bottom: 56px;
}
.split-head > .head { max-width: 800px; display: flex; flex-direction: column; gap: 18px; }
.split-head > .aside { max-width: 400px; flex-shrink: 0; }

/* Label on the left, ruled list on the right. */
.side-list { display: flex; gap: 80px; align-items: flex-start; }
.side-list > .side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.side-list > .list { flex: 1; min-width: 0; border-top: 1px solid var(--rule); }
.row { display: flex; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border-strong); }
.row-rule { border-bottom-color: var(--rule); }
.row > .key { width: 170px; flex-shrink: 0; }
.row > .grow { flex: 1; min-width: 0; }
.row > .end { flex-shrink: 0; text-align: right; }
.num { font-family: 'Public Sans', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: var(--primary-strong); }

/* Three or two equal columns, each opened by a teal top rule. */
.cols { display: grid; gap: 48px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.col { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 3px solid var(--primary-strong); }
.cols-2 .col { padding-bottom: 12px; }

/* ── Page hero ────────────────────────────────────────────── */
.hero { padding: 72px 0; }
.hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero-head > .head { max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.hero-head > .aside { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-stage { margin-top: 48px; }

/* ── Homepage: centred hero, two page cards ───────────────── */
.hero-centre {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.hero-centre .lead { max-width: 760px; font-size: 20px; }
.hero-centre .cta-row { justify-content: center; padding-top: 6px; }
.page-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.page-card { display: flex; flex-direction: column; overflow: hidden; }
.page-card > .visual { height: 300px; width: 100%; border-bottom: 1px solid var(--border-strong); }
.page-card > img.visual { object-fit: cover; object-position: 50% 14%; }
/* Illustrated covers are drawn on the band tone, so they sit whole inside the frame. */
.page-card > img.visual.art { object-fit: contain; object-position: center; background: var(--bg-alt); padding: 12px 0; }
.page-card > div.visual { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg-alt); }
.page-card > .inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 36px 36px; }
.mini-notice {
  display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 440px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
}
.mini-notice .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.also-here {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding: 24px 0 96px; border-top: 1px solid var(--rule);
}
.also-here a {
  font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.also-here a:hover { color: var(--primary-dark); }

/* Compact homepage: the hero, the film and both "Explore" buttons fit one tall screen. */
.hero-compact { padding: 40px 0 48px; }
.hero-compact .display { font-size: clamp(34px, 3.8vw, 56px); }
.hero-compact .hero-centre .lead { font-size: 18px; }
.hero-compact .hero-stage { margin-top: 32px; }
/* The film keeps 16:9; on the homepage it matches the width of the lead above it. */
.hero-compact .video { width: min(760px, 100%); margin-left: auto; margin-right: auto; padding: 24px 28px; gap: 16px; }
.hero-compact .video .play { width: 84px; height: 84px; }
.hero-compact .video .poster { font-size: clamp(24px, 2.6vw, 36px); }
.hero-compact .video .scrub { width: 200px; }
.hero-film { width: min(760px, 100%); margin-left: auto; margin-right: auto; margin-bottom: 0; }
.hero-film video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 14px; background: var(--navy);
  box-shadow: 0 24px 60px rgba(15,49,51,.28);
}
/* The Safety stage and its chapters follow the same compact size as the film. */
.hero-compact .stage { width: min(760px, 100%); margin-left: auto; margin-right: auto; aspect-ratio: 16 / 9; min-height: 0; padding: 24px 28px; gap: 16px; }
.hero-compact .stage-frame { gap: 24px; }
.hero-compact .stage-frame > .statement { max-width: 250px; gap: 10px; }
.hero-compact .stage-statement { font-size: clamp(22px, 2.2vw, 30px); }
.hero-compact .bars { --u: .62px; height: 190px; gap: 8px; flex: 1; min-width: 0; }
.hero-compact .bars .bar { width: auto; flex: 1; }
.hero-compact .chapters { width: min(760px, 100%); margin: 32px auto 0; gap: 24px; }
.hero-compact .chapter .body { font-size: 14px; }
/* Split hero (Safety, Learning): what we deliver on the left, the film or motion
   graphic on the right, both inside the page container. */
.hero-split { padding: 88px 0 96px; }
/* The hero runs about 13% wider than the page container so it reads as the lead. */
.hero-split > .wrap { max-width: 1360px; }
.hero-split .hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero-split .hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-split .display { font-size: clamp(38px, 4.6vw, 64px); text-wrap: balance; }
.hero-split .lead { font-size: 20px; max-width: 46ch; }
.hero-split .video, .hero-split .stage {
  aspect-ratio: 16 / 9; min-height: 0; padding: 22px 24px; gap: 12px; color: #fff;
  border: 0; box-shadow: 0 24px 60px rgba(15,49,51,.2);
}
.hero-split .video .play { width: 72px; height: 72px; }
.hero-split .video .play svg { width: 22px; height: auto; }
.hero-split .video .poster-line { gap: 24px; }
.hero-split .video .poster { font-size: clamp(20px, 2.2vw, 32px); }
.hero-split .video .scrub { width: 150px; }
.hero-split .stage-bar .meta { color: rgba(255,255,255,.72); }
.hero-split .stage-frame { gap: 20px; }
.hero-split .stage-frame > .statement { max-width: 230px; gap: 8px; }
.hero-split .stage-statement { font-size: clamp(18px, 2vw, 28px); }
.hero-split .bars { --u: .58px; height: 172px; gap: 6px; flex: 1; min-width: 0; }
.hero-split .bars .bar { width: auto; flex: 1; }
.page-cards-compact { max-width: 1000px; }
.page-cards-compact > .page-card > .visual { height: 170px; }
.page-cards-compact > .page-card > .inner { padding: 20px 24px 24px; gap: 10px; }
.page-cards-compact .h2-sm { font-size: 24px; }

/* ── Homepage: two doors ──────────────────────────────────── */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 96px; }
.door {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 560px; padding: 40px; border-radius: 14px;
}
.door > .top { display: flex; flex-direction: column; gap: 18px; }
.door > .bottom { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.door-safety { background: var(--navy); color: #fff; }
.door-learning { background: var(--surface); border: 1px solid var(--border-strong); }
.door-list { width: 100%; list-style: none; border-top: 1px solid var(--rule); }
.door-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border-strong);
}
.door-list .name { font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.door-safety .door-list { border-top-color: rgba(255,255,255,.28); }
.door-safety .door-list li { border-bottom-color: rgba(255,255,255,.16); }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.closing > .head { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.closing > .actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; flex-shrink: 0; }

/* ── Safety: motion stage ─────────────────────────────────── */
.stage {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 520px; padding: 32px 36px; border-radius: 14px;
  background: var(--navy); border: 1px solid rgba(255,255,255,.16);
}
.stage-bar { display: flex; justify-content: space-between; gap: 16px; }
.stage-frame { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.stage-frame > .statement { max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.stage-statement {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.04em;
}
/* "Raising the floor": uneven grey bars, topped up in teal to one shared level. */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 300px; border-bottom: 1px solid rgba(255,255,255,.28); }
.bars .bar { display: flex; flex-direction: column; width: 38px; }
/* Each segment carries its height as --h; --u scales the whole chart. */
.bars .lift, .bars .had { height: calc(var(--h) * var(--u, 1px)); }
.bars .lift { background: var(--primary); border-radius: 5px 5px 0 0; }
.bars .had { background: rgba(255,255,255,.26); }
.bars .bar > .had:first-child { border-radius: 5px 5px 0 0; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.chapter { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.28); }
.chapter.playing { border-top-color: var(--primary-light); }
.chapter.playing .meta { color: var(--primary-light); font-weight: 700; }

/* ── Pricing: enquiry form ────────────────────────────────── */
#enquire { scroll-margin-top: 88px; }
.enquiry-inner { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; align-items: start; }
.enquiry-copy { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.enquiry-copy .display { font-size: clamp(36px, 4vw, 54px); }
.enquiry-copy .lead { font-size: 18px; }
.includes { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.includes ul { list-style: none; margin: 6px 0 0; padding: 0; }
.includes li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border-strong); }
.includes li:last-child { border-bottom: 0; }
.includes strong { font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.includes li span { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.enquiry-form {
  display: flex; flex-direction: column; gap: 32px; padding: 36px 40px 40px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15,49,51,.12);
}
.enquiry-form fieldset { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0 0 0 34px; border: 0; }
.enquiry-form legend {
  margin: 0 0 14px -34px; padding: 0;
  font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: var(--text);
}
.enquiry-form .q-num { display: inline-block; width: 34px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0; color: var(--primary-strong); }
.enquiry-form .q-hint { margin-left: 8px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--text-muted); }
.enquiry-form .field {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
}
.enquiry-form textarea.field { resize: vertical; min-height: 96px; }
.enquiry-form .field::placeholder { color: var(--text-muted); opacity: 1; }
.enquiry-form .field:focus-visible, .seg input:focus-visible + label, .checklist label:focus-within {
  outline: 2px solid var(--primary-strong); outline-offset: 2px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Segmented choice: radio inputs hidden, their labels styled as the options. */
.seg { display: flex; gap: 5px; padding: 5px; background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1; padding: 11px 6px; text-align: center; cursor: pointer; border: 1px solid transparent; border-radius: 7px;
  font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--text-muted);
}
.seg input:checked + label { background: var(--surface); border-color: var(--border-strong); color: var(--primary-dark); }
.seg-joined { gap: 2px; }
.seg-joined label { padding: 11px 2px; font-family: inherit; font-weight: 500; font-size: 14px; white-space: nowrap; color: var(--text); }
.seg-joined input:checked + label { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.checklist label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); font-weight: 500; font-size: 15px; line-height: 1.3; cursor: pointer; }
.checklist label:has(input:checked) { background: var(--bg); }
.checklist input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--primary-strong); }
.enquiry-send { display: flex; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.enquiry-send .btn { flex-shrink: 0; }
.enquiry-status { font-size: 15px; line-height: 1.55; color: var(--text); }
.enquiry-status[hidden] { display: none; }

/* ── Resources: guide list ────────────────────────────────── */
.guides-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.guides-head > .head { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.guides-head .display { font-size: clamp(36px, 4vw, 54px); }
.guides-head .lead { font-size: 18px; }
.guide-filter { flex-shrink: 0; }
.guide-filter label { padding: 10px 16px; white-space: nowrap; }
.guide-list { border-top: 3px solid var(--primary-strong); }
.guide {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) 150px 32px; gap: 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--border-strong); color: inherit; text-decoration: none;
}
.guide .topic { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); }
.guide .words { display: flex; flex-direction: column; gap: 6px; }
.guide-title { font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; color: var(--text); }
.guide-desc { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 62ch; }
.guide .who { font-size: 15px; color: var(--text-muted); }
.guide .go { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--primary-strong); }
.guide:hover .guide-title, .guide:focus-visible .guide-title { color: var(--primary-dark); }
.guide-lead { padding: 36px 0; }
.guide-lead .guide-title { font-weight: 900; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.guide-lead .guide-desc { font-size: 17px; }
.guides:has(#t-assessment:checked) .guide:not([data-topic="assessment"]),
.guides:has(#t-practice:checked) .guide:not([data-topic="practice"]),
.guides:has(#t-literacy:checked) .guide:not([data-topic="literacy"]) { display: none; }

/* ── Safety: course switcher (CSS only, two radio inputs) ─── */
.feature { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; }
.feature-center { align-items: center; }
.feature > .copy { width: 520px; flex-shrink: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature > .panel-slot { width: 560px; flex-shrink: 0; }
/* Larger copy for a feature whose panel is tall, so the two sides balance. */
.feature > .copy-lg { gap: 26px; }
.feature > .copy-lg .lead { font-size: 20px; }
.switcher { position: relative; display: flex; flex-direction: column; gap: 16px; }
.switcher input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  display: flex; gap: 4px; padding: 5px;
  background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: 10px;
}
.switch label {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: 6px; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--text-subtle);
  border: 1px solid transparent;
}
#sw-licence:checked ~ .switch label[for="sw-licence"],
#sw-care:checked ~ .switch label[for="sw-care"] {
  background: var(--surface); border-color: var(--border-strong);
  color: var(--primary-dark); font-weight: 700;
}
#sw-licence:focus-visible ~ .switch label[for="sw-licence"],
#sw-care:focus-visible ~ .switch label[for="sw-care"] {
  outline: 2px solid var(--primary-dark); outline-offset: 2px;
}
#sw-licence:checked ~ .sw-care, #sw-care:checked ~ .sw-licence { display: none; }
.card {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
}
.sw-card { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 28px; }
.sw-card .sw-art { width: 100%; height: 160px; object-fit: contain; background: var(--bg-alt); border-radius: 10px; }
.sw-card .block { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border-strong); }
.sw-card .block:first-of-type { border-top-color: var(--rule); }
.sw-card .block p { font-size: 16px; line-height: 1.55; color: var(--text); }

/* ── Panels (notice feed, explainers) ─────────────────────── */
.panel { overflow: hidden; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--border-strong);
}
.panel-head .name { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
.panel-head .name::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.panel-row { padding: 22px 24px; border-bottom: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 10px; }
.panel-row .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; }
.chip {
  font-family: var(--mono); font-weight: 700; font-size: 12.5px; color: var(--primary-dark);
  background: rgba(0,164,166,.08); padding: 4px 10px; border-radius: 5px; align-self: flex-start;
}
.phase { display: flex; align-items: baseline; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--border-strong); }
.phase .n { width: 28px; flex-shrink: 0; font-family: 'Public Sans', sans-serif; font-weight: 900; font-size: 20px; color: var(--primary-strong); }
.phase .title { width: 150px; flex-shrink: 0; }
.phase p { font-size: 14px; line-height: 1.55; color: var(--text-subtle); }
.guess { display: flex; align-items: center; gap: 14px; }
.guess .word { width: 84px; flex-shrink: 0; font-family: var(--mono); font-weight: 700; font-size: 14px; }
.guess .bar { height: 18px; border-radius: 5px; background: var(--primary); flex-shrink: 0; }
.guess .bar.top { background: var(--primary-strong); }
.guess .bar.low { background: var(--border-strong); }
.steps-list { list-style: none; border-top: 1px solid var(--rule); counter-reset: step; }
.steps-list li {
  counter-increment: step; display: flex; gap: 18px; padding: 13px 0;
  border-bottom: 1px solid var(--border-strong); font-size: 16px; line-height: 1.55;
}
.steps-list li::before { content: counter(step); width: 24px; flex-shrink: 0; font-family: var(--mono); font-weight: 700; font-size: 12.5px; line-height: 25px; color: var(--primary-dark); }

/* ── Learning: launch video ───────────────────────────────── */
.video {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  aspect-ratio: 16 / 9; padding: 32px 36px; border-radius: 14px;
  background: var(--navy); color: #fff;
  box-shadow: 0 24px 60px rgba(15,49,51,.28);
}
.video .name { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
.video .name::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.video .play {
  align-self: center; display: flex; align-items: center; justify-content: center;
  width: 112px; height: 112px; border-radius: 50%; background: #fff;
}
.video .poster-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.video .poster {
  font-family: 'Public Sans', sans-serif; font-weight: 900;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.045em; max-width: 760px;
}
.video .scrub { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.video .track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.24); }
.video .track span { display: block; width: 22%; height: 4px; border-radius: 2px; background: var(--primary-light); }
.video .times { display: flex; justify-content: space-between; }

/* ── Carousels (scroll-snap, no script) ───────────────────── */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.carousel-head > .head { display: flex; flex-direction: column; gap: 18px; }
.carousel-ctrl { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.carousel-ctrl a {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 8px; border: 1.5px solid var(--primary-strong);
  font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--primary-dark); text-decoration: none;
}
.carousel-ctrl a.next { background: var(--primary-strong); color: #fff; }
/* The track bleeds to the right edge of the viewport so the next card peeks in. */
.carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 32px 16px max(32px, calc((100vw - var(--maxw)) / 2 + 32px));
  scroll-padding-left: max(32px, calc((100vw - var(--maxw)) / 2 + 32px));
}
.carousel > * { scroll-snap-align: start; flex-shrink: 0; }
/* Focus variant: one card sits centred at full strength; its neighbours are
   smaller and dimmed. The centring and the .is-active class come from
   /carousel.js. Without script every card stays full strength and the track
   still scrolls and snaps. */
.carousel-focus, .carousel-head-focus { --focus-w: min(1040px, 88vw); }
.carousel-focus {
  position: relative; align-items: center;
  padding-left: calc((100vw - var(--focus-w)) / 2);
  padding-right: calc((100vw - var(--focus-w)) / 2);
  scroll-padding-left: 0;
}
.carousel-focus > * { scroll-snap-align: center; }
/* The focus card is wide enough to show most of the lab artwork beside its text. */
.carousel-focus .ad-card { width: var(--focus-w); transition: opacity .3s, transform .3s; }
.carousel-focus .ad-card > img { height: 320px; }
.carousel-focus .ad-card > .inner { gap: 22px; padding: 28px 30px 30px; }
.carousel-focus .ad-card .h2-sm { font-size: clamp(24px, 2.4vw, 32px); }
.carousel-focus .do-learn { gap: 28px; }
.carousel-focus .do-learn li { font-size: 15px; padding: 8px 0; }
.carousel-focus.has-focus .ad-card:not(.is-active) { opacity: .45; transform: scale(.9); }
/* The heading row lines up with the focus card instead of the full page width. */
.carousel-head-focus { max-width: calc(var(--focus-w) + 64px); margin-bottom: 28px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-focus .ad-card { transition: none; }
}
.ad-card { width: min(960px, 86vw); display: flex; flex-direction: column; overflow: hidden; }
.ad-card > img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 12%; border-bottom: 1px solid var(--border-strong); }
.ad-card > img.pixel { object-position: 0% 30%; image-rendering: pixelated; }
.ad-card > .inner { display: flex; flex-direction: column; gap: 28px; padding: 34px 36px 36px; }
.ad-card .heading { display: flex; flex-direction: column; gap: 10px; }
.do-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.do-learn > div { border-top: 1px solid var(--rule); }
.do-learn .eyebrow { padding: 14px 0 6px; }
.do-learn ul { list-style: none; }
.do-learn li { padding: 10px 0; border-bottom: 1px solid var(--border-strong); font-size: 16px; line-height: 1.55; }
.ad-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
/* Split card: artwork on the left, the outcomes on the right. */
.ad-split { flex-direction: row; }
.carousel-focus .ad-split > img {
  width: 56%; height: auto; align-self: stretch; object-position: center;
  border-bottom: 0; border-right: 1px solid var(--border-strong);
}
/* The card art is exported larger than its slot, so it is scaled down smoothly. */
.carousel-focus .ad-split > img.pixel { image-rendering: auto; }
.ad-split > .inner { flex: 1; min-width: 0; }
.ad-card .summary { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.ad-card .learn { border-top: 1px solid var(--rule); }
.ad-card .learn .eyebrow { display: block; padding: 14px 0 6px; }
.ad-card .learn ol { list-style: none; margin: 0; padding: 0; counter-reset: learn; }
.ad-card .learn li {
  display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-strong);
  font-weight: 500; font-size: 15px; line-height: 1.4; counter-increment: learn;
}
.ad-card .learn li:last-child { border-bottom: 0; }
.ad-card .learn li::before {
  content: counter(learn, decimal-leading-zero); flex-shrink: 0; width: 18px; padding-top: 2px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--primary-strong);
}
.ad-split .foot .meta { font-size: 11.5px; line-height: 1.5; }
.product-card {
  width: min(384px, 82vw); min-height: 440px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.product-card > .top { display: flex; flex-direction: column; gap: 14px; }
.product-card > .bottom { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.product-card .for { width: 100%; padding-top: 16px; border-top: 1px solid var(--rule); }
.product-card .name { font-family: 'Public Sans', sans-serif; font-weight: 900; font-size: 36px; line-height: 1.08; letter-spacing: -.035em; }

/* ── Article header (guide) ───────────────────────────────── */
.article-head { padding: 72px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border-strong); }
.article-head .wrap { display: flex; flex-direction: column; gap: 28px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.source-note { padding: 28px 0 56px; border-top: 1px solid var(--border-strong); }
.source-note p { max-width: 900px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ── Founder ──────────────────────────────────────────────── */
.portrait {
  width: 400px; height: 460px; display: flex; align-items: flex-end; padding: 20px;
  background: var(--border); border: 1px solid var(--border-strong); border-radius: 14px;
}
.placeholder { color: var(--text-muted); font-style: italic; }

/* ── Footer (petrol deep, as live) ────────────────────────── */
#footer { background: var(--navy-deep); padding: 72px 0 28px; }
.footer-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--mono); font-weight: 700;
  font-size: 16px; letter-spacing: -.01em; color: #fff;
}
.footer-logo::before { content: '❯ '; color: var(--primary-light); }
.footer-logo .accent { color: var(--primary-light); }
.footer-tagline { font-size: 14px; line-height: 1.7; color: var(--on-petrol); margin: 14px 0 10px; max-width: 30ch; }
.footer-by { font-size: 12.5px; color: var(--on-petrol-dim); }
.footer-by a { color: var(--on-petrol); text-decoration: none; }
.footer-by a:hover { color: var(--primary-light); }
.footer-col-title {
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-petrol); margin-bottom: 16px;
}
.footer-col-title::before { content: '// '; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span {
  font-size: 14px; color: #9aa5a5; text-decoration: none; transition: color .18s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07);
}
.footer-copy, .footer-ninnovate {
  font-family: var(--mono); font-size: 11px; color: var(--on-petrol-dim); text-decoration: none;
}
.footer-ninnovate:hover { color: var(--primary-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .split-head, .hero-head, .side-list, .feature, .closing, .stage-frame, .video .poster-line {
    flex-direction: column; align-items: flex-start;
  }
  .split-head > .aside, .hero-head > .aside, .side-list > .side,
  .feature > .copy, .feature > .panel-slot { width: 100%; max-width: 640px; }
  .side-list { gap: 32px; }
  .side-list > .list { width: 100%; }
  .closing > .actions { align-items: flex-start; }
  .doors, .cols-3, .chapters, .page-cards { grid-template-columns: 1fr; }
  .hero-split .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .enquiry-inner { grid-template-columns: 1fr; gap: 40px; }
  .guides-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .enquiry-copy { padding-top: 0; }
  .hero-split .lead { max-width: 56ch; }
  .hero-split .stage { aspect-ratio: auto; gap: 24px; }
  .hero-split .stage-frame > .statement { max-width: none; }
  .hero-split .bars { flex: none; width: 100%; }
  .door { min-height: 0; }
  .bars { --u: .7px; width: 100%; height: 220px; gap: 8px; overflow: hidden; }
  .bars .bar { width: auto; flex: 1; }
  .feature-reverse { flex-direction: column-reverse; }
  .portrait { width: 100%; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .guide { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .guide .go { display: none; }
  .guide-filter { flex-wrap: wrap; width: 100%; }
  .guide-filter label { flex: 1 1 40%; }
  .enquiry-form { padding: 24px 20px 28px; }
  .enquiry-form fieldset { padding-left: 0; }
  .enquiry-form legend { margin-left: 0; }
  .checklist, .field-row { grid-template-columns: 1fr; }
  .seg-joined { display: grid; grid-template-columns: 1fr 1fr; }
  .enquiry-send { flex-direction: column; align-items: flex-start; }
  .wrap, .nav-inner, .footer-inner { padding: 0 20px; }
  .band { padding: 64px 0; }
  .hero, .article-head { padding: 48px 0; }
  .split-head, .carousel-head { margin-bottom: 36px; }
  .cols-2, .do-learn { grid-template-columns: 1fr; }
  .do-learn { gap: 8px; }
  .row { flex-direction: column; gap: 6px; }
  .row > .key { width: auto; }
  .row > .end { text-align: left; }
  .door, .stage, .video { padding: 24px; }
  .video .scrub { width: 100%; }
  .carousel-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .carousel { padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }
  .carousel-focus {
    padding-left: calc((100vw - var(--focus-w)) / 2);
    padding-right: calc((100vw - var(--focus-w)) / 2);
    scroll-padding-left: 0;
  }
  .ad-card > img { height: 220px; }
  .ad-split { flex-direction: column; }
  .carousel-focus .ad-split > img { width: 100%; height: 220px; border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .ad-card > .inner { padding: 24px; }
  .ad-card .foot { flex-direction: column; align-items: flex-start; }
  .phase { flex-wrap: wrap; }
  .phase p { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
}
