/* ============================================================
   THE GROWTH CIRCLE - Human Development
   Original design system. Light/airy editorial + cinematic dark.
   Display: Space Grotesk · Body: Hanken Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --orange:        #E0851F;
  --orange-bright: #F39A2E;
  --orange-soft:   hsl(34 80% 53% / 0.12);
  --teal-deep:     #0C6E7A;
  --teal:          #138B97;
  --teal-bright:   #2BC4C0;
  --teal-leaf:     #43D6CB;

  /* Light theme (warm paper) */
  --bg:            #F7F5F1;
  --bg-2:          #EFEBE4;
  --surface:       #FFFFFF;
  --ink:           #16292B;
  --ink-2:         #46585A;
  --muted:         #8A9698;
  --line:          #E2DDD4;
  --line-strong:   #D4CEC2;
  --accent:        var(--teal-deep);
  --accent-2:      var(--orange);
  --glow:          transparent;

  --shadow-sm: 0 1px 2px hsl(190 30% 10% / 0.04), 0 4px 16px hsl(190 30% 10% / 0.05);
  --shadow-md: 0 4px 12px hsl(190 30% 10% / 0.06), 0 18px 48px hsl(190 30% 10% / 0.09);
  --shadow-lg: 0 24px 70px hsl(190 30% 10% / 0.16);

  /* Type */
  --display: 'Space Grotesk', sans-serif;
  --body:    'Hanken Grotesk', sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 38px;
  --r-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.35s var(--ease);
  --t-slow: 0.7s var(--ease);

  --maxw: 1220px;
}

[data-theme="dark"] {
  --bg:          #06141A;
  --bg-2:        #0A1E26;
  --surface:     #0E232B;
  --ink:         #EAF3F1;
  --ink-2:       #A7BFBE;
  --muted:       #6E8A8B;
  --line:        hsl(190 30% 60% / 0.14);
  --line-strong: hsl(190 30% 60% / 0.24);
  --accent:      var(--teal-bright);
  --accent-2:    var(--orange-bright);
  --glow:        hsl(186 80% 45% / 0.18);

  --shadow-sm: 0 2px 12px hsl(190 60% 2% / 0.5);
  --shadow-md: 0 10px 40px hsl(190 60% 2% / 0.55);
  --shadow-lg: 0 30px 80px hsl(190 70% 1% / 0.7);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-slow), color var(--t);
}
img, svg, canvas { display: block; max-width: 100%; }
img, video, iframe { height: auto; }
h1, h2, h3, h4, .display, .d-hero, .d-1, .d-2, .d-3, blockquote, p, a, li { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input { font: inherit; }
::selection { background: var(--orange-soft); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg-2); }

