/* ========================================
   ROTATE DEVICE OVERLAY
   ======================================== */

.rotate-device-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            rgba(235, 245, 255, 0.96) 0%,
            rgba(255, 244, 232, 0.96) 100%
        );

    padding: 24px;
    text-align: center;
}

.rotate-device-box {
    max-width: 320px;
    color: #4c6655;
}

.phone-rotate-icon {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
}

.phone-shape {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 46px;
    height: 78px;

    border: 4px solid #6f9279;
    border-radius: 14px;
    background: rgba(255,255,255,0.35);

    transform: translate(-50%, -50%);
    animation: rotatePhone 2.4s ease-in-out infinite;
}

.phone-shape::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;

    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6f9279;

    transform: translateX(-50%);
}

.rotate-arrow {
    position: absolute;
    right: 6px;
    top: 8px;

    font-size: 34px;
    color: #d7b35b;
    animation: arrowPulse 2.4s ease-in-out infinite;
}

.rotate-device-box h2 {
    margin: 0 0 12px;
    font-family: "Buckin", sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 6vw, 36px);
}

.rotate-device-box p {
    margin: 0;
    font-family: "Buckin", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

/* Alleen tonen op mobiele portrait */
@media (max-width: 900px) and (orientation: portrait) {
    .rotate-device-overlay {
        display: flex;
    }
}

@keyframes rotatePhone {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    20% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    80% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


/* ========================================
   DRAAKJE LUMI - TEASER WEBSITE
   ======================================== */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ========================================
   FULLSCREEN SCENE
   ======================================== */

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

/* ========================================
   LAAG 0 - LUCHT
   ======================================== */

.sky {
    position: absolute;
    inset: 0;
    z-index: 0;

    top: -28%;
    width: 140%;
    height: 100%;
    left: -5%;

    background-image: url("../img/sky.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* ========================================
   LAAG 1 & 2 - WOLKEN
   ======================================== */

.cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;

    overflow: hidden;
    pointer-events: none;
}

.cloud-layer-large {
    z-index: 1;
}

.cloud-layer-small {
    z-index: 2;
}

.cloud {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    height: auto;

    pointer-events: none;
    user-select: none;

    object-fit: contain;
    will-change: transform;
}

.cloud-layer-large .cloud {
    filter: blur(0.5px);
}

.cloud-layer-small .cloud {
    filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
    .cloud {
        will-change: auto;
    }
}


/* ========================================
   VOGELS
   ======================================== */

.bird-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bird-flock {
    position: absolute;
    width: 140px;
    height: 50px;
    pointer-events: none;
    animation-name: flockFly;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.bird {
    position: absolute;
    pointer-events: none;
    --flap-duration: 0.7s;
}

.bird .wing {
    position: absolute;
    top: 40%;
    width: 50%;
    height: 55%;

    border-top: 2px solid rgba(45, 60, 75, 0.8);
}

.bird .wing-left {
    left: 0;
    border-radius: 100% 0 0 0;
    transform-origin: right top;

    animation: flapLeft var(--flap-duration)
               ease-in-out infinite;
}

.bird .wing-right {
    right: 0;
    border-radius: 0 100% 0 0;
    transform-origin: left top;

    animation: flapRight var(--flap-duration)
               ease-in-out infinite;
}

@keyframes flapLeft {
    0%, 100% {
        transform: rotate(-35deg);
    }

    50% {
        transform: rotate(25deg);
    }
}

@keyframes flapRight {
    0%, 100% {
        transform: rotate(35deg);
    }

    50% {
        transform: rotate(-25deg);
    }
}


@keyframes flockFly {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(
            calc(var(--travel-x) * 0.25),
            calc(var(--travel-y) * 0.15 - 8px)
        );
    }

    50% {
        transform: translate(
            calc(var(--travel-x) * 0.5),
            calc(var(--travel-y) * 0.5 + 6px)
        );
    }

    75% {
        transform: translate(
            calc(var(--travel-x) * 0.75),
            calc(var(--travel-y) * 0.85 - 5px)
        );
    }

    100% {
        transform: translate(
            var(--travel-x),
            var(--travel-y)
        );
    }
}


/* ========================================
   LAAG 3 - RIVIER
   ======================================== */

.river-layer {
    position: absolute;
    z-index: 3;

    left: 0;
    top: 18%;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;
}


/* ========================================
   LAAG 4 - RIVIER CROSSFADE
   ======================================== */

.river-animation {
    z-index: 4;
    opacity: 0;
    transition: opacity 350ms linear;
}

/* Animatielagen zijn standaard onzichtbaar */
#river-animation-a,
#river-animation-b {
    opacity: 0;
}


/* ========================================
   LAAG 5 - LANDSCHAP
   ======================================== */

.landscape-layer {
    position: absolute;
    z-index: 5;

    left: 0;
    top: 18%;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;
}

/* ========================================
   LAAG 6 - WATERVAL + KASTEEL
   ======================================== */

.waterfall-layer {
    position: absolute;
    z-index: 6;

    left: 0;
    bottom: -0.1%;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;
}

/* ========================================
   LAAG 7 - MIST ONDER DE WATERVAL
   ======================================== */

.waterfall-mist {
    position: absolute;
    z-index: 7;
    right: -1.5%;
    bottom: 0%;
    width: 12%;
    height: 15%;
    pointer-events: none;
    overflow: visible;
}

.mist {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.95) 10%,
        rgba(255, 255, 255, 0.78) 32%,
        rgba(235, 245, 255, 0.50) 58%,
        rgba(210, 235, 255, 0.22) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(18px);
    mix-blend-mode: screen;
    opacity: 0.9;
    animation: mistBurst 3.2s ease-in-out infinite;
}

.mist-1 {
    width: 62%;
    height: 50%;
    left: 18%;
    bottom: 4%;
    animation-delay: 0s, 0s;
}

.mist-2 {
    width: 46%;
    height: 36%;
    left: 2%;
    bottom: 0%;
    opacity: 78;
    animation-delay: -0.8s, -0.5s;
}

.mist-3 {
    width: 44%;
    height: 34%;
    right: 2%;
    bottom: 7%;
    opacity: 72;
    animation-delay: -1.4s, -0.9s;
}

.mist-4 {
    width: 38%;
    height: 48%;
    left: 30%;
    bottom: 14%;
    opacity: 58;
    filter: blur(22px);
    animation: mistRise 2.8s ease-in-out infinite,
               mistPulse 2.4s ease-in-out infinite;
    animation-delay: -1.2s, -0.8s;
}

@keyframes mistBurst {
    0% {
        transform: translate3d(0, 0, 0) scale(0.92);
        opacity: 58;
    }
    25% {
        transform: translate3d(-10px, -8px, 0) scale(1.02);
        opacity: 88;
    }
    50% {
        transform: translate3d(8px, -18px, 0) scale(1.14);
        opacity: 1;
    }
    75% {
        transform: translate3d(-6px, -10px, 0) scale(1.04);
        opacity: 82;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(0.92);
        opacity: 58;
    }
}

@keyframes mistRise {
    0% {
        transform: translate3d(0, 8px, 0) scale(0.9);
        opacity: 0;
    }
    30% {
        transform: translate3d(-4px, -6px, 0) scale(1);
        opacity: 0;
    }
    60% {
        transform: translate3d(5px, -18px, 0) scale(1.08);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, -28px, 0) scale(1.14);
        opacity: 0;
    }
}

