/* Home page motion layer. Adds 2D and 3D movement to the existing content only;
   no layout, colour or copy changes. Everything is transform/opacity, and all of it
   is gated behind prefers-reduced-motion: no-preference. */
@media (prefers-reduced-motion: no-preference) {

    /* ---------- Hero: depth stage ---------- */
    .marketing-home .hm-stage { perspective: 1200px; }
    .marketing-home .marketing-showcase-frame {
        transform-style: preserve-3d;
        transform: translate3d(0, var(--hm-py, 0px), 0) rotateX(var(--hm-rx, 0deg)) rotateY(var(--hm-ry, 0deg));
        transition: transform .5s cubic-bezier(.16, 1, .3, 1);
        will-change: transform;
    }
    .marketing-home .marketing-showcase-frame img {
        transform: translate3d(calc(var(--hm-mx, 0) * -14px), calc(var(--hm-my, 0) * -10px), 0) scale(1.08);
        transition: transform .6s cubic-bezier(.16, 1, .3, 1);
    }
    /* Floating check-in card sits in front of the photo and drifts against it. */
    .marketing-home .hm-float {
        translate: calc(var(--hm-mx, 0) * 18px) calc(var(--hm-my, 0) * 12px) 70px;
        transition: translate .6s cubic-bezier(.16, 1, .3, 1);
    }
    /* Light that follows the cursor across the photo. */
    .marketing-home .hm-glare {
        position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
        background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 60%);
        transition: opacity .4s ease; z-index: 3;
    }
    .marketing-home .hm-tilt:hover > .hm-glare,
    .marketing-home .marketing-showcase-frame.is-live > .hm-glare { opacity: 1; }

    /* ---------- Hero headline: rise-in lines and a moving sheen on the accent words ---------- */
    .marketing-home h1 .italic {
        background: linear-gradient(100deg, var(--primary, #7e22ce) 20%, var(--accent-gold, #d97706) 50%, var(--primary, #7e22ce) 80%);
        background-size: 220% 100%;
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
        animation: hm-sheen 7s ease-in-out infinite;
    }
    @keyframes hm-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

    /* Entrance: cards swing up from a tilted plane, staggered by the existing delay classes. */
    .marketing-home .hm-flip[data-reveal]:not(.revealed) {
        opacity: 0;
        transform: perspective(1000px) rotateX(26deg) rotateY(-8deg) translate3d(0, 64px, -80px) !important;
    }
}
