/*
 * Voorzit: alleen /functies/. Laadt na systeem.css (inc/enqueue.php).
 *
 * Vorm C, zoals de homepage: losse tekst, geen kaarten, het toestel met een scherm uit de
 * voorbeeldclub. Steal sheet: ux-onderzoek/steal-sheet-functies.md. Elke waarde komt uit
 * tokens.css; de verhoudingen van de toestellen en de maten in em van de sticker en de bolletjes
 * staan ook in pagina-home.css. De sticker (.vks-plak) en het vallen van de woorden (.vks-w)
 * staan hier en op de homepage: kandidaat om naar systeem.css te verhuizen, na overleg.
 *
 * Volgorde per onderdeel: basis, smal scherm, hover (alleen waar hover bestaat), en onderaan de
 * beweging voor wie die aan heeft staan.
 */

.vks-functies-pagina {
	overflow-x: clip;
}

/* ------------------------------------------------------------------ Gedeeld */

.vks-w {
	display: inline-block;
}

/* De sticker, zoals om het laatste woord van de kop op de homepage. */
.vks-plak {
	display: inline-block;
	padding: 0 0.22em 0.06em;
	border-radius: 0.22em;
	background: var(--kleur-actie);
	color: var(--kleur-op-actie);
	box-shadow: var(--schaduw-sticker);
	rotate: -2.5deg;
	transition: rotate var(--motion-duur-wissel) var(--motion-easing-veer), scale var(--motion-duur-wissel) var(--motion-easing-veer);
}

/* Het bolletje van een groep: de drie leden uit de kop van de homepage, elk een kleur. */
.vks-stip {
	display: inline-block;
	flex: none;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	box-shadow: inset 0 0 0 0.055em var(--kleur-tekst);
	transition: translate var(--motion-duur-wissel) var(--motion-easing-veer);
}

.vks-stip--actie {
	background: var(--kleur-actie);
}

.vks-stip--vlak {
	background: var(--kleur-vlak);
}

.vks-stip--tekst {
	background: var(--kleur-tekst);
}

.vks-sectiekop {
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-h2);
	font-weight: var(--type-gewicht-display);
	line-height: var(--type-regel-kop);
	letter-spacing: var(--type-spatiering-display);
}

/* ------------------------------------------------------------------ De kop */

.vks-fhero {
	padding-block: clamp(1.5rem, 4vw, 3.25rem) var(--ruimte-6);
}

.vks-fhero__kop {
	max-width: 13ch;
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-display);
	font-weight: var(--type-gewicht-display);
	line-height: var(--type-regel-display);
	letter-spacing: var(--type-spatiering-display);
}

.vks-fhero__zin {
	max-width: 32rem;
	margin-top: var(--ruimte-4);
	color: var(--kleur-tekst-zacht);
	font-size: var(--type-schaal-inleiding);
}

/* De index: het bolletje van de groep, het aantal en voor wie. Smal staan de drie naast elkaar
   met het label onder het aantal, zodat de kop het eerste toestel niet uit beeld duwt. */
.vks-index ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ruimte-3);
	margin: var(--ruimte-5) 0 0;
	padding: 0;
	list-style: none;
}

.vks-index a {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 var(--ruimte-2);
	align-items: center;
	min-height: var(--ruimte-klik);
	color: var(--kleur-tekst);
	font-size: var(--type-schaal-klein);
	font-weight: var(--type-gewicht-sterk);
	line-height: var(--type-regel-kop);
	text-decoration: none;
}

.vks-index a > span {
	grid-column: 1 / -1;
}

@media (min-width: 48em) {
	.vks-index ul {
		display: flex;
		flex-wrap: wrap;
		gap: var(--ruimte-2) var(--ruimte-7);
		margin-top: var(--ruimte-6);
	}

	.vks-index a {
		display: inline-flex;
		gap: var(--ruimte-2);
		font-size: var(--type-schaal-h3);
	}
}

.vks-index b {
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-h2);
	font-weight: var(--type-gewicht-display);
	line-height: 1;
	letter-spacing: var(--type-spatiering-display);
}