/* ─── Layout ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.75rem); }
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.dark-panel { background: var(--bg); color: var(--ink); }

/* ─── Type scale ─────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.d-hero  { font-size: clamp(3rem, 8.5vw, 7rem); }
.d-1     { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.d-2     { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.d-3     { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.lead    { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.body-lg { font-size: 1.075rem; color: var(--ink-2); }
.muted   { color: var(--muted); }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--accent-2); border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

.accent-ink { color: var(--accent); }
.orange-ink { color: var(--accent-2); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 500; font-size: 0.98rem;
  padding: 0.9rem 1.6rem; border-radius: var(--r-full);
  transition: transform var(--t-fast), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap; will-change: transform;
}
.btn .arw { transition: transform var(--t); }
.btn:hover .arw { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 6px 22px hsl(34 80% 45% / 0.32); }
.btn--accent:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 12px 34px hsl(34 80% 45% / 0.42); }

.btn--teal { background: var(--teal-deep); color: #fff; }
[data-theme="dark"] .btn--teal { background: var(--teal-bright); color: #042024; }
.btn--teal:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--light { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ─── Nav ────────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; line-height: 1.05; text-transform: uppercase;
}
.brand-name b { display: block; font-weight: 700; letter-spacing: 0.06em; font-size: 0.96rem; }
.brand-name { color: var(--ink); }
#nav:not(.scrolled) .brand-name { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  padding: 0.5rem 0.85rem; border-radius: var(--r-full); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.nav-academy { color: var(--accent-2); font-weight: 600; }
.nav-links a.nav-academy:hover { background: var(--orange-soft); color: var(--accent-2); }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.theme-btn {
  width: 42px; height: 42px; border-radius: var(--r-full);
  border: 1px solid var(--line-strong); color: var(--ink-2);
  display: grid; place-items: center; transition: var(--t);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(18deg); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
[data-theme="dark"] .theme-btn .moon { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--line-strong); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 78px 0 auto 0; z-index: 99;
  max-height: calc(100dvh - 78px); overflow-y: auto;
  background: var(--bg); padding: 2rem clamp(1.25rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; gap: 0.3rem;
  transform: translateY(-115%); visibility: hidden;
  transition: transform var(--t-slow), visibility var(--t-slow);
  border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 1.3rem; font-weight: 500; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1.5rem; }

/* ─── HERO (cinematic) ───────────────────────────────────── */
#hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: #06141A; color: #EAF3F1; overflow: hidden;
  padding: 9rem 0 5rem;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, hsl(186 70% 30% / 0.35), transparent 60%),
    radial-gradient(80% 60% at 50% 120%, hsl(190 80% 4% / 0.9), transparent 70%),
    linear-gradient(180deg, hsl(190 80% 4% / 0.2), hsl(190 80% 4% / 0.55));
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { color: var(--orange-bright); }
.hero-eyebrow::before { background: var(--orange-bright); }
.hero h1 { color: #fff; margin: 1.6rem 0 0; max-width: 16ch; }
.hero h1 .soft { color: var(--teal-leaf); }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px hsl(180 40% 80% / 0.55); }
.hero-sub { margin-top: 1.8rem; max-width: 52ch; color: hsl(180 20% 88% / 0.82); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; }
.hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-tag {
  margin-top: 3.5rem; display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--display); font-style: italic; font-size: 0.95rem; color: hsl(180 25% 82% / 0.7);
}
.hero-tag .leaf { width: 22px; height: 22px; flex-shrink: 0; }
.scrolldown {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: hsl(180 20% 80% / 0.5);
  font-family: var(--display);
}
.scrolldown .bar { width: 1px; height: 46px; background: linear-gradient(hsl(180 40% 80% / 0.6), transparent); animation: scrolldrop 2.2s var(--ease) infinite; }
@keyframes scrolldrop { 0%,100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* hero stats strip */
.hero-stats {
  position: relative; z-index: 2; margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: hsl(180 30% 60% / 0.16); border: 1px solid hsl(180 30% 60% / 0.16);
  border-radius: var(--r-md); overflow: hidden;
}
.hero-stat { background: hsl(190 60% 6% / 0.5); padding: 1.5rem 1.4rem; backdrop-filter: blur(4px); }
.hero-stat .n { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; line-height: 1; }
.hero-stat .n em { font-style: normal; color: var(--orange-bright); }
.hero-stat .l { margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(180 20% 82% / 0.6); }

/* ─── Section header ─────────────────────────────────────── */
.shead { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.shead.center { margin-left: auto; margin-right: auto; text-align: center; }
.shead h2 { margin-top: 1.1rem; }
.shead p { margin-top: 1.1rem; }

/* ─── Who we are (intro) ─────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.intro-figure { position: relative; }
.intro-figure img { width: 100%; height: clamp(380px, 48vw, 560px); object-fit: cover; border-radius: var(--r-lg); }
.arc-accent {
  position: absolute; border: 2.5px solid var(--orange); border-radius: 50%;
  border-right-color: transparent; border-bottom-color: transparent;
}
.intro-figure .arc-accent { width: 62%; height: 62%; right: -8%; bottom: -8%; transform: rotate(35deg); opacity: 0.85; z-index: -1; }
.float-card {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.85rem; max-width: 270px;
}
.float-card img { width: 38px; height: 38px; }
.float-card b { font-family: var(--display); font-size: 0.95rem; display: block; }
.float-card span { font-size: 0.8rem; color: var(--muted); }

/* ─── Domains (What we do - 4 areas) ─────────────────────── */
.domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.domain {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.domain::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-2); transform: scaleY(0); transform-origin: top; transition: transform var(--t);
}
.domain:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.domain:hover::after { transform: scaleY(1); }
.domain-ix { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; }
.domain-ico { width: 52px; height: 52px; margin: 1.2rem 0 1.3rem; color: var(--accent); }
.domain-ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.domain h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.domain p { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.98rem; }

/* ─── Purpose / mission-vision band ──────────────────────── */
.purpose-line { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(2rem, 5vw, 4rem); max-width: 18ch; }
.purpose-line .hl { color: var(--accent-2); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: clamp(2.5rem,5vw,3.5rem); }
.mv-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.75rem,3vw,2.4rem); background: var(--surface); }
.mv-card .tag { font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.mv-card p { margin-top: 0.9rem; font-size: 1.1rem; color: var(--ink); line-height: 1.5; }

/* ─── Philosophy (4 principles, dark editorial) ──────────── */
#philosophy { background: var(--bg-2); transition: background var(--t-slow); }
[data-theme="dark"] #philosophy { background: #081A20; }
.principles { display: grid; gap: 0; margin-top: 1rem; border-top: 1px solid var(--line-strong); }
.principle {
  display: grid; grid-template-columns: 7rem 1fr 1.2fr; gap: clamp(1rem,3vw,3rem); align-items: baseline;
  padding: clamp(1.75rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line-strong);
  transition: padding-left var(--t);
}
.principle:hover { padding-left: 0.6rem; }
.principle .pnum { font-family: var(--display); font-size: clamp(2rem,4vw,3rem); font-weight: 500; color: var(--accent-2); line-height: 1; }
.principle h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.principle p { color: var(--ink-2); font-size: 1.02rem; }

/* ─── Programs (tabbed) ──────────────────────────────────── */
.tabs { display: inline-flex; gap: 0.35rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); margin-bottom: 2.75rem; }
.tab {
  font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  padding: 0.62rem 1.3rem; border-radius: var(--r-full); color: var(--ink-2); transition: var(--t);
}
.tab.active { background: var(--ink); color: var(--bg); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.prog-grid[hidden] { display: none; }
.prog {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.1rem); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  min-height: 230px;
}
.prog:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prog .dur { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 0.35rem 0.7rem; border-radius: var(--r-full); }
.prog .pix { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.prog h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 1.4rem; }
.prog p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; flex-grow: 1; }
.prog .go { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 500; font-size: 0.9rem; color: var(--accent); }
.prog .go .arw { transition: transform var(--t); }
.prog:hover .go .arw { transform: translateX(4px); }

