/* ==========================================================================
   Alfa Learning AI — design system
   Structure: tokens → base → layout → type → shell → components → sections
              → responsive → polish
   Direction: quiet institutional editorial. Newsreader serif headlines on
              paper white, IBM Plex Mono for every label and figure, Public
              Sans body, hairline rules instead of lifted cards, one blue.
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces — ivory ground, pure-white cards lifted off it. The warmth sits at
     very low chroma so it reads as paper rather than as a beige filter. */
  --paper: #fbfaf7;
  --paper-2: #f4f2ed;
  --surface: #ffffff;
  --tint: #efece5;

  /* Ink */
  --ink: #0a1428;
  --ink-2: #14233f;
  --ink-3: #263a5c;

  /* Text */
  --text: #131c2b;
  --body: #454f5e;
  --muted: #6a7382;
  --faint: #8f97a4;

  /* Rules */
  --line: #e5e1d9;
  --line-2: #cfc9be;
  --line-strong: #8a8378;
  --line-ink: rgba(255, 255, 255, 0.14);

  /* Signal — one accent for the interface, the rest carry meaning. The blue is
     an oxford, dark enough to hold 10:1 both as link text on paper and as a
     fill under white labels, so the same token serves both. */
  --cobalt: #1b3f7d;
  --cobalt-2: #122c5c;
  --cobalt-soft: #e6eaf2;
  --amber: #b07d28;
  --amber-soft: #f2e9d8;
  --safe: #2f8f79;
  --safe-soft: #dfeee7;
  --risk: #a83243;
  --risk-soft: #f7e3e6;
  --wa: #128a52;

  /* Section bands. Five classes exist in the markup because the pages were
     authored against a coloured rhythm; they all resolve to one neutral so the
     bands read as paper ↔ grey rather than as a rotating crayon box. */
  --sky: #f6f4ef;
  --mint: #f6f4ef;
  --butter: #f6f4ef;
  --blush: #f6f4ef;
  --lilac: #f6f4ef;

  /* On dark */
  --on-ink: #f3f0e9;
  --on-ink-2: #b6c0d4;
  --on-ink-3: #8b95a8;

  /* Type — serif for reading and headlines, mono for data, sans for controls */
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --wrap: 1340px;
  --gutter: clamp(18px, 4vw, 44px);
  --rail: 190px;
  --header-h: 72px;
  --sect-y: clamp(56px, 8vw, 108px);

  /* Shape — barely rounded; hairlines do the separating */
  --r-1: 5px;
  --r-2: 8px;
  --bd: 1px solid var(--line);
  --bd-2: 1px solid var(--ink);
  --shadow-1: 0 1px 2px rgba(12, 22, 44, 0.06);
  --shadow-2: 0 8px 22px -16px rgba(12, 22, 44, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 140ms;
  --mid: 260ms;
}

/* 2. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Indonesian agglutinative words and bare email addresses have no break
     opportunity; `anywhere` also shrinks their min-content contribution, which
     is what stops them blowing out single-column grid tracks on phones. */
  overflow-wrap: anywhere;
}

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

img {
  border-style: 0;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cobalt-2);
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.12;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

strong {
  color: var(--ink);
  font-weight: 650;
}

/* Emphasis is set off with the serif's own italic, not with a colour. */
em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: inherit;
  letter-spacing: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: var(--bd);
  margin: clamp(28px, 4vw, 48px) 0;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

::selection {
  background: var(--ink);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font: 500 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top var(--fast) var(--ease);
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--tight {
  max-width: 1040px;
}

.sect {
  padding-block: var(--sect-y);
  position: relative;
}

.sect--paper {
  background: var(--paper);
}

.sect--surface {
  background: var(--surface);
}

.sect--tint {
  background: var(--tint);
}

.sect--ink {
  background: var(--ink);
  color: var(--on-ink-2);
}

.sect--ink h1,
.sect--ink h2,
.sect--ink h3,
.sect--ink h4,
.sect--ink strong {
  color: #fff;
}

.sect--ink em {
  color: var(--on-ink);
}

.sect--ruled {
  border-top: var(--bd);
}

.sect--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

.sect__grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.sect__rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sect--ink .sect__rail {
  border-top-color: rgba(255, 255, 255, 0.45);
}

.sect__num {
  font: 500 0.95rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sect--ink .sect__num {
  color: var(--on-ink);
}

.sect__label {
  font: 500 11px/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* Rules and micro-type have to be re-tinted for the ink band. Where this was
   missed, the page reached for an inline amber instead. */
.sect--ink .sect__label {
  color: var(--on-ink-3);
}

.sect--ink .steps,
.sect--ink .ledger,
.sect--ink .pcard__meta,
.sect--ink .tile__foot {
  border-top-color: var(--line-ink);
}

.sect--ink .step,
.sect--ink .ledger__row {
  border-bottom-color: var(--line-ink);
}

.sect--ink .meter {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.16);
}

.sect__body {
  min-width: 0;
}

/* Two bands refuse the default opening. Every other section is a sticky numbered rail
   beside a serif head, and a dozen of those in a row is the shape that reads as generated
   rather than set. The thesis band runs its headline across the whole measure and lets the
   two columns start underneath it; the comparison band collapses its rail into a running
   head so the five-column table gets the full width. */
.sect__head {
  grid-column: 1 / -1;
  max-width: 34ch;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

.sect--inline > .sect__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.sect--inline .sect__rail {
  position: static;
  flex-direction: row;
  align-items: baseline;
  gap: 13px;
  border-top: 0;
  padding-top: 0;
  margin-bottom: 8px;
}

.sect--inline .sect__num::after {
  content: "—";
  margin-left: 13px;
  color: var(--line-strong);
}

.cols {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split--media-left {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

/* 4. Type primitives ------------------------------------------------------ */
.h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.h3 {
  font-size: clamp(1.24rem, 1.8vw, 1.6rem);
  line-height: 1.18;
  font-weight: 600;
}

.h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-3);
  max-width: 66ch;
}

/* .h2 sits on line-height 1.05, so g/y descenders land on the lede's first line. */
.h2 + .lede {
  margin-top: 14px;
}

.sect--ink .lede {
  color: var(--on-ink-2);
}

.prose {
  max-width: 70ch;
}

.prose p + p,
.prose p + .table-wrap {
  margin-top: 1.1em;
}

.prose h3 {
  margin: 2em 0 0.6em;
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.mono--cobalt {
  color: var(--cobalt);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cobalt);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* 5. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

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

.btn svg,
.btn i {
  width: 17px;
  height: 17px;
}

.btn--primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cobalt-2);
  border-color: var(--cobalt-2);
  color: #fff;
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--ink-3);
  border-color: var(--ink-3);
  color: #fff;
}

.btn--line {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.btn--wa:hover {
  background: #087a50;
  border-color: #087a50;
  color: #fff;
}

.btn--ghost-light {
  border-color: var(--line-ink);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform var(--fast) var(--ease);
}

.link-arrow:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.sect--ink .link-arrow {
  color: #fff;
  border-color: var(--line-ink);
}

.sect--ink .link-arrow:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.wa-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 6. Ticker + topbar + drawer -------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--on-ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  font-size: 0.83rem;
}

.ticker p {
  margin: 0;
  flex: 1 1 auto;
}

.ticker strong {
  color: #fff;
}

.ticker__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
}

