@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Alegreya:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TOKENS ===== */
:root {
  --bg:         oklch(14% 0.015 60);
  --surface:    oklch(18% 0.018 60);
  --surface-2:  oklch(22% 0.020 58);
  --surface-3:  oklch(26% 0.022 58);
  --ink:        oklch(92% 0.025 85);
  --ink-2:      oklch(72% 0.022 80);
  --ink-3:      oklch(52% 0.016 78);
  --accent:     oklch(72% 0.12 75);
  --accent-dim: oklch(60% 0.09 75);
  --accent-2:   oklch(52% 0.10 250);
  --rule:       oklch(40% 0.025 75);

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'Alegreya', 'Times New Roman', Georgia, serif;

  --fs-hero: clamp(2.8rem, 7vw, 5.5rem);
  --fs-h1:   clamp(2rem, 4.5vw, 3.6rem);
  --fs-h2:   clamp(1.55rem, 3vw, 2.4rem);
  --fs-h3:   clamp(1.2rem, 2vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  --lh-tight:   1.12;
  --lh-heading: 1.25;
  --lh-body:    1.78;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --max-w:   1200px;
  --max-txt: 70ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med:  280ms;
}

/* ===== LIGHT MODE TOKENS ===== */
[data-theme="light"] {
  --bg:         oklch(97% 0.010 85);
  --surface:    oklch(94% 0.012 82);
  --surface-2:  oklch(90% 0.014 80);
  --surface-3:  oklch(86% 0.016 78);
  --ink:        oklch(16% 0.018 60);
  --ink-2:      oklch(36% 0.016 65);
  --ink-3:      oklch(54% 0.014 70);
  --accent:     oklch(46% 0.115 70);
  --accent-dim: oklch(38% 0.090 70);
  --accent-2:   oklch(40% 0.100 250);
  --rule:       oklch(74% 0.020 75);
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--ink);
  text-wrap: balance;
}

p { max-width: var(--max-txt); }
p + p { margin-top: var(--sp-4); }

strong { font-weight: 700; }
em { font-style: italic; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark    { background: var(--bg); }
.section--surface { background: var(--surface); }
.section--surface2{ background: var(--surface-2); }

/* ===== EVENT BANNER ===== */
.event-banner {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: var(--sp-2) var(--gutter);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-banner a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.event-banner a:hover { opacity: 0.75; }

.event-banner .sep {
  display: inline-block;
  margin-inline: var(--sp-3);
  opacity: 0.5;
}

/* ===== SITE HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-block: var(--sp-4);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

/* Theme-aware logo: cream wordmark on the dark side, ink wordmark on the light
   side. The mark (sun + book) is identical in both. Swapped in CSS (not JS) so
   it's correct before first paint — no flash. */
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.nav-end {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover { color: var(--accent); }

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: var(--sp-1);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: var(--sp-24);
  padding-inline: var(--gutter);
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62),
      oklch(11% 0.012 58) 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%,
      oklch(72% 0.12 75 / 0.06), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink);
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: 1.6;
}

.hero-scripture {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-2);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
  line-height: 1.65;
}

.hero-scripture cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--sp-3);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== HERO BACKGROUND IMAGES ===== */
.hero--home {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62 / 0.72), oklch(11% 0.012 58 / 0.88) 70%),
    url('../assets/images/hero_home.webp') center 75% / cover no-repeat;
}

.hero--tgma {
  background:
    linear-gradient(oklch(11% 0.012 58 / 0.40), oklch(11% 0.012 58 / 0.40)),
    linear-gradient(oklch(100% 0 0 / 0.15), oklch(100% 0 0 / 0.15)),
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62 / 0.50), oklch(11% 0.012 58 / 0.68) 70%),
    linear-gradient(oklch(62% 0.18 48 / 0.35), oklch(62% 0.18 48 / 0.35)),
    url('../assets/images/hero_tgma.webp') 65% 8% / 120% no-repeat;
}

.hero--phla {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62 / 0.72), oklch(11% 0.012 58 / 0.88) 70%),
    url('../assets/images/hero_phla.webp') center / cover no-repeat;
}

.hero--contact {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62 / 0.72), oklch(11% 0.012 58 / 0.88) 70%),
    url('../assets/images/hero_contact.webp') center / cover no-repeat;
}

/* ===== HERO VARIANTS (inner pages) ===== */
.hero--inner {
  min-height: 50svh;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero--inner .hero-title {
  font-size: var(--fs-h1);
  max-width: 22ch;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== SCRIPTURE BLOCK ===== */
.scripture-block {
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: var(--gutter);
  text-align: center;
  background: var(--surface);
}

.scripture-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
  margin-inline: auto;
  padding-top: var(--sp-8);
  position: relative;
}

.scripture-block blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.scripture-block cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: var(--sp-5);
}

