/* Owesifazane Onethemba: one stylesheet for every page. */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --gold: #EEA53C;
  --gold-ink: #6B4A12;   /* link hover */
  --muted: #333333;
  --muted-2: #444444;
  --muted-3: #555555;
  --rule: #DDDDDD;
  --panel: #F5F5F5;
  --dark-panel: #1A1A1A;
  --dark-rule: #333333;
  --on-dark: #DDDDDD;

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --bar-height: 84px;   /* the header's height, so menu jumps land headings just below it */
  --max: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--ink); }
a:hover { color: var(--gold-ink); }

img { display: block; height: auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
}

.highlight { background: var(--gold); padding: 0 0.08em; }
/* Keeps a line's descenders above the gold highlight on the line below it. */
.lift { position: relative; z-index: 1; }
.gold { color: var(--gold); }

.photo {
  width: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 6px;
}
.photo.square { aspect-ratio: 1 / 1; }
.photo.portrait { aspect-ratio: 4 / 5; }

/* Buttons and pills */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}
.btn:hover, .btn:active { color: var(--gold); }
.btn.large { min-height: 52px; padding: 0 28px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.btn-outline.on-dark { border-color: var(--paper); color: var(--paper); min-height: 48px; padding: 0 22px; font-weight: 600; font-size: 18px; }
.btn-outline.on-dark:hover { color: var(--gold); border-color: var(--gold); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header */

/* The header stays at the top of the screen. On phones it slides away while reading down and
   comes back on any scroll up (main.js). */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.2s ease;
}
.site-bar.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.site-bar.is-hidden { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .site-bar { transition: none; } }

main section[id] { scroll-margin-top: var(--bar-height); }

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { height: clamp(26px, 2.6vw, 36px); width: auto; max-width: 100%; }

.nav-links { display: flex; align-items: center; gap: 8px 24px; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a[aria-current]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links .btn { font-weight: 500; }

.menu { display: none; }
/* On phones Support & connect sits under the Menu button, as part of the header. */
.phone-support {
  display: none;
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 72px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; text-decoration: none; font-weight: 500; }
.menu nav a[aria-current]:not(.btn) { font-weight: 700; }
.menu nav .btn { justify-content: center; margin-top: 8px; }

/* The menu needs about 930px on one line; below 960px it becomes the Menu button. */
@media (max-width: 960px) {
  :root { --bar-height: 124px; }
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-bottom: 16px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .phone-support { display: inline-flex; grid-column: 1 / -1; justify-self: end; }
}

/* Home: hero */

.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 96px; }
/* With the Menu button, the header's 16px under Support & connect is the gap above the hero. */
@media (max-width: 960px) { .hero { padding-top: 0; } }
.hero-row { display: flex; align-items: stretch; gap: clamp(16px, 4vw, 56px); }
.hero h1 {
  flex: none;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero-logo-box {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: calc(clamp(64px, 11vw, 168px) * -0.095);
}
.hero-logo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}
.vision-row { display: flex; flex-direction: column; gap: 40px; margin-top: clamp(56px, 7vw, 96px); }
.vision { max-width: 620px; scroll-margin-top: calc(var(--bar-height) + 24px); }
.vision h2 { margin: 0 0 12px; font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.vision p { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
.vision p:last-child { margin-bottom: 0; }

.team { max-width: 620px; }

/* Side by side, the heading sits above and the team photo lines up top and bottom with the
   vision's paragraphs, which are 248px tall at 500px wide. Re-measure if the wording changes.
   The photo is shown whole, its width following its own shape; the caption sits in the row
   below. */
@media (min-width: 1000px) {
  .vision-row {
    display: grid;
    grid-template-columns: 500px auto;
    grid-template-rows: auto auto auto;
    column-gap: clamp(32px, 10vw, 144px);
    row-gap: 0;
  }
  .vision { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
  .vision-row .team { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; gap: 0; max-width: none; }
  /* Never trimmed: on narrower screens where it can't fit at full height, it shrinks and stays centred. */
  .vision-row .team img { width: auto; height: auto; max-width: 100%; max-height: 248px; align-self: center; }
  .vision-row .team figcaption { padding-top: 10px; }
}

.captioned { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.captioned figcaption { font-size: 15px; line-height: 1.4; }
.captioned figcaption b { display: block; font-weight: 600; }
.captioned figcaption span { display: block; color: var(--muted-2); }

/* Sections */

.ruled { border-top: 1.5px solid var(--ink); }
.section { padding-top: 96px; padding-bottom: 96px; }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }
.dark a:hover { color: var(--gold); }
.on-gold { background: var(--gold); color: var(--ink); }

.big-title {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* About */

.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.about-photo { flex: 1 1 280px; }
.about-photo img { max-width: 400px; aspect-ratio: 2 / 3; }
.about-text { flex: 999 1 480px; min-width: 0; }
/* On phones the photo sits between the heading and the first paragraph. */
@media (max-width: 599px) {
  .about { flex-direction: column; gap: 0; }
  .about-text { display: contents; }
  .about-text > * { order: 2; }
  .about-text > .tag, .about-text > h2 { order: 0; }
  .about-photo { order: 1; flex: none; margin-bottom: 24px; }
  .about-photo img { max-width: 200px; }
}
.about-text h2 { margin: 24px 0; font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.about-text > p { margin: 0 0 16px; max-width: 640px; font-size: 20px; }
.about-text .pull {
  margin-bottom: 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
}
.statement { max-width: 640px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.statement summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 600; list-style: none; }
.statement summary::-webkit-details-marker { display: none; }
/* A chevron that points down when closed and up when open. */
.statement summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.statement[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.statement div { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; color: var(--muted); }
.statement p { margin: 0; }

/* Courses */

.heading-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.heading-row > p { margin: 0; max-width: 460px; color: var(--muted); font-size: 20px; }

.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.course { padding: 28px; border: 1.5px solid var(--ink); border-radius: 8px; }
.course .num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.course h3 { margin: 16px 0 8px; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.course p { margin: 0; font-size: 16px; color: var(--muted); }
.course strong { color: var(--ink); }

/* Impact */

.impact h2 { margin-bottom: 56px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--dark-rule);
}
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.stat-label { margin-top: 12px; }

.graduates { padding-top: 72px; }
.graduates h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.graduates > p { margin: 0 0 32px; font-size: 18px; color: var(--on-dark); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.story { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; background: var(--dark-panel); border-radius: 8px; }
.story img { flex: 0 0 160px; width: 160px; }
.story-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.story-meta { font-size: 14px; font-weight: 600; color: var(--gold); }
.story-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.story-now { margin: 0; font-size: 16px; color: var(--on-dark); }
.story-quote { margin: 8px 0 0; font-size: 18px; font-style: italic; }

/* Since 2018 */

.since h2 { margin-bottom: 40px; font-size: clamp(36px, 4.5vw, 64px); line-height: 0.95; letter-spacing: -0.04em; }
.timeline {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.timeline li { padding: 20px 20px 20px 0; border-top: 3px solid var(--ink); }
.timeline li.latest { border-top-color: var(--gold); }
.timeline .year { font-family: var(--display); font-weight: 800; font-size: 32px; }
.timeline p { margin: 4px 0 0; font-size: 16px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fact { padding: 24px; background: var(--panel); border-radius: 8px; }
.fact b { display: block; font-weight: 600; margin-bottom: 4px; }
.fact span { display: block; font-size: 16px; color: var(--muted); }
.since-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
/* On phones the photos stack smaller than full width, centred under the grey boxes. */
@media (max-width: 599px) {
  .since-photos { justify-items: center; }
  .since-photos figure { width: 100%; max-width: 240px; }
}

/* Support */

.support {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.support-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.support-main h2 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.9; letter-spacing: -0.045em; }
.support-main > p { margin: 0; max-width: 560px; font-size: 20px; }
.support-block { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.support-block h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cost {
  margin: 0 0 16px;
  max-width: 760px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cost span { background: var(--ink); color: var(--gold); padding: 0 0.15em; border-radius: 4px; }
.costs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.costs li { padding: 8px 16px; background: rgba(255, 255, 255, 0.5); border-radius: 999px; font-size: 16px; font-weight: 600; }
.support-block > p:not(.cost) { margin: 0; font-size: 17px; }
.talk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.talk p { flex: 1 1 360px; margin: 0; font-size: 18px; }
.talk .btn { font-size: 16px; }

.give { flex: 1 1 340px; min-width: 0; }
.give-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: clamp(20px, 3vw, 32px); }
.give-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.bank { margin: 0; display: flex; flex-direction: column; font-size: 16px; }
.bank div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.bank div:last-child { border-bottom: 1px solid var(--rule); }
.bank dt { font-size: 14px; color: var(--muted-2); }
.bank dt small { font-size: inherit; }
.bank dd { margin: 0; font-weight: 600; }
.bank .copyable { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }
.copy {
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.copy:hover { background: var(--ink); color: var(--paper); }
/* Lets a row with a Copy button stay the same height as one without. */
.bank .copy { margin: -6px 0; }
.give-card .proof { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
/* EFT or Zapper: two pill buttons at the top of the card, shown by main.js. */
.pay-switch { display: flex; gap: 8px; margin-bottom: 20px; }
.pay-switch[hidden], .pay-panel[hidden] { display: none; }
.pay-switch button {
  min-height: 40px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.pay-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Without the script, the Zapper panel sits under the EFT one. */
.pay-panel + .pay-panel { margin-top: 32px; }
.zapper-qr { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; margin: 16px auto; }
.zapper-qr.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: var(--panel);
  border: 1.5px dashed var(--muted-3);
  border-radius: 8px;
  color: var(--muted-3);
}
.zapper-steps { margin: 0; font-size: 16px; }
/* Beside the support text, the box sets the gold section's height. The panels share one spot,
   so the section keeps the taller one's height, and the white box (drawn on the switch and the
   chosen panel) shrinks inside it. */
@media (min-width: 960px) {
  .give-card:has(> .pay-switch:not([hidden])) { display: grid; padding: 0; background: none; border: 0; }
  .give-card > .pay-switch:not([hidden]),
  .give-card > .pay-switch:not([hidden]) ~ .pay-panel {
    grid-column: 1;
    margin: 0;
    padding: clamp(20px, 3vw, 32px);
    background: var(--paper);
    border: 1.5px solid var(--ink);
  }
  .give-card > .pay-switch:not([hidden]) { padding-bottom: 20px; border-bottom: 0; border-radius: 8px 8px 0 0; }
  .give-card > .pay-switch:not([hidden]) ~ .pay-panel { grid-row: 2; align-self: start; padding-top: 0; border-top: 0; border-radius: 0 0 8px 8px; }
  .give-card > .pay-switch:not([hidden]) ~ .pay-panel[hidden] { display: block; visibility: hidden; }
}
.proof a { font-weight: 700; text-decoration: none; }
.proof a:hover { text-decoration: underline; }

/* Home footer */

.contact { padding-top: 80px; padding-bottom: 40px; }
.contact h2 { margin-bottom: 48px; font-size: clamp(48px, 8vw, 120px); line-height: 0.88; letter-spacing: -0.045em; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.contact-grid b { display: block; font-weight: 600; margin-bottom: 8px; }
.contact-grid p { margin: 0; color: var(--muted); }
.contact-grid p a { color: var(--muted); text-decoration: none; }
.contact-grid p a:hover { color: var(--gold-ink); text-decoration: underline; }
.contact .socials a { font-size: 18px; }
.legal {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted-3);
}

/* Updates */

.latest { padding-bottom: 96px; }

.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-top: clamp(40px, 6vw, 72px);
}
@media (max-width: 960px) { .latest-head { padding-top: 0; } }   /* as for .hero */
.latest-head h1 { font-size: clamp(56px, 9vw, 136px); line-height: 0.9; letter-spacing: -0.045em; }
.latest-head h1 + p { margin: 24px 0 0; max-width: 560px; font-size: 20px; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 20px; }
.post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
/* A video's cover gets a play button in the middle, so it doesn't look like a photo that failed. */
.post-video { position: relative; }
.post-video .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.post:hover .play { background: var(--gold); }
.post-date { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.post p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post .more { margin-top: auto; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.see-all { margin-top: 40px; display: flex; justify-content: center; }

.runway {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--dark-rule);
}
.runway > p { flex: 1 1 360px; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.runway div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; font-size: 19px; color: var(--on-dark); }
.runway div p { margin: 0; }
.runway div p:last-child { color: var(--paper); font-weight: 600; }

.show-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 32px; }
.show-head h2 { margin-top: 8px; font-size: clamp(40px, 5.5vw, 80px); line-height: 0.95; letter-spacing: -0.04em; }
.show-head h2 + p { margin: 12px 0 0; font-size: 18px; color: var(--on-dark); }
.show-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { max-width: 720px; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--muted-2);
}
.site-footer span:last-child { display: flex; gap: 20px; }