/* ─── Team ───────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.founder-card { position: relative; }
.founder-photo {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--teal-deep), #062a30);
  display: grid; place-items: center; position: relative;
}
.founder-photo .mono { width: 56%; opacity: 0.9; filter: brightness(0) invert(1); }
.founder-photo .ph-tag { position: absolute; bottom: 1rem; left: 1rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(180 20% 88% / 0.7); }
.founder-info .role { font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.founder-info h3 { font-family: var(--display); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 500; letter-spacing: -0.02em; margin: 0.8rem 0 1.2rem; }
.founder-info p { color: var(--ink-2); font-size: 1.03rem; max-width: 50ch; }
.team-note { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.team-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* leadership roster */
.roster-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin: clamp(3.5rem,7vw,5.5rem) 0 2.5rem; }
.roster-head h3 { font-family: var(--display); font-size: clamp(1.5rem,2.6vw,2.1rem); font-weight: 500; letter-spacing: -0.02em; max-width: 18ch; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.member { position: relative; }
.member .photo { position: relative; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(150deg, var(--teal-deep), #062a30); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.member:hover .photo img { transform: scale(1.05); }
.member .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, hsl(190 70% 5% / 0.5)); opacity: 0; transition: opacity var(--t); }
.member:hover .photo::after { opacity: 1; }
.member h4 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-top: 1rem; letter-spacing: -0.01em; }
.member .mrole { font-size: 0.82rem; color: var(--accent); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.3rem; }

