/**
 * MERAKY — Premium Modern Animation System
 * Smooth scroll reveals, staggered card entrances, micro-interactions,
 * subtle cursor follower, and zero-stuck fail-safe reliability.
 */

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-reveal: 1.1s;
    --dur-quick: 0.25s;
    --dur-normal: 0.4s;
}

/* ==========================================================================
   1. HERO ENTRANCE ANIMATIONS (Trigger on page load)
   ========================================================================== */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(36px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.93) translateY(24px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Apply entrance cascade to top hero elements */
/* Hero entrance animations only fire after loading screen completes (body.animations-ready) */
body.animations-ready .hero .eyebrow,
body.animations-ready .therapist-modern-hero .therapist-eyebrow-row,
body.animations-ready .profile-hero-card .profile-eyebrow-row,
body.animations-ready .section-sage .eyebrow {
    animation: heroFadeUp 1.0s var(--ease-out-expo) 0.08s both;
}

body.animations-ready .hero h1,
body.animations-ready .therapist-modern-hero-title,
body.animations-ready .profile-name,
body.animations-ready .section-sage h1 {
    animation: heroFadeUp 1.1s var(--ease-out-expo) 0.2s both;
}

body.animations-ready .hero .lead,
body.animations-ready .therapist-modern-hero-desc,
body.animations-ready .profile-role,
body.animations-ready .profile-credentials-box,
body.animations-ready .section-sage .lead {
    animation: heroFadeUp 1.1s var(--ease-out-expo) 0.32s both;
}

body.animations-ready .hero .btn-group,
body.animations-ready .profile-cta-group {
    animation: heroFadeUp 1.0s var(--ease-out-expo) 0.44s both;
}

body.animations-ready .hero-image-wrap,
body.animations-ready .therapist-features-card,
body.animations-ready .profile-hero-photo-wrap {
    animation: heroScaleIn 1.2s var(--ease-out-expo) 0.24s both;
}

/* ==========================================================================
   1B. HOME PAGE SPECIAL HERO ANIMATION SUITE (Cinematic & Atmospheric)
   ========================================================================== */

/* Cinematic Text Entrance with Blur Dissolve */
@keyframes verdantTextReveal {
    0% {
        opacity: 0;
        transform: translateY(32px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Glowing Verdant Accent Header Shimmer Wave */
@keyframes verdantShimmerText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Eyebrow Floating Glow Pulse */
@keyframes eyebrowPulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(246, 223, 210, 0.45), 0 4px 14px rgba(0, 0, 0, 0.15);
        border-color: rgba(246, 223, 210, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(246, 223, 210, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
        border-color: rgba(246, 223, 210, 0.65);
    }
}

/* Price Pill Breathing Glow */
@keyframes pricePillPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(246, 223, 210, 0.35), 0 4px 14px rgba(0, 0, 0, 0.18);
        border-color: rgba(246, 223, 210, 0.35);
    }
    50% {
        box-shadow: 0 0 22px 3px rgba(246, 223, 210, 0.25), 0 6px 22px rgba(0, 0, 0, 0.25);
        border-color: rgba(246, 223, 210, 0.7);
    }
}

/* Statue Cinematic Bloom Entrance */
@keyframes statueBloomEntrance {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(32px);
        filter: blur(14px) brightness(0.85);
    }
    60% {
        filter: blur(0px) brightness(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px) brightness(1);
    }
}

/* Continuous Calm Organic Floating Wave for the Statue */
@keyframes statueFloatSerene {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.35deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Atmospheric Sun-Dappled Aura Breathing behind Statue */
@keyframes statueAuraBreathe {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.08) translate(-4px, -6px);
    }
}