/* De kleine toestellen: het eerste scherm van elke groep, als index in de kop en als stapel in
   het slot. Pas vanaf 75em: daaronder past de kop er niet naast en staat de index als tekst. */
.vks-mini {
	display: none;
}

@media (min-width: 75em) {
	.vks-mini {
		display: block;
		position: relative;
		overflow: hidden;
		background: var(--kleur-ruw-wit);
		transition: rotate var(--motion-duur-wissel) var(--motion-easing-veer), translate var(--motion-duur-wissel) var(--motion-easing-veer);
	}

	/* Zelfde verhouding als de grote toestellen, alleen de ring en geen eigen schaduw, zoals het
	   kleine toestel op de homepage (review ronde 2, must-fix 2). */
	.vks-mini--telefoon {
		width: 6.5rem;
		aspect-ratio: 390 / 760;
		border-radius: calc(var(--radius-telefoon) / 3);
		box-shadow: 0 0 0 4px var(--kleur-toestel), 0 0 0 5px var(--kleur-lijn);
	}

	.vks-mini--laptop {
		width: 13rem;
		aspect-ratio: 1280 / 720;
		border-radius: calc(var(--radius-laptop) / 2);
		box-shadow: 0 0 0 2px var(--kleur-toestel), 0 0 0 3px var(--kleur-lijn);
	}

	.vks-mini img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 50% 0;
	}

	/* De kop links, de index als drie toestellen rechts. */
	.vks-fhero {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "kop index" "zin index" "knop index";
		grid-template-rows: auto auto 1fr;
		column-gap: var(--ruimte-8);
	}

	.vks-fhero__kop { grid-area: kop; }
	.vks-fhero__zin { grid-area: zin; }
	.vks-fhero__knop { grid-area: knop; align-self: start; }

	.vks-index {
		grid-area: index;
		align-self: center;
	}

	.vks-index ul {
		flex-wrap: nowrap;
		align-items: flex-end;
		gap: var(--ruimte-6);
		margin: 0;
	}

	.vks-index a {
		display: grid;
		grid-template-columns: auto auto 1fr;
		gap: 0 var(--ruimte-2);
		align-items: baseline;
		font-size: var(--type-schaal-tekst);
	}

	.vks-index a > .vks-mini {
		grid-column: 1 / -1;
		margin-bottom: var(--ruimte-5);
	}

	.vks-index a > span {
		grid-column: auto;
	}

	.vks-index li:nth-child(1) .vks-mini { rotate: -3deg; }
	.vks-index li:nth-child(2) .vks-mini { rotate: 2deg; }
	.vks-index li:nth-child(3) .vks-mini { rotate: -1.5deg; }
}

.vks-fhero__knop {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ruimte-3) var(--ruimte-5);
	align-items: center;
	margin-top: var(--ruimte-5);
}

.vks-fhero__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--ruimte-klik);
	font-weight: var(--type-gewicht-sterk);
}

@media (min-width: 48em) {
	.vks-fhero__knop {
		margin-top: var(--ruimte-6);
	}
}

/* ------------------------------------------------------------------ De drie groepen */

.vks-groep {
	display: grid;
	gap: var(--ruimte-5);
	padding-block: var(--ruimte-7);
	/* html heeft al scroll-padding-top; dit trekt een deel van de eigen bovenruimte terug, zodat
	   een sprong vanuit de index de hele groep in beeld zet. */
	scroll-margin-top: calc(var(--ruimte-7) * -1);
}

/* Op een smal scherm: kop en zin, het toestel, en dan de functies. */
.vks-groep__tekst {
	display: contents;
}

.vks-groep__kop { order: 1; }
.vks-groep__zin { order: 2; }
.vks-groep__beeld { order: 3; }
.vks-fn { order: 4; }
.vks-groep__demo { order: 5; }

.vks-groep__kop {
	display: flex;
	gap: var(--ruimte-3);
	align-items: baseline;
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-h2);
	font-weight: var(--type-gewicht-display);
	line-height: var(--type-regel-kop);
	letter-spacing: var(--type-spatiering-display);
}

.vks-groep__zin {
	max-width: 32rem;
	color: var(--kleur-tekst-zacht);
}

