/* ============================================================
   ANEW Energy — Pura Vida Edition · Multi-page
   Apple-grade motion · Costa Rican jungle theme
   Performance notes:
   - backdrop-filter lives ONLY on the fixed nav (biggest GPU cost)
   - ambient orbs are pre-soft radial gradients, no filter: blur()
   - below-fold sections use content-visibility: auto
   ============================================================ */

:root {
  --bg-0: #050b07;
  --bg-1: #0a120d;
  --bg-2: #0e1813;
  --bg-3: #16241d;
  --bg-4: #1c2e24;
  --bg-5: #2b4032;

  --leaf-1: #123422;
  --leaf-2: #0d271a;
  --leaf-3: #0a1e14;
  --leaf-4: #071009;

  --gold: #f5c518;
  --orange: #f39019;
  --orange-2: #e8852a;
  --green: #4ba84b;
  --teal: #3fa38a;
  --green-light: #8fd68f;
  --teal-light: #7fd6bf;

  --text: #eaf6ee;
  --text-dim: #9fc4ad;
  --text-faint: #6e8a79;

  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  --grad: linear-gradient(100deg, var(--gold), var(--orange) 45%, var(--green));
  --radius: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.4, 1);
  --dur: 1s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1300px 900px at 85% -10%, var(--bg-4) 0%, transparent 60%),
    radial-gradient(1100px 800px at -10% 35%, var(--bg-3) 0%, transparent 55%),
    var(--bg-2);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(245, 197, 24, 0.35); color: #fff; }

img { max-width: 100%; height: auto; }
a { color: var(--teal-light); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--gold); }

.container { width: min(1160px, 92%); margin: 0 auto; position: relative; z-index: 2; }

/* ============ Splash intro (index only) ============ */
#splash {
  position: fixed; inset: 0; z-index: 20000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease-out);
}
#splash.done { opacity: 0; pointer-events: none; }
#splash-text {
  max-width: 82%;
  text-align: center;
  font-weight: 200;
  font-size: clamp(25px, 6.8vw, 44px);
  line-height: 1.32;
  letter-spacing: 0.045em;
  color: #fff;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#splash-text.show {
  opacity: 1; filter: blur(0); transform: scale(1);
}

/* Logo finale after "Join us!" — fades in and gently pulses (like anewenergy.earth) */
/* Logo finale — mirrors the anewenergy.earth intro (glow + halo + rings, 4s) */
#splash-logo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
#splash-logo.show { opacity: 1; }
.splash-logo-img { position: relative; z-index: 2; width: clamp(118px, 20vw, 150px); height: auto; }
#splash-logo.show .splash-logo-img { animation: splashEnergy 4s cubic-bezier(0.25, 0.1, 0.3, 1) forwards; }
.splash-halo {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,144,25,0.22) 0%, rgba(75,168,75,0.1) 45%, transparent 70%);
}
#splash-logo.show .splash-halo { animation: haloBreathe 2s ease-in-out infinite; }
.splash-ring {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  border: 2px solid rgba(243,144,25,0.55); opacity: 0;
}
.splash-ring.r2 { border-color: rgba(75,168,75,0.45); }
.splash-ring.r3 { border-color: rgba(245,197,24,0.4); }
#splash-logo.show .splash-ring { animation: ringOut 1.5s ease-out infinite; }
#splash-logo.show .splash-ring.r2 { animation-delay: 0.5s; }
#splash-logo.show .splash-ring.r3 { animation-delay: 1s; }
@keyframes splashEnergy {
  0% { transform: scale(0.55); opacity: 0; filter: drop-shadow(0 0 0 rgba(243,144,25,0)); }
  18% { opacity: 1; }
  35% { transform: scale(1.02); filter: drop-shadow(0 0 18px rgba(243,144,25,0.75)) drop-shadow(0 0 44px rgba(75,168,75,0.35)); }
  52% { transform: scale(0.94); filter: drop-shadow(0 0 10px rgba(243,144,25,0.5)) drop-shadow(0 0 28px rgba(75,168,75,0.25)); }
  70% { transform: scale(1.12); filter: drop-shadow(0 0 26px rgba(243,144,25,0.9)) drop-shadow(0 0 60px rgba(75,168,75,0.45)); }
  84% { transform: scale(1.05); }
  100% { transform: scale(1.22); opacity: 1; filter: drop-shadow(0 0 34px rgba(243,144,25,0.95)) drop-shadow(0 0 80px rgba(75,168,75,0.5)); }
}
@keyframes haloBreathe { 0%, 100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes ringOut { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

/* ============ Ambient background (no filter blur — cheap) ============ */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.orb-green {
  width: 720px; height: 720px; top: -16%; right: -12%;
  background: radial-gradient(circle, rgba(75, 168, 75, 0.16) 0%, rgba(75, 168, 75, 0.05) 45%, transparent 68%);
}
.orb-gold {
  width: 600px; height: 600px; top: 42%; left: -16%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.10) 0%, rgba(245, 197, 24, 0.03) 45%, transparent 68%);
  animation-delay: -8s;
}
.orb-orange {
  width: 560px; height: 560px; bottom: -14%; right: 12%;
  background: radial-gradient(circle, rgba(243, 144, 25, 0.11) 0%, rgba(243, 144, 25, 0.03) 45%, transparent 68%);
  animation-delay: -16s;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, -55px) scale(1.15); }
}

