/*
	Alba+ — tijdelijke landingspagina
	----------------------------------------------
	1. Merkvariabelen (kleuren, fonts)
	2. Basis
	3. Video hero (fullscreen, logo + baseline + pijl)
	4. Header & footer
	5. Secties (hero, principes, transitie, founder, lancering)
	6. Inschrijfformulier
	7. Responsief
*/

/* ---------- 1. Merkvariabelen ---------- */

:root {

	/* brand colours (Alba+ styleguide) */
	--paper:  oklch(100% 0 0);
	--powder: oklch(87.4323% .0366548 335.795);	/* Muted Powder */
	--water:  oklch(78.447% .0422591 233.529);	/* Salt Water */
	--dawn:   oklch(90.8909% .0464847 78.8287);	/* Dawn Light */
	--night:  oklch(30.8732% .033819 244.033);	/* Night Watch */

	/* tints */
	--powder-50: color-mix(in srgb, var(--powder) 50%, var(--paper));
	--powder-25: color-mix(in srgb, var(--powder) 25%, var(--paper));
	--powder-10: color-mix(in srgb, var(--powder) 10%, var(--paper));
	--water-50:  color-mix(in srgb, var(--water) 50%, var(--paper));
	--water-25:  color-mix(in srgb, var(--water) 25%, var(--paper));
	--water-10:  color-mix(in srgb, var(--water) 10%, var(--paper));
	--dawn-50:   color-mix(in srgb, var(--dawn) 50%, var(--paper));
	--dawn-25:   color-mix(in srgb, var(--dawn) 25%, var(--paper));
	--dawn-10:   color-mix(in srgb, var(--dawn) 10%, var(--paper));
	--night-50:  color-mix(in srgb, var(--night) 50%, var(--paper));

	/* aliases */
	--background: var(--dawn-10);
	--foreground: var(--night);
	--muted-foreground: color-mix(in srgb, var(--night) 78%, var(--paper));
	--border: color-mix(in srgb, var(--night) 18%, var(--paper));

	/* fonts (Adobe Typekit pxh1lom) */
	--font-sans: "degular-variable", Arial, sans-serif;
	--font-display: "larken", Georgia, serif;

}

/* ---------- 2. Basis ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 32px; }

body {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1, h2 { text-transform: uppercase; overflow-wrap: anywhere; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--night); outline-offset: 5px; }

button, input { font: inherit; color: inherit; }

::selection { background: var(--powder); color: var(--night); }

.sr-only {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.page-width { width: min(100% - 96px, 1440px); margin-inline: auto; }

.eyebrow {
	font-family: var(--font-sans);
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.muted { color: var(--muted-foreground); }

/* knoppen */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	white-space: nowrap;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: color .15s, background-color .15s, border-color .15s;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }

.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--night);
}

.btn:disabled { pointer-events: none; opacity: .4; cursor: not-allowed; }

.btn-primary { background: var(--night); color: var(--paper); }
.btn-primary:hover { background: color-mix(in oklab, var(--night) 85%, transparent); }

.btn-lg { height: 56px; padding-inline: 28px; }

.btn-link { color: var(--night); padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover { text-decoration: none; }

/* ---------- 3. Video hero ---------- */

.video-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.video-hero .video_bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* "object-fit: cover" voor een 16:9 iframe */
.video-hero .video_bg iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;		/* 9 / 16 */
	min-height: 100%;
	min-width: 177.78vh;	/* 16 / 9 */
	transform: translate(-50%, -50%);
	border: 0;
	opacity: 0;
	transition: opacity .8s ease;
}

.video-hero .video_bg iframe.is_ready { opacity: 1; }

/* logo + baseline + pijl, gecentreerd boven de video */
.video-hero .hero_overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3.5vw, 32px);
	padding: 24px;
	text-align: center;
}

.video-hero .hero_logo {
	width: clamp(250px, 28vw, 450px);
	height: auto;
}

.video-hero .hero_baseline {
	font-size: clamp(25px, 4vw, 70px);
	font-weight: 500;
	letter-spacing: .02em;
}