/* De functies: losse tekst, titel en zin altijd zichtbaar. Op een smal scherm veeg je ze. */
.vks-fn {
	display: flex;
	gap: var(--ruimte-5);
	margin: 0 calc(var(--ruimte-4) * -1);
	padding: 0 var(--ruimte-4) var(--ruimte-2);
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--ruimte-4);
}

.vks-fn > li {
	flex: 0 0 min(15rem, 72vw);
	scroll-snap-align: start;
}

.vks-fn__knop {
	display: block;
	width: 100%;
	min-height: var(--ruimte-klik);
	padding: var(--ruimte-2) 0;
	border: 0;
	background: transparent;
	color: var(--kleur-tekst);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform var(--motion-duur-knop) var(--motion-easing-standaard);
}

.vks-fn__knop:disabled {
	cursor: default;
}

/* De gekozen functie krijgt dezelfde markering als op de homepage. */
.vks-fn__knop b {
	margin-inline: -0.32em;
	padding: 0.08em 0.32em;
	border-radius: 0.3em;
	background: linear-gradient(var(--kleur-actie), var(--kleur-actie)) no-repeat 0 100% / 0% 100%;
	font-size: var(--type-schaal-h3);
	font-weight: var(--type-gewicht-sterk);
	line-height: var(--type-regel-kop);
	transition: background-size var(--motion-duur-wissel) var(--motion-easing-wissel), color var(--motion-duur-knop) var(--motion-easing-standaard);
}

.vks-fn__knop span {
	display: block;
	margin-top: var(--ruimte-1);
	color: var(--kleur-tekst-zacht);
	font-size: var(--type-schaal-knop);
	line-height: 1.35;
}

.vks-fn__knop[aria-pressed="true"] b {
	background-size: 100% 100%;
	color: var(--kleur-op-actie);
}

.vks-groep__demo a {
	display: inline-flex;
	align-items: center;
	min-height: var(--ruimte-klik);
	font-weight: var(--type-gewicht-sterk);
}

/* Het toestel: de schermen liggen op elkaar, het gekozen scherm staat aan. */
.vks-groep__beeld {
	justify-self: center;
	width: 100%;
	margin: var(--ruimte-3) 0 var(--ruimte-6); /* ruimte voor de sticker die uit de onderrand steekt */
}

.vks-toestel {
	position: relative;
	margin-inline: auto;
	background: var(--kleur-ruw-wit);
}

.vks-toestel--telefoon {
	width: min(16rem, 100%); /* smal: het toestel en de eerste regels van de rij samen in beeld */
	aspect-ratio: 390 / 760;
	border-radius: var(--radius-telefoon);
	box-shadow: 0 0 0 9px var(--kleur-toestel), 0 0 0 10px var(--kleur-lijn), var(--schaduw-vlak);
}

.vks-toestel--laptop {
	width: 100%;
	aspect-ratio: 1280 / 720;
	border-radius: var(--radius-laptop);
	box-shadow: 0 0 0 3px var(--kleur-toestel), 0 0 0 4px var(--kleur-lijn), var(--schaduw-vlak);
}

.vks-fn__beeld {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
	opacity: 0;
	transition: opacity var(--motion-duur-wissel) var(--motion-easing-uit);
}

.vks-fn__beeld.is-aan {
	opacity: 1;
}

.vks-fn__beeld img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

/* De naam van de functie steekt als sticker links uit de onderrand van het toestel, zodat hij
   niets van het scherm afdekt (review ronde 1, aandacht 2). */
.vks-toestel__plak {
	position: absolute;
	bottom: calc(var(--ruimte-5) * -1);
	left: calc(var(--ruimte-2) * -1);
	z-index: 1;
	font-size: var(--type-schaal-h3);
	font-weight: var(--type-gewicht-sterk);
	line-height: var(--type-regel-kop);
}

