/* =====================================================================
   Learning and Research Hub (LRH) - design system
   Palette: Deep Emerald #065F46, Midnight Navy #0F172A, Amber #F59E0B, Off-white #F8FAFC
   Type: Plus Jakarta Sans (UI) + JetBrains Mono (tech badges, data)
   Sections: 1 tokens  2 base  3 buttons  4 nav  5 hero  6 stats  7 sections/about
             8 programs  9 research  10 involved/calculator  11 contact  12 footer
             13 overlays (modal/drawer)  14 forms  15 utilities  16 modes (lite/motion)
   ===================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --em-950: #022C22; --em-900: #064E3B; --em: #065F46; --em-700: #047857; --em-500: #10B981; --em-400: #34D399; --em-100: #D1FAE5; --em-50: #ECFDF5;
  --navy: #0F172A; --navy-2: #1E293B; --navy-3: #334155;
  --amber: #F59E0B; --amber-600: #D97706; --amber-300: #FCD34D; --amber-100: #FEF3C7; --amber-50: #FFFBEB;
  --bg: #F8FAFC; --card: #FFFFFF; --ink: #0F172A; --muted: #475569; --line: #E2E8F0; --line-2: #CBD5E1;
  --danger: #B91C1C;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.06);
  --shadow-2: 0 2px 6px rgba(15,23,42,.06), 0 18px 44px rgba(15,23,42,.14);
  --font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--em); text-underline-offset: .2em; }
a:hover { color: var(--em-900); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--amber-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--navy); }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(1200px, 100% - 3rem); } }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--amber); color: var(--navy); padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--em-500), var(--amber)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- 3. buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .6rem 1.35rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; text-align: center; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: .75rem 1.7rem; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--em); color: #fff; }
.btn-primary:hover { background: var(--em-900); color: #fff; box-shadow: 0 10px 24px rgba(6,95,70,.28); }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-300); color: var(--navy); box-shadow: 0 10px 28px rgba(245,158,11,.35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--em); color: var(--em); background: var(--em-50); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 2px solid transparent; color: inherit; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { background: rgba(148,163,184,.18); }
.icon-btn[aria-pressed="true"] { background: var(--amber); color: var(--navy); }

/* ---------- 4. navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); color: #fff; transition: background-color .3s, box-shadow .3s, color .3s; }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.scrolled, .nav.open { background: rgba(248,250,252,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); color: var(--navy); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15,23,42,.06); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand img { border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .68rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }
.brand.on-dark { color: #fff; }

.links ul, .lens-leave ul { list-style: none; padding: 0; margin: 0; }
.links ul { display: flex; gap: .15rem; }
.links a { display: block; position: relative; padding: .55rem .78rem; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .9; white-space: nowrap; transition: background-color .2s, opacity .2s; }
.links a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 3px; border-radius: 3px; background: var(--amber); transform: translateX(-50%); transition: width .25s var(--ease); }
.links a:hover { opacity: 1; background: rgba(148,163,184,.16); color: inherit; }
.links a[aria-current="true"] { opacity: 1; }
.links a[aria-current="true"]::after { width: 18px; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-sponsor { display: none; }
.nav:not(.scrolled):not(.open) .nav-sponsor { color: #fff; border-color: rgba(255,255,255,.4); }
.nav:not(.scrolled):not(.open) .nav-sponsor:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.menu-cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid currentColor; background: transparent; color: inherit; place-items: center; opacity: .9; }
.burger .i-close { display: none; }
.nav.open .burger .i-menu { display: none; }
.nav.open .burger .i-close { display: inline; }

@media (min-width: 1500px) { .nav-sponsor { display: inline-flex; } }
@media (max-width: 1199px) {
  .nav-partner { display: none; }
  .burger { display: inline-grid; }
  .links { position: fixed; left: 0; right: 0; top: var(--nav-h); background: var(--bg); color: var(--navy); padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; box-shadow: 0 24px 40px rgba(15,23,42,.18); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open .links { opacity: 1; visibility: visible; transform: none; }
  .links ul { flex-direction: column; gap: .15rem; margin-bottom: 1rem; }
  .links a { padding: .85rem .9rem; font-size: 1.05rem; border-radius: 12px; }
  .links a::after { display: none; }
  .links a[aria-current="true"] { background: var(--em-50); color: var(--em); }
  .menu-cta { display: grid; gap: .6rem; }
  .menu-cta .btn-outline { color: var(--navy); border-color: var(--line-2); }
}

/* ---------- 5. hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem)) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  background:
    radial-gradient(52rem 34rem at 88% -8%, rgba(16,185,129,.38), transparent 62%),
    radial-gradient(38rem 28rem at -8% 108%, rgba(245,158,11,.20), transparent 58%),
    radial-gradient(30rem 22rem at 50% 120%, rgba(6,95,70,.55), transparent 70%),
    var(--navy); }
.hero-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-dark.svg') center top / 80px 80px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-300); padding: .45rem .9rem; border: 1px solid rgba(252,211,77,.35); border-radius: 999px; background: rgba(245,158,11,.08); margin-bottom: 1.3rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,158,11,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
.hero h1 { font-size: clamp(2.15rem, 4.2vw + .9rem, 4.1rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.hl { color: var(--amber); background: linear-gradient(transparent 82%, rgba(245,158,11,.38) 82%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.lead { margin-top: 1.4rem; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: #CBD5E1; max-width: 38em; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 500; color: #E2E8F0; padding: .42rem .8rem; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.chips .i { color: var(--em-400); }

.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
.art-frame { animation: floaty 9s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(2,44,34,.5)); }
.art-frame img { width: 100%; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.float { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; background: rgba(248,250,252,.96); color: var(--navy); font-size: .74rem; font-weight: 700; border-radius: 12px; box-shadow: 0 12px 28px rgba(2,6,23,.35); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float .i { color: var(--amber-600); }
.f1 { top: 12%; left: -2%; }
.f2 { bottom: 24%; right: -3%; animation-delay: -2s; }
.f3 { bottom: 6%; left: 8%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .f1 { left: 0; } .f2 { right: 0; } .float { font-size: .68rem; padding: .4rem .65rem; } }

.paths { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.paths-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #94A3B8; font-weight: 700; margin-bottom: .9rem; }
.path-grid { display: grid; gap: 1rem; }
@media (min-width: 820px) { .path-grid { grid-template-columns: 1fr 1fr; } }
.path { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico body" "ico go"; gap: .3rem 1.1rem; align-items: center; text-align: left; padding: 1.3rem 1.5rem; border-radius: var(--r-lg); color: #fff; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s; }
.path:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); border-color: var(--amber); box-shadow: 0 18px 40px rgba(2,6,23,.4); }
.path[aria-pressed="true"] { background: rgba(245,158,11,.14); border-color: var(--amber); }
.path-ico { grid-area: ico; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--amber); color: var(--navy); font-size: 1.7rem; transition: transform .3s var(--ease); }
.path-teen .path-ico { background: var(--em-400); }
.path:hover .path-ico { transform: rotate(-6deg) scale(1.06); }
.path-body { grid-area: body; display: flex; flex-direction: column; gap: .2rem; }
.path-body strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.path-body span { color: #CBD5E1; font-size: .93rem; line-height: 1.5; }
.path-go { grid-area: go; display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--amber-300); margin-top: .35rem; }
.path-go .i { transition: transform .25s var(--ease); }
.path:hover .path-go .i { transform: translateX(5px); }

.zig { position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16 16 0l16 16z' fill='%23F8FAFC'/%3E%3C/svg%3E") repeat-x bottom left / 32px 16px; }

/* ---------- 6. impact counters ---------- */
.impact-bar { position: relative; z-index: 3; margin-top: -2.2rem; padding-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.2rem; background: #fff; }
.stat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--em-50); color: var(--em); font-size: 1.35rem; flex: none; }
.stat:nth-child(even) .stat-ico { background: var(--amber-100); color: var(--amber-600); }
.stat-num { display: block; font-size: clamp(1.55rem, 2vw + .8rem, 2.25rem); font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: .3rem; font-size: .84rem; line-height: 1.3; color: var(--muted); font-weight: 500; }
@media (max-width: 520px) { .stat { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.1rem; } }

