/* site.css — landing page (index.html). Brand: deep violet #3A2266, amber #E3A21A. Concept: mission-driven, warm, human. */
:root {
  --brand: #3a2266;
  --brand-2: #503489;
  --brand-ink: #241540;
  --brand-soft: #f2eef9;
  --gold: #e3a21a;
  --gold-2: #f2c35b;
  --gold-soft: #fdf4e1;
  --cream: #fbf8f3;
  --bg: #ffffff;
  --text: #1f1a2b;
  --muted: #5f586c;
  --border: #e9e4ef;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; color: var(--brand-ink); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
.sprite { display: none; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 900px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 var(--border), 0 8px 30px rgb(36 21 64 / .06); }
.nav-in { display: flex; align-items: center; height: 72px; gap: 16px; transition: height .3s; }
.nav.scrolled .nav-in { height: 62px; }
.brand img { height: 30px; width: auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s; }
.nav-links a:not(.cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.cta):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brand); }
.nav-links a.cta { background: var(--brand); color: #fff; font-weight: 600; margin-left: 10px; padding: 9px 16px; transition: background .2s, transform .2s; }
.nav-links a.cta:hover { background: var(--brand-2); transform: translateY(-1px); }
.nav-btn { display: none; }
@media (max-width: 899px) {
  .nav-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--brand); cursor: pointer; }
  .nav-btn .ico { width: 24px; height: 24px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .2s; }
  .nav-btn .i-close { opacity: 0; transform: rotate(-90deg); }
  .nav-btn[aria-expanded="true"] .i-open { opacity: 0; transform: rotate(90deg); }
  .nav-btn[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
  .nav-links { position: fixed; top: 0; left: 0; right: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 4px; padding: 84px 16px 22px; background: #fff; box-shadow: 0 20px 40px rgb(36 21 64 / .12); transform: translateY(-105%); transition: transform .45s var(--ease); }
  .nav.open .nav-links { transform: none; }
  .nav.open { background: transparent; box-shadow: none; }
  .nav-links a { font-size: 17px; padding: 13px 12px; }
  .nav-links a:not(.cta)::after { display: none; }
  .nav-links a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgb(58 34 102 / .25); }
.btn.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgb(58 34 102 / .3); }
.btn.primary:hover::before { transform: translateX(120%); }
.btn.ghost { color: var(--brand); border-color: #d4cae6; background: rgb(255 255 255 / .7); }
.btn.ghost:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding-top: 72px; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.1fr .9fr; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); padding-top: 32px; padding-bottom: 96px; } }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #f6dca2; top: -160px; right: -120px; }
.b2 { width: 460px; height: 460px; background: #dcd0f0; bottom: -200px; left: -160px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--border); padding: 7px 14px 7px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgb(36 21 64 / .05); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(227 162 26 / .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgb(227 162 26 / 0); } 100% { box-shadow: 0 0 0 0 rgb(227 162 26 / 0); } }
h1 { font-size: clamp(38px, 6.2vw, 68px); margin-top: 22px; }
h1 em { font-style: italic; color: var(--brand); background: linear-gradient(transparent 64%, rgb(227 162 26 / .4) 64%) no-repeat; background-size: 0 100%; animation: mark 1.1s .9s var(--ease) forwards; }
@keyframes mark { to { background-size: 100% 100%; } }
.lead { font-size: 18.5px; color: var(--muted); margin-top: 22px; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { width: 100%; max-width: 480px; justify-self: center; }
.flow { width: 100%; height: auto; overflow: visible; }
.flow .rings { transform-origin: 220px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow .line { fill: none; stroke: #3a2266; stroke-opacity: .22; stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.4s var(--ease) forwards; }
.flow .l2 { animation-delay: .15s; } .flow .l3 { animation-delay: .3s; } .flow .l4 { animation-delay: .45s; } .flow .l5 { animation-delay: .6s; }
.flow .main-flow { fill: none; stroke: url(#gp); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 560; stroke-dashoffset: 560; animation: draw 2.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.flow .halo { transform-origin: 220px 200px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.flow .hub { transform-origin: 220px 200px; animation: pop .7s .2s var(--ease) both; }
.flow .node circle { fill: #fff; stroke: var(--border); stroke-width: 1.5; filter: drop-shadow(0 8px 14px rgb(36 21 64 / .12)); }
.flow .node use { fill: none; stroke: #3a2266; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow .node { animation: pop .6s var(--ease) both, bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flow .n1 { animation-delay: .5s, 1.1s; } .flow .n2 { animation-delay: .65s, 1.9s; } .flow .n3 { animation-delay: .8s, 2.6s; } .flow .n4 { animation-delay: .95s, 1.4s; } .flow .n5 { animation-delay: 1.1s, 2.2s; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.flow .spark { filter: drop-shadow(0 0 6px rgb(227 162 26 / .9)); }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgb(58 34 102 / .35); border-radius: 14px; display: none; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 960px) and (min-height: 700px) { .scroll-hint { display: block; } }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 88px 0; }
@media (min-width: 960px) { .sec { padding: 120px 0; } }
.sec.alt { background: var(--cream); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a26c00; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.split { max-width: none; display: grid; gap: 16px 48px; align-items: end; }
@media (min-width: 900px) { .sec-head.split { grid-template-columns: 1fr 1fr; } .sec-head.split .lead { margin-top: 0; } }

.mission { text-align: center; }
.mission .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.statement { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; font-weight: 500; }
.statement mark { background: linear-gradient(transparent 62%, rgb(227 162 26 / .35) 62%); color: inherit; padding: 0 .08em; }
.mission .lead { margin: 28px auto 0; }

.grid { display: grid; gap: 20px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 400px) { .grid.three, .grid.four { grid-template-columns: 1fr; } }
.badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); transition: transform .4s var(--ease), background .3s, color .3s; }
.badge .ico { width: 26px; height: 26px; }
.tile, .card, .join { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.tile h3, .card h3, .join h3 { margin: 20px 0 8px; }
.tile p, .card p, .join p { color: var(--muted); font-size: 15.5px; }
.tile:hover, .card:hover, .join:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgb(36 21 64 / .1); border-color: #d9cfea; }
.tile:hover .badge, .card:hover .badge, .join:hover .badge { transform: rotate(-8deg) scale(1.06); background: var(--brand); color: var(--gold); }
.card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover::after { transform: scaleX(1); }

.dark { background: var(--brand-ink); color: #e7e0f3; overflow: hidden; }
.dark h2 { color: #fff; }
.dark .eyebrow { color: var(--gold); }
.values { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-radius: var(--radius); overflow: hidden; }
.value { display: flex; gap: 18px; padding: 30px 28px; background: rgb(255 255 255 / .04); transition: background .3s; }
.value:hover { background: rgb(255 255 255 / .08); }
.value .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold); font-weight: 600; }
.value h3 { color: #fff; margin-bottom: 6px; }
.value p { color: #bdb2d3; font-size: 15.5px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: relative; }
.timeline li { position: relative; }
.timeline .step { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: var(--brand); font-weight: 700; font-family: var(--serif); font-size: 20px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); transition: background .3s, color .3s; }
.timeline li:hover .step { background: var(--brand); color: var(--gold); }
.timeline h3 { margin: 18px 0 6px; }
.timeline p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 960px) {
  .timeline::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, #d9cfea 0 8px, transparent 8px 16px); }
}

.join { display: block; text-decoration: none; color: inherit; }
.join .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--brand); }
.join .more .ico { transition: transform .3s var(--ease); }
.join:hover .more .ico { transform: translateX(5px); }

/* ---------- Community programs ---------- */
.programs { display: grid; gap: 20px; }
@media (min-width: 900px) { .programs { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; } .program.feature { grid-row: span 2; } .programs .program:nth-child(4) { grid-column: 2 / span 2; } }
.program { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.program:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgb(36 21 64 / .1); }
.program:hover .badge { transform: rotate(-8deg) scale(1.06); background: var(--brand); color: var(--gold); }
.program h3 { margin: 10px 0 8px; font-size: 21px; }
.program p { color: var(--muted); font-size: 15.5px; }
.program .badge { margin-bottom: 18px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a26c00; background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; }
.program.feature { background: linear-gradient(160deg, #3a2266 0%, #241540 100%); color: #e7e0f3; border: 0; overflow: hidden; padding: 34px 30px; }
.program.feature::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgb(227 162 26 / .35), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.program.feature > * { position: relative; }
.program.feature .tag { background: rgb(227 162 26 / .18); color: var(--gold-2); }
.program.feature h3 { color: #fff; font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 16px; }
.program.feature p { color: #cfc4e4; font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--brand-ink); background: var(--gold); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; stroke-width: 3; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(0 0 0 / .25); }

/* ---------- Impact goals ---------- */
.impact { background: var(--gold-soft); overflow: hidden; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { background: #fff; border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: 0 10px 30px rgb(162 108 0 / .08); }
.stat .val { display: block; font-family: var(--serif); font-size: clamp(44px, 6vw, 60px); font-weight: 600; line-height: 1; color: var(--brand); }
.stat .val b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.stat .what { display: block; margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.note { margin-top: 26px; text-align: center; font-size: 13.5px; color: #8a6a2a; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, #3a2266 0%, #2a1850 100%); color: #e7e0f3; overflow: hidden; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact .lead { color: #cfc4e4; }
.b3 { width: 520px; height: 520px; background: #6a4aa6; right: -160px; top: -200px; opacity: .45; }
.contact-in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .contact-in { grid-template-columns: 1.1fr .9fr; } }
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mails li { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; border-radius: 18px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); transition: background .3s, transform .3s var(--ease); min-width: 0; }
.mails li:hover { background: rgb(255 255 255 / .11); transform: translateX(4px); }
.mails > li > .ico { color: var(--gold); width: 24px; height: 24px; }
.mails div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mails .label { font-size: 13px; color: #b8acd0; }
.mails a, .mails div > span:last-child { color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.mails a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.copy { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .2); background: transparent; color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.copy:hover { background: rgb(255 255 255 / .12); transform: scale(1.05); }

/* ---------- Footer ---------- */
.foot { background: #1b0f31; color: #a99dc2; font-size: 14.5px; }
.foot-in { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: .8fr 1.2fr; } }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 12px; font-family: var(--serif); font-size: 18px; color: #e7e0f3; }
.legal { margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.legal dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #7f72a0; margin-bottom: 6px; }
.legal dd { margin: 0; color: #d6cde8; overflow-wrap: anywhere; }
.legal a { color: #d6cde8; text-decoration: none; }
.legal a:hover { color: var(--gold); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / .08); }
.foot-bottom a { color: #a99dc2; text-decoration: none; }
.foot-bottom a:hover { color: var(--gold); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--brand-ink); color: #fff; font-size: 14.5px; font-weight: 500; padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgb(0 0 0 / .25); transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion: keep the layout, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow .spark { display: none; }
}