/* Breed: twee kolommen, de functies onder elkaar. Het bestuur staat gespiegeld. */
@media (min-width: 60em) {
	.vks-groep {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--ruimte-8);
		padding-block: var(--ruimte-8);
		align-items: center;
		/* De hele bovenruimte terug: de leden-groep past dan ook in 1512 bij 771 (review ronde 2). */
		scroll-margin-top: calc(var(--ruimte-8) * -1);
	}

	.vks-groep--laptop {
		grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	}

	.vks-groep__tekst {
		display: block;
	}

	/* Breder en strakker, zodat ook de langste groep (de leden, zeven functies) na een sprong
	   uit de index met de demolink in een venster van 827 hoog past (review ronde 1, aandacht 3).
	   De knop houdt zijn klikhoogte van 2,75rem. */
	.vks-groep__zin {
		max-width: 38rem;
		margin-top: var(--ruimte-4);
	}

	/* Zo breed als de tekst, zodat de lege ruimte ernaast niet op hover reageert. */
	.vks-fn__knop {
		width: fit-content;
		padding-block: var(--ruimte-1);
	}

	.vks-fn {
		display: block;
		margin: var(--ruimte-5) 0 0;
		padding: 0;
		overflow: visible;
	}

	.vks-fn > li + li {
		margin-top: var(--ruimte-1);
	}

	.vks-groep__demo {
		margin-top: var(--ruimte-4);
	}

	.vks-groep__beeld {
		margin: 0;
	}

	.vks-toestel--telefoon {
		width: 20rem;
	}

	/* Gespiegeld: het raster draait mee, anders staat de laptop in de smalle kolom. */
	.vks-bewijs > .vks-groep--laptop:nth-child(2) {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	}

	.vks-bewijs > .vks-groep:nth-child(2) .vks-groep__beeld {
		order: -1;
	}

	.vks-toestel__plak {
		left: calc(var(--ruimte-6) * -1);
	}
}

/* ------------------------------------------------------------------ Wat het niet doet */

.vks-fniet {
	padding-block: var(--ruimte-sectie) var(--ruimte-8);
}

.vks-fniet__zin {
	max-width: 32rem;
	margin-top: var(--ruimte-3);
	color: var(--kleur-tekst-zacht);
}

.vks-fniet__lijst {
	margin: var(--ruimte-6) 0 0;
	padding: 0;
	list-style: none;
}

.vks-fniet__lijst > li {
	display: grid;
	gap: var(--ruimte-2) var(--ruimte-7);
	align-items: baseline;
	padding-block: var(--ruimte-4);
	border-top: var(--lijn-dun) solid var(--kleur-lijn);
}

/* Op de maat van een kop, in de kleur van de tekst; de streep is in signaal en trekt zichzelf. */
.vks-fniet__wat {
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-h2);
	font-weight: var(--type-gewicht-display);
	line-height: var(--type-regel-kop);
	letter-spacing: var(--type-spatiering-display);
}

