/* The Glow Institute — shared stylesheet
   World: a white worksheet; near-black ink; amber highlighter on the facts that matter;
   pencil-grey notes and hairlines; photographs pasted in as figures.
   Edit the tokens below to retune the whole site. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../../fonts/bricolage-grotesque-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/atkinson-hyperlegible-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/atkinson-hyperlegible-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/atkinson-hyperlegible-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/atkinson-hyperlegible-bold-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #171512;
  --ink-2: #2b2824;
  --pencil: #6b655c;
  --rule: #e6e2d8;
  --rule-2: #cfc9bb;
  --hl: #ffc62b;
  --hl-deep: #f0b400;
  --hl-soft: rgba(255, 198, 43, 0.38);
  --hl-ink: rgba(255, 198, 43, 0.85);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --container: 1200px;
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 10px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-sweep: 650ms;
  --shadow-lift: 0 10px 28px rgba(23, 21, 18, 0.12), 0 2px 6px rgba(23, 21, 18, 0.06);

  color-scheme: light;
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--rule-2) var(--paper);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
::selection { background: var(--hl); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: var(--ink); }
a:hover { text-decoration-color: var(--hl-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.6rem, 5.3vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); letter-spacing: -0.01em; line-height: 1.15; font-variation-settings: "opsz" 24; }
h4 { font-size: 1.125rem; line-height: 1.25; letter-spacing: 0; font-weight: 700; font-variation-settings: "opsz" 14; }
p, li, dd, dt { max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose > :first-child { margin-top: 0; }
.pencil { color: var(--pencil); }
.small { font-size: 0.9375rem; }
strong { font-weight: 700; }
.nums { font-variant-numeric: tabular-nums lining-nums; }

/* Highlighter: the one authored mark. The sweep draws once when revealed. */
.hl {
  background-image: linear-gradient(transparent 14%, var(--hl-ink) 14%, var(--hl-ink) 86%, transparent 86%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
  margin: 0 -0.12em;
}
.js .hl { background-size: 0% 100%; transition: background-size var(--t-sweep) var(--ease-out); }
.js .is-in .hl, .js .hl.is-in { background-size: 100% 100%; }
.js .is-in .hl:nth-of-type(2) { transition-delay: 200ms; }
.js .is-in .hl:nth-of-type(3) { transition-delay: 400ms; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section + .section { padding-top: 0; }
.section__head { margin-bottom: var(--space-4); max-width: 46rem; }
.section__head p { margin-top: var(--space-2); }
.rule { border: 0; border-top: 1px solid var(--rule); }
.rule--ink { border-top: 2px solid var(--ink); }
.grid-2 { display: grid; gap: var(--space-4) var(--space-5); grid-template-columns: 1fr; align-items: start; }
.grid-3 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2--wide { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 6px 18px rgba(23, 21, 18, 0.05); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 5rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.45rem; text-decoration: none; white-space: nowrap; }
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 1.95rem; letter-spacing: -0.045em; line-height: 1; font-variation-settings: "opsz" 96; color: var(--ink); }
.wordmark__o { position: relative; display: inline-block; width: 0.72em; height: 0.72em; margin: 0 0.05em; vertical-align: baseline; }
.wordmark__o::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hl-soft); transform: translate(-18%, -18%); }
.wordmark__o::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hl); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); font-variation-settings: "opsz" 48; }
@media (max-width: 480px) { .wordmark { font-size: 1.6rem; } .brand__word { font-size: 1.1rem; } }
.site-nav__list { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.site-nav__list a:not(.btn) {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; padding: 0.2rem 0.3rem;
  background-image: linear-gradient(transparent 22%, var(--hl-ink) 22%, var(--hl-ink) 84%, transparent 84%);
  background-repeat: no-repeat; background-size: 0% 100%; background-position: left;
  transition: background-size 320ms var(--ease-out);
}
.site-nav__list a:not(.btn):hover, .site-nav__list a:not(.btn):focus-visible, .site-nav__list a[aria-current="page"] { background-size: 100% 100%; }
.site-nav__list a[aria-current="page"] { cursor: default; }
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 0.5rem 0.9rem; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 5rem 0 0 0; background: var(--paper); z-index: 49;
    padding: var(--space-2) var(--gutter) var(--space-5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--rule); }
  .site-nav__list a:not(.btn) { display: block; font-size: 1.5rem; font-family: var(--font-display); font-weight: 700; line-height: 1.2; padding: 1rem 0.25rem; background-image: linear-gradient(transparent 36%, var(--hl-ink) 36%, var(--hl-ink) 70%, transparent 70%); background-position: left center; }
  .site-nav__cta { border-bottom: 0 !important; padding-top: var(--space-3); }
  .site-nav__cta .btn { width: 100%; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--hl); color: var(--ink); border: 1.5px solid var(--hl);
  padding: 0.95rem 1.6rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn:hover { background: var(--hl-deep); border-color: var(--hl-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240, 180, 0, 0.28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); box-shadow: 0 8px 20px rgba(23, 21, 18, 0.2); }