/* Fireflies */
#fireflies { position: absolute; inset: 0; }
.firefly {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe98a 0%, rgba(245, 197, 24, 0.6) 45%, transparent 70%);
  box-shadow: 0 0 12px 3px rgba(245, 197, 24, 0.35);
  opacity: 0;
  animation: fireflyFloat var(--ff-dur, 9s) ease-in-out var(--ff-delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes fireflyFloat {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  15%  { opacity: 0.9; }
  35%  { transform: translate(var(--ff-x1, 30px), var(--ff-y1, -40px)) scale(1); opacity: 0.25; }
  55%  { opacity: 0.85; }
  75%  { transform: translate(var(--ff-x2, -25px), var(--ff-y2, -80px)) scale(0.85); opacity: 0.15; }
  100% { transform: translate(var(--ff-x3, 10px), var(--ff-y3, -110px)) scale(0.6); opacity: 0; }
}

/* ============ Liquid glass (GPU-cheap: layered gradients, no backdrop) ============ */
.glass {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 40%),
    linear-gradient(135deg, rgba(34, 52, 41, 0.72), rgba(13, 23, 18, 0.68));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  position: relative;
}

/* ============ Navigation (the one true backdrop-filter) ============ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.5s var(--ease-out);
}
.nav {
  width: min(1160px, 94%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  transition: box-shadow 0.5s var(--ease-out);
}
.nav-wrap.scrolled { padding: 8px 0; }
.nav-wrap.scrolled .nav { box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--glass-highlight); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand img {
  width: 38px; height: 38px;
  border-radius: 10px;
  transition: transform 0.6s var(--ease-spring);
}
.brand:hover img { transform: rotate(-8deg) scale(1.12); }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; color: #fff; }
.brand-name em { font-style: normal; font-weight: 300; color: var(--text-dim); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links .nav-cta {
  background: var(--grad);
  color: #1b1206; font-weight: 700;
  box-shadow: 0 4px 18px rgba(243, 144, 25, 0.35);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.nav-links .nav-cta:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 28px rgba(243, 144, 25, 0.5); color: #1b1206; }

/* Language toggle (EN/ES) — sits in the nav as a small glass pill */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em;
  font-family: inherit; cursor: pointer;
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.3s var(--ease-spring);
}
.lang-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--ease-spring), opacity 0.3s; }

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: -80%; width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-out);
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: var(--grad);
  color: #1b1206;
  box-shadow: 0 6px 26px rgba(243, 144, 25, 0.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 38px rgba(243, 144, 25, 0.5); color: #1b1206; }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.btn-glass:hover { transform: translateY(-3px) scale(1.03); background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-full { width: 100%; }

/* ============ Hero (index) ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 150px 4% 210px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 24, 19, 0.85) 0%, rgba(14, 24, 19, 0.55) 40%, rgba(5, 11, 7, 0.9) 100%);
}
.hero-inner { position: relative; z-index: 5; will-change: transform, opacity; }
.hero-eyebrow {
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.7rem, 7.4vw, 5.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero-title .line { display: block; }

.w {
  display: inline-block;
  opacity: 0;
  transform: translateY(38px);
  filter: blur(14px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: var(--wd, 0s);
}
body.loaded .w { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero-sub.w, .hero-actions.w { display: block; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .grad-text .w {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Foliage / canopy / toucan (index hero) */
.foliage { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.foliage-tl { top: -40px; left: -60px; }
.foliage-tr { top: -40px; right: -60px; }
/* scale corner foliage with the viewport so it never reaches the copy */
.foliage svg { width: clamp(200px, 29vw, 420px); height: auto; }
.leaf {
  transform-origin: var(--lo, 0% 0%);
  animation: leafSway var(--ls-dur, 7s) ease-in-out var(--ls-delay, 0s) infinite alternate;
}
@keyframes leafSway {
  from { rotate: -2.4deg; }
  to { rotate: 2.8deg; }
}

.canopy {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: clamp(140px, 24vw, 260px);
  z-index: 3;
  pointer-events: none;
}
.canopy-layer {
  position: absolute;
  left: -4%; right: -4%; bottom: 0;
  width: 108%; height: 100%;
  will-change: transform;
}
.palm { animation: palmSway 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
.palm-2 { animation-delay: -4s; animation-duration: 11s; }
@keyframes palmSway {
  from { rotate: -1.6deg; }
  to { rotate: 2.2deg; }
}

.toucan-perch {
  position: absolute;
  right: clamp(0px, 6vw, 120px);
  bottom: clamp(90px, 16vw, 190px);
  z-index: 4;
  pointer-events: none;
  animation: perchBob 5.5s ease-in-out infinite alternate;
  transition: opacity 1.2s ease 0.4s;
}
/* toucan has taken flight — hide instantly, fade back in on return */
.toucan-perch.vacated { opacity: 0; transition: opacity 0.1s linear 0s; }
@keyframes perchBob {
  from { translate: 0 0; }
  to { translate: 0 -7px; }
}
.toucan-perch .beak { transform-box: fill-box; transform-origin: 90% 40%; animation: beakChat 12s ease-in-out infinite; }
@keyframes beakChat {
  0%, 86%, 100% { transform: rotate(0deg); }
  89% { transform: rotate(-4deg); }
  92% { transform: rotate(1deg); }
  95% { transform: rotate(-3deg); }
  98% { transform: rotate(0deg); }
}
.branch-leaf { transform-box: fill-box; transform-origin: bottom left; animation: leafSway 6s ease-in-out infinite alternate; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-faint);
  border-radius: 14px;
  z-index: 6;
  opacity: 0;
  animation: hintIn 1s var(--ease-out) 2s forwards;
}
@keyframes hintIn { to { opacity: 1; } }
.scroll-hint span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 3px;
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0.2; }
}

