/* ==========================================================================
   ANIMATIONS — overgangen tussen secties en kleine accenten.
   Alles wordt uitgezet bij prefers-reduced-motion.
   ========================================================================== */

/* Elementen die bij het scrollen in beeld komen. */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity .72s var(--ease-out),
		transform .72s var(--ease-out);
	will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Getrapte vertraging binnen een groep (kaarten, stappen, USP's). */
.js .reveal-group > * {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity .68s var(--ease-out),
		transform .68s var(--ease-out);
}
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .2s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .44s; }

/* Beeld dat rustig openveegt: gebruikt bij grote sectiebeelden. */
.js .reveal-media {
	clip-path: inset(0 0 100% 0);
	transition: clip-path 1.05s var(--ease-out);
}
.js .reveal-media.is-visible { clip-path: inset(0 0 0 0); }

/* Zachte overgang tussen een lichte en donkere sectie. */
.edge-fade { position: relative; }
.edge-fade::before {
	content: "";
	position: absolute;
	top: -1px; left: 0; right: 0;
	height: 90px;
	background: linear-gradient(to bottom, var(--c-cream), transparent);
	pointer-events: none;
}
.edge-fade--dark::before {
	background: linear-gradient(to bottom, var(--c-deep), transparent);
}

/* Golvende scheiding onder donkere secties. */
.wave {
	display: block;
	width: 100%;
	height: clamp(38px, 5vw, 72px);
	color: var(--c-cream);
}
.wave--flip { transform: rotate(180deg); }

/* Hero-inhoud die na het laden binnenkomt. */
.js .hero__content > * {
	opacity: 0;
	transform: translateY(20px);
	animation: riseIn .9s var(--ease-out) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: .08s; }
.hero__content > *:nth-child(2) { animation-delay: .16s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .32s; }
.hero__content > *:nth-child(5) { animation-delay: .4s; }
.js .hero__card { animation: riseIn 1s var(--ease-out) .34s backwards; }

/* Parallax-laag voor het bos in de hero. */
.parallax { will-change: transform; transition: transform .2s linear; }

/* Onderstreping die meeloopt met de muis op tekstlinks. */
.link-underline {
	background-image: linear-gradient(var(--c-lime), var(--c-lime));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	text-decoration: none;
	transition: background-size .38s var(--ease-out);
}
.link-underline:hover { background-size: 100% 2px; }

/* Teller die oploopt (JS voegt is-counting toe). */
.counter { font-variant-numeric: tabular-nums; }

@keyframes riseIn {
	to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
	to { transform: scale(1); }
}

@keyframes pulse {
	0%   { box-shadow: 0 0 0 0 rgba(183, 217, 76, .6); }
	70%  { box-shadow: 0 0 0 10px rgba(183, 217, 76, 0); }
	100% { box-shadow: 0 0 0 0 rgba(183, 217, 76, 0); }
}

@keyframes nudge {
	0%, 100% { transform: translate(-50%, 0); opacity: .5; }
	50%      { transform: translate(-50%, 8px); opacity: 1; }
}

@keyframes sway {
	0%, 100% { transform: rotate(-1.2deg); }
	50%      { transform: rotate(1.2deg); }
}

.sway { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }

/* --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.reveal,
	.reveal-group > *,
	.hero__content > *,
	.hero__card {
		opacity: 1 !important;
		transform: none !important;
	}
	.reveal-media { clip-path: none !important; }
}

/* == EMB v16 - afbeeldingen niet meer invliegen == */
/* De clip-path-reveal liet foto’s pas na een seconde verschijnen en
   voelde als een trage laadtijd. Foto’s staan er nu meteen. */
.reveal-media{ clip-path:none !important; transition:none !important; }