.btn--outline { background: transparent; border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 8px 20px rgba(23, 21, 18, 0.18); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; display: inline-flex; align-items: center; gap: 0.35rem; }
.link svg { width: 1em; height: 1em; transition: transform var(--t-fast) var(--ease-out); }
.link:hover svg { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }

/* ---------- Circled numerals (used where sequence carries meaning) ---------- */
.num {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1;
  background: var(--paper); flex: none; transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.num--lg { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
.num.is-on, .is-in .num--fill { background: var(--hl); border-color: var(--hl); }

/* ---------- Figures: photographs pasted onto the sheet ---------- */
.fig { --tilt: 1.2deg; position: relative; margin: 0; }
.fig__frame { position: relative; transform: rotate(var(--tilt)); background: var(--paper); padding: 0; box-shadow: var(--shadow-lift); border-radius: 2px; overflow: visible; }
.fig { --tape-x: 50%; --tape-rot: -3deg; --tape-w: 112px; --tape-y: -12px; }
.fig__frame::before {
  content: ""; position: absolute; top: var(--tape-y); left: var(--tape-x); width: var(--tape-w); height: 26px; transform: translateX(-50%) rotate(var(--tape-rot));
  background: var(--hl-soft); border-radius: 2px; z-index: 2; pointer-events: none;
}
.fig--tape-left { --tape-x: 24%; --tape-rot: -7deg; --tape-w: 96px; }
.fig--tape-right { --tape-x: 78%; --tape-rot: 5deg; --tape-w: 120px; }
.grid-3 .fig:nth-child(2) { --tape-x: 36%; --tape-rot: 4deg; --tape-w: 88px; --tape-y: -10px; }
.grid-3 .fig:nth-child(3) { --tape-x: 64%; --tape-rot: -5deg; --tape-w: 130px; --tape-y: -14px; }
.grid-2 .fig:nth-child(2) { --tape-x: 70%; --tape-rot: 6deg; --tape-w: 100px; --tape-y: -11px; }
.fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.fig--landscape img { aspect-ratio: 4 / 3; object-position: center 35%; }
.fig--wide img { aspect-ratio: 16 / 10; object-position: center 40%; }
.fig figcaption { margin-top: 1rem; font-size: 0.9375rem; color: var(--pencil); max-width: none; }
.fig--left { --tilt: -1.1deg; }
.fig--flat { --tilt: 0deg; }
.js .reveal .fig__frame { transform: rotate(calc(var(--tilt) * 2.2)) translateY(10px); transition: transform 900ms var(--ease-out); }
.js .reveal.is-in .fig__frame { transform: rotate(var(--tilt)); }

/* ---------- Register: the figures row ---------- */
.register { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-4); border-top: 2px solid var(--ink); padding-top: var(--space-3); }
@media (min-width: 760px) { .register { grid-template-columns: repeat(4, 1fr); } }
.register__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.register__label { display: block; margin-top: 0.4rem; color: var(--pencil); font-size: 0.9375rem; }

/* ---------- Hero (home) ---------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--space-5); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 4.5rem 1fr minmax(300px, 34%); gap: clamp(1.5rem, 3vw, 2.75rem); } }
.hero__steps { display: none; }
@media (min-width: 900px) {
  .hero__steps { display: flex; flex-direction: column; gap: 2.4rem; padding-top: 1rem; list-style: none; padding-left: 0; position: relative; }
  .hero__steps::before { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 3.4rem; bottom: 1.2rem; border-left: 2px dashed var(--rule-2); }
  .hero__steps li { position: relative; }
  .hero__steps a { text-decoration: none; display: inline-grid; justify-items: center; gap: 0.35rem; }
  .hero__steps a:hover .num, .hero__steps a:focus-visible .num { background: var(--hl); border-color: var(--hl); }
  .hero__steps .lbl { font-size: 0.875rem; font-weight: 700; color: var(--pencil); background: var(--paper); padding: 0 0.2rem; }
}
.hero h1 { margin-bottom: var(--space-3); max-width: 15ch; }
.hero .lede { max-width: 38rem; }
.hero .actions { margin-top: var(--space-4); }
.hero__note { margin-top: var(--space-4); padding-left: 1rem; border-left: 2px solid var(--rule-2); color: var(--pencil); max-width: 34rem; font-size: 0.9375rem; }
.hero__fig { margin-top: 1rem; }
@media (min-width: 900px) { .hero__fig { margin-top: 0.5rem; } }
.hero__register { margin-top: var(--space-5); }

/* ---------- Steps (program) ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3); align-items: start; }
.steps h3 { margin-top: 0.45rem; }
.steps p { grid-column: 2; margin-top: -0.2rem; color: var(--ink-2); }

/* ---------- Ruled lists (worksheet lines) ---------- */
.ruled { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.ruled > li { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.5rem var(--space-4); grid-template-columns: 1fr; align-items: baseline; }
@media (min-width: 760px) { .ruled--2col > li { grid-template-columns: minmax(10rem, 16rem) 1fr; } .ruled--3col > li { grid-template-columns: minmax(8rem, 12rem) 1fr auto; } }
.ruled .label { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.ruled p { color: var(--ink-2); }

/* Pillars: G L O W */
.pillars { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); } }
.pillars li { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem var(--space-3); align-items: start; padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.pillars .num { width: 3.5rem; height: 3.5rem; font-size: 1.6rem; grid-row: span 2; }
.pillars h3 { margin-top: 0.55rem; }
.pillars p { grid-column: 2; color: var(--ink-2); }

/* Checklist (what's next) */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--space-2); align-items: start; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.checklist .box { width: 1.4rem; height: 1.4rem; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; margin-top: 0.2rem; background: var(--paper); }
.checklist .box svg { width: 1rem; height: 1rem; opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.checklist li.is-done .box { background: var(--hl); border-color: var(--hl); }
.checklist li.is-done .box svg, .no-js .checklist li.is-done .box svg { opacity: 1; transform: none; }
.checklist li.is-next .box { border-style: dashed; }
.checklist .what { font-weight: 700; }
.checklist .why { color: var(--pencil); font-size: 0.9375rem; display: block; margin-top: 0.15rem; }

/* Timeline (impact) */
.timeline { list-style: none; padding: 0; position: relative; border-top: 2px solid var(--ink); }
.timeline > li { display: grid; grid-template-columns: 1fr; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .timeline > li { grid-template-columns: 15rem 1fr; } }
.timeline__when { display: flex; align-items: center; gap: var(--space-2); }
.timeline__when .label { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.timeline__when .dates { display: block; color: var(--pencil); font-size: 0.9375rem; }
.timeline__facts { display: grid; gap: var(--space-2); }
.timeline__facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-2) var(--space-3); margin: 0; }
.timeline__facts dt { color: var(--pencil); font-size: 0.875rem; }
.timeline__facts dd { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.15rem; }
.timeline__facts ul { padding-left: 1.2rem; margin-top: 0.3rem; color: var(--ink-2); }
.timeline__facts ul li + li { margin-top: 0.3rem; }
.timeline > li.is-current .num { background: var(--hl); border-color: var(--hl); }

/* Placeholders: visibly marked, easy to find, never mistaken for fact */
.placeholder {
  display: inline-block; border: 1.5px dashed var(--hl-deep); border-radius: 6px; padding: 0.05em 0.45em; color: var(--pencil);
  font-family: var(--font-text); font-weight: 400; font-size: 0.9rem; line-height: 1.4; background: rgba(255, 198, 43, 0.08); vertical-align: middle;
}
dd .placeholder { font-size: 0.95rem; }

/* Roster (team) */
.people { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
.people li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 2px solid var(--ink); }
.people .initials { width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; grid-row: span 3; background: var(--paper); }
.people .name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "opsz" 24; }
.people .role { font-weight: 700; }
.people .class { color: var(--pencil); font-size: 0.9375rem; }
.roster { list-style: none; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .roster { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-5); } }
@media (min-width: 1000px) { .roster { grid-template-columns: repeat(3, 1fr); } }
.roster li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-weight: 700; }
.roster .class { color: var(--pencil); font-weight: 400; font-size: 0.875rem; white-space: nowrap; }

