/* ===== Design tokens ===== */
:root {
  --yellow: #F3B93A;
  --yellow-deep: #E2A227;
  --yellow-pale: #FFF3D6;
  --coral: #E85C41;
  --coral-dark: #C8442C;
  --ink: #17140F;
  --ink-soft: #4A4335;
  --cream: #FFFBF2;
  --white: #ffffff;

  /* --- Semantic tokens ---------------------------------------------------
     Everything below names a ROLE rather than a colour, which is what lets
     the dark theme exist: [data-theme="dark"] re-points these and every
     component follows. Same trick group.css already uses for blue.

     The split that matters: --ink is TEXT and --panel is the deliberately
     dark bands (footer, wildlife, involved cards). They were the same value
     in light mode, which is why one token used to do both jobs — but in dark
     mode text goes light while those bands stay dark, so they had to part
     company. --on-panel is text sitting on a panel: light in BOTH themes.  */
  --surface: #ffffff;                        /* cards on the page */
  --panel: #17140F;                          /* the dark bands */
  --on-panel: #FFFBF2;                       /* text on a dark band */
  --on-yellow: #17140F;                      /* text on a yellow/accent chip */
  --accent: #C8442C;                         /* eyebrows, links, arrows */
  --hero-bg: #F3B93A;
  --header-bg: rgba(255, 251, 242, 0.75);
  --header-bg-scrolled: rgba(255, 251, 242, 0.94);
  --hairline: rgba(23, 20, 15, 0.08);
  --hairline-strong: rgba(23, 20, 15, 0.16);
  --card-border: #17140F;
  --subtle-fill: rgba(23, 20, 15, 0.04);
  --subtle-fill-strong: rgba(23, 20, 15, 0.08);
  --tint-coral: #FCE1DA;
  --tint-yellow: #FDEBC3;
  --scrim: rgba(23, 20, 15, 0.5);
  color-scheme: light;

  --font-head: "Baloo 2", "Nunito Sans", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-md: 0 12px 30px -14px rgba(23, 20, 15, 0.3);
  --shadow-lg: 0 26px 60px -20px rgba(23, 20, 15, 0.4);
  --container: 1180px;
}

/* ===== Dark theme =====
   Opt-in only. prefers-color-scheme is deliberately NOT consulted: the site
   is light for everyone until a visitor picks dark, and that choice is
   remembered per browser. Applied by the inline script in each page's <head>
   so a returning visitor never sees a flash of the light theme first. */
[data-theme="dark"] {
  --yellow: #F3B93A;
  --yellow-deep: #F2C666;
  /* A deliberate elevation ladder, darkest first: page, alternating band,
     card, then the bands that are dark on purpose in either theme. Each step
     is far enough from the last to read as a separate surface — a tighter
     scale flattened the page into one slab of near-black. */
  --yellow-pale: #1C1710;
  --coral: #E85C41;
  --coral-dark: #C8442C;
  --accent: #FF9C82;
  --ink: #F7EFE0;
  --ink-soft: #C3B69C;
  --cream: #12100B;
  --surface: #262017;
  --panel: #302719;
  --hero-bg: #42310F;
  /* --yellow stays a light colour in dark mode, so anything sitting ON it
     still needs dark text. Using --ink here inverted to light-on-light. */
  --on-yellow: #12100B;
  --header-bg: rgba(20, 17, 12, 0.72);
  --header-bg-scrolled: rgba(20, 17, 12, 0.94);
  --hairline: rgba(247, 239, 224, 0.12);
  --hairline-strong: rgba(247, 239, 224, 0.22);
  --card-border: rgba(247, 239, 224, 0.22);
  --subtle-fill: rgba(247, 239, 224, 0.06);
  --subtle-fill-strong: rgba(247, 239, 224, 0.12);
  --tint-coral: #4A241C;
  --tint-yellow: #43341A;
  --scrim: rgba(0, 0, 0, 0.66);
  --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 26px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--on-panel); padding: 12px 18px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px) rotate(-0.5deg); background: var(--coral-dark); box-shadow: var(--shadow-lg); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--panel); color: var(--on-panel); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover { border-color: var(--accent); gap: 10px; }

/* ===== Announcement banner ===== */
.site-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;            /* above the header, which it sits on top of */
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--coral);
  color: #fff;
  padding: 11px 20px 11px 24px;
}
.site-banner-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.site-banner-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.site-banner-close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.site-banner-close:hover { background: rgba(255,255,255,0.35); }

