/* ==========================================================================
   Foundation theme — modern, warm, animated
   ========================================================================== */

:root {
    --ink: #0f1d19;
    --ink-2: #33433e;
    --muted: #66756f;
    --forest: #16302a;
    --forest-2: #1f4339;
    --leaf: #2f7a5b;
    --mint: #d9efe4;
    --sun: #f5a524;
    --sun-2: #ffbf47;
    --coral: #ee6c4d;
    --cream: #fbf8f2;
    --sand: #f3ede2;
    --line: #e7e1d5;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(15, 29, 25, .06);
    --shadow: 0 12px 32px -12px rgba(15, 29, 25, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 29, 25, .28);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 600;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--leaf); font-weight: 400; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--dark { background: var(--forest); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--sun); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--leaf); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--sun-2); }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--forest); --fg: #fff;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: 999px; border: 0;
    background: var(--bg); color: var(--fg);
    font-weight: 600; font-size: .96rem; line-height: 1; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s;
    will-change: transform;
}
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--hover, var(--leaf));
    transform: translateY(101%); border-radius: inherit;
    transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -12px rgba(15,29,25,.45); }
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-paper-plane { transform: translateX(4px); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); --hover: var(--sun-2); }
.btn--light { --bg: #fff; --fg: var(--ink); --hover: var(--mint); }
.btn--ghost { --bg: transparent; --fg: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); --hover: var(--forest); }
.btn--ghost:hover { color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); --hover: #fff; }
.btn--outline-light:hover { color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--leaf); }
.link-arrow i { transition: transform .35s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: var(--forest); color: var(--sun);
    transition: clip-path 1s var(--ease-in-out), visibility 0s 1s;
    clip-path: inset(0 0 0 0);
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__heart { width: 64px; height: 64px; }
.preloader__heart path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s var(--ease) forwards, beat 1.2s 1.2s ease-in-out infinite; transform-origin: center; }
.preloader__name { font-family: var(--font-display); color: #fff; font-size: 1.25rem; letter-spacing: .02em; opacity: 0; animation: fadeUp .8s .4s var(--ease) forwards; }
.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sun), var(--coral)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: transform .5s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

