/* Afro Code Academy — site styles */

:root {
  --ink: #17120e;
  --ink-2: #3b332c;
  --muted: #6d6259;
  --paper: #fbf6ee;
  --paper-2: #f4ece0;
  --card: #ffffff;
  --line: #e8dccb;
  --clay: #d4502a;
  --clay-d: #b3401d;
  --sun: #f4b13a;
  --leaf: #1c7657;
  --plum: #7a2e5f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(23, 18, 14, .06), 0 18px 40px -18px rgba(23, 18, 14, .28);
  --maxw: 1600px;
  --gutter: clamp(16px, 5vw, 80px);
  --font-d: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-d); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--warm { background: radial-gradient(90% 120% at 100% 0%, rgba(244, 177, 58, .28), transparent 60%), linear-gradient(180deg, #fbefdc 0%, var(--paper) 100%); }
.section--green { background: radial-gradient(90% 120% at 0% 100%, rgba(28, 118, 87, .16), transparent 60%), linear-gradient(180deg, #edf2ea 0%, #f6f3ea 100%); }
.section--tint { background: radial-gradient(70% 90% at 50% 0%, rgba(212, 80, 42, .08), transparent 70%), var(--paper-2); }
.section--dark { position: relative; background: radial-gradient(80% 80% at 85% 0%, rgba(212, 80, 42, .28), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(122, 46, 95, .35), transparent 60%), var(--ink); color: #d9cfc3; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--sun); }
.section--dark .lead { color: #d9cfc3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay-d); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-2); }
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.hl { color: var(--clay); }
mark { background: linear-gradient(transparent 58%, rgba(244, 177, 58, .55) 58%); color: inherit; padding: 0 .1em; }

/* Kente-inspired pattern strip */
.kente {
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--clay) 0 34px, var(--sun) 34px 48px, var(--leaf) 48px 78px,
      var(--ink) 78px 86px, var(--sun) 86px 100px, var(--plum) 100px 118px, var(--sun) 118px 126px);
}

/* Buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 700 1rem/1.2 var(--font-b);
  text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(23, 18, 14, .5); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { --bg: var(--clay); }
.btn--primary:hover { --bg: var(--clay-d); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 246, 238, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23, 18, 14, .4); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--clay); color: #fff; font: 800 1rem/1 var(--font-d); letter-spacing: -.04em;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
  transform: rotate(-6deg); transition: transform .3s ease;
}
.brand:hover .brand-mark { transform: rotate(0); }
.brand-text { font: 800 1.15rem/1 var(--font-d); letter-spacing: -.02em; }
.brand-text small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(23, 18, 14, .06); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--clay-d); background: rgba(212, 80, 42, .1); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-actions .btn { padding: .65em 1.2em; font-size: .95rem; }
.lang {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: #fff;
}
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang span { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; place-items: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(23, 18, 14, .35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header:not(.nav-open) .nav { display: none; }
  .nav-open .nav-toggle .i-menu { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav-actions { margin: 0; justify-content: space-between; }
  .nav-actions .btn { flex: 1; }
}

/* Home hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 177, 58, .35), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 560px; }
.hero-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); max-width: 560px; font-size: .98rem; }
.hero-note strong { color: var(--ink); }
.hero-note .dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px rgba(28, 118, 87, .15); }

.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(12, 1fr); aspect-ratio: 1 / 1.02; }
.collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: #fff; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-column: 1 / 10; grid-row: 1 / 8; z-index: 1; }
.collage .c2 { grid-column: 7 / 13; grid-row: 5 / 11; z-index: 2; transform: rotate(3deg); }
.collage .c3 { grid-column: 2 / 8; grid-row: 8 / 13; z-index: 3; transform: rotate(-3deg); }
.badge-free {
  position: absolute; z-index: 4; right: 2%; top: 4%;
  width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--sun); color: var(--ink); font: 800 clamp(.95rem, 1.3vw, 1.15rem)/1.05 var(--font-d);
  box-shadow: var(--shadow); transform: rotate(10deg);
}
.badge-free b { display: block; font-size: 1.9em; letter-spacing: -.04em; }
.badge-place {
  position: absolute; z-index: 4; right: 1%; bottom: 2%;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 16px; border-radius: 18px;
  background: var(--ink); color: #fff; font: 800 clamp(1rem, 1.4vw, 1.2rem)/1.15 var(--font-d); letter-spacing: -.01em;
  box-shadow: var(--shadow); transform: rotate(-4deg); border: 3px solid #fff;
}
.badge-place svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.badge-place small { display: block; font: 700 .7rem/1.3 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* Facts band */
.facts { background: var(--ink); color: #f3ebe0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-d); color: var(--sun); margin-bottom: 8px; letter-spacing: -.02em; }
.fact span { font-size: .95rem; color: #d9cfc3; }
@media (max-width: 800px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 128px); }
.split--rev .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .photo::before, .photo--left::before { inset: 16px 10px -10px 10px; }
  .split--rev .split-media { order: 0; }
}
.photo { position: relative; margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.photo::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: var(--radius);
  background: var(--sun); z-index: 0;
}
.photo--clay::before { background: var(--clay); }
.photo--leaf::before { background: var(--leaf); }
.photo--plum::before { background: var(--plum); }
.photo--left::before { inset: 22px 22px -18px -18px; }
.photo figcaption { position: relative; z-index: 1; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair img:nth-child(2) { margin-top: 48px; }

.highlights { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.highlights li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.highlights strong { display: block; color: var(--ink); font-size: 1rem; }
.highlights li > span:last-child { font-size: .94rem; line-height: 1.5; }
.hl-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--clay); color: #fff; }
.highlights li:nth-child(2) .hl-icon { background: var(--sun); color: var(--ink); }
.highlights li:nth-child(3) .hl-icon { background: var(--leaf); }
.hl-icon svg { width: 22px; height: 22px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.pill-list li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.callout {
  display: flex; gap: 14px; align-items: center; margin: 24px 0 0; padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(28, 118, 87, .09); color: var(--ink); font-weight: 600;
}
.callout svg { flex: none; width: 26px; height: 26px; color: var(--leaf); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Robotics teaser */
.section--robotics {
  position: relative; overflow: hidden;
  background:
    radial-gradient(rgba(23, 18, 14, .09) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(135deg, #f7c562 0%, #f4b13a 45%, #ee9b3a 100%);
  color: var(--ink);
}
.section--robotics::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--clay) 0 34px, var(--ink) 34px 42px, var(--leaf) 42px 72px, var(--paper) 72px 80px, var(--plum) 80px 98px, var(--ink) 98px 106px);
}
.section--robotics .hl { color: var(--clay-d); }
.section--robotics .robotics-copy > p { color: var(--ink); }
.section--robotics .robo-points li { border-color: rgba(23, 18, 14, .12); box-shadow: 0 6px 16px -10px rgba(23, 18, 14, .4); }
.section--robotics .robo-note { color: var(--ink); }
.section--robotics .btn--ghost { border-color: var(--ink); }
.section--robotics .soon-sticker { background: var(--ink); color: var(--sun); }
.robotics { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.robotics h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.robotics-copy > p { font-size: 1.1rem; max-width: 600px; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--ink); color: var(--sun); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(244, 177, 58, .7); animation: soon-pulse 1.8s infinite; }
@keyframes soon-pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 177, 58, .7); } 70% { box-shadow: 0 0 0 12px rgba(244, 177, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 177, 58, 0); } }
.robo-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.robo-points li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: .95rem; }
.robo-points svg { width: 22px; height: 22px; color: var(--clay); }
.robo-points li:nth-child(2) svg { color: var(--leaf); }
.robo-points li:nth-child(3) svg { color: var(--plum); }
.robo-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .92rem; font-weight: 600; color: var(--leaf); }
.robo-note svg { width: 18px; height: 18px; }
.robotics-art {
  position: relative; border-radius: 28px; padding: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(244, 177, 58, .22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #2b1f33, var(--ink));
  box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.robotics-art img { width: 100%; height: auto; }
.soon-sticker {
  position: absolute; top: -22px; left: -18px; width: clamp(92px, 10vw, 120px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 10px;
  background: var(--clay); color: #fff; font: 800 clamp(.9rem, 1.2vw, 1.05rem)/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: var(--shadow); transform: rotate(-12deg); border: 4px solid #fff;
}
@media (max-width: 860px) {
  .robotics { grid-template-columns: 1fr; }
  .robotics-art { order: -1; transform: none; max-width: 520px; width: 100%; margin: 12px auto 0; }
}
@media (max-width: 600px) {
  .robotics-copy > p { font-size: 1rem; }
  .robo-points li { width: 100%; }
  .soon-sticker { display: none; }
}
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }

/* Storytelling teaser */
.section--stories {
  position: relative; overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(70% 90% at 0% 100%, rgba(244, 177, 58, .18), transparent 60%),
    linear-gradient(135deg, #14563f 0%, var(--leaf) 50%, #0f4533 100%);
  color: #fff;
}
.section--stories h2 { color: #fff; }
.section--stories .hl { color: var(--sun); }
.section--stories .robotics-copy > p { color: #e9f3ee; }
.section--stories .soon-pill { background: var(--sun); color: var(--ink); }
.section--stories .soon-dot { background: var(--ink); }
.section--stories .robo-points li { border-color: transparent; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }
.section--stories .robo-points li:nth-child(2) svg { color: var(--leaf); }
.section--stories .robo-note { color: var(--sun); }
.section--stories .soon-sticker { background: var(--sun); color: var(--ink); }
.robotics--flip .robotics-art { order: -1; transform: rotate(-1.5deg); }
.robotics--flip .soon-sticker { left: auto; right: -18px; transform: rotate(12deg); }
@media (max-width: 860px) {
  .robotics--flip .robotics-art { transform: none; }
}

/* Course cards */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .courses { grid-template-columns: 1fr; } }
.course {
  --accent: var(--clay); --accent-text: var(--clay-d);
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: start;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 18, 14, .04);
  transition: transform .25s ease, box-shadow .25s ease; overflow: hidden;
}
.course::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course:nth-child(2) { --accent: var(--sun); --accent-text: #b27708; }
.course:nth-child(3) { --accent: var(--leaf); --accent-text: var(--leaf); }
.course:nth-child(4) { --accent: var(--plum); --accent-text: var(--plum); }
.course-icon {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
  background: var(--accent); color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14);
  transform: rotate(-4deg); transition: transform .3s ease;
}
.course:nth-child(2) .course-icon { color: var(--ink); }
.course:hover .course-icon { transform: rotate(0) scale(1.04); }
.course-icon svg { width: 38px; height: 38px; }
.course-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.course-age { font: 800 2.4rem/1 var(--font-d); color: var(--accent-text); letter-spacing: -.04em; }
.course-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.course h3 { font-size: 1.4rem; margin-bottom: .4em; }
.course p { font-size: 1rem; margin-bottom: 18px; }
.course .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course .tags span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.course .tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 520px) {
  .course { grid-template-columns: 1fr; gap: 16px; }
  .course-icon { width: 60px; height: 60px; border-radius: 18px; }
  .course-icon svg { width: 30px; height: 30px; }
}

/* Gallery preview mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; }
.mosaic a { position: relative; border-radius: var(--radius-sm); overflow: hidden; display: block; background: var(--paper-2); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img, .masonry a:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .mosaic a:nth-child(1) { grid-column: 1 / -1; grid-row: span 1; }
}

/* Full gallery */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry a { position: relative; display: block; margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; background: var(--paper-2); }
.masonry img { width: 100%; height: auto; transition: transform .5s ease; }
.masonry .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(23, 18, 14, .78)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.masonry a:hover .cap, .masonry a:focus-visible .cap { opacity: 1; transform: none; }
.zoom-icon {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
}
.zoom-icon svg { width: 18px; height: 18px; }
.masonry a:hover .zoom-icon, .mosaic a:hover .zoom-icon { opacity: 1; transform: none; }
@media (hover: none) { .masonry .cap { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: rgba(14, 11, 9, .95); color: #fff; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; font-size: .9rem; color: #d7cdc1; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-caption { text-align: center; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); font-weight: 600; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-caption { padding-inline: 76px; }
}

/* Image CTA band */
.band { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(23, 18, 14, .92) 0%, rgba(23, 18, 14, .72) 45%, rgba(23, 18, 14, .2) 100%); }
.band .container { padding-block: clamp(80px, 11vw, 150px); }
.band h2 { color: #fff; max-width: 640px; }
.band p { max-width: 560px; color: #efe6da; font-size: 1.15rem; }
.band .eyebrow { color: var(--sun); }

/* Page hero (sub pages) */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 18, 14, .35), rgba(23, 18, 14, .85)); }
.page-hero .container { padding-block: clamp(96px, 14vw, 180px) clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #efe6da; max-width: 680px; margin: 0; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero--plain { color: var(--ink); background: var(--paper-2); }
.page-hero--plain::before { display: none; }
.page-hero--plain h1 { color: var(--ink); }
.page-hero--plain .lead { color: var(--ink-2); }
.page-hero--plain .eyebrow { color: var(--clay-d); }
.page-hero--plain .container { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); }

/* Prose */
.prose { max-width: 720px; }
.prose p { font-size: 1.1rem; }
.quote {
  margin: clamp(48px, 7vw, 80px) auto; max-width: 880px; text-align: center;
  font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1.2 var(--font-d); color: var(--ink); letter-spacing: -.02em;
}
.quote::before { content: "“"; display: block; font-size: 4em; line-height: .6; color: var(--clay); margin-bottom: 10px; }

/* Info cards */
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.meta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 700; color: var(--ink); }
.meta svg { width: 18px; height: 18px; color: var(--clay); }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 700px) { .tracks { grid-template-columns: 1fr; } }
.track { padding: 28px; border-radius: var(--radius); background: var(--ink); color: #e9e0d4; }
.track h3 { color: #fff; display: flex; align-items: center; gap: 12px; }
.track h3 span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--clay); font-size: 1rem; color: #fff; }
.track:nth-child(2) h3 span { background: var(--leaf); }
.track p { margin: 0; }
.age-list { display: grid; gap: 16px; margin-top: 28px; }
.age-item { display: grid; grid-template-columns: 56px 110px 1fr; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.age-item b { font: 800 1.7rem/1.1 var(--font-d); color: var(--clay); letter-spacing: -.03em; }
.age-item:nth-child(2) b { color: #c98a12; }
.age-item:nth-child(3) b { color: var(--leaf); }
.age-item p { margin: 0; font-size: 1rem; }
.age-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--clay); color: #fff; }
.age-item:nth-child(2) .age-icon { background: var(--sun); color: var(--ink); }
.age-item:nth-child(3) .age-icon { background: var(--leaf); }
.age-icon svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .age-item { grid-template-columns: 56px 1fr; gap: 10px 16px; } .age-item p { grid-column: 1 / -1; } }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1280px; margin-inline: auto; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }
.member { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.member-head img { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--paper-2); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sun); }
.member:nth-child(3n+2) .member-head img { box-shadow: 0 0 0 2px var(--clay); }
.member:nth-child(3n) .member-head img { box-shadow: 0 0 0 2px var(--leaf); }
.member h3 { margin-bottom: 4px; font-size: 1.25rem; }
.member-role { font-size: .85rem; font-weight: 700; line-height: 1.35; color: var(--clay-d); }
.member p { font-size: .94rem; line-height: 1.65; margin: 0; }
.member--join { justify-content: center; align-items: flex-start; padding: 28px; background: var(--ink); border-color: var(--ink); color: #e9e0d4; }
.member--join h3 { color: #fff; font-size: 1.6rem; }
.member--join .plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; background: var(--sun); color: var(--ink); font: 800 2rem/1 var(--font-d); }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }
.role { padding: 22px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.role svg { width: 30px; height: 30px; color: var(--clay); margin-bottom: 10px; }
.role h3 { font-size: 1.1rem; margin-bottom: 6px; }
.role p { font-size: .95rem; margin: 0; }

/* Partners */
.partners { display: grid; gap: 24px; }
.partner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.partner-logo { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--paper); padding: 24px; }
.partner-logo img { max-height: 110px; width: auto; object-fit: contain; }
.partner h3 a { color: var(--ink); text-decoration: none; }
.partner h3 a:hover { color: var(--clay); }
.partner-place { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.partner p:last-child { margin: 0; }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; } }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 72px); }
.logo-strip a { display: block; opacity: .85; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-strip a:hover { opacity: 1; filter: none; }
.logo-strip img { height: 56px; width: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink-2); }
.contact-card .ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--clay); color: #fff; }
.contact-card:nth-child(2) .ic { background: var(--plum); }
.contact-card:nth-child(3) .ic { background: var(--ink); }
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font: 700 1.15rem/1.3 var(--font-d); color: var(--ink); word-break: break-word; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc4b7; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #a89c8f; }
.footer-about { margin-top: 18px; font-size: .95rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-family: var(--font-b); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e9e0d4; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); transition: background .2s; }
.socials a:hover { background: var(--clay); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #a89c8f; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Phone refinements ---------- */
@media (max-width: 860px) {
  .split + .split { margin-top: 64px; }
  .photo-pair img { aspect-ratio: 4 / 5; }
  .photo-pair img:nth-child(2) { margin-top: 28px; }
  .photo::before, .photo--left::before { inset: 16px 10px -10px 10px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: clamp(1.75rem, 7.5vw, 2.1rem); }
  .lead { font-size: 1.05rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }

  /* Buttons stack full-width */
  .btn-row .btn, .downloads .btn { width: 100%; }
  .btn-row { margin-top: 22px; }

  /* Hero */
  .hero { padding-block: 28px 48px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); margin-bottom: 16px; }
  .hero-note { margin-top: 20px; font-size: .92rem; }
  .collage { margin-top: 8px; }
  .collage figure { border-width: 4px; border-radius: 16px; }
  .badge-free { width: 84px; font-size: .85rem; }
  .badge-place { gap: 8px; padding: 9px 12px 9px 10px; font-size: .9rem; border-radius: 14px; }
  .badge-place svg { width: 26px; height: 26px; padding: 5px; }
  .badge-place small { font-size: .6rem; }

  /* Facts */
  .fact { padding: 20px 14px; }
  .fact b { font-size: 1.6rem; }
  .fact span { font-size: .85rem; }

  /* Photos */
  .photo img { border-radius: 16px; }
  .photo-pair { gap: 10px; }
  .photo-pair img { border-radius: 16px; aspect-ratio: 1 / 1; }
  .photo-pair img:nth-child(2) { margin-top: 0; }

  /* Page heroes */
  .page-hero .container { padding-block: 72px 32px; }
  .page-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }

  /* Cards */
  .course { padding: 22px 20px; }
  .course h3 { font-size: 1.2rem; }
  .member { padding: 20px; }
  .member-head img { width: 68px; height: 68px; }
  .role { padding: 18px; }
  .age-item { padding: 18px; }
  .track { padding: 22px; }
  .partner { padding: 18px; }
  .partner-logo { aspect-ratio: auto; padding: 20px; }
  .partner-logo img { max-height: 70px; }
  .contact-card { padding: 16px 18px; gap: 14px; }
  .contact-card .ic { width: 46px; height: 46px; border-radius: 14px; }
  .contact-card strong { font-size: 1rem; }
  .logo-strip { gap: 28px; }
  .logo-strip img { height: 40px; }
  .quote { font-size: 1.5rem; margin-block: 40px; }

  /* Gallery: two columns */
  .masonry { columns: 2; column-gap: 10px; }
  .masonry a { margin-bottom: 10px; border-radius: 10px; }
  .masonry .cap { display: none; }
  .mosaic { gap: 10px; }

  /* Bands */
  .band .container { padding-block: 64px; }
  .band::before { background: linear-gradient(180deg, rgba(23, 18, 14, .55) 0%, rgba(23, 18, 14, .9) 100%); }
  .band p { font-size: 1rem; }

  /* Footer */
  .footer-grid { gap: 28px; padding-block: 44px 28px; }
}