/* The banner sits above the fixed header, so both the header and the first
   section move down by the banner's measured height (--banner-h, set in JS).
   The header therefore keeps its normal look - no special-casing needed. */
body.has-banner .site-header { top: var(--banner-h, 0px); }
body.has-banner .hero { padding-top: calc(150px + var(--banner-h, 0px)); }
body.has-banner .policy { padding-top: calc(150px + var(--banner-h, 0px)); }

@media (max-width: 600px) {
  .site-banner { padding: 10px 12px 10px 16px; }
  .site-banner-inner { font-size: 0.86rem; gap: 8px; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -12px rgba(23,20,15,0.15);
  background: var(--header-bg-scrolled);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 30px; flex-shrink: 0; }
/* assets/logo.svg is 60x44 — let the <img> keep its own ratio */
img.brand-mark { height: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-transform: lowercase;
}
.main-nav ul { display: flex; gap: 32px; }
/* The full menu shows from 861px up; below that it collapses to the phone
   menu (see the max-width: 860px block).

   History, so this isn't undone by accident: the collapse point used to be
   760px, and when Magazine made seven items the gap was tightened in the
   761-1100px range instead of collapsing earlier. Adding Schools made eight,
   and at 761px the header then needed ~76px more than it had - with only 84px
   of gap in total, no gap value could make it fit. Collapsing below 861px is
   the fix; the gap tightening below still applies to the widths that show the
   full menu. Checked at 700, 761, 780, 800, 850, 861, 900, 901, 950, 1000,
   1100, 1101, 1200, 1280 and 1440px. */
@media (min-width: 861px) and (max-width: 1100px) {
  .main-nav ul { gap: 16px; }
}
@media (min-width: 861px) and (max-width: 900px) {
  .main-nav ul { gap: 12px; }
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 150px;
  overflow: hidden;
  background: var(--hero-bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* One continuous wave path, scaled uniformly with preserveAspectRatio="slice"
   so it is never stretched (which flattened it on wide screens) and has no
   tile joins (which showed as breaks). It crops at the sides instead. */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -30px;
  width: 100%;
  height: 260px;
  opacity: 0.55;
}
.wave-drift { animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-250px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 90px;
}
.hero-copy { max-width: 640px; }
.hero-lead {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 44ch;
  margin: 22px 0 34px;
  opacity: 0.85;
}
.hero h1 { color: var(--ink); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-divider { position: relative; z-index: 1; display: block; width: 100%; height: auto; }

/* ===== Fact / stat callout ===== */
.fact { padding: 90px 0; background: var(--cream); }
.fact-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.fact-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}
.fact h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); }
.fact-source {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ===== Story ===== */
.story { padding: 100px 0; background: var(--yellow-pale); }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.story-copy p { color: var(--ink-soft); margin-bottom: 18px; max-width: 54ch; font-size: 1.02rem; }
.story-copy h2 { margin-bottom: 20px; }
.story-art { display: flex; justify-content: center; }
.story-art svg { width: 100%; max-width: 380px; }
.bubble-float { animation: bubbleFloat 5s ease-in-out infinite; transform-origin: center; }
.bubble-a { animation-duration: 6s; }
.bubble-b { animation-duration: 7.5s; animation-delay: -1s; }
.bubble-c { animation-duration: 5.2s; animation-delay: -2.4s; }
.bubble-d { animation-duration: 4.6s; animation-delay: -0.6s; }
.bubble-e { animation-duration: 5.8s; animation-delay: -3s; }
.bubble-f { animation-duration: 4.2s; animation-delay: -1.6s; }
.bubble-g { animation-duration: 6.4s; animation-delay: -2s; }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== App ===== */
.app { padding: 100px 0; background: var(--cream); }
.app-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.app-art { display: flex; justify-content: center; }
.app-art img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--hairline-strong);
}
.app-copy h2 { margin-bottom: 16px; }
.app-copy > p { color: var(--ink-soft); font-size: 1.02rem; max-width: 54ch; }
.app-features {
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 56ch;
}
.app-features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.app-features strong { color: var(--ink); }
.app-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 54ch;
}
.app-cta { margin-top: 26px; }
.app-coming {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px dashed var(--hairline-strong);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.app-footnote {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ===== Section heading shared ===== */
.section-heading { max-width: 640px; margin-bottom: 50px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* ===== Mission pillars ===== */
.mission { padding: 100px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral);
  color: #fff;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--ink-soft); font-size: 0.95rem; }
.swap-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.swap-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}
.swap-from { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--coral); opacity: 0.75; }
.swap-arrow { color: var(--accent); }
.swap-to { color: var(--ink); }

/* ===== Work ===== */
.work { padding: 90px 0; background: var(--yellow-pale); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}
.work-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--card-border); }
.work-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.work-icon svg { width: 24px; height: 24px; }
.icon-coral { background: var(--tint-coral); color: var(--accent); }
.icon-yellow { background: var(--tint-yellow); color: var(--yellow-deep); }
.work-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-card p { color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; }

