/* =====================================================================
   ALIF & INDY — VINTAGE ROMANTIC WEDDING INVITATION
   Opening Envelope + Editorial Poster Hero
   Theme: Burgundy · Ivory · Gold
   ===================================================================== */

/* =========================
   1. DESIGN TOKENS
   ========================= */

:root {
    --burgundy: #6a1f33;
    --burgundy-deep: #431322;
    --burgundy-soft: #8b4153;

    --ivory: #f6eddc;
    --paper: #fbf5e8;
    --paper-white: #fffcf5;

    --gold: #a8833f;
    --gold-soft: #d3b988;

    --ink: #38271f;
    --muted: #6c5b4f;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --script: "Great Vibes", "Snell Roundhand", cursive;
    --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    /* --- Opening (mengikuti gambar referensi) --- */
    --blush: #ecd9d8;
    --green: #1f4a2f;
    /* teks hijau tua */
    --env: #7a1c2d;
    /* amplop burgundy */
    --env-dark: #641523;
    --env-light: #832133;
    --script-names: "Monsieur La Doulaise", "Pinyon Script", "Great Vibes", cursive;
    --names-size: clamp(54px, 17vw, 84px);
    /* ubah di sini untuk ukuran nama */

    --ease: cubic-bezier(0.22, 0.8, 0.26, 1);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

@supports (width: 1cqw) {
    :root {
        --names-size: clamp(54px, 17cqw, 84px);
    }
}

/* =========================
   2. RESET & BASE
   ========================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: var(--paper);
    background: var(--burgundy);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.invitation {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-inline: 0;
    overflow-x: hidden;
    overflow: clip;
    background: var(--ivory);
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--burgundy-soft);
    font-size: 19px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

/* =========================
   3. BUTTON
   ========================= */

.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 50px;
    padding: 12px 28px;

    border: 1px solid var(--burgundy);
    border-radius: 2px;

    color: var(--paper);
    background: var(--burgundy);

    box-shadow: 4px 4px 0 rgba(168, 131, 63, 0.3);

    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        color 0.3s ease;
}

.button::before {
    position: absolute;
    inset: 0;
    z-index: -1;

    content: "";
    background: var(--paper);

    transform: translateY(101%);
    transition: transform 0.38s var(--ease);
}

@media (hover: hover) {
    .button:hover {
        color: var(--burgundy);
        transform: translate(-1px, -2px);
        box-shadow: 6px 6px 0 rgba(168, 131, 63, 0.34);
    }

    .button:hover::before {
        transform: none;
    }
}

.button:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 rgba(168, 131, 63, 0.3);
}

.icon--bob {
    animation: bob 1.8s ease-in-out infinite;
}

/* =====================================================================
   4. OPENING SCREEN — poster blush, amplop burgundy, bunga
   Urutan lapisan (bawah → atas):
   latar damask → bunga-back → teks judul → amplop → bunga di amplop
   ===================================================================== */

