/* =========================================================
   තිරසර හරිත ළමා සමාජය — Stylesheet
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --green-900: #062b1e;
  --green-800: #0b3d2c;
  --green-700: #12684a;
  --green-600: #158a54;
  --green-500: #2fb56a;
  --green-400: #4fd18a;
  --lime: #a8e063;
  --sun: #ffb703;
  --sky: #38bdf8;

  --bg: #f4fbf6;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef7f0;
  --text: #10241c;
  --text-soft: #4a6259;
  --line: rgba(11, 61, 44, .12);

  --grad-main: linear-gradient(120deg, #158a54 0%, #2fb56a 45%, #a8e063 100%);
  --grad-soft: linear-gradient(135deg, rgba(47,181,106,.14), rgba(168,224,99,.14));
  --grad-dark: linear-gradient(150deg, #062b1e, #0b3d2c 60%, #12684a);

  --shadow-sm: 0 2px 10px rgba(6, 43, 30, .06);
  --shadow: 0 12px 34px rgba(6, 43, 30, .10);
  --shadow-lg: 0 26px 70px rgba(6, 43, 30, .18);
  --glow: 0 10px 34px rgba(47, 181, 106, .42);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 74px;
  --maxw: 1200px;
}

html[data-theme="dark"] {
  --bg: #071a13;
  --bg-alt: #0a2419;
  --surface: #0d2c1f;
  --surface-2: #103628;
  --text: #e8f6ee;
  --text-soft: #9dbfae;
  --line: rgba(168, 224, 99, .16);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .55);
  --grad-soft: linear-gradient(135deg, rgba(47,181,106,.12), rgba(168,224,99,.06));
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans Sinhala", "Noto Sans Tamil", "Iskoola Pota", "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

ul { list-style: none; }

svg[viewBox] path, svg[viewBox] circle, svg[viewBox] line {
  vector-effect: non-scaling-stroke;
}

/* stroke icons default */
.btn svg, .icon-btn svg, .vm__ico svg, .to-top svg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.vm__ico svg { stroke-width: 1.8; }

