:root {
  --ink: #1c2526;
  --teal: #0f6864;
  --teal-dark: #0b4f4c;
  --soft: #f1f5f4;
  --paper: #ffffff;
  --muted: #55625f;
  --line: #d5dedc;
  --font: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
img, iframe { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; max-width: 64ch; }
ul { margin: 0; padding: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 5; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--teal); font: 400 2rem/1 "Alfa Slab One", Georgia, serif; }
.brand-name { font-size: 1.2rem; line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav > a, .menu summary { color: var(--ink); text-decoration: none; padding: 6px 0; cursor: pointer; }
.site-nav > a:hover, .menu summary:hover { color: var(--teal); }
.site-nav a[aria-current="page"], .menu.active summary { color: var(--teal); font-weight: 600; }
.site-nav > a.nav-cta { padding: 8px 16px; border: 1px solid var(--teal); border-radius: 3px; color: var(--teal); }
.site-nav > a.nav-cta:hover, .site-nav > a.nav-cta[aria-current="page"] { background: var(--teal); color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(0) rotate(225deg); }
.menu-list { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 210px; margin-top: 6px; padding: 6px 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 40, 38, .14); }
.menu-list a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--soft); color: var(--teal); }

/* Home hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.hero p.intro { margin-top: 18px; font-size: 1.2rem; color: var(--muted); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 20px; font: 600 1rem/1.2 var(--font); border: 1px solid var(--teal); border-radius: 3px; background: var(--teal); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.quiet { background: transparent; color: var(--teal); }
.btn.quiet:hover { background: var(--soft); color: var(--teal-dark); }

figure { margin: 0; }
figure img { width: 100%; height: auto; object-fit: cover; }
figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.hero .photo-slot { aspect-ratio: 4 / 3; }
.hero-photo { width: 100%; max-width: 400px; justify-self: center; }
.hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 0%; }
.leaders { margin-top: 18px; font-weight: 600; }

/* Sections */
.band { padding-block: clamp(40px, 6vw, 72px); }
.band.tint { background: var(--soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lead { margin-top: 12px; font-size: 1.1rem; color: var(--muted); }
.stack > * + * { margin-top: 24px; }
.course ul { margin: 8px 0 0 20px; }
.course li + li { margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-top: 20px; list-style: none; }
.facts strong { font-size: 1.35rem; margin-right: 6px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.gallery figure img, .photo-slot { aspect-ratio: 4 / 3; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.wide img { aspect-ratio: auto; border: 1px solid var(--line); }
.photo-slot { display: grid; place-items: center; padding: 16px; text-align: center; font-size: .92rem; color: var(--muted); background: var(--soft); }
.band.tint .photo-slot { background: var(--paper); }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 24px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 16px; }
.logos img { height: 96px; width: auto; max-width: 100%; }
.logos.large img { height: 150px; }
.partners ul { margin-top: 10px; list-style: none; }
.partners li { padding: 6px 0; }

/* Find help */
.finder { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); }
.finder label.field { display: block; font-weight: 600; margin-bottom: 6px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 10px; }
.finder input[type="text"] { flex: 1 1 240px; min-width: 0; padding: 12px; font: inherit; border: 1px solid #8a9a97; border-radius: 3px; background: #fff; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.finder .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.note { font-size: .94rem; color: var(--muted); }
.status { margin-top: 18px; font-weight: 600; }
.status.err { color: #9c1f12; }
.results { margin-top: 12px; list-style: none; }
.results li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.results .dist { font-weight: 700; }
.results h3 { font-size: 1.1rem; }
.results .meta { margin-top: 4px; color: var(--muted); font-size: .97rem; }
.results .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.tag { display: inline-block; margin-top: 6px; padding: 1px 8px; font-size: .85rem; background: var(--soft); }

.help-now { margin: 20px 0 26px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); }

/* Lessons */
.lessons-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.player { position: sticky; top: 16px; }
.player-frame { aspect-ratio: 16 / 9; background: var(--ink); color: #fff; display: grid; place-items: center; padding: 16px; text-align: center; }
.player-frame:has(iframe), .player-frame:has(video) { padding: 0; }
.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; }
.player-title { margin-top: 10px; font-weight: 600; }
.module + .module { margin-top: 28px; }
.lesson-list { margin-top: 8px; list-style: none; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-btn, .lesson-off { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 8px; font: inherit; text-align: left; color: var(--ink); background: none; border: 0; }
.lesson-btn { cursor: pointer; font-weight: 600; }
.lesson-btn span:last-child { color: var(--teal); }
.lesson-btn:hover { background: var(--paper); }
.lesson-btn[aria-pressed="true"] { background: var(--teal); color: #fff; }
.lesson-btn[aria-pressed="true"] span:last-child { color: #fff; }
.lesson-off { color: var(--muted); }
.lesson-btn span:last-child, .lesson-off span:last-child { flex: none; font-weight: 400; font-size: .94rem; }

/* Unhoused AI sections */
.subnav { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 10px; }
.subnav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.subnav a:hover { color: var(--teal); }
section[id] { scroll-margin-top: 56px; }
.centered { text-align: center; }
.centered p { margin: 10px auto 0; }
.centered h2.next { margin-top: 40px; }
.centered .approach { margin-top: 14px; font-weight: 700; font-style: italic; }
.centered .current { margin-top: 24px; }
.centered .logos { justify-content: center; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.partner img { height: 170px; width: 100%; object-fit: contain; }
.summit-photo { margin-top: 32px; }
.summit-photo img { width: 100%; }

/* About */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.person img, .person .photo-slot { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%; margin-bottom: 14px; }
.person .role { font-weight: 600; color: var(--teal); }
.person p + p { margin-top: 8px; }
.timeline { margin-top: 4px; list-style: none; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline time { font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: .95rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between; }

@media (max-width: 860px) {
  .hero .wrap, .split, .lessons-layout { grid-template-columns: minmax(0, 1fr); }
  .people, .gallery { grid-template-columns: minmax(0, 1fr); }
  .menu-list { min-width: 190px; }
  .brand-name { font-size: 1.05rem; }
  .player { position: static; order: -1; }
}
@media (max-width: 520px) {
  .partners, .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline li, .results li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Course progress and certificate */
.player-status { margin-top: 4px; font-size: .94rem; color: var(--muted); }
.cert-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 20px; }
.cert-form input { flex: 1 1 260px; min-width: 0; padding: 12px; font: inherit; border: 1px solid #8a9a97; border-radius: 3px; }
.cert { margin-top: 28px; aspect-ratio: 11 / 8.5; max-width: 880px; background: #fff; border: 10px solid var(--teal); outline: 2px solid var(--teal); outline-offset: -18px; display: grid; place-content: center; text-align: center; padding: 6% 8%; gap: 2px; }
.cert .c-org { font: 700 clamp(.7rem, 1.6vw, 1rem)/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.cert .c-title { margin-top: 3%; font: 400 clamp(1.4rem, 4.2vw, 2.7rem)/1.1 "Alfa Slab One", Georgia, serif; color: var(--ink); }
.cert .c-small { margin-top: 3%; font-size: clamp(.75rem, 1.7vw, 1.05rem); color: var(--muted); }
.cert .c-name { margin-top: 1%; font: 700 clamp(1.3rem, 4vw, 2.5rem)/1.2 var(--display); color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1%; }
.cert .c-body { margin-top: 2%; font-size: clamp(.75rem, 1.7vw, 1.05rem); color: var(--ink); }
.cert .c-foot { margin-top: 5%; display: flex; justify-content: space-between; gap: 16px; font-size: clamp(.65rem, 1.4vw, .9rem); color: var(--muted); text-align: left; }
.cert .c-foot strong { display: block; color: var(--ink); }
.todo-list { margin-top: 16px; columns: 2 280px; }
.todo-list li { break-inside: avoid; padding: 3px 0; }
