/* ==========================================================================
   HopeRise — Charity & Fundraising HTML Template (demo)
   Table of contents
   01. Tokens & base        07. Causes            13. Blog
   02. Utilities & buttons  08. Counters          14. Page banner
   03. Top bar & header     09. CTA / video       15. Sidebar & detail
   04. Mobile menu          10. Events            16. Forms & contact
   05. Hero slider          11. Team              17. Footer
   06. Features / about     12. Testimonials      18. Modal, misc, responsive
   ========================================================================== */

/* 01. Tokens & base ------------------------------------------------------- */
:root {
  /* === Brand (set by the style switcher) === */
  --primary: #E8622C;
  --secondary: #17402F;
  --accent: var(--accent);

  /* === Derived brand tones (auto) === */
  --primary-dark: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, var(--surface));
  --green: var(--secondary);
  --green-2: color-mix(in srgb, var(--secondary) 82%, #fff);
  --green-soft: color-mix(in srgb, var(--secondary) 10%, var(--surface));
  --deep: color-mix(in srgb, var(--secondary) 72%, #000);
  --overlay: color-mix(in srgb, var(--secondary) 60%, #04070a);
  --on-dark: color-mix(in srgb, var(--secondary) 12%, #fff);
  --on-dark-muted: color-mix(in srgb, var(--secondary) 30%, #c9d2cd);
  --gold: #C98A12;

  /* === Neutrals (light) === */
  --page: #ffffff;
  --surface: #ffffff;
  --cream: color-mix(in srgb, var(--primary) 5%, #FBF8F3);
  --sand: color-mix(in srgb, var(--primary) 10%, #F1ECE4);
  --ink: #1B211E;
  --body: #505B55;
  --muted: #7C8781;
  --line: color-mix(in srgb, var(--secondary) 10%, #ECE6DC);
  --white: var(--page);

  /* === Shape === */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--secondary) 6%, transparent), 0 12px 32px color-mix(in srgb, var(--secondary) 8%, transparent);
  --shadow-lg: 0 30px 70px color-mix(in srgb, var(--secondary) 16%, transparent);

  /* === Type === */
  --ff-head: "Fraunces", Georgia, serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }

/* 02. Utilities & buttons ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); color: var(--on-dark-muted); }
.bg-green h2, .bg-green h3, .bg-green h4 { color: #fff; }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 12px; }
.mt-4 { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.05rem; }
.tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.tagline .icon { fill: var(--primary); stroke: none; font-size: 1rem; }
.hl { color: var(--primary); font-style: italic; }
.bg-green .hl { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
  white-space: nowrap;
}
.btn .icon { font-size: 1.05rem; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--secondary); }
.btn-light:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: var(--surface); color: var(--green); }
.btn-sm { padding: 11px 20px; font-size: .86rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); font-size: .92rem; }
.link-arrow:hover { color: var(--primary); gap: 10px; }
.link-arrow { transition: gap .25s var(--ease), color .25s; }

.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.check-list .icon { color: #fff; background: var(--primary); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; stroke-width: 3; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 03. Top bar & header ---------------------------------------------------- */
.topbar { background: var(--green); color: var(--on-dark-muted); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 20px; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info .icon { color: var(--accent); }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.socials .icon { font-size: .95rem; }

.header { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 30px color-mix(in srgb, var(--secondary) 10%, transparent); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-size: 1.65rem; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.logo:hover { color: var(--green); }
.logo-mark { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary); display: grid; place-items: center; color: #fff; transform: rotate(-6deg); transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(0); }
.logo-mark .icon { font-size: 1.4rem; fill: #fff; stroke: none; }
.logo span.dot { color: var(--primary); }
.footer .logo { color: #fff; }

.nav > ul { display: flex; gap: 6px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px;
  font-weight: 700; font-size: .95rem; color: var(--ink); border-radius: var(--radius-sm);
}
.nav > ul > li > a .icon { font-size: .8rem; transition: transform .3s; }
.nav > ul > li > a:hover, .nav > ul > li > a.active { color: var(--primary); }
.nav > ul > li:hover > a .icon { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
  border-top: 3px solid var(--primary);
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--ink); }
.submenu a:hover, .submenu a.active { background: var(--primary-soft); color: var(--primary); padding-left: 20px; }
.submenu a { transition: all .25s; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-call { display: flex; align-items: center; gap: 12px; }
.header-call .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; }
.header-call small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.header-call strong { color: var(--ink); font-size: .98rem; white-space: nowrap; }
.header-call small { white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 0; background: var(--green); color: #fff; cursor: pointer; place-items: center; font-size: 1.3rem; }

/* 04. Mobile menu --------------------------------------------------------- */
.offcanvas { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.offcanvas.open { visibility: visible; }
.offcanvas-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--overlay) 55%, transparent); opacity: 0; transition: opacity .3s; }
.offcanvas.open .offcanvas-backdrop { opacity: 1; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface);
  padding: 26px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease);
}
.offcanvas.open .offcanvas-panel { transform: none; }
.offcanvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.offcanvas-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav button.sub-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0;
  font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left;
}
.mobile-nav .m-sub { display: none; padding: 0 0 10px 14px; }
.mobile-nav .m-sub.open { display: block; }
.mobile-nav .m-sub li { border: 0; }
.mobile-nav .m-sub a { padding: 8px 0; font-weight: 600; color: var(--body); }
.mobile-nav a.active { color: var(--primary); }
.offcanvas .contact-mini { margin-top: 26px; display: grid; gap: 12px; font-size: .92rem; }
.offcanvas .contact-mini span { display: flex; gap: 10px; align-items: center; }
.offcanvas .contact-mini .icon { color: var(--primary); }

/* 05. Hero slider --------------------------------------------------------- */
.hero { position: relative; height: min(88vh, 820px); min-height: 600px; overflow: hidden; background: var(--green); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); transition: transform 7s linear; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--overlay) 88%, transparent) 0%, color-mix(in srgb, var(--overlay) 60%, transparent) 45%, color-mix(in srgb, var(--overlay) 10%, transparent) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; color: var(--on-dark); }
.hero-content > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content > *:nth-child(2) { transition-delay: .15s; }
.hero-slide.active .hero-content > *:nth-child(3) { transition-delay: .3s; }
.hero-slide.active .hero-content > *:nth-child(4) { transition-delay: .45s; }
.hero .tagline { color: var(--accent); }
.hero .tagline .icon { fill: var(--accent); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { color: var(--accent); }
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-nav { position: absolute; z-index: 5; right: 40px; bottom: 50%; transform: translateY(50%); display: flex; flex-direction: column; gap: 12px; }
.hero-nav button {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem;
  transition: background .3s, border-color .3s;
}
.hero-nav button:hover { background: var(--primary); border-color: var(--primary); }
.hero-dots { position: absolute; z-index: 5; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: var(--radius-pill); border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .35s var(--ease), background .3s; padding: 0; }
.hero-dots button.active { width: 36px; background: var(--primary); }

.hero-shape { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; line-height: 0; }
.hero-shape svg { width: 100%; height: 80px; }

/* 06. Features / about ---------------------------------------------------- */
.features { position: relative; z-index: 6; margin-top: -90px; }
.feature-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; transition: transform .4s var(--ease);
}
.feature-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature-card:hover { transform: translateY(-8px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .f-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 2rem;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; transition: background .35s, color .35s, transform .4s var(--ease);
}
.feature-card:nth-child(2) .f-icon { background: var(--green-soft); color: var(--green-2); }
.feature-card:nth-child(3) .f-icon { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); color: var(--gold); }
.feature-card:hover .f-icon { background: var(--primary); color: #fff; transform: rotateY(180deg); }
.feature-card p { margin-bottom: 18px; }
.feature-card .num { position: absolute; right: 24px; top: 18px; font-family: var(--ff-head); font-size: 3.6rem; font-weight: 800; color: var(--cream); line-height: 1; }

.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; padding: 0 60px 70px 0; }
.about-media .img-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 700/760; }
.about-media .img-main img, .about-media .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-media .img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 8px solid var(--surface); box-shadow: var(--shadow-lg); }
.exp-badge {
  position: absolute; left: -24px; bottom: 110px; background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 22px 26px; text-align: center; box-shadow: 0 18px 40px color-mix(in srgb, var(--primary) 35%, transparent); animation: floaty 5s ease-in-out infinite;
}
.exp-badge strong { display: block; font-family: var(--ff-head); font-size: 2.6rem; line-height: 1; }
.exp-badge span { font-size: .85rem; font-weight: 600; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.about-text .lead { font-size: 1.1rem; color: var(--ink); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 30px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-point { display: flex; gap: 14px; }
.about-point .ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius); display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1.4rem; }
.about-point h4 { margin-bottom: 4px; }
.about-point p { margin: 0; font-size: .92rem; }
.about-foot { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.signature strong { display: block; color: var(--ink); font-family: var(--ff-head); font-size: 1.1rem; }
.signature small { color: var(--muted); }

/* 07. Causes -------------------------------------------------------------- */
.cause-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.cause-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cause-media { position: relative; aspect-ratio: 800/540; overflow: hidden; }
.cause-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cause-card:hover .cause-media img { transform: scale(1.08); }
.cause-cat { position: absolute; left: 20px; top: 20px; background: var(--surface); color: var(--green); font-size: .78rem; font-weight: 800; padding: 7px 14px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .08em; }
.cause-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.cause-body h3 a:hover { color: var(--primary); }
.cause-body p { font-size: .95rem; }
.progress-wrap { margin: auto 0 22px; padding-top: 6px; }
.progress-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--sand); overflow: visible; position: relative; }
.progress-bar { height: 100%; width: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.6s var(--ease); position: relative; }
.progress-bar::after { content: ""; position: absolute; right: -6px; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--primary); transform: translateY(-50%); }
.cause-stats { display: flex; justify-content: space-between; gap: 10px; padding: 16px 0 0; margin-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; }
.cause-stats strong { display: block; color: var(--ink); font-size: 1.05rem; }
.cause-card .btn { margin-top: 22px; align-self: flex-start; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 46px; }
.filter-bar button { padding: 11px 22px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .25s; color: var(--ink); }
.filter-bar button:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cause-item.hide { display: none; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.pagination a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.pagination a.active, .pagination a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 08. Counters ------------------------------------------------------------ */
.counter-band { position: relative; overflow: hidden; }
.counter-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 90px solid rgba(255,255,255,.03); left: -160px; top: -200px; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.counter { text-align: center; padding: 10px; }
.counter .c-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--accent); font-size: 2rem; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.counter strong { display: block; font-family: var(--ff-head); font-size: clamp(2.4rem, 4vw, 3.3rem); color: #fff; line-height: 1.1; }
.counter span { font-weight: 600; }
.counter + .counter { border-left: 1px solid rgba(255,255,255,.1); }

/* 09. CTA / video --------------------------------------------------------- */
.cta-video { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 460px; display: grid; place-items: center; text-align: center; color: #fff; padding: 80px 24px; }
.cta-video .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--overlay) 55%, transparent), color-mix(in srgb, var(--overlay) 85%, transparent)); }
.cta-video .inner { position: relative; z-index: 2; max-width: 720px; }
.cta-video h2 { color: #fff; }
.play-btn {
  width: 96px; height: 96px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; margin: 0 auto 30px; font-size: 1.8rem; position: relative;
}
.play-btn::before, .play-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: ripple 2.4s ease-out infinite; }
.play-btn::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.play-btn .icon { fill: #fff; stroke: none; margin-left: 4px; }

.donate-banner { background: var(--primary); border-radius: var(--radius-xl); padding: 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; color: color-mix(in srgb, var(--primary) 8%, #fff); position: relative; overflow: hidden; }
.donate-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); }
.donate-banner h2 { color: #fff; margin-bottom: 12px; }
.donate-banner .actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 2; }

/* 10. Events -------------------------------------------------------------- */
.event-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 42% 1fr; transition: transform .4s var(--ease), box-shadow .4s; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-media { position: relative; overflow: hidden; min-height: 240px; }
.event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.08); }
.event-date { position: absolute; left: 18px; top: 18px; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 10px 14px; text-align: center; line-height: 1.1; }
.event-date strong { display: block; font-family: var(--ff-head); font-size: 1.8rem; }
.event-date span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event-body { padding: 30px; display: flex; flex-direction: column; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; margin-bottom: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .icon { color: var(--primary); }
.event-body p { font-size: .95rem; }
.event-body .link-arrow { margin-top: auto; }

.featured-event { display: grid; grid-template-columns: 1fr 1fr; background: var(--green); border-radius: var(--radius-xl); overflow: hidden; color: var(--on-dark-muted); margin-bottom: 60px; }
.featured-event .media { position: relative; min-height: 380px; }
.featured-event .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-event .body { padding: 56px; }
.featured-event h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.countdown { display: flex; gap: 14px; margin: 28px 0 32px; flex-wrap: wrap; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); width: 88px; padding: 14px 6px; text-align: center; }
.countdown strong { display: block; font-family: var(--ff-head); font-size: 2rem; color: #fff; line-height: 1.1; }
.countdown span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

/* 11. Team ---------------------------------------------------------------- */
.team-card { text-align: center; }
.team-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 400/460; margin-bottom: 22px; }
.team-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-card:hover .team-media img { transform: scale(1.06); }
.team-media .socials { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; transition: all .4s var(--ease); background: var(--surface); padding: 8px; border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.team-media .socials a { background: var(--cream); color: var(--green); }
.team-media .socials a:hover { background: var(--primary); color: #fff; }
.team-card:hover .team-media .socials { opacity: 1; transform: translate(-50%, 0); }
.team-card h4 { margin-bottom: 2px; font-size: 1.25rem; }
.team-card span { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* 12. Testimonials -------------------------------------------------------- */
.testi-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: center; }
.testi-slider { position: relative; background: var(--surface); border-radius: var(--radius-xl); padding: 56px; box-shadow: var(--shadow-lg); }
.testi-slider .quote-ic { position: absolute; right: 44px; top: -30px; width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.testi-slider .quote-ic .icon { fill: #fff; stroke: none; }
.testi-track { display: grid; }
.testi { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(30px); transition: all .6s var(--ease); }
.testi.active { opacity: 1; visibility: visible; transform: none; }
.stars { color: #F2A51A; display: flex; gap: 3px; margin-bottom: 16px; }
.stars .icon { fill: currentColor; stroke: none; }
.testi p { font-size: 1.2rem; color: var(--ink); font-family: var(--ff-head); font-weight: 400; line-height: 1.6; margin-bottom: 28px; }
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; color: var(--ink); font-size: 1.05rem; }
.testi-author small { color: var(--primary); font-weight: 600; }
.testi-controls { display: flex; gap: 10px; margin-top: 30px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 1.1rem; transition: all .25s; }
.round-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.testi-stat { display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.avatars { display: flex; }
.avatars img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--cream); margin-left: -14px; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }

.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center; }
.partners img { margin: 0 auto; opacity: .7; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s; height: 40px; width: auto; }
.partners img:hover { opacity: 1; filter: none; transform: translateY(-3px); }

/* 13. Blog ---------------------------------------------------------------- */
.post-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-media { position: relative; aspect-ratio: 800/520; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.08); }
.post-date { position: absolute; right: 18px; bottom: -1px; background: var(--surface); border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 8px 14px 4px; text-align: center; line-height: 1.1; color: var(--ink); }
.post-date strong { display: block; font-family: var(--ff-head); font-size: 1.5rem; color: var(--primary); }
.post-date span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 18px; font-size: .84rem; margin-bottom: 12px; flex-wrap: wrap; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { color: var(--primary); }
.post-body h3 { font-size: 1.28rem; }
.post-body h3 a:hover { color: var(--primary); }
.post-body .link-arrow { margin-top: auto; }

/* 14. Page banner --------------------------------------------------------- */
.page-banner { position: relative; padding: 120px 0 130px; text-align: center; color: var(--on-dark); overflow: hidden; background: var(--green); }
.page-banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .6; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--overlay) 70%, transparent), color-mix(in srgb, var(--overlay) 85%, transparent)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 14px; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1); padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--accent); }
.breadcrumb .icon { font-size: .8rem; }