::selection { background: var(--green-400); color: #05231a; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
  background: var(--grad-main); border-radius: 99px;
  border: 3px solid var(--surface-2);
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 62px);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.eyebrow.light { color: #d8ffe9; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }

.section__title {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.section__sub { color: var(--text-soft); margin-top: 14px; font-size: 1.02rem; }

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border: 0; border-radius: 99px;
  font-weight: 700; font-size: .97rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--primary { background: var(--grad-main); color: #04231a; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 44px rgba(47,181,106,.55); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1.6px solid var(--line); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-600); transform: translateY(-3px); }
.btn.full { width: 100%; }

/* shine sweep */
.btn--glow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--glow:hover::after { animation: sweep .85s var(--ease); }
@keyframes sweep { to { transform: translateX(120%); } }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
  transition: transform .3s var(--ease-bounce), background .3s, color .3s;
}
.icon-btn:hover { transform: translateY(-3px) rotate(-6deg); color: var(--green-600); }

/* ---------- 5. PRELOADER ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--grad-dark);
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; color: #eafff4; }
.preloader__leaf { margin: 0 auto 14px; animation: sprout 1.5s var(--ease) infinite alternate; }
@keyframes sprout {
  from { transform: rotate(-14deg) scale(.9); }
  to   { transform: rotate(10deg) scale(1.05); }
}
.preloader__text { font-weight: 800; letter-spacing: .28em; font-size: 1.05rem; opacity: .92; }
.preloader__bar {
  width: 190px; height: 4px; margin: 18px auto 0;
  background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--lime), var(--green-400));
  border-radius: 99px; animation: loadbar 1.15s var(--ease) infinite;
}
@keyframes loadbar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

/* ---------- 6. SCROLL PROGRESS + CANVAS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 1200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-600), var(--lime), var(--sun));
  box-shadow: 0 0 12px rgba(47,181,106,.7);
}

#leafCanvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .55;
}

/* ---------- 7. NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s, height .4s, backdrop-filter .4s;
}
.nav.scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 26px rgba(6,43,30,.10);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px rgba(47,181,106,.4));
  transition: transform .5s var(--ease-bounce);
}
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.06rem; font-weight: 800; }
.brand__text small { font-size: .72rem; color: var(--text-soft); letter-spacing: .06em; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a:not(.btn) {
  position: relative;
  padding: 9px 13px;
  font-size: .92rem; font-weight: 600;
  color: var(--text-soft);
  border-radius: 10px;
  transition: color .25s, background .25s;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--grad-main);
  transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav__links > a:not(.btn):hover::after,
.nav__links > a.active::after { transform: scaleX(1); }
.nav__links > a.active { color: var(--green-600); }
.nav__cta { margin-left: 8px; }

.nav__tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: "Poppins", "Noto Sans Sinhala", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s var(--ease-bounce), border-color .3s, color .3s, background .3s;
}
.lang-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--green-400);
  color: var(--green-600);
}
.lang-toggle__current { color: var(--green-600); }
.lang-toggle__divider { opacity: .35; }
html[lang="en"] body { font-family: "Poppins", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, sans-serif; }
html[lang="ta"] body { font-family: "Noto Sans Tamil", "Poppins", "Noto Sans Sinhala", system-ui, sans-serif; }
.lang-toggle__current,
.lang-toggle__next { min-width: 2.4em; text-align: center; }
html[data-theme="light"] .ico-moon { display: none; }
html[data-theme="dark"]  .ico-sun  { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; }
.burger span {
  width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 35%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 10%, transparent 72%);
  opacity: .7;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(72px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; top: -12vw; left: -8vw; background: radial-gradient(circle, #4fd18a, transparent 70%); }
.blob--2 { width: 40vw; height: 40vw; bottom: -14vw; right: -6vw; background: radial-gradient(circle, #a8e063, transparent 70%); animation-delay: -7s; }
.blob--3 { width: 30vw; height: 30vw; top: 26%; right: 22%; background: radial-gradient(circle, #38bdf8, transparent 70%); opacity: .32; animation-delay: -13s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(5vw, 4vw, 0) scale(1.18); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .84rem; font-weight: 600; color: var(--text-soft);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(47,181,106,.65);
  animation: ping 1.9s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 11px rgba(47,181,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,181,106,0); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 800; line-height: 1.18;
  margin: 20px 0 6px;
  letter-spacing: -.015em;
}
.hero__title .line { display: block; }

.hero__type {
  min-height: 1.9em;
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  font-weight: 700; color: var(--green-600);
}
.caret { animation: blink 1s steps(2) infinite; color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  color: var(--text-soft);
  max-width: 56ch; margin: 14px 0 30px;
  font-size: 1.03rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__mini { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%),
    var(--grad-main);
  border: 3px solid var(--bg);
  margin-left: -12px;
  animation: bobUp .6s var(--ease-bounce) backwards;
  animation-delay: calc(var(--i) * .09s);
}
.avatars span:first-child { margin-left: 0; }
@keyframes bobUp { from { opacity: 0; transform: translateY(14px) scale(.7); } }
.hero__mini p { font-size: .9rem; color: var(--text-soft); }
.hero__mini strong { color: var(--text); }

/* hero visual */
.hero__visual { display: grid; place-items: center; }
.orb-card {
  position: relative;
  width: min(430px, 88vw); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  transform-style: preserve-3d;
}
.orb-card__glow {
  position: absolute; inset: -6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green-500), var(--lime), var(--sky), var(--green-500));
  filter: blur(34px); opacity: .38;
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scene { position: relative; width: 100%; height: 100%; }
.scene__svg { width: 100%; height: 100%; }
.scene__ring {
  fill: none; stroke-width: 1.6; stroke-dasharray: 5 9;
  stroke: color-mix(in srgb, var(--green-500) 55%, transparent);
}
.scene__ring.r1 { animation: spin 42s linear infinite; transform-origin: 160px 160px; }
.scene__ring.r2 { animation: spin 30s linear infinite reverse; transform-origin: 160px 160px; }
.scene__ring.r3 { animation: spin 20s linear infinite; transform-origin: 160px 160px; }
.scene__earth { animation: floaty 6s ease-in-out infinite; transform-origin: 160px 160px; }
.scene__sat { animation: spin 11s linear infinite; transform-origin: 160px 160px; }
@keyframes floaty {
  50% { transform: translateY(-10px); }
}

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.chip--1 { top: 4%;  left: -6%; animation-delay: -.4s; }
.chip--2 { top: 34%; right: -12%; animation-delay: -1.6s; }
.chip--3 { bottom: 20%; left: -12%; animation-delay: -2.8s; }
.chip--4 { bottom: 2%; right: 2%; animation-delay: -3.6s; }

.scroll-cue {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; gap: 6px;
  color: var(--text-soft); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  z-index: 2;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--line);
  border-radius: 14px; display: grid; justify-items: center; padding-top: 6px;
}
.mouse span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--green-500);
  animation: wheel 1.5s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(60px, 9vw, 120px); }
