/* xVibe - the cards that rise into view one by one (update 450; the banner of the first page was taken out in 451).
   The black "Noir" design of update 448 was taken out: the site looks as before it. Only this stayed, done by
   scripts/vibe-hero.js. With the two files missing the pages work the same. */

/* the cards under the screen rise into view (vibe-hero.js adds .nr-in; without JS nothing is hidden) */
html.nr-js .nr-rv { opacity: 0; transform: translateY(18px); }
html.nr-js .nr-rv.nr-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { html.nr-js .nr-rv { opacity: 1; transform: none; } }

/* the cards already on the screen when the page opens: one after the other (pure CSS, started by the "nr-pre" class the
   head of the page puts on <html>; "backwards" = after the move the card is a normal one again) */
@keyframes nr-card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.nr-pre .video:not(.nr-rv):not(.nr-done), html.nr-pre .short-card:not(.nr-rv):not(.nr-done) { animation: nr-card-in .55s cubic-bezier(.2, .8, .2, 1) backwards; }
html.nr-pre .video:nth-child(2), html.nr-pre .short-card:nth-child(2) { animation-delay: 60ms; }
html.nr-pre .video:nth-child(3), html.nr-pre .short-card:nth-child(3) { animation-delay: 120ms; }
html.nr-pre .video:nth-child(4), html.nr-pre .short-card:nth-child(4) { animation-delay: 180ms; }
html.nr-pre .video:nth-child(5), html.nr-pre .short-card:nth-child(5) { animation-delay: 240ms; }
html.nr-pre .video:nth-child(6), html.nr-pre .short-card:nth-child(6) { animation-delay: 300ms; }
html.nr-pre .video:nth-child(7), html.nr-pre .short-card:nth-child(7) { animation-delay: 360ms; }
html.nr-pre .video:nth-child(n+8), html.nr-pre .short-card:nth-child(n+8) { animation-delay: 420ms; }
@media (prefers-reduced-motion: reduce) { html.nr-pre .video, html.nr-pre .short-card { animation: none !important; } }