.ticker__link {
  flex: none;
  color: #fff;
  text-decoration: none;
  font: 500 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 3px;
}

.ticker__link:hover {
  color: #fff;
  border-color: #fff;
}

.ticker__link svg {
  width: 13px;
  height: 13px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: var(--bd);
  transition: box-shadow var(--mid) var(--ease);
}

.topbar.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -26px rgba(10, 16, 32, 0.6);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

/* The mark is silver artwork, so it lives on an ink tile rather than on white. */
.brand__chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 32px;
  padding: 4px 6px;
  border-radius: var(--r-1);
  background: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 20px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--f-ui);
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.014em;
  white-space: nowrap;
}

.brand__name em {
  font-style: normal;
  color: var(--ink-2);
  margin-left: 4px;
  font: 600 0.66rem/1 var(--f-mono);
  letter-spacing: 0.1em;
  background: var(--tint);
  padding: 3px 5px;
  border-radius: var(--r-1);
}

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 9px 12px;
  color: var(--ink-3);
  text-decoration: none;
  font: 500 11.5px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.nav__link:hover {
  color: var(--cobalt);
  border-bottom-color: var(--line-2);
}

.nav__link.is-current {
  color: var(--ink);
  border-bottom-color: var(--cobalt);
}

.topbar__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  /* .nav is hidden below 1080px, so it can no longer push this cluster right. */
  margin-left: auto;
}

.switch {
  position: relative;
}

.switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--r-1);
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.switch__btn:hover {
  border-color: var(--line-strong);
}

.switch__btn svg {
  width: 13px;
  height: 13px;
}

.switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 208px;
  background: var(--surface);
  border: var(--bd-2);
  border-radius: var(--r-1);
  padding: 6px;
  display: none;
  z-index: 120;
  box-shadow: 0 26px 50px -34px rgba(10, 16, 32, 0.7);
}

.switch.is-open .switch__menu {
  display: block;
}

.switch__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 0.86rem;
  border-radius: var(--r-1);
}

.switch__opt::after {
  content: attr(data-code);
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--faint);
}

.switch__opt:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.switch__opt.is-active {
  background: var(--ink);
  color: #fff;
}

.switch__opt.is-active::after {
  color: rgba(255, 255, 255, 0.6);
}

.wa-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: var(--bd);
  border-radius: 50%;
  color: var(--wa);
  background: var(--surface);
  text-decoration: none;
}

.wa-round:hover {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.wa-round svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--surface);
  cursor: pointer;
}

.burger svg {
  width: 20px;
  height: 20px;
}

.burger__close {
  display: none;
}

body.no-scroll .burger__open {
  display: none;
}

body.no-scroll .burger__close {
  display: block;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 32, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease);
  z-index: 100;
}

.scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--surface);
  border-left: var(--bd-2);
  z-index: 110;
  transform: translateX(101%);
  transition: transform var(--mid) var(--ease);
  overflow-y: auto;
  padding: 20px 20px 32px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: var(--bd);
  margin-bottom: 8px;
}

.drawer__list li {
  border-bottom: var(--bd);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.006em;
}

.drawer__link span {
  font: 500 10px/1 var(--f-mono);
  color: var(--faint);
}

.drawer__link.is-current {
  color: var(--cobalt);
}

