/* Zoom-overgang tussen pagina's (zie js/zoom.js) */
html.zoom-leaving { overflow: hidden; }
html.zoom-leaving body { pointer-events: none; }

.vz-focus {
  transition:
    transform .85s cubic-bezier(.6, 0, .25, 1),
    opacity .85s cubic-bezier(.5, 0, .7, .4),
    filter .85s ease-in;
  will-change: transform, opacity;
}
.vz-fade { transition: opacity .5s ease; }

html.zoom-go .vz-focus { transform: scale(2.6); opacity: 0; filter: blur(8px); }
html.zoom-go .vz-fade { opacity: 0; }

/* Aankomst op de nieuwe pagina: rustig uit de diepte naar voren */
@keyframes vz-arrive-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vz-arrive-zoom { from { transform: scale(1.12); filter: blur(6px); } to { transform: none; filter: none; } }
html.zoom-arrive body { animation: vz-arrive-fade .7s ease-out both; }
html.zoom-arrive main { animation: vz-arrive-zoom .95s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 20vh; }

@media (prefers-reduced-motion: reduce) {
  .vz-focus, .vz-fade { transition: none; }
  html.zoom-arrive body, html.zoom-arrive main { animation: none; }
}