.topbar { background: var(--forest); color: rgba(255,255,255,.75); font-size: .84rem; transition: margin .4s var(--ease), opacity .3s; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__contact a:hover { color: var(--sun); }
.topbar__contact i { color: var(--sun); margin-right: 6px; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .3s, color .3s, transform .3s var(--ease); }
.topbar__social a:hover { background: var(--sun); color: var(--ink); transform: translateY(-2px); }

.navbar { background: rgba(251, 248, 242, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15,29,25,.06); transition: background .4s, box-shadow .4s, border-color .4s; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .4s var(--ease); }
.is-scrolled .navbar { box-shadow: 0 10px 30px -18px rgba(15,29,25,.35); }
.is-scrolled .navbar__inner { height: 70px; }
.is-scrolled .topbar { margin-top: -40px; opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { height: 48px; width: auto; object-fit: contain; }
.brand__mark {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--sun), var(--coral)); color: var(--ink);
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 8px 18px -8px rgba(238,108,77,.7);
    transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.brand--light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border: 0; background: none; border-radius: 999px;
    font-weight: 600; font-size: .94rem; color: var(--ink);
}
.nav__link i { font-size: .65rem; transition: transform .35s var(--ease); }
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--sun); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__item--drop:hover .nav__link i, .nav__item--drop.is-open .nav__link i { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; min-width: 250px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
    display: grid; gap: 2px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 12px) scale(.98);
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item--drop:hover .dropdown, .nav__item--drop.is-open .dropdown, .nav__item--drop:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s;
}
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s, padding .3s var(--ease); }
.dropdown a i { width: 18px; color: var(--leaf); }
.dropdown a:hover { background: var(--sand); color: var(--ink); padding-left: 18px; }
.dropdown__label { display: block; padding: 10px 14px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dropdown__label ~ .dropdown__label { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.dropdown__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px !important; color: var(--leaf) !important; font-weight: 600 !important; justify-content: space-between; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span { background: var(--ink) !important; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .burger { display: block; z-index: 2; }
    .brand { position: relative; z-index: 2; }
    .nav {
        position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
        padding: calc(var(--header-h) + 24px) 24px 32px; background: var(--cream); overflow-y: auto;
        clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
    }
    .nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
    .nav-open .nav__list > li { opacity: 1; transform: none; }
    .nav-open .nav__list > li:nth-child(1) { transition-delay: .15s; }
    .nav-open .nav__list > li:nth-child(2) { transition-delay: .2s; }
    .nav-open .nav__list > li:nth-child(3) { transition-delay: .25s; }
    .nav-open .nav__list > li:nth-child(4) { transition-delay: .3s; }
    .nav-open .nav__list > li:nth-child(5) { transition-delay: .35s; }
    .nav-open .nav__list > li:nth-child(6) { transition-delay: .4s; }
    .nav-open .nav__list > li:nth-child(7) { transition-delay: .45s; }
    .nav__link { width: 100%; justify-content: space-between; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; padding: 16px 4px; color: var(--ink); border-radius: 0; }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--leaf) !important; }
    .dropdown { position: static; display: block; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; background: transparent; padding: 0 0 0 8px; min-width: 0; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .3s; }
    .nav__item--drop.is-open .dropdown { max-height: 640px; padding-bottom: 12px; }
    .dropdown::before { display: none; }
    .nav__cta { align-self: flex-start; }
    .topbar { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: calc(80svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; background: var(--forest); color: #fff; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; }
.hero__slide-img { position: absolute; inset: -4%; background-size: cover; background-position: center; transform: scale(1.12); }
.hero__slide.is-active .hero__slide-img { animation: kenburns 9s linear forwards; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(10,24,20,.88) 0%, rgba(10,24,20,.55) 50%, rgba(10,24,20,.2) 100%),
        linear-gradient(0deg, rgba(10,24,20,.7), transparent 40%);
}
.hero--mesh::before { background: none; }
.hero__mesh { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(1200px 800px at 80% -10%, #2a5a4b 0%, transparent 60%), var(--forest); }
.hero__mesh span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.hero__mesh span:nth-child(1) { width: 520px; height: 520px; background: var(--leaf); top: -120px; right: 8%; }
.hero__mesh span:nth-child(2) { width: 420px; height: 420px; background: var(--sun); bottom: -140px; right: 28%; opacity: .35; animation-duration: 22s; animation-delay: -6s; }
.hero__mesh span:nth-child(3) { width: 360px; height: 360px; background: var(--coral); top: 30%; left: -120px; opacity: .3; animation-duration: 26s; animation-delay: -12s; }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__inner { padding: 90px 0 200px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero__copy { max-width: 760px; }
.hero__title { color: #fff; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
.hero__title em { color: var(--sun); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.08em; }
.hero__rotator span { grid-area: 1 / 1; color: var(--sun); font-style: italic; font-weight: 400; transform: translateY(110%); transition: transform .8s var(--ease); }
.hero__rotator span.is-in { transform: translateY(0); }
.hero__rotator span.is-out { transform: translateY(-110%); }
.hero__slide-copy { display: none; }
.hero__slide-copy.is-active { display: block; }

.hero__card {
    justify-self: end; width: min(360px, 100%);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-lg); padding: 28px;
    animation: floatY 7s ease-in-out infinite;
}
.hero__card h3 { color: #fff; font-size: 1.3rem; }
.hero__card p { color: rgba(255,255,255,.72); font-size: .94rem; }
.hero__card-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.hero__card-amounts button { padding: 12px 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-weight: 600; transition: background .25s, color .25s, transform .25s var(--ease); }
.hero__card-amounts button:hover { transform: translateY(-2px); }
.hero__card-amounts button.is-active { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.hero__card-impact { min-height: 3.2em; font-size: .9rem; color: var(--sun-2); transition: opacity .3s; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 112px; }
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 54px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: fill var(--dur, 7s) linear forwards; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; transition: background .3s, color .3s, transform .3s var(--ease); }
.hero__arrow:hover { background: #fff; color: var(--ink); transform: scale(1.06); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.hero__scroll span { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--sun); animation: scrollDot 1.8s ease-in-out infinite; }

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; padding-bottom: 220px; }
    .hero__card { justify-self: start; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--forest); color: #fff; padding: clamp(80px, 11vw, 150px) 0 clamp(100px, 12vw, 160px); isolation: isolate; }
.page-hero__bg { position: absolute; inset: -15% 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(10,24,20,.9), rgba(10,24,20,.55)); }
.page-hero__mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__mesh span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: float 16s ease-in-out infinite alternate; }
.page-hero__mesh span:nth-child(1) { width: 380px; height: 380px; background: var(--leaf); top: -160px; right: 6%; }
.page-hero__mesh span:nth-child(2) { width: 260px; height: 260px; background: var(--sun); bottom: -140px; right: 34%; opacity: .25; animation-delay: -5s; }
.page-hero__mesh span:nth-child(3) { width: 220px; height: 220px; background: var(--coral); top: 10%; left: -80px; opacity: .22; animation-delay: -9s; }
.page-hero--image .page-hero__mesh { opacity: .5; }
.page-hero__inner > * { max-width: 900px; }
.page-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 12px; }
.page-hero__sub { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 640px; margin: 0; }
.page-hero__curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--cream); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.crumbs a:hover { color: var(--sun); }
.crumbs__sep { font-size: .6rem; opacity: .6; }
.crumbs span { color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Stats / counters ---------- */
.stats { position: relative; margin-top: -72px; z-index: 3; }
.stats__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); overflow: hidden; }
.stat { padding: 34px 28px; position: relative; text-align: left; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--leaf); margin-bottom: 16px; font-size: 1.1rem; transition: transform .5s var(--ease), background .3s, color .3s; }
.stat:hover .stat__icon { transform: rotate(-10deg) scale(1.1); background: var(--sun); color: var(--ink); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; color: var(--ink); line-height: 1; display: block; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .95rem; font-weight: 500; }
@media (max-width: 900px) { .stats__card { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3)::before { display: none; } }
@media (max-width: 520px) { .stats__card { grid-template-columns: 1fr; } .stat + .stat::before { left: 24%; right: 24%; top: 0; bottom: auto; width: auto; height: 1px; } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split__media { position: relative; }
.split__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--sand); }
.split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover .split__img img { transform: scale(1.05); }
.split__badge {
    position: absolute; right: -18px; bottom: 36px; background: var(--sun); color: var(--ink);
    padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 220px;
    animation: floatY 6s ease-in-out infinite;
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.split__badge span { font-size: .86rem; font-weight: 600; }
.split__ring { position: absolute; left: -40px; top: -40px; width: 160px; height: 160px; border: 2px dashed var(--leaf); border-radius: 50%; opacity: .35; animation: spin 40s linear infinite; z-index: -1; }
.split__dots { position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; background-image: radial-gradient(var(--sun) 2px, transparent 2px); background-size: 18px 18px; z-index: -1; opacity: .6; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist i { color: var(--leaf); margin-top: 6px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.value { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value i { color: var(--coral); font-size: 1.2rem; margin-bottom: 8px; display: block; }
.value strong { color: var(--ink); display: block; font-size: .96rem; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(15,29,25,.04);
    transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,24,20,.45), transparent 50%); opacity: 0; transition: opacity .5s; }
.card:hover .card__media::after { opacity: 1; }
.card__tag { position: absolute; left: 16px; top: 16px; z-index: 1; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.card__meta i { color: var(--sun); margin-right: 5px; }
.card__title { font-size: 1.28rem; margin-bottom: 10px; transition: color .3s; }
.card:hover .card__title { color: var(--leaf); }
.card__text { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.card__foot { margin-top: auto; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__go { position: absolute; right: 18px; top: 18px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); }
.card:hover .card__go { transform: scale(1) rotate(0); }

/* featured (wide) card */
.card--feature { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 40px; }
.card--feature .card__media { aspect-ratio: auto; min-height: 360px; }
.card--feature .card__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
@media (max-width: 860px) { .card--feature { grid-template-columns: 1fr; } .card--feature .card__media { min-height: 240px; } }

/* program card */
.program { position: relative; padding: 34px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .55s var(--ease), box-shadow .55s, border-color .3s, color .4s; isolation: isolate; }
.program::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); clip-path: circle(0 at 100% 0); transition: clip-path .8s var(--ease); }
.program:hover::before { clip-path: circle(150% at 100% 0); }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: rgba(255,255,255,.75); }
.program:hover .program__title { color: #fff; }
.program:hover .program__num { color: rgba(255,255,255,.1); }
.program:hover .program__icon { background: var(--sun); color: var(--ink); transform: rotate(-8deg); }
.program:hover .link-arrow { color: var(--sun); }
.program__num { position: absolute; right: 20px; top: 8px; font-family: var(--font-display); font-size: 4.6rem; font-weight: 700; color: var(--sand); line-height: 1; transition: color .4s; z-index: -1; }
.program__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--mint); color: var(--leaf); font-size: 1.5rem; margin-bottom: 24px; overflow: hidden; transition: transform .5s var(--ease), background .4s, color .4s; }
.program__icon img { width: 100%; height: 100%; object-fit: cover; }
.program__title { font-size: 1.35rem; transition: color .4s; }
.program__text { font-size: .95rem; margin-bottom: 22px; }
.program .link-arrow { margin-top: auto; }
.program .card__link::before { z-index: 2; }