/* Stats Strip Cinematic Entrance */
@keyframes statsStripEnter {
    0% {
        opacity: 0;
        transform: translateY(32px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Stats Strip Top Border Shimmer Beam */
@keyframes borderBeamSweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Apply Home Hero Special Animations — all gated behind body.animations-ready */
body.animations-ready .verdant-hero .verdant-hero-eyebrow {
    animation: verdantTextReveal 1.05s var(--ease-out-expo) 0.08s both,
               eyebrowPulseGlow 4.5s ease-in-out infinite 1.3s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.verdant-hero .verdant-hero-eyebrow:hover {
    transform: translateY(-2px) scale(1.02);
}

body.animations-ready .verdant-hero h1 {
    animation: verdantTextReveal 1.15s var(--ease-out-expo) 0.2s both;
}

.verdant-hero h1 .verdant-accent-italic {
    background: linear-gradient(110deg, #F6DFD2 0%, #FFFFFF 35%, #F6DFD2 65%, #F6DFD2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: verdantShimmerText 8s ease-in-out infinite;
    display: inline-block;
}

body.animations-ready .verdant-hero-lead {
    animation: verdantTextReveal 1.15s var(--ease-out-expo) 0.32s both;
}

body.animations-ready .verdant-hero-sublead {
    animation: verdantTextReveal 1.15s var(--ease-out-expo) 0.42s both;
}

body.animations-ready .verdant-price-pill {
    animation: verdantTextReveal 1.05s var(--ease-out-expo) 0.52s both,
               pricePillPulse 3.5s ease-in-out infinite 1.6s;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.verdant-price-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(246, 223, 210, 0.75);
}

body.animations-ready .verdant-hero .btn-group {
    animation: verdantTextReveal 1.05s var(--ease-out-expo) 0.62s both;
}

/* Statue Image Wrap & Aura */
.verdant-hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.verdant-hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    background: radial-gradient(circle at 50% 45%, rgba(246, 223, 210, 0.28) 0%, rgba(92, 116, 107, 0.38) 45%, transparent 72%);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
    animation: statueAuraBreathe 7s ease-in-out infinite;
}

.verdant-statue-frame {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 4.4;
    box-shadow: 0 28px 65px -15px rgba(0, 0, 0, 0.55),
                0 0 40px rgba(246, 223, 210, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

body.animations-ready .verdant-statue-frame {
    animation: statueBloomEntrance 1.4s var(--ease-out-expo) 0.2s both,
               statueFloatSerene 8s ease-in-out infinite 1.65s;
}

/* Continuous float runs regardless of animations-ready (no entrance needed for infinite loops) */
body:not(.animations-ready) .verdant-statue-frame {
    animation: none;
}

.verdant-statue-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.verdant-hero-image-wrap:hover .verdant-statue-frame {
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.65),
                0 0 55px rgba(246, 223, 210, 0.3);
    border-color: rgba(246, 223, 210, 0.4);
}

.verdant-hero-image-wrap:hover .verdant-statue-frame img {
    transform: scale(1.045);
}

/* Stats Strip Special Entrance & Border Beam */
.verdant-stats-strip {
    position: relative;
    overflow: hidden;
}

body.animations-ready .verdant-stats-strip {
    animation: statsStripEnter 1.1s var(--ease-out-expo) 0.7s both;
}

.verdant-stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(246, 223, 210, 0.9) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: borderBeamSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.verdant-stat-col {
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s ease;
    border-radius: 12px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.verdant-stat-col:hover {
    transform: translateY(-3px);
}

.verdant-stat-col .verdant-stat-title {
    transition: color 0.3s ease;
}

.verdant-stat-col:hover .verdant-stat-title {
    color: #F6DFD2;
}

/* ==========================================================================
   2. SCROLL REVEAL SYSTEM (With Progressive Enhancement & Zero-Stuck Fallback)
   ========================================================================== */

/* Universal reveal element initial state: smooth fade-up */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--dur-reveal) var(--ease-out-expo),
                transform var(--dur-reveal) var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal-item.reveal-slide-left {
    transform: translateX(-48px);
}

.reveal-item.reveal-slide-right {
    transform: translateX(48px);
}

.reveal-item.reveal-scale {
    transform: scale(0.94);
}

.reveal-item.reveal-fade {
    transform: none;
}

/* Revealed State */
.reveal-item.is-revealed {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    transition-delay: var(--reveal-delay, 0ms);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Stagger calculation for siblings */
.stagger-group {
    --reveal-stagger: 90ms;
}

/* ==========================================================================
   3. CARD & ELEMENT MICRO-INTERACTIONS (Smooth Hover, Lift & Image Zoom)
   ========================================================================== */

/* Standard and Therapist Cards */
.card,
.pricing-card,
.therapist-modern-card,
.verdant-modality-card,
.profile-card,
.therapist-feature-item {
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo),
                border-color 0.3s ease,
                background-color 0.4s var(--ease-out-expo),
                background 0.4s var(--ease-out-expo),
                color 0.35s ease;
    will-change: transform, box-shadow;
}

.card:not(:has(form)):not(.pricing-card):not(:has(iframe)):hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -10px rgba(30, 38, 35, 0.35), 0 0 30px rgba(92, 116, 107, 0.25);
}

.pricing-card:hover,
.therapist-modern-card:hover,
.verdant-modality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px -12px rgba(47, 53, 50, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.04);
}


/* Frame Overflow & Image Zoom on Hover without Layout Shift */
.editorial-image-frame,
.hero-image-frame,
.verdant-arch-frame,
.verdant-statue-frame,
.therapist-photo-frame,
.profile-hero-photo-frame,
.profile-side-photo,
.verdant-modality-media {
    overflow: hidden;
    position: relative;
}

.editorial-image-frame img,
.hero-image-frame img,
.verdant-arch-frame img,
.verdant-statue-frame img,
.therapist-photo-frame img,
.profile-hero-photo-frame img,
.profile-side-photo img,
.verdant-modality-media img {
    transition: transform 0.65s var(--ease-out-expo);
    will-change: transform;
}

.editorial-image-frame:hover img,
.hero-image-frame:hover img,
.verdant-arch-wrap:hover .verdant-arch-frame img,
.therapist-modern-card:hover .therapist-photo-frame img,
.profile-hero-photo-wrap:hover .profile-hero-photo-frame img,
.verdant-modality-row:hover .verdant-modality-media img {
    transform: scale(1.045);
}

/* Floating Badges Gentle Idle Bobbing */
@keyframes subtleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.verdant-circle-badge,
.profile-badge-floating {
    animation: subtleFloat 4.5s ease-in-out infinite;
}

/* ==========================================================================
   4. BUTTON & LINK HOVER & CLICK FEEDBACK
   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-sage,
.btn-verdant-pill,
.btn-verdant-outline,
.btn-book-therapist,
.btn-profile-therapist,
.btn-explore-services,
.btn-profile-book {
    transition: transform 0.22s var(--ease-out-expo),
                box-shadow 0.22s ease,
                background-color 0.2s ease,
                color 0.2s ease;
    will-change: transform;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-sage:hover,
.btn-verdant-pill:hover,
.btn-verdant-outline:hover,
.btn-book-therapist:hover,
.btn-profile-therapist:hover,
.btn-explore-services:hover,
.btn-profile-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(47, 53, 50, 0.22);
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-sage:active,
.btn-verdant-pill:active,
.btn-verdant-outline:active,
.btn-book-therapist:active,
.btn-profile-therapist:active,
.btn-explore-services:active,
.btn-profile-book:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Header Links Subtle Underline Transition */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-forest, #005264);
    transition: width 0.25s var(--ease-out-expo);
    border-radius: 9999px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   5. THERAPIST DROPDOWN SMOOTH OPEN/CLOSE
   ========================================================================== */
.dropdown-menu {
    transition: opacity 0.24s var(--ease-out-expo),
                transform 0.24s var(--ease-out-expo),
                visibility 0.24s !important;
    transform: translateX(-50%) translateY(12px) !important;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.dropdown-chevron {
    transition: transform 0.25s var(--ease-out-expo);
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

/* ==========================================================================
   6. PREMIUM CURSOR EFFECT (Desktop Pointer Only, Non-intrusive)
   ========================================================================== */
#meraky-cursor-dot,
#meraky-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none !important;
    user-select: none !important;
    border-radius: 50%;
    z-index: 999999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.15s ease-out;
}

#meraky-cursor-dot {
    width: 7px;
    height: 7px;
    background-color: var(--color-forest, #1E4533);
}

.page-home #meraky-cursor-dot {
    background-color: #F6DFD2;
}

#meraky-cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(30, 69, 51, 0.35);
    transition: width 0.25s var(--ease-out-expo),
                height 0.25s var(--ease-out-expo),
                background-color 0.25s ease,
                border-color 0.25s ease,
                opacity 0.25s ease;
}

.page-home #meraky-cursor-ring {
    border-color: rgba(246, 223, 210, 0.45);
}

/* Cursor Hover State on Interactive Items */
#meraky-cursor-ring.cursor-active {
    width: 48px;
    height: 48px;
    background-color: rgba(30, 69, 51, 0.08);
    border-color: rgba(30, 69, 51, 0.55);
}