/* Fact sheet (definition list) */
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 0.2rem var(--space-3); padding: 1rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 11rem 1fr; } }
.facts dt { color: var(--pencil); font-size: 0.9375rem; }
.facts dd { font-weight: 700; }

/* Timetable: where GLOW sits in the English period */
.period { border-top: 2px solid var(--ink); display: grid; gap: 0; }
.period__row { display: grid; grid-template-columns: 1fr; gap: 0.25rem var(--space-3); padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 640px) { .period__row { grid-template-columns: 12rem 1fr; } }
.period__row .label { color: var(--pencil); font-size: 0.9375rem; }
.period__row .value { font-weight: 700; }
.period__row.is-glow .value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; font-variation-settings: "opsz" 24; }

/* Gallery */
.gallery { list-style: none; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-4) var(--space-3); } }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: 2px; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 16px rgba(23, 21, 18, 0.1); transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out); }
.gallery button:hover img { transform: translateY(-3px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
.gallery figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--pencil); max-width: none; }
.gallery__group { margin-bottom: var(--space-5); }
.gallery__group h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: var(--space-3); padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--paper); }
.lightbox::backdrop { background: rgba(23, 21, 18, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__stage { position: relative; width: min(100vw, 1100px); height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: 3.5rem 1rem 1.5rem; gap: 1rem; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto; margin: auto; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9375rem; }
.lightbox__caption { max-width: 60ch; color: rgba(255, 255, 255, 0.85); }
.lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(23, 21, 18, 0.5); color: #fff; cursor: pointer; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.lightbox__btn:hover { background: var(--hl); color: var(--ink); border-color: var(--hl); }
.lightbox__btn:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 1200px) { .lightbox__prev { left: -3.5rem; } .lightbox__next { right: -3.5rem; } }
.js .lightbox[open] .lightbox__stage { animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Forms: fill-in-the-blank lines ---------- */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field .hint { color: var(--pencil); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0.6rem 0.1rem;
  background-image: linear-gradient(var(--hl-soft), var(--hl-soft)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left bottom;
  transition: background-size 320ms var(--ease-out);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"), linear-gradient(var(--hl-soft), var(--hl-soft)); background-size: 1.1rem, 0% 100%; background-position: right 0.2rem center, left bottom; cursor: pointer; }
.field select:focus { background-size: 1.1rem, 100% 100%; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 100%; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--pencil); opacity: 1; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #b42318; }
.field .error { color: #b42318; font-size: 0.875rem; display: none; }
.field.is-invalid .error { display: block; }
.form__status { display: none; padding: var(--space-3); border: 2px solid var(--ink); border-radius: var(--radius); }
.form__status.is-shown { display: grid; gap: 0.5rem; }
.form__status h3 { font-size: 1.35rem; }
.form__status--error { border-color: #b42318; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }

/* Callout band (closing CTA) */
.band { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: var(--space-5) 0; }
.band__inner { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 900px) { .band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-5); } }
.band h2 { max-width: 20ch; }
.band .actions { justify-content: flex-start; }
@media (min-width: 900px) { .band .actions { justify-content: flex-end; } }

/* Page intro (secondary pages) */
.page-intro { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--space-4); }
.page-intro h1 { max-width: 18ch; margin-bottom: var(--space-3); }
.page-intro .lede { max-width: 42rem; }
.page-intro--split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .page-intro--split { grid-template-columns: 1.3fr 1fr; gap: var(--space-5); } }

/* Quote (About mission) */
.quote { border-top: 2px solid var(--ink); padding-top: var(--space-3); max-width: 44rem; }
.quote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; max-width: none; font-variation-settings: "opsz" 48; }
.quote cite { display: block; margin-top: var(--space-2); font-style: normal; color: var(--pencil); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); margin-top: 0; padding-block: var(--space-5) var(--space-4); }
.site-footer__grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-5); } }
.site-footer p { color: var(--ink-2); }
.site-footer__tag { color: var(--pencil); font-size: 0.9375rem; margin-top: 0.4rem; }
.site-footer h2 { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-text); font-weight: 700; color: var(--pencil); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); color: var(--pencil); font-size: 0.9375rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--none { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal .fig__frame, .js .hl, .site-nav__list a:not(.btn), .btn, .checklist .box svg, .num, .field input, .field textarea, .field select { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .fig__frame { transform: rotate(var(--tilt)); }
  .js .hl { background-size: 100% 100%; }
  .js .lightbox[open] .lightbox__stage { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .band, .nav-toggle { display: none; }
  .hl { background: none; text-decoration: underline; }
}

/* Founder block: a single, larger entry above the rest of leadership */
.people--lead { grid-template-columns: 1fr; margin-bottom: var(--space-3); }
.people--lead li { grid-template-columns: auto 1fr; padding: var(--space-4) 0; }
.people--lead .initials { width: 6rem; height: 6rem; font-size: 2rem; background: var(--hl); border-color: var(--hl); }
.people--lead .name { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.people--lead .role { font-size: 1.125rem; }
