/* Schaffa Foundation Academy: public website.
   Concept: "first light". Every page opens in the deep blue of a Sydney night, lit from below by the
   Foundation's gold, the first light it promises people. Electric sky blue marks the technology.
   Unbounded (wide, future-facing) for display, Public Sans for reading, JetBrains Mono for code and data.
   Boldness lives in two places: the self-typing Python console in the hero, and the live measurements strip.
   Content sections are light, calm and left-aligned so parents can read them easily. */
:root {
  color-scheme: light;
  --night: #031527;
  --night-2: #072742;
  --night-3: #0c3557;
  --blue: #004878;
  --sky: #5cc8ff;
  --sky-ink: #0a6fa8;
  --gold: #E3A857;
  --gold-ink: #8a5a14;
  --paper: #ffffff;
  --mist: #eef4f9;
  --ink: #0d1b2a;
  --muted: #4d5d70;
  --line: #d8e2ec;
  --line-dark: #1b4366;
  --on-dark: #dbe8f3;
  --on-dark-muted: #9fb8cd;
  --ok: #1f8a5b;
  --bad: #b3263e;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sans: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 66ch;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .course-hero :focus-visible, .live :focus-visible, .band :focus-visible, .site-footer :focus-visible, .foundation-bar :focus-visible, .site-header :focus-visible, .model-section :focus-visible, .engine :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--night); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 1.2rem; max-width: 40ch; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.prose { max-width: var(--measure); display: grid; gap: 1rem; align-content: start; }
.prose h2 { margin-top: 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.mist { background: var(--mist); }
.section-head { display: grid; gap: .9rem; max-width: 62ch; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.after-steps { margin-top: 2.2rem; font-weight: 600; }
p.source.after-steps { font-weight: 400; }
.source { font-size: .82rem; color: var(--muted); }

/* Night surfaces share a fine star grid and a gold horizon */
.hero, .course-hero, .live, .model-section, .engine, .band { background-color: var(--night); color: var(--on-dark); }
.hero, .course-hero { position: relative; overflow: hidden; isolation: isolate;
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 200, 255, .16) 1px, transparent 1.6px); background-size: 28px 28px; }
.hero::after, .course-hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 80%; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 118%, rgba(227, 168, 87, .55), rgba(227, 168, 87, .16) 45%, transparent 72%); }
.hero h1, .hero h2, .hero h3, .course-hero h1, .course-hero h2, .live h2, .model-section h2, .model-section h3, .engine h2, .engine h3, .band h2 { color: #fff; }
.hero a:not(.btn), .course-hero a:not(.btn), .engine a:not(.btn), .band a:not(.btn), .model-section a:not(.btn) { color: var(--sky); }
.course-hero .lede, .hero .lede { color: var(--on-dark); }

/* Foundation strip */
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }
.foundation-bar { background: #020d19; color: var(--on-dark-muted); font-size: .82rem; }
.foundation-bar .wrap { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-block: 7px; }
.foundation-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.foundation-bar a:hover { text-decoration: underline; }
.foundation-bar .links { display: flex; gap: 18px; }

/* Header: night, so every page opens in one continuous dark band */
.site-header { background: var(--night); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.wordmark img { flex: none; width: 46px; height: 46px; }
.wordmark span { display: grid; line-height: 1.05; }
.wordmark b { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--on-dark-muted); letter-spacing: .01em; }
.wordmark b.academy { font-family: var(--display); font-weight: 700; font-size: 1.32rem; color: #fff; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--on-dark); font-weight: 600; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--line-dark); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.site-nav .signin { color: var(--night); background: var(--sky); padding: 8px 14px; border-radius: 999px; border: 0; }
.site-nav .signin:hover { color: var(--night); background: #8fdaff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--sans); padding: 16px 24px; border-radius: 10px; text-decoration: none; border: 2px solid var(--night); color: var(--night); background: transparent; cursor: pointer; }
.btn:hover { background: var(--mist); color: var(--night); }
.btn.primary { background: var(--night); color: #fff; }
.btn.primary:hover { background: var(--night-3); border-color: var(--night-3); color: #fff; }
.btn.gold, .hero .btn.primary, .course-hero .btn.primary, .thanks-dark .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn.gold:hover, .hero .btn.primary:hover, .course-hero .btn.primary:hover { background: #ecbb75; border-color: #ecbb75; color: var(--night); }
.hero .btn:not(.primary), .course-hero .btn:not(.primary), .band .btn:not(.gold) { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn:not(.primary):hover, .course-hero .btn:not(.primary):hover { background: rgba(255, 255, 255, .08); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.hero .small { color: var(--on-dark-muted); }

/* The console: real Python, typing itself on first view */
.tryit { background: rgba(3, 18, 34, .88); border: 1px solid var(--line-dark); border-radius: 18px; color: var(--on-dark); display: grid; box-shadow: 0 0 0 1px rgba(92, 200, 255, .08), 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(92, 200, 255, .35); overflow: hidden; }
.tryit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); background: rgba(12, 53, 87, .45); }
.tryit-head b { font-family: var(--mono); font-weight: 500; font-size: .9rem; color: #fff; }
.tryit-head span { font: 500 .78rem/1 var(--mono); color: var(--sky); display: inline-flex; align-items: center; gap: 8px; }
.tryit-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.tryit-body { display: grid; gap: 14px; padding: 18px; }
.tryit label { font-size: .86rem; color: var(--on-dark-muted); }
.tryit textarea { width: 100%; min-height: 128px; resize: vertical; background: #010a14; color: #fff; border: 1px solid var(--line-dark); border-radius: 10px; padding: 14px 16px; font: 1rem/1.65 var(--mono); font-variant-ligatures: none; tab-size: 4; caret-color: var(--gold); }
.tryit .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tryit .run { background: var(--gold); color: var(--night); border: 0; border-radius: 8px; font: 700 1rem/1 var(--sans); padding: 13px 24px; cursor: pointer; }
.tryit .run:disabled { opacity: .6; cursor: progress; }
.tryit .out { background: #010a14; border-radius: 10px; padding: 14px 16px; font: .95rem/1.6 var(--mono); min-height: 4.2em; white-space: pre-wrap; word-break: break-word; color: #b8f0c9; border: 1px solid #0f2c47; }
.tryit .out.idle { color: #6f8aa3; }
.tryit .out .err { color: #ff9aa8; }
.tryit .note { font-size: .84rem; color: var(--on-dark-muted); }
.ideas { display: flex; gap: 8px; flex-wrap: wrap; }
.ideas button { background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: 999px; padding: 7px 12px; font: .8rem/1.2 var(--mono); cursor: pointer; }
.ideas button:hover { border-color: var(--sky); color: #fff; }

/* Live measurements: real numbers from the visitor's own browser */
.live { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: #020f1d; }
.live .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 0; }
.metric { display: grid; gap: 4px; padding: 26px 22px 26px 0; border-right: 1px solid var(--line-dark); align-content: start; }
.metric + .metric { padding-left: 22px; }
.metric b { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.05 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.metric b.on { color: var(--sky); }
.metric span { font-size: .84rem; color: var(--on-dark-muted); line-height: 1.35; }
.live-note { padding: 26px 0 26px 22px; font-size: .84rem; color: var(--on-dark-muted); display: grid; gap: .4rem; align-content: center; }
.live-note b { color: #fff; font-weight: 600; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.door { padding: 26px 24px; display: grid; gap: .75rem; align-content: start; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.door::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--gold); }
.door:nth-child(2)::before { background: var(--sky-ink); }
.door:nth-child(3)::before { background: var(--blue); }
.door:nth-child(4)::before { background: var(--night); }
.door p { color: var(--muted); }
.door a { font-weight: 700; }
.section.doors-section { padding-top: clamp(48px, 6vw, 72px); }

/* The social enterprise ring */
.model-section { position: relative; overflow: hidden; }
.model-section .section-head p { color: var(--on-dark-muted); }
.model { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ring { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .track { fill: none; stroke: var(--line-dark); stroke-width: 2; }
.ring .arc { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 10; }
.ring .node { fill: var(--night-2); stroke: var(--sky); stroke-width: 2; }
.ring .node.gold { stroke: var(--gold); }
.ring .num { font: 700 22px var(--display); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.ring .lbl { font: 600 15px var(--sans); fill: var(--on-dark); text-anchor: middle; }
.ring .centre-big { font: 700 30px var(--display); fill: #fff; text-anchor: middle; }
.ring .centre-small { font: 500 15px var(--sans); fill: var(--on-dark-muted); text-anchor: middle; }
.ring .orbit { transform-origin: 230px 230px; animation: orbit 9s linear infinite; }
.ring .spark { fill: var(--gold); }
.ring .spark-glow { fill: var(--gold); opacity: .25; }
@keyframes orbit { to { transform: rotate(360deg); } }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: loop; }
.loop li { counter-increment: loop; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: .35rem; }
.loop li::before { content: counter(loop); grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--sky); color: #fff; font: 700 1rem/1 var(--display); }
.loop li:nth-child(2)::before, .loop li:nth-child(3)::before { border-color: var(--gold); }
.loop h3 { color: #fff; align-self: center; }
.loop p { color: var(--on-dark-muted); }
.loop-note { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); max-width: 70ch; }

/* Need bars */
.need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.bars { display: grid; gap: 20px; }
.bar { display: grid; gap: 7px; }
.bar .label { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; }
.bar .label b { font: 500 1rem var(--mono); color: var(--night); }
.bar .track { height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky-ink)); border-radius: inherit; }
.bar.all .fill { background: #a9b9c8; }
.w545 { width: 54.5%; } .w452 { width: 45.2%; } .w409 { width: 40.9%; } .w206 { width: 20.6%; }
.section-head .callout-number { font: 700 clamp(2.6rem, 5.4vw, 3.8rem)/1 var(--display); color: var(--night); margin-top: .6rem; letter-spacing: -.03em; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .7rem; align-content: start; padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section:not(.mist) .steps li { background: var(--mist); }
.steps li::before { content: "Step " counter(step); font: 500 .82rem/1 var(--mono); color: var(--sky-ink); }
.steps li p { color: var(--muted); }

/* Engine room: HostSavers technology */
.engine { position: relative; overflow: hidden; background-image: linear-gradient(rgba(92, 200, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 200, 255, .05) 1px, transparent 1px); background-size: 44px 44px; }
.engine .section-head p { color: var(--on-dark-muted); }
.engine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--night); padding: 22px; display: grid; gap: .45rem; align-content: start; }
.spec b { font: 500 1.9rem/1 var(--mono); color: var(--sky); }
.spec h3 { color: #fff; font-size: .98rem; }
.spec p { color: var(--on-dark-muted); font-size: .92rem; line-height: 1.5; }
.engine figure { margin: 0; }
.engine .frame { border-color: var(--line-dark); box-shadow: 0 0 0 1px rgba(92, 200, 255, .1), 0 40px 90px -40px rgba(0, 0, 0, .9); }
.engine figcaption { margin-top: 14px; font-size: .86rem; color: var(--on-dark-muted); }
.engine-credit { margin-top: 2.6rem; display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: baseline; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.engine-credit b { font-family: var(--display); font-weight: 600; color: #fff; }

/* Level path on the home page */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.path::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc((100% - 54px) / 4 - 32px); height: 2px; background: var(--line); }
.stop { position: relative; display: grid; gap: .55rem; align-content: start; }
.stop .dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font: 700 .78rem/1.1 var(--display); color: var(--muted); position: relative; z-index: 1; text-align: center; }
.stop.open .dot { background: var(--night); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 6px rgba(227, 168, 87, .22); }
.stop h3 a { color: inherit; }
.stop p { color: var(--muted); font-size: .95rem; }

/* Courses list (courses page) */
.course-list { display: grid; gap: 12px; }
.course-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.course-row .ages { font: 700 1.1rem/1.15 var(--display); color: var(--night); }
.course-row .what { display: grid; gap: .3rem; }
.course-row .what p { color: var(--muted); }
.course-row.open { background: var(--night); border-color: var(--night); }
.course-row.open .ages, .course-row.open h3, .course-row.open h3 a { color: #fff; }
.course-row.open .what p { color: var(--on-dark-muted); }
.status { font: 500 .8rem/1 var(--mono); white-space: nowrap; color: var(--muted); }
.status.open { color: var(--ok); }
.course-row.open .status.open { color: var(--gold); }

/* Showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #12304a; box-shadow: 0 30px 70px -34px rgba(3, 21, 39, .6); background: #0d1322; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Promise list */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.promises + p { margin-top: 28px; }
.promises li { display: grid; gap: .3rem; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section:not(.mist) .promises li { background: var(--mist); }
.promises b { color: var(--night); font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.promises span { color: var(--muted); font-size: .96rem; }
.promises.single { grid-template-columns: minmax(0, 1fr); }

/* Provider band */
.band { background-image: radial-gradient(ellipse at 100% 120%, rgba(227, 168, 87, .35), transparent 55%); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.band .section-head { margin-bottom: 0; }
.band p { color: var(--on-dark-muted); max-width: 56ch; }

/* Inner page heroes */
.course-hero { padding-block: clamp(52px, 7vw, 96px) clamp(60px, 8vw, 104px); }
.course-hero .wrap { display: grid; gap: 1.4rem; }
.course-hero .lede { max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; padding: 12px 18px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(7, 39, 66, .6); }
.facts b { font: 600 1.2rem/1.2 var(--display); color: #fff; }
.facts span { font-size: .82rem; color: var(--on-dark-muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.timeline .when { display: grid; align-content: start; }
.timeline .when b { font: 600 1.05rem/1.2 var(--display); color: var(--night); }
.timeline .when span { color: var(--muted); font: .8rem var(--mono); }
.timeline .now { background: var(--night); border-color: var(--night); }
.timeline .now .when b, .timeline .now h3 { color: #fff; }
.timeline .now .when span { color: var(--gold); }
.timeline .now p { color: var(--on-dark-muted); }
.timeline p { color: var(--muted); }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.week { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.week h3 { margin-bottom: .7rem; }
.week ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.week li span { display: block; color: var(--muted); font-size: .9rem; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.outcomes li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
.outcomes code { font: 500 .86rem/1.5 var(--mono); color: var(--sky-ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* Stats, roles, technology, report */
.stat-pair { display: grid; gap: 22px; }
.stat { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stat b { font: 700 clamp(2.2rem, 4.6vw, 3.2rem)/1 var(--display); color: var(--night); letter-spacing: -.03em; }
.stat span { font-size: 1.05rem; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role { padding: clamp(22px, 3vw, 30px); display: grid; gap: .7rem; align-content: start; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.role p { color: var(--muted); }
.role .role-note { color: var(--gold-ink); font: 500 .82rem/1.4 var(--mono); }
.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tech > div { display: grid; gap: .55rem; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.tech p { color: var(--muted); }
.report { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.report li { display: grid; gap: .5rem; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.report b { font-family: var(--display); font-size: 1.05rem; color: var(--night); font-weight: 600; }
.report span { color: var(--muted); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
form.enquiry { display: grid; gap: 18px; background: var(--mist); padding: clamp(22px, 3vw, 34px); border-radius: 18px; border: 1px solid var(--line); }
.section.mist form.enquiry { background: var(--paper); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .96rem; }
.field .hint { font-size: .86rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 1rem/1.4 var(--sans); padding: 13px 14px; border: 1.5px solid #c2cfdc; border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 1px; border-color: var(--night); }
.field .error { color: var(--bad); font-size: .88rem; font-weight: 600; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--night); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-left: 4px solid var(--bad); background: #fdf0f2; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.needs { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.needs li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.needs li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.needs b { color: var(--night); }
.thanks { max-width: 62ch; display: grid; gap: 1.2rem; padding-block: clamp(56px, 10vw, 120px); }
.signin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.signin-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.signin-head { display: grid; gap: 8px; }
.signin-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.signin-card h2 { font-size: 1.35rem; }
.signin-card.narrow { max-width: 460px; }
.check-line { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.check-line input { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: #020d19; color: var(--on-dark-muted); padding-block: 56px 36px; font-size: .94rem; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font: 700 .95rem/1.3 var(--sans); color: #fff; margin-bottom: .6rem; letter-spacing: 0; }
.site-footer .about h2 { font: 700 1.1rem/1.2 var(--display); }
.site-footer .about img { width: 56px; height: 56px; margin-bottom: 14px; }
.site-footer .about p + p { margin-top: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .legal { grid-column: 1 / -1; display: grid; gap: .4rem; font-size: .84rem; max-width: 92ch; }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: .8rem/1.5 var(--mono); }

@media (max-width: 1000px) {
  .live .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 20px 16px 20px 0; }
  .metric + .metric { padding-left: 0; }
  .metric:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .live-note { grid-column: 1 / -1; padding: 18px 0 22px; }
}
@media (max-width: 900px) {
  .hero .wrap, .need, .showcase, .form-layout, .pair, .band .wrap, .model, .engine-grid, .signin-layout { grid-template-columns: minmax(0, 1fr); }
  .doors, .tech, .report, .weeks, .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path::before { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ring { max-width: 340px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .doors, .tech, .report, .weeks, .path, .roles, .two, .promises, .specs { grid-template-columns: minmax(0, 1fr); }
  .course-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .timeline li, .outcomes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .wordmark b.academy { font-size: 1.15rem; }
  .site-nav { gap: 2px 16px; }
  .foundation-bar .links { gap: 14px; }
  .path .stop { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .path .stop .dot { grid-row: 1 / span 3; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.stack-lg { display: grid; gap: clamp(24px, 4vw, 40px); }

/* Who the place is for: children's fields hide when it's for an adult */
fieldset.who { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
fieldset.who legend { font-weight: 600; font-size: .96rem; margin-bottom: 6px; padding: 0; }
.choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1.5px solid #c2cfdc; border-radius: 12px; background: #fff; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--night); }
.choice b { display: block; color: var(--night); }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
form.enquiry:has(#for-self:checked) .kids-only { display: none; }

/* Certificate check */
.cert-check { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--mist); }
.cert-check.ok { border-color: var(--ok); background: #eef8f2; }
.cert-check .check-line { font-weight: 700; font-size: 1.1rem; color: var(--night); }
.cert-check.ok .check-line::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; flex: none; }
.cert-check dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; }
.cert-check dt { color: var(--muted); }
.cert-check dd { margin: 0; font-weight: 600; }
.cert-check .mono { font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 520px) { fieldset.who { grid-template-columns: minmax(0, 1fr); } .cert-check dl { grid-template-columns: minmax(0, 1fr); } .cert-check dd { margin-bottom: 6px; } }

.self-only { display: none; }
form.enquiry:has(#for-self:checked) .self-only { display: inline; }

/* ---------- Courses: a colour for each course, grouped by who it's for ---------- */
.tone-teal   { --c: #16a37f; --c-tint: #e3f6ef; --c-ink: #0b6b52; }
.tone-orange { --c: #f07a2e; --c-tint: #fff0e4; --c-ink: #a3470c; }
.tone-violet { --c: #7c5cd8; --c-tint: #f0ebfd; --c-ink: #5136a8; }
.tone-blue   { --c: #3d6be0; --c-tint: #e8efff; --c-ink: #2449a8; }
.tone-rose   { --c: #d6467a; --c-tint: #fdeaf1; --c-ink: #a0244f; }
.tone-gold   { --c: #d99a2b; --c-tint: #fbf1dc; --c-ink: #7d5210; }
.course-group { padding-block: clamp(48px, 6vw, 80px); }
.group-head { display: grid; gap: .5rem; margin-bottom: 1.8rem; max-width: 62ch; }
.group-head h2 { font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); color: var(--night); letter-spacing: -.015em; }
.group-head p { color: var(--muted); font-size: 1.05rem; }
.course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.course-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(3, 21, 39, .05); }
.course-card .card-shot { display: block; aspect-ratio: 16 / 10; background: var(--c-tint); overflow: hidden; border-bottom: 1px solid var(--line); }
.course-card .card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .3s ease; }
.course-card .card-shot:hover img { transform: scale(1.03); }
.course-card .card-body { display: grid; gap: .8rem; align-content: start; padding: 22px 22px 24px; grid-template-rows: auto auto 1fr auto auto; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-top .ages { font: 700 .85rem/1 var(--sans); color: var(--c-ink); background: var(--c-tint); padding: 7px 11px; border-radius: 999px; }
.card-top .state { font: 600 .82rem/1 var(--sans); color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.card-top .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.course-card.planned .state { color: var(--muted); }
.course-card h3 { font: 600 1.55rem/1.1 var(--display); letter-spacing: -.015em; color: var(--night); margin: 0; }
.course-card h3 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--c-ink); }
.course-card .tagline { color: var(--ink); font-size: 1rem; line-height: 1.55; }
.card-facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-facts li { display: grid; gap: 2px; }
.card-facts b { color: var(--c-ink); font-size: 1rem; }
.card-facts span { color: var(--muted); font-size: .86rem; }
.card-link { justify-self: start; font-weight: 700; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid var(--c); padding-bottom: 2px; }
.card-link:hover { color: var(--night); border-color: var(--night); }
.card-link.quiet { border-bottom-style: dashed; }
.course-card.planned { border-style: dashed; border-top-style: solid; background: linear-gradient(180deg, var(--c-tint), var(--paper) 140px); }
@media (max-width: 1000px) { .course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-cards { grid-template-columns: minmax(0, 1fr); } .course-card h3 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .course-card .card-shot img { transition: none; } }
/* Each course page wears its course's colour */
.course-page .course-hero { border-bottom: 6px solid var(--c); }
.course-page .timeline li { border-left: 4px solid var(--c); }
.course-page .timeline .now { background: var(--c-tint); border-color: var(--c); border-left-width: 4px; }
.course-page .timeline .now .when b, .course-page .timeline .now h3 { color: var(--night); }
.course-page .timeline .now .when span { color: var(--c-ink); font-weight: 600; }
.course-page .timeline .now p { color: var(--ink); }
.course-page .week { border-top: 4px solid var(--c); }
.course-page .outcomes code { color: var(--c-ink); background: var(--c-tint); }
.course-page .checklist li::before { background-color: var(--c); }
.course-page .outcomes code { padding: 2px 7px; border-radius: 6px; justify-self: start; }
.forgot { display: grid; gap: 6px; }
.forgot ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
