/* ==========================================================================
   Wedding Invitation – styling
   Lettertypes volgen de papieren uitnodiging:
   Freeland (namen) · Dawning of a New Day (handschrift) · Amellia (tijden)
   Cormorant Upright (lopende tekst) · Jost (koppen, vervangt Futura)
   ========================================================================== */

@font-face {
	font-family: 'Freeland';
	src: url('../fonts/Freeland.woff') format('woff'), url('../fonts/Freeland.ttf') format('truetype');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Amellia';
	src: url('../fonts/Amellia.woff') format('woff');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Dawning';
	src: url('../fonts/DawningOfANewDay.woff') format('woff');
	font-weight: 400; font-style: normal; font-display: swap;
}
/* Turkse letters die in het originele lettertype ontbreken (ş ğ ı İ Ş Ğ), in dezelfde stijl bijgemaakt */
@font-face {
	font-family: 'Dawning';
	src: url('../fonts/DawningOfANewDay-TR.woff') format('woff');
	font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+011E-011F, U+0130-0131, U+015E-015F;
}

:root {
	--paper: #f7f7f2;
	--red: #c8102e;      /* koppen, namen */
	--wine: #8a0c2c;     /* RSVP, knoppen */
	--ink: #1a1a1a;
	--font-body: 'Cormorant Upright', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-head: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
	--font-name: 'Freeland', 'Brush Script MT', cursive;
	--font-hand: 'Dawning', 'Segoe Script', 'Bradley Hand', cursive;
	--font-num: 'Amellia', 'Jost', 'Century Gothic', sans-serif;
	--dot1: #f6d27c; --dot2: #f47c20; --dot3: #8fb04e; --dot4: #5aa6cf; --dot5: #7b2d8b;
	--paper-img: url('../img/paper.jpg');
	--ease-door: cubic-bezier(.62, .02, .22, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--t0: 2.55s;         /* wanneer de inhoud begint na het openen van de deuren */
}
body.is-instant { --t0: .05s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper) var(--paper-img) repeat;
	background-size: 560px auto;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.28rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }
img { max-width: 100%; height: auto; display: block; }
.blend { mix-blend-mode: multiply; }   /* de witte achtergrond van de uitgesneden afbeeldingen verdwijnt op het papier */
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: rgba(200, 16, 46, .18); }

/* Talen: alle vier staan in de HTML, alleen de gekozen taal wordt getoond */
.l { display: none; }
html[data-lang="fr"] .l[lang="fr"],
html[data-lang="en"] .l[lang="en"],
html[data-lang="nl"] .l[lang="nl"],
html[data-lang="tr"] .l[lang="tr"] { display: inline; }

.script { font-family: var(--font-hand); }
.script-name, .names { font-family: var(--font-name); color: var(--red); font-weight: 400; }