.page-home #meraky-cursor-ring.cursor-active {
    background-color: rgba(246, 223, 210, 0.12);
    border-color: rgba(246, 223, 210, 0.85);
}

#meraky-cursor-dot.cursor-active {
    transform: translate(-50%, -50%) scale(0.6);
}

/* Disable Custom Cursor on Touch Devices / Mobile */
@media (hover: none), (pointer: coarse), (max-width: 991px) {
    #meraky-cursor-dot,
    #meraky-cursor-ring {
        display: none !important;
    }
}

/* ==========================================================================
   7. AMBIENT GLOW ORBS & INTERACTIVE GRAPHICS
   ========================================================================== */
@keyframes ambientDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(18px, -14px) scale(1.06);
    }
    66% {
        transform: translate(-12px, 16px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes auroraBreathe {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.65;
    }
}

/* Subtle Ambient Radial Lighting in Hero Sections */
.hero,
.verdant-hero,
.therapist-modern-hero,
.section-sage {
    position: relative;
}

.hero::before,
.section-sage::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(92, 116, 107, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 16s ease-in-out infinite;
}

.verdant-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(246, 223, 210, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    animation: ambientDrift 20s ease-in-out infinite;
}

.verdant-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(92, 116, 107, 0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    animation: ambientDrift 24s ease-in-out infinite reverse;
}

/* Ensure content is positioned above ambient glows */
.hero .container,
.verdant-hero .container,
.section-sage .container {
    position: relative;
    z-index: 2;
}

/* Button Subtle Sheen Wave */
.btn-primary,
.btn-verdant-pill,
.btn-book-therapist,
.btn-profile-book {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-verdant-pill::after,
.btn-book-therapist::after,
.btn-profile-book::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    transition: transform 0.65s ease;
}

.btn-primary:hover::after,
.btn-verdant-pill:hover::after,
.btn-book-therapist:hover::after,
.btn-profile-book:hover::after {
    transform: translateX(380%) rotate(30deg);
}

/* ==========================================================================
   8. PAGE PRELOADER & LOADING ANIMATION
   ========================================================================== */
#site-preloader,
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7F5F0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.site-preloader.preloader-hidden .preloader-inner {
    transform: scale(0.94);
}

/* Emblem & Spinning Ring */
.preloader-emblem {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(92, 116, 107, 0.14);
    border-top-color: #5C746B;
    border-right-color: #F6DFD2;
    animation: preloaderSpin 1.1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.preloader-emblem::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 223, 210, 0.35) 0%, transparent 70%);
    animation: preloaderPulse 2s ease-in-out infinite;
    z-index: 0;
}

.preloader-leaf-icon {
    position: relative;
    z-index: 1;
    color: #005264;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderBreathe 2s ease-in-out infinite;
}

/* Brand Text */
.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.preloader-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #003E4B;
    line-height: 1;
}

.preloader-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #637367;
}

/* Progress Line Track */
.preloader-progress-track {
    width: 140px;
    height: 3px;
    background: rgba(0, 82, 100, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #005264 0%, #5C746B 50%, #F6DFD2 100%);
    border-radius: 9999px;
    animation: preloaderProgress 1.4s ease-in-out infinite;
    transform-origin: left;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes preloaderBreathe {
    0%, 100% { transform: scale(0.95); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderProgress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   9. ACCESSIBILITY: REDUCED MOTION PREFERENCE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html.has-motion .reveal-item,
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #site-preloader {
        display: none !important;
    }

    #meraky-cursor-dot,
    #meraky-cursor-ring {
        display: none !important;
    }
}