/* ============ Flying toucan (takes off from the perch, exits top-left) ============ */
#toucanFly {
  position: fixed;
  /* start roughly where the perched toucan sits */
  right: clamp(10px, 7vw, 130px);
  bottom: clamp(110px, 17vw, 210px);
  z-index: 900;
  pointer-events: none;
  visibility: hidden;
}
#toucanFly.flying {
  visibility: visible;
  animation: flyUpLeft 3.2s cubic-bezier(0.4, 0.1, 0.25, 1) forwards;
}
@keyframes flyUpLeft {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(calc(-100vw - 240px), calc(-100vh + 40px)) scale(0.55); }
}
#toucanFly.flying .fly-arc { animation: flyArcUp 3.2s ease-in-out forwards; }
@keyframes flyArcUp {
  0% { transform: translateY(0) rotate(0deg); }
  18% { transform: translateY(12px) rotate(8deg); }
  55% { transform: translateY(-16px) rotate(-10deg); }
  100% { transform: translateY(-4px) rotate(-14deg); }
}
.wing { transform-box: fill-box; transform-origin: 85% 90%; }
#toucanFly.flying .wing-near { animation: flap 0.5s ease-in-out infinite alternate; }
#toucanFly.flying .wing-far { animation: flapFar 0.5s ease-in-out infinite alternate; }
@keyframes flap { from { transform: rotate(-38deg); } to { transform: rotate(30deg); } }
@keyframes flapFar { from { transform: rotate(28deg); } to { transform: rotate(-24deg); } }

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative;
  padding: 190px 0 120px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 9, 5, 0.5), transparent);
}
.page-hero .foliage-tl { top: -50px; left: -80px; }
.page-hero .foliage-tr { top: -50px; right: -80px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  position: relative; z-index: 3;
}
.page-hero .hero-eyebrow { position: relative; z-index: 3; }
.page-hero p.lead {
  position: relative; z-index: 3;
  margin: 22px auto 0;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 1.12rem;
  font-weight: 300;
}