/* ---------- 7. sections + about ---------- */
.section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--em-700); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.eyebrow.on-dark, .on-dark .eyebrow { color: var(--amber-300); }
.sec-head h2 { font-size: clamp(1.85rem, 2.6vw + 1rem, 3rem); text-wrap: balance; }
.sec-lead { margin-top: 1rem; font-size: clamp(1.02rem, .4vw + .95rem, 1.18rem); color: var(--muted); }
.on-dark h2 { color: #fff; }
.on-dark .sec-lead { color: #CBD5E1; }
.h3 { font-size: 1.5rem; margin-bottom: .9rem; }

.about { background: var(--bg); }
.about::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-light.svg') 0 0 / 80px 80px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); pointer-events: none; }
.about .container { position: relative; }
.about-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.05fr; } }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.ticks { display: grid; gap: .7rem; margin-top: 1.3rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.ticks .i { color: #fff; background: var(--em); border-radius: 50%; padding: .22em; width: 1.5em; height: 1.5em; margin-top: .1em; stroke-width: 3; }

.lens { background: var(--em-900); color: #fff; border-radius: var(--r-xl); padding: clamp(1.2rem, 2.5vw, 2rem); position: relative; overflow: hidden; box-shadow: var(--shadow-2); }
.lens::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-dark.svg') 0 0 / 80px 80px; opacity: .8; pointer-events: none; }
.lens::after { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.4), transparent 65%); pointer-events: none; }
.lens > * { position: relative; z-index: 1; }
.lens-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lens-tab { display: flex; align-items: center; gap: .6rem; text-align: left; padding: .75rem .9rem; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.lens-tab:hover { background: rgba(255,255,255,.14); }
.lens-tab[aria-selected="true"] { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.lens-tab .i { font-size: 1.3rem; }
.lens-panel { margin-top: 1.2rem; display: grid; gap: .9rem; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lens-block { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(2,44,34,.55); border: 1px solid rgba(255,255,255,.12); }
.lens-block.solve { background: rgba(245,158,11,.12); border-color: rgba(252,211,77,.35); }
.lens-block p:last-child { color: #E2E8F0; }
.lens .label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-300); font-weight: 700; margin-bottom: .35rem; }
.lens-leave ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.lens-leave li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .85rem; font-weight: 600; }
.lens-leave .i { color: var(--em-400); stroke-width: 3; }

.mosaic { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.2rem 0 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); -webkit-overflow-scrolling: touch; }
.shot { position: relative; scroll-snap-align: center; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-2); background: #fff; border: 4px solid #fff; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: .35rem .75rem; border-radius: 999px; background: rgba(15,23,42,.88); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
@media (min-width: 760px) {
  .mosaic { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 1.5rem; padding: 2rem 0 1rem; }
  .s1 { transform: rotate(-1.6deg); } .s2 { transform: translateY(18px); } .s3 { transform: rotate(1.6deg); }
}

.hub-card { position: relative; margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: var(--r-xl); color: #fff; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--em-900) 100%); box-shadow: var(--shadow-2); }
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-dark.svg') 0 0 / 80px 80px; opacity: .7; }
.hub-card > * { position: relative; }
@media (min-width: 900px) { .hub-card { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.hub-copy h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); margin-bottom: .7rem; }
.hub-copy p { color: #CBD5E1; }
.hub-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hub-points { display: grid; gap: .7rem; }
.hub-points li { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; font-weight: 500; }
.hub-points .i { color: var(--amber); font-size: 1.3rem; }

/* ---------- 8. programs ---------- */
.programs { background: #fff; }
.programs::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-light.svg') 0 0 / 80px 80px; -webkit-mask-image: linear-gradient(0deg, #000, transparent 45%); mask-image: linear-gradient(0deg, #000, transparent 45%); pointer-events: none; }
.programs .container { position: relative; }
.tabs { display: grid; gap: .8rem; max-width: 52rem; margin: 0 auto; }
@media (min-width: 640px) { .tabs { grid-template-columns: 1fr 1fr; } }
.tab { display: flex; align-items: center; gap: .9rem; text-align: left; padding: 1rem 1.2rem; border-radius: 20px; background: var(--bg); border: 2px solid var(--line); color: var(--navy); transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.tab:hover { border-color: var(--em); transform: translateY(-2px); }
.tab > .i { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 14px; background: var(--em-100); color: var(--em); }
.tab[data-pillar="teens"] > .i { background: var(--amber-100); color: var(--amber-600); }
.tab-label { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.tab-label strong { font-size: 1.08rem; }
.tab-label small { color: var(--muted); font-size: .8rem; }
.tab-count { font-size: .78rem; font-weight: 700; min-width: 2rem; text-align: center; padding: .25rem .5rem; border-radius: 999px; background: var(--line); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.tab[aria-selected="true"] .tab-label small { color: #CBD5E1; }
.tab[aria-selected="true"] .tab-count { background: var(--amber); color: var(--navy); }
.tab[aria-selected="true"] > .i { background: var(--amber); color: var(--navy); }

.pillar-intro { max-width: 52rem; margin: 1.6rem auto 2rem; text-align: center; color: var(--muted); }
.pillar-intro .badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--amber-100); color: #92400E; margin-bottom: .7rem; }

.cards { display: grid; gap: 1.3rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; padding: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; animation: fadeUp .5s var(--ease) both; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--em-400); }
.card::before { content: ''; position: absolute; left: 1.6rem; top: -1px; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--amber); transition: width .3s var(--ease); }
.card:hover::before { width: 110px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.card-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--em-100); color: var(--em); font-size: 1.5rem; }
.cards[data-pillar="teens"] .card-ico { background: var(--amber-100); color: var(--amber-600); }
.card-dur { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 999px; }
.card h3 { font-size: 1.28rem; line-height: 1.2; margin-bottom: .65rem; }
.card-sum { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.tags li { font-family: var(--mono); font-size: .7rem; font-weight: 500; padding: .25rem .6rem; border-radius: 7px; background: var(--em-50); color: var(--em); border: 1px solid var(--em-100); }
.card-meta { display: grid; gap: .55rem; font-size: .85rem; padding-top: 1rem; margin-top: auto; border-top: 1px dashed var(--line-2); }
.card-meta div { display: grid; grid-template-columns: 4.6rem 1fr; gap: .5rem; }
.card-meta dt { color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .12rem; }
.card-meta dd { font-weight: 500; }
.card-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

.apply-band { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-xl); background: var(--amber-100); border: 2px dashed var(--amber-600); }
@media (min-width: 860px) { .apply-band { grid-template-columns: 1fr auto; } }
.apply-band h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.apply-band p { color: #78350F; }

/* ---------- 9. research ---------- */
.research { background: var(--bg); }
.toolbar { display: grid; gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .toolbar { grid-template-columns: 1fr 14rem 12rem; } }
.search, .select { position: relative; display: block; }
.search .i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .select select { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.search input { padding-left: 2.8rem; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center; }
.search input:focus, .select select:focus { outline: none; border-color: var(--em); box-shadow: 0 0 0 4px rgba(6,95,70,.14); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: .88rem; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--em); }
.chip[aria-pressed="true"] { background: var(--em); border-color: var(--em); color: #fff; }
.chip small { font-family: var(--mono); opacity: .7; margin-left: .3rem; }
.result-count { font-size: .8rem; color: var(--muted); margin-bottom: 1.1rem; }
.pubs { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .pubs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pubs { grid-template-columns: repeat(3, 1fr); } }
.pub { display: flex; flex-direction: column; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: fadeUp .45s var(--ease) both; }
.pub:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.pub-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.type { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 8px; background: var(--em); color: #fff; }
.type-policy-brief { background: var(--amber); color: var(--navy); }
.type-case-study { background: var(--navy); }
.year { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 500; }
.sample { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; border: 1px dashed var(--amber-600); color: #92400E; background: var(--amber-50); }
.pub h3 { font-size: 1.12rem; line-height: 1.28; margin-bottom: .55rem; }
.pub-authors { font-size: .74rem; color: var(--muted); margin-bottom: .75rem; }
.pub-sum { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.1rem; }
.pub-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.topic { font-size: .72rem; color: var(--em-700); font-weight: 700; }
.pub-actions { display: flex; gap: .45rem; }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: #fff; }
.empty .i { width: 2.4rem; height: 2.4rem; color: var(--muted); margin-bottom: .6rem; }
.empty h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.empty p { color: var(--muted); margin-bottom: 1rem; }
[hidden] { display: none !important; }

/* ---------- 10. get involved + calculator ---------- */
.involved { color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.involved-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: radial-gradient(46rem 30rem at 85% 0%, rgba(16,185,129,.30), transparent 60%), radial-gradient(40rem 26rem at 0% 100%, rgba(245,158,11,.16), transparent 60%), var(--navy); }
.involved-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-dark.svg') 0 0 / 80px 80px; }
.calc { display: grid; border-radius: var(--r-xl); overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(2,6,23,.5); }
@media (min-width: 900px) { .calc { grid-template-columns: 1.05fr .95fr; } }
.calc-main { padding: clamp(1.4rem, 3vw, 2.4rem); }
.calc-toggles { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--muted); min-height: 38px; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.calc-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.calc-amount { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); letter-spacing: -.04em; line-height: 1.1; margin: .3rem 0 1.1rem; color: var(--em); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 999px; background: linear-gradient(to right, var(--em) 0, var(--em) var(--pct, 20%), var(--line) var(--pct, 20%), var(--line) 100%); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); border: 5px solid var(--navy); box-shadow: 0 4px 12px rgba(15,23,42,.35); transition: transform .15s; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); border: 5px solid var(--navy); box-shadow: 0 4px 12px rgba(15,23,42,.35); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: 3px solid var(--amber-600); outline-offset: 6px; }
.calc-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .6rem; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.2rem; }
.preset { padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .85rem; font-family: var(--mono); transition: all .2s; }
.preset:hover { border-color: var(--em); }
.preset[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.custom { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.custom-in { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.custom-in:focus-within { border-color: var(--em); box-shadow: 0 0 0 4px rgba(6,95,70,.14); }
.custom-in b { padding: 0 .9rem; font-family: var(--mono); color: var(--em); background: var(--em-50); align-self: stretch; display: grid; place-items: center; }
.custom-in input { flex: 1; min-width: 0; min-height: 48px; border: 0; padding: .6rem .9rem; background: transparent; outline: none; font-family: var(--mono); font-weight: 700; color: var(--ink); }

.calc-out { position: relative; padding: clamp(1.4rem, 3vw, 2.4rem); background: linear-gradient(160deg, var(--em-900), var(--em-950)); color: #fff; display: grid; gap: 1.2rem; align-content: start; overflow: hidden; }
.calc-out::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-dark.svg') 0 0 / 80px 80px; }
.calc-out > * { position: relative; }
.ring-wrap { position: relative; width: 132px; height: 132px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .7s var(--ease); }
.ring-text { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.ring-text strong { font-family: var(--mono); font-size: 1.5rem; }
.ring-text span { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: #A7F3D0; }
.calc-headline { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.7rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.calc-detail { color: #A7F3D0; margin-top: .5rem; font-size: .95rem; }
.people { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.3rem; min-height: 34px; }
.person { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--navy); font-size: .95rem; animation: pop .35s var(--ease) both; }
.person.more { width: auto; padding: 0 .7rem; border-radius: 999px; font-family: var(--mono); font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.14); color: #fff; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.fine { font-size: .78rem; color: #94A3B8; margin-top: .9rem; }

.options-title { margin: clamp(2.6rem, 5vw, 4rem) 0 1.2rem; font-size: 1.5rem; text-align: center; color: #fff; }
.options { display: grid; gap: 1rem; }
@media (min-width: 640px) { .options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .options { grid-template-columns: repeat(4, 1fr); } }
.opt { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.opt:hover { transform: translateY(-5px); background: rgba(255,255,255,.11); border-color: var(--amber); }
.opt-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--amber); color: var(--navy); font-size: 1.45rem; margin-bottom: .4rem; }
.opt h4 { font-size: 1.15rem; color: #fff; }
.opt p { color: #CBD5E1; font-size: .92rem; flex: 1; }
.opt .btn { margin-top: .8rem; align-self: flex-start; }

/* ---------- 11. contact ---------- */
.contact { background: #fff; }
.contact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/pattern-light.svg') 0 0 / 80px 80px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%); mask-image: linear-gradient(180deg, #000, transparent 40%); pointer-events: none; }
.contact .container { position: relative; }
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } .form-card { position: sticky; top: 96px; } }
.contact-info { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 979px) { .contact-info { grid-template-columns: 1fr 1fr; } .map-card, .info-card:first-child { grid-column: 1 / -1; } }
.info-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.info-card h3 { font-size: 1rem; margin-bottom: .15rem; }
.info-card .mono { display: block; font-weight: 700; font-size: .95rem; color: var(--em); }
.info-card small { display: block; color: var(--muted); font-size: .8rem; }
.info-card address { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.info-card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--em-400); color: var(--ink); }
.info-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--em-100); color: var(--em); font-size: 1.3rem; }
.info-card.wa .info-ico { background: #DCFCE7; color: #15803D; }
.map-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); min-height: 280px; position: relative; }
.map-ph { display: grid; place-content: center; justify-items: center; text-align: center; gap: .5rem; padding: 2rem 1.2rem; min-height: 280px; background: linear-gradient(rgba(248,250,252,.86), rgba(248,250,252,.92)), url('../img/pattern-light.svg') 0 0 / 80px 80px; }
.map-ph > .i { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: var(--amber); color: var(--navy); box-sizing: content-box; }
.map-ph p { color: var(--muted); font-size: .9rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .4rem; }
.map-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 280px; border: 0; }
.map-open { position: absolute; right: .7rem; bottom: .7rem; box-shadow: var(--shadow-1); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow-2); }

/* ---------- 12. footer ---------- */
.footer { position: relative; background: var(--navy); color: #CBD5E1; padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem; overflow: hidden; isolation: isolate; }
.footer-pattern { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: url('../img/pattern-dark.svg') 0 0 / 80px 80px; -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--em-500), var(--amber)); }
.foot-grid { display: grid; gap: 2.4rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr; gap: 2rem; } }
.foot-brand p { margin: 1.1rem 0; max-width: 28em; font-size: .95rem; }
.foot-contact { display: grid; gap: .6rem; font-size: .92rem; }
.foot-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.foot-contact .i { color: var(--amber); margin-top: .22em; }
.foot-contact a, .foot-links a { color: #E2E8F0; text-decoration: none; }
.foot-contact a:hover, .foot-links a:hover { color: var(--amber-300); text-decoration: underline; }
.footer h4 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.foot-links { display: grid; gap: .55rem; font-size: .93rem; }
.foot-links button { background: none; border: 0; padding: 0; text-align: left; color: #E2E8F0; }
.foot-links button:hover { color: var(--amber-300); text-decoration: underline; }
.foot-news p { font-size: .93rem; margin-bottom: .9rem; }
.foot-news form { display: flex; flex-wrap: wrap; gap: .5rem; }
.foot-news input[type="email"] { flex: 1 1 11rem; min-width: 0; min-height: 46px; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; }
.foot-news input[type="email"]::placeholder { color: #94A3B8; }
.foot-news input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.field-msg { flex-basis: 100%; font-size: .82rem; min-height: 1.2em; margin: .2rem 0 0 !important; }
.field-msg.ok { color: var(--em-400); } .field-msg.err { color: #FCA5A5; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.social button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background-color .2s, color .2s, transform .2s; }
.social button:hover { background: var(--amber); color: var(--navy); transform: translateY(-3px); }
.foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #94A3B8; }

.fab-wa { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem; border-radius: 999px; background: #16A34A; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 12px 28px rgba(22,163,74,.4); transition: transform .2s var(--ease), background-color .2s; }
.fab-wa:hover { background: #15803D; color: #fff; transform: translateY(-3px); }
.fab-wa .i { font-size: 1.35rem; }
@media (max-width: 520px) { .fab-wa span { display: none; } .fab-wa { padding: .9rem; } }
.to-top { position: fixed; right: 16px; bottom: 76px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--em); }

/* ---------- 13. overlays: modal + drawer ---------- */
.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.overlay.open { visibility: visible; opacity: 1; }
.backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(2,6,23,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.panel { position: relative; width: min(760px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--r-xl); box-shadow: 0 40px 90px rgba(2,6,23,.55); transform: translateY(24px) scale(.97); transition: transform .35s var(--ease); outline: none; overflow: hidden; }
.overlay.open .panel { transform: none; }
.panel.sm { width: min(520px, 100%); }
.panel.lg { width: min(880px, 100%); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--em-50), #fff); }
.panel-kicker { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--em-700); margin-bottom: .35rem; }
.panel-head h2 { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.75rem); line-height: 1.15; }
.panel-x { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.panel-x:hover { background: var(--bg); border-color: var(--navy); }
.panel-body { padding: 1.4rem 1.6rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.panel-foot { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: var(--bg); }
.overlay.drawer-wrap { justify-content: flex-end; align-items: stretch; padding: 0; }
.panel.drawer { width: min(560px, 100%); max-height: none; height: 100%; border-radius: var(--r-xl) 0 0 var(--r-xl); transform: translateX(40px); }
.overlay.open .panel.drawer { transform: none; }
@media (max-width: 640px) {
  .overlay:not(.drawer-wrap) { align-items: flex-end; padding: 0; }
  .overlay:not(.drawer-wrap) .panel { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .overlay.drawer-wrap .panel.drawer { width: 100%; border-radius: 0; }
  .panel-head, .panel-body, .panel-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
}

.syl-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
@media (min-width: 640px) { .syl-meta { grid-template-columns: repeat(4, 1fr); } }
.syl-meta div { padding: .75rem .85rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.syl-meta span { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.syl-meta b { font-size: .9rem; line-height: 1.3; display: block; }
.syl-sum { color: var(--muted); margin-bottom: 1.2rem; }
.syl-h { font-size: 1.05rem; margin: 1.6rem 0 .8rem; }
.acc { display: grid; gap: .5rem; }
.acc details { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.acc summary { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; cursor: pointer; font-weight: 700; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .mono { color: var(--amber-600); font-size: .8rem; }
.acc summary .i { margin-left: auto; transition: transform .25s; color: var(--muted); }
.acc details[open] { border-color: var(--em-400); }
.acc details[open] summary { background: var(--em-50); }
.acc details[open] summary .i { transform: rotate(180deg); }
.acc ul { padding: .6rem 1rem 1rem 2.6rem; color: var(--muted); font-size: .93rem; list-style: disc; }
.acc li { margin-bottom: .25rem; }
.callout { display: flex; gap: .8rem; padding: 1rem 1.1rem; margin-top: 1.4rem; border-radius: 16px; background: var(--amber-50); border: 1px solid var(--amber-300); font-size: .92rem; }
.callout .i { color: var(--amber-600); font-size: 1.3rem; margin-top: .1rem; }
.cite { padding: 1rem 1.1rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--navy-3); margin-top: .5rem; }
.pub-points { display: grid; gap: .55rem; margin: .6rem 0 0; }
.pub-points li { display: flex; gap: .6rem; align-items: flex-start; }
.pub-points .i { color: var(--em); margin-top: .25em; stroke-width: 3; }

.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.2rem; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.seg-tabs button { border: 0; background: transparent; padding: .7rem .8rem; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); min-height: 44px; transition: background-color .2s, color .2s; }
.seg-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-1); }
.panel-note { padding: .85rem 1rem; border-radius: 14px; background: var(--em-50); border: 1px solid var(--em-100); color: var(--em-900); font-size: .9rem; margin-bottom: 1.1rem; }
.bank { display: grid; gap: .3rem; padding: 1rem; margin-top: 1rem; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); font-size: .9rem; }

.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 300; transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100% - 2rem)); pointer-events: none; }
.toast { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1.1rem; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow-2); font-size: .92rem; animation: fadeUp .35s var(--ease); pointer-events: auto; }
.toast .i { color: var(--em-400); font-size: 1.25rem; margin-top: .05rem; }
.toast.err .i { color: #FCA5A5; }

/* ---------- 14. forms ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field legend { font-size: .86rem; font-weight: 700; color: var(--navy-2); padding: 0; }
.req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .95rem center; }
.field input::placeholder, .field textarea::placeholder { color: #64748B; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--em); box-shadow: 0 0 0 4px rgba(6,95,70,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #FEF2F2; }
.field-err { color: var(--danger); font-size: .82rem; font-weight: 600; min-height: 0; }
.field-help { color: var(--muted); font-size: .8rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: .88rem; transition: all .2s; }
.pill:hover span { border-color: var(--em); }
.pill input:checked + span { background: var(--em); border-color: var(--em); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--amber-600); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--em); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; margin-top: .3rem; }
.route { font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.route .i { color: var(--em); }
.form-done { text-align: center; padding: 1.5rem .5rem; display: grid; gap: .8rem; justify-items: center; }
.form-done .big { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--em); color: #fff; font-size: 2rem; animation: pop .5s var(--ease); }
.form-done .big.warn { background: var(--amber); color: var(--navy); }
.form-done h3 { font-size: 1.4rem; }
.form-done p { color: var(--muted); max-width: 30em; }
.done-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .4rem; }
.draft { width: 100%; text-align: left; font-family: var(--mono); font-size: .76rem; line-height: 1.55; padding: .9rem 1rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); max-height: 9rem; overflow: auto; white-space: pre-wrap; color: var(--navy-3); }

/* ---------- 14b. photographs + gallery ---------- */
.art-frame img.is-photo { aspect-ratio: 10 / 11; object-fit: cover; border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 0 0 7px rgba(245,158,11,.55); }
.shot img.is-photo { background: var(--line); }
.mosaic-more { text-align: center; margin: .4rem 0 0; }
.pillar-intro.has-photo { display: grid; gap: 1rem; align-items: center; text-align: left; max-width: 60rem; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.pillar-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--line); }
.pillar-text { padding: .2rem .8rem .8rem; }
@media (min-width: 720px) {
  .pillar-intro.has-photo { grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.4rem; }
  .pillar-photo img { aspect-ratio: 4 / 3; }
  .pillar-text { padding: .6rem 1.2rem .6rem 0; }
}
.lb-stage { position: relative; display: grid; place-items: center; background: var(--navy); border-radius: 18px; overflow: hidden; min-height: 220px; }
.lb-stage img { display: block; width: 100%; max-height: min(62vh, 560px); object-fit: contain; transition: opacity .25s; }
.lb-stage img.loading { opacity: .35; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15,23,42,.72); color: #fff; font-size: 1.3rem; transition: background-color .2s, color .2s; }
.lb-nav.prev { left: .6rem; }
.lb-nav.next { right: .6rem; }
.lb-nav:hover { background: var(--amber); color: var(--navy); }
.lb-cap { margin-top: .8rem; font-weight: 600; color: var(--navy); }
.lb-cap .mono { color: var(--muted); font-size: .78rem; margin-right: .5rem; }
.lb-thumbs { list-style: none; padding: 0 0 .4rem; margin: .8rem 0 0; display: flex; gap: .5rem; overflow-x: auto; }
.lb-thumbs li { flex: none; }
.lb-thumbs button { display: block; width: 76px; height: 56px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: var(--line); opacity: .7; transition: opacity .2s, border-color .2s; }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button[aria-current="true"] { border-color: var(--amber); opacity: 1; }
.lb-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 15. reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 16. modes: data saver + reduced motion ---------- */
html.lite * { animation: none !important; transition: none !important; }
html.lite .hero-bg::after, html.lite .involved-bg::after, html.lite .footer-pattern, html.lite .about::before, html.lite .programs::before, html.lite .contact::before, html.lite .lens::before, html.lite .hub-card::before, html.lite .calc-out::before { display: none; }
html.lite .float { display: none; }
html.lite .js .reveal, html.lite .reveal { opacity: 1; transform: none; }
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .art-frame { filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .fab-wa, .to-top, .progress, .overlay { display: none !important; } .hero { padding-top: 1rem; } }
