/* GVIS Meadow — motion & FX layer (birds, clouds, petals, shapes, kindergarten world). Decorative, aria-hidden, respects reduced motion. */

.fx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.fx-layer.top { z-index: 4; }

/* ---------- Birds ---------- */
.fx-bird { position: absolute; left: 0; top: 0; width: 46px; height: 24px; animation: birdFly linear infinite; will-change: transform; }
.fx-bird .bob { width: 100%; height: 100%; animation: birdBob 3s ease-in-out infinite; }
.fx-bird svg { width: 100%; height: 100%; overflow: visible; }
.fx-bird .wl, .fx-bird .wr { transform-box: fill-box; animation: flap .55s ease-in-out infinite alternate; }
.fx-bird .wl { transform-origin: 100% 60%; }
.fx-bird .wr { transform-origin: 0% 60%; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes birdFly { from { transform: translateX(-8vw); } to { transform: translateX(108vw); } }
@keyframes birdFlyRev { from { transform: translateX(108vw) scaleX(-1); } to { transform: translateX(-8vw) scaleX(-1); } }
@keyframes birdBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Clouds ---------- */
.fx-cloud { position: absolute; left: 0; opacity: .5; animation: cloudDrift linear infinite; filter: blur(2px) drop-shadow(0 6px 10px rgba(0,0,0,.08)); }
.fx-cloud svg { width: 100%; height: auto; display: block; }
@keyframes cloudDrift { from { transform: translateX(-25vw); } to { transform: translateX(110vw); } }

/* ---------- Petals / flowers ---------- */
.fx-petal { position: absolute; top: -40px; left: 0; animation: petalFall linear infinite; will-change: transform; }
.fx-petal .sw { animation: petalSway ease-in-out infinite alternate; }
.fx-petal svg { display: block; animation: spin 7s linear infinite; }
@keyframes petalFall { from { transform: translateY(-40px); } to { transform: translateY(var(--fall, 110vh)); } }
@keyframes petalSway { from { transform: translateX(-26px) rotate(-12deg); } to { transform: translateX(26px) rotate(12deg); } }

/* ---------- Floating geometric shapes (breadcrumb) ---------- */
.fx-shape { position: absolute; opacity: .55; will-change: transform; }
.fx-shape.circle { border-radius: 50%; border: 3px solid currentColor; }
.fx-shape.dot { border-radius: 50%; background: currentColor; }
.fx-shape.square { border: 3px solid currentColor; border-radius: 6px; }
.fx-shape.tri { width: 0 !important; height: 0 !important; border-left: var(--s) solid transparent; border-right: var(--s) solid transparent; border-bottom: calc(var(--s) * 1.7) solid currentColor; opacity: .35; }
.fx-shape.plus::before, .fx-shape.plus::after { content: ""; position: absolute; background: currentColor; border-radius: 3px; }
.fx-shape.plus::before { left: 40%; top: 0; width: 20%; height: 100%; }
.fx-shape.plus::after { top: 40%; left: 0; height: 20%; width: 100%; }
.fx-shape.ring { border-radius: 50%; border: 6px dashed currentColor; opacity: .3; }
.fx-shape.zig svg, .fx-shape.wave svg { width: 100%; height: 100%; overflow: visible; }
.m-float1 { animation: mf1 9s ease-in-out infinite; }
.m-float2 { animation: mf2 12s ease-in-out infinite; }
.m-spin { animation: spin 18s linear infinite; }
.m-pulse { animation: mpulse 4s ease-in-out infinite; }
@keyframes mf1 { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(30px, -26px) rotate(60deg); } 66% { transform: translate(-22px, 18px) rotate(-30deg); } }
@keyframes mf2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-40px, -30px) rotate(180deg); } }
@keyframes mpulse { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.35); opacity: .2; } }
.page-hero .wave-edge { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 3; }
.page-hero .wave-edge svg { width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.page-hero .mini-sun { position: absolute; right: 8%; top: 22%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #ffd46b 0%, #ffb627 45%, rgba(255, 127, 17, 0) 70%); opacity: .55; animation: mpulse 6s ease-in-out infinite; z-index: 1; }
.page-hero .page-sticker { position: absolute; right: 6%; bottom: 60px; width: clamp(80px, 11vw, 150px); z-index: 2; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); animation: bob 6s ease-in-out infinite; }
@media (max-width: 767px) { .page-hero .page-sticker { width: 70px; right: 4%; bottom: 40px; opacity: .9; } }

/* ---------- Bubbles (parallax / stats) ---------- */
.fx-bubble { position: absolute; bottom: -60px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .3); animation: bubbleUp linear infinite; }
@keyframes bubbleUp { from { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-120vh) translateX(40px); opacity: 0; } }

/* ---------- Butterflies ---------- */
.fx-butterfly { position: absolute; width: 34px; height: 30px; animation: bflyPath ease-in-out infinite; }
.fx-butterfly svg { width: 100%; height: 100%; overflow: visible; }
.fx-butterfly .w1, .fx-butterfly .w2 { transform-box: fill-box; animation: bflap .22s ease-in-out infinite alternate; }
.fx-butterfly .w1 { transform-origin: 100% 50%; }
.fx-butterfly .w2 { transform-origin: 0% 50%; }
@keyframes bflap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@keyframes bflyPath { 0% { transform: translate(0, 0) rotate(8deg); } 25% { transform: translate(120px, -60px) rotate(-6deg); } 50% { transform: translate(240px, 10px) rotate(10deg); } 75% { transform: translate(110px, 70px) rotate(-8deg); } 100% { transform: translate(0, 0) rotate(8deg); } }