/* ========================================
   LAAG 8 - LUMI + HEUVEL BASIS
   ======================================== */

.lumi-base-layer {
    position: absolute;
    z-index: 8;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;
}

/* ========================================
   LAAG 9 - LUMI ARM
   ======================================== */

.lumi-arm-wrap {
    position: absolute;
    z-index: 9;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    user-select: none;

    transform: translate(-10px, 10px);

    /* hier stel je het rotatiepunt in */
    --arm-origin-x: 30%;
    --arm-origin-y: 68%;
}

.lumi-arm-layer {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;

    transform-origin: var(--arm-origin-x) var(--arm-origin-y);
    animation: lumiWave 2.8s ease-in-out infinite;
}

.arm-origin-dot {
    visibility: hidden;
    position: absolute;
    left: var(--arm-origin-x);
    top: var(--arm-origin-y);

    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: red;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);

    transform: translate(-50%, -60%);
    pointer-events: none;
    z-index: 999;
}

@keyframes lumiWave {
    0%   { transform: rotate(5deg); }
    10%  { transform: rotate(5deg); }
    22%  { transform: rotate(0deg); }
    38%  { transform: rotate(12deg); }
    52%  { transform: rotate(1deg); }
    66%  { transform: rotate(11deg); }
    78%  { transform: rotate(5deg); }
    100% { transform: rotate(5deg); }
}