/* ===== SECTION HEADERS ===== */
.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.section-heading + p {
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.65;
  margin-top: 0;
}

/* ===== ABOUT SECTION (HOME) ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-text p {
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.about-text p + p { margin-top: var(--sp-5); }

.about-text .about-detail {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--surface-3);
}

.about-detail-row {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.about-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.about-stat p {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: none;
}

.about-image-wrap {
  position: relative;
  align-self: start;
}

.about-image-wrap img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  display: block;
  border: 2px solid var(--rule);
  outline: 1px solid var(--surface-3);
  outline-offset: 8px;
}

/* ===== PHOTO STRIP ===== */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: clamp(220px, 30vw, 400px);
  overflow: hidden;
}

.photo-strip-panel {
  overflow: hidden;
}

.photo-strip-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.photo-strip-panel:hover img {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .photo-strip {
    grid-template-columns: 1fr;
    height: auto;
  }
  .photo-strip-panel {
    height: clamp(180px, 55vw, 260px);
  }
  .hero--tgma {
    background:
      linear-gradient(oklch(11% 0.012 58 / 0.40), oklch(11% 0.012 58 / 0.40)),
      linear-gradient(oklch(100% 0 0 / 0.15), oklch(100% 0 0 / 0.15)),
      radial-gradient(ellipse 120% 80% at 50% 40%,
        oklch(20% 0.022 62 / 0.50), oklch(11% 0.012 58 / 0.68) 70%),
      linear-gradient(oklch(62% 0.18 48 / 0.35), oklch(62% 0.18 48 / 0.35)),
      url('../assets/images/hero_tgma.webp') 65% top / cover no-repeat;
  }
}

/* ===== THREE ARMS ===== */
.arms-section {
  background: var(--bg);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.arms-intro {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.arms-intro p {
  margin-inline: auto;
}

.arms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.arm-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--surface-3);
  transition: background-color var(--dur-med) var(--ease-out);
  text-align: center;
}

.arm-panel:last-child { border-bottom: 1px solid var(--surface-3); }

.arm-tag {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.arm-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-heading);
  min-height: 2.5em; /* reserve two lines so descriptions start level across cards */
}

.arm-desc {
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
  max-width: 42ch;
  margin-inline: auto;
}

.arm-link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease-out);
  margin-top: auto; /* pin links to the bottom so they align across cards */
  align-self: center;
}

.arm-link:hover { border-bottom-color: var(--accent); }

/* ===== VALUES SECTION ===== */
.values-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.values-intro {
  max-width: 55ch;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.value-item {
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--surface-2);
}

.value-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.value-desc {
  color: var(--ink-2);
  font-size: var(--fs-body);
  max-width: 55ch;
}

/* ===== FOUNDER TEASER ===== */
.founder-teaser {
  background: var(--bg);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.founder-photo {
  position: relative;
}

.founder-photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-inline: auto;
  display: block;
  border: 2px solid var(--rule);
  outline: 1px solid var(--surface-3);
  outline-offset: 8px;
}

.founder-text .founder-name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}

.founder-title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.founder-excerpt {
  color: var(--ink-2);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-8);
}

/* ===== CONTACT STRIP ===== */
.contact-strip {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
}

.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.contact-item-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.contact-item-value {
  color: var(--ink-2);
  font-size: var(--fs-body);
}

.contact-item-value a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--surface-3);
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.contact-item-value a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface);
  padding-block: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid var(--surface-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--sp-4);
  opacity: 0.85;
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  max-width: 36ch;
  line-height: 1.6;
}

.footer-nav-group h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.footer-nav-group li + li { margin-top: var(--sp-2); }

.footer-nav-group a {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-nav-group a:hover { color: var(--ink); }

.footer-social {
  display: flex;
  gap: var(--sp-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--surface-3);
  color: var(--ink-3);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover {
  opacity: 0.75;
}

/* ===== PAGE: TGMA ===== */
.programme-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.programme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1);
}

.programme-module {
  background: var(--surface);
  border: 1px solid var(--surface-3);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.module-header::-webkit-details-marker { display: none; }

.module-header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.module-num {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  min-width: 2ch;
}

.module-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
}

.module-arrow {
  color: var(--ink-3);
  transition: transform var(--dur-med) var(--ease-out);
  flex-shrink: 0;
}

details[open] .module-arrow { transform: rotate(90deg); }

