/* ========================
   W's Physics - page enter animation
   Every page's <main> content rises in once when the page loads.
   (No cross-page transition — just a quick "in" animation on each page.)
   ======================== */
main {
    animation: page-in 420ms cubic-bezier(0.16, 1, 0.3, 1) backwards; /* no lingering transform after it ends (keeps fixed modals inside <main> correct) */
}
@keyframes page-in {
    from { opacity: 0; transform: translateY(20px); }
}

/* Thin progress bar, only shown when a page takes a moment to arrive */
#nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, #dc2626, #f43f5e);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
    transition: opacity 0.2s ease;
}
#nav-progress.running {
    opacity: 1;
    width: 80%;
    transition: width 6s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    main { animation: none; }
}
