/* ==========================================================================
   Enrichment Express — v2 design system  ("Airy Teal")
   Zero-dependency, mobile-first. Palette is the existing brand palette only:
   teal #4fa3a1 (lead) · red #d22328 (CTAs) · yellow #ffd600 (small marks)
   plum #490d59 (reserved) · bands #f0f6fa · white surfaces.
   Headings: Fredoka · Body: Jost (both already used by the brand).
   ========================================================================== */

:root {
  --teal: #4fa3a1;
  --teal-dark: #3a807e;
  --teal-deep: #2c5f5e;          /* footer / darkest shade of brand teal */
  --teal-tint: #eaf4f3;
  --red: #d22328;
  --red-dark: #b01b20;
  --yellow: #ffd600;
  --band: #f0f6fa;               /* alternating section background (existing) */
  --ink: #22343a;                /* near-black with a teal undertone */
  --muted: #5c6f74;
  --surface: #ffffff;
  --line: #dfe9ee;

  --title-font: "Fredoka", sans-serif;
  --body-font: "Jost", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* shadows fall to the right and bottom only */
  --shadow-1: 3px 4px 10px rgba(24, 49, 53, 0.09), 1px 2px 3px rgba(24, 49, 53, 0.05);
  --shadow-2: 8px 12px 28px rgba(24, 49, 53, 0.13), 3px 4px 10px rgba(24, 49, 53, 0.07);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;

  --header-h: 64px;
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* the off-canvas drawer lives just outside the right edge; never let it
   create a horizontal scrollbar */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  border: 0;
}

img {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.22rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.12rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: 0.95rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--red);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(44px, 4vw + 24px, 76px);
}

.band {
  background: var(--band);
}

.band-teal {
  background: var(--teal-tint);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 0;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--yellow);
}

/* two-column media/text rows */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-5);
  }
  .split.split-narrow-media {
    grid-template-columns: 4fr 8fr;
  }
  .split > .split-media-right {
    order: 2;
  }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--surface);
}

.media-frame img {
  width: 100%;
}

.media-frame.frame-plain {
  box-shadow: none;
  background: transparent;
}

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-1);
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-teal {
  background: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-3);
}

/* ---------- header ---------- */

.topbar {
  display: none;
  background: var(--teal);
  color: #fff;
  font-size: 0.88rem;
}

.topbar a {
  color: #fff;
}

.topbar a:hover {
  color: var(--yellow);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-block: 7px;
  list-style: none;
  margin: 0 auto; /* keep .container centering */
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item p {
  margin: 0;
}

.topbar-item .tb-label {
  opacity: 0.75;
}

.topbar-item svg {
  width: 15px;
  height: 15px;
  fill: var(--yellow);
  flex: none;
}

@media (min-width: 1000px) {
  .topbar {
    display: block;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 74px;
  height: auto;
}

/* desktop nav */
.main-nav {
  display: none;
  margin-left: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.99rem;
}

.main-nav a:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.main-nav .caret {
  width: 10px;
  height: 10px;
  fill: currentColor;
  opacity: 0.6;
}

.has-sub {
  position: relative;
}

.has-sub > .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 230px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-sub > .sub a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
}

@media (min-width: 1000px) {
  .main-nav {
    display: block;
  }
}

/* header quick actions (mobile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 1000px) {
  .header-actions {
    margin-left: 8px;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  cursor: pointer;
  transition: background 0.18s ease;
}

.icon-btn:hover {
  background: var(--teal);
  color: #fff;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu-btn {
  background: var(--red);
  color: #fff;
}

.menu-btn:hover {
  background: var(--red-dark);
}

@media (min-width: 1000px) {
  .menu-btn,
  .header-call {
    display: none;
  }
}

/* ---------- mobile drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(24, 49, 53, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  height: 100dvh;
  width: min(330px, 88vw);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

body.drawer-open .drawer-scrim {
  opacity: 1;
  visibility: visible;
}

body.drawer-open {
  overflow: hidden;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head img {
  width: 60px;
}

.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.drawer-nav a,
.drawer-nav .drawer-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--body-font);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.drawer-nav a:hover,
.drawer-nav .drawer-group-btn:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.drawer-nav .caret {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.drawer-group.open .caret {
  transform: rotate(180deg);
}

.drawer-group > ul {
  display: none;
  padding: 0 0 4px 14px;
}

.drawer-group.open > ul {
  display: block;
}

.drawer-info {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--band);
  font-size: 0.95rem;
}

.drawer-info h5 {
  margin: 10px 0 2px;
  font-size: 0.92rem;
  color: var(--teal-deep);
}

.drawer-info h5:first-child {
  margin-top: 0;
}

.drawer-info p {
  margin: 0;
  color: var(--muted);
}

/* ---------- hero (home) ---------- */

.hero-video {
  position: relative;
  background: var(--teal-tint);
}

.hero-video video {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

/* ---------- inner page hero ---------- */

.page-hero {
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 214, 0, 0.25), transparent 46%),
    linear-gradient(120deg, var(--teal-tint), var(--band));
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding-block: clamp(34px, 4.5vw, 64px);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  color: var(--teal-deep);
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3vw, 32px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-2);
}