/* ---------- Kindergarten sticker motion ---------- */
.kg-stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.kg-walk { position: absolute; bottom: 6px; left: 0; height: var(--h, 90px); animation: kgWalk linear infinite; will-change: transform; }
.kg-walk img { height: 100%; width: auto; animation: kgStep .6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.kg-walk.flip img { transform: scaleX(-1); animation-name: kgStepFlip; }
@keyframes kgWalk { from { transform: translateX(-20vw); } to { transform: translateX(115vw); } }
@keyframes kgStep { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
@keyframes kgStepFlip { from { transform: scaleX(-1) translateY(0) rotate(-2deg); } to { transform: scaleX(-1) translateY(-6px) rotate(2deg); } }
.kg-fly { position: absolute; left: 0; top: 0; width: var(--w, 120px); animation: kgFly linear infinite; will-change: transform; }
.kg-fly img { width: 100%; height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
@keyframes kgFly { from { transform: translate(-20vw, var(--y1, 40vh)) rotate(var(--r, 0deg)); } to { transform: translate(115vw, var(--y2, 5vh)) rotate(var(--r, 0deg)); } }
.kg-flyrev { animation-name: kgFlyRev; }
@keyframes kgFlyRev { from { transform: translate(115vw, var(--y1, 20vh)); } to { transform: translate(-25vw, var(--y2, 30vh)); } }
.kg-float { position: absolute; width: var(--w, 90px); animation: kgFloat ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .2)); }
.kg-float img { width: 100%; height: auto; }
@keyframes kgFloat { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(18px, -22px) rotate(4deg); } 50% { transform: translate(-6px, -38px) rotate(10deg); } 75% { transform: translate(-20px, -14px) rotate(-2deg); } }
.kg-spin { animation: spin 30s linear infinite; }
.fx-star { position: absolute; top: -40px; animation: starFall linear infinite; }
.fx-star img, .fx-star svg { width: 100%; height: auto; display: block; animation: spin 4s linear infinite; }
@keyframes starFall { 0% { transform: translateY(-40px) translateX(0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(var(--fall, 100vh)) translateX(var(--drift, 60px)); opacity: .2; } }
.fx-twinkle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); animation: twinkle ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.fx-shoot { position: absolute; width: 140px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); border-radius: 2px; transform: rotate(-25deg); animation: shoot linear infinite; opacity: 0; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(-25deg); } 4% { opacity: 1; } 12% { opacity: 0; transform: translate(-380px, 180px) rotate(-25deg); } 100% { opacity: 0; transform: translate(-380px, 180px) rotate(-25deg); } }


@media (max-width: 767px) {
  .fx-bird { width: 32px; height: 17px; }
  .kg-walk { --h: 64px !important; }
  .kg-fly { --w: 80px !important; }
  .kg-float { --w: 60px !important; }
  .kg-hero { padding: 90px 0 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fx-layer, .kg-stage { display: none !important; }
}

/* ---------- Meadow additions ---------- */
.fx-letter { position: absolute; font-family: 'Fredoka', sans-serif; font-weight: 700; color: currentColor; opacity: .35; will-change: transform; text-shadow: 0 4px 0 rgba(0,0,0,.08); }
.fx-plane { position: absolute; left: 0; width: 54px; animation: planeFly linear infinite; will-change: transform; }
.fx-plane svg { width: 100%; height: auto; overflow: visible; }
@keyframes planeFly { 0% { transform: translate(-10vw, 40px) rotate(-8deg); } 50% { transform: translate(50vw, -20px) rotate(4deg); } 100% { transform: translate(110vw, 30px) rotate(-6deg); } }
.fx-balloon { position: absolute; bottom: -140px; width: 54px; animation: balloonUp linear infinite; will-change: transform; }
.fx-balloon svg { width: 100%; height: auto; animation: balloonSway 4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes balloonUp { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--rise, 900px))); } }
@keyframes balloonSway { from { transform: rotate(-6deg) translateX(-8px); } to { transform: rotate(6deg) translateX(8px); } }
.fx-kite { position: absolute; width: 70px; animation: kiteFloat ease-in-out infinite; transform-origin: 50% 10%; }
.fx-kite svg { width: 100%; height: auto; overflow: visible; }
@keyframes kiteFloat { 0%, 100% { transform: translate(0, 0) rotate(-10deg); } 50% { transform: translate(30px, -24px) rotate(12deg); } }
.fx-sun { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ffe066 0 34%, transparent 35%), repeating-conic-gradient(rgba(255, 207, 0, .75) 0 7deg, transparent 7deg 22deg); animation: spin 50s linear infinite; }
.fx-confetti { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: confettiFall linear infinite; }
@keyframes confettiFall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(var(--fall, 600px)) rotate(720deg); } }
.fx-firefly { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffe680; box-shadow: 0 0 12px 4px rgba(255, 224, 102, .7); animation: firefly ease-in-out infinite alternate; }
@keyframes firefly { 0% { transform: translate(0, 0); opacity: .1; } 50% { opacity: 1; } 100% { transform: translate(var(--dx, 40px), var(--dy, -40px)); opacity: .2; } }
.fx-cloud-kg { position: absolute; left: 0; animation: cloudDrift linear infinite; opacity: .95; }
.fx-cloud-kg svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.06)); }
.kg-hero .kg-sky { position: absolute; inset: 0; z-index: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .fx-balloon { width: 38px; } .fx-kite { width: 48px; } .fx-plane { width: 38px; } }
