/* =========================================================
   بنیاد حامیان دانشگاه فردوسی مشهد — Home Template
   Palette is derived from the official logo:
   royal blue  #2E4A9E   ·  turquoise  #33B9CF
   ========================================================= */

:root {
  /* brand */
  --blue-950: #070f2e;
  --blue-900: #0b1a47;
  --blue-800: #132a6b;
  --blue-700: #1f3a8a;
  --blue-600: #2e4a9e;   /* logo blue */
  --blue-500: #3f63c9;
  --blue-100: #e6ecfb;
  --cyan-600: #1f9fb6;
  --cyan-500: #33b9cf;   /* logo turquoise */
  --cyan-400: #5fd0e2;
  --cyan-200: #bdeef6;
  --cyan-50:  #ecfafd;
  --gold-500: #e9b44c;   /* warm accent (Persian gold), used sparingly */
  --gold-300: #f6d58f;
  --rose-500: #ef6b73;

  /* neutrals */
  --ink: #0f1b3d;
  --ink-2: #33405f;
  --muted: #64708f;
  --line: #e4e9f4;
  --bg: #f5f7fc;
  --surface: #ffffff;

  /* gradients */
  --grad-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-500) 40%, var(--cyan-500) 100%);
  --grad-cyan: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
  --grad-gold: linear-gradient(135deg, var(--gold-300), var(--gold-500));

  /* shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --shadow-sm: 0 2px 6px rgba(15, 27, 61, .06);
  --shadow-md: 0 12px 30px -12px rgba(19, 42, 107, .22);
  --shadow-lg: 0 30px 60px -24px rgba(19, 42, 107, .35);
  --shadow-glow: 0 18px 40px -12px rgba(51, 185, 207, .55);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: hidden; overflow-x: clip; max-width: 100%;
  touch-action: pan-x pan-y;          /* no pinch / double-tap zoom */
  -webkit-tap-highlight-color: transparent;
}
a, button, input, summary, [role="button"] { touch-action: manipulation; }
body {
  max-width: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none;
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-feature-settings: "ss01";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cyan-500); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.fill { fill: currentColor; stroke: none; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; color: var(--cyan-600);
  padding: 6px 14px 6px 16px; border-radius: 99px;
  background: var(--cyan-50); border: 1px solid var(--cyan-200);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(51, 185, 207, .2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 8px rgba(51, 185, 207, 0); } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: 14px; letter-spacing: -.01em; }
.sec-title .hl {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.sec-desc { color: var(--muted); max-width: 560px; margin-top: 10px; font-size: 1.02rem; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--grad-brand);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px; font-weight: 700; font-size: .98rem;
  color: #fff; background: var(--bg-btn); background-size: 200% 100%;
  box-shadow: var(--shadow-glow);
  transition: transform .4s var(--ease-out), box-shadow .4s, background-position .6s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .9s var(--ease-out);
}
.btn:hover { background-position: 100% 0; box-shadow: 0 22px 44px -14px rgba(51,185,207,.75); }
.btn:hover::after { transform: translateX(-120%); }
.btn .icon { transition: transform .4s var(--ease-out); }
.btn:hover .icon.arrow { transform: translateX(-5px); }
.btn-gold { --bg-btn: var(--grad-gold); color: var(--blue-950); box-shadow: 0 18px 40px -14px rgba(233,180,76,.7); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; box-shadow: none;
  border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-100); box-shadow: none; }
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-100); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-600); }
.link-arrow .icon { transition: transform .35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(-6px); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--blue-800), var(--blue-950) 70%);
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader svg { width: min(300px, 62vw); height: auto; }
.preloader .reveal-pre { clip-path: inset(0 0 0 100%); animation: write-in 1.6s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
.preloader .bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 26px auto 0; overflow: hidden; }
.preloader .bar span { display: block; height: 100%; width: 40%; background: var(--grad-cyan); border-radius: 3px; animation: load-bar 1.2s var(--ease-out) infinite; }
@keyframes load-bar { from { transform: translateX(160%); } to { transform: translateX(-260%); } }

/* =========================================================
   HEADER
   ========================================================= */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; background: var(--grad-brand); transform-origin: right; transform: scaleX(0); }

.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: transform .5s var(--ease-out); }
.topbar {
  color: rgba(255,255,255,.78); font-size: .82rem;
  max-height: 44px; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 16px; }
.topbar .info { display: flex; gap: 22px; }
.topbar .info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tools { display: flex; align-items: center; gap: 14px; }
.topbar .socials { display: flex; gap: 6px; }
.topbar .socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; transition: background .3s, color .3s; }
.topbar .socials a:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 2px; }
.lang a { padding: 1px 10px; border-radius: 99px; font-weight: 700; font-size: .75rem; }
.lang a.on { background: #fff; color: var(--blue-800); }
.pay-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-300); font-weight: 700; }

