/* Homepage-only opening motion. Existing content and layout stay intact. */
body.fm-home-motion .page-loader { display: none; }

/* Keep the first useful view readable immediately, including without JavaScript. */
.fm-home-motion .hero::before,
.fm-home-motion .hero::after,
.fm-home-motion .hero-deco,
.fm-home-motion .hero-badge,
.fm-home-motion .hero h1,
.fm-home-motion .hero h1 span,
.fm-home-motion .hero p,
.fm-home-motion .hero .button-group,
.fm-home-motion .hero-image-container,
.fm-home-motion .hero-image-float,
.fm-home-motion .hero .scroll-indicator {
    animation: none;
}
.fm-home-motion .hero-glow { display: none; }
.fm-home-motion .hero-image-container > img {
    transition: none;
    transform: none;
}
.fm-home-motion .hero-image-container:hover > img { transform: none; }

/* One restrained accent above the photo, without covering its subject or badge. */
.fm-home-motion .hero-image-container::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 22px;
    width: min(32%, 140px);
    height: 3px;
    border-radius: 2px;
    background: #f97316;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .fm-home-motion .hero h1 {
        animation: fm-home-title-settle 700ms cubic-bezier(.16, 1, .3, 1) both;
    }
    .fm-home-motion .hero-image-container.fm-home-image-entered > img {
        animation: fm-home-photo-settle 1800ms cubic-bezier(.16, 1, .3, 1) both;
    }
    .fm-home-motion .hero-image-container.fm-home-image-entered::before {
        animation: fm-home-photo-accent 1200ms 150ms cubic-bezier(.16, 1, .3, 1) both;
    }
}
@keyframes fm-home-title-settle {
    from { transform: translateY(14px); }
    to { transform: none; }
}
@keyframes fm-home-photo-settle {
    from { transform: scale(1.025); }
    to { transform: none; }
}
@keyframes fm-home-photo-accent {
    0% { opacity: 0; transform: scaleX(0); }
    35% { opacity: .85; }
    100% { opacity: .6; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .fm-home-motion .hero h1,
    .fm-home-motion .hero-image-container,
    .fm-home-motion .hero-image-container > img,
    .fm-home-motion .hero-image-float {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .fm-home-motion .hero-image-container::before {
        animation: none !important;
        transform: none !important;
        opacity: 0;
    }
}