/* ─── Testimonials ───────────────────────────────────────── */
#stories { background: var(--bg-2); transition: background var(--t-slow); overflow: hidden; }
[data-theme="dark"] #stories { background: #081A20; }
.tcarousel { overflow: hidden; }
.ttrack { display: flex; gap: 1.25rem; transition: transform 0.6s var(--ease); }
.tcard { flex: 0 0 calc(33.333% - 0.834rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; }
.tcard .stars { color: var(--orange); letter-spacing: 2px; font-size: 0.9rem; }
.tcard blockquote { margin-top: 1.1rem; font-size: 1rem; line-height: 1.65; color: var(--ink); flex-grow: 1; }
.tcard .who { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.8rem; }
.tcard .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #fff; flex-shrink: 0; }
.tcard .who b { font-family: var(--display); font-size: 0.95rem; }
.tcard .who span { display: block; font-size: 0.82rem; color: var(--muted); }
.tnav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.tnav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: var(--t); }
.tnav button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tdots { display: flex; gap: 7px; }
.tdots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: var(--t); }
.tdots i.on { width: 22px; background: var(--accent-2); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; text-align: left; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem,1.7vw,1.25rem); transition: color var(--t-fast); }
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--accent-2); border-radius: 2px; transition: var(--t); }
.faq-icon::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq-a-inner { padding: 0 0 1.6rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; max-width: 70ch; }

/* ─── Get involved ───────────────────────────────────────── */
.involve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.involve {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,2.5vw,2rem);
  background: var(--surface); transition: var(--t); display: flex; flex-direction: column; gap: 0.7rem;
}
.involve:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.involve .ix { font-family: var(--display); font-weight: 600; color: var(--accent-2); font-size: 0.95rem; }
.involve h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.involve p { color: var(--ink-2); font-size: 0.93rem; flex-grow: 1; }
.involve a { font-family: var(--display); font-weight: 500; font-size: 0.9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ─── CTA ────────────────────────────────────────────────── */
#cta { position: relative; overflow: hidden; background: #06141A; color: #fff; }
#cta-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.6; }
#cta .veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 120% at 50% 0%, hsl(186 70% 28% / 0.4), transparent 60%); }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin: 1.2rem 0; }
.cta-inner h2 .hl { color: var(--orange-bright); }
.cta-inner p { color: hsl(180 20% 88% / 0.78); font-size: 1.15rem; max-width: 52ch; margin: 0 auto; }
.cta-inner .row { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────── */
#footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(3.5rem,6vw,5rem) 0 2rem; transition: background var(--t-slow); }
[data-theme="dark"] #footer { background: #041015; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem,4vw,3.5rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.foot-brand img { width: 46px; margin-bottom: 1rem; }
.foot-brand p { color: var(--ink-2); font-size: 0.95rem; max-width: 34ch; }
.foot-tagline { margin-top: 1.2rem; font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--muted); max-width: 32ch; }
.foot-soc { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.foot-soc a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink-2); transition: var(--t); }
.foot-soc a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.foot-soc svg { width: 18px; height: 18px; }
.foot-col h4 { font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.foot-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-col a { color: var(--ink-2); font-size: 0.94rem; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--accent); }
.foot-contact { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.94rem; color: var(--ink-2); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: 0.85rem; color: var(--muted); }
.foot-bottom a { color: var(--accent); }