/* get involved */
.involve { position: relative; border-radius: var(--radius-lg); padding: 40px 34px; color: #fff; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .55s var(--ease); }
.involve:hover { transform: translateY(-8px); }
.involve::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g); transition: transform 1s var(--ease); }
.involve:hover::before { transform: scale(1.06); }
.involve__icon { position: absolute; right: -10px; top: -10px; font-size: 9rem; opacity: .14; transition: transform 1s var(--ease), opacity .4s; }
.involve:hover .involve__icon { transform: rotate(-12deg) scale(1.1); opacity: .22; }
.involve h3 { color: #fff; font-size: 1.7rem; }
.involve p { color: rgba(255,255,255,.85); }
.involve--a { --g: linear-gradient(150deg, #2f7a5b, #16302a); }
.involve--b { --g: linear-gradient(150deg, #f5a524, #ee6c4d); }
.involve--b h3, .involve--b p, .involve--b { color: var(--ink); }
.involve--c { --g: linear-gradient(150deg, #345c8c, #1d2f4a); }

/* team */
.member { text-align: center; }
.member__photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); margin-bottom: 18px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.member:hover .member__photo img { transform: scale(1.07); filter: none; }
.member__social { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.member__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transform: translateY(30px); opacity: 0; transition: transform .5s var(--ease), opacity .4s, background .3s; }
.member:hover .member__social a { transform: none; opacity: 1; }
.member:hover .member__social a:nth-child(2) { transition-delay: .05s; }
.member:hover .member__social a:nth-child(3) { transition-delay: .1s; }
.member:hover .member__social a:nth-child(4) { transition-delay: .15s; }
.member__social a:hover { background: var(--sun); }
.member h3 { font-size: 1.2rem; margin-bottom: 2px; }
.member h3 a:hover { color: var(--leaf); }
.member p { color: var(--muted); font-size: .92rem; margin: 0; }

/* events */
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.event:hover { transform: translateX(8px); box-shadow: var(--shadow); border-color: transparent; }
.event__date { text-align: center; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 16px 8px; transition: background .4s; }
.event:hover .event__date { background: var(--sun); color: var(--ink); }
.event__day { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.event__month { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event__thumb { width: 150px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.event__thumb img { width: 100%; height: 100%; object-fit: cover; }
.event h3 { margin-bottom: 8px; }
.event:hover h3 { color: var(--leaf); }
@media (max-width: 760px) { .event { grid-template-columns: 90px 1fr; } .event__thumb { display: none; } }

/* video */
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; display: block; background: var(--forest); color: #fff; isolation: isolate; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); opacity: .85; }
.video-card:hover img { transform: scale(1.06); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,24,20,.85), transparent 60%); }
.video-card__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-size: 1.3rem; padding-left: 4px; transition: transform .5s var(--ease); }
.video-card__play::before, .video-card__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sun); animation: ripple 2.4s ease-out infinite; }
.video-card__play::after { animation-delay: 1.2s; }
.video-card:hover .video-card__play { transform: scale(1.12); }
.video-card__title { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: #fff; font-size: 1.15rem; margin: 0; }

/* gallery (masonry) */
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: var(--sand); cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__cap { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(10,24,20,.85), transparent); transform: translateY(100%); transition: transform .5s var(--ease); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.masonry__item:hover .masonry__cap { transform: none; }
.masonry__cap i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); flex: none; }

/* mosaic for home gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.mosaic .masonry__item { margin: 0; height: 100%; }
.mosaic .masonry__item img { height: 100%; object-fit: cover; }
.mosaic { grid-auto-flow: dense; }
.mosaic .masonry__item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }

/* partners marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner { flex: none; width: 200px; height: 110px; display: grid; place-items: center; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.partner img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner:hover img { filter: none; opacity: 1; }
.partner span { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); text-align: center; }

/* quote / CTA band */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--forest); color: #fff; padding: clamp(48px, 7vw, 96px); isolation: isolate; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta h2 em { color: var(--sun); }
.cta p { color: rgba(255,255,255,.75); font-size: 1.08rem; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }
.cta__shape { position: absolute; z-index: -1; border-radius: 50%; }
.cta__shape--a { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(245,165,36,.45), transparent 70%); animation: float 14s ease-in-out infinite alternate; }
.cta__shape--b { width: 300px; height: 300px; left: 30%; bottom: -180px; background: radial-gradient(circle, rgba(47,122,91,.8), transparent 70%); animation: float 18s ease-in-out infinite alternate-reverse; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__actions { justify-self: start; } }

.quote { text-align: center; max-width: 900px; margin: 0 auto; }
.quote__mark { font-size: 2.6rem; color: var(--sun); display: block; margin-bottom: 22px; }
.quote blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; color: #fff; font-weight: 400; }
.quote cite { font-style: normal; color: rgba(255,255,255,.65); font-weight: 600; letter-spacing: .06em; }

/* steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--forest-2); color: var(--sun); font-size: 1.5rem; position: relative; border: 2px solid rgba(255,255,255,.12); transition: transform .5s var(--ease), background .4s, color .4s; }
.step:hover .step__icon { transform: translateY(-6px) scale(1.06); background: var(--sun); color: var(--ink); }
.step__icon::after { counter-increment: step; content: counter(step); position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 1.3rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* newsletter */
.newsletter { padding: 0 0 clamp(60px, 8vw, 100px); position: relative; z-index: 2; margin-bottom: -90px; }
.newsletter__card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--leaf), var(--forest)); color: #fff; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; box-shadow: var(--shadow-lg); isolation: isolate; }
.newsletter__card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.newsletter__card h2 em { color: var(--sun); }
.newsletter__card p { color: rgba(255,255,255,.78); margin: 0; }
.newsletter__orb { position: absolute; border-radius: 50%; z-index: -1; filter: blur(10px); }
.newsletter__orb--a { width: 260px; height: 260px; right: -60px; top: -120px; background: rgba(245,165,36,.35); animation: float 12s ease-in-out infinite alternate; }
.newsletter__orb--b { width: 180px; height: 180px; left: 40%; bottom: -110px; background: rgba(238,108,77,.3); animation: float 15s ease-in-out infinite alternate-reverse; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,.1); padding: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.newsletter__form input { flex: 1; min-width: 180px; border: 0; background: transparent; color: #fff; padding: 0 18px; font: inherit; outline: none; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter__form input.newsletter__math { flex: 0 0 120px; min-width: 0; border-left: 1px solid rgba(255,255,255,.2); -moz-appearance: textfield; appearance: textfield; }
.newsletter__form input.newsletter__math::-webkit-inner-spin-button, .newsletter__form input.newsletter__math::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 860px) { .newsletter__form input.newsletter__math { flex: 1 1 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 12px 18px; } }
.newsletter__note { flex-basis: 100%; margin: 4px 18px; font-size: .9rem; }
.newsletter__note.is-ok { color: #c9f5dc; }
.newsletter__note.is-err { color: #ffd2c6; }
@media (max-width: 860px) { .newsletter__card { grid-template-columns: 1fr; } .newsletter__form { border-radius: var(--radius); } .newsletter__form .btn { width: 100%; } }

/* footer */
.footer { position: relative; background: var(--ink); color: rgba(255,255,255,.65); padding-top: 170px; font-size: .95rem; }
.footer__wave { position: absolute; top: -1px; left: 0; right: 0; height: 80px; transform: rotate(180deg); }
.footer__wave svg { width: 100%; height: 100%; fill: var(--cream); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer__about { margin: 20px 0; }
.footer__about p { margin-bottom: .6em; }
.footer__title { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 22px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { position: relative; display: inline-block; transition: color .3s, transform .3s var(--ease); }
.footer__links a:hover { color: var(--sun); transform: translateX(6px); }
.footer__contact { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact i { color: var(--sun); margin-top: 5px; width: 16px; }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .3s, color .3s, transform .4s var(--ease); }
.footer__social a:hover { background: var(--sun); color: var(--ink); transform: translateY(-4px) rotate(8deg); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .86rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom p { margin: 0; }
.beat { color: var(--coral); animation: beat 1.2s ease-in-out infinite; display: inline-block; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Detail layout & prose ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); background: var(--sand); }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.chip i { color: var(--leaf); }
.chip--sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.chip--sun i { color: var(--ink); }

.prose { font-size: 1.06rem; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.45rem; }
.prose a { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); height: auto; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--leaf); }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 4px solid var(--sun); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); }
.share strong { margin-right: 6px; color: var(--ink); }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.share a:hover, .share button:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-3px); }

