/* Bewegingen voor de templates met "motion" in src/themes.js (body krijgt dan de klasse "motion"; zie themes/beweging.js).
   De welkomstfoto zoomt traag uit, de tekst schuift omhoog, een verend pijltje naar beneden, en blokken die bij het
   scrollen binnenkomen, op de startpagina en op de andere pagina's. Speelt ook wanneer het systeem "minder beweging"
   vraagt (bewuste keuze van de club).
   De fototegels van "Onze ploegen" springen zacht naar voren; hun opmaak blijft ongewijzigd. */

@keyframes mo-rise { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-title { from { opacity: 0; translate: 0 60px; letter-spacing: .04em; } to { opacity: 1; translate: 0 0; letter-spacing: var(--title-ls, -.02em); } }
@keyframes mo-zoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes mo-pop { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }
@keyframes mo-bounce { 0%, 100% { translate: -50% 0; } 50% { translate: -50% 9px; } }

.motion .hero-bg { animation: mo-zoom 9s cubic-bezier(.2, .6, .2, 1) both; will-change: translate; }
.motion .hero-text > * { animation: mo-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.motion .hero-text > h1 { animation-name: mo-title; animation-duration: 1.2s; animation-delay: .25s; }
.motion .hero-text > .lead { animation-delay: .6s; }
.motion .hero-text > .hero-cta { animation-delay: .8s; }
.motion .hero-crest { animation: mo-pop 1.1s cubic-bezier(.2, .7, .2, 1) .5s both; }

.motion .rv, .motion .rv-zoom { opacity: 0; }
.motion .rv.in { animation: mo-rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.motion .rv-zoom.in { animation: mo-pop .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }

.motion .hero:has(.hero-down) { padding-bottom: 64px; }
.hero-down { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; animation: mo-bounce 1.8s ease-in-out infinite; }
.hero-down::before { content: ""; position: absolute; left: 15px; top: 10px; width: 12px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.hero-down:hover::before { border-color: var(--green-500); }
