/* ==========================================================================
   Save the date – Esther & Ruben
   Rustig ivoor papier met kleurrijke bloemen in de hoeken (gladiolen, lavendel,
   klaprozen, cosmea, zonnebloemen), een envelop met een klassiek rood wassen
   zegel. Eén lettertype voor alle tekst: Cinzel Decorative (sierlijke kapitalen).
   ========================================================================== */

:root {
  --ink: #3A2E48;
  --muted: #66597A;
  --plum: #2F2640;
  --plum-2: #43365A;
  --plum-deep: #211A2E;
  --lavender: #B7A6D6;
  --lavender-ink: #6E5A96;
  --lavender-pale: #F1ECF6;
  --sage: #8FA68A;
  --peach: #EDC3AE;
  --sun: #E6B94C;
  --ivory: #FAF6EE;
  --paper: #FFFDF8;
  --env: #F6EFE2;
  --env-shade: #E9DDC8;
  --gold: #B8975A;
  --gold-light: #D8C08A;
  --gold-ink: #7F6434;
  --line: #E6DAC6;

  --script: "Ballet", "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;

  --shadow-card: 0 1px 2px rgba(47, 38, 64, .06), 0 24px 48px -26px rgba(47, 38, 64, .38);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 16px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  background:
    var(--noise),
    var(--ivory);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--lavender-ink); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Kiezen: dag- of avondgast (boogvenster met draaiende hemel)
   ========================================================================== */

.kies { display: none; }

html.js-kies { overflow: hidden; }
html.js-kies body { overflow: hidden; }
html.js-kies .site { visibility: hidden; }

html.js-kies .kies {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 24px);
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--noise), linear-gradient(180deg, #FFFEFA, var(--ivory) 60%, #F6EFE2);
}
.kies__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.kies__frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216, 192, 138, .4);
}
.kies__q {
  margin: 0;
  max-width: 18em;
  font: 400 clamp(19px, 5vw, 26px)/1.3 var(--serif);
  color: var(--lavender-ink);
}
.kies__q:focus { outline: none; }