.drawer__foot {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.drawer__langs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.drawer__lang {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border: var(--bd);
  border-radius: var(--r-1);
  text-decoration: none;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.drawer__lang.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 7. Media --------------------------------------------------------------- */
.shot {
  position: relative;
  border: var(--bd);
  background: var(--paper-2);
  overflow: hidden;
  margin: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.shot--tall img {
  aspect-ratio: 4 / 5;
}

.shot--wide img {
  aspect-ratio: 16 / 9;
}

.shot--sq img {
  aspect-ratio: 1 / 1;
}

/* A 16/9 figure that fills the whole body column swamps the text next to it.
   Capping it keeps the photo an illustration, not a banner. */
.sect__body .shot {
  max-width: min(100%, 680px);
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: var(--bd);
  background: var(--surface);
  font: 500 10.5px/1.4 var(--f-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot--ink {
  border-color: var(--line-ink);
  background: var(--ink-2);
}

.shot--ink figcaption {
  background: var(--ink-2);
  border-top-color: var(--line-ink);
  color: var(--on-ink-3);
}

.figure-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* 8. Facts / stats / ledger --------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  margin: 0;
}

/* Inline grid-template-columns on .facts beat every media query, so the
   narrow layouts were chosen with these classes instead. */
.facts--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facts--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facts > div {
  padding: 16px 16px 18px;
  border-right: var(--bd);
  border-bottom: var(--bd);
}

.facts > div:last-child {
  border-right: 0;
}

.facts dt {
  font: 500 10.5px/1.4 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 8px;
}

.facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.facts dd small {
  display: block;
  font: 500 11px/1.35 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-top: 5px;
}

.facts--dark {
  border-top-color: rgba(255, 255, 255, 0.5);
}

.facts--dark > div {
  border-right-color: var(--line-ink);
  border-bottom-color: var(--line-ink);
}

.facts--dark dt {
  color: var(--on-ink-3);
}

.facts--dark dd {
  color: #fff;
}

/* A stat figure inside a facts cell has to inherit the cell's own colour and
   line box — the display size otherwise blows up the row and, on the ink band,
   var(--ink) made the number invisible. */
.facts .stat__num {
  font-size: 1.9rem;
  color: inherit;
}

.stat__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font: 600 0.95rem/1 var(--f-mono);
  color: var(--cobalt);
}

.stat__cap {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 32ch;
}

.ledger {
  border-top: var(--bd);
}

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: var(--bd);
  align-items: baseline;
}

.ledger__k {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.97rem;
}

.ledger__v {
  font-family: var(--f-mono);
  font-size: 0.84rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 9. Tables ------------------------------------------------------------- */
.table-wrap {
  border: var(--bd-2);
  background: var(--surface);
  overflow-x: auto;
}

.table-wrap__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: var(--bd);
  background: var(--paper-2);
}

.table-wrap__head h3 {
  font-size: 1.02rem;
}

.table-wrap__hint {
  display: none;
}

.table-wrap.is-x .table-wrap__hint {
  display: block;
  flex-basis: 100%;
  text-align: right;
  color: var(--muted);
}

.tbl {
  min-width: 720px;
  font-size: 0.92rem;
}

.tbl caption {
  text-align: left;
  padding: 14px 18px;
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: var(--bd);
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: var(--bd);
  vertical-align: top;
}

.tbl thead th {
  font: 600 10.5px/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.tbl tbody tr:last-child th,
.tbl tbody tr:last-child td {
  border-bottom: 0;
}

.tbl tbody tr:hover {
  background: var(--tint);
}

.tbl td strong {
  display: block;
  margin-bottom: 3px;
}

.tbl .num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tbl .lead-col {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  letter-spacing: 0;
}

/* body's `anywhere` makes a cell's min-content one character wide, which lets
   auto table layout squeeze columns until words break mid-letter. Tables live
   in `.table-wrap` (overflow-x: auto), so a wider column scrolls instead. */
.tbl :is(th, td) {
  overflow-wrap: normal;
}

.tbl[data-matrix] {
  min-width: 980px;
}

.tbl--ink {
  background: var(--ink-2);
  color: var(--on-ink-2);
}

.tbl--ink th,
.tbl--ink td {
  border-bottom-color: var(--line-ink);
}

.tbl--ink thead th {
  color: var(--on-ink-3);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.tbl--ink strong,
.tbl--ink .num {
  color: #fff;
}

.tbl--ink tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* 10. Tiles -------------------------------------------------------------- */
.tiles {
  display: grid;
  border-top: 1px solid var(--ink);
  border-left: var(--bd);
}

.tiles--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  padding: clamp(20px, 2.4vw, 30px);
  border-right: var(--bd);
  border-bottom: var(--bd);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--fast) var(--ease);
}

.tile:hover {
  background: var(--tint);
}

.tile__num {
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--cobalt);
}

.tile__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--bd);
  border-radius: var(--r-1);
  color: var(--ink);
  background: var(--paper);
}

.tile__ico svg {
  width: 19px;
  height: 19px;
}

.tile h3 {
  font-size: 1.2rem;
}

.tile p {
  font-size: 0.95rem;
  flex: 1 1 auto;
}

.tile__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-top: 12px;
  border-top: var(--bd);
}

.tile--ink {
  background: var(--ink-2);
  border-right-color: var(--line-ink);
  border-bottom-color: var(--line-ink);
  color: var(--on-ink-2);
}

.tile--ink:hover {
  background: var(--ink-3);
}

.tile--ink h3 {
  color: #fff;
}

.tile--ink .tile__ico {
  background: transparent;
  border-color: var(--line-ink);
  color: var(--on-ink);
}

.tile--ink .tile__foot {
  border-top-color: var(--line-ink);
}

/* 11. Lists -------------------------------------------------------------- */
.ticks {
  border-top: var(--bd);
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: var(--bd);
  font-size: 0.97rem;
}

/* A note item has no icon column: without this the lone span is squeezed into 22px.
   Scoped away from ticks--num, whose ::before marker owns column one. */
.ticks:not(.ticks--num) li > span:only-child {
  grid-column: 1 / -1;
}

.ticks svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--cobalt);
}

.ticks--amber svg {
  color: var(--amber);
}

.ticks--num {
  counter-reset: tk;
}

.ticks--num li {
  counter-increment: tk;
  grid-template-columns: 30px minmax(0, 1fr);
}

.ticks--num li::before {
  content: counter(tk, decimal-leading-zero);
  font: 600 11px/1.7 var(--f-mono);
  color: var(--cobalt);
}

.steps {
  border-top: 1px solid var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: var(--bd);
}

.step__i {
  font: 600 1.15rem/1 var(--f-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.step h4 {
  margin-bottom: 6px;
}

.step p {
  font-size: 0.94rem;
}

/* 12. Meters / risk ----------------------------------------------------- */
.meter {
  position: relative;
  height: 8px;
  background: var(--paper-2);
  border: var(--bd);
  overflow: hidden;
}

.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 50%);
  background: var(--cobalt);
  transition: width 700ms var(--ease);
}

.meter[data-level="high"] .meter__fill {
  background: var(--risk);
}

.meter[data-level="mid"] .meter__fill {
  background: var(--amber);
}

.meter[data-level="low"] .meter__fill {
  background: var(--safe);
}

.risk {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  border: var(--bd);
  border-left: 3px solid var(--risk);
  background: var(--surface);
}

.risk[data-zone="safe"] {
  border-left-color: var(--safe);
}

.risk[data-zone="watch"] {
  border-left-color: var(--amber);
}

.risk[data-zone="build"] {
  border-left-color: var(--cobalt);
}

.risk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.risk__head h3 {
  font-size: 1.24rem;
}

.risk__sub {
  font: 500 10.5px/1.4 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.risk__body {
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--r-1);
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--high {
  background: var(--risk-soft);
  color: #9c2430;
}

.badge--mid {
  background: var(--amber-soft);
  color: #8a5a00;
}

.badge--low {
  background: var(--safe-soft);
  color: #06643f;
}

.badge--cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt-2);
}

.badge--ink {
  background: var(--ink);
  color: #fff;
}