/* 15. Sidebar & detail ---------------------------------------------------- */
.with-sidebar { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.sidebar { display: grid; gap: 30px; position: sticky; top: 110px; }
.widget { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; }
.widget h4 { font-size: 1.25rem; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); position: relative; }
.widget h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--primary); }
.search-box { display: flex; background: var(--surface); border-radius: var(--radius-pill); padding: 6px; }
.search-box input { flex: 1; border: 0; outline: 0; padding: 0 16px; background: transparent; min-width: 0; }
.search-box button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cat-list li a { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 8px; font-weight: 600; color: var(--ink); transition: all .25s; }
.cat-list li a:hover { background: var(--primary); color: #fff; }
.cat-list li a span { color: var(--muted); }
.cat-list li a:hover span { color: #fff; }
.mini-post { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.mini-post:last-child { margin-bottom: 0; }
.mini-post img { width: 84px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.mini-post small { display: flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .8rem; }
.mini-post h5 { font-family: var(--ff-head); font-size: 1rem; margin: 2px 0 0; line-height: 1.35; }
.mini-post h5 a:hover { color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--surface); padding: 7px 16px; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; color: var(--ink); }
.tags a:hover { background: var(--primary); color: #fff; }
.widget-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 44px 30px; color: #fff; text-align: center; background: var(--green); }
.widget-cta .bg { position: absolute; inset: 0; background-size: cover; opacity: .35; }
.widget-cta > * { position: relative; }
.widget-cta h3 { color: #fff; }

.detail-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/9; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-progress { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; margin: 26px 0 34px; }
.detail-progress .cause-stats { border: 0; padding-top: 18px; }
.detail-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.detail-content h3 { margin-top: 34px; }
blockquote { margin: 30px 0; padding: 30px 34px; border-left: 4px solid var(--primary); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--ff-head); font-size: 1.2rem; color: var(--ink); }
blockquote cite { display: block; margin-top: 12px; font-family: var(--ff-body); font-style: normal; font-size: .9rem; font-weight: 700; color: var(--primary); }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.detail-gallery img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

.donate-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; margin-top: 40px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.amounts button { padding: 14px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; transition: all .2s; color: var(--ink); }
.amounts button:hover { border-color: var(--primary); color: var(--primary); }
.amounts button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.freq { display: inline-flex; background: var(--cream); border-radius: var(--radius-pill); padding: 5px; margin-bottom: 22px; }
.freq button { border: 0; background: transparent; padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 700; cursor: pointer; color: var(--body); }
.freq button.active { background: var(--green); color: #fff; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 22px; }
.pay-methods label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; }
.pay-methods input { accent-color: var(--primary); }
.donor-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.donor-list img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.donor-list div { flex: 1; }
.donor-list strong { color: var(--ink); display: block; }
.donor-list small { color: var(--muted); }
.donor-list .amt { font-weight: 800; color: var(--primary); }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 36px; }
.share-row .socials a { background: var(--cream); color: var(--green); }
.share-row .socials a:hover { background: var(--primary); color: #fff; }

/* Tabs & accordion */
.tabs-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs-nav button { padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--ink); transition: all .25s; }
.tabs-nav button.active { background: var(--green); border-color: var(--green); color: #fff; }
.tab-pane { display: none; animation: fadeUp .5s var(--ease); }
.tab-pane.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.accordion-item { background: var(--surface); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 22px 26px; border: 0; background: transparent; cursor: pointer; font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.accordion-btn .pm { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s, background .3s, color .3s; }
.accordion-item.open .accordion-btn { color: var(--primary); }
.accordion-item.open .pm { transform: rotate(45deg); background: var(--primary); color: #fff; }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { padding: 0 26px 22px; margin: 0; }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }

/* 16. Forms & contact ----------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 8px; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); outline: 0;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.field.error input, .field.error textarea, .field.error select { border-color: #D93B3B; }
.field .err { display: none; color: #D93B3B; font-size: .82rem; margin-top: 6px; font-weight: 600; }
.field.error .err { display: block; }
.form-success { display: none; align-items: center; gap: 12px; margin-top: 18px; background: var(--green-soft); color: var(--green); padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-success.show { display: flex; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: 38px 30px; text-align: center; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.contact-card:hover { transform: translateY(-8px); }
.contact-card .ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 1.8rem; background: var(--primary-soft); color: var(--primary); transition: all .35s; }
.contact-card:hover .ic { background: var(--primary); color: #fff; }
.contact-card p { margin: 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--sand); position: relative; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.contact-form-box { background: var(--cream); border-radius: var(--radius-lg); padding: 44px; }

.newsletter { background: var(--primary); border-radius: var(--radius-xl); padding: 44px 50px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; color: color-mix(in srgb, var(--primary) 8%, #fff); margin-bottom: -80px; position: relative; z-index: 3; }
.newsletter h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.newsletter form { display: flex; background: var(--surface); border-radius: var(--radius-pill); padding: 6px; }
.newsletter input { flex: 1; border: 0; outline: 0; padding: 0 22px; background: transparent; min-width: 0; color: var(--ink); }
.newsletter .form-success { grid-column: 1 / -1; margin: 0; }

/* 17. Footer -------------------------------------------------------------- */
.footer { background: var(--deep); color: var(--on-dark-muted); padding-top: 170px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 70px; }
.footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: 26px; }
.footer p { margin: 22px 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .25s; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-links .icon { font-size: .8rem; color: var(--primary); }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 18px; }
.footer-contact .ic { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.footer-contact strong { display: block; color: #fff; font-weight: 600; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.footer-gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; display: block; }
.footer-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.footer-gallery a:hover img { transform: scale(1.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--accent); }
.footer .socials a { background: rgba(255,255,255,.06); }

/* 18. Modal, misc, responsive -------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--overlay) 65%, transparent); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog { position: relative; background: var(--surface); border-radius: var(--radius-xl); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 40px; transform: translateY(30px) scale(.97); opacity: 0; transition: all .35s var(--ease); }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.modal-close:hover { background: var(--primary); color: #fff; }
.modal h3 { font-size: 1.7rem; margin-bottom: 6px; }
.modal .amounts { grid-template-columns: repeat(4, 1fr); }
.modal .custom-amt { position: relative; margin-bottom: 18px; }
.modal .custom-amt span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink); }
.modal .custom-amt input { padding-left: 36px; }
.video-dialog { width: min(900px, 100%); padding: 0; background: #000; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; text-align: center; }
.video-dialog .modal-close { z-index: 2; }
.video-placeholder { padding: 30px; }
.video-placeholder .icon { font-size: 3rem; color: var(--primary); margin-bottom: 12px; }
.video-placeholder h3 { color: #fff; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-top: 14px; }

.back-top { position: fixed; right: 26px; bottom: 26px; z-index: 800; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s var(--ease); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--green); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-grid a { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-grid a::after { content: "+"; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 80%, transparent); color: #fff; font-size: 3rem; display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid a:hover img { transform: scale(1.1); }

.mvv-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.mvv-card:hover { transform: translateY(-8px); }
.mvv-card .f-icon { width: 64px; height: 64px; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 1.7rem; background: var(--green); color: #fff; margin-bottom: 20px; }
.mvv-card:nth-child(2) .f-icon { background: var(--primary); }
.mvv-card:nth-child(3) .f-icon { background: var(--gold); }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.faq-media { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.faq-media img { width: 100%; aspect-ratio: 700/520; object-fit: cover; }
.faq-media .help { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--surface); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.faq-media .help .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.faq-media .help small { color: var(--muted); display: block; }
.faq-media .help strong { color: var(--ink); font-size: 1.1rem; }

@media (max-width: 1339px) {
  .header-call { display: none; }
}
@media (max-width: 1199px) {
  .nav > ul > li > a { padding: 10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr 320px; gap: 36px; }
}
@media (max-width: 991px) {
  .section { padding: 80px 0; }
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .topbar-info span.addr { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .testi-wrap, .faq-wrap, .contact-wrap, .with-sidebar, .featured-event, .donate-banner, .newsletter { grid-template-columns: 1fr; }
  .about-wrap { gap: 50px; }
  .donate-banner .actions { justify-content: flex-start; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .counter:nth-child(3) { border-left: 0; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .event-card { grid-template-columns: 1fr; }
  .event-media { min-height: 0; aspect-ratio: 800/480; }
  .hero-nav { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .topbar { display: none; }
  .header .container { height: 74px; }
  .grid-2, .grid-3, .grid-4, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 620px; height: 92vh; }
  .hero-slide::after { background: linear-gradient(180deg, color-mix(in srgb, var(--overlay) 60%, transparent), color-mix(in srgb, var(--overlay) 90%, transparent)); }
  .hero-dots { bottom: 100px; }
  .features { margin-top: -60px; }
  .about-media { padding: 0 30px 50px 0; }
  .exp-badge { left: 10px; bottom: 60px; padding: 16px 18px; }
  .exp-badge strong { font-size: 2rem; }
  .about-points { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .counter + .counter { border-left: 0; }
  .testi-slider, .contact-form-box, .donate-box, .donate-banner, .featured-event .body { padding: 32px 24px; }
  .newsletter { padding: 32px 24px; }
  .newsletter form { flex-direction: column; background: transparent; gap: 10px; padding: 0; }
  .newsletter input { background: var(--surface); border-radius: var(--radius-pill); padding: 16px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .modal-dialog { padding: 30px 22px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .page-banner { padding: 80px 0 90px; }
  .countdown div { width: 72px; }
  .detail-gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   19. Modern layer (v2)
   ========================================================================== */
html { background: var(--page); }
body { background: var(--page); transition: background-color .4s var(--ease), color .4s var(--ease); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--secondary) 45%, var(--cream)); border-radius: 10px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; }

/* Pill taglines */
.tagline { background: var(--primary-soft); padding: 7px 16px 7px 12px; border-radius: var(--radius-pill); font-size: .76rem; }
.bg-green .tagline, .hero .tagline, .cta-video .tagline, .featured-event .tagline { background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }

/* Buttons: shine sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 75%, var(--accent))); }

/* Cards: hairline borders, softer depth */
.feature-card, .cause-card, .event-card, .post-card, .mvv-card, .contact-card, .accordion-item, .testi-slider, .team-media {
  border: 1px solid var(--line);
}
.cause-card:hover, .event-card:hover, .post-card:hover, .mvv-card:hover, .contact-card:hover, .feature-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.cause-cat { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 85%, transparent); }

/* Header */
.header { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.header .container { transition: height .35s var(--ease); }
.header.scrolled .container { height: 74px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; transition: all .3s var(--ease); }
.icon-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(-12deg); }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }

/* Scroll progress + preloader */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1400; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--accent)); pointer-events: none; }
.preloader { position: fixed; inset: 0; z-index: 2000; background: var(--page); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-mark { width: 74px; height: 74px; border-radius: 22px; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 2rem; animation: beat 1.1s ease-in-out infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); }
.preloader .pl-mark .icon { fill: #fff; stroke: none; }
@keyframes beat { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 40% { transform: scale(1.12); box-shadow: 0 0 0 22px transparent; } }

/* Hero upgrades */
.hero-slide::after { background: linear-gradient(95deg, color-mix(in srgb, var(--overlay) 92%, transparent) 0%, color-mix(in srgb, var(--overlay) 70%, transparent) 45%, color-mix(in srgb, var(--overlay) 15%, transparent) 100%); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.05; }
.hero h1 em { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--primary) 60%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-blob { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.hero-blob.b1 { width: 420px; height: 420px; background: var(--primary); left: -120px; top: -80px; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--accent); right: 18%; bottom: -120px; animation-delay: -6s; opacity: .3; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.hero-nav { top: auto; bottom: 110px; right: 40px; transform: none; flex-direction: row; }
.hero-shape path { fill: var(--page); }

/* Marquee band */
.marquee { overflow: hidden; background: var(--secondary); padding: 26px 0; transform: rotate(-1.5deg); margin: 20px -20px 0; box-shadow: var(--shadow-lg); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font-family: var(--ff-head); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; color: #fff; white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, #fff 70%, transparent); }
.marquee .icon { color: var(--accent); fill: var(--accent); stroke: none; font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap { overflow: hidden; padding: 30px 0 10px; }

/* Counter band: dotted texture */
.counter-band { background-image: radial-gradient(color-mix(in srgb, #fff 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.counter strong { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer: subtle glow */
.footer { background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), var(--deep); }

/* ---------- Font pairs ---------- */
[data-font="modern"] { --ff-head: "Outfit", system-ui, sans-serif; }
[data-font="minimal"] { --ff-head: "Plus Jakarta Sans", system-ui, sans-serif; }
[data-font="modern"] .hl, [data-font="minimal"] .hl { font-style: normal; }
[data-font="modern"] h1, [data-font="modern"] h2, [data-font="minimal"] h1, [data-font="minimal"] h2 { font-weight: 800; letter-spacing: -.035em; }

/* ---------- Corner styles ---------- */
[data-radius="round"] { --radius-sm: 16px; --radius: 22px; --radius-lg: 32px; --radius-xl: 44px; }
[data-radius="sharp"] { --radius-sm: 2px; --radius: 4px; --radius-lg: 6px; --radius-xl: 8px; --radius-pill: 6px; }
[data-radius="sharp"] .logo-mark { border-radius: 4px; }

/* ---------- Boxed layout ---------- */
[data-layout="boxed"] { background: color-mix(in srgb, var(--secondary) 12%, var(--page)); background-image: radial-gradient(color-mix(in srgb, var(--secondary) 20%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
[data-layout="boxed"] body { max-width: 1400px; margin: 0 auto; box-shadow: 0 0 80px color-mix(in srgb, var(--secondary) 20%, transparent); }

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --page: color-mix(in srgb, var(--secondary) 22%, #07090B);
  --surface: color-mix(in srgb, var(--secondary) 26%, #0E1215);
  --cream: color-mix(in srgb, var(--secondary) 30%, #0A0D10);
  --sand: color-mix(in srgb, var(--secondary) 40%, #1E2429);
  --ink: #F2F5F3;
  --body: #B9C3BE;
  --muted: #8E9A94;
  --line: color-mix(in srgb, var(--secondary) 35%, #2A3136);
  --deep: color-mix(in srgb, var(--secondary) 30%, #040506);
  --green-soft: color-mix(in srgb, var(--secondary) 45%, var(--surface));
  --primary-soft: color-mix(in srgb, var(--primary) 18%, var(--surface));
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.28);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.45);
}
[data-theme="dark"] .bg-green, [data-theme="dark"] .topbar, [data-theme="dark"] .featured-event, [data-theme="dark"] .widget-cta, [data-theme="dark"] .marquee { background-color: color-mix(in srgb, var(--secondary) 70%, #0b0f12); }
[data-theme="dark"] .logo, [data-theme="dark"] .link-arrow, [data-theme="dark"] .cause-cat, [data-theme="dark"] .share-row .socials a, [data-theme="dark"] .team-media .socials a { color: var(--ink); }
[data-theme="dark"] .link-arrow:hover { color: var(--primary); }
[data-theme="dark"] .about-point .ic, [data-theme="dark"] .mvv-card:nth-child(1) .f-icon, [data-theme="dark"] .btn-green, [data-theme="dark"] .menu-toggle, [data-theme="dark"] .freq button.active, [data-theme="dark"] .tabs-nav button.active { background: color-mix(in srgb, var(--secondary) 55%, #3a4a44); }
[data-theme="dark"] .form-success { color: var(--ink); }
[data-theme="dark"] .partners img { filter: grayscale(1) invert(1) brightness(1.6); opacity: .55; }
[data-theme="dark"] .partners img:hover { filter: invert(1); opacity: .9; }
[data-theme="dark"] img[src*="assets/img/"]:not(.partners img) { filter: brightness(.9) saturate(.95); }
[data-theme="dark"] .feature-card .num { color: color-mix(in srgb, var(--ink) 7%, transparent); }
[data-theme="dark"] .btn-outline:hover { background: var(--ink); color: var(--page); }

/* ---------- Style switcher ---------- */
.switcher { position: fixed; top: 50%; right: 0; z-index: 1250; transform: translate(100%, -50%); transition: transform .45s var(--ease); width: 330px; max-height: min(90vh, 760px); display: flex; }
.switcher.open { transform: translate(0, -50%); }
.sw-toggle { position: absolute; left: -52px; top: 40px; width: 52px; height: 52px; border: 0; border-radius: 14px 0 0 14px; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; box-shadow: -8px 10px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.sw-toggle .icon { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sw-panel { flex: 1; background: var(--surface); color: var(--body); border: 1px solid var(--line); border-right: 0; border-radius: 20px 0 0 20px; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 24px 22px; }
.sw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sw-head h5 { font-family: var(--ff-body); font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--ink); }
.sw-panel > p { font-size: .82rem; margin: 0 0 16px; color: var(--muted); }
.sw-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sw-group { padding: 16px 0; border-top: 1px solid var(--line); }
.sw-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sw-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw-swatch { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; cursor: pointer; position: relative; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 3px var(--surface); transition: transform .2s, border-color .2s; }
.sw-swatch:hover { transform: translateY(-2px); }
.sw-swatch.active { border-color: var(--ink); }
.sw-swatch.active::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.2); }
.sw-swatch span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sw-swatches { row-gap: 28px; margin-bottom: 8px; }
.sw-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw-custom label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.sw-custom input[type=color] { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.sw-custom input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.sw-custom input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.sw-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--cream); border-radius: 12px; padding: 4px; gap: 4px; }
.sw-seg button { border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-size: .8rem; font-weight: 700; color: var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s; }
.sw-seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sw-seg button .icon { font-size: .95rem; }
.sw-font-prev { font-size: 1.05rem; line-height: 1; }
.sw-reset { width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sw-reset:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 767px) { .switcher { width: 300px; } .sw-toggle { width: 44px; height: 44px; left: -44px; font-size: 1.2rem; } }

/* Fallback for browsers without color-mix() (pre-2023) — default palette only */
html.no-colormix {
  --primary-dark: #C94E1C; --primary-soft: #FDE8DD; --green-2: #235C44; --green-soft: #E3EEE8; --deep: #0F2B20;
  --overlay: #0C2017; --on-dark: #E6EFE9; --on-dark-muted: #CFE0D6; --cream: #FBF5EC; --sand: #F3E7D6; --line: #E8DFD1;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-blob, .sw-toggle .icon, .preloader .pl-mark { animation: none; }
}

/* Theme-aware photography: re-tint large background images with the active brand colours */
.hero-bg::after, .page-banner .bg::after, .cta-video .bg::after, .widget-cta .bg::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: color;
  background: linear-gradient(120deg, var(--secondary) 10%, var(--primary) 90%);
}
.page-banner .bg, .cta-video .bg, .widget-cta .bg { isolation: isolate; }
.header-call { display: none; }
@media (min-width: 1480px) { .header-call { display: flex; } }
[data-theme="dark"] .feature-card:nth-child(2) .f-icon { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.sw-seg button { min-width: 0; white-space: nowrap; font-size: .76rem; padding: 9px 4px; gap: 5px; }
.sw-seg .sw-font-prev { font-size: .95rem; }

/* ==========================================================================
   20. v3 — extended colour system & modern effects
   ========================================================================== */
:root {
  --tertiary: #F4B400;
  /* Multi-colour category palette (causes, steps, bento) */
  --c1: #3B82F6; --c2: #F59E0B; --c3: #F97316; --c4: #EF4444;
  --c5: #22C55E; --c6: #A855F7; --c7: #EC4899; --c8: #14B8A6;
  --grad: linear-gradient(135deg, var(--primary), var(--tertiary));
}
[data-theme="dark"] { --c1: #60A5FA; --c2: #FBBF24; --c3: #FB923C; --c4: #F87171; --c5: #4ADE80; --c6: #C084FC; --c7: #F472B6; --c8: #2DD4BF; }

/* ---------- Accent styles ---------- */
[data-accent="gradient"] .btn-primary, [data-accent="vivid"] .btn-primary,
[data-accent="gradient"] .progress-bar, [data-accent="vivid"] .progress-bar,
[data-accent="gradient"] .logo-mark, [data-accent="vivid"] .logo-mark,
[data-accent="gradient"] .event-date, [data-accent="vivid"] .event-date,
[data-accent="gradient"] .filter-bar button.active, [data-accent="vivid"] .filter-bar button.active,
[data-accent="gradient"] .donate-banner, [data-accent="vivid"] .donate-banner,
[data-accent="gradient"] .newsletter, [data-accent="vivid"] .newsletter,
[data-accent="gradient"] .exp-badge, [data-accent="vivid"] .exp-badge,
[data-accent="gradient"] .sw-toggle, [data-accent="vivid"] .sw-toggle,
[data-accent="gradient"] .scroll-progress, [data-accent="vivid"] .scroll-progress { background: var(--grad); }
[data-accent="gradient"] .hl, [data-accent="vivid"] .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
[data-accent="gradient"] .tagline, [data-accent="vivid"] .tagline { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), color-mix(in srgb, var(--tertiary) 14%, var(--surface))); }
[data-accent="vivid"] .btn-primary, [data-accent="vivid"] .donate-banner, [data-accent="vivid"] .newsletter, [data-accent="vivid"] .progress-bar {
  background: linear-gradient(120deg, var(--primary), var(--tertiary), var(--primary)); background-size: 220% 100%; animation: flow 6s ease-in-out infinite;
}
[data-accent="vivid"] .btn-primary { box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--tertiary) 30%, transparent); }
[data-accent="vivid"] .cause-card:hover, [data-accent="vivid"] .post-card:hover, [data-accent="vivid"] .event-card:hover { box-shadow: 0 24px 60px color-mix(in srgb, var(--primary) 22%, transparent); }
@keyframes flow { 50% { background-position: 100% 0; } }

/* ---------- Section background styles ---------- */
[data-bg="mesh"] .bg-cream {
  background:
    radial-gradient(40% 50% at 8% 12%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(35% 45% at 92% 20%, color-mix(in srgb, var(--tertiary) 16%, transparent), transparent 70%),
    radial-gradient(45% 50% at 60% 100%, color-mix(in srgb, var(--c1) 10%, transparent), transparent 70%),
    var(--cream);
}
[data-bg="dots"] .bg-cream { background-color: var(--cream); background-image: radial-gradient(color-mix(in srgb, var(--primary) 22%, transparent) 1.2px, transparent 1.3px); background-size: 24px 24px; }
[data-bg="waves"] .bg-cream { background-color: var(--cream); background-image: linear-gradient(color-mix(in srgb, var(--secondary) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--secondary) 7%, transparent) 1px, transparent 1px); background-size: 44px 44px; }

/* ---------- Colourful category chips & feature icons ---------- */
.cause-item[data-cat="water"] { --cc: var(--c1); }
.cause-item[data-cat="education"] { --cc: var(--c2); }
.cause-item[data-cat="food"] { --cc: var(--c3); }
.cause-item[data-cat="health"] { --cc: var(--c4); }
.cause-item[data-cat="environment"] { --cc: var(--c5); }
.cause-cat { display: inline-flex; align-items: center; gap: 7px; color: var(--cc, var(--secondary)); }
.cause-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc, var(--primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc, var(--primary)) 25%, transparent); }
.cause-card .progress-bar { background: linear-gradient(90deg, var(--cc, var(--primary)), color-mix(in srgb, var(--cc, var(--primary)) 55%, var(--tertiary))); }
.cause-card .progress-bar::after { border-color: var(--cc, var(--primary)); }
.cause-card .btn-outline:hover { background: var(--cc, var(--ink)); border-color: var(--cc, var(--ink)); }
.feature-card:nth-child(1) .f-icon { background: color-mix(in srgb, var(--c3) 14%, var(--surface)); color: var(--c3); }
.feature-card:nth-child(2) .f-icon { background: color-mix(in srgb, var(--c1) 14%, var(--surface)); color: var(--c1); }
.feature-card:nth-child(3) .f-icon { background: color-mix(in srgb, var(--c6) 14%, var(--surface)); color: var(--c6); }
.feature-card:nth-child(1)::before { background: var(--c3); } .feature-card:nth-child(2)::before { background: var(--c1); } .feature-card:nth-child(3)::before { background: var(--c6); }
.feature-card:hover .f-icon { color: #fff; }
.feature-card:nth-child(1):hover .f-icon { background: var(--c3); } .feature-card:nth-child(2):hover .f-icon { background: var(--c1); } .feature-card:nth-child(3):hover .f-icon { background: var(--c6); }
.counter:nth-child(1) .c-ic { color: var(--c2); } .counter:nth-child(2) .c-ic { color: var(--c7); } .counter:nth-child(3) .c-ic { color: var(--c5); } .counter:nth-child(4) .c-ic { color: var(--c8); }
.counter .c-ic { border-color: color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); }
.mvv-card:nth-child(1) .f-icon { background: var(--c1); } .mvv-card:nth-child(2) .f-icon { background: var(--c7); } .mvv-card:nth-child(3) .f-icon { background: var(--c2); }
.contact-card:nth-child(1) { --cc: var(--c1); } .contact-card:nth-child(2) { --cc: var(--c5); } .contact-card:nth-child(3) { --cc: var(--c7); }
.contact-card .ic { background: color-mix(in srgb, var(--cc) 14%, var(--surface)); color: var(--cc); }
.contact-card:hover .ic { background: var(--cc); color: #fff; }
.team-card:nth-child(4n+1) span { color: var(--c3); } .team-card:nth-child(4n+2) span { color: var(--c1); } .team-card:nth-child(4n+3) span { color: var(--c5); } .team-card:nth-child(4n+4) span { color: var(--c6); }

/* ---------- Animated gradient border (featured cause on home) ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.page-index .bg-cream .cause-item:first-child .cause-card { position: relative; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), var(--primary), var(--tertiary), var(--c1), var(--primary)) border-box; border: 2px solid transparent; animation: spinAng 5s linear infinite; }
.page-index .bg-cream .cause-item:first-child .cause-media::after { content: "Urgent"; position: absolute; right: 18px; top: 20px; background: var(--c4); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); animation: beat 1.8s ease-in-out infinite; }
@keyframes spinAng { to { --ang: 360deg; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; top: 58px; left: 12%; right: 12%; border-top: 2px dashed var(--line); z-index: 0; }
.step { position: relative; text-align: center; padding: 30px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; z-index: 1; }
.step:hover { transform: translateY(-8px); box-shadow: 0 24px 50px color-mix(in srgb, var(--c) 20%, transparent); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.step-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--c); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 16%, var(--surface)); }
.step-no { position: absolute; right: 18px; top: 12px; font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; color: color-mix(in srgb, var(--c) 70%, var(--ink)); opacity: .5; }
.step p { font-size: .92rem; margin: 0; }

.bars div:nth-child(n) i { transition-delay: calc(var(--h) * 6ms); }
.bars small { font-size: .72rem; color: var(--muted); font-weight: 700; }

/* ---------- Card spotlight (mouse-follow glow) + tilt ---------- */
[data-cursor="on"] :is(.cause-card, .post-card, .feature-card, .step, .tile:not(.tile-calc), .mvv-card, .contact-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 12%, transparent), transparent 45%);
}
[data-cursor="on"] :is(.cause-card, .post-card, .feature-card, .step, .tile:not(.tile-calc), .mvv-card, .contact-card):hover::after { opacity: 1; }
.cause-card, .post-card, .mvv-card, .contact-card { position: relative; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Hero word animation ---------- */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(45%) rotate(3deg); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(.2s + var(--i) * 70ms); }
.hero-slide.active h1 .w { opacity: 1; transform: none; filter: none; }
.hero h1 em.w { padding-right: .08em; }
.hero-blob.b3 { width: 300px; height: 300px; background: var(--tertiary); left: 40%; top: 10%; opacity: .25; animation-delay: -3s; }
.hero-blob { mix-blend-mode: screen; }

/* ---------- Live donation toasts ---------- */
.toast-stack { position: fixed; left: 24px; bottom: 24px; z-index: 1100; display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 340px; padding: 12px 14px 12px 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translateX(-120%); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.toast.show { transform: none; opacity: 1; }
.toast .t-ic { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--tc, var(--primary)); font-size: 1.1rem; }
.toast .t-ic .icon { fill: #fff; stroke: none; }
.toast strong { display: block; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.toast small { color: var(--muted); font-size: .78rem; }
.toast button { margin-left: auto; align-self: flex-start; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; font-size: .9rem; }

/* ---------- Mobile floating donate bar ---------- */
.mobile-donate { display: none; }
@media (max-width: 767px) {
  .mobile-donate { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--secondary) 88%, transparent); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .5s var(--ease); }
  .mobile-donate.show { transform: none; }
  .mobile-donate strong { display: block; font-size: .9rem; line-height: 1.2; }
  .mobile-donate small { font-size: .74rem; opacity: .8; }
  .back-top { bottom: 90px; right: 16px; width: 46px; height: 46px; }
  .toast-stack { left: 12px; right: 12px; bottom: 88px; }
  .toast { min-width: 0; max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps::before { display: none; }
  .step { padding: 22px 14px; }
  .footer-bottom { padding-bottom: 90px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; }
}

/* ---------- Switcher v3 additions ---------- */
.sw-swatches { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
.sw-swatch { background: conic-gradient(from 225deg, var(--a) 0 50%, var(--c) 50% 70%, var(--b) 70% 100%); }
.sw-label em { font-style: normal; background: var(--primary-soft); color: var(--primary); padding: 1px 7px; border-radius: 99px; margin-left: 6px; letter-spacing: 0; }
.sw-random { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: .84rem; color: #fff; background: linear-gradient(120deg, #F97316, #EC4899, #8B5CF6, #3B82F6, #22C55E); background-size: 300% 100%; animation: flow 8s linear infinite; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sw-random:hover { filter: brightness(1.08); }
.sw-custom { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-custom label { flex-direction: column; gap: 6px; padding: 10px 6px; font-size: .74rem; text-align: center; }
.sw-seg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot-solid { background: var(--primary); } .dot-grad { background: var(--grad); } .dot-vivid { background: conic-gradient(var(--primary), var(--tertiary), var(--c1), var(--primary)); }
.sw-switch { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink); }
.sw-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw-switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .25s; flex-shrink: 0; }
.sw-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.sw-switch input:checked + i { background: var(--primary); }
.sw-switch input:checked + i::after { transform: translateX(18px); }
.sw-switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; }

/* ---------- Motion off ---------- */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
[data-motion="off"] .reveal, [data-motion="off"] .hero h1 .w { opacity: 1 !important; transform: none !important; filter: none !important; }
[data-motion="off"] .bars i { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero h1 .w { opacity: 1; transform: none; filter: none; } .bars i { transform: none; } }
@media (max-width: 767px) { .toast-stack { right: 72px; } }

/* ==========================================================================
   21. v4 — header / hero / banner variants + modern extras
   ========================================================================== */
:root { --an-h: 0px; --tb-h: 46px; }
@media (max-width: 767px) { :root { --tb-h: 0px; } }

/* ---------- Announcement bar ---------- */
.announce { position: relative; z-index: 950; background: var(--grad); color: #fff; font-size: .88rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding-right: 56px; flex-wrap: wrap; }
.announce p { margin: 0; }
.an-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.an-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.an-link:hover { color: #fff; gap: 10px; }
.an-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: grid; place-items: center; }
.an-close:hover { background: rgba(255,255,255,.32); }
[data-announce="off"] .announce { display: none; }
@media (max-width: 767px) { .announce .container { justify-content: flex-start; gap: 8px; padding: 8px 48px 8px 16px; } .an-badge { display: none; } }

/* ---------- Nav underline + header icons ---------- */
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav > ul > li > a:hover::after, .nav > ul > li > a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { gap: 10px; }
.header .container { position: relative; }
@media (max-width: 575px) { .search-toggle { display: none; } }

/* ---------- Mega menu ---------- */
.nav > ul > li.has-mega { position: static; }
.mega { position: absolute; left: 20px; right: 20px; top: calc(100% - 4px); display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 26px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .35s var(--ease); z-index: 20; }
.nav li.has-mega:hover > .mega, .nav li.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-col h6 { font-family: var(--ff-body); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.mega-col a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-sm); font-weight: 700; color: var(--ink); font-size: .94rem; transition: background .25s, color .25s, transform .25s; }
.mega-col a .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.mega-col:nth-child(2) a .icon { background: color-mix(in srgb, var(--c1) 14%, var(--surface)); color: var(--c1); }
.mega-col:nth-child(3) a .icon { background: color-mix(in srgb, var(--c6) 14%, var(--surface)); color: var(--c6); }
.mega-col a:hover { background: var(--cream); transform: translateX(4px); }
.mega-feature { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--cream); color: var(--ink); }
.mega-feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }
.mf-tag { position: absolute; left: 24px; top: 24px; background: var(--c4); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.mega-feature strong { font-family: var(--ff-head); font-size: 1.05rem; line-height: 1.3; }
.mf-bar { height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.mega-feature small { color: var(--muted); font-weight: 600; }
.mega-feature:hover { color: var(--ink); } .mega-feature:hover strong { color: var(--primary); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 1350; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.so-inner { width: min(820px, 100%); transform: translateY(20px); transition: transform .45s var(--ease); }
.search-overlay.open .so-inner { transform: none; }
.so-close { position: fixed; right: 26px; top: 22px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; }
.so-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.so-form { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin: 8px 0 20px; }
.so-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--ff-head); font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; color: var(--ink); }
.so-form input::placeholder { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.so-form button { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.so-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; font-size: .88rem; }
.so-tags span { font-weight: 700; color: var(--muted); }
.so-tags a { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--ink); }
.so-tags a:hover { border-color: var(--primary); color: var(--primary); }
.so-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.so-results a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .25s var(--ease), border-color .25s; }
.so-results a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.so-results img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.so-results strong { display: block; font-size: .92rem; line-height: 1.35; }
.so-results small { color: var(--primary); font-weight: 700; font-size: .76rem; }
.so-results li.hide { display: none; }
.so-empty { display: none; color: var(--muted); margin-top: 10px; }
.so-empty.show { display: block; }
@media (max-width: 575px) { .so-results { grid-template-columns: 1fr; } .search-overlay { padding-top: 90px; } }

/* ==========  HEADER VARIANTS  ========== */
/* Shared: transparent top bar for overlay-style headers */
:is([data-header="overlay"], [data-header="floating"]) .topbar { position: absolute; left: 0; right: 0; top: var(--an-h); z-index: 902; background: transparent; border-bottom: 1px solid rgba(255,255,255,.14); }
:is([data-header="overlay"], [data-header="floating"]) .topbar .socials a { background: rgba(255,255,255,.1); }
@keyframes hdrDown { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes hdrDownC { from { transform: translate(-50%, -140%); } to { transform: translate(-50%, 0); } }

/* Overlay (transparent over hero/banner) */
[data-header="overlay"] .header { position: absolute; top: calc(var(--an-h) + var(--tb-h)); left: 0; right: 0; background: transparent; border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
[data-header="overlay"] .header:not(.stuck) :is(.logo, .nav > ul > li > a) { color: #fff; }
[data-header="overlay"] .header:not(.stuck) .nav > ul > li > a.active, [data-header="overlay"] .header:not(.stuck) .nav > ul > li > a:hover { color: var(--accent); }
[data-header="overlay"] .header:not(.stuck) .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
[data-header="overlay"] .header:not(.stuck) .header-call strong { color: #fff; }
[data-header="overlay"] .header:not(.stuck) .header-call small { color: rgba(255,255,255,.7); }
[data-header="overlay"] .header:not(.stuck) .header-call .ic { background: rgba(255,255,255,.12); color: #fff; }
[data-header="overlay"] .header.stuck { position: fixed; top: 0; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); animation: hdrDown .5s var(--ease); }

/* Floating glass pill */
[data-header="floating"] .header { position: absolute; top: calc(var(--an-h) + var(--tb-h) + 14px); left: 50%; transform: translateX(-50%); width: min(1260px, calc(100% - 28px)); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid color-mix(in srgb, #fff 40%, var(--line)); box-shadow: 0 18px 50px rgba(0,0,0,.14); }
[data-header="floating"] .header .container { max-width: none; height: 72px; padding: 0 10px 0 24px; }
[data-header="floating"] .header.scrolled .container { height: 68px; }
[data-header="floating"] .header.stuck { position: fixed; top: 12px; animation: hdrDownC .55s var(--ease); }
[data-header="floating"] .header .btn-primary { padding: 13px 24px; }
[data-radius="sharp"][data-header="floating"] .header { border-radius: 8px; }

/* Space for overlay headers */
:is([data-header="overlay"], [data-header="floating"]) .hero { height: min(100vh, 920px); min-height: 680px; }
:is([data-header="overlay"], [data-header="floating"]) .hero-content { padding-top: 120px; }
:is([data-header="overlay"], [data-header="floating"]) .page-banner { padding-top: calc(var(--tb-h) + 190px); }

/* Centered (logo on top, nav row below) */
@media (min-width: 992px) {
  [data-header="centered"] .header .container { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "left logo actions" "nav nav nav"; height: auto; padding-top: 14px; row-gap: 10px; }
  [data-header="centered"] .logo { grid-area: logo; font-size: 2rem; }
  [data-header="centered"] .header-actions { grid-area: actions; justify-self: end; }
  [data-header="centered"] .header-actions .header-call { display: none; }
  [data-header="centered"] .nav { grid-area: nav; border-top: 1px solid var(--line); }
  [data-header="centered"] .nav > ul { justify-content: center; gap: 18px; }
  [data-header="centered"] .nav > ul > li > a { padding: 14px; }
  [data-header="centered"] .header.scrolled .container { height: auto; }
  [data-header="centered"] .header::before { content: "Together we rise \2014  since 2011"; position: absolute; left: max(20px, calc((100vw - var(--container)) / 2 + 20px)); top: 34px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
}

/* Dark */
[data-header="dark"] .header { background: var(--secondary); border-bottom-color: rgba(255,255,255,.08); }
[data-header="dark"] .header :is(.logo, .nav > ul > li > a) { color: #fff; }
[data-header="dark"] .header .nav > ul > li > a:hover, [data-header="dark"] .header .nav > ul > li > a.active { color: var(--accent); }
[data-header="dark"] .header .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
[data-header="dark"] .header .header-call strong { color: #fff; }
[data-header="dark"] .header .header-call small { color: rgba(255,255,255,.65); }
[data-header="dark"] .topbar { background: color-mix(in srgb, var(--secondary) 75%, #000); }

/* Minimal (no top bar, airy) */
[data-header="minimal"] .topbar { display: none; }
[data-header="minimal"] .header { background: color-mix(in srgb, var(--page) 90%, transparent); border-bottom: 0; }
[data-header="minimal"] .header.scrolled { border-bottom: 1px solid var(--line); }
[data-header="minimal"] .header .container { height: 96px; }
[data-header="minimal"] .nav > ul > li > a { font-weight: 600; }
[data-header="minimal"] .header .btn-primary { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
[data-header="minimal"] .header .btn-primary:hover { background: var(--ink); color: var(--page); }
[data-header="minimal"] .header .btn-primary .icon { color: var(--primary); }

/* Light-top pages (split hero / light banners): overlay header uses dark text */
html.light-top[data-header="overlay"] .header:not(.stuck) :is(.logo, .nav > ul > li > a) { color: var(--ink); }
html.light-top[data-header="overlay"] .header:not(.stuck) .nav > ul > li > a.active, html.light-top[data-header="overlay"] .header:not(.stuck) .nav > ul > li > a:hover { color: var(--primary); }
html.light-top[data-header="overlay"] .header:not(.stuck) .icon-btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
html.light-top[data-header="overlay"] .header:not(.stuck) .header-call strong { color: var(--ink); }
html.light-top[data-header="overlay"] .header:not(.stuck) .header-call small { color: var(--muted); }
html.light-top:is([data-header="overlay"], [data-header="floating"]) .topbar { color: var(--body); border-bottom-color: var(--line); }
html.light-top:is([data-header="overlay"], [data-header="floating"]) .topbar .socials a { background: color-mix(in srgb, var(--ink) 6%, transparent); }
html.light-top[data-header="overlay"] .header { border-bottom-color: var(--line); }

/* ==========  HOME HERO VARIANTS  ========== */
@media (min-width: 992px) {
  [data-hero="split"] .hero { background: radial-gradient(40% 60% at 10% 20%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%), radial-gradient(40% 50% at 55% 90%, color-mix(in srgb, var(--tertiary) 14%, transparent), transparent 70%), var(--cream); }
  [data-hero="split"] .hero-slide::after { display: none; }
  [data-hero="split"] .hero-bg { left: 54%; right: 24px; top: calc(var(--an-h) + var(--tb-h) + 110px); bottom: 110px; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 120px; box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform 1.2s var(--ease); }
  [data-hero="split"] .hero-slide.active .hero-bg { transform: none; }
  [data-hero="split"] .hero-content { max-width: 560px; color: var(--body); }
  [data-hero="split"] .hero h1 { color: var(--ink); font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
  [data-hero="split"] .hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  [data-hero="split"] .hero .tagline { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
  [data-hero="split"] .hero .tagline .icon { fill: var(--primary); }
  [data-hero="split"] .hero .btn-ghost-light { color: var(--ink); border-color: var(--ink); }
  [data-hero="split"] .hero .btn-ghost-light:hover { background: var(--ink); color: var(--page); }
  [data-hero="split"] .hero-dots { left: 20px; transform: none; left: max(20px, calc((100vw - var(--container)) / 2 + 20px)); bottom: 70px; }
  [data-hero="split"] .hero-dots button { background: color-mix(in srgb, var(--ink) 25%, transparent); }
  [data-hero="split"] .hero-dots button.active { background: var(--primary); }
  [data-hero="split"] .hero-nav { bottom: 60px; right: 40px; }
  [data-hero="split"] .hero-nav button { color: var(--ink); border-color: var(--line); background: var(--surface); }
  [data-hero="split"] .hero-shape, [data-hero="split"] .hero-blob { display: none; }
}
[data-hero="center"] .hero-slide .container { display: flex; justify-content: center; }
[data-hero="center"] .hero-content { text-align: center; max-width: 900px; margin: 0 auto; }
[data-hero="center"] .hero-content p { margin-left: auto; margin-right: auto; }
[data-hero="center"] .hero-btns { justify-content: center; }
[data-hero="center"] .hero-slide::after { background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--overlay) 80%, transparent), color-mix(in srgb, var(--overlay) 55%, transparent)); }
[data-hero="center"] .hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }

/* ==========  PAGE BANNER VARIANTS  ========== */
.page-banner .container { display: block; }
.pb-text { position: relative; z-index: 2; }
.pb-desc { max-width: 560px; margin: 16px auto 0; font-size: 1.08rem; opacity: .85; }
.page-banner .breadcrumb { margin-bottom: 18px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
.pb-media { display: none; }
.pb-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.pb-shapes i { position: absolute; border-radius: 50%; }
.pb-shapes .s1 { width: 180px; height: 180px; border: 28px solid color-mix(in srgb, var(--primary) 35%, transparent); left: -50px; bottom: 30px; animation: floaty 7s ease-in-out infinite; }
.pb-shapes .s2 { width: 18px; height: 18px; background: var(--tertiary); right: 14%; top: 34%; animation: floaty 5s ease-in-out infinite; }
.pb-shapes .s3 { width: 90px; height: 90px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 2px, transparent 2.5px) 0 0 / 14px 14px; right: 6%; bottom: 18%; border-radius: 0; }

/* Split */
[data-banner="split"] .page-banner { text-align: left; color: var(--body); padding: 90px 0 90px; background: radial-gradient(40% 70% at 0% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%), radial-gradient(40% 60% at 100% 100%, color-mix(in srgb, var(--tertiary) 14%, transparent), transparent 70%), var(--cream); }
[data-banner="split"] .page-banner::after, [data-banner="split"] .page-banner .bg { display: none; }
[data-banner="split"] .page-banner .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
[data-banner="split"] .page-banner h1 { color: var(--ink); font-size: clamp(2.4rem, 5vw, 4.2rem); }
[data-banner="split"] .pb-desc { margin: 12px 0 0; }
[data-banner="split"] .breadcrumb { background: var(--surface); border: 1px solid var(--line); color: var(--body); }
[data-banner="split"] .breadcrumb .current { color: var(--primary); }
[data-banner="split"] .pb-media { display: block; position: relative; }
[data-banner="split"] .pb-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 90px; box-shadow: var(--shadow-lg); }
[data-banner="split"] .pb-media::before { content: ""; position: absolute; inset: -16px -16px 16px 16px; border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 90px; border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent); z-index: -1; }
.pb-chip { position: absolute; left: -24px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 800; font-size: .88rem; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite; }
.pb-chip .icon { color: #fff; background: var(--c4); border-radius: 50%; padding: 5px; width: 26px; height: 26px; fill: #fff; stroke: none; }

/* Curved */
[data-banner="curved"] .page-banner { padding-bottom: 190px; clip-path: ellipse(135% 100% at 50% 0%); }
[data-banner="curved"] .page-banner .bg { opacity: .75; }

/* Minimal */
[data-banner="minimal"] .page-banner { text-align: left; background: var(--page); color: var(--body); padding: 110px 0 70px; border-bottom: 1px solid var(--line); }
[data-banner="minimal"] .page-banner::after, [data-banner="minimal"] .page-banner .bg { display: none; }
[data-banner="minimal"] .page-banner h1 { color: var(--ink); font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -.04em; line-height: .98; background: linear-gradient(90deg, var(--ink) 40%, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
[data-banner="minimal"] .pb-desc { margin: 10px 0 0; }
[data-banner="minimal"] .breadcrumb { background: var(--cream); color: var(--body); }
[data-banner="minimal"] .breadcrumb .current { color: var(--primary); }
[data-banner="minimal"] .pb-shapes .s1 { left: auto; right: -60px; top: 20%; width: 320px; height: 320px; border: 0; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--tertiary) 45%, transparent), color-mix(in srgb, var(--primary) 30%, transparent) 60%, transparent 70%); filter: blur(10px); }

/* Glass */
[data-banner="glass"] .page-banner { padding-top: 110px; padding-bottom: 110px; }
[data-banner="glass"] .page-banner .bg { opacity: 1; }
[data-banner="glass"] .page-banner::after { background: linear-gradient(180deg, color-mix(in srgb, var(--overlay) 40%, transparent), color-mix(in srgb, var(--overlay) 60%, transparent)); }
[data-banner="glass"] .pb-text { max-width: 760px; margin: 0 auto; padding: 44px 40px; border-radius: var(--radius-xl); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 30px 70px rgba(0,0,0,.2); }

/* Tall */
[data-banner="tall"] .page-banner { min-height: 72vh; display: flex; align-items: flex-end; text-align: left; padding-bottom: 80px; }
[data-banner="tall"] .page-banner .bg { opacity: 1; }
[data-banner="tall"] .page-banner::after { background: linear-gradient(0deg, color-mix(in srgb, var(--overlay) 92%, transparent), color-mix(in srgb, var(--overlay) 25%, transparent) 70%); }
[data-banner="tall"] .page-banner .container { width: 100%; }
[data-banner="tall"] .page-banner h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
[data-banner="tall"] .pb-desc { margin: 10px 0 0; }

@media (max-width: 991px) {
  [data-banner="split"] .page-banner .container { grid-template-columns: 1fr; gap: 40px; }
  [data-banner="split"] .pb-media { max-width: 520px; }
  .pb-chip { left: 10px; }
}
@media (max-width: 767px) {
  [data-banner="glass"] .pb-text { padding: 30px 22px; }
  [data-banner="curved"] .page-banner { padding-bottom: 130px; clip-path: ellipse(160% 100% at 50% 0%); }
  :is([data-header="overlay"], [data-header="floating"]) .page-banner { padding-top: 150px; }
  :is([data-header="overlay"], [data-header="floating"]) .hero-content { padding-top: 90px; }
  [data-header="floating"] .header .container { height: 64px; padding: 0 8px 0 16px; }
  [data-header="floating"] .header { top: calc(var(--an-h) + 10px); }
}

/* ---------- Clip-path image reveals ---------- */
.reveal .img-main, .reveal.detail-media, .reveal .pb-media img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.3s var(--ease); }
.reveal.in .img-main, .reveal.in.detail-media { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
[data-motion="off"] .reveal .img-main, [data-motion="off"] .reveal.detail-media { clip-path: none; }

/* ---------- Scroll-driven parallax (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  .about-media .img-sub, .exp-badge { animation: pY linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .page-banner .bg, .cta-video .bg { animation: pScale linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes pY { from { transform: translateY(50px); } to { transform: translateY(-50px); } }
  @keyframes pScale { from { transform: scale(1); } to { transform: scale(1.15); } }
}

/* ---------- Cross-page transitions (supporting browsers) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
.header { view-transition-name: site-header; }
[data-motion="off"]::view-transition-old(root), [data-motion="off"]::view-transition-new(root) { animation: none; }

/* ---------- Magnetic buttons ---------- */
.magnetic { transition: transform .35s var(--ease); }

/* ---------- Switcher: wrapping segments ---------- */
.sw-seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
/* v4 fixes: keep overlay-header spacing on every banner variant */
html:is([data-header="overlay"], [data-header="floating"])[data-banner] .page-banner { padding-top: calc(var(--tb-h) + 170px); }
html:is([data-header="overlay"], [data-header="floating"])[data-banner="tall"] .page-banner { padding-top: 0; }
@media (max-width: 767px) {
  html:is([data-header="overlay"], [data-header="floating"])[data-banner] .page-banner { padding-top: 130px; }
  .sw-toggle { top: calc(50% - 22px); }
}
.so-inner .tagline .icon { fill: none; stroke: currentColor; }

/* ==========================================================================
   22. v5 — custom animated cursor (desktop / fine pointers only)
   ========================================================================== */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor-on .cursor-dot.visible, .cursor-on .cursor-ring.visible { opacity: 1; }
.cursor-dot i, .cursor-ring i { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, border-color .35s, opacity .3s, transform .25s var(--ease); }
.cursor-dot i { width: 8px; height: 8px; background: var(--primary); }
.cursor-ring i { width: 40px; height: 40px; border: 1.5px solid color-mix(in srgb, var(--primary) 70%, transparent); }
.cursor-ring b { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; }

/* states */
.cursor-ring.c-hover i { width: 64px; height: 64px; background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: transparent; }
.cursor-dot.c-hover i { transform: translate(-50%, -50%) scale(.5); }
.cursor-ring.c-label i { width: 86px; height: 86px; background: var(--primary); border-color: transparent; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 40%, transparent); }
.cursor-ring.c-label b { opacity: 1; transform: none; }
.cursor-dot.c-label i { opacity: 0; }
.cursor-ring.c-down i { transform: translate(-50%, -50%) scale(.75); }
.cursor-dot.c-down i { transform: translate(-50%, -50%) scale(1.8); }
.cursor-ring.c-text i, .cursor-dot.c-text i { opacity: 0; }
[data-accent="gradient"] .cursor-ring.c-label i, [data-accent="vivid"] .cursor-ring.c-label i { background: var(--grad); }

/* hide the system pointer while the custom one is active (keep caret in text fields) */
html.cursor-hide, html.cursor-hide body, html.cursor-hide a, html.cursor-hide button, html.cursor-hide label, html.cursor-hide [role="button"], html.cursor-hide summary { cursor: none !important; }
html.cursor-hide input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]), html.cursor-hide textarea, html.cursor-hide select, html.cursor-hide [contenteditable] { cursor: text !important; }
html.cursor-hide select { cursor: pointer !important; }

/* style: blend (inverting circle) */
[data-cursorstyle="blend"] .cursor-dot { display: none; }
[data-cursorstyle="blend"] .cursor-ring { mix-blend-mode: difference; }
[data-cursorstyle="blend"] .cursor-ring i { width: 28px; height: 28px; background: #fff; border: 0; }
[data-cursorstyle="blend"] .cursor-ring.c-hover i { width: 70px; height: 70px; background: #fff; }
[data-cursorstyle="blend"] .cursor-ring.c-label i { width: 96px; height: 96px; background: #fff; box-shadow: none; }
[data-cursorstyle="blend"] .cursor-ring b { color: #000; }

/* style: heart */
[data-cursorstyle="heart"] .cursor-dot i { width: 18px; height: 18px; background: none; border-radius: 0; color: var(--primary); }
[data-cursorstyle="heart"] .cursor-dot i svg { width: 18px; height: 18px; fill: currentColor; stroke: none; filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--primary) 45%, transparent)); }
[data-cursorstyle="heart"] .cursor-dot.c-hover i { animation: cbeat 1s ease-in-out infinite; }
[data-cursorstyle="heart"] .cursor-ring i { border-style: dashed; animation: cspin 10s linear infinite; }
[data-cursorstyle="heart"] .cursor-ring.c-label i { animation: none; }

/* style: glow (soft light that follows the system pointer) */
[data-cursorstyle="glow"] .cursor-dot { display: none; }
[data-cursorstyle="glow"] .cursor-ring { z-index: 5; mix-blend-mode: multiply; }
[data-theme="dark"][data-cursorstyle="glow"] .cursor-ring { mix-blend-mode: screen; }
[data-cursorstyle="glow"] .cursor-ring i { width: 420px; height: 420px; border: 0; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--tertiary) 10%, transparent) 40%, transparent 68%); }
[data-cursorstyle="glow"] .cursor-ring.c-hover i, [data-cursorstyle="glow"] .cursor-ring.c-label i { width: 520px; height: 520px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 65%); box-shadow: none; }
[data-cursorstyle="glow"] .cursor-ring b { display: none; }

/* style: system — nothing custom */
[data-cursorstyle="system"] .cursor-dot, [data-cursorstyle="system"] .cursor-ring { display: none; }

@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }
@keyframes cbeat { 0%, 100% { transform: translate(-50%, -50%) scale(1.3); } 40% { transform: translate(-50%, -50%) scale(1.6); } }
@keyframes cspin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ==========================================================================
   23. v6 — "Arrow + ring" cursor: normal arrow pointer + animated gradient ring
   ========================================================================== */
/* keep the standard arrow everywhere (text fields keep the caret) */
html[data-cursorstyle="arrow"].cursor-on, html[data-cursorstyle="arrow"].cursor-on body,
html[data-cursorstyle="arrow"].cursor-on :is(a, button, label, summary, [role="button"], .sw-swatch, select, input[type=range], input[type=checkbox], input[type=radio], input[type=color]) { cursor: default !important; }
[data-cursorstyle="arrow"] .cursor-dot { display: none; }
[data-cursorstyle="arrow"] .cursor-ring i {
  --sx: 1; --sy: 1; --ang: 0deg; --press: 1;
  width: 46px; height: 46px; border: 0; background: color-mix(in srgb, var(--primary) 5%, transparent);
  transform: translate(-50%, -50%) rotate(var(--ang)) scale(calc(var(--sx) * var(--press)), calc(var(--sy) * var(--press)));
  box-shadow: 0 0 22px color-mix(in srgb, var(--primary) 30%, transparent), inset 0 0 14px color-mix(in srgb, var(--primary) 14%, transparent);
  transition: width .4s var(--ease), height .4s var(--ease), background-color .35s, box-shadow .35s, transform .12s linear;
}
/* gradient rim (rotating conic, masked into a ring) */
[data-cursorstyle="arrow"] .cursor-ring i::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, var(--primary), var(--tertiary), var(--accent), transparent 78%, var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: crSpin 2.6s linear infinite;
}
/* orbiting satellite dot */
[data-cursorstyle="arrow"] .cursor-ring i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: radial-gradient(circle at 50% 4px, var(--tertiary) 3px, color-mix(in srgb, var(--tertiary) 40%, transparent) 4.5px, transparent 6px);
  animation: crSpin 1.8s linear infinite reverse; transition: opacity .3s;
}
@keyframes crSpin { to { transform: rotate(360deg); } }
/* hover: expand, glow and spin faster */
[data-cursorstyle="arrow"] .cursor-ring.c-hover i { width: 70px; height: 70px; background: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: 0 0 34px color-mix(in srgb, var(--primary) 45%, transparent), inset 0 0 20px color-mix(in srgb, var(--primary) 18%, transparent); }
[data-cursorstyle="arrow"] .cursor-ring.c-hover i::before { animation-duration: 1s; padding: 2.5px; }
[data-cursorstyle="arrow"] .cursor-ring.c-hover i::after { opacity: 0; }
/* label bubble ("View", "Play" …) */
[data-cursorstyle="arrow"] .cursor-ring.c-label i { width: 92px; height: 92px; background: var(--grad); box-shadow: 0 14px 40px color-mix(in srgb, var(--primary) 45%, transparent); }
[data-cursorstyle="arrow"] .cursor-ring.c-label i::before { padding: 3px; background: conic-gradient(from 0deg, #fff, transparent 40%, #fff 70%, transparent); opacity: .7; }
[data-cursorstyle="arrow"] .cursor-ring.c-label i::after { opacity: 0; }
[data-cursorstyle="arrow"] .cursor-ring.c-down i { --press: .82; }
[data-cursorstyle="arrow"] .cursor-ring.c-text i { opacity: 0; }

/* click burst (all custom styles except system/glow) */
.cursor-burst { position: fixed; left: 0; top: 0; z-index: 2147482999; pointer-events: none; }
.cursor-burst::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary); animation: burstRing .6s var(--ease) forwards; }
.cursor-burst s { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--primary)); animation: burstDot .65s var(--ease) forwards; }
@keyframes burstRing { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes burstDot { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-34px) scale(.3); opacity: 0; } }
[data-motion="off"] .cursor-burst { display: none; }
[data-theme="dark"][data-cursorstyle="arrow"] .cursor-ring i { background: color-mix(in srgb, var(--primary) 8%, transparent); }
[data-cursorstyle="arrow"] .cursor-ring.c-hover i::before { background: conic-gradient(from 0deg, #fff, var(--tertiary), var(--primary), var(--accent), #fff); padding: 3px; }
.cursor-burst s { width: 7px; height: 7px; box-shadow: 0 0 8px var(--c, var(--primary)); }