/* Het boogvenster */
.kies__win {
  --w: min(72vw, 290px, 44vh);
  --ease: cubic-bezier(.65, 0, .3, 1);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.12);
  border: 2px solid var(--gold);
  border-radius: calc(var(--w) / 2) calc(var(--w) / 2) 8px 8px;
  overflow: hidden;
  overflow: clip; /* niet scrollbaar: een aangetikte zon/maan mag de hemel niet verschuiven */
  isolation: isolate;
  box-shadow: 0 22px 40px -24px rgba(47, 38, 64, .55);
}
.kies__win::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 1px solid rgba(255, 253, 248, .55);
  border-radius: calc(var(--w) / 2 - 5px) calc(var(--w) / 2 - 5px) 4px 4px;
  pointer-events: none;
}
.kies__sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.kies__sky--dusk { opacity: 1; background: linear-gradient(180deg, #6E5A96 0%, #B7A6D6 58%, #EDC3AE 100%); }
.kies__sky--day { background: linear-gradient(180deg, #E6DAF0 0%, #F3EADB 62%, #FBF6EC 100%); }
.kies__sky--night { background: linear-gradient(180deg, #120D22 0%, var(--plum) 62%, var(--plum-2) 100%); }
.kies[data-pick="dag"] .kies__sky--day,
.kies[data-pick="avond"] .kies__sky--night { opacity: 1; }
.kies[data-pick] .kies__sky--dusk { opacity: 0; }

/* Wolken uit de gravure; de rechte snijkant valt steeds net buiten het venster */
.kies__wolk {
  position: absolute;
  height: auto;
  translate: -24px 0;
  transition: translate 1.6s var(--ease);
  animation: kies-drift 7s ease-in-out infinite alternate;
}
.kies__wolk--a { top: 9%; right: -9%; width: 62%; }
.kies__wolk--b { top: 34%; left: -12%; width: 46%; scale: -1 1; translate: 24px 0; animation-delay: -3s; }
.kies[data-pick="dag"] .kies__wolk { translate: 0 0; }

/* Wolkenbank onderin = de horizon (ligt vóór de draaischijf) */
.kies__bank {
  position: absolute;
  z-index: 2;
  left: -12%;
  bottom: calc(var(--w) * -.15);
  width: 124%;
  height: auto;
  pointer-events: none;
  filter: sepia(.25) hue-rotate(-25deg) saturate(1.2);
  transition: filter 1.2s ease;
}
.kies[data-pick="dag"] .kies__bank { filter: none; }
.kies[data-pick="avond"] .kies__bank { filter: brightness(.5) saturate(.8); }
.kies__star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #F2D58A;
  animation: kies-twinkle 2.6s ease-in-out infinite;
}
.kies__star:nth-child(3n) { animation-delay: -.9s; width: 2px; height: 2px; }
.kies__star:nth-child(3n + 1) { animation-delay: -1.7s; }
@keyframes kies-drift { to { margin-left: 14px; } }
@keyframes kies-twinkle { 50% { opacity: .35; } }

/* De draaischijf: zon boven = dag, maan boven = avond; vooraf allebei aan de horizon */
.kies__disc {
  --d: calc(var(--w) * .64);
  position: absolute;
  z-index: 1;
  left: calc((var(--w) - var(--d)) / 2 - 2px);
  top: calc(var(--w) * .72 - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, .6); /* gouden baan, zoals in de zon-en-maanprent */
  transform: rotate(-90deg);
  transition: transform 1.4s var(--ease);
}
.kies__disc::before,
.kies__disc::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #E3B651;
  box-shadow: 0 0 0 3px rgba(227, 182, 81, .25);
}
.kies__disc::before { left: -4px; }
.kies__disc::after { right: -4px; }
.kies[data-pick="dag"] .kies__disc { transform: rotate(0deg); }
.kies[data-pick="avond"] .kies__disc { transform: rotate(180deg); }
.kies__body {
  --b: calc(var(--w) * .32);
  position: absolute;
  left: 50%;
  width: var(--b);
  height: var(--b);
  margin-left: calc(var(--b) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .9s ease .3s;
}
/* Wat ondergaat, verdwijnt achter de horizon */
.kies[data-pick="dag"] .kies__body--moon,
.kies[data-pick="avond"] .kies__body--sun { opacity: 0; }
.kies__body--sun { top: calc(var(--b) / -2); }
.kies__body--moon { bottom: calc(var(--b) / -2); }
.kies__body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(90deg);
  transition: transform 1.4s var(--ease), scale .3s ease;
}
.kies[data-pick="dag"] .kies__body img { transform: rotate(0deg); }
.kies[data-pick="avond"] .kies__body img { transform: rotate(-180deg); }
.kies__body:hover img { scale: 1.08; }
.kies__body:focus-visible { outline-color: #FFFEFA; outline-offset: -4px; }

/* Knoppen onder het venster */
.kies__pills { display: flex; gap: 10px; }
.kies__pill {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #FFFEFA;
  color: var(--ink);
  font: 400 14px/1.2 var(--serif);
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.kies__pill:hover { background: var(--lavender-pale); }
.kies__pill[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #F7F1E3; }

/* Na de keuze: welkom + doorgaan */
.kies__go {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.kies[data-pick] .kies__go {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 1.1s, 1.1s, 0s;
}
.kies__welcome { margin: 0; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .kies__sky, .kies__wolk, .kies__bank, .kies__disc, .kies__body img, .kies__go { transition: none; }
  .kies[data-pick] .kies__go { transition-delay: 0s; }
  .kies__wolk { animation: none; }
  .kies__star, .kies .ster:not(.ster--planeet) { animation: ster-zacht 4s ease-in-out infinite; }
}

/* ==========================================================================
   Poort: de envelop
   ========================================================================== */

.gate { display: none; }

html.js-gate { overflow: hidden; }
html.js-gate body { overflow: hidden; }
html.js-gate .site { visibility: hidden; }

html.js-gate .gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vh, 34px);
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  color: #EFE8F4;
  background:
    radial-gradient(70% 50% at 50% 55%, rgba(110, 90, 150, .45) 0%, rgba(47, 38, 64, 0) 70%),
    var(--noise),
    radial-gradient(140% 100% at 50% 40%, #3A2F4F 0%, var(--plum) 50%, var(--plum-deep) 100%);
  transition: opacity .7s ease, visibility 0s linear .7s;
}

.gate__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(216, 192, 138, .45);
  pointer-events: none;
}
.gate__frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216, 192, 138, .2);
}

.gate__skip {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, calc(-100% - 40px));
  padding: 8px 14px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: var(--plum-deep);
  color: #F4EEDD;
  font: 400 13px/1 var(--serif);
  cursor: pointer;
}
.gate__skip:focus-visible { transform: translate(-50%, 0); }

.gate__kicker {
  margin: 0;
  font: 400 clamp(18px, 4.6vw, 24px)/1.3 var(--serif);
  letter-spacing: .01em;
  color: #F1E7CF;
}

.gate__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 400 15px/1 var(--serif);
  letter-spacing: .04em;
  color: rgba(241, 231, 207, .82);
}
.gate__hint-line { width: 36px; height: 1px; background: rgba(216, 192, 138, .55); }

.gate__env {
  --w: min(84vw, 400px);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * .68);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 72px;
}
.gate__env:focus:not(:focus-visible) { outline: none; }
.gate__env:focus-visible { outline-color: var(--gold-light); outline-offset: 10px; border-radius: 6px; }

.env {
  position: absolute;
  inset: 0;
  display: block;
  perspective: 1100px;
  animation: env-float 5s ease-in-out infinite;
}
@keyframes env-float {
  0%, 100% { transform: translateY(-6px) rotate(-1.4deg); }
  50% { transform: translateY(-20px) rotate(-.4deg); }
}
@keyframes env-shadow {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(.82); opacity: .6; }
}

.env__shadow {
  position: absolute;
  left: 10%; right: 10%; bottom: -24%;
  height: 16%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 3, 14, .75), rgba(8, 3, 14, .35) 55%, transparent);
  filter: blur(5px);
  animation: env-shadow 5s ease-in-out infinite;
}
.gate.is-opening .env__shadow { animation: none; }