/* ---------- taalkeuze (rechtsboven) ---------- */
.lang-switch {
	position: fixed; z-index: 400;
	top: calc(12px + env(safe-area-inset-top)); right: 14px;
	display: flex; gap: 6px; align-items: center;
	font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em;
	color: var(--wine);
	background: rgba(247, 247, 242, .78); padding: 5px 12px; border-radius: 999px;
	box-shadow: 0 1px 0 rgba(138, 12, 44, .12), 0 6px 20px rgba(60, 10, 25, .08);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lang-switch button { all: unset; cursor: pointer; padding: 2px 2px; opacity: .5; transition: opacity .2s ease; }
.lang-switch button:hover { opacity: .85; }
.lang-switch button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.lang-switch button.is-active { opacity: 1; font-weight: 500; border-bottom: 1px solid currentColor; }
body.lang-pending .lang-switch { display: none; }

/* ==========================================================================
   BLOEMEN – animatiesysteem
   · ontluiken: de bloemen groeien vanuit de rand van het beeld
   · wiegen:    een zachte bries laat ze rustig heen en weer bewegen
   · parallax:  bij het scrollen schuiven ze iets trager dan de tekst (via JS: --py)
   ========================================================================== */
.deco {
	position: absolute; pointer-events: none; user-select: none; -webkit-user-drag: none;
	transform-origin: var(--ox, 50%) var(--oy, 50%);
	translate: 0 calc(var(--py, 0) * 1px);
	will-change: translate, rotate, scale;
}
.js .deco { opacity: 0; scale: .8; }

.js .cover.is-ready .deco,
.js body:is(.is-opening, .is-open) .hero .deco,
.js .spread.in .deco,
.js .closing.in .deco {
	animation:
		bloom 2.4s var(--ease-out) var(--delay, 0s) forwards,
		sway var(--sway-d, 10s) ease-in-out calc(var(--delay, 0s) + 1.6s) infinite;
}
@keyframes bloom { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
@keyframes sway {
	0%, 100% { rotate: 0deg; }
	30% { rotate: var(--sway, 1.4deg); }
	70% { rotate: calc(var(--sway, 1.4deg) * -.8); }
}

/* ankerpunt en timing per bloem: ze draaien om het punt waar ze aan de rand “vastzitten” */
.deco--door-bl  { --ox: 0%;   --oy: 100%; --delay: .5s;  --sway: -1.2deg; --sway-d: 11s; }
.deco--cover-tr { --ox: 100%; --oy: 0%;   --delay: .2s;  --sway: 1.1deg;  --sway-d: 12s; }
.deco--door-br  { --ox: 100%; --oy: 100%; --delay: .8s;  --sway: -2deg;   --sway-d: 9s; }
.deco--hero-tr  { --ox: 100%; --oy: 0%;   --delay: calc(var(--t0) + .1s); --sway: 1.3deg; --sway-d: 11s; }
.deco--hero-bl  { --ox: 0%;   --oy: 100%; --delay: calc(var(--t0) + .35s); --sway: -1.3deg; --sway-d: 12s; }
.deco--prog     { --ox: 0%;   --oy: 0%;   --delay: .1s;  --sway: 1.2deg;  --sway-d: 10s; }
.deco--info     { --ox: 100%; --oy: 100%; --delay: .35s; --sway: -1.2deg; --sway-d: 11s; }
.deco--close-bl { --ox: 0%;   --oy: 100%; --delay: .2s;  --sway: -1.3deg; --sway-d: 12s; }
.deco--close-br { --ox: 100%; --oy: 100%; --delay: .5s;  --sway: 2deg;    --sway-d: 9s; }

/* de slinger vouwt zich open vanuit het midden */
.js .garland { opacity: 0; clip-path: inset(0 50% 0 50%); }
.js .cover.is-ready .gate__garland,
.js .closing.in .closing__garland,
.js .modal:not([hidden]) .modal__garland {
	animation: unfold 2s cubic-bezier(.65, 0, .2, 1) .35s forwards, breathe 7s ease-in-out 2.6s infinite;
}
@keyframes unfold {
	0%   { clip-path: inset(0 50% 0 50%); opacity: 0; }
	12%  { opacity: 1; }
	100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes breathe { 50% { scale: 1.014; } }

/* ==========================================================================
   COVER – theater fold
   ========================================================================== */
.cover {
	position: fixed; inset: 0; z-index: 300;
	perspective: 2400px; perspective-origin: 50% 45%;
	overflow: hidden;
	background: transparent;
}
.door {
	position: absolute; top: 0; bottom: 0; width: 50%;
	will-change: transform;
	transform-style: preserve-3d;
	box-shadow: 0 0 46px rgba(60, 20, 20, .2);
}
.door--left  { left: 0;  transform-origin: left center; }
.door--right { right: 0; transform-origin: right center; }
.door__face {
	position: absolute; inset: 0; overflow: hidden;
	background: var(--paper) var(--paper-img) repeat;
	background-size: 560px auto;
}
.door--left .door__face  { background-position: right top; }
.door--right .door__face { background-position: left top; }
/* gevouwen rand in het midden: een fijne lichte lijn en een zachte schaduw */
.door__face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.door--left .door__face::after  { background: linear-gradient(90deg, transparent 90%, rgba(110, 60, 50, .1)); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .7); }
.door--right .door__face::after { background: linear-gradient(270deg, transparent 90%, rgba(110, 60, 50, .1)); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .7); }
.door__shade { position: absolute; inset: 0; background: #3b0a14; opacity: 0; pointer-events: none; }

.door__name { position: absolute; top: 31%; left: 0; right: 0; text-align: center; font-size: clamp(3rem, 9vw, 7.4rem); line-height: 1; }

.deco--door-bl { left: -3vw; bottom: -3vh; height: min(34vh, 380px); width: auto; max-width: 95%; object-fit: contain; object-position: left bottom; }
.deco--door-br { right: -2vw; bottom: 4%; width: min(22vw, 260px); }
.deco--cover-tr { top: -2vw; right: -3vw; width: min(24vw, 350px); }

.gate {
	position: absolute; inset: 0; z-index: 5;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 10vh 18px 9vh; text-align: center; pointer-events: none;
	transition: opacity .55s ease, transform .55s ease;
}
.gate > * { pointer-events: auto; }
.gate__garland { width: min(70vw, 520px); margin-bottom: 1.2rem; }
.gate__families { margin: 0 0 1.7rem; color: var(--wine); font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.75; max-width: 30em; }
.gate__form { display: flex; flex-direction: column; align-items: center; gap: .9rem; width: min(92vw, 440px); }
.gate__title { font-size: 1.2rem; color: var(--wine); line-height: 1.4; }
.gate__form input {
	width: 100%; max-width: 290px; text-align: center;
	font: 500 1.7rem/1.2 var(--font-body); letter-spacing: .2em; color: var(--wine);
	background: rgba(255, 255, 255, .55); border: 0; border-bottom: 1.5px solid var(--wine);
	padding: .45rem .5rem; border-radius: 4px 4px 0 0; outline: none;
	transition: background .25s ease, box-shadow .25s ease;
}
.gate__form input::placeholder { color: rgba(138, 12, 44, .38); letter-spacing: .16em; font-size: 1.35rem; }
.gate__form input:focus { background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -10px rgba(138, 12, 44, .35); }
.gate__error { min-height: 1.4em; margin: 0; color: var(--red); font-size: 1.05rem; }
.gate__form.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

/* stap 1 (taal) en stap 2 (datum) */
.gate__step { display: flex; flex-direction: column; align-items: center; animation: step-in .6s var(--ease-out) both; }
.gate[data-step="lang"] .gate__step--date { display: none; }
.gate[data-step="date"] .gate__step--lang { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } }
.gate__langtitle { margin: .4rem 0 1.3rem; max-width: 36em; color: var(--wine); font-size: 1.15rem; line-height: 1.7; }
.gate__langtitle i { font-style: normal; opacity: .5; padding: 0 .15em; }
.langpick { display: grid; grid-template-columns: repeat(4, auto); gap: .75rem; justify-content: center; }
.langpick__btn {
	cursor: pointer; border: 1.5px solid var(--wine); background: rgba(255, 255, 255, .55); color: var(--wine);
	font: 500 1.4rem/1.2 var(--font-body); padding: .65rem 1.5rem; border-radius: 999px;
	transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.langpick__btn:hover, .langpick__btn:focus-visible { background: var(--wine); color: #fff; box-shadow: 0 10px 24px -10px rgba(138, 12, 44, .6); }
.langpick__btn:hover { transform: translateY(-2px); }
.langpick__btn:focus-visible { outline: 3px solid rgba(138, 12, 44, .35); outline-offset: 3px; }

/* openen */
.cover.is-opening .gate { pointer-events: none; }
.cover.is-opening .gate > :not(.sealband) { opacity: 0; transform: translateY(-14px); transition: opacity .5s ease, transform .5s ease; }
.cover.is-opening .deco--cover-tr { transition: opacity .5s ease; }
.cover.is-opening .door--left  { animation: door-left 2.1s var(--ease-door) 1.65s forwards; }
.cover.is-opening .door--right { animation: door-right 2.1s var(--ease-door) 1.65s forwards; }
.cover.is-opening .door__shade { animation: shade 2.1s ease 1.65s forwards; }
@keyframes door-left  { 0% { transform: rotateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(-128deg); opacity: 0; } }
@keyframes door-right { 0% { transform: rotateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(128deg);  opacity: 0; } }
@keyframes shade { 0% { opacity: 0; } 40% { opacity: .2; } 100% { opacity: 0; } }
.cover.is-open { display: none; }

/* de uitnodiging zelf komt zacht tevoorschijn achter de deuren */
.main { opacity: 0; transform: scale(.965); transition: opacity 1.4s ease 1.7s, transform 2.2s var(--ease-door) 1.65s; }
body.is-opening .main, body.is-open .main { opacity: 1; transform: none; }
body.is-instant .main { transition: none; }

/* ==========================================================================
   INHOUD
   ========================================================================== */
.main { position: relative; overflow-x: clip; background: var(--paper) var(--paper-img) repeat; background-size: 560px auto; }

.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 8vh 20px 12vh; overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.deco--hero-tr { top: -2.5vw; right: -3.5vw; width: min(34vw, 500px); }
.deco--hero-bl { left: -3vw; bottom: -3vh; height: min(36vh, 380px); width: auto; }
.hero__bouquet { height: clamp(120px, 22vh, 230px); width: auto; margin-bottom: .6rem; transform-origin: 50% 100%; }
.names { margin: 0; font-size: clamp(3rem, 9.5vw, 6.6rem); line-height: 1.15; }
.names .amp { font-size: .8em; padding: 0 .06em; }
.hero__date {
	margin: .5rem 0 2.2rem; font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	letter-spacing: .34em; text-indent: .34em;
}
.hero__line { margin: 0; font-size: clamp(1.4rem, 3.1vw, 2rem); line-height: 1.85; color: var(--ink); }

/* de namen schrijven zich uit van links naar rechts, de rest zweeft op */
@property --wipe { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.hero .names { display: inline-block; padding: .12em .22em; margin: -.12em -.22em 0; }
.js .hero .names {
	-webkit-mask-image: linear-gradient(100deg, #000 calc(var(--wipe) - 16%), transparent var(--wipe));
	mask-image: linear-gradient(100deg, #000 calc(var(--wipe) - 16%), transparent var(--wipe));
	opacity: 0;
}
.js .hero__bouquet, .js .hero__date, .js .hero__line, .js .scroll-hint { opacity: 0; }

body:is(.is-opening, .is-open) .hero__bouquet { animation: rise 1.8s var(--ease-out) calc(var(--t0) - .2s) forwards, float 7s ease-in-out calc(var(--t0) + 1.8s) infinite; }
body:is(.is-opening, .is-open) .hero .names   { animation: wipe 2.6s cubic-bezier(.5, 0, .2, 1) calc(var(--t0) + .5s) forwards, show .01s linear calc(var(--t0) + .5s) forwards; }
body:is(.is-opening, .is-open) .hero__date    { animation: fade-up 1.4s var(--ease-out) calc(var(--t0) + 2.1s) forwards; }
body:is(.is-opening, .is-open) .hero__line    { animation: fade-up 1.5s var(--ease-out) calc(var(--t0) + 2.5s) forwards; }
body:is(.is-opening, .is-open) .scroll-hint   { animation: fade-up 1.2s ease calc(var(--t0) + 3.4s) forwards; }
@keyframes wipe { from { --wipe: 0%; } to { --wipe: 125%; } }
@keyframes show { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; translate: 0 -5px; } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: .999; translate: 0 0; } }

.scroll-hint { position: absolute; bottom: 4.5vh; left: 50%; width: 34px; height: 34px; margin-left: -17px; }
.scroll-hint span { display: block; width: 14px; height: 14px; margin: 6px auto 0; border-right: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px) rotate(45deg); } }

.spread {
	--flw: clamp(240px, 30vw, 440px);   /* breedte bloem linksboven */
	--flr: clamp(240px, 30vw, 440px);   /* breedte bloem rechtsonder */
	position: relative; overflow: hidden;
	padding: 3rem 0 calc(var(--flr) * .55);
}
.spread__grid {
	position: relative; /* geen z-index: anders verdwijnt de multiply-menging van icoontjes en kasteel */
	display: grid; grid-template-columns: 1fr; gap: 1rem;
	max-width: 1280px; margin: 0 auto; padding: 0 22px;
}
.col { position: relative; text-align: center; padding: 0 .5rem 2rem; }
@media (min-width: 960px) {
	/* de tak rechts staat op dezelfde hoogte als "Party" (laatste onderdeel van het programma) */
	.spread { padding-bottom: calc(var(--flr) * .3); }
	.spread .deco--info { bottom: calc(var(--flr) * .3 + 138px - var(--flr) * .277); }
	.spread { padding-top: 4rem; }
	.spread__grid { grid-template-columns: 1fr 1.1fr 1fr; gap: 2.5rem; align-items: start; }
	.col--location { padding-top: 1rem; }
}

.h2 {
	margin: 2.4rem 0 1rem; font: 500 .98rem/1.2 var(--font-head);
	letter-spacing: .32em; text-indent: .32em; color: var(--red);
}
.col > .h2:first-child { margin-top: 0; }
.body { margin: 0 auto; max-width: 24em; font-size: 1.28rem; line-height: 1.65; }

.deco--prog { top: .6rem; left: -3.5vw; width: var(--flw); }
.col--programme { padding-top: calc(var(--flw) * .5); }
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.prog li { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.prog .icon { height: 62px; width: auto; mix-blend-mode: multiply; }
.prog .script { font-size: 1.9rem; line-height: 1.25; }
.prog time { font-family: var(--font-num); font-size: 1.5rem; letter-spacing: .06em; }

.venue-name { margin: 0 0 .8rem; font-size: 2.05rem; }
.venue-img { width: min(80%, 340px); margin: 0 auto 1.2rem; }
.address { margin: 0; font-size: 1.4rem; line-height: 1.5; }
.address a { text-decoration: none; border-bottom: 1px solid rgba(138, 12, 44, .35); transition: border-color .2s ease; }
.address a:hover { border-color: var(--wine); }

.col--info .icon { height: 118px; width: auto; margin: 0 auto .3rem; mix-blend-mode: multiply; }
.dress { margin: 0; font-size: 2.05rem; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: .7rem; }
.dots i { width: 22px; height: 18px; border-radius: 55% 45% 50% 50% / 55% 50% 50% 45%; display: block; transition: transform .4s var(--ease-out); }
.dots i:hover { transform: translateY(-3px) scale(1.15); }
.dots i:nth-child(1) { background: var(--dot1); } .dots i:nth-child(2) { background: var(--dot2); }
.dots i:nth-child(3) { background: var(--dot3); } .dots i:nth-child(4) { background: var(--dot4); }
.dots i:nth-child(5) { background: var(--dot5); }
.deco--info { bottom: .4rem; right: -3.5vw; width: var(--flr); }

.closing { position: relative; overflow: hidden; text-align: center; padding: 4rem 20px 10rem; }
.closing__inner { position: relative; }
.deco--close-bl { left: -4vw; bottom: -2vw; height: min(34vh, 340px); width: auto; }
.deco--close-br { right: -3vw; bottom: 4%; width: min(20vw, 250px); }
.closing__garland { width: min(80vw, 560px); margin: 0 auto 1.6rem; }
.rsvp-title { margin: 0; font: 700 1.8rem/1.2 var(--font-body); letter-spacing: .5em; text-indent: .5em; color: var(--wine); }
.rsvp-deadline { margin: .2rem 0 1.8rem; font-size: 1.5rem; color: var(--wine); }
.closing__sign { margin: 2.6rem 0 0; font-size: 2.8rem; }

/* inhoud schuift rustig op bij het scrollen */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal .prog li, .js .reveal .col > * { transition: opacity .9s ease, translate 1s var(--ease-out); }
.js .prog li { opacity: 0; translate: 0 18px; transition-delay: calc(var(--i, 0) * .14s + .25s); }
.js .reveal.in .prog li { opacity: 1; translate: 0 0; }

/* ---------- knoppen ---------- */
.btn {
	display: inline-block; cursor: pointer; border: 0; border-radius: 999px; text-decoration: none; text-align: center;
	padding: 1rem 2.1rem; background: var(--wine); color: #fff;
	font: 500 .95rem/1.2 var(--font-head); letter-spacing: .06em;
	box-shadow: 0 8px 22px rgba(138, 12, 44, .28);
	transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover { background: #a3123a; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(138, 12, 44, .34); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(138, 12, 44, .35); outline-offset: 3px; }
.btn--small { padding: .7rem 1.7rem; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 1.5px var(--wine); }
.btn--ghost:hover { background: rgba(138, 12, 44, .06); box-shadow: inset 0 0 0 1.5px var(--wine); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.fab {
	position: fixed; z-index: 200; left: 50%; translate: -50% 0;
	bottom: calc(18px + env(safe-area-inset-bottom));
	max-width: calc(100vw - 28px); white-space: nowrap;
	cursor: pointer; border: 0; border-radius: 999px; padding: 1.05rem 2rem;
	background: var(--wine); color: #fff; font: 500 .95rem/1.2 var(--font-head); letter-spacing: .05em;
	box-shadow: 0 12px 30px rgba(60, 10, 25, .4);
	transition: opacity .4s ease, translate .5s var(--ease-out), background .25s ease;
	animation: fab-in .9s var(--ease-out) backwards, pulse 3.4s ease-in-out 2.4s infinite;
}
.fab:hover { background: #a3123a; }
.fab:focus-visible { outline: 3px solid rgba(138, 12, 44, .4); outline-offset: 3px; }
@keyframes fab-in { from { opacity: 0; translate: -50% 24px; } }
@keyframes pulse { 50% { box-shadow: 0 12px 30px rgba(60, 10, 25, .4), 0 0 0 11px rgba(138, 12, 44, .12); } }
body.modal-open .fab { display: none; }
body.rsvp-in-view .fab { opacity: 0; pointer-events: none; translate: -50% 24px; }
@media (max-width: 420px) { .fab { font-size: .85rem; padding: .95rem 1.35rem; } }

/* ---------- bloemblaadjes ---------- */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; opacity: 0; transition: opacity 2.5s ease; }
body:is(.is-opening, .is-open) .petals { opacity: 1; }

/* ==========================================================================
   RSVP-modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(48, 10, 20, .5); backdrop-filter: blur(4px); animation: fade .3s ease both; }
.modal__card {
	position: relative; width: min(100%, 490px); max-height: calc(100dvh - 32px); overflow: auto;
	background: var(--paper) var(--paper-img) repeat; background-size: 560px auto;
	border-radius: 16px; padding: 1.7rem 1.7rem 1.9rem; text-align: center;
	box-shadow: 0 28px 70px rgba(30, 5, 12, .45);
	animation: pop .5s var(--ease-out) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--wine); cursor: pointer; }
.modal__garland { width: 66%; margin: 0 auto .6rem; }
.modal__title { margin: 0 0 1rem; font: 700 1.4rem/1.2 var(--font-body); letter-spacing: .5em; text-indent: .5em; color: var(--wine); }

.step { display: flex; flex-direction: column; gap: .95rem; align-items: stretch; text-align: center; }
.field { display: grid; gap: .4rem; }
.field__help { color: #6b5a5e; font-size: 1rem; line-height: 1.35; }
.field__label { font-size: 1.2rem; color: var(--ink); display: block; }
.step input[type="text"], .step input[type="email"], .step textarea {
	width: 100%; font: 400 1.4rem/1.3 var(--font-body); color: var(--ink);
	background: rgba(255, 255, 255, .65); border: 1.5px solid rgba(138, 12, 44, .35);
	border-radius: 8px; padding: .6rem .8rem; text-align: center; outline: none;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.step textarea { font-size: 1.15rem; text-align: left; resize: vertical; }
.step input:focus, .step textarea:focus { border-color: var(--wine); background: #fff; box-shadow: 0 8px 22px -12px rgba(138, 12, 44, .5); }
.msg { margin: 0; min-height: 1.3em; font-size: 1.08rem; }
.msg--error { color: var(--red); }
.msg--info { color: var(--wine); background: rgba(138, 12, 44, .07); border-radius: 8px; padding: .55rem .85rem; }
.hello { margin: 0; font-size: 1.8rem; color: var(--red); }

.choice { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.choice legend { padding: 0; margin: 0 auto .6rem; }
.choice__opt { cursor: pointer; display: block; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt > span {
	display: block; padding: .8rem 1rem; border-radius: 10px; font-size: 1.25rem;
	border: 1.5px solid rgba(138, 12, 44, .3); background: rgba(255, 255, 255, .55);
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.choice__opt:hover > span { transform: translateY(-1px); }
.choice__opt input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.choice__opt input:focus-visible + span { outline: 3px solid rgba(138, 12, 44, .35); outline-offset: 2px; }

.party { display: grid; gap: .4rem; justify-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 1.2rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--wine); background: transparent; color: var(--wine); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.stepper button:hover:not(:disabled) { background: var(--wine); color: #fff; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 2ch; font: 700 2.1rem/1 var(--font-body); color: var(--wine); }
.party small { color: #6b5a5e; font-size: 1rem; }

.actions { display: flex; gap: .8rem; justify-content: center; margin-top: .4rem; }
.step--done { padding: .5rem 0 0; align-items: center; }
.step--done .btn { min-width: 220px; }
.done__title { margin: 0; font-size: 2.1rem; color: var(--red); }

/* ==========================================================================
   Kleine schermen
   ========================================================================== */
@media (max-width: 760px) {
	.langpick { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(86vw, 340px); }
	.langpick__btn { padding: .7rem .5rem; }
	/* namen op dezelfde hoogte als het boeket, links en rechts ernaast */
	.door__name { --nm: clamp(2.3rem, 10.6vw, 3.6rem); font-size: var(--nm); top: calc(var(--band-y) - var(--seal) * 1.05 - var(--nm) * .5); }
	.door--left .door__name  { text-align: right; padding-right: calc(var(--seal) * .85); }
	.door--right .door__name { text-align: left;  padding-left: calc(var(--seal) * .85); }
	.gate { padding-top: 30vh; padding-bottom: 6vh; justify-content: flex-start; }
	.gate__garland { width: 84vw; margin-bottom: .8rem; }
	.deco--cover-tr { width: 38vw; }
	.deco--door-bl { height: min(26vh, 260px); left: -8vw; }
	.deco--door-br { width: 34vw; }
	.deco--hero-tr { width: 52vw; }
	.deco--hero-bl { height: min(26vh, 260px); left: -8vw; }
	.hero__bouquet { height: clamp(100px, 18vh, 170px); }
	.deco--close-bl { height: min(24vh, 240px); left: -8vw; }
	.deco--close-br { display: none; }
	body { font-size: 1.22rem; }
}
@media (min-width: 761px) {
	/* op brede schermen staan de namen links en rechts van de slinger, zoals op de papieren uitnodiging */
	.cover { --name-size: clamp(3.4rem, 6.6vw, 6.4rem); }
	.door__name { top: 23vh; font-size: var(--name-size); line-height: 1; }
	.deco--cover-tr { width: min(21vw, 300px); }
	.door--left .door__name  { text-align: right; padding-right: clamp(130px, 15vw, 240px); }
	.door--right .door__name { text-align: left;  padding-left: clamp(130px, 15vw, 240px); }
	.gate { justify-content: flex-start; padding-top: calc(30vh + var(--name-size) + 4vh); }
	.gate__garland {
		position: absolute; left: 50%; top: calc(30vh + var(--name-size) * .5);
		translate: -50% -50%; width: min(38vw, 520px); margin: 0;
	}
}
@media (max-height: 600px) and (min-width: 761px) { .gate { padding-top: calc(30vh + var(--name-size) + 1vh); } }

/* ==========================================================================
   Minder beweging: geen animaties, wel alles zichtbaar
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .deco, .js .hero__bouquet, .js .hero__date, .js .hero__line, .js .scroll-hint { opacity: 1; scale: 1; animation: none !important; }
	.js .hero .names { opacity: 1; -webkit-mask-image: none; mask-image: none; animation: none !important; }
	.js .garland { opacity: 1; clip-path: none; animation: none !important; }
	.js .reveal, .js .prog li { opacity: 1; translate: none; transition: none; }
	.cover.is-opening .door--left, .cover.is-opening .door--right { animation: none; opacity: 0; transition: opacity .6s ease; }
	.cover.is-opening .door__shade { animation: none; }
	.main { transform: none; transition: opacity .6s ease; }
	.fab, .scroll-hint span { animation: none; }
	.petals { display: none; }
}

/* ---------- beige chiffon lint met rafelrand, losse strik, lakzegel en boeket ---------- */
.cover { --band-y: calc(23vh + var(--name-size, 6rem) + 6vh); --rib-h: clamp(62px, 6.6vw, 96px); --seal: clamp(86px, 9vw, 128px); }

.ribbon {
	position: absolute; left: -2px; right: -2px; top: var(--band-y); height: var(--rib-h); translate: 0 -50%;
	pointer-events: none; z-index: 1;
	filter: url(#wi-fray) drop-shadow(0 6px 7px rgba(70, 50, 25, .28));
	background:
		/* zachte plooien in de stof (gradients lopen mee met de breedte van de deur, dus geen naden) */
		radial-gradient(ellipse 160px 70% at 12% 38%, rgba(255,255,255,.55), transparent 70%),
		radial-gradient(ellipse 200px 80% at 38% 64%, rgba(150,120,75,.22), transparent 70%),
		radial-gradient(ellipse 170px 70% at 63% 34%, rgba(255,255,255,.5), transparent 70%),
		radial-gradient(ellipse 220px 80% at 90% 62%, rgba(150,120,75,.2), transparent 70%),
		linear-gradient(180deg, #d9c9a6 0, #ebe0c8 14%, #f4ecda 40%, #eee3cb 62%, #e0d0ae 88%, #d2bf99 100%);
}
/* fijne weefdraden */
.ribbon::before {
	content: ''; position: absolute; inset: 0; opacity: .55;
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, rgba(140,110,70,.07) 1px 2px),
		repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px);
}

.sealband {
	position: absolute; left: 50%; top: var(--band-y); translate: -50% -50%; z-index: 2;
	width: var(--seal); height: var(--seal); pointer-events: none;
}
.sealband__bow { position: absolute; z-index: 1; width: calc(var(--seal) * 3.2); height: auto; left: 50%; top: 50%; translate: -50% -33.3%; filter: drop-shadow(0 7px 8px rgba(70, 50, 25, .32)); overflow: visible; animation: flora-in 1.2s var(--ease-out) 1s both; }
.seal-bouquet {
	position: absolute; z-index: 2; max-width: none; height: auto; width: calc(var(--seal) * 1.5);
	left: 50%; bottom: 38%; translate: -50% 0; transform-origin: 50% 100%;
	rotate: -6deg; filter: drop-shadow(0 5px 6px rgba(60, 30, 20, .28));
	animation: bouquet-in 1.6s var(--ease-out) 1.7s both, bouquet-sway 9s ease-in-out 3.4s infinite;
}
.gate__seal {
	position: relative; z-index: 3; display: block; width: 100%; height: 100%; margin: 0;
	filter: drop-shadow(0 7px 8px rgba(70, 10, 20, .38)) drop-shadow(0 1px 1px rgba(70, 10, 20, .4));
	animation: stamp .9s cubic-bezier(.3, 1.4, .5, 1) 1.2s both;
}
@keyframes flora-in { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes bouquet-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes bouquet-sway { 0%, 100% { rotate: -6deg; } 50% { rotate: -3.5deg; } }
@keyframes stamp { 0% { opacity: 0; scale: 1.5; } 60% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; } }
@keyframes ribbon-in { from { opacity: 0; } to { opacity: 1; } }
.js .cover.is-ready .ribbon { animation: ribbon-in 1.6s ease .3s both; }
.js .cover.is-opening .ribbon,
.cover.is-opening .sealband { animation: none; }
/* het lint wordt omhoog getrokken, met zegel, strik en boeket mee, voordat de kaart opengaat */
.js .cover.is-opening .ribbon   { animation: ribbon-up 1.5s cubic-bezier(.55, 0, .8, .45) .25s forwards; clip-path: none; }
.cover.is-opening .sealband { animation: seal-up 1.5s cubic-bezier(.55, 0, .8, .45) .25s forwards; }
@keyframes ribbon-up {
	0%   { transform: translateY(0); }
	14%  { transform: translateY(7px); }      /* even aanspannen */
	100% { transform: translateY(calc(var(--band-y) * -1 - var(--seal) * 4)); }
}
@keyframes seal-up {
	0%   { transform: translateY(0) rotate(0); }
	14%  { transform: translateY(7px) rotate(0); }
	45%  { transform: translateY(-10vh) rotate(-3deg); }
	100% { transform: translateY(calc(var(--band-y) * -1 - var(--seal) * 4)) rotate(2deg); }
}

@media (max-width: 760px) {
	.cover { --band-y: 34vh; --rib-h: 56px; --seal: 84px; }
		.gate { padding-top: calc(34vh + 96px); }
	.seal-bouquet { width: calc(var(--seal) * 1.35); }
}
@media (min-width: 761px) { .gate { padding-top: calc(var(--band-y) + var(--seal) * 1.05 + 3vh); } }
@media (prefers-reduced-motion: reduce) { .ribbon, .gate__seal, .seal-bouquet, .sealband__bow { animation: none !important; } }

/* ---------- RSVP: kinderen en brunch ---------- */
.choice--inline { grid-template-columns: 1fr 1fr; }
.choice--inline legend { grid-column: 1 / -1; }
.kids { display: grid; gap: .9rem; text-align: center; }
.kids[hidden] { display: none; }
.kids__notice { text-align: left; font-size: 1.02rem; line-height: 1.4; }
.kids__list { display: grid; gap: .5rem; }
.kids__row { display: grid; grid-template-columns: 1fr 5.2rem; gap: .5rem; }
.kids__row input[type="text"], .kids__row input[type="number"] { font-size: 1.15rem; padding: .5rem .6rem; text-align: left; }
.kids__row input[type="number"] { text-align: center; -moz-appearance: textfield; }
.kids__row input::-webkit-outer-spin-button, .kids__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step input[type="number"] { width: 100%; font: 400 1.15rem/1.3 var(--font-body); color: var(--ink); background: rgba(255,255,255,.65); border: 1.5px solid rgba(138,12,44,.35); border-radius: 8px; outline: none; }
.step input[type="number"]:focus { border-color: var(--wine); background: #fff; }