/* ===== Marine Wildlife Day ===== */
.wildlife-day {
  padding: 90px 0;
  background: var(--panel);
  text-align: center;
}
.wildlife-inner { max-width: 820px; margin-inline: auto; }
.wildlife-day .eyebrow.light { color: var(--yellow); }
.wildlife-day h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.wildlife-lead {
  color: rgba(255,251,242,0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
}
.wildlife-lead strong { color: var(--yellow); }
.wildlife-lead sup { font-size: 0.6em; }

/* ===== Rhymes ===== */
.rhymes { padding: 100px 0; background: var(--yellow-pale); }
.rhyme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.rhyme-card {
  background: var(--surface);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}
.rhyme-card p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

/* ===== Others taking steps ===== */
.others { padding: 90px 0; background: var(--cream); }
.others-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.others-inner h2 { margin-bottom: 14px; }
.others-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ===== Involved ===== */
.involved { padding: 100px 0; }
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.involved-grid-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
}
.involved-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
}
.involved-card {
  background: var(--panel);
  color: var(--on-panel);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease;
}
.involved-card:hover { transform: translateY(-6px); }
.involved-card h3 { color: #fff; margin-bottom: 10px; }
.involved-card p { color: rgba(255,251,242,0.75); font-size: 0.94rem; margin-bottom: 18px; }
.involved-card .link-arrow { color: var(--yellow); }
.involved-card .link-arrow:hover { border-color: var(--yellow); }

/* ===== Register ===== */
.register { padding: 40px 0 110px; }
.register-inner {
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.register-inner h2 { color: #fff; margin-bottom: 8px; }
.register-inner p { color: rgba(255,255,255,0.85); font-weight: 600; }
.register-embed { width: 100%; grid-column: 1 / -1; }
.airtable-embed {
  width: 100%;
  height: 560px;
  border: none;
  border-radius: var(--radius-md);
  /* Airtable's own form is light in either theme, so this stays white —
     a themed backdrop would flash dark and then turn light as it loads. */
  background: var(--white);
  display: block;
}
.register-fallback {
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: 26px;
}
.register-fallback p { color: #fff; font-weight: 700; margin: 0; }
.register-fallback a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.register-form { display: flex; gap: 12px; }
.register-form input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.register-form input::placeholder { color: rgba(255,255,255,0.7); }
.register-form input:focus { border-color: #fff; background: rgba(255,255,255,0.2); }
.register-form .btn-primary { background: var(--panel); }
.register-form .btn-primary:hover { background: #000; }
.form-message {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.2em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--panel);
  color: rgba(255,251,242,0.75);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin: 16px 0 10px; font-size: 0.92rem; max-width: 32ch; font-weight: 600; }
.footer-brand .brand-text { color: #fff; }
.footer-group { font-size: 0.85rem !important; }
.footer-group a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.contact-list li { font-size: 0.92rem; font-weight: 600; }

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--on-panel);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--coral); }
.to-top svg { width: 20px; height: 20px; }

/* ===== App page =====
   Its own page (app/index.html, fr/app/index.html), built entirely from the
   shared tokens so it follows dark mode with no extra rules. Screenshots are
   the App Store set, resized to 660px WebP for the ~330px they display at. */
.app-hero {
  padding: 150px 0 90px;
  background: var(--yellow-pale);
  overflow: hidden;
}
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.app-hero h1 { margin-bottom: 18px; }
.app-hero-lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.app-hero-icon {
  width: 72px; height: 72px;
  border-radius: 22%;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.app-meta {
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.app-meta span + span::before { content: "\00B7"; margin: 0 8px; opacity: 0.6; }

/* A phone-shaped frame: rounded, bordered, lifted. The screenshots already
   include the status bar and home indicator, so no fake bezel is drawn. */
.phone-shot {
  width: 100%;
  /* Without this the height="1434" attribute is taken literally: the image
     is 300px wide but 1434px tall, and object-fit then crops it to fill. */
  height: auto;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 38px;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
}
.app-hero .phone-shot { max-width: 320px; transform: rotate(2deg); }

.app-features-page { padding: 100px 0 40px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}
.feature-row + .feature-row { border-top: 1px dashed var(--hairline-strong); }
.feature-row:nth-child(even) .feature-shot { order: -1; }
.feature-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.feature-copy p { color: var(--ink-soft); font-size: 1.04rem; max-width: 48ch; }
.feature-copy p + p { margin-top: 12px; }
.feature-shot .phone-shot { max-width: 270px; }

.app-extras { padding: 60px 0 90px; }
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.extra-card {
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.extra-card h3 { margin-bottom: 8px; }
.extra-card p { color: var(--ink-soft); font-size: 0.97rem; }

.app-privacy { padding: 90px 0; background: var(--panel); }
.app-privacy-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.app-privacy .eyebrow { color: var(--yellow); }
.app-privacy h2 { color: var(--on-panel); margin-bottom: 18px; }
.app-privacy p { color: rgba(255,251,242,0.8); font-size: 1.06rem; line-height: 1.65; }
.app-privacy p + p { margin-top: 12px; }
.app-privacy .link-arrow { color: var(--yellow); margin-top: 22px; }
.app-privacy .link-arrow:hover { border-color: var(--yellow); }

.app-closing { padding: 100px 0; text-align: center; }
.app-closing h2 { margin-bottom: 12px; }
.app-closing p { color: var(--ink-soft); margin-bottom: 26px; }
.app-closing .app-cta { margin-top: 0; display: flex; justify-content: center; }

/* Homepage: the short app section now points at the full page. */
.app-more { display: inline-flex; margin-top: 14px; }

@media (max-width: 900px) {
  .app-hero-grid, .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .app-hero { padding-top: 120px; text-align: left; }
  .app-hero .phone-shot { max-width: 250px; transform: none; }
  .feature-row:nth-child(even) .feature-shot { order: 0; }
  .feature-shot .phone-shot { max-width: 240px; }
  .extras-grid { grid-template-columns: 1fr; }
}

/* ===== Schools page =====
   schools/index.html and fr/schools/index.html. The booklet PDFs live in
   schools/booklets/; the cover thumbnails are rendered from page 1 of those
   same PDFs, so a cover can never show a different edition from the download. */
.schools-hero {
  padding: 150px 0 90px;
  background: var(--yellow-pale);
  overflow: hidden;
}
.schools-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.schools-hero h1 { margin-bottom: 18px; }
.schools-hero-lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 30px;
}
/* Three covers fanned like booklets left on a desk. */
.cover-fan {
  position: relative;
  /* Needed: its children are all absolutely positioned, so without an explicit
     width the auto margins shrink it to zero and the covers (56% of that) vanish. */
  width: 100%;
  height: 400px;
  max-width: 420px;
  margin-inline: auto;
}
.cover-fan img {
  position: absolute;
  top: 50%; left: 50%;
  width: 56%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline-strong);
}
.cover-fan img:nth-child(1) { transform: translate(-95%, -50%) rotate(-10deg); }
.cover-fan img:nth-child(2) { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.cover-fan img:nth-child(3) { transform: translate(-5%, -50%) rotate(10deg); z-index: 1; }

.booklets { padding: 100px 0; }
.booklet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.booklet-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.booklet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.booklet-cover {
  display: block;
  background: var(--yellow-pale);
  padding: 22px 22px 0;
  border-bottom: 2px solid var(--card-border);
}
.booklet-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 1359;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-md);
}
.booklet-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.booklet-age {
  align-self: flex-start;
  /* Yellow with dark text, not white on coral: at this size white on coral is
     only 3.5:1. --yellow stays light in dark mode, hence --on-yellow. */
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.booklet-body h3 { margin-bottom: 2px; }
.booklet-stage {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}
.booklet-body p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }
.booklet-foot { margin-top: auto; padding-top: 18px; }
.booklet-foot .btn { width: 100%; }
.booklet-meta {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.schools-inside { padding: 0 0 90px; }
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.schools-steps { padding: 90px 0; background: var(--yellow-pale); }
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
}
.steps-list li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.steps-list li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
}
.steps-list h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps-list p { color: var(--ink-soft); font-size: 0.95rem; }
.steps-list a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.schools-contact { padding: 90px 0; background: var(--panel); text-align: center; }
.schools-contact h2 { color: var(--on-panel); margin-bottom: 12px; }
.schools-contact p { color: rgba(255,251,242,0.8); font-size: 1.06rem; margin-bottom: 26px; }

/* Homepage: the In Schools pillar card points at the booklets. */
.pillar-more { display: inline-flex; margin-top: 16px; }

@media (max-width: 1100px) {
  .booklet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .schools-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .schools-hero { padding-top: 120px; }
  .cover-fan { height: 300px; max-width: 320px; }
  .inside-grid, .steps-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .booklet-grid { grid-template-columns: 1fr; }
  /* Full-width covers made each card ~970px tall on a phone. The cover only
     has to identify the booklet, so keep it thumbnail-sized. */
  .booklet-cover { padding-top: 18px; }
  .booklet-cover img { max-width: 200px; margin-inline: auto; }
  /* Narrower fan so the tilted outer covers stay on screen at 375px. */
  .cover-fan { max-width: 260px; height: 250px; }
}

/* ===== Site map page =====
   sitemap/index.html and fr/sitemap/index.html. A tree drawn over ordinary
   nested lists: the lines are decoration, the markup is just links in lists,
   so it reads correctly to screen readers and crawlers too. */
.sitemap-hero {
  padding: 150px 0 50px;
  background: var(--yellow-pale);
  text-align: center;
}
.sitemap-hero h1 { margin-bottom: 14px; }
.sitemap-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin-inline: auto; }

.sitemap { padding: 60px 0 100px; }

.map-root {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 64px;
  padding: 18px 26px;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.map-root img { width: 48px; height: auto; flex-shrink: 0; }
.map-root strong { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; color: var(--on-panel); }
.map-root a { color: var(--yellow); font-weight: 700; font-size: 0.92rem; }
/* Trunk from the root down to the branch line. */
.map-root::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 2px; height: 32px;
  background: var(--hairline-strong);
}

.map-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 32px;
}
/* The line the branches hang from, spanning from the first column's centre
   to the last column's centre. */