.vks-fniet__wat > span {
	background: linear-gradient(var(--kleur-signaal), var(--kleur-signaal)) no-repeat 0 54% / 100% 0.12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.vks-fniet__waarom {
	max-width: 30rem;
}

@media (min-width: 60em) {
	.vks-fniet__lijst > li {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ Wie doet wat */

.vks-wie {
	padding-block: var(--ruimte-8);
}

/* Twee rijen (de tijd) over drie kolommen (de rol). Op een telefoon staat elke rij onder elkaar
   met de rol als kop per cel; vanaf 48em één raster met de rollen één keer bovenaan. */
.vks-wie__koppen {
	display: none;
}

.vks-wie__rij {
	display: grid;
	gap: var(--ruimte-4);
	margin-top: var(--ruimte-6);
	padding-top: var(--ruimte-5);
	border-top: var(--lijn-dun) solid var(--kleur-lijn);
}

.vks-wie__wanneer {
	font-family: var(--type-familie-tekst);
	font-size: var(--type-schaal-h3);
	font-weight: var(--type-gewicht-sterk);
	line-height: var(--type-regel-kop);
	letter-spacing: 0;
}

.vks-wie__wie {
	font-family: var(--type-familie-tekst);
	font-size: var(--type-schaal-klein);
	font-weight: var(--type-gewicht-sterk);
	line-height: var(--type-regel-kop);
	color: var(--kleur-tekst); /* een kop is nooit tekst-zacht (stijlgids, review ronde 2) */
}

/* Het teken van de rol staat klein voor de kolomkop en de celkop. */
.vks-wie__wie,
.vks-wie__koppen > span {
	display: flex;
	gap: var(--ruimte-2);
	align-items: center;
}

/* Een lege cel valt op een telefoon weg; breed houdt hij zijn plek in het raster. */
.vks-wie__cel:empty {
	display: none;
}

.vks-wie__cel ul {
	margin-top: var(--ruimte-1);
	padding: 0;
	list-style: none;
}

.vks-heel {
	white-space: nowrap;
}

.vks-wie__cel li + li {
	margin-top: var(--ruimte-1);
}

@media (min-width: 48em) {
	.vks-wie__koppen,
	.vks-wie__rij {
		grid-template-columns: 9rem repeat(3, minmax(0, 1fr));
		column-gap: var(--ruimte-6);
	}

	.vks-wie__koppen {
		display: grid;
		margin-top: var(--ruimte-6);
		font-size: var(--type-schaal-klein);
		font-weight: var(--type-gewicht-sterk);
		line-height: var(--type-regel-kop);
		color: var(--kleur-tekst);
	}

	.vks-wie__cel:empty {
		display: block;
	}

	.vks-wie__koppen + .vks-wie__rij {
		margin-top: var(--ruimte-3);
	}

	.vks-wie__rij {
		margin-top: 0;
		padding-block: var(--ruimte-5);
	}

	/* De rol staat bovenaan; in de cel blijft hij voor een schermlezer. */
	.vks-wie__wie {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.vks-wie__cel ul {
		margin-top: 0;
	}
}

/* ------------------------------------------------------------------ Vragen */

.vks-fvragen {
	padding-block: var(--ruimte-8);
}



/* ------------------------------------------------------------------ De laatste stap */

.vks-fslot {
	padding-block: var(--ruimte-8) var(--ruimte-sectie);
}

/* De drie bolletjes, zo groot als de kop van de pagina, samen als het trio. */
.vks-fslot__trio {
	display: flex;
	font-size: var(--type-schaal-display);
	line-height: 1;
}

.vks-fslot__trio .vks-stip + .vks-stip {
	margin-left: -0.16em;
}

.vks-fslot__kop {
	max-width: 18ch;
	margin-top: var(--ruimte-5);
	font-family: var(--type-familie-display);
	font-size: var(--type-schaal-display);
	font-weight: var(--type-gewicht-display);
	line-height: var(--type-regel-display);
	letter-spacing: var(--type-spatiering-display);
}

.vks-fslot__zin {
	max-width: 32rem;
	margin-top: var(--ruimte-4);
	color: var(--kleur-tekst-zacht);
	font-size: var(--type-schaal-inleiding);
}

.vks-fslot__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ruimte-4) var(--ruimte-6);
	align-items: center;
	margin-top: var(--ruimte-6);
}

.vks-fslot__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--ruimte-klik);
	font-weight: var(--type-gewicht-sterk);
}

/* Breed: de drie toestellen uit de kop liggen als stapel naast de laatste stap, in plaats van
   de drie bolletjes. */
.vks-fslot__stapel {
	display: none;
}

@media (min-width: 75em) {
	.vks-fslot {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--ruimte-8);
		align-items: center;
	}

	.vks-fslot > :not(.vks-fslot__stapel) {
		grid-column: 1;
	}

	.vks-fslot__trio {
		display: none;
	}

	.vks-fslot__kop {
		margin-top: 0;
	}

	.vks-fslot__stapel {
		display: block;
		position: relative;
		grid-column: 2;
		grid-row: 1 / span 3;
		width: 24rem;
		height: 16rem;
	}

	.vks-fslot__stapel .vks-mini {
		position: absolute;
	}

	/* De telefoon vooraan in het midden, de twee laptops schuin erachter. */
	.vks-fslot__stapel .vks-mini:nth-child(1) {
		top: var(--ruimte-5);
		left: calc(50% - 3.25rem);
		z-index: 1;
		rotate: -2deg;
	}

	.vks-fslot__stapel .vks-mini:nth-child(2) {
		top: 0;
		left: 0;
		rotate: -4deg;
	}

	.vks-fslot__stapel .vks-mini:nth-child(3) {
		right: 0;
		bottom: 0;
		rotate: 3deg;
	}
}