.env__back,
.env__front,
.env__flap-face {
  position: absolute;
  display: block;
}

/* Binnenkant: gevoerd met lavendel, fijn bloemetjespatroon */
.env__back {
  inset: 0;
  z-index: 1;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #9F8CC4, #8C78B3);
  box-shadow: 0 30px 40px -14px rgba(8, 3, 14, .6), 0 10px 18px -6px rgba(8, 3, 14, .35);
}

/* De kaart in de envelop */
.env__card {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  top: 6%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 9%;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(47, 38, 64, .25);
  color: var(--ink);
  transform: translateY(0);
}
.env__card-frame {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
}
/* wolkjes met kompasster, zoals de scheiding op de kaart */
.env__card-spray { display: flex; align-items: center; justify-content: center; gap: 1%; width: 50%; margin-bottom: 3%; }
.env__card-wolk { width: 40%; height: auto; }
.env__card-wolk--l { scale: -1 1; }
.env__card-ster { flex: none; width: 15%; aspect-ratio: 1; height: auto; overflow: visible; }
.env__card-title {
  font: 400 calc(var(--w) * .042)/1.2 var(--serif);
  color: var(--lavender-ink);
}
.env__card-names {
  font: 400 calc(var(--w) * .078)/1.5 var(--script);
  color: var(--ink);
}
.env__card-names .amp, .names .amp { color: var(--gold); padding: 0 .06em; }
.env__card-date {
  font: 400 calc(var(--w) * .034)/1.3 var(--serif);
  letter-spacing: .03em;
  color: var(--muted);
}

/* Voorkant: de 'pocket' met vouwlijnen */
.env__front {
  inset: 0;
  z-index: 3;
  border-radius: 4px;
  background:
    var(--noise),
    linear-gradient(170deg, #FBF6EC 0%, var(--env) 55%, var(--env-shade) 100%);
  clip-path: polygon(0 0, 47% 54.5%, 53% 54.5%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 90, .25);
}
.env__folds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(150, 120, 80, .28);
  stroke-width: .35;
  vector-effect: non-scaling-stroke;
}
.env__folds path { vector-effect: non-scaling-stroke; stroke-width: 1px; }

