/**
 * ZINOX — Smooth page transitions (MPA)
 * No blank overlay — crossfade-style content only.
 */

:root {
    --zinox-page-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* First visit: visible immediately */
html.zinox-page-ready body {
    opacity: 1;
    transform: none;
}

/* Enter after internal navigation — opacity only (transform on body breaks position:fixed nav) */
html.zinox-page-from-nav body {
    opacity: 0.94;
}

html.zinox-page-from-nav.zinox-page-ready body {
    opacity: 1;
    transform: none;
    transition: opacity 0.22s var(--zinox-page-ease);
}

/* Leave current page — quick dip, no full hide */
html.zinox-page-leaving body {
    opacity: 0.92;
    transform: none;
    transition: opacity 0.14s ease;
}

/* Overlay disabled — was causing blank flash between pages */
.zinox-page-overlay {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html.zinox-page-from-nav body,
    html.zinox-page-leaving body {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