.map-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - 56px) / 6);
  right: calc((100% - 56px) / 6);
  border-top: 2px solid var(--hairline-strong);
}
.map-branch {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 24px 18px;
}
.map-branch::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  width: 2px; height: 34px;
  background: var(--hairline-strong);
}
.map-branch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hairline-strong);
}
.map-branch-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
}
.map-branch-icon svg { width: 22px; height: 22px; }
.map-branch-head h2 { font-size: 1.2rem; margin: 0; }

.map-tree, .map-tree ul { list-style: none; margin: 0; padding: 0; }
.map-tree ul {
  position: relative;
  margin: 2px 0 4px 9px;
  padding-left: 20px;
  border-left: 2px solid var(--hairline-strong);
}
.map-tree li { position: relative; padding: 5px 0; }
.map-tree ul > li::before {
  content: "";
  position: absolute;
  left: -20px; top: 17px;
  width: 14px;
  border-top: 2px solid var(--hairline-strong);
}
/* Stop the vertical line at the last item's branch instead of running on. */
.map-tree ul > li:last-child::after {
  content: "";
  position: absolute;
  left: -22px; top: 18px; bottom: -4px;
  width: 4px;
  background: var(--surface);
}
.map-tree a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.map-tree a:hover { color: var(--accent); text-decoration-color: currentColor; }
.map-tree ul a { font-weight: 700; font-size: 0.95rem; }
.map-note {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}
.map-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--subtle-fill-strong);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.map-current { color: var(--accent) !important; }
/* A grouping heading inside a tree that isn't itself a page. */
.map-label { font-weight: 800; color: var(--ink); }