/* registration / non-profit badge */
.foot-reg { display: flex; align-items: center; gap: 0.7rem; padding: 1.4rem 0 0; margin-top: 1.6rem; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.reg-seal { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.85rem; border: 1.5px solid var(--accent); border-radius: var(--r-full); color: var(--accent); flex-shrink: 0; }
.reg-seal svg { width: 17px; height: 17px; flex-shrink: 0; }
.reg-seal b { font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.foot-reg .reg-text { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }
.foot-reg .reg-text b { color: var(--ink); font-weight: 600; }

/* ─── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d-1.reveal, .d-2.reveal { transition-duration: 0.85s; }
[data-d="1"] { transition-delay: 0.08s; }
[data-d="2"] { transition-delay: 0.16s; }
[data-d="3"] { transition-delay: 0.24s; }
[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ─── Video modal ────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; background: hsl(190 60% 3% / 0.88); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity var(--t); padding: 1.5rem; }
.modal.open { opacity: 1; pointer-events: all; }
.modal-box { width: min(960px, 100%); aspect-ratio: 16/9; position: relative; transform: scale(0.94); transition: transform var(--t-slow); }
.modal.open .modal-box { transform: scale(1); }
.modal iframe { width: 100%; height: 100%; border: none; border-radius: var(--r-md); }
.modal-x { position: absolute; top: -3rem; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); color: #fff; display: grid; place-items: center; transition: var(--t); }
.modal-x:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-actions .btn { display: none; }
  .intro-grid, .team-grid { grid-template-columns: 1fr; }
  .domains, .mv-grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .involve-grid { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .roster-head { display: block; }
  .roster-head h3 { margin-bottom: 0.6rem; }
  .tcard { flex: 0 0 calc(50% - 0.625rem); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 4rem 1fr; }
  .principle p { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .prog-grid, .involve-grid, .foot-grid { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tcard { flex: 0 0 100%; }
  .float-card { left: 50%; transform: translateX(-50%); bottom: -1.5rem; }
  .mv-card p { font-size: 1rem; }
}

/* small phones — tighten type, padding, and stacking */
@media (max-width: 480px) {
  :root { --maxw: 100%; }
  .section { padding: clamp(3.25rem, 12vw, 4.5rem) 0; }
  .wrap { padding: 0 1.15rem; }
  #hero { padding: 7rem 0 3.5rem; min-height: auto; }
  .d-hero { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .nav-row { height: 64px; }
  .mobile-menu { inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 0.72rem; }
  .brand-name b { font-size: 0.84rem; }
  .btn--lg { padding: 0.95rem 1.4rem; font-size: 1rem; }
  .principle { grid-template-columns: 1fr; gap: 0.4rem; }
  .principle .pnum { font-size: 2rem; }
  .ap-cta { flex-direction: column; align-items: stretch; }
  .ap-cta .btn { width: 100%; }
  .cta-inner .row { flex-direction: column; }
  .cta-inner .row .btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE ACADEMY PROMO
   ════════════════════════════════════════════════════════════ */
.academy-promo { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #06141A; color: #fff; }
.academy-promo canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.65; }
.ap-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 100% at 80% 0%, hsl(186 70% 26% / 0.45), transparent 55%), linear-gradient(110deg, hsl(190 75% 5% / 0.85) 30%, transparent 75%); }
.ap-inner { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 5rem); }
.ap-text { max-width: 640px; }
.ap-text h2 { color: #fff; margin-top: 1.2rem; }
.ap-text h2 .soft { color: var(--teal-leaf); }
.ap-sub { margin-top: 1.4rem; color: hsl(180 20% 90% / 0.82); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 56ch; }
.ap-feats { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ap-feat { display: flex; align-items: flex-start; gap: 0.7rem; }
.ap-ico { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0; display: grid; place-items: center; background: hsl(180 40% 60% / 0.14); color: var(--teal-leaf); }
.ap-ico svg { width: 20px; height: 20px; }
.ap-feat b { font-family: var(--display); font-size: 0.95rem; display: block; color: #fff; }
.ap-feat span { font-size: 0.82rem; color: hsl(180 20% 86% / 0.65); }
.ap-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ════════════════════════════════════════════════════════════
   HOMEPAGE PROJECTS SHOWCASE
   ════════════════════════════════════════════════════════════ */
.proj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); color: #fff; text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform var(--t-slow); }
.pcard:hover .bg { transform: scale(1.06); }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, hsl(190 60% 6% / 0.15) 0%, hsl(190 70% 5% / 0.45) 45%, hsl(190 75% 4% / 0.92) 100%); }
.pcard .pc-body { padding: clamp(1.5rem, 2.5vw, 2rem); }
.pcard .pc-tag { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-bright); }
.pcard h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; margin: 0.7rem 0 0.6rem; }
.pcard p { font-size: 0.94rem; color: hsl(180 20% 92% / 0.82); }
.pcard .pc-go { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 500; font-size: 0.92rem; color: #fff; }
.pcard .pc-go .arw { transition: transform var(--t); }
.pcard:hover .pc-go .arw { transform: translateX(5px); }

/* ════════════════════════════════════════════════════════════
   PROJECT SUB-PAGES
   ════════════════════════════════════════════════════════════ */
.proj-hero {
  position: relative; padding: clamp(8rem, 14vw, 12rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background: #06141A; color: #fff; overflow: hidden;
}
.proj-hero canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.7; }
.proj-hero .veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(100% 90% at 30% 0%, hsl(186 70% 26% / 0.4), transparent 60%), linear-gradient(180deg, transparent, hsl(190 75% 4% / 0.5)); }
.proj-hero .wrap { position: relative; z-index: 2; }
.crumb { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 0.82rem; font-weight: 500; color: hsl(180 25% 86% / 0.7); margin-bottom: 1.6rem; transition: color var(--t-fast); }
.crumb:hover { color: var(--orange-bright); }
.proj-hero h1 { color: #fff; max-width: 18ch; margin: 1.2rem 0 0; }
.proj-hero h1 .soft { color: var(--teal-leaf); }
.proj-hero .ph-sub { margin-top: 1.6rem; max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: hsl(180 20% 90% / 0.82); line-height: 1.55; }
.proj-hero .ph-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* split text+image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { display: block; }
.split.reverse .split-media { order: -1; }
.split-text .eyebrow { margin-bottom: 1rem; }
.split-text h2 { margin-bottom: 1.2rem; }
.split-text p { color: var(--ink-2); font-size: 1.04rem; }
.split-text p + p { margin-top: 1rem; }
.split-media { position: relative; }
.split-media img { width: 100%; height: clamp(360px, 44vw, 520px); object-fit: cover; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--teal-deep), #062a30); }
.split-media .arc-accent { width: 55%; height: 55%; }
.split-media.r-arc .arc-accent { right: -7%; bottom: -7%; transform: rotate(35deg); }
.split-media.l-arc .arc-accent { left: -7%; top: -7%; transform: rotate(215deg); }

/* checklist */
.focus-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.6rem; }
.focus-list.one-col { grid-template-columns: 1fr; }
.focus-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 0.96rem; transition: var(--t); }
.focus-item:hover { border-color: var(--accent); transform: translateX(3px); }
.focus-item .tick { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-top: 1px; }
.focus-item .tick svg { width: 13px; height: 13px; }