.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.widget { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.widget__title { font-size: 1.2rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.widget__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.widget--dark { background: var(--forest); border-color: transparent; color: rgba(255,255,255,.75); }
.widget--dark .widget__title { color: #fff; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a { display: flex; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 14px; transition: background .3s; }
.side-list a:hover { background: var(--sand); }
.side-list__thumb { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex: none; background: var(--sand); }
.side-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.side-list a:hover .side-list__thumb img { transform: scale(1.1); }
.side-list strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.35; font-weight: 600; }
.side-list small { color: var(--muted); font-size: .8rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 500; transition: color .3s, padding .3s var(--ease); }
.side-links a:hover { color: var(--leaf); padding-left: 6px; }
.side-links a.is-current { color: var(--leaf); font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
    width: 100%; padding: 24px 18px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
    font: inherit; color: var(--ink); transition: border-color .3s, box-shadow .3s; outline: none; resize: vertical;
}
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 19px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), color .3s, font-size .3s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47,122,91,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--leaf); font-weight: 600; }
.field__err { display: block; margin-top: 6px; font-size: .85rem; color: var(--coral); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.6rem; }

.searchbar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); max-width: 420px; width: 100%; transition: border-color .3s, box-shadow .3s; }
.searchbar:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47,122,91,.12); }
.searchbar i { color: var(--muted); }
.searchbar input { flex: 1; border: 0; outline: none; font: inherit; background: transparent; min-width: 0; padding: 8px 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.toolbar__count { color: var(--muted); font-size: .94rem; }
.toolbar__count strong { color: var(--ink); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--forest); }
.filters button.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.is-filtered-out { display: none !important; }