.navbar {
  margin-top: 4px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-inline: 14px 10px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px; box-shadow: 0 10px 40px -16px rgba(7,15,46,.45);
  transition: border-radius .4s, box-shadow .4s, margin .4s;
}
.site-header.scrolled .topbar { max-height: 0; opacity: 0; }
.site-header.scrolled .navbar { margin-top: 10px; box-shadow: 0 14px 40px -18px rgba(7,15,46,.35); }
.site-header.hide { transform: translateY(-120%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 68px; aspect-ratio: 965 / 774;
  background: url("../img/logo-bonyad.png") 47.8% 50.5% / 111.9% auto no-repeat;
}
.brand-text { line-height: 1.5; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.brand-text b { display: block; font-size: .98rem; color: var(--blue-700); }
.brand-text small { color: var(--muted); font-size: .76rem; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 12px;
  font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: color .25s, background .25s;
}
.menu > li > a .icon { width: 15px; height: 15px; transition: transform .3s; }
.menu > li:hover > a, .menu > li > a.active { color: var(--blue-600); background: var(--blue-100); }
.menu > li:hover > a .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 0; min-width: 240px;
  background: #fff; border-radius: 18px; padding: 10px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top right;
  transition: all .35s var(--ease-out);
}
.dropdown::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .92rem; color: var(--ink-2); transition: background .25s, color .25s, padding .3s; }
.dropdown a .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-600); transition: background .25s, color .25s; }
.dropdown a:hover { background: var(--bg); color: var(--blue-600); padding-inline-start: 16px; }
.dropdown a:hover .ic { background: var(--grad-brand); color: #fff; }
.dropdown small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; gap: 4px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--blue-100); color: var(--blue-600); }
.burger { display: none; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7,15,46,.5); backdrop-filter: blur(4px); z-index: 150; opacity: 0; visibility: hidden; transition: .4s; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); z-index: 160;
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(105%); transition: transform .5s var(--ease-out);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer > nav > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 700; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer details a { display: block; padding: 8px 16px; color: var(--muted); font-size: .94rem; }
.drawer > nav > a { border-bottom: 1px solid var(--line); }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(7,15,46,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: flex-start; padding: min(16vh, 120px) 16px 16px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-inner { width: min(680px, 100%); }
.search-box { width: 100%; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 22px; padding: 8px 18px 8px 8px; box-shadow: var(--shadow-lg); transform: translateY(-20px); transition: transform .5s var(--ease-out); }
.search-overlay.open .search-box { transform: none; }
.search-box > .icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--muted); }
.search-box input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: 10px 8px; background: transparent; color: var(--ink); }
.search-box .btn { flex: 0 0 auto; border-radius: 16px; padding: 12px 22px; }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.search-tags a { color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 5px 14px; font-size: .85rem; }
body.search-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  display: flex; align-items: center;
  padding: 128px 0 124px;
  color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, var(--blue-700) 0%, var(--blue-900) 45%, var(--blue-950) 100%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .85; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float-blob 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: #2e4a9e; top: 10%; right: 5%; }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; background: #33b9cf; top: 35%; left: 10%; opacity: .55; animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 22vw; height: 22vw; background: #6c4fd8; bottom: 8%; right: 35%; opacity: .45; animation-duration: 26s; }
.aurora span:nth-child(4) { width: 14vw; height: 14vw; background: #e9b44c; top: 18%; left: 38%; opacity: .22; animation-duration: 20s; animation-delay: -10s; }
@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 4vw) scale(1.15); }
  100% { transform: translate(4vw, -3vw) scale(.92); }
}
.pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 14 82 48 48 82 14 48Z'/%3E%3Cpath d='M24 24h48v48H24Z'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3Cpath d='M0 0 24 24M96 0 72 24M0 96l24-24M96 96 72 72M48 0v14M48 82v14M0 48h14M82 48h14'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 75%);
}
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero-visual { width: min(100%, 60vh); margin-inline: auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 99px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
  font-size: .86rem; color: rgba(255,255,255,.88);
}
.hero-badge b { background: var(--grad-gold); color: var(--blue-950); padding: 2px 10px; border-radius: 99px; font-size: .78rem; }
.hero h1 { font-size: clamp(2rem, min(4.6vw, 6.6vh), 3.9rem); font-weight: 900; line-height: 1.4; margin: clamp(14px, 2.6vh, 26px) 0 clamp(10px, 2vh, 22px); letter-spacing: -.02em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }

.rotator { position: relative; display: inline-grid; vertical-align: top; overflow: hidden; height: 1.4em; line-height: 1.4; }
.rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(90deg, var(--cyan-400), #8fe7f3, var(--gold-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(100%); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s;
}
.rotator span.on { transform: none; opacity: 1; }
.rotator span.out { transform: translateY(-100%); opacity: 0; }