.badge--line {
  border: var(--bd);
  color: var(--ink-3);
  background: var(--surface);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* 13. Callouts / notes -------------------------------------------------- */
.callout {
  padding: clamp(20px, 3vw, 34px);
  border: var(--bd-2);
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.callout--cobalt {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.callout--cobalt h3,
.callout--cobalt strong {
  color: #fff;
}

.callout--cobalt .mono {
  color: rgba(255, 255, 255, 0.72);
}

.callout--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink-2);
}

.callout--ink h3 {
  color: #fff;
}

/* Headings inside a callout are h2.h2, not h3, and .lede carries its own dark
   colour — both vanish on the ink and cobalt bands without these. */
.callout--ink :is(h1, h2, h3, h4, .h1, .h2, .h3),
.callout--cobalt :is(h1, h2, h3, h4, .h1, .h2, .h3),
.callout--ink :is(strong, b),
.callout--cobalt :is(strong, b) {
  color: #fff;
}

.callout--ink :is(.lede, p, li),
.callout--cobalt :is(.lede, p, li) {
  color: var(--on-ink-2);
}

.callout--cobalt :is(.lede, p, li) {
  color: rgba(242, 246, 255, 0.86);
}

.callout--ink .callout__label {
  color: var(--on-ink-3);
}

.callout--cobalt .callout__label {
  color: rgba(255, 255, 255, 0.72);
}

.callout--ink .legal-note {
  color: var(--on-ink-3);
  border-left-color: rgba(255, 255, 255, 0.18);
}

.callout--soft {
  background: var(--paper-2);
  border-color: var(--line-2);
}

.callout__label {
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.legal-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--line-2);
  padding-left: 14px;
  max-width: 78ch;
}

/* 14. Chips / marquee --------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 13px;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--ink-3);
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip__count {
  margin-left: 6px;
  color: var(--faint);
}

.chip.is-on .chip__count {
  color: rgba(255, 255, 255, 0.66);
}

/* A standing strip of the qualifications taught, aligned to the text column.
   It does not scroll: motion here would only say "look, animation". */
.marquee {
  border-block: var(--bd);
  background: var(--surface);
  padding: 15px 0;
}

.marquee__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 6px 0;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 11px;
  background: var(--line-2);
}

/* 15. FAQ --------------------------------------------------------------- */
.faq {
  border-top: var(--bd);
}

.faq__item {
  border-bottom: var(--bd);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.004em;
  color: var(--ink);
  cursor: pointer;
}

.faq__q svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--cobalt);
  transition: transform var(--mid) var(--ease);
}

.faq__item.is-open .faq__q svg {
  transform: rotate(45deg);
}

.faq__a {
  display: none;
  padding: 0 0 20px;
  max-width: 74ch;
  font-size: 0.97rem;
}

.faq__item.is-open .faq__a {
  display: block;
}

/* 16. Forms ------------------------------------------------------------- */
.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > label,
.field__label {
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field__req {
  color: var(--risk);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--r-1);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.98rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.55;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2347566a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: var(--cobalt);
  box-shadow: inset 0 -2px 0 var(--cobalt);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.field.is-bad .input,
.field.is-bad .select,
.field.is-bad .textarea {
  border-color: var(--risk);
  background: #fffafa;
}

.field__error {
  display: none;
  font: 500 12px/1.4 var(--f-body);
  color: var(--risk);
}

.field.is-bad .field__error {
  display: block;
}

.form__note {
  font-size: 0.82rem;
  color: var(--muted);
}

.form__status {
  display: none;
  padding: 12px 14px;
  border: var(--bd);
  background: var(--paper-2);
  font-size: 0.9rem;
}

.form__status.is-on {
  display: block;
}

.form__status.is-bad {
  border-color: var(--risk);
  background: var(--risk-soft);
  color: #8c2430;
}

/* Formspree discards any submission that fills this field, so it has to stay a
   real control in the tree — display:none is what the bot filters look for. */
.form__trap {
  position: absolute;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-grid {
  display: grid;
  gap: 8px;
}

.radio-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pick {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px 14px;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

/* A .pick is a whole control, not a form label — it must not inherit the mono
   uppercase micro-label that .field puts on its child labels. */
.field > .pick {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.pick:hover {
  border-color: var(--line-strong);
}

.pick input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.pick input:checked {
  border: 5px solid var(--cobalt);
}

.pick span {
  font-size: 0.93rem;
  color: var(--ink-3);
  font-weight: 500;
}

.pick small {
  display: block;
  margin-top: 3px;
  font: 400 12px/1.4 var(--f-body);
  color: var(--muted);
}

.pick.is-on {
  border-color: var(--cobalt);
  background: var(--tint);
}

.pick.is-on span {
  color: var(--ink);
}

/* 17. Dialogs ----------------------------------------------------------- */
.dlg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 20px;
  display: none;
  place-items: center;
  border: 0;
  background: rgba(10, 16, 32, 0.56);
  color: var(--text);
  z-index: 140;
}

.dlg[open],
.dlg.is-open {
  display: grid;
}

.dlg::backdrop {
  background: transparent;
}

.dlg__box {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: var(--bd-2);
  padding: clamp(22px, 3vw, 36px);
}

.dlg__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: var(--bd);
  margin-bottom: 18px;
}

.dlg__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--surface);
  cursor: pointer;
}

.dlg__x svg {
  width: 16px;
  height: 16px;
}

.dlg__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dlg__section h4 {
  margin-bottom: 8px;
  color: var(--cobalt);
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dlg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--bd);
}

/* 18. Hero / page head -------------------------------------------------- */
.hero {
  background: var(--surface);
  border-bottom: var(--bd);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-2);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(44px, 6vw, 84px);
  align-items: start;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.7rem, 5.9vw, 5.1rem);
  line-height: 0.94;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 26px 0 16px;
}

.hero__note {
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__aside {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.pagehead {
  background: var(--surface);
  border-bottom: var(--bd);
  padding-block: clamp(34px, 5vw, 62px);
}

.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
}

.pagehead h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 0.98;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.crumbs a {
  /* The touch-target rule below 900px makes these 30px tall; without this the
     label sits at the top of that box, so the arrow and the current-page span,
     which are centred, hang below the baseline of the links. */
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--cobalt);
}

/* A chevron that is its own flex item can be left stranded at the head of a
   wrapped line. Carried as a mark on the label behind it, the crumb and its arrow
   move together, and currentColor keeps it right on both paper and ink. */
.crumbs i,
.crumbs svg {
  display: none;
}

.crumbs :not(:first-child) {
  position: relative;
  padding-left: 16px;
}

.crumbs :not(:first-child)::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 19. Program / route modules ------------------------------------------ */
.pcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 2.6vw, 30px);
  border: var(--bd);
  border-left: 3px solid var(--line-2);
  background: var(--surface);
  transition: border-left-color var(--fast) var(--ease);
}

.pcard:hover {
  border-left-color: var(--cobalt);
}

.pcard.is-hidden {
  display: none;
}

.pcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.pcard h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
}

.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 16px;
  padding-top: 12px;
  border-top: var(--bd);
}

.pcard__meta div {
  min-width: 130px;
}