/* pillars (3-up) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar { text-align: center; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: var(--t); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar .pico { width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--accent-2); }
.pillar .pico svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.pillar p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }

/* impact stats */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.impact .item { background: var(--surface); padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.impact .n { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--accent); line-height: 1; }
.impact .l { margin-top: 0.6rem; font-size: 0.92rem; color: var(--ink-2); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery .g { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(150deg, var(--teal-deep), #062a30); position: relative; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery .g:hover img { transform: scale(1.06); }
.gallery .g .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem 0.9rem; font-size: 0.82rem; color: #fff; background: linear-gradient(transparent, hsl(190 70% 4% / 0.85)); }

/* donate card */
.donate { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3.5rem); background: var(--surface); }
.donate .bar { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 1.2rem 0 0.7rem; }
.donate .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.donate .meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.bank { display: grid; gap: 0.55rem; }
.bank .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bank .row span { color: var(--muted); }
.bank .row b { font-family: var(--display); font-weight: 600; }

@media (max-width: 1024px) {
  .proj-cards, .pillars { grid-template-columns: 1fr; }
  .split, .donate { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .impact { grid-template-columns: 1fr 1fr; }
  .ap-feats { grid-template-columns: 1fr; gap: 0.85rem; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .focus-list { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; }
}