/* accordion */
.accordion { display: grid; gap: 14px; }
.acc { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .4s, border-color .3s; }
.acc.is-open { box-shadow: var(--shadow); border-color: transparent; }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border: 0; background: none; text-align: left; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.acc__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); position: relative; transition: background .3s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon { background: var(--sun); transform: rotate(180deg); }
.acc.is-open .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel .prose { padding: 0 26px 24px; font-size: 1rem; }

/* downloads list */
.files { display: grid; gap: 12px; }
.file { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.file:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.file__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fdecea; color: var(--coral); font-size: 1.3rem; }
.file strong { display: block; color: var(--ink); line-height: 1.35; }
.file small { color: var(--muted); }
.file__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; transition: background .3s, transform .4s var(--ease); }
.file:hover .file__btn { background: var(--sun); color: var(--ink); transform: translateY(2px); }

/* contact */
.contact-cards { display: grid; gap: 14px; margin: 28px 0; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-card__icon { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--mint); color: var(--leaf); font-size: 1.2rem; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.contact-card strong, .contact-card a { color: var(--ink); font-weight: 600; word-break: break-word; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 440px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* pager */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pager__btn { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s; }
a.pager__btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-2px); }
.pager__btn.is-current { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.pager__btn.is-disabled { opacity: .4; }
.pager__btn.is-dots { border: 0; background: none; }

/* empty */
.empty { text-align: center; padding: 64px 24px; max-width: 520px; margin: 0 auto; }
.empty__icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 30px; display: grid; place-items: center; background: var(--mint); color: var(--leaf); font-size: 2.2rem; animation: floatY 5s ease-in-out infinite; }
.empty h3 { font-size: 1.6rem; }
.empty p { color: var(--muted); }