.pcard__meta dt {
  font: 500 9.5px/1.4 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.pcard__meta dd {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--ink-3);
  font-weight: 600;
}

.pcard__side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.pcard__price {
  font: 600 1.55rem/1.05 var(--f-display);
  color: var(--ink);
  letter-spacing: -0.005em;
}

.route {
  border: var(--bd-2);
  background: var(--surface);
}

.route__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: clamp(18px, 2.4vw, 26px);
  border-bottom: var(--bd-2);
  background: var(--paper);
}

.route__head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.route__body {
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 18px;
}

.route__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(18px, 2.4vw, 26px);
  border-top: var(--bd);
  background: var(--paper-2);
}

.unit {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: var(--bd);
}

.unit:last-child {
  border-bottom: 0;
}

.unit__i {
  font: 600 1.25rem/1 var(--f-display);
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}

.unit__mods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.mod {
  padding: 5px 10px;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--paper);
  font-size: 0.83rem;
  color: var(--ink-3);
  font-weight: 500;
}

/* 20. Planner ---------------------------------------------------------- */
.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border: var(--bd-2);
  background: var(--surface);
}

.planner__left {
  padding: clamp(20px, 2.6vw, 32px);
  border-right: var(--bd);
}

.planner__right {
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--paper);
}

.planner__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.planner__step {
  font: 600 10px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 7px 10px;
  border: var(--bd);
  border-radius: var(--r-1);
}

.planner__step.is-on {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.planner__step.is-done {
  /* --safe has to stay light enough to serve as label text on the ink bands, so
     this chip takes its own deeper green against the pale mint. */
  color: #146b4f;
  border-color: var(--safe);
  background: var(--safe-soft);
}

.planner__saved {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin: -8px 0 22px;
  padding: 12px 14px;
  border: var(--bd);
  border-radius: var(--r-1);
  background: var(--paper-2);
}

.planner__saved p {
  margin: 0;
}

.panel {
  display: grid;
  gap: 14px;
}

fieldset.panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.panel legend {
  padding: 0;
  margin-bottom: 4px;
}

.planner__left .panel:not([hidden]) + .panel:not([hidden]) {
  margin-top: 28px;
  padding-top: 28px;
  border-top: var(--bd);
}

.result__empty {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
  min-height: 220px;
  color: var(--muted);
}

.result__empty svg {
  width: 26px;
  height: 26px;
  color: var(--line-strong);
}

.result__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.result__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.result__list {
  border-top: var(--bd);
}

.result__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 11px 0;
  border-bottom: var(--bd);
  font-size: 0.92rem;
  align-items: baseline;
}

.result__list b {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.chart {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: var(--bd);
  background: var(--surface);
}

.chart__bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
}

.chart__track {
  height: 22px;
  background: var(--paper-2);
  border: var(--bd);
  position: relative;
  overflow: hidden;
}

.chart__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 40%);
  background: var(--cobalt);
  transition: width 600ms var(--ease);
}

.chart__fill--slow {
  background: var(--line-strong);
}

.chart__fill--you {
  background: var(--amber);
}

.chart__val {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* 21. Footer ----------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--on-ink-2);
  padding-block: clamp(42px, 6vw, 72px) 26px;
  /* The seam matters: the CTA band above is the same ink. */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-ink);
}

.foot h4 {
  color: #fff;
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.foot a {
  color: var(--on-ink-2);
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot__list li {
  padding: 5px 0;
  font-size: 0.92rem;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 750;
  font-size: 1.14rem;
  letter-spacing: -0.014em;
  text-decoration: none;
}

.foot__brand img {
  width: 46px;
  height: 30px;
  object-fit: contain;
}

.foot__desc {
  margin: 14px 0 18px;
  font-size: 0.92rem;
  color: var(--on-ink-3);
  max-width: 42ch;
}

.foot__contact {
  display: grid;
  gap: 8px;
}

.foot__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.84rem;
}

.foot__contact svg {
  width: 15px;
  height: 15px;
  color: var(--on-ink-3);
}

.foot__legal {
  padding-top: 22px;
  display: grid;
  gap: 14px;
}

.foot__fine {
  font-size: 0.78rem;
  color: var(--on-ink-3);
  max-width: 96ch;
  line-height: 1.65;
  margin: 0;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-ink);
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}

.foot__bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* 22. Legal doc pages -------------------------------------------------- */
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.doc__toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.doc__toc a {
  padding: 8px 10px 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 2px solid transparent;
}

.doc__toc a:hover,
.doc__toc a.is-on {
  color: var(--ink);
  border-left-color: var(--cobalt);
  background: var(--tint);
}

.doc__body {
  min-width: 0;
  max-width: 74ch;
}

.doc__sec {
  padding: 26px 0;
  border-bottom: var(--bd);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc__sec h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 12px;
}

.doc__sec p,
.doc__sec li {
  font-size: 0.97rem;
}

.doc__sec ul {
  margin: 12px 0;
  display: grid;
  gap: 7px;
}

.doc__sec ul li {
  padding-left: 18px;
  position: relative;
}

.doc__sec ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--cobalt);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: var(--bd);
  background: var(--surface);
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 23. Reveal / states -------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

html:not(.js) [data-reveal] {
  opacity: 1;
}

/* 24. Responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  :root {
    --rail: 140px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 1080px) {
  .nav,
  .switch,
  .topbar__end .btn {
    display: none;
  }

  .burger {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .sect__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .sect__rail {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    border-top: 0;
    padding-top: 0;
  }

  /* Stacked, the number and the label sit on one row with nothing between them, so
     "02 GERBANG" reads as one string. The rail on the wide layout carries a rule
     instead; here it carries a dash. */
  .sect__num::after {
    content: "—";
    margin-left: 12px;
    color: var(--line-strong);
  }

  .sect--ink .sect__num::after {
    color: var(--on-ink-3);
  }

  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split--media-left,
  .hero__grid,
  .planner {
    grid-template-columns: minmax(0, 1fr);
  }

  .planner__left {
    border-right: 0;
    border-bottom: var(--bd);
  }

  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc__toc {
    position: static;
    max-height: none;
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .cols-2,
  .cols-3,
  .cols-4,
  .risk-grid,
  .tiles--2,
  .tiles--3,
  .dlg__grid,
  .radio-grid--2,
  .figure-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts > div {
    border-right: 0;
  }

  .pagehead__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .pcard,
  .route__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .chart__bar {
    grid-template-columns: 80px minmax(0, 1fr) 54px;
    font-size: 0.8rem;
  }

  .sect {
    padding-block: clamp(40px, 9vw, 62px);
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker__long {
    display: none;
  }
}

/* 25. Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* 26. Chinese rendering ------------------------------------------------ */
html[lang="zh-Hans"] body {
  font-family: var(--f-body), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4 {
  font-family: var(--f-display), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  font-variation-settings: normal;
  line-height: 1.2;
}

html[lang="zh-Hans"] .hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.14;
}

/* Headlines must not split a Chinese word across a line; break only when a
   heading is too long to fit on one line at all. */
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="zh-Hans"] .mono,
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .nav__link,
html[lang="zh-Hans"] .facts dt,
html[lang="zh-Hans"] .tbl thead th {
  letter-spacing: 0.04em;
}