/* ------------------------------------------------------------------ Hover, alleen waar hover bestaat */

@media (hover: hover) and (pointer: fine) {
	.vks-plak:hover {
		rotate: 2deg;
		scale: 1.05;
	}

	.vks-index a:hover .vks-stip {
		translate: 0 -0.2em;
	}

	.vks-index a:hover .vks-mini {
		rotate: 0deg;
		translate: 0 -6px;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__stapel .vks-mini {
		translate: 0 -6px;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__stapel .vks-mini:nth-child(2) {
		transition-delay: 70ms;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__stapel .vks-mini:nth-child(3) {
		transition-delay: 140ms;
	}

	.vks-index a:hover b {
		color: var(--kleur-link);
	}

	.vks-fn__knop:not(:disabled):hover {
		transform: translateX(6px);
	}

	.vks-fn__knop:not(:disabled):hover b {
		background-size: 100% 18%;
	}

	.vks-fn__knop[aria-pressed="true"]:not(:disabled):hover b {
		background-size: 100% 100%;
	}

	.vks-groep__beeld:hover .vks-toestel__plak {
		rotate: 0deg;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__trio .vks-stip {
		translate: 0 -0.2em;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__trio .vks-stip:nth-child(2) {
		transition-delay: 70ms;
	}

	.vks-fslot:has(.vks-knop:hover, .vks-knop:focus-visible) .vks-fslot__trio .vks-stip:nth-child(3) {
		transition-delay: 140ms;
	}
}

/* Op een touchscherm geeft de tik de markering. */
@media (hover: none) {
	.vks-fn__knop:not(:disabled):active b {
		background-size: 100% 18%;
	}
}

/* ------------------------------------------------------------------ Beweging, alleen voor wie haar aan heeft staan */

@media (prefers-reduced-motion: no-preference) {
	/* De woorden van de kop vallen binnen, zoals op de homepage. */
	.vks-fhero__kop > .vks-w {
		animation: vks-val var(--motion-duur-val) var(--motion-easing-veer) both;
	}

	.vks-fhero__kop > .vks-w:nth-child(2) { animation-delay: calc(var(--motion-stap-val) * 1); }
	.vks-fhero__kop > .vks-w:nth-child(3) { animation-delay: calc(var(--motion-stap-val) * 2); }
	.vks-fhero__kop > .vks-w:nth-child(4) { animation-delay: calc(var(--motion-stap-val) * 3); }
	.vks-fhero__kop > .vks-w:nth-child(n + 5) { animation-delay: calc(var(--motion-stap-val) * 4); }

	/* De bolletjes van de index komen een voor een binnen, na de kop. */
	.vks-index li {
		animation: vks-plop var(--motion-duur-val) var(--motion-easing-veer) both;
		animation-delay: calc(var(--motion-stap-val) * 5);
	}

	.vks-index li:nth-child(2) { animation-delay: calc(var(--motion-stap-val) * 6); }
	.vks-index li:nth-child(3) { animation-delay: calc(var(--motion-stap-val) * 7); }

	/* Bij een wissel kantelt het toestel even en springt de sticker opnieuw op zijn plek
	   (functies.js zet is-gewisseld). */
	.vks-toestel.is-gewisseld {
		animation: vks-kantel var(--motion-duur-val) var(--motion-easing-veer);
	}

	.vks-toestel.is-gewisseld .vks-toestel__plak {
		animation: vks-plak var(--motion-duur-val) var(--motion-easing-veer);
	}

	/* De strepen door wat het niet doet trekken zich als de lijst in beeld komt, een voor een. */
	.heeft-js .vks-fniet:not(.is-door) .vks-fniet__wat > span {
		background-size: 0% 0.12em;
	}

	.vks-fniet__wat > span {
		transition: background-size var(--motion-duur-teken) var(--motion-easing-teken);
	}

	.vks-fniet__lijst > li:nth-child(2) .vks-fniet__wat > span { transition-delay: calc(var(--motion-stap-val) * 2); }
	.vks-fniet__lijst > li:nth-child(3) .vks-fniet__wat > span { transition-delay: calc(var(--motion-stap-val) * 4); }
	.vks-fniet__lijst > li:nth-child(4) .vks-fniet__wat > span { transition-delay: calc(var(--motion-stap-val) * 6); }
	.vks-fniet__lijst > li:nth-child(5) .vks-fniet__wat > span { transition-delay: calc(var(--motion-stap-val) * 8); }
	.vks-fniet__lijst > li:nth-child(6) .vks-fniet__wat > span { transition-delay: calc(var(--motion-stap-val) * 10); }

	/* De drie bolletjes schuiven samen tot het trio: drie groepen, één prijs. */
	.vks-beweegt .vks-fslot__trio.is-onthuld .vks-stip:nth-child(1) {
		animation: vks-samen-links var(--motion-duur-val) var(--motion-easing-veer) var(--motion-duur-reveal) backwards;
	}

	.vks-beweegt .vks-fslot__trio.is-onthuld .vks-stip:nth-child(3) {
		animation: vks-samen-rechts var(--motion-duur-val) var(--motion-easing-veer) var(--motion-duur-reveal) backwards;
	}
	/* Breed schuiven de drie toestellen samen tot de stapel. */
	.vks-beweegt .vks-fslot__stapel.is-onthuld .vks-mini:nth-child(1) {
		animation: vks-stapel-midden var(--motion-duur-val) var(--motion-easing-veer) var(--motion-duur-reveal) backwards;
	}

	.vks-beweegt .vks-fslot__stapel.is-onthuld .vks-mini:nth-child(2) {
		animation: vks-stapel-links var(--motion-duur-val) var(--motion-easing-veer) var(--motion-duur-reveal) backwards;
	}

	.vks-beweegt .vks-fslot__stapel.is-onthuld .vks-mini:nth-child(3) {
		animation: vks-stapel-rechts var(--motion-duur-val) var(--motion-easing-veer) var(--motion-duur-reveal) backwards;
	}
}

/* Scroll: het toestel drijft tegen het schuiven in en de telefoon kantelt licht mee, gekoppeld
   aan waar de groep in beeld staat. Niets pint vast. Alleen breed: smal zou het toestel over de
   rij met functies schuiven. Een browser zonder scroll-gekoppelde
   animatie laat het toestel stilstaan; dat is de terugval. Op de figure en niet op het
   toestel, want het toestel kantelt al bij een wissel. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 60em) {
		.vks-groep__beeld {
			animation: vks-drijf linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}

		.vks-groep--telefoon .vks-groep__beeld {
			animation-name: vks-drijf-kantel;
		}
	}
}

@keyframes vks-drijf {
	from { translate: 0 2.5rem; }
	to { translate: 0 -2.5rem; }
}

@keyframes vks-drijf-kantel {
	from { translate: 0 2.5rem; rotate: -2deg; }
	to { translate: 0 -2.5rem; rotate: 2deg; }
}

@keyframes vks-val {
	from {
		opacity: 0;
		transform: translateY(0.6em) rotate(6deg);
	}
}

@keyframes vks-plop {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@keyframes vks-kantel {
	30% {
		rotate: -1deg;
	}
}

@keyframes vks-plak {
	from {
		opacity: 0;
		scale: 0.6;
	}
}

@keyframes vks-samen-links {
	from {
		translate: -1.4em 0;
	}
}

@keyframes vks-samen-rechts {
	from {
		translate: 1.4em 0;
	}
}

@keyframes vks-stapel-midden {
	from {
		translate: 0 var(--ruimte-6);
	}
}

@keyframes vks-stapel-links {
	from {
		translate: calc(var(--ruimte-8) * -1) calc(var(--ruimte-4) * -1);
	}
}

@keyframes vks-stapel-rechts {
	from {
		translate: var(--ruimte-8) var(--ruimte-4);
	}
}