/* ============ Stats strip ============ */
.stats-strip { margin-top: clamp(-60px, -4vw, -30px); position: relative; z-index: 10; padding-bottom: 30px; }
.hero-stats {
  display: flex; align-items: center; gap: clamp(18px, 4vw, 48px);
  padding: 28px clamp(24px, 5vw, 56px);
  flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 44px; background: var(--glass-border); }

/* ============ Sections ============ */
.section { padding: clamp(90px, 12vw, 140px) 0; position: relative; }
.section.cv { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.section-feature {
  background: linear-gradient(180deg, transparent, rgba(4, 9, 5, 0.6) 16% 84%, transparent);
}
.section-eyebrow {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  max-width: 24ch;
}
.section-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 62ch; margin-bottom: 12px; }
.center { text-align: center; }
.center .section-title, .center .section-sub { margin-left: auto; margin-right: auto; }

.leaf-cluster { position: absolute; z-index: 1; pointer-events: none; opacity: 0.9; will-change: transform; }
.lc-right { right: -70px; top: 40px; }
.lc-left { left: -70px; top: 60px; }

.hanging-vines {
  position: absolute;
  top: 0; left: 4%;
  z-index: 1;
  pointer-events: none;
  display: flex; gap: 38px;
}
.hanging-vines.vines-right { left: auto; right: 5%; }
.hv {
  transform-origin: top center;
  animation: vineSwing var(--hv-dur, 8s) ease-in-out var(--hv-delay, 0s) infinite alternate;
  will-change: transform;
}
@keyframes vineSwing {
  from { transform: rotate(-2.6deg); }
  to { transform: rotate(2.6deg); }
}

/* ============ Jungle divider with monkey ============ */
.jungle-divider {
  position: relative;
  height: 300px;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}
/* Monkey's top band = real hanging-vine curtain. It's shot on black, so
   mix-blend-mode:screen drops the black cleanly on the dark theme and keeps
   every tendril. The monkey (.vine-group) sits in front via z-index. */
.divider-leaves {
  position: absolute; top: -34px; left: 0; right: 0;
  height: clamp(120px, 15vw, 200px);
  z-index: 1;
  background: url("assets/img/vine-curtain.webp") center top / 100% auto no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}
.vine-group { z-index: 3; }

/* Reusable real-vine content separator — a curtain of vines running across the
   screen between sections. Screen blend drops the black backing on the dark theme. */
.vine-divider {
  position: relative;
  width: 100%;
  height: clamp(96px, 13vw, 180px);
  margin: 6px 0 -20px;
  background: url("assets/img/vine-curtain.webp") center top / 100% auto no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}
.vine-divider.flip { transform: scaleX(-1); }
@media (max-width: 767px) {
  .vine-divider { height: clamp(60px, 20vw, 110px); background-size: 180% auto; }
}

/* One real-vine row per inner page, each with its own monkey nestled in it. */
.vine-row {
  position: relative;
  width: 100%;
  height: clamp(150px, 18vw, 240px);
  margin: 4px 0 -22px;
  pointer-events: none;
  z-index: 4;
}
.vine-row-curtain {
  position: absolute; inset: 0;
  background: url("assets/img/vine-curtain.webp") center top / 100% auto no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  z-index: 1;
}
.row-monkey {
  position: absolute; left: 50%; top: 22px;
  transform: translateX(-50%);
  height: clamp(120px, 15vw, 180px); width: auto;
  z-index: 3;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.42));
}
/* per-species nudges so each reads well against the curtain */
.row-monkey.m-gibbon   { height: clamp(140px, 17vw, 205px); top: 14px; }
.row-monkey.m-squirrel { top: 34px; }
.row-monkey.m-capuchin { top: 30px; }
@media (max-width: 767px) {
  .vine-row { height: clamp(100px, 26vw, 150px); margin-bottom: -14px; }
  .vine-row-curtain { background-size: 180% auto; }
  .row-monkey { height: clamp(84px, 21vw, 120px); }
}
.vine-group {
  position: absolute;
  left: 50%; top: 0;
  transform-origin: top center;
  animation: monkeySwing 3.4s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes monkeySwing {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}
.monkey { display: block; margin-left: -56px; }
.monkey .tail {
  transform-box: fill-box; transform-origin: top left;
  animation: tailCurl 3.4s ease-in-out infinite alternate;
}
@keyframes tailCurl {
  from { transform: rotate(-6deg); }
  to { transform: rotate(9deg); }
}

/* ============ Cards ============ */
.card {
  padding: 32px;
  transition: transform 0.7s var(--ease-spring), box-shadow 0.7s var(--ease-out), border-color 0.7s var(--ease-out);
}
.card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--glass-highlight);
}
.card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.55rem;
  border-radius: 17px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: transform 0.6s var(--ease-spring);
}
.card:hover .card-icon { transform: scale(1.12) rotate(-6deg); }
.card-icon.gold { background: rgba(245, 197, 24, 0.15); border: 1px solid rgba(245, 197, 24, 0.3); }
.card-icon.orange { background: rgba(243, 144, 25, 0.15); border: 1px solid rgba(243, 144, 25, 0.3); }
.card-icon.green { background: rgba(75, 168, 75, 0.15); border: 1px solid rgba(75, 168, 75, 0.3); }
.card-icon.teal { background: rgba(63, 163, 138, 0.15); border: 1px solid rgba(63, 163, 138, 0.35); }