/* ========================================
   GEMEENSCHAPPELIJKE STERRENSCENE
   ======================================== */


.lumi-stars-scene {
    position: absolute;
    z-index: 10;

    left: 0;
    top: 1%;
    width: 100%;
    height: 100%;

    pointer-events: none;
    user-select: none;
}


/* ========================================
   STERREN
   ======================================== */


.tree-star-layer {
    position: absolute;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center bottom;

    pointer-events: none;
    user-select: none;
}

.star-layer-left {
    transform-origin: var(--star-left-axis) 50%;

    animation:
        starStretch 6s ease-in-out infinite,
        starTwinkle 2.5s ease-in-out infinite;
}

.star-layer-right {
    transform-origin: var(--star-right-axis) 50%;

    animation:
        starStretch 9.6s ease-in-out infinite,
        starTwinkle 3.1s ease-in-out infinite;

    animation-delay: -1.4s, -0.8s;
}

@keyframes starStretch {
    0%, 100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(0.6);
    }
}


/* ========================================
   DEBUG-HULPLIJNEN
   ======================================== */

.star-axis {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;

    z-index: 100;
    pointer-events: none;
}

.star-axis-left {
    visibility: hidden;
    left: var(--star-left-axis);
    background: red;
}

.star-axis-right {
    visibility: hidden;
    left: var(--star-right-axis);
    background: lime;
}


/* Rond de verticale as draaien */
@keyframes starRotate {
    0% {
        transform: scaleX(1);
    }

    25% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(-1);
    }

    75% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Zacht fonkelen */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(255, 230, 140, 0.5));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(255, 235, 150, 0.95));
    }
}


/* ========================================
   DEBUG - DRAAI-ASSEN STERRETJES
   ======================================== */

.star-layer-left {
    transform-origin: var(--star-left-axis) 50%;
}

.star-layer-right {
    transform-origin: var(--star-right-axis) 50%;
}

.star-axis {
    position: absolute;
    z-index: 100;

    top: 0%;
    height: 100%;
    width: 2px;

    background: red;
    box-shadow: 0 0 3px white;

    pointer-events: none;
}

.star-axis-left {
    left: var(--star-left-axis);
}

.star-axis-right {
    left: var(--star-right-axis);
    background: #00ff00;
}


/* ========================================
   LAAG 11 - TEKST EN KNOP
   ======================================== */

.lumi-content {
    position: absolute;
    z-index: 20;

    top: 18%;
    left: 52%;
    width: 42%;

    text-align: center;
    pointer-events: auto;
}

/* Hoofdtitel */
.lumi-title {
    font-family: "Buckin", cursive;
    font-size: clamp(30px, 3.5vw, 68px);
    color: #fff8df;

    text-shadow: 0 3px 12px rgba(115, 75, 70, 0.35);

    opacity: 0;
    animation: titleAppear 2s ease-out 0.5s forwards;
}

