/* Shared motion system: calm, brief transitions and accessible reduced-motion behavior. */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: motion-rise 700ms cubic-bezier(.2,.7,.2,1) both; }
    .hero-emblem { animation: emblem-arrive 1100ms ease-out both; }
    .hero-pattern { animation: pattern-drift 36s linear infinite; }

    .motion-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
        transition-delay: var(--reveal-delay, 0ms);
    }
    .motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

    .site-header, .brand, .main-nav a, .button, .home-links a, .content-card img,
    .admin-content .inbox-card, .admin-content .theme-card, .admin-content .media-card,
    .admin-content .page-list, .admin-content .public-form, .admin-content .dashboard-panel,
    .admin-content .stat-card, .admin-content .quicklink-grid > a,
    .admin-content button, .admin-content .button, .admin-auth-body .login-card {
        transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
            box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
    }
    .button:hover, .home-links a:hover { transform: translateY(-2px); }
    .content-card img:hover { transform: scale(1.012); }
    .admin-motion-ready .admin-content { animation: motion-rise 360ms ease-out both; }
    .admin-motion-ready .admin-sidebar { transition: transform 240ms ease, width 240ms ease; }
    .admin-motion-ready .admin-content .public-form,
    .admin-motion-ready .admin-content .dashboard-panel,
    .admin-motion-ready .admin-content .stat-card { animation: motion-rise 420ms ease-out both; }
}

@keyframes motion-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes emblem-arrive {
    from { transform: translateY(-50%) scale(.92) rotate(-8deg); }
    to { transform: translateY(-50%) scale(1) rotate(0); }
}
@keyframes pattern-drift {
    to { background-position: 52px 52px, -52px 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .motion-reveal { opacity: 1 !important; transform: none !important; }
}