.module-body {
  padding: 0 var(--sp-6) var(--sp-6) calc(var(--sp-6) + 2ch + var(--sp-4));
  border-top: 1px solid var(--surface-2);
  padding-top: var(--sp-4);
}

.module-body ul {
  list-style: disc;
  padding-left: 1.2em;
  color: var(--ink-2);
  line-height: 1.8;
}

.module-body li + li { margin-top: var(--sp-1); }

/* ===== EVENT FEATURE ===== */
.event-feature {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--surface);
}

.event-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.event-feature-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin-inline: auto;
  display: block;
  border: 1px solid var(--surface-3);
}

.event-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.event-detail {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.event-detail-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.event-detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.event-detail-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.event-detail-value {
  color: var(--ink-2);
  font-size: var(--fs-body);
}

/* ===== JOTFORM EMBED ===== */
.registration-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* ===== REGISTRATION FORM ===== */
.reg-form {
  max-width: 680px;
  margin-top: var(--sp-10);
}

.reg-form .form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

@media (min-width: 640px) {
  .reg-form .form-row { flex-direction: row; }
  .reg-form .form-row > * { flex: 1; }
}

.reg-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-5);
}

.reg-form .form-row .form-field {
  margin-bottom: 0;
}

.reg-form label {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--font-body);
}

.reg-form label .req { color: var(--accent); }

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form select,
.reg-form textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
  transition: border-color var(--dur-med);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.reg-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.reg-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: var(--lh-body);
}

.reg-form .radio-group,
.reg-form .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding-top: var(--sp-2);
}

.reg-form .checkbox-group {
  flex-direction: column;
  gap: var(--sp-3);
}

.reg-form .radio-group label,
.reg-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-2);
  cursor: pointer;
}

.reg-form .radio-group input[type="radio"],
.reg-form .checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-conditional { display: none; }
.form-conditional.visible { display: block; }

/* Programme-gated fields: visible but greyed out / non-interactive when not applicable. */
.reg-form .form-field.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.reg-form .form-divider {
  border: none;
  border-top: 1px solid var(--surface-3);
  margin-block: var(--sp-8);
}

.reg-form .form-submit-row {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.reg-form .form-note {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.6;
}

/* ===== PHLA VALUES ===== */
.phla-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.phla-value {
  padding: var(--sp-6);
  background: var(--surface);
  border-left: 2px solid var(--accent);
}

.phla-value-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.phla-value-desc {
  color: var(--ink-2);
  font-size: var(--fs-body);
}

/* ===== KLPD MODULES ===== */
.klpd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
  counter-reset: module;
}

.klpd-item {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  counter-increment: module;
}

.klpd-item::before {
  content: counter(module, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--accent);
  min-width: 2.5ch;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.klpd-item-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.5;
}

/* ===== FOUNDER PAGE ===== */
.founder-hero {
  min-height: 70svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(20% 0.022 62),
      oklch(11% 0.012 58) 70%);
  padding-block: clamp(4rem, 8vw, 7rem);
  padding-inline: var(--gutter);
  text-align: center;
}

.founder-hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--rule);
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.founder-hero-logo {
  width: 220px;
  height: 220px;
  border: 3px solid var(--rule);
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(20% 0.022 62);
}

.founder-hero-logo img {
  height: 160px;
  width: auto;
  transform: translateY(-8px);
}

[data-theme="light"] .founder-hero-logo {
  background: oklch(93% 0.014 83);
}

.founder-hero-text {
  text-align: center;
}

.founder-hero-text h1 {
  margin-inline: auto;
}

.founder-bio-section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.founder-bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: var(--sp-8);
}

.bio-section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.bio-text {
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.bio-text p + p { margin-top: var(--sp-5); }

.bio-photo {
  max-width: 380px;
}

.bio-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--surface-3);
}

/* ===== CONTACT PAGE ===== */
.contact-page-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.contact-card {
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--surface-3);
}

.contact-card-icon {
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.contact-card-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.contact-card-value {
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.6;
}

.contact-card-value a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.contact-card-value a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-10);
}

.team-card { text-align: center; }

.team-photo-wrap img[alt="Ms Dorcas Lepang"] {
  filter: drop-shadow(0 0 4px oklch(14% 0.015 60 / 0.9));
}

.team-photo-wrap {
  width: 100%;
  max-width: 210px;
  margin: 0 auto var(--sp-5);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
  max-width: none;
}

.team-role {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  max-width: none;
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] .hero {
  background: radial-gradient(ellipse 120% 80% at 50% 40%,
    oklch(93% 0.014 83),
    oklch(97% 0.010 85) 70%);
}