/* Ondertitel */
.lumi-subtitle {
    margin-top: 18px;
    font-size: clamp(15px, 1.35vw, 24px);
    color: #665064;

    opacity: 0;
    animation: subtitleAppear 1.5s ease-out 1.8s forwards;
}

/* Knop */
.lumi-cta {
    margin-top: 30px;
    padding: 15px 30px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 40px;

    background: rgba(255, 250, 237, 0.85);
    color: #735468;

    font: inherit;
    cursor: pointer;

    opacity: 0;
    animation:
        buttonAppear 1.5s ease-out 3s forwards,
        buttonGlow 4s ease-in-out 4.5s infinite;
}

/* Animaties */

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes subtitleAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 225, 160, 0.15);
    }
    50% {
        box-shadow: 0 0 22px rgba(255, 225, 160, 0.6);
    }
}

.lumi-cta:hover {
    background: #fff8e8;
    box-shadow: 0 0 25px rgba(255, 225, 160, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .lumi-title,
    .lumi-subtitle,
    .lumi-cta {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}



/* ========================================
   FONTS
   ======================================== */

@font-face {
    font-family: "Buckin";
    src: url("../fonts/Buckin-Bold Regular.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Buckin";
    src: url("../fonts/Buckin-Regular Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

/* ========================================
   TEKST - DRAAKJE LUMI
   ======================================== */

.lumi-content {
    position: absolute;
    z-index: 20;

    left: 43%;
    top: 17%;
    width: 48%;

    text-align: center;
    color: #415d4c;

    pointer-events: auto;
}

.lumi-heading {
    margin: 0;
    font-family: "Buckin", sans-serif;
    font-weight: 800;
    line-height: 1.08;
}

.heading-line {
    display: block;
    font-size: clamp(24px, 3.1vw, 59px);
}

.heading-name {
    display: block;
    margin-top: 12px;

    font-size: clamp(60px, 7.5vw, 145px);
    white-space: nowrap;
    letter-spacing: -0.025em;
}

.lumi-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    margin: 0px auto 25px;
    width: 85%;

    color: #71977b;
}

.decoration-line {
    flex: 1;
    height: 2px;
    background: #71977b;
    border-radius: 100%;
}

.decoration-heart {
    font-size: 36px;
    line-height: 1;
}

.lumi-cta {
    padding: 14px 36px;

    border: none;
    border-radius: 40px;

    background: #d0e6c9;
    color: #3f5e48;

    font-family: "Buckin", sans-serif;
    font-weight: 700;
    font-size: clamp(17px, 1.6vw, 26px);

    box-shadow: 0 5px 18px rgba(73, 95, 72, 0.12);
    cursor: pointer;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.lumi-cta:hover {
    background: #e1f1d9;
    box-shadow: 0 6px 24px rgba(73, 95, 72, 0.25);
}


/* ========================================
   TEKSTANIMATIES
   ======================================== */

.heading-line,
.heading-name,
.lumi-decoration,
.lumi-cta {
    opacity: 0;
}

.heading-line-1 {
    animation: textReveal 1.4s ease-out 0.4s forwards;
}

.heading-line-2 {
    animation: textReveal 1.4s ease-out 1s forwards;
}

.heading-name {
    animation: nameReveal 1.8s ease-out 1.7s forwards;
}

.lumi-decoration {
    animation: textReveal 1.2s ease-out 2.7s forwards;
}

.lumi-cta {
    animation:
        textReveal 1.2s ease-out 3.2s forwards,
        ctaGlow 4s ease-in-out 4.4s infinite;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes nameReveal {
    from {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(7px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 230, 160, 0.2);
    }

    50% {
        box-shadow: 0 0 22px rgba(255, 230, 160, 0.65);
    }
}

@media (prefers-reduced-motion: reduce) {
    .heading-line,
    .heading-name,
    .lumi-decoration,
    .lumi-cta {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}


/* ========================================
   FONKELINGTJES ROND DE TITEL
   ======================================== */

.lumi-content {
    position: absolute;
    z-index: 20;

    left: 43%;
    top: 17%;
    width: 48%;

    text-align: center;
    color: #415d4c;

    pointer-events: auto;
}

/* extra laag rond de tekst */
.title-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 21;
}


.sparkle {
    position: absolute;
    display: block;

    color: #fe9d00;
    font-size: clamp(16px, 1.4vw, 28px);
    line-height: 1;

    opacity: 0.85;

    text-shadow:
        0 0 3px #ffffff,
        0 0 8px #fff6ba,
        0 0 18px #ffd45c,
        0 0 35px rgba(255, 195, 55, 0.7);

    animation:
        sparkleFlash 5s ease-in-out infinite,
        sparkleFloat 5.4s ease-in-out infinite;
}


/* Posities rond de tekst */
.sparkle-1 {
    left: 2%;
    top: 8%;
    animation-delay: 0s, 0s;
}

.sparkle-2 {
    left: 18%;
    top: 30%;
    font-size: clamp(12px, 1vw, 22px);
    animation-delay: -1.1s, -0.8s;
}

.sparkle-3 {
    right: 10%;
    top: 12%;
    animation-delay: -0.5s, -1.6s;
}

.sparkle-4 {
    right: 2%;
    top: 28%;
    font-size: clamp(14px, 1.2vw, 24px);
    animation-delay: -1.8s, -0.4s;
}

.sparkle-5 {
    left: 28%;
    top: 62%;
    font-size: clamp(14px, 1.1vw, 24px);
    animation-delay: -0.7s, -2s;
}

.sparkle-6 {
    right: 24%;
    top: 70%;
    animation-delay: -1.4s, -1.2s;
}


@keyframes sparkleFlash {
    0%, 35%, 75%, 100% {
        opacity: 0.25;
        scale: 0.7;

        filter: brightness(0.8);

        text-shadow:
            0 0 3px rgba(255,255,255,0.3),
            0 0 8px rgba(255,220,120,0.2);
    }

    45% {
        opacity: 1;
        scale: 1.4;

        filter: brightness(2);

        text-shadow:
            0 0 5px #ffffff,
            0 0 12px #ffffff,
            0 0 22px #ffe480,
            0 0 40px #ffcb45,
            0 0 65px rgba(255,200,80,0.8);
    }

    55% {
        opacity: 0.8;
        scale: 1.1;

        filter: brightness(1.5);

        text-shadow:
            0 0 4px #ffffff,
            0 0 12px #ffe480,
            0 0 26px rgba(255,200,80,0.6);
    }
}


.sparkle::before {
    content: "";
    position: absolute;

    width: 300%;
    height: 300%;

    left: -100%;
    top: -100%;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 255, 235, 0.85) 0%,
        rgba(255, 230, 130, 0.5) 20%,
        rgba(255, 200, 70, 0.18) 45%,
        transparent 70%
    );

    z-index: -1;
    pointer-events: none;

    animation: sparkleHalo 3s ease-in-out infinite;
}

@keyframes sparkleHalo {
    0%, 35%, 75%, 100% {
        opacity: 0.1;
        transform: scale(0.7);
    }

    45% {
        opacity: 1;
        transform: scale(1.5);
    }

    55% {
        opacity: 0.5;
        transform: scale(1);
    }
}



/* Zacht zweven */
@keyframes sparkleFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -6px;
    }
}


/* ========================================
   LUMI - INSCHRIJFMODAL
   ======================================== */

.lumi-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;

    visibility: hidden;
    pointer-events: none;

    /* Geen opacity-animatie op de volledige modal */
    transition: visibility 0s linear 0.6s;
}

.lumi-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s;
}
.lumi-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.lumi-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(35, 55, 48, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);

    transition:
        background 0.6s ease,
        backdrop-filter 0.6s ease,
        -webkit-backdrop-filter 0.6s ease;
}

