/* =============================================================
   Limark Wellness — parallax.css
   Scroll-driven SVG decoration layer + ambient float animations
   ============================================================= */

/* ---- Parallax layer containers ------------------------------ */
.parallax-stage {
    position: relative;
    isolation: isolate;
}
.parallax-stage > :not(.parallax-layer):not(.parallax-float) {
    position: relative;
    z-index: 2;
}

.parallax-layer {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}
.parallax-layer svg {
    width: 100%; height: 100%; display: block;
}

.parallax-float {
    will-change: transform, opacity;
    pointer-events: none;
    opacity: 0.85;
}

/* ---- Ambient float animations ------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .parallax-float.is-floating[data-float="slow"] {
        animation: floatY 18s ease-in-out infinite;
    }
    .parallax-float.is-floating[data-float="medium"] {
        animation: floatY 12s ease-in-out infinite, floatSpin 40s linear infinite;
    }
    .parallax-float.is-floating[data-float="fast"] {
        animation: floatDrift 8s ease-in-out infinite;
    }

    @keyframes floatY {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50%      { transform: translate3d(0, -26px, 0); }
    }
    @keyframes floatDrift {
        0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
        33%      { transform: translate3d(14px, -18px, 0) rotate(3deg); }
        66%      { transform: translate3d(-10px, -8px, 0) rotate(-2deg); }
    }
    @keyframes floatSpin {
        from { transform: rotate(0); }
        to   { transform: rotate(360deg); }
    }
}

/* ---- Decoration presets ------------------------------------ */
.deco-blob {
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: multiply;
}
.deco-blob--purple { background: #E8DFF0; }
.deco-blob--berry  { background: #F7D3E2; }
.deco-blob--navy   { background: #D7DFEF; }
.deco-blob--gold   { background: #F0E0B4; }
.deco-blob--green  { background: #D6E3D0; }

/* ---- Ingredient flower (rotating ambient) ------------------ */
.deco-flower {
    position: absolute;
    width: 240px; height: 240px;
    opacity: 0.18;
    pointer-events: none;
}
.deco-flower svg { width: 100%; height: 100%; }

/* ---- Scroll draw paths ------------------------------------- */
[data-scroll-draw] {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Frame-by-frame grain for philosophy section ----------- */
.grain-overlay::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.035) 1px, transparent 1.5px);
    background-size: 24px 24px;
    mix-blend-mode: multiply;
    opacity: 0.6;
    z-index: 1;
}

/* ---- Big editorial word for Aesop-style section breaks ---- */
.editorial-word {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(8rem, 18vw, 22rem);
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: currentColor;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

/* ---- Nua-style decorative sprinkles ------------------------ */
.sprinkle {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    pointer-events: none;
}