/* Product image icon (from brand illustration set) */
.card-img {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 22px;
  margin-bottom: 20px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95), rgba(234, 246, 238, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff;
  transition: transform 0.6s var(--ease-spring);
}
.card-img img { width: 72px; height: 72px; object-fit: contain; }
.card:hover .card-img { transform: scale(1.08) rotate(-4deg); }

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}
.about-copy p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 22px; }
.about-cards { display: grid; gap: 18px; }
.card.mini { padding: 26px 28px; }

/* ============ Feature split ============ */
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.feature-copy > p { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 24px; }
.check-list { list-style: none; margin: 0 0 32px; }
.check-list li {
  padding: 9px 0 9px 38px;
  position: relative;
  color: var(--text);
  font-size: 1rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 25px; height: 25px;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800;
  color: #0e1813;
  background: var(--grad);
  border-radius: 50%;
}
.feature-panel { padding: 38px; will-change: transform; }
.panel-title {
  font-size: 1.08rem; font-weight: 700; color: #fff;
  padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}
.spec-list { list-style: none; }
.spec-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.93rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--text-faint); white-space: nowrap; }
.spec-list strong { color: var(--text); font-weight: 600; text-align: right; }

/* Battery showcase */
.battery-shot {
  margin-top: 30px;
  padding: 26px;
  text-align: center;
}
.battery-shot img { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5)); }
.battery-shot figcaption { color: var(--text-faint); font-size: 0.85rem; margin-top: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Night shot feature */
.photo-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.photo-feature img { display: block; width: 100%; }
.photo-feature .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 34px 26px;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 4, 0.92));
}
.photo-feature h3 { color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.photo-feature p { color: var(--text-dim); font-size: 0.95rem; max-width: 60ch; }

/* Earth abundant banner */
.ea-banner {
  margin: 48px auto 0;
  padding: 34px clamp(20px, 4vw, 50px);
  text-align: center;
}
.ea-banner img {
  width: min(860px, 100%);
  filter: invert(0.92) sepia(0.14) saturate(1.4) hue-rotate(60deg);
  opacity: 0.9;
}

/* ============ Materials ============ */
.material-swap { display: block; font-weight: 700; font-size: 1.04rem; color: #fff; margin-bottom: 12px; }
.material-swap i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 4px;
}

/* ============ ESG ============ */
.esg-letter { font-size: 1.6em; font-weight: 800; }
.esg-letter.gold { color: var(--gold); }
.esg-letter.orange { color: var(--orange); }
.esg-letter.green { color: var(--green); }
.tag {
  align-self: flex-start;
  margin-top: 20px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 5px 13px;
  border-radius: 999px;
}
.card.product { display: flex; flex-direction: column; }
.card.product p { flex: 1; }

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.team-card { padding: 30px; }
.team-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.35rem;
  color: #10200f;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(243, 144, 25, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
  transition: transform 0.6s var(--ease-spring);
  overflow: hidden;
}
.team-avatar img {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.team-card:hover .team-avatar { transform: scale(1.1) rotate(-5deg); }
.team-card h3 { font-size: 1.12rem; }
.team-role {
  display: block;
  color: var(--gold);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  min-height: 2.4em;
}
.team-card p { font-size: 0.92rem; }
.team-lead-note { color: var(--text-faint); font-size: 0.9rem; margin-top: 30px; text-align: center; }

/* ============ Global + sloth ============ */
.global-band { position: relative; padding-top: clamp(150px, 18vw, 220px); }
.sloth-wrap {
  position: absolute;
  top: -12px;
  right: clamp(2%, 8vw, 12%);
  pointer-events: none;
  z-index: 3;
}
.sloth { display: block; animation: slothSway 7s ease-in-out infinite alternate; transform-origin: top center; }
@keyframes slothSway {
  from { transform: rotate(-1.6deg) translateY(0); }
  to { transform: rotate(1.8deg) translateY(4px); }
}
.cities { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.city {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--text);
  transition: transform 0.5s var(--ease-spring), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.city:hover { transform: translateY(-5px) scale(1.06); border-color: rgba(245, 197, 24, 0.45); background: rgba(245, 197, 24, 0.08); }

/* ============ Contact + hummingbird ============ */
.hummingbird-wrap {
  position: absolute;
  top: clamp(60px, 9vw, 120px);
  right: clamp(4%, 10vw, 14%);
  pointer-events: none;
  z-index: 3;
  animation: hbHover 5s ease-in-out infinite;
}
@keyframes hbHover {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-14px, -10px); }
  50% { transform: translate(6px, 8px); }
  75% { transform: translate(-8px, -4px); }
}
.hb-wing { transform-box: fill-box; transform-origin: 90% 95%; }
.hb-wing-front { animation: hbFlap 0.12s linear infinite alternate; }
.hb-wing-back { animation: hbFlapBack 0.12s linear infinite alternate; }
@keyframes hbFlap { from { transform: rotate(-24deg); } to { transform: rotate(26deg); } }
@keyframes hbFlapBack { from { transform: rotate(20deg); } to { transform: rotate(-18deg); } }