.lumi-modal.is-open .lumi-modal-backdrop {
    background: rgba(35, 55, 48, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lumi-modal-box {
    position: relative;
    z-index: 1;

    width: min(580px, 96vw);
    max-height: calc(100dvh - 24px);

    padding:
        clamp(12px, 3vh, 36px)
        clamp(20px, 3vw, 48px);

    overflow: visible;

    background: linear-gradient(
        160deg,
        #fffdf3 0%,
        #fff5e8 55%,
        #eef5e7 100%
    );

    border: 2px solid rgba(255,235,185,0.9);
    border-radius: 26px;

    box-shadow:
        0 20px 80px rgba(25,45,36,0.28),
        0 0 35px rgba(255,227,150,0.28);

    color: #48664f;
    font-family: "Buckin", sans-serif;

    opacity: 0;
    transform: translateY(20px) scale(0.96);

    transition:
        opacity 0.4s ease 0.15s,
        transform 0.4s ease 0.15s;
}

.lumi-modal.is-open .lumi-modal-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lumi-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;

    border: none;
    background: transparent;
    color: #728876;

    font-size: 32px;
    cursor: pointer;
}

.lumi-modal-stars {
    text-align: center;
    font-size: 26px;
    color: #e5bf64;
    letter-spacing: 12px;

    text-shadow: 0 0 14px rgba(255, 200, 75, 0.8);
    animation: modalStarsGlow 3s ease-in-out infinite;
}

.lumi-modal-box h2 {
    margin: 12px 0 10px;
    text-align: center;

    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}

.lumi-modal-description {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 15px;
}

.lumi-form-field {
    margin-bottom: 17px;
}

.lumi-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.lumi-form-field input {
    display: block;
    width: 100%;

    padding: 13px 16px;

    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d6dfcf;
    border-radius: 12px;

    color: #405a47;
    font-family: "Buckin", sans-serif;
    font-size: 16px;
    font-weight: 400;

    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.lumi-form-field input:focus {
    border-color: #8caf90;
    box-shadow: 0 0 0 3px rgba(140,175,144,0.18);
}

.lumi-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    margin: 16px 0 22px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.lumi-consent input {
    margin-top: 3px;
    accent-color: #64896b;
    flex-shrink: 0;
}

.lumi-consent a {
    color: #416d50;
    text-decoration: underline;
}

.lumi-modal-submit {
    display: block;
    width: 100%;

    padding: 15px 20px;

    border: none;
    border-radius: 30px;

    background: #658c6b;
    color: white;

    font-family: "Buckin", sans-serif;
    font-weight: 700;
    font-size: 18px;

    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
}

.lumi-modal-submit:hover {
    background: #507859;
    transform: translateY(-2px);
}

.lumi-modal-submit:focus-visible,
.lumi-modal-close:focus-visible {
    outline: 3px solid #c99e4b;
    outline-offset: 3px;
}

.lumi-form-message {
    margin: 0 0 10px;
    font-size: 14px;
    text-align: center;
}

.lumi-form-message:empty {
    display: none;
}

@keyframes modalStarsGlow {
    0%, 100% {
        opacity: 0.5;
        text-shadow: 0 0 5px #ffe5a0;
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 12px #fff4c6,
            0 0 25px #ffd15b;
    }
}

@media (max-width: 520px) {
    .lumi-modal-box {
        padding: 32px 22px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lumi-modal,
    .lumi-modal-box,
    .lumi-modal-stars {
        animation: none;
        transition: none;
    }
}

/* Formulier in twee kolommen */
#subscribeForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

/* E-mailadres over de volledige breedte */
#subscribeForm .lumi-form-field:nth-child(3),
#subscribeForm .lumi-consent,
#subscribeForm .lumi-form-message,
#subscribeForm .lumi-modal-submit {
    grid-column: 1 / -1;
}

/* Bij weinig ruimte alles onder elkaar */
@media (max-width: 600px) {
    #subscribeForm {
        grid-template-columns: 1fr;
    }

    #subscribeForm .lumi-form-field {
        grid-column: 1 / -1;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .lumi-modal-box {
        padding: 20px 36px;
        max-height: calc(100dvh - 20px);
    }

    .lumi-modal-description {
        margin-bottom: 12px;
    }

    .lumi-form-field {
        margin-bottom: 10px;
    }
}


/* ========================================
   PORTRAIT - DRAAIMELDING
   ======================================== */

@media (max-width: 900px) and (orientation: portrait) {

    .rotate-device-overlay {
        display: flex;
        z-index: 20000;
    }

    /* Scène behouden, maar niet zichtbaar */
    .scene {
        visibility: hidden;
        pointer-events: none;
    }
}



/* Twee kolommen */
#subscribeForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}

#subscribeForm .lumi-form-field:nth-child(3),
#subscribeForm .lumi-consent,
#subscribeForm .lumi-form-message,
#subscribeForm .lumi-modal-submit {
    grid-column: 1 / -1;
}