/* module cards */
.module-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}

@media (min-width: 1100px) {
  .module-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
  }
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 6px solid var(--teal);
  box-shadow: var(--shadow-1);
  padding: 26px 20px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.module-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}

.module-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 14px;
}

.module-card .module-level {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  font-family: var(--body-font);
}

.module-card h3 {
  margin-bottom: 2px;
}

.module-card h3 a {
  color: inherit;
}

/* stretch the module link over the whole card */
.module-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.module-card .module-age {
  color: var(--muted);
  margin: 0;
}

.module-card.mc-2 { border-top-color: var(--yellow); }
.module-card.mc-3 { border-top-color: var(--red); }
.module-card.mc-4 { border-top-color: var(--teal-deep); }
.module-card.mc-5 { border-top-color: var(--yellow); }

/* review cards */
.review-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 500;
}

.review-card:nth-child(3n + 2) .avatar { background: var(--red); }
.review-card:nth-child(3n) .avatar { background: var(--teal-deep); }

.review-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.review-text {
  color: var(--muted);
  margin-bottom: 10px;
  white-space: pre-line;
}

.review-text .more[hidden] {
  display: none;
}

.read-more-btn {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 6px 0;
  min-height: 44px;
  color: var(--red);
  font-family: var(--body-font);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.review-mark {
  margin-top: auto;
  padding-top: 6px;
}

.review-mark img {
  width: 84px;
}

/* long testimonial cards (testimonials / parent feedback pages) */
.testimonial-list {
  display: grid;
  gap: var(--space-3);
  max-width: 860px;
  margin-inline: auto;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 6px solid var(--teal);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3vw, 32px);
}

.testimonial-card:nth-child(even) {
  border-left-color: var(--yellow);
}

.testimonial-card h3 {
  color: var(--teal-deep);
}

.testimonial-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* contact info cards */
.contact-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 26px 22px;
  text-align: center;
}

.contact-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.contact-card h3 {
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.contact-card p {
  margin-bottom: 4px;
  color: var(--muted);
}

/* ---------- accordion (details/summary) ---------- */

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-family: var(--title-font);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232c5f5e' d='M11 5h2v14h-2z'/%3E%3Cpath fill='%232c5f5e' d='M5 11h14v2H5z'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.2s ease;
}

.accordion details[open] summary {
  background: var(--teal);
  color: #fff;
}

.accordion details[open] summary::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232c5f5e' d='M5 11h14v2H5z'/%3E%3C/svg%3E");
}

.accordion .acc-body {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.accordion .acc-body > :last-child {
  margin-bottom: 0;
}

/* checklist inside accordions / founders lists */
.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232c5f5e' d='M9.55 17.3 4.8 12.55l1.4-1.4 3.35 3.35 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* icon list (pillars) — keeps the original little icon images */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-list li img {
  flex: none;
  max-width: 80px;
  max-height: 56px;
  object-fit: contain;
}

/* leading icons sit in a fixed box so every row's text starts at the same column */
.icon-list li > img:first-child {
  width: 64px;
  height: 48px;
  max-width: none;
}

/* ---------- prose (module pages, book pages) ---------- */

.prose h3 {
  margin-top: 1.6em;
  color: var(--teal-deep);
}

.prose > h3:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
}

/* ---------- sidebar layout ---------- */

.layout-sidebar {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .layout-sidebar {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.sidebar-col {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px;
}

.widget-title {
  font-size: 1.15rem;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--teal-tint);
  color: var(--teal-deep);
}

.widget-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.widget-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  background: var(--band);
  color: var(--ink);
  font-weight: 500;
}

.widget-nav a:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

.widget-nav a.active {
  background: var(--teal);
  color: #fff;
}

.widget-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.widget-gallery a {
  display: block;
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.widget-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.widget-gallery a:hover img {
  transform: scale(1.06);
}

/* ---------- gallery page ---------- */

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
}