.wave-divider path { fill: var(--bg-alt); }

/* ---------- 9. STATS ---------- */
.stats { background: var(--bg-alt); padding: 10px 0 clamp(50px, 6vw, 84px); position: relative; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  text-align: center; padding: 30px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stat::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .4s;
}
.stat:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); }
.stat:hover::before { opacity: 1; }
.stat > * { position: relative; }
.stat__ico { font-size: 1.8rem; margin-bottom: 6px; }
.stat h3 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat h3 i { font-style: normal; }
.stat p { font-size: .9rem; color: var(--text-soft); font-weight: 600; }

/* ---------- 10. ABOUT ---------- */
.about { background: var(--bg-alt); }
.about__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}

.photo-stack { position: relative; padding: 0 30px 60px 0; }
.photo {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
  border: 5px solid var(--surface);
}
.photo__art { aspect-ratio: 4/3; }
.photo__photo { background: none; position: relative; }
.photo__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo__tag {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(4,25,18,.7); color: #eafff4;
  font-size: .76rem; font-weight: 600;
  padding: 6px 13px; border-radius: 99px;
  backdrop-filter: blur(6px);
}
.photo--a { transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.photo--b {
  width: 58%; position: absolute; right: 0; bottom: 10px;
  transform: rotate(4deg); transition: transform .5s var(--ease);
}
.photo-stack:hover .photo--a { transform: rotate(0) scale(1.02); }
.photo-stack:hover .photo--b { transform: rotate(0) translateY(-8px); }

.badge-float {
  position: absolute; top: -14px; right: 6px;
  background: var(--grad-main); color: #04231a;
  padding: 12px 18px; border-radius: var(--r);
  box-shadow: var(--glow); text-align: center;
  animation: floaty 5s ease-in-out infinite;
}
.badge-float strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.badge-float small { font-size: .68rem; line-height: 1.35; display: block; }

.about__text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.about__text > div p { color: var(--text-soft); }

.vm-cards { display: grid; gap: 14px; margin: 26px 0; }
.vm {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.vm:hover { transform: translateX(8px); border-color: var(--green-400); box-shadow: var(--shadow); }
.vm__ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-main); color: #04231a;
  grid-row: span 2;
}
.vm h4 { font-size: 1.05rem; font-weight: 700; }
.vm p { grid-column: 2; font-size: .93rem; color: var(--text-soft); }

.tick-list { display: grid; gap: 10px; }
.tick-list li {
  position: relative; padding-left: 32px; font-size: .96rem; color: var(--text-soft);
}
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-main); color: #04231a;
  font-size: .72rem; font-weight: 800;
}
.tick-list.light li { color: rgba(233,255,243,.9); }
.tick-list.light li::before { background: rgba(255,255,255,.9); color: var(--green-700); }