.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: rgba(255,255,255,.85); background: linear-gradient(135deg, hsl(var(--h, 150) 35% 32%), hsl(calc(var(--h, 150) + 40) 45% 22%)); }
.side-list__thumb, .member__photo, .event__thumb, .card__media, .split__img, .article__cover, .program__icon { position: relative; }
.article__cover .media-fallback { position: relative; height: 320px; }

/* flash toast */
.flash { position: fixed; right: 24px; top: 96px; z-index: 300; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100% - 48px)); padding: 16px 18px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .6s var(--ease) both; }
.flash--ok { background: var(--leaf); }
.flash--err { background: var(--coral); }
.flash span { flex: 1; font-weight: 500; }
.flash button { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.flash.is-leaving { animation: toastOut .5s var(--ease) forwards; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 60px 70px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 18, 15, .92); backdrop-filter: blur(6px); }
.modal__stage { position: relative; max-width: min(1200px, 100%); max-height: 100%; transform: scale(.94); transition: transform .5s var(--ease); }
.modal.is-open .modal__stage { transform: none; }
.modal__stage img { max-height: calc(100vh - 140px); width: auto; border-radius: var(--radius); animation: fadeIn .5s var(--ease); }
.modal__stage .modal__video { width: min(1100px, 90vw); aspect-ratio: 16 / 9; }
.modal__stage iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.modal__close, .modal__nav { position: absolute; z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.modal__close:hover, .modal__nav:hover { background: var(--sun); color: var(--ink); }
.modal__close { top: 20px; right: 20px; }
.modal__close:hover { transform: rotate(90deg); }
.modal__nav--prev { left: 14px; }
.modal__nav--next { right: 14px; }
.modal__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); margin: 0; font-weight: 500; }
.modal:not(.has-nav) .modal__nav { display: none; }
@media (max-width: 640px) { .modal { padding: 70px 12px; } .modal__nav { top: auto; bottom: 10px; } }

/* to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s, background .3s; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--leaf); }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--sun); stroke-width: 3; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--p, 0))); stroke-linecap: round; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
/* clip: observe the wrapper (IntersectionObserver ignores fully clipped targets), wipe the child in */
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.3s var(--ease-in-out), transform 1.6s var(--ease); }
[data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-js [data-reveal="clip"] > * { opacity: 1; transform: none; clip-path: none; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
[data-split].is-in .w > span { transform: none; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1) translate(-1.5%, -1%); } }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

@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], [data-reveal] > *, [data-split] .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

@media (max-width: 640px) {
    .split__badge { right: 12px; bottom: 16px; }
    .split__ring, .split__dots { display: none; }
    .hero__arrows { display: none; }
    .section-head--split .btn { align-self: flex-start; }
}