.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.contact-card h3 {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  margin: 24px 0 8px;
}
.contact-card h3:first-child { margin-top: 0; }
.contact-card p { color: var(--text-dim); font-size: 0.98rem; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.45s var(--ease-spring), background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.socials a:hover { transform: translateY(-4px) scale(1.1); background: var(--grad); color: #1b1206; }

.contact-form { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239fc4ad' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--bg-3); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.14);
  background: rgba(0, 0, 0, 0.4);
}
.field input.error, .field select.error, .field textarea.error {
  border-color: rgba(217, 83, 79, 0.7);
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.15);
}
textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--green-light); }
.form-status.err { color: #eb9c99; }

/* ============ Newsletter ============ */
.section-newsletter { padding-top: 0; }
.newsletter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding: 46px clamp(26px, 5vw, 58px);
}
.newsletter h2 { color: #fff; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.newsletter p { color: var(--text-dim); max-width: 44ch; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  font-family: inherit; font-size: 0.96rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 13px 22px;
  min-width: 260px;
  outline: none;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.newsletter-form input:focus { border-color: rgba(245, 197, 24, 0.55); box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.14); }
.newsletter .form-status { width: 100%; margin: 0; }

/* ============ CTA band ============ */
.cta-band { text-align: center; padding: clamp(70px, 9vw, 110px) 0; }
.cta-band h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 16px;
}
.cta-band p { color: var(--text-dim); max-width: 54ch; margin: 0 auto 34px; }

/* ============ Footer ============ */
.footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 8, 5, 0.85);
  padding: 70px 0 30px;
  margin-top: 100px;
}
.footer-canopy {
  position: absolute;
  left: 0; right: 0;
  top: -99px;
  width: 100%; height: 100px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 34px;
  padding-bottom: 44px;
}
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-faint); font-size: 0.92rem; margin-top: 10px; max-width: 26ch; }
.footer-col h4 {
  color: #fff; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ============ 404 ============ */
.page-404 {
  min-height: 88svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 5% 80px;
}
.page-404 h1 {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800; letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.page-404 p { color: var(--text-dim); margin: 18px 0 34px; font-size: 1.1rem; }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.975);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

.grid-3 .reveal:nth-child(2), .team-grid .reveal:nth-child(3n-1) { transition-delay: 0.1s; }
.grid-3 .reveal:nth-child(3), .team-grid .reveal:nth-child(3n) { transition-delay: 0.2s; }
.grid-3 .reveal:nth-child(4) { transition-delay: 0.07s; }
.grid-3 .reveal:nth-child(5) { transition-delay: 0.17s; }
.grid-3 .reveal:nth-child(6) { transition-delay: 0.27s; }
.about-cards .reveal:nth-child(2) { transition-delay: 0.12s; }
.about-cards .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .about-grid, .feature-split, .contact-split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toucan-perch { right: -30px; }
  .toucan-perch svg { width: 170px; }
  .sloth svg { width: 190px; }
  .leaf-cluster { opacity: 0.35; }
  .hanging-vines { opacity: 0.5; }
  .hanging-vines .hv:nth-child(n+3) { display: none; }
}