/* scroll-pijl onderaan */
.video-hero .scroll_hint {
	position: absolute;
	left: 50%;
	bottom: 35px;
	transform: translateX(-50%);
	display: inline-flex;
	color: #fff;
	opacity: .85;
	animation: scroll_hint_bounce 2.2s ease-in-out infinite;
	transition: opacity .2s ease;
}

.video-hero .scroll_hint:hover { opacity: 1; }

.video-hero .scroll_hint svg { width: 26px; height: 26px; }

@keyframes scroll_hint_bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, 10px); }
}

/* geluidsknop (blijft vast rechtsonder) */
.sound_toggle {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 50;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 999px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 14.4px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background .2s ease, border-color .2s ease;
}

.sound_toggle:hover { background: rgba(0, 0, 0, .65); border-color: rgba(255, 255, 255, .7); }
.sound_toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sound_toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

.sound_toggle .icon_on { display: none; }
.sound_toggle[aria-pressed="true"] .icon_on  { display: block; }
.sound_toggle[aria-pressed="true"] .icon_off { display: none; }

/* ---------- 4. Header & footer ---------- */

.brand-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	height: 114px;
}

.brand-header nav { display: flex; align-items: center; min-width: 0; }

.header-eyebrow { display: none; }

.wordmark { width: 100px; height: 38px; object-fit: contain; }
.wordmark-link { width: fit-content; }

.brand-footer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 32px;
	padding-top: 50px;
}

.brand-footer > span { font-size: 14px; color: var(--muted-foreground); }

.footer-email { display: flex; align-items: center; gap: 14px; font-size: 16px; }

.footer-bottom {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 38px;
	padding-block: 22px 26px;
	border-top: 1px solid var(--border);
	color: var(--muted-foreground);
	font-size: 12px;
}

/* ---------- 5. Secties ---------- */

/* decoratieve zon-bogen */
.sun-lines {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 520px;
	height: 260px;
	color: var(--night);
	opacity: .18;
	pointer-events: none;
	display: block;
}

/* hero */

.home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	height: 650px;
}

.hero-photo {
	position: absolute;
	inset: 0 0 0 40%;
	background: var(--dawn);
	overflow: hidden;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: .025; }

.hero-copy {
	position: relative;
	z-index: 1;
	align-self: center;
	width: 37%;
	padding-block: 30px;
	padding-right: 24px;
}

.hero-copy > .eyebrow { max-width: 365px; color: var(--muted-foreground); margin-bottom: 42px; }

.hero-copy h1 { font-size: 68px; line-height: .99; }

.hero-last-line { white-space: normal; }

.hero-subline { margin-top: 26px; font-size: 20px; }

.hero-copy > .btn { position: relative; z-index: 2; margin-top: 32px; }

.hero-sun { z-index: -1; aspect-ratio: 1472 / 755; width: auto; height: 100%; opacity: .15; }

/* basisprincipes */

.principles-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 68px 96px;
}

.section-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.section-note { color: var(--muted-foreground); font-size: 13px; }

.principles-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.principle { border-top: 1px solid var(--border); padding-top: 18px; }

.principle-number { color: var(--muted-foreground); }

.principle h3 {
	margin-block: 12px 22px;
	font-size: 25px;
	line-height: 1.2;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.principle-image { aspect-ratio: 1.5; border-radius: 2px; overflow: hidden; }

.principle img { width: 100%; height: 100%; object-fit: cover; }

.principle p { color: var(--muted-foreground); max-width: 390px; margin-top: 20px; font-size: 17px; line-height: 1.55; }

/* transitie */

.transition-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--water);
	padding-block: 96px;
}

.transition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }

.transition-title { position: relative; display: flex; flex-direction: column; }

.transition-title h2 { position: relative; z-index: 1; margin-top: 74px; font-size: 54px; line-height: 1.1; }

.transition-sun {
	z-index: -1;
	aspect-ratio: 1472 / 755;
	width: auto;
	height: 108%;
	opacity: .12;
}

.transition-copy { max-width: 560px; }

.transition-copy h3 {
	font-family: var(--font-sans);
	margin-bottom: 28px;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.3;
}

.transition-copy p { margin-bottom: 21px; }

.transition-copy h4 { margin-top: 30px; font-size: 18px; font-weight: 600; }

.expectation-list { margin-block: 16px 24px; list-style: none; }