.hero-lead { color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; opacity: 0; animation: fade-up 1s .55s var(--ease-out) forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(18px, 3.6vh, 36px); opacity: 0; animation: fade-up 1s .7s var(--ease-out) forwards; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: clamp(20px, 4.4vh, 44px); opacity: 0; animation: fade-up 1s .85s var(--ease-out) forwards; }
.avatars { display: flex; }
.avatars i {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue-900); margin-inline-start: -12px;
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; color: #fff;
}
.avatars i:first-child { margin-inline-start: 0; }
.avatars i:nth-child(1) { background: linear-gradient(135deg, #3f63c9, #2e4a9e); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #5fd0e2, #1f9fb6); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #f6d58f, #e9b44c); color: var(--blue-950); }
.avatars i:nth-child(4) { background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.hero-trust p { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.hero-trust p b { color: #fff; display: block; font-size: 1rem; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero-visual .rings { position: absolute; inset: 0; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 60s linear infinite; }
.hero-visual .ring:nth-child(2) { inset: 12%; border-style: solid; border-color: rgba(95,208,226,.18); animation-duration: 40s; animation-direction: reverse; }
.hero-visual .ring:nth-child(3) { inset: 24%; border-color: rgba(255,255,255,.08); animation-duration: 30s; }
.hero-visual .ring i { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: -6px; left: calc(50% - 6px); background: var(--cyan-400); box-shadow: 0 0 20px 4px rgba(95,208,226,.7); }
.hero-visual .ring:nth-child(2) i { background: var(--gold-500); box-shadow: 0 0 20px 4px rgba(233,180,76,.6); top: auto; bottom: -6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(51,185,207,.45), transparent 65%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.calli { position: relative; width: 82%; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); clip-path: inset(0 0 0 100%); animation: write-in 2.6s 1.1s cubic-bezier(.5, 0, .15, 1) forwards; }
@keyframes write-in { to { clip-path: inset(0 0 0 0); } }
.calli svg { width: 100%; height: auto; overflow: visible; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  animation: bob 6s ease-in-out infinite; font-size: .85rem; line-height: 1.5;
}
.float-card b { display: block; font-size: 1.05rem; }
.float-card small { color: rgba(255,255,255,.7); }
.float-card .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-cyan); }
.float-card.c1 { top: 8%; right: -2%; }
.float-card.c2 { bottom: 2%; right: 4%; animation-delay: -2s; }
.float-card.c2 .ic { background: var(--grad-gold); color: var(--blue-950); }
.float-card.c3 { top: 42%; left: -6%; animation-delay: -4s; }
.float-card.c3 .ic { background: linear-gradient(135deg, #ef6b73, #c2416a); }
@keyframes bob { 50% { transform: translateY(-14px); } }

@media (max-height: 820px) { .hero-trust { display: none; } }
@media (max-height: 680px) { .hero-lead { display: none; } }
.scroll-cue { position: absolute; z-index: 2; bottom: 76px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .75rem; color: rgba(255,255,255,.6); }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; width: 4px; height: 8px; border-radius: 2px; background: #fff; left: 50%; top: 7px; transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
.hero-wave { position: absolute; bottom: -1px; inset-inline: 0; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 110px; }
.hero-wave path { fill: var(--bg); }

/* =========================================================
   TICKER
   ========================================================= */
.ticker-wrap { position: relative; z-index: 5; margin-top: -70px; }
.ticker {
  display: flex; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); overflow: hidden; height: 60px;
}
.ticker-label { flex-shrink: 0; height: 100%; display: flex; align-items: center; gap: 8px; padding-inline: 22px; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .9rem; }
.ticker-label .live { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-dot 1.6s infinite; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-move { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { display: inline-flex; align-items: center; gap: 12px; padding-inline: 28px; white-space: nowrap; font-size: .93rem; color: var(--ink-2); transition: color .2s; }
.ticker-move a:hover { color: var(--blue-600); }
.ticker-move a::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--cyan-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding-top: 90px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  top: -90px; left: -60px; background: radial-gradient(circle, rgba(51,185,207,.16), transparent 70%);
  transition: transform .8s var(--ease-out);
}
.stat:hover::before { transform: scale(1.6); }
.stat .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-glow); margin-bottom: 20px; }
.stat .ic .icon { width: 26px; height: 26px; }
.stat .num { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 900; color: var(--blue-800); line-height: 1.2; display: flex; align-items: baseline; gap: 6px; }
.stat .num small { font-size: 1rem; font-weight: 700; color: var(--cyan-600); }
.stat p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.stat .spark { position: absolute; bottom: 0; inset-inline: 0; height: 60px; opacity: .5; }
.stat.featured { background: var(--grad-brand); color: #fff; border: 0; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.stat.featured .ic { background: rgba(255,255,255,.18); box-shadow: none; }
.stat.featured .num { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); }
.stat.featured .num small { color: var(--cyan-200); }
.stat.featured p { color: rgba(255,255,255,.85); }
.stat.featured::before { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.stats-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.stats-layout .stats-grid { grid-template-columns: repeat(2, 1fr); }
.stats-note { font-size: .8rem; color: var(--muted); margin-top: 18px; text-align: center; }

/* =========================================================
   ABOUT
   ========================================================= */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; aspect-ratio: 1 / 1.02; }
.about-media .frame {
  position: absolute; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--grad-brand);
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about-media .frame:hover img { transform: scale(1.06); }
.about-media .f1 { inset: 0 0 22% 22%; }
.about-media .f2 { width: 48%; aspect-ratio: 1; bottom: 0; right: 0; border: 8px solid var(--bg); }
.about-media .years {
  position: absolute; top: 12%; right: -4%; z-index: 3; width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; color: #fff; background: var(--blue-900);
  box-shadow: var(--shadow-lg);
}
.about-media .years svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.about-media .years svg text { font-size: 10.5px; fill: var(--cyan-200); letter-spacing: 1.5px; font-weight: 600; }
.about-media .years b { font-size: 2.4rem; line-height: 1; display: block; }
.about-media .years small { font-size: .78rem; color: rgba(255,255,255,.75); }
.about-media .dots { position: absolute; left: -24px; top: 30%; width: 120px; height: 160px; background-image: radial-gradient(var(--cyan-500) 1.6px, transparent 1.6px); background-size: 16px 16px; opacity: .45; z-index: -1; }
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.65); }
.img-fallback .icon { width: 56px; height: 56px; stroke-width: 1.2; }

.about-tabs { display: inline-flex; gap: 4px; background: #fff; padding: 5px; border-radius: 16px; border: 1px solid var(--line); margin: 30px 0 22px; position: relative; }
.tab-btn { position: relative; z-index: 1; padding: 9px 18px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: color .35s; }
.tab-btn.on { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 12px; background: var(--grad-brand); box-shadow: var(--shadow-glow); transition: all .5s var(--ease-out); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fade-up .6s var(--ease-out); }
.checks { display: grid; gap: 12px; margin-top: 18px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--cyan-50); color: var(--cyan-600); stroke-width: 2.6; margin-top: 3px; }
.about-foot { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.signature { display: flex; align-items: center; gap: 12px; }
.signature .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.signature b { display: block; }
.signature small { color: var(--muted); }

/* =========================================================
   ACTIVITIES (bento)
   ========================================================= */
.activities { background: #fff; overflow: hidden; }
.activities::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 100% 0%, var(--cyan-50), transparent), radial-gradient(40% 40% at 0% 100%, var(--blue-100), transparent); opacity: .8; }
.bento { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.card-act {
  --mx: 50%; --my: 50%;
  position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
  transform-style: preserve-3d;
}
.card-act::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(51,185,207,.18), transparent 45%);
}
.card-act:hover { border-color: var(--cyan-200); box-shadow: var(--shadow-md); }
.card-act:hover::before { opacity: 1; }
.card-act .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); transition: transform .6s var(--ease-spring), background .4s, color .4s; }
.card-act .ic .icon { width: 26px; height: 26px; }
.card-act:hover .ic { transform: rotate(-8deg) scale(1.08); background: var(--grad-brand); color: #fff; }
.card-act h3 { font-size: 1.12rem; }
.card-act p { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.8; }
.card-act .go { position: absolute; top: 22px; left: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-600); transform: scale(.6) rotate(45deg); opacity: 0; transition: .45s var(--ease-out); }
.card-act:hover .go { transform: none; opacity: 1; }
.card-act .tag { font-size: .75rem; font-weight: 700; color: var(--cyan-600); }