/* mobile: jungle decor off entirely — no overlap, no wasted GPU */
@media (max-width: 767px) {
  .foliage, .leaf-cluster, .hanging-vines, .divider-leaves { display: none; }
  .jungle-divider { height: 170px; }
  .sloth-wrap { display: none; }
}

@media (max-width: 640px) {
  .grid-3, .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: 26px; }
  .toucan-perch { display: none; }
  #toucanFly { display: none; }
  .hummingbird-wrap svg { width: 64px; }
  .jungle-divider { height: 190px; }
  .monkey { width: 132px; margin-left: -66px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 18, 13, 0.97);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 14px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring), visibility 0s linear 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring); }
  .nav-links a { padding: 13px 18px; text-align: center; }
  .nav { position: relative; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .w { opacity: 1; transform: none; filter: none; }
  #splash { display: none; }
  #toucanFly { display: none; }
}

/* =====================================================================
   Costa Rica nature layer — scrolling side foliage, butterfly, animal accents
   All desktop-only (hidden on tablet/mobile so they never overlap content).
   ===================================================================== */
.side-flora {
  position: fixed;
  bottom: -12px;
  z-index: 1;                 /* behind .container (z-index:2) */
  pointer-events: none;
  width: clamp(150px, 14vw, 250px);
  opacity: 0.92;
  will-change: transform;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
}
.side-flora.palm   { left: -18px;  transform-origin: bottom left;  animation: floraSwayL 9s ease-in-out infinite alternate; }
.side-flora.banana { right: -24px; transform-origin: bottom right; animation: floraSwayR 11s ease-in-out infinite alternate; }
@keyframes floraSwayL { from { rotate: -1.2deg; } to { rotate: 1.6deg; } }
@keyframes floraSwayR { from { rotate: 1.2deg; } to { rotate: -1.6deg; } }

/* Butterfly (blue morpho) — a symbol that drifts across on a loop */
.butterfly {
  position: fixed;
  z-index: 3;
  top: 0; left: 0;
  pointer-events: none;
  width: 46px; height: 40px;
  will-change: transform;
  opacity: 0.9;
}
.butterfly .bf-wing { transform-box: fill-box; transform-origin: 92% 50%; animation: flutter 0.34s ease-in-out infinite alternate; }
.butterfly .bf-wing.r { transform-origin: 8% 50%; }
@keyframes flutter {
  from { transform: rotateY(58deg); }
  to   { transform: rotateY(2deg); }
}

/* Photoreal animal accents tucked into sections */
.deco-animal { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.45)); }
.deco-frog  { width: clamp(70px, 8vw, 108px); bottom: 8%; left: clamp(6px, 3vw, 48px); animation: perchBob 6s ease-in-out infinite alternate; }
.deco-macaw { width: clamp(120px, 13vw, 190px); top: -18px; right: clamp(6px, 4vw, 70px); animation: perchBob 6.5s ease-in-out infinite alternate; }

@media (max-width: 1100px) {
  .side-flora { display: none; }
}
@media (max-width: 767px) {
  .butterfly, .deco-animal { display: none; }
}

/* =====================================================================
   World-class nature expansion — real monkey, hummingbirds, and
   curated CR fauna/flora accents.
   ===================================================================== */
.deco-animal { height: auto; }

/* Monkey now hangs from a REAL leafy liana (photo cut-out) that drapes down
   from the top of the divider to where the monkey grips it. */
.monkey-vine {
  position: absolute; top: -20px; left: 50%;
  width: clamp(96px, 10vw, 130px); height: auto;
  transform: translateX(-52%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.38));
}
.monkey { display: block; width: 150px; height: auto; margin-left: -75px; margin-top: 62px; }

/* Contact hummingbird (photo) — wrap still hovers via hbHover */
.hummingbird { display: block; width: 132px; height: auto; }

/* Scarlet macaw now flies in (wide) rather than perching (tall) */
.deco-macaw { width: clamp(150px, 17vw, 240px); top: -14px; right: clamp(6px, 4vw, 70px); }