[data-theme="light"] .hero--home {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(95% 0.012 83 / 0.62), oklch(90% 0.014 80 / 0.75) 70%),
    url('../assets/images/hero_home.webp') center 75% / cover no-repeat;
}

[data-theme="light"] .hero--tgma {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(96% 0.010 82 / 0.72), oklch(93% 0.008 78 / 0.84) 70%),
    url('../assets/images/hero_tgma.webp') 65% 8% / 120% no-repeat;
}

[data-theme="light"] .hero--phla {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(95% 0.012 83 / 0.62), oklch(90% 0.014 80 / 0.75) 70%),
    url('../assets/images/hero_phla.webp') center / cover no-repeat;
}

[data-theme="light"] .hero--contact {
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%,
      oklch(95% 0.012 83 / 0.80), oklch(90% 0.014 80 / 0.88) 70%),
    url('../assets/images/hero_contact.webp') center / cover no-repeat;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse 60% 40% at 50% 100%,
    oklch(46% 0.115 70 / 0.08), transparent);
}

[data-theme="light"] .founder-hero {
  background: radial-gradient(ellipse 120% 80% at 50% 40%,
    oklch(93% 0.014 83),
    oklch(97% 0.010 85) 70%);
}

/* ===== RESPONSIVE: TABLET (≥ 640px) ===== */
@media (min-width: 640px) {
  .arms-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-inline: auto;
    gap: 0;
  }

  .arm-panel {
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--surface-3);
  }

  .arm-panel:first-child { border-left: none; border-bottom: 1px solid var(--surface-3); }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .klpd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phla-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programme-grid {
    max-width: 800px;
  }
}

/* ===== RESPONSIVE: DESKTOP (≥ 900px) ===== */
@media (min-width: 900px) {
  /* TGMA "What We Offer" — three cards: stacked on mobile, three-up on desktop.
     (Columns live here, not inline, so the mobile single-column rule isn't overridden.) */
  .arms-grid--three {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .about-grid {
    grid-template-columns: 1fr 400px;
  }

  .founder-grid {
    grid-template-columns: 360px 1fr;
    gap: clamp(4rem, 7vw, 7rem);
  }

  .founder-hero {
    grid-template-columns: 320px 1fr;
    align-items: center;
  }

  .founder-hero-photo {
    margin-inline: 0;
    width: 280px;
    height: 280px;
  }

  .founder-hero-logo {
    margin-inline: 0;
    width: 280px;
    height: 280px;
  }

  .founder-hero-text {
    text-align: left;
  }

  .founder-hero-text h1 {
    margin-inline: 0;
  }

  .founder-bio-grid {
    grid-template-columns: 320px 1fr;
  }

  .event-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 201; /* above the full-screen menu overlay (z-index 200) so the X morph is tappable to close */
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    z-index: 200;
    padding: var(--sp-24);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
  }
}

/* ===== MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.5s var(--ease-out),
      transform 0.5s var(--ease-out);
  }

  .fade-up.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--accent);
  color: var(--bg);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  z-index: 999;
  transition: top var(--dur-fast);
}

.skip-link:focus { top: var(--sp-4); }

/* ===== PROSE (long-form text sections) ===== */
.prose {
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.prose h2 {
  font-size: var(--fs-h2);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-6);
}

.prose h3 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}

.prose p + p { margin-top: var(--sp-5); }

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-top: var(--sp-4);
}

.prose li + li { margin-top: var(--sp-2); }

/* ===== CURRENCY TOGGLE ===== */
/* Academy logos in arm panels and page heroes */
.arm-logo {
  width: auto;
  height: 175px;
  max-width: 378px;
  object-fit: contain;
  margin: 0 auto var(--sp-6);
  display: block;
}

/* TWF arm logo swaps with the theme, like the nav logo */
.arm-logo.logo-light { display: none; }
[data-theme="light"] .arm-logo.logo-dark { display: none; }
[data-theme="light"] .arm-logo.logo-light { display: block; }

.page-logo-wrap {
  display: inline-block;
  margin-bottom: var(--sp-6);
}

.page-logo {
  width: auto;
  height: 280px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Dark mode: lighter-purple logo; light mode: original */
.tgma-logo-light { display: none; }
[data-theme="light"] .tgma-logo-dark { display: none; }
[data-theme="light"] .tgma-logo-light { display: block; }

.currency-toggle-wrap { margin-bottom: 0; }

.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.currency-btn {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.currency-btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.currency-btn:not(.is-active):hover { color: var(--ink); }

/* ===== GRADUATION GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card { max-width: 70ch; }

.testimonial-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface-2);
}

.testimonial-scroll p + p { margin-top: var(--sp-5); }

.testimonial-cite {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.testimonial-cite strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-1);
}