/* Klep */
.env__flap {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  display: block;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
}
.env__flap-face {
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 52% 96%, 50% 100%, 48% 96%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.env__flap-face--out {
  background:
    var(--noise),
    linear-gradient(180deg, #FCF8EF 0%, #F1E7D6 100%);
  filter: drop-shadow(0 2px 2px rgba(60, 40, 20, .2));
}
.env__flap-edge {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: rgba(150, 120, 80, .45);
}
.env__flap-edge path { vector-effect: non-scaling-stroke; stroke-width: 1.2px; }
.env__flap-face--in {
  transform: rotateX(180deg);
  clip-path: polygon(50% 0, 52% 4%, 100% 100%, 0 100%, 48% 4%);
  background:
    linear-gradient(180deg, #A693C9, #8F7BB6);
}

/* Wassen zegel op de punt van de klep */
.env__seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 58%;
  width: 25%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -58%) rotate(-8deg);
  filter: drop-shadow(0 3px 2px rgba(40, 4, 8, .45)) drop-shadow(0 1px 1px rgba(40, 4, 8, .4));
}
.env__seal-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (hover: hover) {
  .gate__env:hover .env__seal { transform: translate(-50%, -58%) rotate(-8deg) scale(1.06); }
  .env__seal { transition: transform .3s ease; }
}

/* --- Openen ------------------------------------------------------------- */
.gate.is-opening .env { animation: none; }
.gate.is-opening .gate__hint,
.gate.is-opening .gate__kicker { opacity: 0; transition: opacity .4s ease; }

.gate.is-opening .env__seal {
  transition: transform .45s cubic-bezier(.5, 0, .7, .4), opacity .45s ease;
  transform: translate(-50%, -58%) rotate(14deg) scale(1.25);
  opacity: 0;
}
.gate.is-opening .env__flap {
  transition: transform .8s cubic-bezier(.45, .05, .25, 1) .3s, z-index 0s linear .7s;
  transform: rotateX(180deg);
  z-index: 0;
}
.gate.is-opening .env__card {
  transition: transform .9s cubic-bezier(.3, .1, .2, 1) 1.05s;
  transform: translateY(-58%);
}
.gate.is-done { opacity: 0; visibility: hidden; }

/* ==========================================================================
   De save-the-date
   ========================================================================== */

.site { min-height: 100vh; display: flex; flex-direction: column; }
html.intro-revealing .site { animation: site-in .9s ease both; }
@keyframes site-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

main { flex: 1; }

.section {
  overflow-x: clip;
  padding: clamp(28px, 7vw, 72px) 16px 24px;
  display: flex;
  justify-content: center;
}

/* De kaart in boogvorm: bovenkant is een halve cirkel (--arch = halve kaartbreedte) */
.invite {
  --arch: min(280px, calc(50vw - 16px));
  --sky-h: calc(var(--arch) * 1.2);
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: calc(var(--sky-h) * .86) clamp(30px, 9vw, 72px) clamp(112px, 30vw, 180px);
  text-align: center;
  color: var(--ink);
  background:
    var(--noise),
    linear-gradient(180deg, #FFFEFA 0%, var(--paper) 60%, #FBF6EC 100%);
  border: 3px double var(--gold);
  border-radius: 50% 50% 8px 8px / var(--arch) var(--arch) 8px 8px;
  box-shadow: var(--shadow-card);
  isolation: isolate; /* hemel (z-index -1) achter de tekst, maar vóór de papierachtergrond */
}
.invite__frame {
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid var(--gold-light);
  border-radius: 50% 50% 3px 3px / calc(var(--arch) - 12px) calc(var(--arch) - 12px) 3px 3px;
  pointer-events: none;
}
.invite__frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(216, 192, 138, .45);
  border-radius: 50% 50% 2px 2px / calc(var(--arch) - 16px) calc(var(--arch) - 16px) 2px 2px;
}

/* Hemel in de boog; loopt onderaan over in het papier */
.invite__sky {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--sky-h);
  overflow: hidden;
  overflow: clip;
  border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0;
  /* prentstijl: zacht lavendel naar warm ivoor, zoals oud papier */
  background: linear-gradient(180deg, #E6DAF0 0%, #F3EADB 62%, #FBF6EC 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 98%);
  pointer-events: none;
}
html[data-guest="avond"] .invite__sky { background: linear-gradient(180deg, #120D22 0%, var(--plum) 58%, #5B4A78 100%); }
.invite__orb {
  position: absolute;
  left: 50%;
  top: 9%;
  width: auto;
  height: calc(var(--arch) * .5); /* zon en maan even hoog */
  translate: -50% 0;
}

/* Sterren (kompasster, glinsters, planeet) */
.ster {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  translate: -50% -50%;
  overflow: visible;
  animation: ster-glinster 3.4s ease-in-out infinite;
}
.ster:nth-child(2n) { animation-delay: -1.2s; animation-duration: 2.8s; }
.ster:nth-child(3n) { animation-delay: -2.3s; animation-duration: 4.1s; }
.ster--kompas { animation: ster-kompas 5s ease-in-out infinite; }
.ster--kompas + .ster--kompas { animation-delay: -2.5s; }
.ster--planeet { animation: none; }
/* glinsters: even dimmen, dan kort oplichten */
@keyframes ster-glinster {
  0%, 100% { opacity: 1; scale: 1; }
  40% { opacity: .3; scale: .7; }
  55% { opacity: 1; scale: 1.15; }
}
/* kompasster: rustig flonkeren en een fractie draaien */
@keyframes ster-kompas {
  0%, 100% { opacity: 1; scale: 1; rotate: 0deg; }
  50% { opacity: .6; scale: .88; rotate: 10deg; }
}
/* Ook met "beweging beperken" blijven ze zacht twinkelen (alleen helderheid, geen beweging) */
@keyframes ster-zacht { 50% { opacity: .45; } }
.invite__stars { position: absolute; inset: 0; }
.invite__stars--nacht,
html[data-guest="avond"] .invite__stars--dag { display: none; }
html[data-guest="avond"] .invite__stars--nacht { display: block; }

.invite__orb--moon,
html[data-guest="avond"] .invite__orb--sun,
html[data-guest="avond"] .invite__wolk { display: none; }
html[data-guest="avond"] .invite__orb--moon { display: block; }
.invite__wolk { position: absolute; height: auto; animation: kies-drift 8s ease-in-out infinite alternate; }
.invite__wolk--a { top: 20%; right: -8%; width: 44%; }
.invite__wolk--b { top: 38%; left: -10%; width: 34%; scale: -1 1; animation-delay: -4s; }
.invite__star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #F2D58A;
  animation: kies-twinkle 2.6s ease-in-out infinite;
}
.invite__star:nth-child(3n) { animation-delay: -.9s; }
.invite__star:nth-child(3n + 1) { animation-delay: -1.7s; width: 3px; height: 3px; }
/* Na het openen van de envelop komt de zon (of maan) op */
html.intro-revealing .invite__orb { animation: invite-rise 1.8s cubic-bezier(.2, .8, .3, 1) .5s both; }
@keyframes invite-rise { from { translate: -50% 45%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .invite__wolk, html.intro-revealing .invite__orb { animation: none; }
  .ster:not(.ster--planeet), .invite__star { animation: ster-zacht 4s ease-in-out infinite; }
}

.invite__garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 800;
  overflow: visible;
  pointer-events: none;
}
.invite__tuft {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: clamp(130px, 38vw, 200px);
  height: clamp(130px, 38vw, 200px);
  overflow: visible;
  pointer-events: none;
}

.invite__title {
  margin: 0;
  font: 400 clamp(22px, 6vw, 32px)/1.15 var(--serif);
  letter-spacing: .04em;
  color: var(--lavender-ink);
}
.invite__title:focus { outline: none; }

.names {
  margin: .1em 0 0;
  font: 400 clamp(34px, 9.6vw, 54px)/1.45 var(--script);
  color: var(--ink);
}
.names .name { white-space: nowrap; }

.invite__lead {
  margin: .2em 0 1.4em;
  font: 400 clamp(16px, 4vw, 19px)/1.4 var(--serif);
  color: var(--ink);
}

.when {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 clamp(12px, 4vw, 22px);
  max-width: 360px;
  margin: 0 auto;
}
.when__side {
  padding: 8px 0;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  font: 400 15px/1.2 var(--serif);
  letter-spacing: .04em;
  color: var(--muted);
}
.when__day {
  font: 400 clamp(48px, 13vw, 64px)/1 var(--serif);
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.when__year {
  grid-column: 1 / -1;
  margin-top: 6px;
  font: 400 16px/1 var(--serif);
  letter-spacing: .3em;
  padding-left: .3em;
  color: var(--gold-ink);
}

.invite__time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: .9em 0 0;
  font: 400 clamp(16px, 4vw, 18px)/1.2 var(--serif);
}

.invite__divider { display: block; width: 200px; height: auto; margin: 1.6em auto 1.5em; }
/* Scheiding met wolkjes en een kompasster in plaats van bloemen */
.invite__divider--hemel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 220px;
  height: 64px;
}
.hemelscheiding__wolk { width: 78px; height: auto; }
.hemelscheiding__wolk--l { scale: -1 1; }
.ster.hemelscheiding__kompas { position: static; flex: none; width: 34px; height: 34px; translate: none; }
.invite__divider--bank { height: 78px; align-items: flex-end; }
.hemelscheiding__bank { width: 190px; height: auto; }

.invite__place { margin: 0 0 1.4em; }
.invite__venue {
  display: block;
  font: 400 clamp(18px, 4.8vw, 22px)/1.3 var(--serif);
  color: var(--lavender-ink);
}
.invite__coords {
  display: block;
  margin-top: 4px;
  font: 400 14px/1.4 var(--serif);
  letter-spacing: .04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.invite__map { margin: 0; }
.invite__actions { margin: 1.1em 0 0; }

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.invite__dress {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1.5em;
}
.invite__dress-label {
  font: 400 14px/1.3 var(--serif);
  color: var(--muted);
}
.invite__dress-note {
  margin-top: 2px;
  font: 400 15px/1.3 var(--serif);
  color: var(--muted);
}
.invite__dress-value {
  font: 400 clamp(18px, 4.8vw, 22px)/1.3 var(--serif);
  color: var(--lavender-ink);
}

.invite__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.2em 0 0;
}
.invite__sign-love {
  font: 400 16px/1.2 var(--serif);
  color: var(--muted);
}
.invite__sign-names {
  font: 400 clamp(28px, 7.6vw, 38px)/1.5 var(--script);
  color: var(--lavender-ink);
}

.invite__follow {
  margin: 2em 0 0;
  font: 400 clamp(15px, 3.8vw, 17px)/1.5 var(--serif);
  color: var(--lavender-ink);
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px/1.2 var(--serif);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--plum); color: #F7F1E3; }
.btn--primary:hover { background: var(--plum-2); }
.btn--outline { background: #FFFEFA; color: var(--ink); border-color: var(--gold); box-shadow: 0 1px 2px rgba(47, 38, 64, .06); }
.btn--outline:hover { background: var(--lavender-pale); }
.btn .ico { stroke: currentColor; }
.btn--primary .ico { color: var(--gold-light); }

/* Agenda-menu */
.cal { position: relative; }
.cal__chev { transition: transform .2s ease; }
.cal__toggle-open .cal__chev, [aria-expanded="true"] .cal__chev { transform: rotate(180deg); }
.cal__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 250px;
  margin: 0;
  padding: 6px;
  list-style: none;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.cal__menu a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.cal__menu a:hover { background: var(--lavender-pale); }
.cal__menu .ico { margin-top: 2px; color: var(--gold-ink); }
.cal__menu small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

/* Footer */
.footer {
  padding: 28px 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer__orn { width: 150px; height: auto; }
.footer__small { margin: 0; font-size: 12px; color: var(--muted); }
.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 4px;
  border: 0;
  background: none;
  font: 400 14px/1.2 var(--serif);
  color: var(--lavender-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ==========================================================================
   Minder beweging
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .env { animation: none; }
  .gate.is-opening .env__seal,
  .gate.is-opening .env__flap,
  .gate.is-opening .env__card { transition: none; }
  .gate.is-opening .env__card { transform: none; }
  .gate.is-opening .env__flap { transform: none; }
  .gate.is-opening .env__seal { opacity: 1; transform: translate(-50%, -58%) rotate(-8deg); }
  .env__shadow { animation: none; }
  html.intro-revealing .site { animation: none; }
  .gate { transition: opacity .3s ease, visibility 0s linear .3s; }
}

/* Smalle schermen: rank iets kleiner, zodat hij niet over de tekst valt */
.invite__slinger {
  position: absolute;
  z-index: 2;
  left: -3%;
  width: 106%;
  height: auto;
  pointer-events: none;
}
.invite__slinger--bot { bottom: 8px; }

/* ==========================================================================
   Thema-knop en de garderobekast
   ========================================================================== */
.invite__dress-btn { margin: -.4em 0 0; }

html.wd-lock, html.wd-lock body { overflow: hidden; }

.wd {
  --wood: #7A5236;
  --wood-dark: #4E3220;
  --wood-light: #9C6E4B;
  --brass: #D8B46A;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.wd__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(110, 90, 150, .45), rgba(33, 26, 46, 0) 70%),
    var(--noise),
    rgba(33, 26, 46, .94);
  opacity: 0;
  transition: opacity .45s ease;
}
.wd.is-open .wd__scrim { opacity: 1; }
.wd.is-closing .wd__scrim { opacity: 0; transition-duration: .3s; }

/* --- De kast ------------------------------------------------------------ */
.wd__stage {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.5vh, 28px);
  transform: translateY(24px) scale(.92);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1), opacity .4s ease;
}
.wd.is-open .wd__stage { transform: none; opacity: 1; }
.wd.is-through .wd__stage {
  transform: scale(2.6);
  opacity: 0;
  transition: transform 1s cubic-bezier(.6, 0, .4, 1), opacity .7s ease .3s;
  pointer-events: none;
}

.wd__doors-btn {
  display: block;
  width: min(60vw, 270px, 42vh);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: env-float 5s ease-in-out infinite;
}
.wd__doors-btn:focus:not(:focus-visible) { outline: none; }
.wd__doors-btn:focus-visible { outline-color: var(--gold-light); outline-offset: 10px; border-radius: 6px; }
.wd.is-doors .wd__doors-btn { animation: none; cursor: default; }
.wd__ask {
  margin: 0;
  font: 400 clamp(17px, 4.4vw, 22px)/1.3 var(--serif);
  color: #F1E7CF;
  text-align: center;
}
.wd__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  font: 400 15px/1 var(--serif);
  letter-spacing: .04em;
  color: rgba(241, 231, 207, .82);
}
.wd__hint-line { width: 36px; height: 1px; background: rgba(216, 192, 138, .55); }
.wd__ask, .wd__hint { transition: opacity .35s ease; }
.wd.is-glint .wd__ask, .wd.is-glint .wd__hint { opacity: 0; }
.wd.is-glint .wd__doors-btn { animation: none; cursor: default; }