/* ---------- 11. CSS ART (image placeholders) ---------- */
.art-forest, .art-kids, .art-garden, .art-recycle, .art-compost,
.art-plastic, .art-solar, .art-water, .art-birds, .art-camp {
  width: 100%; height: 100%;
  background-repeat: no-repeat;
  transition: transform .6s var(--ease), filter .4s;
}
.art-forest {
  background-image:
    radial-gradient(circle at 20% 78%, #0f5f3e 0 14%, transparent 15%),
    radial-gradient(circle at 38% 66%, #17794d 0 17%, transparent 18%),
    radial-gradient(circle at 62% 72%, #1c9159 0 20%, transparent 21%),
    radial-gradient(circle at 84% 80%, #12684a 0 13%, transparent 14%),
    linear-gradient(180deg, #9fe8c4 0%, #56c78d 55%, #0b3d2c 100%);
}
.art-kids {
  background-image:
    radial-gradient(circle at 30% 62%, #ffd166 0 10%, transparent 11%),
    radial-gradient(circle at 55% 55%, #ff8fa3 0 9%, transparent 10%),
    radial-gradient(circle at 74% 64%, #90e0ef 0 10%, transparent 11%),
    linear-gradient(160deg, #d8f3dc, #74c69d 60%, #2d6a4f);
}
.art-garden {
  background-image:
    repeating-linear-gradient(78deg, rgba(255,255,255,.14) 0 8px, transparent 8px 26px),
    radial-gradient(circle at 25% 70%, #52b788 0 15%, transparent 16%),
    radial-gradient(circle at 70% 62%, #95d5b2 0 17%, transparent 18%),
    linear-gradient(180deg, #b7e4c7, #40916c 70%, #1b4332);
}
.art-recycle {
  background-image:
    conic-gradient(from 30deg at 50% 48%, #2fb56a 0 33%, #38bdf8 0 66%, #ffb703 0 100%),
    linear-gradient(160deg, #e2f7ea, #b7e4c7);
  background-size: 62% 62%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.art-compost {
  background-image:
    radial-gradient(circle at 50% 60%, #6b4f2a 0 24%, transparent 25%),
    repeating-radial-gradient(circle at 50% 60%, rgba(255,255,255,.1) 0 6px, transparent 6px 14px),
    linear-gradient(160deg, #d9c9a3, #8a6b3f 60%, #4a3a20);
}
.art-plastic {
  background-image:
    radial-gradient(circle at 32% 55%, rgba(255,255,255,.75) 0 13%, transparent 14%),
    radial-gradient(circle at 66% 62%, rgba(255,255,255,.55) 0 11%, transparent 12%),
    linear-gradient(160deg, #90e0ef, #0096c7 65%, #023e8a);
}
.art-solar {
  background-image:
    radial-gradient(circle at 74% 24%, #ffd166 0 12%, rgba(255,209,102,.35) 13% 22%, transparent 23%),
    repeating-linear-gradient(115deg, #0b3d2c 0 12px, #10514a 12px 24px),
    linear-gradient(180deg, #cbf3ff, #62b6cb);
  background-size: 100% 100%, 74% 46%, 100% 100%;
  background-position: center, 20% 78%, center;
}
.art-water {
  background-image:
    repeating-radial-gradient(circle at 50% 72%, rgba(255,255,255,.35) 0 4px, transparent 4px 22px),
    linear-gradient(180deg, #caf0f8, #48cae4 55%, #0077b6);
}
.art-birds {
  background-image:
    radial-gradient(circle at 22% 30%, #ffffff 0 5%, transparent 6%),
    radial-gradient(circle at 48% 22%, #ffffff 0 4%, transparent 5%),
    radial-gradient(circle at 72% 34%, #ffffff 0 6%, transparent 7%),
    linear-gradient(180deg, #ffd6a5, #ffb703 45%, #6a994e);
}
.art-camp {
  background-image:
    radial-gradient(circle at 50% 78%, #ff8500 0 10%, transparent 11%),
    conic-gradient(from 210deg at 30% 74%, #2d6a4f 0 20%, transparent 0),
    conic-gradient(from 130deg at 70% 74%, #40916c 0 20%, transparent 0),
    linear-gradient(180deg, #14213d, #3a5a40 70%, #081c15);
}

/* ---------- 12. OBJECTIVES ---------- */
.obj-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
.obj-card {
  position: relative; overflow: hidden;
  padding: 34px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.obj-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-main); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.obj-card::after {
  content: ""; position: absolute; width: 180px; height: 180px;
  right: -60px; bottom: -70px; border-radius: 50%;
  background: var(--grad-soft); transform: scale(0); transition: transform .6s var(--ease);
}
.obj-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.obj-card:hover::before, .obj-card:hover::after { transform: scaleX(1) scale(1); }
.obj-card > * { position: relative; z-index: 1; }
.obj-card__no {
  position: absolute; top: 18px; right: 22px;
  font-size: 2.4rem; font-weight: 800; color: var(--line); z-index: 0;
}
.obj-card__ico {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--grad-soft); border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: transform .5s var(--ease-bounce);
}
.obj-card:hover .obj-card__ico { transform: rotate(-10deg) scale(1.12); }
.obj-card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.obj-card p { font-size: .94rem; color: var(--text-soft); }

/* ---------- 13. ACTIVITIES ---------- */
.activities { background: var(--bg-alt); }
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 20px; border-radius: 99px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
  transition: all .3s var(--ease);
}
.chip:hover { transform: translateY(-3px); color: var(--green-600); border-color: var(--green-400); }
.chip.is-active { background: var(--grad-main); color: #04231a; border-color: transparent; box-shadow: var(--glow); }

.act-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.act {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, opacity .35s;
}
.act.hide { display: none; }
.act:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.act__top { height: 168px; position: relative; overflow: hidden; }
.act__top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4,25,18,.35));
}
.act__photo::after { background: none; }
.act__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.act:hover .act__top { transform: scale(1.07); }
.act__body { padding: 22px 22px 26px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-700); background: var(--grad-soft);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 12px;
}
html[data-theme="dark"] .tag { color: var(--green-400); }
.act h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.act p { font-size: .93rem; color: var(--text-soft); }

/* ---------- 14. MEDAL LADDER ---------- */
.ladder { position: relative; max-width: 860px; margin-inline: auto; padding-left: 26px; }
.ladder__line {
  position: absolute; left: 45px; top: 20px; bottom: 20px; width: 4px;
  background: var(--line); border-radius: 99px; overflow: hidden;
}
.ladder__line span {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--green-500), var(--lime), var(--sun));
  transition: height .3s linear;
}
.rung {
  position: relative; display: grid; grid-template-columns: auto 1fr;
  gap: 22px; align-items: center; padding: 14px 0;
}
.rung__medal {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--surface); border: 3px solid var(--line);
  box-shadow: var(--shadow); z-index: 1;
  transition: transform .45s var(--ease-bounce), box-shadow .45s, border-color .45s;
}
.rung:hover .rung__medal { transform: scale(1.15) rotate(-8deg); border-color: var(--green-400); box-shadow: var(--glow); }
.m-green  { background: linear-gradient(140deg, #e9f9ef, #c8f0d8); }
.m-leaf   { background: linear-gradient(140deg, #dcf5c8, #a8e063); }
.m-silver { background: linear-gradient(140deg, #f2f5f7, #c9d3da); }
.m-gold   { background: linear-gradient(140deg, #fff3cf, #ffd166); }
.m-pres   { background: linear-gradient(140deg, #ffe6c9, #ff9e57); }
html[data-theme="dark"] .m-green { background: linear-gradient(140deg, #12513a, #1d7a52); }

.rung__body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.rung:hover .rung__body { transform: translateX(10px); box-shadow: var(--shadow); }
.rung__body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.rung__body p { font-size: .93rem; color: var(--text-soft); }

/* ---------- 15. TIMELINE ---------- */
.timeline-sec { background: var(--bg-alt); }
.timeline {
  position: relative; max-width: 940px; margin-inline: auto;
}
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; margin-left: -1.5px;
  background: linear-gradient(180deg, transparent, var(--green-400), var(--lime), transparent);
}
.tl-item { position: relative; width: 50%; padding: 0 44px 34px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; }
.tl-dot {
  position: absolute; top: 16px; right: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-main); border: 4px solid var(--bg-alt);
  box-shadow: 0 0 0 0 rgba(47,181,106,.5);
  animation: ping 2.4s infinite;
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
.tl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tl-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.tl-date {
  display: inline-block; font-size: .76rem; font-weight: 700;
  color: var(--green-700); background: var(--grad-soft);
  padding: 5px 13px; border-radius: 99px; margin-bottom: 10px;
}
html[data-theme="dark"] .tl-date { color: var(--green-400); }
.tl-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.tl-card p { font-size: .93rem; color: var(--text-soft); }

/* ---------- 16. GALLERY ---------- */
.masonry {
  columns: 4 220px; column-gap: 18px;
}
.ph {
  position: relative; break-inside: avoid;
  margin-bottom: 18px; border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.ph__art { height: 200px; }
.ph__photo { background: none; }
.ph__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.ph.tall .ph__art { height: 300px; }
.ph figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(4,25,18,.85));
  color: #eafff4; font-size: .88rem; font-weight: 600;
  transform: translateY(100%); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
}
.ph::after {
  content: "🔍"; position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9); font-size: .85rem;
  transform: scale(0); transition: transform .4s var(--ease-bounce);
}
.ph:hover .ph__art { transform: scale(1.1) rotate(1.5deg); }
.ph:hover figcaption { transform: translateY(0); opacity: 1; }
.ph:hover::after { transform: scale(1); }

/* ---------- 17. QUOTES ---------- */
.quotes { background: var(--bg-alt); }
.quote-slider { max-width: 900px; margin-inline: auto; overflow: hidden; }
.quote-track { display: flex; transition: transform .7s var(--ease); }
.quote {
  min-width: 100%; padding: 8px 10px 0;
  text-align: center;
}
.quote p {
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  font-weight: 500; line-height: 1.9;
  position: relative; padding: 0 clamp(10px, 4vw, 46px);
}
.quote p::before, .quote p::after {
  content: "❞"; color: var(--green-400); font-size: 2rem;
  position: absolute; opacity: .5;
}
.quote p::before { content: "❝"; left: 0; top: -14px; }
.quote p::after { right: 0; bottom: -22px; }
.quote footer { margin-top: 24px; color: var(--text-soft); font-size: .92rem; }
.quote footer strong { color: var(--green-600); }

.quote-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.quote-dots button {
  width: 10px; height: 10px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--line); transition: all .35s var(--ease);
}
.quote-dots button.is-active { width: 30px; background: var(--grad-main); }

/* ---------- 18. TEAM ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.member {
  text-align: center; padding: 32px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.member::before {
  content: ""; position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 140px; border-radius: 50%;
  background: var(--grad-soft);
  transition: transform .6s var(--ease);
}
.member:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.member:hover::before { transform: translateX(-50%) scale(1.6); }
.member > * { position: relative; }
.member__avatar {
  width: 88px; height: 88px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-main); color: #04231a;
  font-size: 1.5rem; font-weight: 800;
  border: 4px solid var(--surface);
  box-shadow: var(--glow);
  transition: transform .5s var(--ease-bounce);
}
.member__avatar::after { content: attr(data-initial); }
.member:hover .member__avatar { transform: scale(1.08) rotate(-6deg); }
.member h3 { font-size: 1.04rem; font-weight: 700; }
.member > span {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-600); margin: 4px 0 10px;
}
.member p { font-size: .9rem; color: var(--text-soft); }

/* ---------- 19. JOIN ---------- */
.join__card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--r-xl);
  background: var(--grad-dark);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  color: #eafff4;
}
.join__card::before {
  content: ""; position: absolute; width: 420px; height: 420px;
  right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,224,99,.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.join__card::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.join__left, .join__form { position: relative; z-index: 1; }
.join__left h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.35; margin: 12px 0 12px; }
.join__left p { color: rgba(233,255,243,.82); margin-bottom: 20px; }

.join__form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  display: grid; gap: 16px; align-content: start;
}
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field textarea {
  width: 100%; padding: 16px 16px 8px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 12px; color: #f2fff8;
  outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field label {
  position: absolute; left: 16px; top: 14px;
  font-size: .95rem; color: rgba(233,255,243,.65);
  pointer-events: none;
  transition: all .28s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--lime);
  background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 4px rgba(168,224,99,.16);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 3px; font-size: .68rem; color: var(--lime); font-weight: 700;
}
.field.invalid input, .field.invalid textarea { border-color: #ff8a8a; }
.err { display: block; min-height: 14px; font-size: .72rem; color: #ffb3b3; padding-left: 4px; }
.form-note { font-size: .88rem; text-align: center; min-height: 20px; color: var(--lime); font-weight: 600; }

/* ---------- 20. CONTACT ---------- */
.contact__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.cbox {
  text-align: center; padding: 30px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.cbox:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--green-400); }
.cbox__ico {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 18px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--grad-soft); border: 1px solid var(--line);
  transition: transform .5s var(--ease-bounce);
}
.cbox:hover .cbox__ico { transform: rotate(-10deg) scale(1.1); }
.cbox h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cbox p { font-size: .92rem; color: var(--text-soft); }

/* ---------- 21. FOOTER ---------- */
.footer { background: var(--grad-dark); color: rgba(233,255,243,.85); padding-top: clamp(48px, 6vw, 78px); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.footer__inner {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px;
  padding-bottom: 44px;
}
.footer .brand__text small { color: rgba(233,255,243,.6); }
.footer__brand p { margin: 16px 0 18px; font-size: .93rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  font-weight: 700;
  transition: transform .35s var(--ease-bounce), background .3s;
}
.socials a:hover { transform: translateY(-5px) rotate(-8deg); background: var(--green-500); color: #04231a; }

.footer__col h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__col a {
  display: block; font-size: .93rem; padding: 5px 0;
  color: rgba(233,255,243,.75);
  transition: color .25s, transform .25s;
}
.footer__col a:hover { color: var(--lime); transform: translateX(6px); }
.footer__col p { font-size: .9rem; margin-bottom: 12px; }

.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0; padding: 12px 14px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; color: #f2fff8; outline: none;
  transition: border-color .3s;
}
.news input::placeholder { color: rgba(233,255,243,.5); }
.news input:focus { border-color: var(--lime); }
.news button {
  width: 46px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--grad-main); color: #04231a; font-size: 1.1rem; font-weight: 800;
  transition: transform .3s var(--ease-bounce);
}
.news button:hover { transform: translateX(4px); }
#newsNote { display: block; margin-top: 8px; font-size: .78rem; color: var(--lime); }

.footer__bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: .84rem; color: rgba(233,255,243,.62); }

/* ---------- 22. LIGHTBOX + TO TOP ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  grid-template-columns: 70px 1fr 70px;
  background: rgba(3, 18, 13, .92);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage { text-align: center; padding: 16px; }
.lightbox__art {
  width: min(760px, 84vw); aspect-ratio: 4/3;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: scale(.9); transition: transform .45s var(--ease-bounce);
}
.lightbox.open .lightbox__art { transform: scale(1); }
.lightbox__photo { background: none; overflow: hidden; }
.lightbox__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__stage p { color: #eafff4; margin-top: 16px; font-weight: 600; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: transform .3s var(--ease-bounce), background .3s;
}
.lightbox__close:hover { transform: rotate(90deg); background: var(--green-500); }
.lightbox__nav {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 2rem; line-height: 0; cursor: pointer;
  transition: transform .3s var(--ease-bounce), background .3s;
}
.lightbox__nav:hover { background: var(--green-500); transform: scale(1.12); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad-main); color: #04231a;
  box-shadow: var(--glow);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: all .4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-5px) scale(1.08); }

/* ---------- 23. REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: stretch;
    gap: 6px;
    padding: calc(var(--nav-h) + 20px) 22px 30px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .5s var(--ease);
    max-height: 100svh; overflow-y: auto;
  }
  .nav__links.open { transform: none; }
  .nav__links > a:not(.btn) { padding: 13px 16px; font-size: 1rem; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 10px 0 0; }
  .burger { display: flex; }

  .hero { padding-bottom: 140px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__mini { justify-content: center; }
  .hero__visual { order: -1; }
  .orb-card { width: min(340px, 78vw); }
  .float-chip { font-size: .74rem; padding: 7px 12px; }
  .chip--2 { right: -4%; }
  .chip--3 { left: -4%; }
  .scroll-cue { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .photo-stack { max-width: 520px; margin-inline: auto; }

  .join__card { grid-template-columns: 1fr; }

  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 26px 34px;
  }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }

  .lightbox { grid-template-columns: 54px 1fr 54px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .brand__text { display: none; }
  .nav__tools { gap: 7px; }
  .lang-toggle { padding-inline: 9px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 12px; }
  .masonry { columns: 2 140px; column-gap: 12px; }
  .ph { margin-bottom: 12px; }
  .ph__art { height: 150px; }
  .ph.tall .ph__art { height: 210px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .ladder { padding-left: 0; }
  .ladder__line { left: 26px; }
  .rung { grid-template-columns: auto 1fr; gap: 14px; }
  .rung__medal { width: 52px; height: 52px; font-size: 1.3rem; }
  .btn { padding: 13px 22px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 25. MOTION PREFERENCE ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  #leafCanvas { display: none; }
}

/* ---------- 26. PRINT ---------- */
@media print {
  .nav, .to-top, #leafCanvas, .scroll-progress, #preloader, .lightbox, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