@media (max-width: 980px) {
  .map-branches { grid-template-columns: 1fr 1fr; }
  .map-branches::before, .map-branch::before { display: none; }
  .map-root::after { display: none; }
  .map-root { margin-bottom: 36px; }
  .map-branches { padding-top: 0; }
}
@media (max-width: 640px) {
  .map-branches { grid-template-columns: 1fr; }
}

/* ===== Policy page ===== */
.policy { padding: 150px 0 100px; background: var(--cream); }
.policy-inner { max-width: 760px; }
.policy-inner h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.policy-updated {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 30px;
}
.policy-summary {
  background: var(--yellow-pale);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.policy-summary p { color: var(--ink); font-size: 1.02rem; margin: 0; }
.policy-inner h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.policy-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.policy-inner strong { color: var(--ink); }
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 4px 0 18px;
}
.policy-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.policy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.policy-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.policy-footnote {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--hairline-strong);
  font-size: 0.86rem !important;
  opacity: 0.8;
}
.policy-back { margin-top: 26px; }
.policy-back a { text-decoration: none; }

/* A quiet pointer between the iPhone and Android policies — the two apps are
   genuinely different (Android has no network access at all), so each has its
   own page and each links to the other rather than one page hedging both. */
.policy-note {
  font-size: 0.92rem !important;
  color: var(--ink-soft);
  background: var(--subtle-fill);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 34px !important;
}
.policy-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--subtle-fill-strong);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ===== Popups (language suggestion + signup prompt) ===== */
.lang-suggest,
.signup-prompt {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: langFade 0.3s ease;
}
.lang-suggest[hidden],
.signup-prompt[hidden] { display: none; }
@keyframes langFade { from { opacity: 0; } to { opacity: 1; } }