.wd__cabinet { position: relative; display: block; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .45)); }

.wd__crown {
  position: relative;
  display: block;
  height: 0;
  padding-bottom: 18%;
  margin: 0 -5%;
  border-radius: 50% 50% 6px 6px / 85% 85% 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 235, 200, .18), transparent 40%),
    repeating-linear-gradient(92deg, transparent 0 9px, rgba(0, 0, 0, .05) 9px 10px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 60%, var(--wood-dark));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 230, 190, .2);
}
.wd__crest {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 22%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border: 2px solid var(--brass);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: .8;
}
.wd__crest::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--brass);
}

.wd__body {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.55;
  padding: 7%;
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(0, 0, 0, .05) 11px 12px),
    linear-gradient(90deg, var(--wood-dark), var(--wood) 12%, var(--wood-light) 50%, var(--wood) 88%, var(--wood-dark));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
  perspective: 900px;
}

/* binnenkant: de verborgen tuin */
.wd__inside {
  position: absolute;
  inset: 7%;
  display: block;
  overflow: hidden;
  /* licht van binnen: warm oranje in het midden, naar groen aan de randen */
  background:
    radial-gradient(65% 50% at 50% 50%, #FFF6D2 0%, #FFD88A 28%, #F2A44A 52%, #9CC46A 80%, #5E8E46 100%);
  box-shadow: inset 0 0 22px rgba(60, 90, 30, .55);
}
/* zachte gloed over de bloemen die langzaam ademt (oranje en groen) */
.wd__gloed {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(40% 32% at 50% 45%, rgba(255, 214, 120, .55), transparent 70%),
    radial-gradient(30% 26% at 22% 78%, rgba(170, 230, 120, .45), transparent 70%),
    radial-gradient(30% 26% at 80% 22%, rgba(170, 230, 120, .4), transparent 70%);
  mix-blend-mode: screen;
  animation: wd-gloed 3.2s ease-in-out infinite alternate;
}
@keyframes wd-gloed { from { opacity: .55; } to { opacity: 1; } }
/* propvolle kast: elke laag bloemen eigen plek, breedte en hoek */
.wd__vol {
  position: absolute;
  top: var(--t);
  left: var(--l);
  width: var(--w);
  max-width: none;
  height: auto;
  rotate: var(--r);
}
.wd__vol--spiegel { scale: -1 1; }

/* Bloemen die eruit puilen (buiten de binnenkant, dus niet afgeknipt) */
.wd__uit { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.wd__uit img {
  position: absolute;
  max-width: none;
  height: auto;
  opacity: 0;
  transform: translate(0, 0) rotate(0) scale(.7);
  transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1), opacity .35s ease;
}
.wd.is-doors .wd__uit img { opacity: 1; }
/* slingers die over de onderrand naar beneden hangen, tot over de voet */
.wd__uit-1 { left: -14%; bottom: 6%; width: 128%; transform-origin: 50% 0; }
.wd.is-doors .wd__uit-1 { transform: translate(0, 75%) rotate(4deg) scale(1); transition-delay: .35s; }
.wd__uit-7 { left: -10%; bottom: 8%; width: 120%; scale: -1 1; }
.wd.is-doors .wd__uit-7 { transform: translate(0, 48%) rotate(3deg) scale(1); transition-delay: .55s; }
/* boeketten die links en rechts uit de kast tuimelen */
.wd__uit-2 { left: 8%; bottom: 12%; width: 66%; }
.wd.is-doors .wd__uit-2 { transform: translate(-78%, 34%) rotate(-32deg) scale(1); transition-delay: .5s; }
.wd__uit-3 { right: 8%; bottom: 16%; width: 64%; scale: -1 1; }
.wd.is-doors .wd__uit-3 { transform: translate(-78%, 30%) rotate(-28deg) scale(1); transition-delay: .6s; }
/* bovenste rij die over de bovenrand naar voren valt */
.wd__uit-6 { left: -12%; top: 4%; width: 124%; }
.wd.is-doors .wd__uit-6 { transform: translate(0, -40%) rotate(-3deg) scale(1); transition-delay: .45s; }
.wd__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 30% at 50% 55%, rgba(255, 250, 225, .95), transparent 70%);
  animation: wd-breathe 3s ease-in-out infinite;
}
@keyframes wd-breathe { 50% { opacity: .65; } }
.wd__fly {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFF6C8;
  box-shadow: 0 0 10px 4px rgba(255, 176, 70, .9), 0 0 22px 8px rgba(255, 200, 110, .45);
  animation: wd-fly 2.6s ease-in-out var(--d) infinite;
}
.wd__fly--groen {
  background: #F2FFD8;
  box-shadow: 0 0 10px 4px rgba(150, 225, 100, .9), 0 0 22px 8px rgba(170, 235, 120, .45);
}
/* vonken: zweven, flitsen op en doven weer */
@keyframes wd-fly {
  0%, 100% { transform: translate(0, 0) scale(.6); opacity: .2; }
  45% { transform: translate(6px, -12px) scale(1.3); opacity: 1; }
  60% { transform: translate(8px, -14px) scale(.9); opacity: .8; }
}

