/* ==========================================================================
   Angaza Africa — design tokens
   Editorial / Swiss layout inspired by olympic.no, using Angaza brand colours
   sampled from the logo files.
   ========================================================================== */
:root {
  --green: #67b54c;        /* logo sun */
  --green-deep: #2f5a22;   /* text-safe green */
  --red: #d5473a;          /* logo "AFRICA" */
  --red-text: #b8352a;     /* 4.5:1 on paper */
  --ink: #1a1919;          /* logo wordmark */
  --charcoal: #1f2322;
  --paper: #f7f7f5;
  --white: #ffffff;
  --sand: #e9e4da;
  --line: #e2e1dd;
  --muted: #6b6b68;
  --muted-light: #9a9c98;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 2.8vw, 40px);
  --max: 1520px;
  --section: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Anything marked hidden must never render or catch clicks, whatever other rules say */
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow { color: var(--red-text); margin-bottom: 20px; }
.eyebrow--green { color: var(--green); }
.eyebrow--light { color: rgba(255,255,255,.8); }
.eyebrow--muted { color: var(--muted-light); }
.mono--light { color: rgba(255,255,255,.75); }
.mono--muted { color: var(--muted-light); }

.display {
  font-size: clamp(36px, 7.2vw, 112px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.display--sm { font-size: clamp(36px, 5vw, 76px); }
.h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.h2--light { color: #fff; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 400; margin-bottom: 24px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { background: rgba(247,247,245,.92); backdrop-filter: blur(10px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { display: block; position: relative; }
.brand__logo { height: 52px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .brand__logo { height: 40px; }
.brand__logo--light { display: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav > a { position: relative; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:hover::after { transform: scaleX(1); }
.nav .is-accent { color: var(--red-text); }
.menu-btn {
  width: 44px; height: 44px; border: 0; border-radius: 3px; background: var(--sand);
  display: grid; place-content: center; gap: 4px; transition: background .2s;
}
.menu-btn:hover { background: #ddd6c9; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--charcoal); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  /* Closed menu is invisible AND untouchable: no clicks, no text selection, no focus */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease), visibility 0s; }
.menu__inner { width: 100%; max-width: var(--max); margin: auto auto 0; padding: clamp(96px, 13vh, 120px) var(--gutter) clamp(20px, 4vh, 40px); }
.menu__list li { border-top: 1px solid rgba(255,255,255,.12); }
.menu__list a {
  display: flex; align-items: baseline; gap: 24px; padding: clamp(8px, 1.5vh, 14px) 0;
  font-size: clamp(22px, min(5vw, 4.1vh), 64px); text-transform: uppercase; font-weight: 500; letter-spacing: -.015em; line-height: 1.1;
  transition: color .2s, padding .3s var(--ease);
}
.menu__list a:hover { color: var(--green); padding-left: 12px; }
.menu__list .mono { color: var(--muted-light); }
.menu__foot { display: flex; gap: 12px 32px; flex-wrap: wrap; margin-top: clamp(20px, 4vh, 40px); font-size: 15px; color: rgba(255,255,255,.75); }
body.menu-open { overflow: hidden; }
body.menu-open .brand__logo--dark { display: none; }
body.menu-open .brand__logo--light { display: block; }
body.menu-open .nav > a { color: #fff; }
body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .menu-btn { background: rgba(255,255,255,.12); }
body.menu-open .menu-btn span { background: #fff; }

/* ---------- media slots (photo with branded fallback) ---------- */
.media { position: relative; overflow: hidden; background: var(--charcoal); }
.media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(103,181,76,.35), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(213,71,58,.28), transparent 60%),
    linear-gradient(160deg, #2a2f2c, #171918);
}
.media__fallback img { width: clamp(90px, 14vw, 200px); opacity: .14; }
.media__fallback--green { background: radial-gradient(100% 80% at 20% 20%, #7cc562, transparent 70%), linear-gradient(160deg, #4f9a37, #2f5a22); }
.media__fallback--green img { opacity: .22; }
.media__fallback--ink { background: radial-gradient(80% 80% at 70% 40%, rgba(103,181,76,.18), transparent 70%), #151716; }
.media__fallback--ink img { opacity: .1; }
.media__fallback--sand { background: linear-gradient(160deg, var(--sand), #d8d0c1); }
.media__fallback--sand img { opacity: .35; }

/* ---------- hero ---------- */
.hero__head { padding-top: clamp(150px, 30vh, 300px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__head > * { animation: rise 1s var(--ease) both; }
.hero__head > :nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__media { position: relative; }
.media--hero { height: clamp(380px, 72vh, 760px); }
.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.scroll-cue {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); border-radius: 3px; color: #fff; font-size: 16px;
  transition: background .2s, border-color .2s;
}
.scroll-cue:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section-sub { margin-top: 20px; color: var(--muted); font-size: 18px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
.col-intro { grid-column: 1 / span 6; }
.col-body { grid-column: 7 / span 5; padding-top: 34px; }
.col-body p + p { color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat dt { color: var(--muted); margin-bottom: 20px; }
.stat dd { display: flex; align-items: flex-start; }
.stat__num { font-size: clamp(48px, 6vw, 96px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__plus { font-size: clamp(24px, 2.6vw, 40px); color: var(--green); font-weight: 500; margin-left: 4px; }
.stat__word { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.1; padding-top: 10px; }

/* filters */
.filters { display: flex; gap: 6px; margin: clamp(48px, 6vw, 80px) 0 32px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 0; border-radius: 3px; padding: 0 16px; min-height: 36px; background: var(--sand); color: var(--ink);
  transition: background .2s, color .2s;
}
.chip:hover { background: #ddd6c9; }
.chip.is-active { background: var(--ink); color: #fff; }

/* table list */
.table__head, .row__toggle { display: grid; grid-template-columns: 2.2fr 1.4fr 1.2fr 44px; gap: 24px; align-items: center; }
.table__head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row[hidden] { display: none; }
.row__toggle { width: 100%; text-align: left; background: none; border: 0; padding: 30px 0; transition: padding .3s var(--ease); }
.row__toggle:hover { padding-left: 10px; }
.row__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }
.row__meta { color: var(--muted); font-size: 15px; }
.row__icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px; background: var(--sand);
  font-size: 0; justify-self: end; transition: background .2s, color .2s;
}
.row__icon::before { content: "+"; font-size: 18px; line-height: 1; transition: transform .3s var(--ease); }
.row__toggle:hover .row__icon { background: var(--green); color: #fff; }
.row__toggle[aria-expanded="true"] .row__icon { background: var(--ink); color: #fff; }
.row__toggle[aria-expanded="true"] .row__icon::before { transform: rotate(45deg); }
.row__panel { padding: 0 0 36px; max-width: 760px; }
.row__panel p { color: var(--muted); margin-bottom: 20px; font-size: 18px; }
.link-arrow { display: inline-flex; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--green-deep); transition: gap .25s var(--ease); }
.link-arrow:hover { gap: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--light { background: #ecebe7; color: var(--ink); border-color: #ecebe7; }
.btn--light:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 80vh, 860px); }
.split__media { min-height: 420px; }
.split__panel { background: var(--charcoal); color: rgba(255,255,255,.72); display: flex; align-items: center; }
.split__inner { padding: clamp(56px, 7vw, 120px); max-width: 640px; }
.split__inner .h2 { margin-bottom: 32px; }
.split__inner p { margin-bottom: 18px; }
.split__inner .btn { margin-top: 20px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); counter-reset: p; }
.pillar { border-top: 1px solid var(--ink); padding-top: 22px; }
.pillar .mono { color: var(--red-text); }
.pillar h3 { font-size: 24px; font-weight: 500; margin: 48px 0 12px; line-height: 1.15; }
.pillar p { color: var(--muted); font-size: 16px; }

/* band */
.band { position: relative; color: #fff; }
.media--band { height: clamp(460px, 80vh, 820px); }
.media--band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
.band__text { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vw, 96px); z-index: 2; }
.band__quote { font-size: clamp(26px, 3.4vw, 50px); line-height: 1.12; font-weight: 400; max-width: 22ch; letter-spacing: -.01em; }

/* subscribe */
.subscribe { margin-top: 36px; }
.subscribe label { display: block; color: var(--muted); margin-bottom: 10px; }
.subscribe__row { display: flex; gap: 8px; }
.subscribe input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-size: 16px;
  border: 1px solid #cfcdc7; border-radius: 3px; background: #fff; color: var(--ink);
}
.subscribe input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.subscribe input[aria-invalid="true"] { border-color: var(--red); }
.subscribe .btn { min-height: 48px; }
.subscribe__msg { min-height: 24px; margin-top: 10px; font-size: 14px; }
.subscribe__msg.is-error { color: var(--red-text); }
.subscribe__msg.is-ok { color: var(--green-deep); }
.note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.note .mono { color: var(--red-text); padding-top: 4px; }
.note p { color: var(--muted); font-size: 16px; }

/* contact */
.section--contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(48px, 6vw, 80px); }
.person__media { aspect-ratio: 4 / 3.4; margin-bottom: 24px; border-radius: 3px; }
.person .mono { color: var(--muted); margin-bottom: 8px; }
.person h3 { font-size: 26px; font-weight: 500; margin-bottom: 4px; }
.person a { color: var(--green-deep); border-bottom: 1px solid transparent; transition: border-color .2s; }
.person a:hover { border-color: currentColor; }
.contact-card {
  background: var(--charcoal); color: rgba(255,255,255,.72); border-radius: 3px;
  padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 340px;
  background: url("assets/logo/angaza-mark-color.png") no-repeat center / contain; opacity: .12;
}
.contact-card h3 { color: #fff; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.1; margin: 16px 0 16px; max-width: 18ch; }
.contact-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

/* closing */
.closing { background: var(--sand); padding: clamp(80px, 10vw, 150px) 0; }
.closing__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--gutter); }
.footer__cols .mono { margin-bottom: 20px; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover { color: var(--green); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--green); }
.footer__bottom { margin-top: clamp(64px, 8vw, 110px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__bottom img { height: 44px; width: auto; }
.footer__bottom a:hover { color: #fff; }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .col-intro { grid-column: 1 / -1; }
  .col-body { grid-column: 1 / -1; max-width: 680px; }
  .pillars { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav > a { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px 28px 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .table__head { display: none; }
  .row__toggle { grid-template-columns: 1fr 36px; gap: 6px 16px; padding: 24px 0; }
  .row__title { grid-column: 1; }
  .row__meta { grid-column: 1; font-size: 14px; }
  .row__meta + .row__meta { display: none; }
  .row__icon { grid-column: 2; grid-row: 1 / span 2; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 360px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__logo { height: 40px; }
  .header.is-scrolled .brand__logo { height: 34px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar h3 { margin-top: 24px; }
  .subscribe__row { flex-direction: column; }
  .note { grid-template-columns: 1fr; gap: 8px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- photo treatments ---------- */
.media--hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); }
.media--hero > img:first-child { object-position: center 35%; }
.media--band::after { background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.15) 70%); }
.media > img:first-child { transition: transform 1.6s var(--ease); }
.person__media:hover > img:first-child { transform: scale(1.03); }
.photo-credit { margin-top: 24px; font-size: 13px; color: var(--muted-light); }
.photo-credit a { text-decoration: underline; }

/* ==========================================================================
   Multi-page components
   ========================================================================== */
.nav > a[aria-current] { color: var(--red-text); }
.nav > a[aria-current]::after { transform: scaleX(1); }
.menu__list a[aria-current="page"] { color: var(--green); }

.hero__sub { margin-top: 28px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cfcdc7; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--green { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn--green:hover { background: #7cc562; border-color: #7cc562; }

.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: rgba(255,255,255,.72); }
.section--dark .h2, .section--dark h3 { color: #fff; }
.section--dark .row, .section--dark .chapter, .section--dark .facts > div { border-color: rgba(255,255,255,.14); }
.section--dark .lead { color: #fff; }

/* big stats (2-up) */
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stat__desc { margin-top: 18px; max-width: 34ch; color: var(--muted); font-size: 16px; }
.stats--2 .stat__num { font-size: clamp(64px, 9vw, 150px); }

/* chapters: numbered editorial rows */
.chapters { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 1fr 4fr 6fr; gap: 24px var(--gutter); padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.chapter > .mono { color: var(--red-text); padding-top: 8px; }
.chapter h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.chapter p { color: var(--muted); margin-bottom: 14px; }
.chapter p:first-child { color: var(--ink); font-size: 19px; }
.section--dark .chapter p:first-child { color: #fff; }
.chapter .link-arrow { margin-top: 8px; }

/* split variants */
.split--reverse .split__media { order: 2; }
.split__quote { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.12; color: #fff; font-weight: 400; letter-spacing: -.01em; margin-bottom: 28px; }
.split__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.split__actions .btn { margin-top: 0; }
.split__panel--green { background: var(--green-deep); }
.split__panel--sand { background: var(--sand); color: var(--ink); }
.split__panel--sand .h2 { color: var(--ink); }
.split__panel--sand p { color: var(--muted); }

/* link table (programs) */
a.row__toggle { color: inherit; }
.row__icon--arrow::before { content: "→"; }
a.row__toggle:hover .row__icon::before { transform: translateX(2px); }
.section--dark .row__icon { background: rgba(255,255,255,.1); }
.section--dark .row__meta, .section--dark .table__head { color: var(--muted-light); }
.section--dark .table__head { border-color: rgba(255,255,255,.14); }

/* feature testimonial */
.feature-quote { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.feature-quote__img { aspect-ratio: 4 / 4.4; border-radius: 3px; }
.feature-quote blockquote { margin: 0; }
.feature-quote blockquote p:first-child { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.005em; }
.cite { display: block; margin-top: 28px; font-style: normal; }
.cite strong { display: block; font-size: 18px; font-weight: 500; }
.cite span { color: var(--muted); font-size: 15px; }

/* pathway */
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.step { position: relative; padding: 28px 24px 0 0; border-top: 2px solid var(--ink); }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--paper); }
.section--sand .step::before { box-shadow: 0 0 0 4px var(--sand); }
.step .mono { color: var(--red-text); }
.step h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; margin: 14px 0 6px; line-height: 1.1; }
.step p { color: var(--muted); font-size: 15px; }
.step a.link-arrow { margin-top: 14px; font-size: 15px; }

/* facts table */
.facts { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-top: 4px; }
.facts dd { font-size: 19px; }
.facts dd small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* numbered skills grid */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); margin-top: clamp(40px, 5vw, 64px); }
.skills li { border-top: 1px solid var(--ink); padding: 18px 0 36px; display: flex; gap: 18px; align-items: baseline; }
.skills .mono { color: var(--red-text); }
.skills span:last-child { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.15; }

/* three text blocks */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: clamp(40px, 5vw, 64px); }
.blocks h3 { font-size: 24px; font-weight: 500; margin-bottom: 14px; line-height: 1.15; }
.blocks p { color: var(--muted); font-size: 16px; }
.section--dark .blocks p { color: rgba(255,255,255,.7); }
.blocks > div { border-top: 1px solid var(--line); padding-top: 22px; }
.section--dark .blocks > div { border-color: rgba(255,255,255,.14); }

/* cycle */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.cycle li { background: #fff; border-radius: 3px; padding: 28px 24px 32px; min-height: 260px; display: flex; flex-direction: column; }
.cycle .mono { color: var(--red-text); }
.cycle h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; margin: auto 0 10px; }
.cycle p { color: var(--muted); font-size: 15px; }
.cycle small { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.cycle__note { margin-top: 24px; font-size: 19px; }

/* bulleted lists */
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) 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='%231a1919' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section--dark .ticks li { border-color: rgba(255,255,255,.14); color: #fff; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 5vw, 64px); }
.cols-2 h3 { font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.cols-2 h3 .mono { display: block; color: var(--red-text); margin-bottom: 10px; }
.tag-new { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--green); color: var(--ink); padding: 2px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; }

/* program cards */
.programs-list { display: grid; gap: clamp(64px, 8vw, 120px); margin-top: clamp(48px, 6vw, 88px); }
.program { display: grid; grid-template-columns: 6fr 5fr; gap: var(--gutter) clamp(32px, 5vw, 96px); align-items: center; }
.program:nth-child(even) .program__media { order: 2; }
.program__media { aspect-ratio: 4 / 3; border-radius: 3px; }
.program .mono { color: var(--red-text); }
.program h3 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; text-transform: uppercase; line-height: 1; letter-spacing: -.015em; margin: 14px 0 18px; }
.program p { color: var(--muted); margin-bottom: 12px; }
.program p.program__lead { color: var(--ink); font-size: 20px; }
.program .btn { margin-top: 16px; }

/* testimonials grid */
.t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); margin-top: clamp(48px, 6vw, 80px); }
.t-card { background: #fff; border-radius: 3px; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.t-card blockquote { margin: 0 0 32px; }
.t-card blockquote p { font-size: 18px; line-height: 1.55; margin-bottom: 14px; }
.t-card blockquote p:first-child::before { content: "“"; display: block; font-size: 64px; line-height: .6; height: 30px; color: var(--green); font-weight: 500; }
.t-card footer { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.t-card footer img, .monogram { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.monogram { display: grid; place-items: center; background: var(--sand); font-weight: 500; font-size: 18px; color: var(--green-deep); }
.t-card strong { display: block; font-weight: 500; font-size: 17px; }
.t-card footer span { color: var(--muted); font-size: 14px; }

/* contacts */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: clamp(40px, 5vw, 64px); }
.contacts article { border-top: 1px solid var(--ink); padding-top: 22px; }
.contacts .mono { color: var(--muted); }
.contacts h3 { font-size: 24px; font-weight: 500; margin: 12px 0 6px; }
.contacts a { color: var(--green-deep); font-size: 18px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contacts a:hover { border-color: currentColor; }
.big-mail { display: inline-block; margin-top: 28px; font-size: clamp(26px, 4vw, 60px); font-weight: 500; letter-spacing: -.02em; border-bottom: 2px solid var(--green); line-height: 1.1; word-break: break-word; transition: color .2s; }
.big-mail:hover { color: var(--green-deep); }

/* prose (policies) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 500; margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: #3c3c3a; margin-bottom: 12px; }
.prose ul { padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--green); }
.prose a { color: var(--green-deep); text-decoration: underline; }
.prose .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-head { padding-top: clamp(150px, 24vh, 240px); padding-bottom: clamp(48px, 6vw, 80px); }

.inline-cta { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.policy-note { margin-top: 28px; font-size: 15px; color: var(--muted); }
.policy-note a { color: var(--green-deep); text-decoration: underline; }
.section--dark .policy-note { color: var(--muted-light); }
.section--dark .policy-note a { color: var(--green); }
.footer__note { margin-top: clamp(48px, 6vw, 72px); max-width: 70ch; color: var(--muted-light); font-size: 14px; }
.footer__note a { color: #fff; text-decoration: underline; }

@media (max-width: 1024px) {
  .chapter { grid-template-columns: 1fr; gap: 12px; }
  .pathway { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .skills, .blocks { grid-template-columns: 1fr 1fr; }
  .cycle { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split--reverse .split__media { order: 0; }
  .feature-quote, .program, .cols-2, .t-grid { grid-template-columns: 1fr; }
  .program:nth-child(even) .program__media { order: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .stats--2 { grid-template-columns: 1fr; }
  .stats--2 .stat { border-right: 0; padding-left: 0; }
  .pathway, .skills, .blocks, .cycle, .contacts { grid-template-columns: 1fr; }
  .cycle li { min-height: 0; }
  .cycle h3 { margin-top: 28px; }
}
@media (max-width: 560px) {
  .display br, .display--sm br { display: none; }
  .display { text-wrap: balance; }
}

/* Decorative layers must never sit between the visitor and the content */
.media::after, .media__fallback, .contact-card::before, .step::before { pointer-events: none; }

/* Lists inside dark panels */
.split__panel:not(.split__panel--sand) .ticks li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.split__panel:not(.split__panel--sand) .ticks strong { color: #fff; font-weight: 500; }
.split__panel .ticks { margin-top: 12px; }