/* Compact bij beperkte hoogte */
@media (orientation: landscape) and (max-height: 650px) {

    .lumi-modal-box {
        padding: 12px 28px;
    }

    .lumi-modal-stars {
        font-size: 18px;
        line-height: 1;
    }

    .lumi-modal-box h2 {
        margin: 4px 0;
        font-size: 25px;
    }

    .lumi-modal-description {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.25;
    }

    .lumi-form-field {
        margin-bottom: 7px;
    }

    .lumi-form-field label {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .lumi-form-field input {
        padding: 7px 12px;
        font-size: 14px;
    }

    .lumi-consent {
        margin: 5px 0 10px;
        font-size: 11px;
        line-height: 1.25;
    }

    .lumi-modal-submit {
        padding: 10px 18px;
        font-size: 15px;
        margin-top: 25px;
    }
}


/* Mobiele portrait */
@media (max-width: 900px) and (orientation: portrait) {

    .rotate-device-overlay {
        display: flex;
        z-index: 20000;
    }

    .scene {
        visibility: hidden;
        pointer-events: none;
    }
}



/* ========================================
   LAADSCHERM - STIJL VAN DE DRAAIMELDING
   ======================================== */

.lumi-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 19000; /* Draaimelding (20000) blijft erboven. */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(235, 245, 255, 1) 0%,
        rgba(255, 244, 232, 1) 100%
    );
    opacity: 1;
    visibility: visible;
    transition: opacity 650ms ease, visibility 650ms ease;
}

.lumi-loading-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lumi-loading-stars {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    color: #d7b35b;
    font-size: 34px;
}

.lumi-loading-stars span {
    display: inline-block;
    animation: lumiLoadingTwinkle 1.5s ease-in-out infinite;
}
.lumi-loading-stars span:nth-child(2) { animation-delay: 0.25s; }
.lumi-loading-stars span:nth-child(3) { animation-delay: 0.5s; }

@keyframes lumiLoadingTwinkle {
    0%, 100% { opacity: 0.4; transform: translateY(0) scale(0.85); }
    50% { opacity: 1; transform: translateY(-5px) scale(1.12); }
}

/* De scène wordt pas geanimeerd als het laadscherm verdwijnt. */
.lumi-is-loading .scene,
.lumi-is-loading .scene * {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    .lumi-loading-stars span { animation: none; opacity: 1; }
    .lumi-loading-overlay { transition: none; }
}

/* Kleinere fonkelende sterren op mobiele schermen */
@media (orientation: landscape) and (max-height: 650px) {
    .sparkle {
        font-size: 10px;
    }

    .sparkle-2 {
        font-size: 8px;
    }

    .sparkle-4,
    .sparkle-5 {
        font-size: 9px;
    }
}