html[lang="zh-Hans"] .btn {
  white-space: normal;
}

/* 27. Editorial discipline ----------------------------------------------- */
/* The band classes stay in the markup, but they resolve to one neutral so the
   page reads as paper ↔ grey with flat ink for contrast; surfaces are hairline
   separated rather than rounded and lifted. */

.sect--surface,
.sect--mint,
.sect--butter,
.sect--blush,
.sect--lilac,
.sect--tint {
  background: var(--sky);
  border-top: 1px solid var(--line);
}

.sect--ink {
  background: var(--ink);
}

.sect__label {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Cards — flat panels on hairlines. Tiles go back to being cells of a ruled
   grid rather than separate lifted boxes with a coloured stripe. */
.pcard,
.callout {
  border-radius: var(--r-1);
}

.tile {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: var(--bd);
  border-radius: 0;
  box-shadow: none;
}

/* Inside .tiles the cells share edges: the container carries the top and left
   rules, so a cell only draws right and bottom. */
.tiles > .tile {
  border-width: 0 1px 1px 0;
}

.tile--ink {
  background: none;
  border-color: var(--line-ink);
}

.tile--ink:hover {
  background: rgba(255, 255, 255, .04);
}

.tile--ink .tile__num {
  color: var(--on-ink-3);
}

.tile--ink .tile__ico {
  background: none;
  border-color: var(--line-ink);
  color: var(--on-ink);
}

.tile__num {
  display: inline-block;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--muted);
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tile__ico {
  background: none;
  color: var(--ink);
  border: var(--bd);
  border-radius: var(--r-1);
}

.tile__ico svg {
  width: 18px;
  height: 18px;
}

/* Hero — section 29 owns the photographic surface; this only sets proportion. */
.hero {
  border-bottom: 0;
  overflow: hidden;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 58px);
  padding-block: clamp(46px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.03;
}

/* Goal chooser — the hero's right column: a ruled panel, not a floating card. */
.goal {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: clamp(20px, 2.4vw, 28px);
}

.goal__q {
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.goal__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.goal__opt {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}

.goal__opt strong {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.goal__opt span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.goal__opt:hover {
  background: var(--paper-2);
}

.goal__opt[aria-pressed="true"] {
  background: var(--ink);
}

.goal__opt[aria-pressed="true"] strong,
.goal__opt[aria-pressed="true"] span {
  color: #fff;
}

.goal__out {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cobalt);
  border-radius: 0;
  background: var(--paper-2);
}

.goal__hint {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--faint);
}

.goal__out p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.goal__out .btn-row {
  gap: 10px;
}

/* Risk ladder — rows on the dark band */
.ladder {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line-ink);
}

.ladder li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr) 68px;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-ink);
  background: none;
  transition: background var(--fast) var(--ease);
}

.ladder li:hover {
  background: rgba(255, 255, 255, .04);
}

.ladder__k {
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 14.5px;
  color: #fff;
}

.ladder__k span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--on-ink-3);
}

.ladder__v {
  font: 600 15px/1 var(--f-mono);
  text-align: right;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ladder .meter {
  display: block;
  width: 100%;
  height: 8px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0;
}

.ladder .meter__fill {
  border-radius: 0;
}

/* Numbered flow — how an intake actually runs */
.flow {
  counter-reset: flow;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  counter-increment: flow;
  position: relative;
  display: grid;
  gap: 5px;
  padding: 0 0 26px 64px;
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: var(--surface);
  border: var(--bd-2);
  font: 500 13px/1 var(--f-mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.flow li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 8px;
  width: 1px;
  background: var(--line-2);
}

.flow li:last-child::after {
  display: none;
}

.flow h4 {
  font-family: var(--f-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--ink);
}

.flow p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--body);
}

.flow .mono {
  color: var(--cobalt-2);
}

/* Meta row — plain mono figures separated by hairlines, not badges. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 18px;
}

.pills span {
  padding: 0 16px;
  border-left: 1px solid var(--line-2);
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pills span:first-child {
  padding-left: 0;
  border-left: 0;
}

/* Three 11px labels divided by hairlines do not survive a phone: the row wraps and
   a divider lands at the head of a line, which reads as a broken table rather than
   as a meta row. Below the breakpoint the separator becomes a middot that stays
   with the label it follows. */
@media (max-width: 900px) {
  /* Spacing lives in the container's column-gap, not in a margin on the item: a
     wrapped flex item carries its own margin-left and every line after the first
     hangs indented. */
  .pills {
    gap: 3px 11px;
  }

  .pills span {
    padding: 0;
    border-left: 0;
  }

  .pills span:not(:last-child)::after {
    content: "·";
    margin-left: 11px;
    color: var(--line-strong);
  }

  .hero .pills span:not(:last-child)::after,
  .pagehead .pills span:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.42);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .goal__opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ladder li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .ladder .meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ladder__v {
    grid-column: 2;
    grid-row: 1;
  }

  .flow li {
    padding-left: 56px;
  }

  .flow li::before {
    width: 40px;
    height: 40px;
    border-radius: 0;
    font-size: 12px;
  }

  .flow li::after {
    left: 20px;
    top: 48px;
  }
}

/* 28. Checklist library (resources.html) --------------------------------- */
.checkbar {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-top: 30px;
  border: var(--bd-2);
  border-radius: 0;
  background: var(--surface);
}

.checkbar__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.checkbar__top .chips {
  margin-bottom: 0;
}

.checkbar__sum {
  color: var(--faint);
}

.checkbar__sum strong {
  color: var(--cobalt-2);
}

.cgroup {
  margin-top: 18px;
  padding: 22px clamp(16px, 2.2vw, 26px) 8px;
  border: var(--bd);
  border-radius: 0;
  background: var(--surface);
}