.expectation-list li {
	display: grid;
	grid-template-columns: 20px 1fr;
	align-items: start;
	gap: 10px;
	padding-block: 12px;
	border-bottom: 1px solid var(--night-50);
}

.expectation-list svg { margin-top: 5px; }

.transition-copy .limited-note { margin-top: 30px; margin-bottom: 0; font-size: 14px; }

/* founder */

.founder-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 9%;
	padding-block: 104px;
}

.founder-image img { aspect-ratio: 1.1; object-fit: cover; object-position: 50% 22%; width: 100%; }

.founder-image figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.founder-image figcaption > span:last-child { color: var(--muted-foreground); font-size: 12px; }

.founder-copy h2 { margin-block: 24px 28px; font-size: 44px; line-height: 1.13; }

.founder-copy p { color: var(--muted-foreground); margin-top: 20px; }

.founder-copy .founder-signoff { color: var(--night); font-weight: 500; }

/* lancering / inschrijving */

.launch-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--powder-50);
	padding-block: 80px;
}

.launch-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }

.launch-grid h2 { margin-block: 22px 18px; font-size: 44px; line-height: 1.15; }

.launch-grid p { font-size: 17px; }

/* ---------- 6. Inschrijfformulier ---------- */

.newsletter-form label.field-label { display: block; margin-bottom: 8px; font-size: 14px; }

.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }

.email-input {
	display: flex;
	width: 100%;
	height: 56px;
	padding-block: 4px;
	padding-inline: 16px;
	border: 1px solid color-mix(in oklab, var(--night) 30%, transparent);
	border-radius: 2px;
	background: color-mix(in oklab, var(--background) 40%, transparent);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}

.email-input::placeholder { color: var(--muted-foreground); }

.email-input:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--night); }

.email-input:disabled { cursor: not-allowed; opacity: .5; }

/* honeypot: onzichtbaar voor bezoekers */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent-label {
	display: grid;
	grid-template-columns: 16px 1fr;
	align-items: start;
	gap: 10px;
	margin-top: 18px;
	color: var(--muted-foreground);
	font-size: 12px;
	line-height: 1.5;
	cursor: pointer;
}

.consent-label input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--night); }

.form-note { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }

.form-error { margin-bottom: 12px; font-size: 14px; color: oklch(48% .14 22); }

/* resultaat na inschrijving */
.signup-result {
	display: grid;
	grid-template-columns: 24px 1fr;
	align-content: center;
	gap: 14px;
	min-height: 150px;
}

.signup-result p.title { font-weight: 500; }
.signup-result p.sub { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }
.signup-result svg { margin-top: 2px; }

/* ---------- 6b. Scroll-in animaties ---------- */

/*
	[data-reveal]            -> zelf zichtbaar-faden bij binnenkomen in beeld
	[data-reveal="zoom"]     -> idem, maar met lichte zoom-out (voor foto's)
	[data-reveal-stagger]    -> kinderen komen één voor één binnen

	De start-state staat achter html.js zodat de pagina zonder
	JavaScript gewoon volledig zichtbaar is.
*/

html.js [data-reveal],
html.js [data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity .65s cubic-bezier(.22, .61, .36, 1),
		transform .65s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal="zoom"] {
	transform: scale(1.04);
	transition-duration: .9s;
}

html.js [data-reveal].is_visible,
html.js [data-reveal-stagger].is_visible > * {
	opacity: 1;
	transform: none;
}

/* stagger: oplopende vertraging per kind (kind 7+ gebruikt de basisvertraging) */
html.js [data-reveal-stagger] > * { --reveal-delay: .65s; }
html.js [data-reveal-stagger] > *:nth-child(1) { --reveal-delay: .05s; }
html.js [data-reveal-stagger] > *:nth-child(2) { --reveal-delay: .15s; }
html.js [data-reveal-stagger] > *:nth-child(3) { --reveal-delay: .25s; }
html.js [data-reveal-stagger] > *:nth-child(4) { --reveal-delay: .35s; }
html.js [data-reveal-stagger] > *:nth-child(5) { --reveal-delay: .45s; }
html.js [data-reveal-stagger] > *:nth-child(6) { --reveal-delay: .55s; }

/* ---------- 7. Responsief ---------- */