.gallery-grid a {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.gallery-grid a::after {
  content: "+";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(44, 95, 94, 0.85);
  color: #fff;
  font-size: 1.3rem;
  line-height: 34px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-grid a:hover::after {
  opacity: 1;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 38, 41, 0.9);
  padding: 4vmin;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--red);
}

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .form-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--teal-deep);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--band);
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79, 163, 161, 0.25);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.88);
  margin-top: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-block: clamp(40px, 5vw, 64px);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1050px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.3fr 1.4fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-menu a,
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-menu a:hover,
.site-footer a:hover {
  color: var(--yellow);
}

.footer-contact p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer-contact svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 5px;
  fill: var(--yellow);
}

.footer-map iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease;
}

.social-row a:hover {
  transform: translateY(-3px);
}

.social-row img {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

/* ---------- floating actions ---------- */

.floaters {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floaters a {
  display: inline-flex;
  border-radius: 50%;
  box-shadow: var(--shadow-2);
  transition: transform 0.18s ease;
}

.floaters a:hover {
  transform: scale(1.08);
}

.floaters img {
  width: 52px;
  height: 52px;
}

/* the call icon artwork is white — give it a brand-red disc so it never vanishes */
.floaters .float-call {
  background: var(--red);
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
}

.floaters .float-call img {
  width: 34px;
  height: 34px;
}

/* ---------- books & beyond feature rows ---------- */

.book-rows {
  display: grid;
  gap: var(--space-4);
}

.book-row {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3vw, 36px);
}

.book-row img {
  width: min(240px, 60vw);
  margin-inline: auto;
}

@media (min-width: 800px) {
  .book-row {
    grid-template-columns: 260px 1fr;
  }
  .book-row:nth-child(even) img {
    order: 2;
  }
}

.book-row h2 {
  margin-bottom: 0.4em;
}

.book-row p {
  color: var(--muted);
}

/* colouring covers grid (colouring-books page) */
.covers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.covers-grid img {
  width: 100%;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-1);
}

/* ---------- founders ---------- */

.person-card {
  display: grid;
  gap: var(--space-3);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3.5vw, 40px);
  align-items: start;
}

@media (min-width: 860px) {
  .person-card {
    grid-template-columns: 300px 1fr;
    gap: var(--space-5);
  }
}

.person-card .media-frame img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top;
}

.person-card h2 {
  margin-bottom: 0.2em;
}

.person-card h4,
.person-card h5 {
  font-family: var(--body-font);
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 0.3em;
}

.person-card p {
  color: var(--muted);
}

.info-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border-top: 5px solid var(--teal);
  padding: clamp(20px, 3vw, 34px);
}

.info-panel:nth-of-type(even) {
  border-top-color: var(--yellow);
}

.info-panel h5 {
  font-size: 1.08rem;
  color: var(--teal-deep);
  margin-top: 1.4em;
}

.info-panel h5:first-child {
  margin-top: 0;
}

/* ---------- misc ---------- */

.center {
  text-align: center;
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.thought-band img {
  margin-inline: auto;
  max-width: 720px;
  width: 100%;
}

.note-strong {
  color: #000;
}

/* page-hero tagline (visually a heading, semantically a paragraph) */
.hero-tagline {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem);
  line-height: 1.22;
  color: var(--teal-deep);
  margin: 0;
  text-wrap: balance;
}

/* module pages */
.module-figure {
  text-align: center;
}

.module-figure img {
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .module-figure {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.module-meta {
  display: inline-block;
  background: var(--teal-tint);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-xs);
  padding: 12px 18px;
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.7;
}

.module-prose > h1 {
  color: var(--ink);
}

/* stacked images column (program overview / contact) */
.stacked-media {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

@media (max-width: 899px) {
  .stacked-media {
    grid-template-columns: 1fr 1fr;
  }
}

/* image at the top of a sidebar article */
.article-media {
  margin-bottom: var(--space-3);
}

.book-cover img {
  width: 100%;
}

.contact-map iframe {
  display: block;
  width: 100%;
}

/* playful overlapping polaroid pair (original contact-page style) */
.collage {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  grid-template-columns: 1fr 1fr;
}

.collage .media-frame {
  border: 5px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-2);
}

@media (min-width: 900px) {
  .collage {
    display: block;
    padding: 30px 10px 40px;
  }
  .collage .img-1 {
    transform: rotate(-8deg);
    width: 88%;
  }
  .collage .img-2 {
    transform: rotate(9deg);
    width: 82%;
    margin: -40px 0 0 auto;
  }
}