.lang-suggest-card,
.signup-prompt-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 38px 34px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: langRise 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes langRise {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.lang-suggest-close,
.signup-prompt-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: 50%;
}
.lang-suggest-close:hover,
.signup-prompt-close:hover { background: var(--subtle-fill-strong); color: var(--ink); }
.lang-suggest-flag { font-size: 2.4rem; line-height: 1; margin-bottom: 14px; }
.lang-suggest-block h3 { font-size: 1.2rem; margin-bottom: 6px; }
.lang-suggest-block p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Signup prompt specifics */
.signup-prompt-icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.signup-prompt-icon svg { width: 30px; height: 30px; }
.signup-prompt-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.signup-prompt-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}
.lang-suggest-divider {
  height: 1px;
  background: var(--hairline-strong);
  margin: 18px auto;
  width: 60%;
}
.lang-suggest-actions,
.signup-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.lang-suggest-actions .btn,
.signup-prompt-actions .btn { width: 100%; }

@media (max-width: 420px) {
  .lang-suggest-card,
  .signup-prompt-card { padding: 32px 22px 26px; }
  .lang-suggest-actions .btn,
  .signup-prompt-actions .btn { font-size: 0.82rem; padding: 11px 14px; }
}

/* ===== Brand language badge (FR site) ===== */
.brand-lang {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18em 0.5em;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 2px;
  text-transform: uppercase;
}
.site-footer .brand-lang { background: var(--coral); color: #fff; }

/* ===== Theme toggle =====
   Built by js/theme.js rather than written into each page, so a visitor with
   JavaScript off never sees a button that could not do anything. */
.theme-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--hairline-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: rotate(-12deg);
}
.theme-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; }
/* One icon at a time: the sun offers light, the moon offers dark. */
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle:hover { transform: none; }
}

/* ===== Language switcher ===== */
.lang-link {
  border: 2px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 4px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-link:hover { border-color: var(--coral); background: var(--coral); color: #fff !important; }
.lang-link::after { display: none !important; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-drift, .bubble-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .story-grid, .app-grid { grid-template-columns: 1fr; }
  .app-art { order: -1; }
  .app-art img { max-width: 180px; }
  .story-art { order: -1; max-width: 280px; margin-inline: auto; }
  .work-grid, .involved-grid, .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .rhyme-grid { grid-template-columns: 1fr; }
  .work-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .register-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone menu. Its own breakpoint, wider than the layout one below, because
   eight menu items stop fitting in the header well before the page layout
   needs to change. See the note by .main-nav ul. */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  /* 400px clipped the last of eight items (~460px tall); leave headroom. */
  .main-nav.open { max-height: 600px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 760px) {
  .work-grid, .involved-grid, .pillars-grid, .work-grid-2, .involved-grid-2, .rhyme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 120px; }
  .hero-inner { padding-bottom: 70px; }
  .register-inner { padding: 34px 26px; }
}