/* deuren */
.wd__door {
  position: absolute;
  top: 7%;
  bottom: 7%;
  width: 43%;
  display: block;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .05) 7px 8px),
    linear-gradient(90deg, var(--wood), var(--wood-light) 45%, var(--wood));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .15);
  transition: transform 1.1s cubic-bezier(.35, .05, .2, 1);
  backface-visibility: visible;
}
.wd__door--l { left: 7%; transform-origin: 0 50%; }
.wd__door--r { right: 7%; transform-origin: 100% 50%; }
.wd.is-doors .wd__door--l { transform: rotateY(-112deg); }
.wd.is-doors .wd__door--r { transform: rotateY(112deg); }

.wd__panel {
  position: absolute;
  left: 14%;
  right: 14%;
  display: block;
  border-radius: 999px 999px 4px 4px / 40px 40px 4px 4px;
  box-shadow:
    inset 2px 2px 3px rgba(0, 0, 0, .35),
    inset -1px -1px 2px rgba(255, 225, 185, .25),
    0 0 0 3px rgba(0, 0, 0, .06);
}
.wd__panel--top { top: 6%; height: 52%; }
.wd__panel--bot { bottom: 6%; height: 26%; border-radius: 4px; }
.wd__knob {
  position: absolute;
  top: 60%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF0C2, var(--brass) 50%, #8E6E36);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.wd__door--l .wd__knob { right: 7%; }
.wd__door--r .wd__knob { left: 7%; }
.wd__keyhole {
  position: absolute;
  top: 66%;
  left: 8%;
  width: 5px;
  height: 9px;
  border-radius: 3px 3px 1px 1px;
  background: #2A1A10;
}

.wd__base {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 0;
  padding-bottom: 7%;
  margin: 0 -3%;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-radius: 2px;
}
.wd__foot {
  position: absolute;
  bottom: -60%;
  width: 11%;
  height: 70%;
  background: linear-gradient(180deg, var(--wood-dark), #2E1D12);
  border-radius: 0 0 40% 40%;
}
.wd__foot:first-child { left: 4%; }
.wd__foot:last-child { right: 4%; }

/* --- De uitlegkaart ------------------------------------------------------ */
.wd__card {
  position: relative;
  grid-area: 1 / 1;
  width: min(100%, 520px);
  display: flex;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 0;
  text-align: center;
  color: var(--ink);
  background: var(--noise), linear-gradient(180deg, #FFFEFA, var(--paper) 60%, #FBF6EC);
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: scale(.94);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1), visibility 0s linear .6s;
}
.wd.is-through .wd__card {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .55s, .55s, 0s;
}
.wd.is-closing .wd__card { opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .3s ease; }
/* De gouden lijn staat vast op de kaart; de tekst scrollt binnen de lijn
   (de binnenlaag begint net binnen de lijn, dus de tekst loopt er nooit doorheen) */
.wd__card-inner {
  position: relative;
  flex: 1;
  margin: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 41px calc(clamp(22px, 7vw, 48px) - 11px) 25px;
}
.wd__card-frame {
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  pointer-events: none;
}
.wd__card-orn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 110px;
  height: 110px;
  overflow: visible;
  pointer-events: none;
  opacity: .9;
}
.wd__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #FFFEFA;
  color: var(--ink);
  cursor: pointer;
}
.wd__kicker { margin: 0; font-size: 15px; color: var(--muted); }
.wd__title {
  margin: 2px 0 0;
  font: 400 clamp(26px, 7vw, 34px)/1.2 var(--serif);
  color: var(--lavender-ink);
}
.wd__title:focus { outline: none; }
.wd__note { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.wd__card .invite__divider { margin: 1em auto 1.1em; }
.wd__body-text { text-align: left; font-size: 16px; line-height: 1.65; }
.wd__intro { margin: 0 0 1.2em; text-align: center; }
.wd__ideas { margin: 0 0 1.2em; }
.wd__ideas dt {
  margin-top: .9em;
  font-weight: 700;
  color: var(--lavender-ink);
}
.wd__ideas dd { margin: .15em 0 0; }
.wd__tips-title { margin: 1.4em 0 .4em; font-weight: 700; color: var(--lavender-ink); }
.wd__tips { margin: 0 0 1.6em; padding-left: 1.2em; }
.wd__tip { margin: 0 0 1em; text-align: center; }
.wd__tip:last-of-type { margin-bottom: 1.8em; }
.wd__body-text .wd__tips-title { text-align: center; }
.wd__tips li { margin: .3em 0; }
.wd__tips li::marker { color: var(--gold); }
.wd__card-inner > .btn { margin-top: .4em; position: relative; }
/* Bloemenslingers boven en onder in de dresscode-kaart (zoals de oorspronkelijke kaart) */
.wd__slinger {
  --bleed: calc(clamp(22px, 7vw, 48px) - 11px);
  display: block;
  width: calc(100% + 2 * var(--bleed));
  max-width: none;
  height: auto;
  margin-inline: calc(-1 * var(--bleed));
}
.wd__slinger--top { margin-top: -34px; margin-bottom: 4px; }
.wd__slinger--bot { margin-top: 18px; margin-bottom: -22px; }
.wd__close { z-index: 3; }

/* --- Lichtflits uit het sleutelgat, daarna licht door de deuren --------- */
.wd { --sage-light: 205, 226, 186; }
.wd__keyhole { transition: background-color .25s ease, box-shadow .25s ease; }
.wd.is-glint .wd__keyhole {
  background: #E4F0D6;
  box-shadow: 0 0 4px 2px rgba(var(--sage-light), .95), 0 0 14px 6px rgba(var(--sage-light), .6);
}
.wd__seam {
  position: absolute;
  z-index: 2;
  left: calc(50% - 1px);
  top: 7%;
  bottom: 7%;
  width: 2px;
  display: block;
  background: rgba(var(--sage-light), .95);
  box-shadow: 0 0 10px 3px rgba(var(--sage-light), .7);
  opacity: 0;
  transform: scaleY(.2);
  transition: opacity .5s ease .25s, transform .6s ease .25s;
}
.wd.is-glint .wd__seam { opacity: 1; transform: none; }
.wd.is-doors .wd__seam { opacity: 0; transition: opacity .4s ease; }

.wd__flash {
  position: absolute;
  z-index: 3;
  /* in de rechterdeur, midden op het sleutelgat (zie .wd__keyhole in prent.css) */
  left: calc(6% + 2px);
  top: calc(52% + 3.5px);
  width: 0;
  height: 0;
  display: block;
  pointer-events: none;
}
.wd__flash::before,
.wd__flash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.wd__flash::before {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 245, .95) 0%, rgba(var(--sage-light), .85) 18%, rgba(var(--sage-light), .25) 45%, transparent 70%);
}
.wd__flash::after {
  width: 180px;
  height: 180px;
  background: repeating-conic-gradient(from 8deg, rgba(var(--sage-light), .55) 0deg 4deg, transparent 4deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 65%);
  mask: radial-gradient(circle, #000 0%, transparent 65%);
}
.wd.is-glint .wd__flash::before { animation: wd-flash .9s ease-out forwards; }
.wd.is-glint .wd__flash::after { animation: wd-rays .9s ease-out forwards; }
@keyframes wd-flash {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(.7); opacity: .55; }
}
@keyframes wd-rays {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1) rotate(12deg); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.15) rotate(30deg); opacity: 0; }
}
.wd.is-doors .wd__flash::before { animation: none; opacity: 0; transition: opacity .4s ease; }

/* meer licht zodra de deuren opengaan */
.wd__burst {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 240, .95) 0%, rgba(var(--sage-light), .7) 22%, rgba(var(--sage-light), .25) 45%, transparent 68%);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  mix-blend-mode: screen;
}
.wd.is-doors .wd__burst { animation: wd-burst 1.5s ease-out .2s forwards; }
@keyframes wd-burst {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  45% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } /* licht dooft, zodat de bloemen goed te zien zijn */
}

@media (prefers-reduced-motion: reduce) {
  .wd__flash, .wd__burst, .wd__seam { display: none; }
  .wd__stage { display: none; }
  .wd__scrim, .wd__card { transition: none; }
  .wd__glow, .wd__fly, .wd__gloed { animation: none; }
}
