/* S02 Hero "beweegvenster" – de praktijkfilm in een echo-scanvenster dat bij scrollen openvouwt.
   Desktop + JS: de stage pint en JS zet --p (0..1) en de clip-path van de film.
   Mobiel / zonder JS / reduced motion: rustige gestapelde opbouw zonder pin. */
.dc-hero {
	--p: 0;
	--fill: 0.55;
	position: relative; z-index: 1;
	margin-top: calc(-1 * var(--dc-header-h));
	background: #fff;
}
.dc-hero__stage {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column;
	min-height: 100svh;
	padding-top: calc(var(--dc-header-h) + clamp(1rem, 0.4rem + 2vw, 2.5rem));
	padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

/* Achtergrond: mint verloop, fijne rasterlijnen en een langzaam draaiende bloem */
.dc-hero__bg { position: absolute; inset: 0; z-index: -2; background: none; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* Film (standaard: rechterkolom; JS stuurt de clip-path tijdens het scrollen) */
.dc-hero__film {
	position: absolute; inset: 0; z-index: -1;
	clip-path: inset(calc(var(--dc-header-h) + 2.5rem) var(--dc-gutter) 3.5rem 54% round var(--dc-radius-lg));
	background: var(--dc-dark);
	will-change: clip-path;
}
.dc-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p) * 0.08)); }
.dc-hero__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5, 54, 106, 0.15) 0%, rgba(5, 54, 106, 0.55) 100%);
	opacity: calc(0.6 + var(--p) * 0.4);
}
.dc-hero__trace { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(0.9 - var(--p) * 0.9); }
.dc-hero__trace-path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 0.012 0.01; opacity: 0.75; }
.dc-js .dc-hero__trace-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dc-trace 2.4s 0.6s var(--dc-ease) forwards; }
.dc-js .dc-hero__trace-path--2 { animation-delay: 1s; }
@keyframes dc-trace { to { stroke-dashoffset: 0; } }
.dc-hero__trace-dot { fill: var(--dc-glow); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: dc-dot 2.4s ease-in-out infinite; }
.dc-hero__trace-dot:nth-of-type(2) { animation-delay: -0.8s; }
.dc-hero__trace-dot:nth-of-type(3) { animation-delay: -1.6s; }
@keyframes dc-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* Eindbeeld: verschijnt als het venster volledig open is */
.dc-hero__final {
	position: absolute; left: 50%; top: 52%; z-index: 2; width: min(90%, 760px);
	transform: translate(-50%, calc(-50% + (1 - var(--final, 0)) * 40px));
	text-align: center; color: #fff;
	opacity: var(--final, 0); pointer-events: none;
}
.dc-hero.is-final .dc-hero__final { pointer-events: auto; }
.dc-hero__final-title { margin: 0 0 1rem; font-family: var(--dc-font-heading); font-weight: 800; font-size: clamp(2.2rem, 1rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.dc-hero__final-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.dc-hero__final-text { margin: 0 auto 1.75rem; max-width: 46ch; font-size: var(--dc-fs-lead); color: rgba(255, 255, 255, 0.85); }

/* Raster met tekst links en het venster (slot) rechts */
.dc-hero__grid { position: relative; flex: 1; display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 1024px) { .dc-hero__grid { grid-template-columns: 1.08fr 0.92fr; } }

.dc-hero__copy { position: relative; min-width: 0; transform: translate3d(0, calc(var(--p) * -70px), 0); opacity: calc(1 - var(--p) * 1.6); }
/* Titel: gewichtscontrast in Manrope (licht → extra vet) met een beeldcapsule in de tekst */
.dc-hero__title {
	position: relative; margin: 0 0 1.5rem;
	font-family: var(--dc-font-heading); font-weight: 800;
	font-size: clamp(2.35rem, 1rem + 3.9vw, 4.25rem); line-height: 1.04; letter-spacing: -0.045em; color: var(--dc-ink);
}
.dc-hero__line { display: block; clip-path: inset(-0.1em -0.3em -0.2em -0.3em); }
.dc-hero__line > span { position: relative; display: inline-block; animation: dc-line-up 1s var(--dc-ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes dc-line-up { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }
.dc-hero__line--light > span { font-weight: 300; letter-spacing: -0.035em; color: var(--dc-text); }
.dc-hero__line--accent > span { color: var(--dc-primary); }
.dc-hero__dot { font-style: normal; color: var(--dc-primary); }

.dc-hero__intro { max-width: 34rem; margin: 0 0 1.9rem; font-size: var(--dc-fs-lead); line-height: 1.6; color: var(--dc-text); animation: dc-rise 900ms 450ms var(--dc-ease) both; }
.dc-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); animation: dc-rise 900ms 550ms var(--dc-ease) both; }
.dc-hero__ctas .dc-btn--ghost { --btn-bg: rgba(255, 255, 255, 0.7); }
@keyframes dc-rise { from { opacity: 0; transform: translateY(18px); } }

/* Feitenkaart met mini-film (ook pauzeknop) */
.dc-hero__facts {
	display: inline-flex; align-items: center; gap: 1.25rem; max-width: 100%;
	padding: 0.75rem 1.25rem 0.75rem 0.75rem; border-radius: var(--dc-radius);
	background: rgba(255, 255, 255, 0.92); box-shadow: var(--dc-shadow);
	animation: dc-rise 900ms 650ms var(--dc-ease) both;
}
.dc-hero__thumb { position: relative; flex: none; width: 108px; height: 68px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--dc-dark); }
.dc-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-hero__thumb-icon { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--dc-primary); }
.dc-hero__thumb-icon .dc-icon { fill: currentColor; }
.dc-hero__thumb-icon--play, .dc-hero__thumb[aria-pressed="true"] .dc-hero__thumb-icon--pause { display: none; }
.dc-hero__thumb[aria-pressed="true"] .dc-hero__thumb-icon--play { display: grid; }
.dc-hero__stats { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.dc-hero__stat { display: grid; gap: 0.15rem; min-width: 0; max-width: 9.5rem; font-size: 0.72rem; line-height: 1.3; color: var(--dc-muted); }
.dc-hero__stat + .dc-hero__stat { padding-left: 1.25rem; border-left: 1px solid var(--dc-line); }
.dc-hero__stat strong { font-family: var(--dc-font-heading); font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--dc-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dc-hero__stat small { margin-left: 0.1em; font-size: 0.6em; color: var(--dc-secondary); }

/* Venster-slot: lagen boven de film */
.dc-hero__slot { position: relative; align-self: stretch; min-height: min(68svh, 620px); color: #fff; }
.dc-hero__slot > * { will-change: transform, opacity; }

@keyframes dc-corner { from { opacity: 0; transform: scale(1.6); } }
@keyframes dc-scan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 50% { transform: translateY(calc(min(68svh, 620px) - 40px)); } }

.dc-hero__win-copy { position: absolute; top: 4.5rem; right: 3.25rem; width: min(17rem, 60%); text-align: right; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.dc-hero__win-kicker { margin: 0 0 0.4rem; font-family: var(--dc-font-heading); font-weight: 700; font-size: 1.05rem; }
.dc-hero__win-text { margin: 0; font-size: 0.82rem; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }

.dc-hero__docs { position: absolute; right: 3.25rem; top: 46%; display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.dc-hero__doc { position: relative; width: 82px; height: 112px; border-radius: 16px; overflow: hidden; background: var(--dc-mint); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); outline: 3px solid rgba(255, 255, 255, 0.85); }
.dc-hero__doc--0 { transform: rotate(-6deg) translateY(10px); }
.dc-hero__doc--1 { transform: rotate(5deg); }
.dc-hero__doc-img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dc-hero__doc span { position: absolute; left: 6px; bottom: 6px; padding: 0.15rem 0.45rem; border-radius: var(--dc-radius-pill); background: rgba(5, 54, 106, 0.75); font: 700 0.68rem/1.3 var(--dc-font-heading); }

@keyframes dc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.dc-hero__quote { position: absolute; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; margin: 0; padding: 1rem 1.25rem; border-radius: var(--dc-radius); background: rgba(5, 54, 106, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: right; }
.dc-hero__quote blockquote { margin: 0 0 0.6rem; font-size: 0.9rem; font-style: italic; }
.dc-hero__quote p { margin: 0; }
.dc-hero__quote figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; font-size: 0.75rem; color: var(--dc-on-dark); }
.dc-hero__avatars { display: inline-flex; }
.dc-hero__avatars img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; background: var(--dc-mint); }
.dc-hero__avatars img + img { margin-left: -10px; }

/* Scroll-voortgang */
.dc-hero__scroll {
	position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.5rem;
	font: 700 0.7rem/1 var(--dc-font-heading); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dc-primary); text-decoration: none;
	opacity: calc(1 - var(--p) * 2);
}
.dc-hero__scroll-bar { position: relative; width: 64px; height: 3px; border-radius: 3px; background: rgba(var(--dc-primary-rgb), 0.18); overflow: hidden; }
.dc-hero__scroll-bar span { position: absolute; inset: 0; background: var(--dc-primary); transform-origin: left; transform: scaleX(var(--p)); animation: dc-hint 2.2s ease-in-out infinite; }
@keyframes dc-hint { 0%, 100% { translate: -30% 0; } 50% { translate: 30% 0; } }
.dc-hero.is-pinned .dc-hero__scroll-bar span { animation: none; }

/* Pin + scroll-animatie alleen op desktop met JS en zonder reduced motion */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.dc-js .dc-hero { height: 210svh; }
	.dc-js .dc-hero__stage { position: sticky; top: 0; height: 100svh; }
}