@media (min-width: 768px) {

	.header-eyebrow { display: block; }
	.brand-footer > span { position: relative; top: 4px; }

	/* rechterhelft van de bogen zacht laten wegvallen */
	.transition-sun {
		-webkit-mask-image: linear-gradient(90deg, #000 0% 44%, transparent 50%);
		mask-image: linear-gradient(90deg, #000 0% 44%, transparent 50%);
	}

}

@media (min-width: 1440px) {

	.home-hero { height: 690px; }
	.hero-copy h1 { font-size: 78px; }

}

@media (max-width: 1100px) {

	.page-width { width: calc(100% - 64px); }
	.home-hero { height: 600px; }
	.hero-copy { width: 40%; }
	.hero-copy h1 { font-size: 56px; }
	.hero-photo { left: 42%; }
	.hero-copy > .btn { padding-inline: 18px; font-size: 13px; }
	.principle h3 { font-size: 21px; }
	.transition-title h2 { font-size: 44px; }
	.transition-grid, .founder-section, .launch-grid { gap: 6%; }
	.founder-copy h2, .launch-grid h2 { font-size: 38px; }
	.email-row { grid-template-columns: 1fr; }
	.email-row .btn { width: fit-content; }

}

@media (max-width: 767px) {

	body { font-size: 17px; }

	.page-width { width: calc(100% - 40px); }
	.brand-header { gap: 14px; height: 86px; }
	.wordmark { width: 82px; height: 32px; }

	.home-hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 38px;
		height: auto;
		padding-top: 26px;
		padding-bottom: 0;
	}

	.hero-copy {
		order: 0;
		align-self: stretch;
		width: 100%;
		padding: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hero-copy > .eyebrow { max-width: 340px; margin-inline: auto; margin-bottom: 26px; font-size: 13px; }
	.hero-copy h1 { font-size: 44px; line-height: 1.02; }
	.hero-subline { margin-top: 20px; font-size: 15px; }
	.hero-copy > .btn { max-width: 100%; height: 52px; margin-top: 24px; margin-inline: auto; padding-inline: 18px; font-size: 12px; }

	.hero-sun { display: none; }

	.hero-photo { position: relative; inset: auto; order: 1; width: 100%; aspect-ratio: 1.18; height: auto; }
	.hero-photo img { height: 100%; }

	.principles-section { padding-block: 44px 64px; }
	.section-note { display: none; }
	.principles-grid { grid-template-columns: 1fr; gap: 34px; }
	.principle { position: relative; }
	.principle h3 { margin-top: 12px; font-size: 25px; }
	.principle p { font-size: 17px; }
	.principle-image { aspect-ratio: 1.5; }

	.transition-section { padding-block: 64px; }
	.transition-grid { grid-template-columns: 1fr; gap: 40px; }
	.transition-title h2 { margin-top: 26px; font-size: 32px; }
	.transition-sun { height: 60%; opacity: .08; }
	.transition-copy h3 { font-size: 23px; }
	.transition-copy p { margin-bottom: 20px; }

	.founder-section { grid-template-columns: 1fr; gap: 38px; padding-block: 64px; }
	.founder-copy h2 { font-size: 30px; }

	.launch-section { padding-block: 56px; }
	.launch-grid { grid-template-columns: 1fr; gap: 32px; }
	.launch-grid h2 { font-size: 30px; }

	.email-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
	.email-row .btn { gap: 8px; padding-inline: 14px; font-size: 13px; }
	.email-input { padding-inline: 12px; font-size: 15px; }

	.brand-footer { grid-template-columns: 1fr auto; gap: 18px; padding-top: 36px; }
	.brand-footer > span { grid-area: 2 / 1; font-size: 13px; }
	.footer-email { grid-area: 1 / 2; gap: 8px; font-size: 14px; }
	.footer-bottom { flex-direction: column; gap: 8px; margin-top: 14px; font-size: 11px; }

	.video-hero .scroll_hint { bottom: 18px; }

}

@media (max-width: 374px) {

	.hero-copy h1 { font-size: 37px; }
	.hero-copy > .btn { padding-inline: 12px; font-size: 11px; }
	.email-row { grid-template-columns: 1fr; }

}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }

	.video-hero .video_bg iframe { display: none; }
	.video-hero .scroll_hint { animation: none; }

}