.card-act.big { grid-column: span 2; grid-row: span 2; background: var(--blue-900); color: #fff; border: 0; padding: 34px; }
.card-act.big::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background:
    radial-gradient(60% 60% at 100% 100%, rgba(51,185,207,.55), transparent 60%),
    radial-gradient(50% 50% at 0% 0%, rgba(63,99,201,.7), transparent 60%);
}
.card-act.big h3 { font-size: 1.7rem; }
.card-act.big p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 440px; }
.card-act.big .ic { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.card-act.big .tag { color: var(--cyan-400); }
.card-act.big .mini-stats { display: flex; gap: 30px; margin-top: 10px; }
.card-act.big .mini-stats b { display: block; font-size: 1.6rem; color: #fff; }
.card-act.big .mini-stats small { color: rgba(255,255,255,.65); }
.card-act.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.card-act.accent { background: var(--grad-cyan); color: #fff; border: 0; }
.card-act.accent p, .card-act.accent .tag { color: rgba(255,255,255,.88); }
.card-act.accent .ic { background: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.big-deco { position: absolute; left: -40px; bottom: -40px; width: 260px; opacity: .08; z-index: -1; }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; justify-content: center; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: .3s var(--ease-out); }
.chip:hover { border-color: var(--cyan-500); color: var(--cyan-600); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.chip .icon { color: var(--cyan-500); width: 18px; height: 18px; }

/* =========================================================
   SUPPORT / DONATE
   ========================================================= */
.support { overflow: hidden; }
.support-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: start; }
.ways { display: grid; gap: 16px; margin-top: 34px; }
.way {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  transition: .5s var(--ease-out); cursor: pointer;
}
.way:hover, .way.on { border-color: transparent; box-shadow: var(--shadow-md); transform: translateX(-8px); }
.way.on { background: linear-gradient(#fff, #fff) padding-box, var(--grad-brand) border-box; border: 1.5px solid transparent; }
.way .ic { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); transition: .4s; }
.way.on .ic, .way:hover .ic { background: var(--grad-brand); color: #fff; }
.way h3 { font-size: 1.08rem; }
.way p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

.donate {
  position: relative; padding: 34px; border-radius: var(--r-xl); color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--blue-800), var(--blue-950));
  box-shadow: var(--shadow-lg);
}
.donate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 0% 0%, rgba(51,185,207,.35), transparent 70%), radial-gradient(50% 50% at 100% 100%, rgba(233,180,76,.18), transparent 70%); }
.donate .pattern { opacity: .6; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.donate h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.donate h3 .icon { color: var(--rose-500); animation: heartbeat 1.6s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.donate > p { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: 4px; }
.donate label.lbl { display: block; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.8); margin: 22px 0 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 14px; padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; padding: 10px; border-radius: 11px; font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.7); transition: color .3s; }
.seg button.on { color: var(--blue-900); }
.seg .seg-ink { position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px); right: 4px; border-radius: 11px; background: #fff; transition: transform .45s var(--ease-out); }
.seg.alt .seg-ink { transform: translateX(-100%); }
.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cause { padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .82rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .3s; }
.cause .icon { width: 22px; height: 22px; color: var(--cyan-400); }
.cause:hover { background: rgba(255,255,255,.12); }
.cause.on { background: rgba(51,185,207,.18); border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(51,185,207,.15); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { padding: 11px 4px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-weight: 700; font-size: .88rem; transition: .3s var(--ease-out); }
.amount:hover { transform: translateY(-2px); }
.amount.on { background: var(--grad-gold); color: var(--blue-950); border-color: transparent; }
.amount-input { margin-top: 10px; display: flex; align-items: center; background: rgba(255,255,255,.95); border-radius: 14px; padding-inline: 16px; color: var(--ink); }
.amount-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1.15rem; padding: 12px 0; color: var(--blue-800); min-width: 0; }
.amount-input span { color: var(--muted); font-size: .85rem; }
.donate-sum { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 16px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); font-size: .9rem; color: rgba(255,255,255,.75); }
.donate-sum b { font-size: 1.25rem; color: #fff; }
.donate .btn { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.6); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { background: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj {
  border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.proj:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.proj .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-brand); }
.proj .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.proj:hover .thumb img { transform: scale(1.08); }
.proj .status { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 99px; font-size: .75rem; font-weight: 800; background: rgba(255,255,255,.92); color: var(--blue-700); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.proj .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.proj .status.done::before { background: #22c55e; }
.proj .body { padding: 22px; }
.proj h3 { font-size: 1.08rem; }
.proj p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.progress { margin-top: 18px; }
.progress .row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.progress .row b { color: var(--blue-700); }
.progress .track { height: 9px; border-radius: 9px; background: var(--blue-100); overflow: hidden; }
.progress .fill { height: 100%; width: 0; border-radius: 9px; background: var(--grad-brand); position: relative; transition: width 1.8s var(--ease-out); overflow: hidden; }
.progress .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shine 2.2s infinite; }
@keyframes shine { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.proj-tabs { display: inline-flex; gap: 4px; background: var(--bg); padding: 5px; border-radius: 16px; border: 1px solid var(--line); position: relative; }

/* =========================================================
   MEDIA
   ========================================================= */
.media-tabs { display: inline-flex; gap: 4px; background: #fff; padding: 5px; border-radius: 16px; border: 1px solid var(--line); position: relative; }
.media-tabs .tab-btn { display: inline-flex; align-items: center; gap: 8px; }
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.news-feature { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 480px; color: #fff; display: flex; align-items: flex-end; background: var(--blue-900); isolation: isolate; }
.news-feature img, .news-feature .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.news-feature:hover img { transform: scale(1.05); }
.news-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,15,46,.95) 8%, rgba(7,15,46,.35) 55%, transparent); }
.news-feature .body { padding: 34px; }
.meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; flex-wrap: wrap; }
.meta .cat { padding: 3px 12px; border-radius: 99px; background: var(--cyan-500); color: #fff; font-weight: 700; }
.meta time { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.news-feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 14px 0 10px; }
.news-feature p { color: rgba(255,255,255,.78); font-size: .95rem; }
.news-list { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); align-items: center; transition: .45s var(--ease-out); }
.news-item:hover { transform: translateX(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-item .thumb { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--grad-brand); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.news-item:hover .thumb img { transform: scale(1.1); }
.news-item .meta { color: var(--muted); }
.news-item .meta .cat { background: var(--cyan-50); color: var(--cyan-600); }
.news-item h4 { font-size: .98rem; margin-top: 6px; line-height: 1.7; transition: color .3s; }
.news-item:hover h4 { color: var(--blue-600); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--grad-brand); color: #fff; isolation: isolate; cursor: pointer; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item img, .g-item .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.g-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,15,46,.85), transparent 60%); transition: opacity .4s; }
.g-item:hover img { transform: scale(1.08) rotate(.6deg); }
.g-item .cap { position: absolute; bottom: 0; inset-inline: 0; padding: 20px; transform: translateY(10px); transition: transform .5s var(--ease-out); }
.g-item:hover .cap { transform: none; }
.g-item .cap b { display: block; font-size: 1.05rem; }
.g-item .cap small { opacity: .75; }
.g-item .zoom { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .4s var(--ease-spring); }
.g-item:hover .zoom { opacity: 1; transform: none; }

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--blue-900); color: #fff; isolation: isolate; cursor: pointer; text-align: start; }
.video-card img, .video-card .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.video-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,15,46,.9), rgba(7,15,46,.1)); }
.video-card:hover img { transform: scale(1.06); }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--blue-600); transition: transform .5s var(--ease-spring); }
.play::before, .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: ripple 2.4s infinite; }
.play::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.play .icon { width: 26px; height: 26px; margin-left: 4px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.video-card .cap { position: absolute; bottom: 0; inset-inline: 0; padding: 22px; }
.video-card .cap b { display: block; font-size: 1.05rem; }
.video-card .cap small { opacity: .75; font-size: .82rem; }
.media-more { text-align: center; margin-top: 36px; }

/* =========================================================
   VOICES
   ========================================================= */
.voices { background: var(--blue-950); color: #fff; overflow: hidden; isolation: isolate; }
.voices .aurora { opacity: .5; }
.voices .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: var(--cyan-400); }
.voices .sec-desc { color: rgba(255,255,255,.65); }
.voice-stage { position: relative; max-width: 900px; margin: 0 auto; text-align: center; min-height: 300px; }
.voice { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(20px) scale(.98); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s .6s; pointer-events: none; }
.voice.on { visibility: visible; transition-delay: .25s, .25s, 0s; }
.voice.on { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.voice .q { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--cyan-500); opacity: .9; }
.voice blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 500; line-height: 2.1; color: rgba(255,255,255,.92); }
.voice .who { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; text-align: start; }
.voice .who i { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-cyan); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.1rem; }
.voice .who b { display: block; }
.voice .who small { color: rgba(255,255,255,.6); }
.voice-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.voice-dots button { width: 10px; height: 10px; border-radius: 10px; background: rgba(255,255,255,.25); transition: width .5s var(--ease-out), background .3s; }
.voice-dots button.on { width: 36px; background: var(--grad-cyan); }