.cgroup__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cgroup__note {
  max-width: 64ch;
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cgroup__count {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--paper-2);
  color: var(--ink-2);
  font: 600 12px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.check {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bd);
}.check li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 13px 0;
  border-bottom: var(--bd);
}

.check__box {
  -webkit-appearance: none;
  appearance: none;
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  border: var(--bd-2);
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.check__box:hover {
  border-color: var(--cobalt);
}

.check__box:checked {
  background: var(--safe);
  border-color: var(--safe);
}

.check__box:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-bottom: 3px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

.check__box:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.check label {
  font-size: 0.97rem;
  color: var(--ink-2);
  cursor: pointer;
}

.check__box:checked + label {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

@media (max-width: 900px) {
  .cgroup {
    padding: 18px 16px 6px;
  }

  .check label {
    font-size: 0.93rem;
  }
}

.tbl tbody tr[hidden] {
  display: none;
}

/* 29. Photographic hero band -------------------------------------------- */
.hero,
.pagehead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink-2);
  border-bottom: 0;
}

.hero::before,
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: var(--hero-pos, 50% 42%);
  transform: scale(1.015);
}

/* The scrim exists to keep the serif headline legible over photography, not to
   tint it. It only has to cover the text column, so it runs out before the
   right of the frame and leaves the photograph bare. */
.hero::after,
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  /* The copy column ends at 62% of the measure and the subject of every plate sits
     past 55%, so the veil holds its density across the text and then falls away fast
     enough that the two zones do not compete. The stops are in alpha, not colour: the
     daylight plates need 0.80 over white to hold the lede at 4.5:1, where the night
     plates this gradient was cut for got away with 0.58. */
  background: linear-gradient(97deg,
      rgba(7, 14, 28, 0.88) 0%,
      rgba(7, 14, 28, 0.86) 40%,
      rgba(7, 14, 28, 0.80) 56%,
      rgba(7, 14, 28, 0.42) 70%,
      rgba(7, 14, 28, 0.10) 84%,
      rgba(7, 14, 28, 0) 94%);
}

/* A tight shadow does more for legibility than a diffuse one, and unlike the
   veil it costs the photograph nothing. */
.hero h1,
.hero .lede,
.hero__where,
.pagehead h1,
.pagehead .lede {
  text-shadow: 0 1px 3px rgba(7, 14, 28, 0.60), 0 2px 26px rgba(7, 14, 28, 0.55);
}

.hero > .wrap,
.pagehead > .wrap {
  position: relative;
  z-index: 1;
}

.hero h1,
.pagehead h1 {
  color: #fff;
}

/* Delivery model used to live in a 10.5px uppercase pill — invisible in the one
   place every visitor reads. It is a sub-headline now: the dot carries "live",
   the size puts it in the hierarchy between the h1 and the lede. */
.hero__where {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0 0 18px;
  max-width: 34ch;
  font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.35 var(--f-ui);
  letter-spacing: -0.006em;
  color: #fff;
}

/* Baseline alignment on the row, centred on the dot: with two lines of copy the
   mark still rides the first one instead of floating in the middle of the block. */
.hero__where::before {
  content: "";
  flex: none;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(47, 143, 121, 0.30);
}

.hero .lede,
.pagehead .lede {
  color: var(--on-ink-2);
  /* Over photography the line has to end short of the veil's fade, and a shorter
     measure suits this size of type anyway. */
  max-width: 50ch;
}

.hero .pills span,
.pagehead .pills span {
  border-left-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.74);
}

.hero .crumbs,
.pagehead .crumbs {
  color: rgba(255, 255, 255, 0.5);
}

.hero .crumbs a,
.pagehead .crumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.hero .crumbs a:hover,
.pagehead .crumbs a:hover {
  color: #fff;
}

/* The scrim stops at the text column, so these buttons land on bare photography
   that can be anything from lamp-lit wood to cream paper. They carry their own
   backing rather than relying on what is behind them. */
.hero .btn--line,
.pagehead .btn--line {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(7, 14, 28, 0.68);
  color: #fff;
}

.hero .btn--line:hover,
.pagehead .btn--line:hover {
  border-color: #fff;
  background: rgba(7, 14, 28, 0.86);
  color: #fff;
}