.opening {
    position: fixed;
    inset: 0;
    z-index: 100;

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

    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;

    color: var(--green);

    background-color: var(--blush);
    background-image: url("/images/background-welcome.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    transition:
        opacity 0.8s var(--ease),
        transform 0.9s var(--ease),
        visibility 0s linear 0.8s;
}

.js .opening {
    display: flex;
}

.opening.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.opening.is-gone {
    display: none !important;
}

/* Bunga dasar halaman */

.opening__flower-back {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;

    width: 100%;
    height: auto;
    max-height: 34vh;

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

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

/* Lewati animasi */

.opening__skip {
    position: absolute;
    top: calc(8px + var(--safe-top));
    right: 10px;
    z-index: 6;

    min-height: 44px;
    padding: 8px 12px;

    border: 0;
    color: var(--green);
    background: none;

    font-family: var(--sans);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;

    opacity: 0.75;
    cursor: pointer;

    transition: opacity 0.3s ease;
}

.opening__skip:hover {
    opacity: 1;
}

/* Kolom konten (satuan cqw mengikuti lebar kolom ini) */

.opening__stage {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 440px;
    min-height: 100%;

    padding: calc(clamp(44px, 11svh, 130px) + var(--safe-top)) 0 32px;

    container-type: inline-size;

    text-align: center;
}

/* Judul: THE WEDDING OF / nama / tanggal */

.opening__heading,
.opening__to,
.opening__actions,
.opening__skip {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.opening.is-opening .opening__heading,
.opening.is-opening .opening__to,
.opening.is-opening .opening__actions,
.opening.is-opening .opening__skip {
    opacity: 0;
    pointer-events: none;
}

.opening.is-opening .opening__heading,
.opening.is-opening .opening__to,
.opening.is-opening .opening__actions {
    transform: translateY(8px);
}

.opening__heading {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
}

.opening__kicker {
    margin: 0;

    color: var(--green);

    font-family: var(--serif);
    font-size: clamp(12px, 3.4vw, 17px);
    font-size: clamp(12px, 3.6cqw, 17px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;

    text-transform: uppercase;
}

.opening__names {
    margin: 0.04em 0 0;

    color: var(--green);

    font-family: var(--script-names);
    font-size: var(--names-size);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.opening__date {
    margin: 0;

    color: var(--green);

    font-family: var(--serif);
    font-size: clamp(16px, 4.2vw, 24px);
    font-size: clamp(16px, 4.4cqw, 24px);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Nama tamu */

.opening__to {
    position: relative;
    z-index: 3;

    max-width: 100%;
    margin: 20px 0 0;
    padding-inline: 22px;

    color: var(--green);

    font-size: clamp(14px, 3.8vw, 17px);
    font-size: clamp(14px, 3.9cqw, 17px);
    line-height: 1.35;
}

.opening__to strong {
    margin-left: 0.3em;

    overflow-wrap: anywhere;

    color: var(--green);
    font-weight: 700;
}

/* Tombol pill transparan */

.opening__actions {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 16px;
}

.opening__actions .button {
    min-width: 0;
    min-height: 0;
    padding: 0.85em 1.9em;

    border: 0;
    border-radius: 999px;

    color: #fff;
    background: rgba(122, 88, 95, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    box-shadow: none;

    font-family: var(--sans);
    font-size: clamp(14px, 4.2vw, 17px);
    font-size: clamp(14px, 4.2cqw, 17px);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.opening__actions .button::before {
    display: none;
    content: none;
}

@media (hover: hover) {
    .opening__actions .button:hover {
        color: #fff;
        background: rgba(122, 88, 95, 0.82);
        transform: translateY(-2px);
        box-shadow: none;
    }
}

.opening__actions .button:active {
    transform: none;
    box-shadow: none;
}

/* =====================================================================
   5. ENVELOPE — burgundy datar, bunga menempel
   Proporsi diukur dari gambar referensi (lebar amplop = 100%).
   ===================================================================== */

.envelope {
    position: relative;
    z-index: 2;

    width: min(74vw, 360px);
    width: min(74cqw, 360px);
    aspect-ratio: 7 / 5;

    margin: 9vw auto 0;
    margin: 9cqw auto 0;

    perspective: 1100px;

    filter: drop-shadow(0 12px 18px rgba(60, 20, 30, 0.28));

    transition: transform 0.9s var(--ease);
}

.opening.is-leaving .envelope {
    transform: translateY(-26px) scale(1.14);
}

.envelope>* {
    position: absolute;
}

/* Bagian dalam amplop */

.envelope__back {
    inset: 0;

    border-radius: 3px;

    background: var(--env-dark);
}

/* Surat */

.envelope__letter {
    position: absolute;

    top: 7%;
    right: 6%;
    left: 6%;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    height: 88%;
    padding-top: 9%;

    border: 1px solid var(--gold-soft);

    color: var(--green);

    background:
        var(--grain),
        var(--paper-white);

    box-shadow: 0 -2px 8px rgba(56, 39, 31, 0.12);

    text-align: center;

    transition: transform 1.8s var(--ease) 0.65s;
}

.envelope.is-open .envelope__letter {
    transform: translateY(-46%);
}

.envelope__kicker {
    margin: 0;

    color: var(--green);

    font-size: 16px;
    font-style: italic;
    line-height: 1.2;
}

.envelope__names {
    margin: 6px 0 4px;

    font-family: var(--script);
    font-size: clamp(40px, 13vw, 56px);
    line-height: 1.1;
}

.envelope__names span {
    padding: 0 2px;

    color: var(--gold);

    font-family: var(--serif);
    font-size: 0.5em;
    font-style: italic;
}

.envelope__date {
    margin: 0;

    color: var(--muted);

    font-size: 16px;
    letter-spacing: 0.06em;
}

/* Bagian depan: panel kiri, kanan, dan bawah */

.envelope__front {
    inset: 0;
    z-index: 3;

    border-radius: 3px;

    background: var(--env);

    clip-path: polygon(0 0,
            50% 66%,
            100% 0,
            100% 100%,
            0 100%);
}

.envelope__front::before {
    position: absolute;
    inset: 0;

    content: "";

    background: linear-gradient(var(--env-light),
            var(--env));

    clip-path: polygon(0 100%,
            50% 66%,
            100% 100%);
}

/* Flap */

.envelope__flap {
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;

    height: 67%;

    background: linear-gradient(var(--env),
            var(--env-light));

    clip-path: polygon(0 0,
            100% 0,
            50% 100%);

    transform-origin: top center;

    transition:
        transform 1.8s var(--ease) 0.25s,
        z-index 0s linear 0.55s;
}

.envelope.is-open .envelope__flap {
    z-index: 1;
    transform: rotateX(180deg);
}

/* Wax seal (di ujung flap) — memakai bulat.PNG agar hasilnya detail
   dan tetap aman di semua lingkungan (nama file mengikuti aslinya). */

.envelope__seal {
    top: 67%;
    left: 50%;
    z-index: 5;

    display: grid;
    place-items: center;

    width: 25%;
    aspect-ratio: 1 / 1;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
    box-shadow: none;

    translate: -50% -50%;

    filter: drop-shadow(0 6px 10px rgba(40, 10, 20, 0.45));

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    animation: seal-breathe 3.4s ease-in-out infinite;

    transition:
        scale 0.35s var(--ease),
        rotate 0.35s var(--ease),
        opacity 0.3s ease;
}

/* Cahaya lembut di belakang stempel supaya terlihat hidup. */
.envelope__seal::before {
    position: absolute;
    inset: -12%;
    z-index: -1;

    content: "";

    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(211, 185, 136, 0.6),
            rgba(211, 185, 136, 0) 68%);

    opacity: 0.3;

    animation: seal-glow 3.4s ease-in-out infinite;

    pointer-events: none;
}

.envelope__seal-img {
    display: block;

    width: 100%;
    height: auto;

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

.envelope__seal-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (hover: hover) {
    .envelope__seal:hover {
        scale: 1.08;
        rotate: -5deg;
    }
}

/* Stempel "terlepas" dengan lembut saat amplop dibuka. */
.opening.is-opening .envelope__seal {
    animation: seal-break 0.7s var(--ease) forwards;
    pointer-events: none;
}

@keyframes seal-breathe {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.035;
    }
}

@keyframes seal-glow {

    0%,
    100% {
        opacity: 0.24;
        scale: 0.96;
    }

    50% {
        opacity: 0.55;
        scale: 1.04;
    }
}

@keyframes seal-break {
    0% {
        opacity: 1;
        scale: 1;
        rotate: 0deg;
        translate: -50% -50%;
    }

    28% {
        opacity: 1;
        scale: 1.12;
        rotate: -7deg;
        translate: -50% -50%;
    }

    100% {
        opacity: 0;
        scale: 0.55;
        rotate: 16deg;
        translate: -50% -130%;
    }
}

/* Bunga yang menempel di amplop */

.envelope__flower {
    z-index: 6;

    height: auto;
    max-width: none;

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

/* bunga-atas.png: pojok kiri atas, keluar ke kiri */
.envelope__flower--top {
    top: -56%;
    left: -20%;

    width: 50%;
}

/* bunga-bawah.png: kanan bawah, keluar ke kanan */
.envelope__flower--bottom {
    top: 40%;
    right: -16%;

    width: 50%;
}

/* =====================================================================
   5B. HERO AYAT — kartu renda, bunga, lace
   Ukuran teks memakai satuan cqw (mengikuti lebar kartu) dengan batas
   minimum agar tetap terbaca di HP. Atur posisi teks lewat variabel:
   --ayat-top, --ayat-bottom, --ayat-pad-x
   ===================================================================== */

.hero--ayat {
    position: relative;
    isolation: isolate;

    min-height: 100vh;
    min-height: 100svh;

    padding: clamp(100px, 22vh, 240px) 0 clamp(48px, 9vh, 110px);
    padding: clamp(100px, 22svh, 240px) 0 clamp(48px, 9svh, 110px);

    overflow: hidden;
    overflow: clip;

    background-color: #3a0f1a;
    background-image: url("/images/background-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Renda vertikal di tepi kanan (gambar diulang ke bawah) */

.ayat__lace {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    z-index: 1;

    width: clamp(82px, 21%, 23px);

    background: url("/images/lace.png") repeat-y right top / 100% auto;

    pointer-events: none;
}

.ayat__stage {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 460px;

    margin: 0 auto;
}

/* Kartu oval + angsa */

.ayat__card {
    position: relative;

    width: 90%;
    margin: -100px 40% 500px 5%;
    margin-bottom: -60px;

    container-type: inline-size;

    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.ayat__card-img {
    display: block;

    width: 100%;
    height: auto;
}

/* Teks ayat di dalam oval, di atas angsa */

.ayat__content {
    position: absolute;
    top: var(--ayat-top, 15%);
    right: var(--ayat-pad-x, 14%);
    bottom: var(--ayat-bottom, 34%);
    left: var(--ayat-pad-x, 14%);

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

    color: #5a2a33;

    text-align: center;
}

.ayat__arabic {
    margin: 0 0 0.7em;

    color: #4a1f2c;

    font-family: "Scheherazade New", "Amiri", "Noto Naskh Arabic", serif;
    font-size: clamp(15px, 3.9vw, 26px);
    font-size: clamp(15px, 5cqw, 26px);
    font-weight: 500;
    line-height: 1.85;
}

.ayat__translation {
    margin: 0;

    font-family: var(--sans);
    font-size: clamp(9px, 2.3vw, 13px);
    font-size: clamp(9px, 2.9cqw, 13px);
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.5;

    text-transform: uppercase;
}

.ayat__source {
    margin: 1em 0 0;

    color: #4a1f2c;

    font-family: var(--sans);
    font-size: clamp(10px, 2.6vw, 15px);
    font-size: clamp(10px, 3.4cqw, 15px);
    font-weight: 700;
    letter-spacing: 0.03em;

    text-transform: uppercase;
}

/* Bunga menempel di sudut kiri-atas kartu (proporsi dari referensi) */

.ayat__flower {
    position: absolute;
    top: 2%;
    left: -10%;
    z-index: 3;

    width: 38%;
    height: auto;
    max-width: none;

    transform-origin: 50% 100%;

    animation: flower-sway 7s ease-in-out infinite;

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

@keyframes flower-sway {

    0%,
    100% {
        rotate: -1.2deg;
    }

    50% {
        rotate: 1.4deg;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .hero--ayat {
        min-height: auto;
        padding-top: 44px;
    }
}

/* =====================================================================
   6. HERO — POSTER STYLE
   ===================================================================== */

.hero--poster {
    position: relative;
    isolation: isolate;

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

    min-height: 100svh;

    padding:
        calc(42px + var(--safe-top)) 20px calc(60px + var(--safe-bottom));

    overflow: hidden;

    color: var(--burgundy-deep);

    background:
        radial-gradient(ellipse at 50% 40%,
            rgba(255, 252, 245, 0.95),
            rgba(246, 237, 220, 0.92) 72%),
        var(--ivory);
}

/* Border poster */

.hero--poster::before,
.hero--poster::after {
    position: absolute;
    inset: 14px;

    z-index: -1;

    content: "";
    pointer-events: none;
}

.hero--poster::before {
    border: 1.5px solid rgba(106, 31, 51, 0.75);
    border-radius: 60px 60px 20px 20px / 30px 30px 20px 20px;
}

.hero--poster::after {
    inset: 20px;

    border: 1px solid rgba(168, 131, 63, 0.45);
    border-radius: 56px 56px 16px 16px / 26px 26px 16px 16px;
}

/* Main layout */

.hero--poster .hero__inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 520px;

    margin: 0 auto;

    text-align: center;
}

/* Heading */

.hero--poster .guest-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    width: 100%;

    margin-bottom: 10px;

    text-align: center;
}

.hero--poster .guest-note__small,
.hero--poster .guest-note__line {
    color: var(--burgundy-deep);

    font-family: var(--serif);
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 600;

    letter-spacing: 2.5px;
    line-height: 1.7;

    text-transform: uppercase;
}

/* Couple names */

.hero--poster .hero__content {
    order: 1;

    width: 100%;

    margin: 0 0 8px;
    padding: 0;
}

.hero--poster .hero__names {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0;

    color: var(--burgundy);

    font-family: var(--script);
    font-size: clamp(58px, 13vw, 82px);
    font-weight: 400;

    line-height: 1.05;
}

.hero--poster .hero__names>span {
    display: inline-block;
}

.hero--poster .hero__ampersand {
    color: var(--gold);

    font-family: var(--serif);
    font-size: 0.48em;
    font-style: italic;
}

/* Couple photo */

.hero--poster .hero__visual {
    position: relative;
    z-index: 2;

    order: 2;

    width: 100%;
    max-width: 430px;

    margin: 0 auto;
    padding: 0;

    transform: none;
}

.hero--poster .hero__photo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 auto;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

.hero--poster .hero__photo img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

/* Date and details */

.hero--poster .hero__details {
    position: relative;
    z-index: 2;

    order: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    margin-top: 8px;

    gap: 12px;

    text-align: center;
}

.hero--poster .hero__date {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 500;

    letter-spacing: 3px;
    line-height: 1.2;
}

.hero--poster .hero__date-day,
.hero--poster .hero__date-month,
.hero--poster .hero__date-year {
    font-size: inherit;
    line-height: inherit;
}

.hero--poster .hero__date-divider {
    color: var(--gold);
}

.hero--poster .hero__quote {
    max-width: 300px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
}

/* CTA */

.hero--poster .hero__cta {
    min-width: 210px;
    margin-top: 8px;
}

/* =====================================================================
   7. HERO FLORAL DECORATIONS
   ===================================================================== */

/*
   File:
   public/images/bunga-atas.png
   public/images/bunga-bawah.png
   public/images/bunga-back.png

   Elemen dekorasi dibuat sebagai pseudo-element agar Blade tetap bersih.
*/

.hero--poster {
    background-image:
        url("/images/bunga-back.png"),
        radial-gradient(ellipse at 50% 40%,
            rgba(255, 252, 245, 0.95),
            rgba(246, 237, 220, 0.92) 72%);

    background-size:
        100% auto,
        cover;

    background-position:
        center bottom,
        center;

    background-repeat:
        no-repeat,
        no-repeat;
}

/* Bunga atas: sisi kiri poster */

.hero--poster .hero__inner::before {
    position: absolute;

    top: 19%;
    left: -13%;

    z-index: -1;

    width: clamp(105px, 28vw, 175px);
    aspect-ratio: 1 / 2;

    content: "";

    background: url("/images/bunga-atas.png") center / contain no-repeat;

    pointer-events: none;
}

/* Bunga bawah: sisi kanan poster */

.hero--poster .hero__inner::after {
    position: absolute;

    right: -13%;
    bottom: 18%;

    z-index: -1;

    width: clamp(120px, 31vw, 190px);
    aspect-ratio: 1 / 1;

    content: "";

    background: url("/images/bunga-bawah.png") center / contain no-repeat;

    pointer-events: none;
}

/* =====================================================================
   8. RESPONSIVE
   ===================================================================== */

@media (max-width: 600px) {
    .hero--poster {
        min-height: 100svh;

        padding:
            calc(32px + var(--safe-top)) 18px calc(45px + var(--safe-bottom));
    }

    .hero--poster::before {
        inset: 10px;
        border-radius: 42px 42px 16px 16px;
    }

    .hero--poster::after {
        inset: 15px;
        border-radius: 38px 38px 12px 12px;
    }

    .hero--poster .guest-note {
        margin-bottom: 8px;
    }

    .hero--poster .hero__names {
        gap: 5px;
        font-size: clamp(54px, 14vw, 76px);
    }

    .hero--poster .hero__visual {
        max-width: 100%;
    }

    .hero--poster .hero__details {
        margin-top: 8px;
        gap: 10px;
    }

    .hero--poster .hero__date {
        gap: 8px;
        font-size: clamp(23px, 7vw, 30px);
    }

    .hero--poster .hero__quote {
        font-size: 13px;
    }

    .hero--poster .hero__inner::before {
        top: 21%;
        left: -14%;
        width: clamp(100px, 30vw, 145px);
    }

    .hero--poster .hero__inner::after {
        right: -15%;
        bottom: 17%;
        width: clamp(115px, 34vw, 155px);
    }
}

/* Small phones */

@media (max-width: 380px) {
    .hero--poster {
        padding-inline: 15px;
    }

    .hero--poster .hero__names {
        font-size: 54px;
    }

    .hero--poster .hero__date {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .hero--poster .hero__inner::before {
        left: -16%;
        width: 110px;
    }

    .hero--poster .hero__inner::after {
        right: -17%;
        width: 115px;
    }
}

/* Tablet and desktop */

@media (min-width: 768px) {
    .hero--poster {
        padding-top: 55px;
        padding-bottom: 70px;
    }

    .hero--poster .hero__inner {
        max-width: 600px;
    }

    .hero--poster .hero__names {
        font-size: clamp(76px, 8vw, 100px);
    }

    .hero--poster .hero__visual {
        max-width: 470px;
    }

    .hero--poster .hero__inner::before {
        top: 18%;
        left: -15%;
        width: 190px;
    }

    .hero--poster .hero__inner::after {
        right: -15%;
        bottom: 17%;
        width: 200px;
    }
}

@media (min-width: 960px) {
    .opening__stage {
        max-width: 480px;
    }

    .hero--poster::before {
        inset: 20px;
        border-radius: 80px 80px 30px 30px;
    }

    .hero--poster::after {
        inset: 28px;
        border-radius: 74px 74px 24px 24px;
    }
}

/* Short landscape screens */

@media (max-height: 520px) and (orientation: landscape) {
    .opening__stage {
        padding-top: 44px;
    }

    .envelope {
        width: min(38vw, 280px);
        margin-top: 12px;
    }

    .hero--poster {
        min-height: auto;
    }
}

/* =====================================================================
   9. INTRO ANIMATION
   ===================================================================== */

.js .hero [data-intro] {
    opacity: 0;
    translate: 0 18px;
}

.js body.is-entered .hero [data-intro] {
    animation: intro-in 1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 130ms + 150ms);
}

@keyframes intro-in {
    from {
        opacity: 0;
        translate: 0 18px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(-1px);
    }

    50% {
        transform: translateY(3px);
    }
}

/* =====================================================================
   10. ACCESSIBILITY
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .js .hero [data-intro] {
        opacity: 1 !important;
        translate: none !important;
        scale: none !important;
    }

    .icon--bob,
    .ayat__flower {
        animation: none;
    }

    .opening {
        background-attachment: scroll;
    }
}

/* =========================================
   SECTION PROFIL CALON MEMPELAI
========================================= */

.mempelai-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../images/y.jpg') center/cover no-repeat;
    padding: 60px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Container untuk Gambar Card (calon-merah-card.png) */
.mempelai__card-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.mempelai__card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

/* Vas Bunga Kiri Bawah (vas.png) */
.mempelai__vas-img {
    position: absolute;
    bottom: -10px;
    left: -20px;
    width: 45%;
    max-width: 280px;
    min-width: 180px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.35));
}

/* Responsi untuk Layar HP (Mobile) */
@media (max-width: 576px) {
    .mempelai-section {
        padding: 36px 10px 44px;
    }

    .mempelai__card-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .mempelai__card-img {
        width: 100%;
    }

    .mempelai__vas-img {
        width: 37%;
        max-width: 220px;
        min-width: 150px;
        left: -22px;
        bottom: 45px;
    }
}

/* =====================================================================
    11. SECTION BARU — DETAILS · COUNTDOWN · MOMENTS · RSVP · WISHES
    ===================================================================== */

/* ---------- Utilitas section ---------- */

.section {
    position: relative;
    overflow-x: hidden;
    overflow: clip;

    padding: clamp(64px, 11vw, 110px) 20px;

    background-color: var(--sec-bg, var(--paper));
    background-image:
        var(--grain),
        radial-gradient(ellipse at 0 0, rgba(214, 168, 162, 0.18), transparent 34%),
        radial-gradient(ellipse at 100% 100%, rgba(168, 131, 63, 0.12), transparent 32%);
}

.section--details {
    --sec-bg: var(--paper);

    /* Latar serat/motif sama dengan section mempelai */
    background-image:
        var(--grain),
        url("/images/background-calon.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Turunan judul digerakkan mendekat ke card tanggal */
    & .section-heading {
        margin-bottom: 10px;
    }

    /* Di atas background motif, tulisan di luar kartu ke ivory */
    & .eyebrow,
    & .section-title,
    & .section__date {
        color: var(--ivory);
    }
}

.section--countdown {
    --sec-bg: var(--ivory);

    /* Latar khusus section hitung mundur */
    background-image:
        var(--grain),
        url("/images/back-waktu.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Di atas background motif, tulisan di luar kartu ke ivory */
    & .eyebrow,
    & .section-title,
    & .section__note {
        color: var(--ivory);
    }
}

.section--moments {
    --sec-bg: var(--paper);

    background-image:
        var(--grain),
        url("/images/backjuga.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    & .eyebrow,
    & .section-title,
    & .section__subtitle {
        color: var(--ivory);
    }
}

.section--rsvp {
    --sec-bg: var(--ivory);

    background-image:
        var(--grain),
        url("/images/background-calon.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--wishes {
    --sec-bg: var(--paper);

    & .section-heading {
        margin-bottom: -40px;
    }
}

/* ---------- WISHES STAGE (bertumpu lace-card.png) ---------- */

.wishes__stage {
    position: relative;

    width: min(100%, 360px);

    margin: 0 auto;

    container-type: inline-size;

    filter: drop-shadow(0 14px 20px rgba(67, 19, 34, 0.28));
}

.wishes__card-img {
    display: block;

    width: 100%;
    height: auto;
}

.wishes__content {
    position: absolute;
    top: 32%;
    right: 10%;
    bottom: 8%;
    left: 10%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    overflow-y: auto;
}

.section-heading {
    margin: 0 auto 44px;
    text-align: center;
}

.section-title {
    margin: 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(36px, 9vw, 54px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.08;

    text-align: center;
    text-wrap: balance;
}

.section-subtitle {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 16px;
    font-style: italic;

    text-align: center;
}

.section__date {
    margin: 16px 0 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 500;
    letter-spacing: 3px;

    text-align: center;
}

.section__date span {
    font-style: italic;
}

.section__note {
    margin: 24px 0 0;

    color: var(--muted);

    font-size: 16px;
    font-style: italic;

    text-align: center;
}

/* Userangan tombol ghost & light untuk section baru */

.button--ghost {
    color: var(--burgundy);
    background: transparent;
    box-shadow: none;
}

@media (hover: hover) {
    .button--ghost:hover {
        color: var(--paper);
        background: var(--burgundy);
        box-shadow: 4px 4px 0 rgba(168, 131, 63, 0.3);
    }
}

.button--light {
    color: var(--paper);
    background: transparent;
    border-color: rgba(251, 245, 232, 0.65);
    box-shadow: none;
}

@media (hover: hover) {
    .button--light:hover {
        color: var(--burgundy-deep);
        background: var(--paper);
        border-color: var(--paper);
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    }
}

.button.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

/* ---------- WEDDING DETAILS (satu kartu: akad + resepsi) ---------- */

.details__stage {
    position: relative;

    width: min(100%, 500px);

    margin: 0 auto;

    container-type: inline-size;

    filter: drop-shadow(0 18px 26px rgba(67, 19, 34, 0.28));
}

/* Bingkai renda dari card-tanggal.png */

.details__card-img {
    display: block;

    width: 100%;
    height: auto;
}

/* Isi kartu — area di dalam renda */

.details__content {
    position: absolute;
    top: 10%;
    right: 18%;
    bottom: 12%;
    left: 18%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.event__label {
    margin: 0;

    color: var(--gold);

    font-family: var(--sans);
    font-size: clamp(10px, 2.9cqw, 13px);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;

    text-transform: uppercase;
}

.event__name {
    margin: 4px 0 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(22px, 7.5cqw, 34px);
    font-weight: 500;
    line-height: 1.15;
}

.event__date {
    margin: 6px 0 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(14px, 4.6cqw, 19px);
    font-weight: 600;
}

.event__time {
    margin: 2px 0 0;

    color: var(--muted);

    font-size: clamp(12px, 3.9cqw, 16px);
}

.event__venue {
    margin: 8px 0 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(14px, 4.6cqw, 19px);
    font-weight: 600;
}

.event__address {
    margin: 2px 0 0;

    color: var(--muted);

    font-size: clamp(12px, 3.9cqw, 15px);
    font-style: italic;
    line-height: 1.5;
}

.event__rule {
    width: 56px;
    height: 1px;

    align-self: center;

    margin: 8px 0;

    background: var(--gold);
}

/* ---------- LOCATION (bertumpu card-location.png) ---------- */

.section--location {
    --sec-bg: var(--ivory);
}

.location__stage {
    position: relative;

    width: min(100%, 680px);

    margin: 0 auto;

    container-type: inline-size;

    filter: drop-shadow(0 14px 20px rgba(67, 19, 34, 0.28));
}

.location__card-img {
    display: block;

    width: 100%;
    height: auto;
}

/* Isi kartu — area merah tengah renda */

.location__content {
    position: absolute;
    top: 22%;
    right: 22%;
    bottom: 20%;
    left: 22%;

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

    text-align: center;
}

.location__venue {
    margin: 0;

    color: var(--paper);

    font-family: var(--serif);
    font-size: clamp(13px, 4.6cqw, 26px);
    font-weight: 500;
    line-height: 1.2;
}

.location__address {
    margin: 1cqw 0 0;

    color: rgba(251, 245, 232, 0.85);

    font-size: clamp(9.5px, 2.7cqw, 14px);
    font-style: italic;
    line-height: 1.4;
}

.location__button {
    flex: none;

    gap: clamp(5px, 1cqw, 8px);

    margin-top: 1.5cqw;

    font-size: clamp(10px, 2cqw, 13px);
    min-height: 0;

    padding: clamp(8px, 1.6cqw, 11px) clamp(12px, 2.6cqw, 18px);

    white-space: nowrap;
}

.location__button .icon {
    width: clamp(16px, 2.8cqw, 20px);
    height: clamp(16px, 2.8cqw, 20px);
}

/* Bunga menempel di sudut kartu */

.location__flower {
    position: absolute;
    z-index: 3;

    width: 19%;
    height: auto;
    max-width: none;

    transform-origin: 50% 100%;

    animation: flower-sway 7s ease-in-out infinite;

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

.location__flower--top {
    /* menumpuk di kurva renda kiri-atas oval */
    top: 6%;
    left: -9%;
}

.location__flower--bottom {
    /* dibalik supaya kaskade menggantung dari kurva renda kanan-bawah */
    transform: scaleX(-1);

    bottom: 5%;
    right: -9%;

    transform-origin: 50% 0%;
}

/* Bunga menempel di sudut kartu */

.details__flower {
    position: absolute;
    z-index: 3;

    width: 40%;
    height: auto;
    max-width: none;

    transform-origin: 50% 100%;

    animation: flower-sway 7s ease-in-out infinite;

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

.details__flower--top {
    top: -9%;
    left: -7%;
}

.details__flower--bottom {
    /* dibalik supaya kaskade menggantung ke bawah dari kanan-bawah */
    transform: scaleX(-1);

    bottom: -9%;
    right: -7%;

    transform-origin: 50% 0%;
}

.details__actions {
    display: flex;
    justify-content: center;

    margin-top: 36px;
}

/* ---------- COUNTDOWN (bertumpu card-waktu.png) ---------- */

.countdown__stage {
    position: relative;

    width: min(100%, 640px);

    margin: 0 auto;

    container-type: inline-size;

    filter: drop-shadow(0 14px 20px rgba(67, 19, 34, 0.28));
}

.countdown__card-img {
    display: block;

    width: 100%;
    height: auto;
}

/* Isi gradasi waktu — area di dalam ornamen oval */

.countdown {
    position: absolute;
    top: 26%;
    right: 27%;
    bottom: 22%;
    left: 27%;

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

    gap: 1%;
}

.countdown__item {
    display: flex;
    align-items: center;
    flex-direction: column;

    min-width: 0;
}

.countdown__item span {
    display: block;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(20px, 8cqw, 48px);
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 600;
    line-height: 1.05;
}

.countdown__item small {
    margin-top: 0.3cqw;

    color: var(--muted);

    font-family: var(--sans);
    font-size: clamp(8px, 2.2cqw, 13px);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1;

    text-transform: uppercase;
}

.countdown__separator {
    color: var(--gold);

    font-size: clamp(12px, 4cqw, 26px);
    line-height: 1.2;
}

/* ---------- BANK (bertumpu card-bank.png) ---------- */

.section--bank {
    --sec-bg: var(--ivory);
}

.bank__stage {
    position: relative;

    width: min(100%, 460px);

    margin: 0 auto;

    container-type: inline-size;

    filter: drop-shadow(0 14px 20px rgba(67, 19, 34, 0.28));
}

.bank__card-img {
    display: block;

    width: 100%;
    height: auto;
}

/* Isi kartu — area kertas di tengah nampan */

.bank__content {
    position: absolute;
    top: 27%;
    right: 21%;
    bottom: 25%;
    left: 21%;

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

    text-align: center;
}

.bank__heading {
    margin: 0 0 4cqw;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(16px, 5cqw, 27px);
    font-weight: 600;
    line-height: 1.2;
}

.bank__account+.bank__account {
    margin-top: 4cqw;

    padding-top: 3cqw;

    border-top: 1px solid rgba(168, 131, 63, 0.45);
}

.bank__holder {
    margin: 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(14px, 4.2cqw, 22px);
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bank__name {
    margin: 0.5cqw 0 0;

    color: var(--muted);

    font-family: var(--sans);
    font-size: clamp(9px, 2.8cqw, 13px);
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bank__number {
    margin: 1cqw 0 0;

    color: var(--burgundy);

    font-family: var(--serif);
    font-size: clamp(13px, 4.4cqw, 21px);
    font-weight: 500;

    letter-spacing: 0.05em;

    font-variant-numeric: lining-nums;
}

.bank__number--empty {
    color: var(--muted);

    font-family: var(--sans);
    font-size: clamp(11px, 3cqw, 14px);

    font-style: italic;
    letter-spacing: 0;
}

.bank__copy {
    margin-top: 1.6cqw;

    font-size: clamp(10px, 2.6cqw, 13px);
    min-height: 0;

    padding: clamp(7px, 1.9cqw, 11px) clamp(14px, 3.6cqw, 20px);
}

.bank__copy.is-copied {
    opacity: 1;
    pointer-events: none;
}

/* Bunga menempel di sudut kiri-atas kartu */

.bank__flower {
    position: absolute;
    top: -5%;
    left: -9%;
    z-index: 3;

    width: 23%;
    height: auto;
    max-width: none;

    transform-origin: 50% 100%;

    animation: flower-sway 7s ease-in-out infinite;

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

/* ---------- OUR MOMENTS (slideshow foto) ---------- */

.moments__slideshow {
    position: relative;

    width: min(100%, 480px);

    margin: 0 auto;
}

.moment-slides {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 5;
}

.moment-slide {
    position: absolute;
    inset: 0;

    margin: 0;

    opacity: 0;

    transition: opacity 0.7s ease;
}

.moment-slide img {
    display: block;

    width: 100%;
    height: 100%;

    /* Foto ditampilkan utuh & center — frame merah tidak terpotong */
    object-fit: contain;
}

.moment-slide.is-active {
    opacity: 1;
}

/* Tombol navigasi prev / next */

.moments__nav {
    position: absolute;
    top: 50%;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(251, 245, 232, 0.65);
    border-radius: 50%;

    color: var(--paper);
    background: rgba(67, 19, 34, 0.45);

    font-size: 24px;
    line-height: 1;

    transform: translateY(-50%);

    cursor: pointer;
}

.moments__nav--prev {
    left: -22px;
}

.moments__nav--next {
    right: -22px;
}

/* Titik navigasi */

.moments__dots {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 16px;
}

.moments__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 1px solid var(--burgundy);
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.moments__dot.is-active {
    background: var(--burgundy);
}

/* ---------- PAPER CARD (RSVP & WISHES) ---------- */

.paper-card {
    position: relative;

    max-width: 640px;
    margin: 0 auto;
    padding: 46px 24px 36px;

    border: 1px solid rgba(168, 131, 63, 0.6);
    outline: 1px solid rgba(168, 131, 63, 0.25);
    outline-offset: 6px;

    background: var(--grain), var(--paper-white);
    box-shadow: 0 16px 40px rgba(69, 23, 37, 0.08);
}

.paper-card__tape {
    position: absolute;
    top: -13px;
    left: 50%;
    z-index: 2;

    width: 92px;
    height: 26px;

    background: rgba(211, 185, 136, 0.62);
    box-shadow: 0 1px 2px rgba(56, 39, 31, 0.12);

    transform: translateX(-50%) rotate(-3deg);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 7px) 0 0 / 100% 100% no-repeat;
    mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 7px) 0 0 / 100% 100% no-repeat;
}

.paper-card__tape--rose {
    background: rgba(214, 168, 162, 0.72);

    transform: translateX(-50%) rotate(3deg);
}

.paper-card__flower {
    position: absolute;
    top: -22px;
    left: -16px;

    width: 88px;
    height: auto;
    max-width: none;

    transform: rotate(-14deg);

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

.paper-card__intro {
    max-width: 460px;
    margin: 12px auto 26px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.6;

    text-align: center;
}

.paper-card .section-title {
    font-size: clamp(32px, 8vw, 46px);
}

/* ---------- FORM (RSVP & WISHES) ---------- */

.invite-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.invite-form__group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.invite-form__group label {
    color: var(--burgundy);

    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
}

.invite-form__group label span {
    color: var(--muted);
    font-weight: 400;
}

.invite-form__group input,
.invite-form__group select,
.invite-form__group textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;

    border: 1px solid #cdb79c;
    border-radius: 2px;

    color: var(--ink);
    background: #fffdf8;

    font-family: var(--sans);
    font-size: 16px;
    /* mencegah zoom otomatis di iOS */

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.invite-form__group select {
    padding-right: 42px;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a1f33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.invite-form__group textarea {
    min-height: 120px;

    resize: vertical;
}

.invite-form__group input:focus,
.invite-form__group select:focus,
.invite-form__group textarea:focus {
    border-color: var(--burgundy);
    outline: none;

    box-shadow: 0 0 0 3px rgba(106, 31, 51, 0.12);
}

.invite-form__group input:user-invalid,
.invite-form__group select:user-invalid,
.invite-form__group textarea:user-invalid {
    border-color: #b34a52;
}

.invite-form__group small {
    color: var(--muted);

    font-family: var(--sans);
    font-size: 13px;
}

.button--submit {
    width: 100%;

    margin-top: 4px;
}

/* Stepper jumlah orang */

.stepper {
    display: flex;
}

.stepper input {
    min-width: 0;
    flex: 1;

    border-right: 0;
    border-left: 0;
    border-radius: 0;

    appearance: textfield;
    -moz-appearance: textfield;

    text-align: center;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.stepper input[readonly] {
    color: var(--muted);
    background: #f3eadb;
}

.stepper__btn {
    width: 54px;
    flex: none;

    border: 1px solid #cdb79c;
    border-radius: 2px;

    color: var(--burgundy);
    background: var(--paper);

    font-family: var(--sans);
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.stepper__btn:first-child {
    border-radius: 2px 0 0 2px;
}

.stepper__btn:last-child {
    border-radius: 0 2px 2px 0;
}

.stepper__btn:active {
    color: var(--paper);
    background: var(--burgundy);
}

.stepper__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Umpan balik form (RSVP & Wishes) */

.form-alert {
    margin: 0 0 24px;
    padding: 16px 18px;

    border: 1px solid;

    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;

    scroll-margin-top: 24px;
}

.form-alert p {
    margin: 0;
}

.form-alert__title {
    margin-bottom: 2px !important;

    font-weight: 700;
}

.form-alert ul {
    margin: 4px 0 0;
    padding-left: 20px;
}

.form-alert--success {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;

    border-color: #b9c9a9;
    color: #2f5230;
    background: #f0f5eb;
}

.form-alert--error {
    border-color: #d8a9a9;
    color: #852c35;
    background: #fff0ed;
}

/* ---------- WISHES LIST ---------- */

.wishes__list {
    display: grid;
    gap: 18px;
    max-width: 640px;

    margin: 36px auto 0;
}

.wish-card {
    padding: 20px 22px 18px;

    border: 1px solid rgba(168, 131, 63, 0.5);
    border-left: 3px solid rgba(168, 131, 63, 0.55);

    background: var(--grain), var(--paper-white);
    box-shadow: 4px 4px 0 rgba(168, 131, 63, 0.14);
}

.wish-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 12px;
}

.wish-card__name {
    margin: 0;

    color: var(--burgundy);

    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.wish-card__date {
    color: var(--muted);

    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.04em;

    white-space: nowrap;
}

.wish-card__message {
    margin: 8px 0 0;

    color: var(--ink);

    font-size: 17px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* ---------- CLOSING ---------- */

.closing {
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    overflow: clip;

    padding: clamp(70px, 12vw, 100px) 24px calc(56px + var(--safe-bottom));

    color: var(--paper);

    background:
        radial-gradient(ellipse at 50% 0, rgba(139, 65, 83, 0.5), transparent 58%),
        var(--grain),
        var(--burgundy-deep);

    text-align: center;
}

.closing__flower {
    position: absolute;
    top: 0;
    right: -40px;

    width: clamp(150px, 26vw, 250px);
    height: auto;
    max-width: none;

    transform: rotate(24deg);

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

.closing__eyebrow {
    margin: 0 0 6px;

    color: var(--gold-soft);

    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
}

.closing__names {
    margin: 0;

    color: var(--paper);

    font-family: var(--script);
    font-size: clamp(54px, 15vw, 84px);
    font-weight: 400;

    line-height: 1.15;
}

.closing__names span {
    color: var(--gold-soft);

    font-family: var(--serif);
    font-size: 0.45em;
    font-style: italic;
}

.closing__date {
    margin: 10px 0 22px;

    color: var(--gold-soft);

    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.06em;
}

.closing__thanks {
    max-width: 440px;
    margin: 0 auto 26px;

    color: rgba(251, 245, 232, 0.82);

    font-size: 17px;
}

.closing__top {
    display: inline-block;
    padding: 10px 6px;

    color: var(--gold-soft);

    font-family: var(--sans);
    font-size: 14px;

    text-decoration: underline;
    text-underline-offset: 4px;
}

.closing__bottom {
    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid rgba(211, 185, 136, 0.25);

    color: rgba(251, 245, 232, 0.65);

    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.06em;
}

/* ---------- DOCK NAVIGASI ---------- */

.dock {
    position: fixed;
    bottom: calc(12px + var(--safe-bottom));
    left: 50%;
    z-index: 60;

    display: flex;
    align-items: center;

    gap: 2px;
    max-width: calc(100vw - 20px);
    padding: 5px;

    border: 1px solid rgba(211, 185, 136, 0.35);
    border-radius: 999px;

    background: rgba(67, 19, 34, 0.94);
    box-shadow: 0 10px 28px rgba(40, 10, 20, 0.35);

    opacity: 0;
    transform: translate(-50%, 160%);

    transition: transform 0.8s var(--ease) 0.4s, opacity 0.6s ease 0.4s;
}

.no-js .dock,
body.is-entered .dock {
    opacity: 1;

    transform: translate(-50%, 0);
}

.dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 3px;
    min-width: 54px;
    min-height: 48px;
    padding: 4px 10px;

    border-radius: 999px;

    color: #efd9d2;

    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;

    transition: background-color 0.3s ease, color 0.3s ease;
}

.dock a[aria-current="true"] {
    color: #fff;
    background: rgba(251, 245, 232, 0.16);
}

.dock .icon {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .dock a:hover {
        color: #fff;
        background: rgba(251, 245, 232, 0.1);
    }
}

@media (max-width: 480px) {
    .dock a {
        min-width: 48px;
        padding: 4px 7px;
    }
}

/* ---------- TOMBOL MUSIK ---------- */

.music-toggle {
    position: fixed;
    top: calc(12px + var(--safe-top));
    right: 14px;
    z-index: 70;

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

    width: 48px;
    height: 48px;
    padding: 0;

    border: 1px solid rgba(211, 185, 136, 0.35);
    border-radius: 999px;

    color: #d3b988;
    background: rgba(67, 19, 34, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.6s ease 0.6s, background-color 0.3s ease;
}

body.is-entered .music-toggle {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) {
    .music-toggle:hover {
        background: rgba(67, 19, 34, 0.8);
    }
}

.music-toggle[aria-pressed="false"] {
    color: rgba(211, 185, 136, 0.75);
}

.music-toggle[aria-pressed="false"]::after {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 2px;
    height: 24px;

    content: "";

    background: rgba(211, 185, 136, 0.9);

    transform: translate(-50%, -50%) rotate(40deg);
}

.music-toggle[aria-pressed="true"] .icon {
    animation: sway 1.8s ease-in-out infinite;
}

/* ---------- REVEAL SAAT SCROLL ---------- */

.js [data-reveal] {
    opacity: 0;

    transition:
        opacity 0.9s var(--ease),
        translate 0.9s var(--ease),
        scale 0.9s var(--ease);

    transition-delay: var(--d, 0ms);
}

.js [data-reveal="rise"] {
    translate: 0 26px;
}

.js [data-reveal="slide-l"] {
    translate: -42px 0;
}

.js [data-reveal="slide-r"] {
    translate: 42px 0;
}

.js [data-reveal="pop"] {
    scale: 0.93;
    translate: 0 14px;
}

.js [data-reveal].is-visible {
    opacity: 1;

    translate: none;
    scale: none;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-8deg);
    }

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

/* ---------- RESPONSIVE SECTION BARU ---------- */

@media (min-width: 760px) {
    .section-heading {
        margin-bottom: 56px;
    }

    .details__stage {
        width: min(100%, 560px);
    }

    .moments__slideshow {
        width: min(100%, 560px);
    }

    .paper-card {
        padding: 54px 52px 44px;
    }
}

@media (max-width: 600px) {
    .closing__flower {
        right: -60px;
        width: clamp(120px, 24vw, 170px);
    }
}

/* ---------- REDUCED MOTION — TAMBAHAN ---------- */

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1 !important;

        translate: none !important;
        scale: none !important;
    }

    .music-toggle[aria-pressed="true"] .icon {
        animation: none;
    }
}