/**
 * Mobile-only homepage performance: lighter paint, fewer animations, simpler effects.
 * Desktop (min-width: 768px) is unchanged.
 */
@media (max-width: 767.98px) {
    /* Hide decorative background layers (large DOM + blur cost) */
    body.is-home-page .premium-pupil-bg,
    body.is-home-page .premium-pupil-bg--orbs,
    body.is-home-page .premium-pupil-bg--glitter,
    body.is-home-page .bubbles-container,
    body.is-home-page .premium-home-bg-accent,
    body.is-home-page .premium-montessori-float-layer,
    body.is-home-page .premium-hero-craft,
    body.is-home-page .premium-hero-mock-floating-deco,
    body.is-home-page .premium-hero-mock-ambient,
    body.is-home-page .mmw-xp__particles,
    body.is-home-page .mmw-xp__orb,
    body.is-home-page .premium-home-conversion-banner__particles,
    body.is-home-page .premium-home-conversion-banner__rays,
    body.is-home-page .premium-home-conversion-banner__glow {
        display: none !important;
    }

    /* Skip full-screen loader delay on mobile */
    body.is-home-page #page-premium-loader {
        display: none !important;
    }

    /* Disable heavy motion on decorative layers only — keep navbar transitions usable */
    body.is-home-page .premium-pupil-bg,
    body.is-home-page .premium-pupil-bg *,
    body.is-home-page .premium-home-bg-accent,
    body.is-home-page .premium-home-bg-accent *,
    body.is-home-page .bubbles-container,
    body.is-home-page .bubbles-container *,
    body.is-home-page .reveal-up,
    body.is-home-page .premium-hero-enter,
    body.is-home-page .hero-ref-anim {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    body.is-home-page #navbar,
    body.is-home-page #navbar * {
        transition-duration: 0.2s !important;
    }

    body.is-home-page .reveal-up,
    body.is-home-page .premium-hero-enter,
    body.is-home-page .premium-io-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hero ref-layout: preserve subtle entrance on mobile (shorter, no infinite float) */
    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim {
        animation-duration: 0.55s !important;
        animation-iteration-count: 1 !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--fade-up,
    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--stat {
        animation-duration: 0.55s !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--card {
        animation-duration: 0.5s !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .hero-ref-anim--scale-in {
        animation-duration: 0.45s !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__visual-composition.hero-ref-anim--image {
        animation: heroRefImageIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
        animation-delay: var(--hero-anim-delay, 0.04s) !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__btn,
    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__feature-card {
        transition-duration: 0.28s !important;
    }

    body.is-home-page .premium-flagship-diploma__card,
    body.is-home-page .premium-mock-course-card,
    body.is-home-page .premium-gv-card,
    body.is-home-page .premium-product-card,
    body.is-home-page .premium-blog-post-card,
    body.is-home-page .premium-mock-testimonial-card {
        box-shadow: 0 6px 18px rgba(15, 32, 68, 0.08) !important;
    }

    body.is-home-page .premium-hero-banner-mock,
    body.is-home-page .premium-hero-cinematic {
        min-height: auto !important;
    }

    body.is-home-page .premium-hero-mock-photo-stage--organic,
    body.is-home-page .premium-hero-ref__visual-composition,
    body.is-home-page .premium-hero-ref__image-stage,
    body.is-home-page .premium-hero-academic__image-stage,
    body.is-home-page .mmw-xp__visual-shell {
        filter: none !important;
        backdrop-filter: none !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-hero-ref__circle-clip {
        box-shadow: 0 12px 28px rgba(87, 134, 199, 0.12) !important;
    }

    body.is-home-page .premium-hero-banner-mock--ref-layout .premium-home-hero-wrap,
    body.is-home-page .premium-hero-banner-mock--ref-layout {
        overflow-x: clip !important;
        min-height: auto !important;
    }

    /* Hero copy must stay readable on small white screens */
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line,
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--1,
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--2,
    body.is-home-page .premium-hero-ref__title .premium-hero-mock-title__line--3 {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body.is-home-page .premium-hero-ref__lead,
    body.is-home-page .premium-hero-mock-sub {
        color: #334155 !important;
        -webkit-text-fill-color: #334155;
        font-weight: 600;
        opacity: 1 !important;
    }

    body.is-home-page .premium-hero-ref__lead.premium-hero-mock-sub--custom-color {
        color: var(--ph-desc-color) !important;
        -webkit-text-fill-color: var(--ph-desc-color);
    }

    /* Simpler swiper: no autoplay arrows hidden until needed */
    body.is-home-page .premium-swiper-dots-shell {
        margin-top: 0.75rem;
    }
}