.hero .link-arrow,
.pagehead .link-arrow {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.hero .link-arrow:hover,
.pagehead .link-arrow:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.hero .legal-note,
.pagehead .legal-note {
  color: var(--on-ink-3);
  border-left-color: rgba(255, 255, 255, 0.25);
}

.hero .legal-note a,
.pagehead .legal-note a {
  color: var(--on-ink);
}

.pagehead .stamp {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.hero .goal {
  border-color: rgba(255, 255, 255, 0.7);
}

/* Stacked, the copy runs most of the way down the frame, so the veil falls the
   other way and cannot thin out to nothing at the bottom the way it does wide. */
@media (max-width: 900px) {
  .hero::after,
  .pagehead::after {
    background: linear-gradient(180deg,
        rgba(7, 14, 28, 0.80) 0%,
        rgba(7, 14, 28, 0.66) 50%,
        rgba(7, 14, 28, 0.46) 100%);
  }
}

/* Paths resolve against css/, which is why one file serves id, en and zh. */
.hero--index { --hero-img: url("../assets/img/hero-index.webp"); --hero-pos: 50% 58%; }
.pagehead--programs { --hero-img: url("../assets/img/hero-programs.webp"); --hero-pos: 50% 46%; }
.pagehead--pathways { --hero-img: url("../assets/img/hero-pathways.webp"); --hero-pos: 50% 42%; }
.pagehead--lcci { --hero-img: url("../assets/img/hero-lcci.webp"); --hero-pos: 68% 6%; }
.pagehead--acca { --hero-img: url("../assets/img/hero-acca.webp"); --hero-pos: 66% 4%; }
.pagehead--gce { --hero-img: url("../assets/img/hero-gce.webp"); --hero-pos: 45% 34%; }
.pagehead--ai-classes { --hero-img: url("../assets/img/hero-ai.webp"); --hero-pos: 24% 22%; }
.pagehead--chinese { --hero-img: url("../assets/img/hero-chinese.webp"); --hero-pos: 58% 46%; }
.pagehead--planner { --hero-img: url("../assets/img/hero-planner.webp"); --hero-pos: 62% 4%; }
.pagehead--cost { --hero-img: url("../assets/img/hero-cost.webp"); --hero-pos: 50% 40%; }
.pagehead--resources { --hero-img: url("../assets/img/hero-resources.webp"); --hero-pos: 50% 48%; }
.pagehead--about { --hero-img: url("../assets/img/hero-about.webp"); --hero-pos: 50% 50%; }
.pagehead--contact { --hero-img: url("../assets/img/hero-contact.webp"); --hero-pos: 50% 50%; }
.pagehead--terms { --hero-img: url("../assets/img/hero-terms.webp"); --hero-pos: 50% 50%; }
.pagehead--privacy { --hero-img: url("../assets/img/hero-privacy.webp"); --hero-pos: 50% 50%; }
.pagehead--disclaimer { --hero-img: url("../assets/img/hero-disclaimer.webp"); --hero-pos: 50% 50%; }

/* On a phone the copy spans the full measure, so a left-to-right veil releases exactly
   where the text sits — the daylight plates put the lede at 2.7:1. The band form the
   homepage already uses settles both questions at once: a 16:9 plate stretched across the
   viewport is barely a third of a screen tall, so the phone gets the whole photograph
   uncut instead of a magnified sliver, and the copy begins on clean ink underneath it.
   The veil inside the band falls to a highlight rolloff, because nothing is read over it. */
@media (max-width: 900px) {
  .pagehead {
    padding-top: calc(min(56vw, 430px) + 26px);
  }

  .pagehead::before,
  .pagehead::after {
    inset: 0 0 auto 0;
    height: min(56vw, 430px);
  }

  .pagehead::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  }

  .pagehead::after {
    background: linear-gradient(180deg,
        rgba(7, 14, 28, 0.30) 0%,
        rgba(7, 14, 28, 0.14) 52%,
        rgba(7, 14, 28, 0) 100%);
  }
}

/* The homepage hero stacks into one column on a phone and runs well over a metre tall —
   lede, calls to action and the goal chooser all in a row. A 16:9 plate asked to cover that
   is blown up three times and cropped to a narrow sliver, which reads as blur rather than as
   a photograph. Below 900px the picture is therefore a band across the top of the hero, at
   the same crop the other pages already use, dissolving into the ink ground.

   The band is sized to clear the copy block, and the veil inside it holds its density down
   to the small text rather than thinning out early: the h1 passes at 8.8:1 over bare photo,
   but the 17px sub-headline and the lede do not, and the mask already removes the picture
   below the last line. */
@media (max-width: 900px) {
  .hero--index::before,
  .hero--index::after {
    inset: 0 0 auto 0;
    height: min(700px, 180vw);
  }

  .hero--index::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 96%);
  }

  .hero--index::after {
    background: linear-gradient(180deg,
        rgba(7, 14, 28, 0.80) 0%,
        rgba(7, 14, 28, 0.62) 20%,
        rgba(7, 14, 28, 0.54) 45%,
        rgba(7, 14, 28, 0.44) 70%,
        rgba(7, 14, 28, 0) 96%);
  }
}

@media print {
  .hero::before,
  .pagehead::before,
  .hero::after,
  .pagehead::after {
    display: none !important;
  }

  .hero h1,
  .pagehead h1,
  .hero .lede,
  .pagehead .lede,
  .hero .pills span,
  .pagehead .pills span,
  .hero .crumbs,
  .pagehead .crumbs,
  .hero .crumbs a,
  .pagehead .crumbs a,
  .hero .legal-note,
  .pagehead .legal-note {
    color: #111 !important;
  }
}

/* 30. Print -------------------------------------------------------------- */
@media print {
  .topbar,
  .drawer,
  .scrim,
  .wa-round,
  .wa-ico,
  .ticker,
  .marquee,
  .foot,
  .btn,
  .btn-row,
  .chips,
  .faq,
  .skip,
  .switch {
    display: none !important;
  }

  body,
  .pagehead,
  .hero,
  .sect,
  .sect--paper,
  .sect--surface,
  .sect--tint,
  .sect--mint,
  .sect--sky,
  .sect--butter,
  .sect--blush,
  .sect--lilac,
  .sect--ink {
    background: #fff !important;
    color: #111 !important;
  }

  .sect,
  .pagehead {
    padding: 6mm 0 !important;
  }

  .sect--tight {
    padding: 3mm 0 !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  dt,
  dd,
  th,
  td,
  span,
  a,
  small,
  strong {
    color: #111 !important;
  }

  .cgroup,
  .tile,
  .callout,
  .table-wrap,
  .shot,
  .facts,
  .flow li {
    break-inside: avoid;
    box-shadow: none !important;
  }

  /* paper has no scroll, so a clipped table would print with columns missing */
  .table-wrap {
    overflow: visible !important;
  }

  .table-wrap__hint {
    display: none !important;
  }

  .shot {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .check__box:checked + label {
    color: #111 !important;
  }
}

/* 400-560px is the real phone band: the fluid clamps bottom out here, so the
   mono micro-type, tap targets and two-up data grids need explicit floors. */
@media (max-width: 560px) {
  .facts--2,
  .facts--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts--2 > div,
  .facts--3 > div {
    border-right: 0;
  }

  .callout__label,
  .tile__num,
  .sect__label,
  .badge,
  .chip,
  .planner__step,
  .foot h4,
  .shot figcaption,
  .facts dt,
  .pcard__meta dt,
  .facts dd small,
  .tbl th,
  .tbl thead th,
  .legal-note,
  .hero__note,
  .crumbs,
  .crumbs a,
  .field > label,
  .field__label,
  .form__note,
  .switch__opt,
  .drawer__link span,
  .stamp,
  .risk__sub {
    font-size: 11.5px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .btn-row {
    gap: 10px 12px;
  }

  .link-arrow,
  .foot__contact a,
  .ticker__link,
  .crumbs a,
  .faq__a {
    min-height: 30px;
  }

  /* A trail that wraps needs every row the same height, or the current-page label
     rides up beside the middle of a 30px link box. */
  .crumbs > span {
    display: flex;
    align-items: center;
    min-height: 30px;
  }

  .chip {
    min-height: 34px;
  }

  .marquee__item {
    padding-block: 6px;
  }

  .chart__bar {
    grid-template-columns: 64px minmax(0, 1fr) 46px;
    font-size: 0.78rem;
  }

  .ladder {
    gap: 2px;
  }

  .ladder__k {
    font-size: 0.86rem;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 400px) {
  .h1 {
    font-size: 2.2rem;
  }

  .h2 {
    font-size: 1.55rem;
  }

  .h3 {
    font-size: 1.16rem;
  }

  .pagehead h1,
  .hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.4rem);
  }

  .sect {
    padding-block: 40px;
  }
}