/* New curated accents */
.deco-quetzal   { width: clamp(92px, 10vw, 150px); top: -12px;  right: clamp(4px, 5vw, 80px); }
.deco-heliconia { width: clamp(90px, 9vw, 140px);  top: -8px;   right: clamp(4px, 4vw, 56px); animation: floraSwayR 10s ease-in-out infinite alternate; }
.deco-dartfrog  { width: clamp(62px, 7vw, 96px);   bottom: 12%; left: clamp(6px, 4vw, 56px); }
.deco-iguana    { width: clamp(120px, 14vw, 200px); bottom: 6%; left: clamp(6px, 3vw, 44px); animation: none; }
.deco-jaguar    { width: clamp(160px, 20vw, 300px); bottom: 0;  right: clamp(0px, 3vw, 44px); animation: none; }
.deco-hummingbird2 { width: clamp(92px, 9vw, 130px); top: -6px; right: clamp(6px, 5vw, 72px); animation: perchBob 5s ease-in-out infinite alternate; }

@media (max-width: 767px) {
  .monkey { width: 184px; margin-left: -92px; margin-top: 46px; }
  .monkey-vine { width: 92px; }
  .hummingbird { width: 92px; }
}

/* Face the content: left-side animals were looking off the left edge — mirror them
   so they gaze inward toward the copy. (The jaguar already faces inward, so it's left alone.) */
.deco-frog, .deco-dartfrog, .deco-iguana { transform: scaleX(-1); }

/* =====================================================================
   Polish pass — consistent animal scale, no stranded accents, tighter layout
   ===================================================================== */
/* Consistent visual size: hold every accent to a similar ~150–190px footprint. */
.deco-frog        { width: 120px; top: auto; bottom: 7%;  left: clamp(8px, 4vw, 56px); }
.deco-dartfrog    { width: 178px; top: auto; bottom: 9%;  left: clamp(8px, 4vw, 56px); }
.deco-iguana      { width: 122px; top: auto; bottom: 7%;  left: clamp(8px, 3vw, 44px); }
.deco-macaw       { width: 210px; top: auto; bottom: 14%; right: clamp(8px, 4vw, 56px); }
.deco-quetzal     { width: 86px;  top: auto; bottom: 7%;  right: clamp(8px, 5vw, 64px); }
.deco-jaguar      { width: 196px; top: auto; bottom: 0;   right: clamp(0px, 3vw, 40px); }
.deco-hummingbird2{ width: 118px; top: 4px;  bottom: auto; right: clamp(8px, 5vw, 64px); }
.deco-heliconia   { width: 104px; top: -6px; bottom: auto; right: clamp(6px, 4vw, 52px); }

/* Monkey trimmed to match the set */
.monkey { width: 236px; height: auto; margin-left: -118px; margin-top: 58px; }

/* Tighter vertical rhythm across the site */
.section { padding: clamp(58px, 7vw, 100px) 0; }
.page-hero { padding: 138px 0 76px; }
.cta-band { padding: clamp(56px, 7vw, 92px) 0; }

/* Zigzag sides down the page; every animal mirrored to face inward.
   (All the animal cutouts naturally face left, so: right-side = no flip, left-side = scaleX(-1).) */
.deco-iguana  { left: auto; right: clamp(8px, 3vw, 44px); transform: none; }      /* -> right side, faces left/in */
.deco-quetzal { right: auto; left: clamp(8px, 5vw, 64px); transform: scaleX(-1); } /* -> left side, faces right/in */

/* =====================================================================
   Cohesion pass — real hanging plant, tighter rhythm, grounded flora
   ===================================================================== */
/* Real hanging-plant photo (replaces drawn vines) */
.hanging-vines { display: block; top: -8px; }
.vine-plant {
  display: block;
  width: clamp(96px, 10vw, 148px);
  height: auto;
  transform-origin: top center;
  animation: vineSway 9s ease-in-out infinite alternate;
  opacity: 0.92;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4));
}
@keyframes vineSway { from { transform: rotate(-2deg); } to { transform: rotate(2.4deg); } }

/* Tighter vertical rhythm site-wide */
.section   { padding: clamp(46px, 5.5vw, 82px) 0; }
.page-hero { padding: 112px 0 52px; }
.cta-band  { padding: clamp(44px, 5.5vw, 76px) 0; }

/* Ground the heliconia beside the battery content instead of floating up top */
.deco-heliconia { top: 9%; bottom: auto; right: clamp(6px, 3vw, 40px); width: 116px; }