/* Tablet en mobiel: gestapeld, film als eigen blok onder de tekst */
@media (max-width: 1023.98px) {
	.dc-hero__stage { min-height: 0; }
	.dc-hero__grid { flex: none; }
	.dc-hero__copy { transform: none; opacity: 1; }
	.dc-hero__film {
		position: relative; inset: auto; z-index: 0; order: 2; clip-path: none;
		width: calc(100% - 2 * var(--dc-gutter)); margin: 2rem auto 0; aspect-ratio: 4 / 3.4; border-radius: var(--dc-radius-lg); overflow: hidden;
	}
	.dc-hero__slot, .dc-hero__final, .dc-hero__scroll { display: none; }
	.dc-hero__facts { display: flex; width: 100%; }
}
@media (max-width: 639.98px) {
	.dc-hero__ctas { flex-direction: column; }
	.dc-hero__ctas .dc-btn { width: 100%; }
	.dc-hero__thumb { display: none; }
	.dc-hero__facts { padding: 0.9rem 1rem; }
	.dc-hero__stats { gap: 0.75rem; width: 100%; justify-content: space-between; }
	.dc-hero__stat + .dc-hero__stat { padding-left: 0.75rem; }
	.dc-hero__stat strong { font-size: 1.3rem; }
	.dc-hero__film { aspect-ratio: 4 / 4.4; }
}
@media (prefers-reduced-motion: reduce) {
	.dc-hero__line > span, .dc-hero__intro, .dc-hero__ctas, .dc-hero__facts,
	.dc-hero__trace-path, .dc-hero__trace-dot, .dc-hero__scroll-bar span { animation: none !important; }
	.dc-js .dc-hero__trace-path { stroke-dashoffset: 0; }
}