/* =========================================================
   PODCAST + CTA
   ========================================================= */
.podcast {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 28px 34px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.podcast .cover { width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); position: relative; }
.podcast .cover .icon { width: 44px; height: 44px; }
.podcast h3 { font-size: 1.35rem; }
.podcast p { color: var(--muted); font-size: .93rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 10px; }
.wave i { width: 4px; border-radius: 4px; background: var(--grad-cyan); animation: eq 1.2s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px);
  color: #fff; text-align: center; background: var(--grad-brand);
}
.cta-band .pattern { opacity: 1; -webkit-mask-image: none; mask-image: none; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 70% at 0% 50%, rgba(255,255,255,.2), transparent), radial-gradient(40% 70% at 100% 50%, rgba(7,15,46,.35), transparent); }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin: 14px auto 30px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-white { background: #fff; color: var(--blue-700); box-shadow: 0 18px 40px -14px rgba(7,15,46,.5); }
.cta-band .float-heart { position: absolute; color: rgba(255,255,255,.18); animation: drift 12s linear infinite; z-index: -1; }
@keyframes drift { from { transform: translateY(120%) rotate(0); } to { transform: translateY(-420%) rotate(40deg); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; margin-top: 120px; background: var(--blue-950); color: rgba(255,255,255,.72); overflow: hidden; isolation: isolate; }
.footer .watermark { position: absolute; left: -4%; bottom: -8%; width: 46%; opacity: .05; z-index: -1; pointer-events: none; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 80px 0 50px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-cyan); }
.footer-brand .logo-white { width: 190px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; line-height: 2; }
.footer-brand .tagline { margin-top: 14px; color: var(--cyan-200); font-weight: 600; font-size: .9rem; }
.footer ul.links li { margin-bottom: 10px; }
.footer ul.links a { font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .3s var(--ease-out); }
.footer ul.links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-500); opacity: .6; }
.footer ul.links a:hover { color: #fff; transform: translateX(-5px); }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .9rem; line-height: 1.8; }
.contact-list .icon { color: var(--cyan-400); margin-top: 4px; }
.contact-list a:hover { color: #fff; }
.socials-big { display: flex; gap: 10px; margin-top: 22px; }
.socials-big a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .35s var(--ease-out); }
.socials-big a:hover { background: var(--grad-cyan); color: #fff; transform: translateY(-4px); border-color: transparent; }
.newsletter { display: flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 5px; margin-top: 18px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; padding: 0 12px; font-size: .88rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter button { padding: 10px 16px; border-radius: 12px; background: var(--grad-cyan); color: #fff; font-weight: 700; font-size: .85rem; }
.footer-mid { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.visits { display: flex; gap: 28px; flex-wrap: wrap; font-size: .85rem; }
.visits span { display: inline-flex; align-items: center; gap: 8px; }
.visits b { color: #fff; }
.seals { display: flex; gap: 10px; }
.seals a { width: 74px; height: 74px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .7rem; text-align: center; line-height: 1.4; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* back to top */
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--blue-600); opacity: 0; transform: translateY(20px) scale(.8); transition: .5s var(--ease-out); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--cyan-500); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; stroke-linecap: round; }
.to-top:hover { background: var(--blue-600); color: #fff; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 400; background: rgba(7,15,46,.85); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .4s; padding: 16px; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 22px; overflow: hidden; transform: scale(.92); transition: transform .5s var(--ease-out); position: relative; }
.modal.open .modal-box { transform: none; }
.modal-box video, .modal-box img { width: 100%; height: 100%; object-fit: contain; }
.modal-close { position: absolute; top: 20px; left: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .menu > li > a { padding: 10px 9px; font-size: .88rem; }
  .brand-text { display: none; }
}
@media (max-width: 1024px) {
  .menu, .nav-actions .btn { display: none; }
  .burger { display: grid; }
  .hero { height: auto; min-height: 100svh; padding: 140px 0 150px; }
  .hero-trust, .hero-lead { display: block; }
  .hero-trust { display: flex; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { width: min(460px, 90%); margin: 20px auto 0; }
  .scroll-cue { display: none; }
  .stats-layout { grid-template-columns: 1fr; }
  .stat.featured { grid-row: auto; }
  .about .container, .support-grid, .news-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .topbar .info { display: none; }
  .topbar .container { justify-content: center; }
  .navbar { height: 64px; border-radius: 18px; }
  .brand-logo { width: 58px; }
  .hero { padding-top: calc(var(--header-h) + 90px); }
  .float-card { display: none; }
  .float-card.c1 { display: flex; top: 0; right: 0; }
  .stats-layout .stats-grid, .stats-grid { grid-template-columns: 1fr; }
  .bento, .proj-grid, .videos { grid-template-columns: 1fr; }
  .card-act.big, .card-act.wide { grid-column: auto; grid-row: auto; }
  .card-act.wide { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-item:first-child { grid-column: auto; grid-row: auto; }
  .news-item { grid-template-columns: 96px 1fr; }
  .causes { grid-template-columns: repeat(2, 1fr); }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .donate { padding: 24px; }
  .podcast { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-top { grid-template-columns: 1fr; }
  .about-media .years { width: 118px; right: 0; }
  .about-tabs, .media-tabs, .proj-tabs { max-width: 100%; overflow-x: auto; }
  .to-top { left: 16px; bottom: 16px; }
}

/* ---------- phones: deeper tuning ---------- */
@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 30px; gap: 14px; }
  .sec-head:not(.center) { align-items: flex-start; }
  .sec-title { font-size: 1.55rem; }
  .sec-desc { font-size: .95rem; }

  /* header */
  .topbar .container { height: 38px; }
  .topbar { max-height: 38px; }
  .topbar .tools { width: 100%; justify-content: space-between; }
  .topbar .socials a { width: 30px; height: 30px; }
  .navbar { padding-inline: 8px; margin-top: 2px; }
  .nav-actions { gap: 2px; }
  .icon-btn { width: 42px; height: 42px; }

  /* hero */
  .hero { height: 100vh; height: 100svh; min-height: 560px; padding: 118px 0 100px; }
  .hero .container { gap: 0; align-content: center; }
  .scroll-cue { display: flex; bottom: 58px; }
  .scroll-cue .mouse { width: 22px; height: 34px; }
  .hero-badge { font-size: .78rem; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); margin: 18px 0 14px; }
  .hero-lead { font-size: .95rem; }
  .hero-cta { margin-top: 24px; gap: 10px; justify-content: center; }
  .hero-cta .btn { padding: 13px 20px; font-size: .92rem; }
  .hero-trust, .hero .hero-trust { display: none; }
  /* calligraphy becomes a soft backdrop so the whole hero fits one screen */
  .hero-visual { position: absolute; z-index: -1; top: 52%; left: 50%; width: min(520px, 130vw); margin: 0; opacity: .2; transform: translate(-50%, -50%); pointer-events: none; }
  .hero-visual .float-card { display: none; }
  .aurora { filter: blur(50px); }
  .hero-wave svg { height: 70px; }
  .ticker-wrap { margin-top: -44px; }
  .ticker { height: 54px; border-radius: 16px; }
  .ticker-label { padding-inline: 14px; }

  /* sections */
  .stats { padding-top: 70px; }
  .stat { padding: 22px; }
  .stat.featured .num { font-size: 2.6rem; }
  .about .container { gap: 40px; }
  .about-media { aspect-ratio: 1 / .95; }
  .about-media .dots { left: 0; width: 90px; }
  .about-media .years { top: 4%; right: 0; width: 104px; }
  .about-media .years b { font-size: 1.9rem; }
  .about-tabs { display: flex; margin: 24px 0 18px; }
  .about-tabs .tab-btn { flex: 1; padding: 9px 6px; font-size: .86rem; white-space: nowrap; }
  .about-foot { gap: 16px; }
  .card-act { padding: 22px; }
  .card-act.big { padding: 26px; }
  .card-act.big h3 { font-size: 1.4rem; }
  .card-act .go { opacity: 1; transform: none; width: 34px; height: 34px; }
  .way { padding: 16px; gap: 14px; }
  .way:hover, .way.on { transform: none; }
  .way .ic { width: 46px; height: 46px; }
  .donate { padding: 22px 18px; border-radius: 26px; }
  .cause { font-size: .78rem; padding: 10px 6px; }
  .proj-tabs, .media-tabs { align-self: stretch; display: flex; }
  .proj-tabs .tab-btn, .media-tabs .tab-btn { flex: 1; justify-content: center; white-space: nowrap; }
  .news-feature { min-height: 380px; border-radius: 26px; }
  .news-feature .body { padding: 22px; }
  .news-item { grid-template-columns: 92px 1fr; gap: 12px; padding: 10px; }
  .news-item:hover { transform: none; }
  .gallery { grid-auto-rows: 200px; gap: 12px; }
  .voice-stage { min-height: 0; }
  .voice blockquote { font-size: 1.05rem; line-height: 2; }
  .podcast { padding: 24px 20px; gap: 18px; }
  .podcast .cover { width: 84px; height: 84px; border-radius: 22px; }
  .cta-band { padding: 36px 22px; border-radius: 26px; }
  .cta-band .actions .btn { width: 100%; justify-content: center; }
  .footer { margin-top: 80px; }
  .footer-top { padding: 56px 0 30px; gap: 34px; }
  .footer-brand .logo-white { width: 160px; }
  .footer-mid, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .visits { gap: 14px 22px; }
  .modal-box { border-radius: 14px; }

  .search-overlay { padding-top: 84px; }
  .search-box .btn { padding: 11px 16px; font-size: .9rem; }
  /* iOS auto-zooms on inputs below 16px */
  input, select, textarea { font-size: 16px !important; }
  .newsletter input { font-size: 16px !important; }
}

.pay-link { white-space: nowrap; }
@media (max-width: 680px) and (max-height: 720px) {
  .hero .hero-lead { display: none; }
  .hero-cta { margin-top: 20px; }
  .scroll-cue span:not(.mouse) { display: none; }
  .scroll-cue { bottom: 50px; }
}

/* ---------- tiny phones ---------- */
@media (max-width: 380px) {
  .topbar .socials a:nth-child(n+4) { display: none; }
  .topbar .tools { gap: 8px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .brand-logo { width: 50px; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .causes { grid-template-columns: 1fr 1fr; }
}

/* ---------- touch devices: no hover-only affordances ---------- */
@media (hover: none) {
  .card-act .go { opacity: 1; transform: none; }
  .g-item .zoom { opacity: 1; transform: none; }
  .g-item .cap { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
