/* =========================================
   DARIUS & MEILIANI
   WEDDING INVITATION
   GLOBAL STYLE
========================================= */
/* ---------- COLOR SYSTEM ---------- */

:root {
    --ivory: #f7f4ee;
    --champagne: #e8ddcd;
    --gold: #b49a6a;
    --gold-light: #d2bd91;

    --espresso: #302a24;
    --charcoal: #252321;

    --white: #ffffff;
    --page-h: 100vh;
}

@supports (height: 100svh) {
    :root {
        --page-h: 100svh;
    }
}

/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;

    /* Optional: prevents scrollbar-induced horizontal shifting on desktop */
    overflow-x: hidden;
}

body {
    background: var(--ivory);
    color: var(--espresso);

    width: 100%;
    margin: 0;
    padding: 0;

    font-family: 'DM Sans', sans-serif;
    font-weight: 300;

    -webkit-font-smoothing: antialiased;
}

/* Lock both html and body during preloader */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
    /* Prevents touch dragging on mobile Safari */
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

p {
    line-height: 1.7;
}


/* ---------- LINKS ---------- */

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- BUTTON ---------- */

button {
    font-family: 'DM Sans', sans-serif;
}


/* ---------- GLOBAL PAGE ---------- */

.page {
    position: relative;
    overflow: hidden;

    /* Snaps the start (top) of each section to the top of the screen */
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    /* Prevents skipping pages on fast scrolls */

    /* Ensure each section fills at least 100% of the screen height */
    min-height: var(--page-h);
    width: 100%;
    box-sizing: border-box;
}


/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

}

/* =========================================
   PAGE 1 — OPENING
========================================= */

.opening {
    position: relative;
    min-height: var(--page-h);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #302a24;
    color: var(--white);
}


/* =========================================
   SLIDESHOW PHOTO LAYERS
========================================= */

.opening::before,
.opening::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

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

    transform: scale(1.02);

    transition:
        opacity 1.4s ease-in-out,
        transform 5s ease-out;
}


/* Current photo */
.opening::before {
    background-image: var(--opening-photo-current);
    opacity: 1;
}


/* Incoming photo */
.opening::after {
    background-image: var(--opening-photo-next);
    opacity: 0;
}


/* =========================================
   CROSSFADE
========================================= */

.opening.photo-changing::before {
    opacity: 0;
    transform: scale(1.05);
}

.opening.photo-changing::after {
    opacity: 1;
    transform: scale(1.05);
}


/* =========================================
   DARK OVERLAY
========================================= */

.opening-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(rgba(30, 25, 20, 0.20),
            rgba(30, 25, 20, 0.38));
}


/* =========================================
   CONTENT
========================================= */

.opening-content {
    position: relative;
    z-index: 2;

    width: min(90%, 700px);

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

    padding: 40px 20px;
}


/* ---------- EYEBROW ---------- */

.opening .eyebrow {
    margin-bottom: 24px;

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.8);
}


/* ---------- COUPLE NAME ---------- */

.couple-name {
    font-size: clamp(38px, 9vw, 88px);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.02em;

    color: var(--white);
}

.couple-name span {
    display: block;

    margin: 12px 0;

    font-size: 0.45em;
    font-style: italic;
    font-weight: 300;

    color: var(--gold-light);
}


/* ---------- DATE ---------- */

.wedding-date {
    margin-top: 30px;

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35em;

    color: rgba(255, 255, 255, 0.9);
}


/* ---------- GUEST ---------- */

.guest-wrapper {
    margin-top: 70px;
}

.guest-label {
    margin-bottom: 8px;

    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3em;

    color: rgba(255, 255, 255, 0.6);
}

.guest-name {
    font-family: 'Cormorant Garamond', serif;

    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--white);
}

.guest-apology {
    max-width: 320px;

    margin-top: 14px;

    font-size: 9px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.08em;

    color: rgba(255, 255, 255, 0.62);
}


/* ---------- OPEN BUTTON ---------- */

.open-button {
    margin-top: 36px;

    padding: 14px 34px;

    border: 1px solid rgba(210, 189, 145, 0.8);

    background: transparent;

    color: var(--white);

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;

    cursor: pointer;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

.open-button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--espresso);
}

/* =========================================
   PAGE 2 — WEDDING VERSE
========================================= */

.verse {

    min-height: var(--page-h);

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:

        linear-gradient(rgba(20, 18, 15, 0.28),
            rgba(20, 18, 15, 0.42)),

        url("../assets/images/page1-1.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: var(--white);

}


.verse .section-content {
    width: min(88%, 720px);

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

    padding: 80px 20px;
}


/* ---------- EYEBROW ---------- */

.verse .section-eyebrow {
    margin-bottom: 42px;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.32em;
    text-transform: uppercase;

    color: var(--gold);
}


/* ---------- VERSE ---------- */

.verse blockquote {

    max-width: 720px;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(17px, 4vw, 38px);

    line-height: 1.35;

    font-weight: 300;

    font-style: italic;

    color: var(--white);

}

/* ---------- REFERENCE ---------- */

.verse .verse-reference {
    margin-top: 28px;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: var(--white);
}


/* ---------- DIVIDER ---------- */

.verse .section-divider {
    width: 55px;
    height: 1px;

    margin: 42px 0;

    background: var(--gold-light);
}


/* ---------- COUPLE ---------- */

.verse h2 {
    font-size: clamp(16px, 4vw, 34px);

    line-height: 1.25;
    letter-spacing: 0.08em;

    font-weight: 400;
}


.verse h2 .couple-line {
    display: block;
    color: var(--white);
    font-style: normal;
}

.verse h2 .ampersand {
    display: block;

    margin: 8px 0;

    color: var(--white);
    font-style: italic;
    font-size: 0.8em;
}


.verse .section-date {
    margin-top: 14px;

    font-size: 11px;
    font-weight: 400;

    letter-spacing: 0.3em;

    color: var(--white);
}

/* =========================================
   PAGE 3 — ACROSS TIME & LOVE
========================================= */

.story {
    position: relative;
    min-height: var(--page-h);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.story-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.story-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(25, 21, 18, 0.38),
            rgba(25, 21, 18, 0.58));
}

.story .section-content {
    position: relative;
    z-index: 2;
    width: min(88%, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 20px;
}

.story .section-eyebrow {
    margin-bottom: 50px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.story .story-item {
    width: 100%;
    max-width: 520px;
    margin-bottom: 48px;
}

.story .story-item:last-child {
    margin-bottom: 0;
}

.story .story-date {
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: var(--gold-light);
}

.story .story-text {
    max-width: 460px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 4vw, 27px);
    line-height: 1.45;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
}

.story .story-item:not(:last-child)::after {
    content: "";
    display: block;
    width: 35px;
    height: 1px;
    margin: 38px auto 0;
    background: var(--gold-light);
}

/* =========================================
   PRELOADER
========================================= */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    background: var(--ivory);

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

    text-align: center;
}

/* ---------- TOP TEXT ---------- */

.preloader-top {
    min-height: 14px;
    margin: 0 0 18px;

    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 400;

    letter-spacing: 0.38em;
    text-transform: uppercase;

    color: var(--gold);

    white-space: pre;
}

/* ---------- PHOTO ---------- */

.preloader-photo {
    width: 120px;
    height: 155px;

    overflow: hidden;

    background: var(--champagne);

    border: 1px solid rgba(180, 154, 106, 0.7);

    box-shadow: 0 14px 38px rgba(48, 42, 36, 0.12);
}

.preloader-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ---------- COUPLE NAME ---------- */

.preloader-names {
    min-height: 35px;
    margin: 18px 0 0;

    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 400;

    letter-spacing: 0.08em;

    color: var(--espresso);

    white-space: pre;
}

/* ---------- LOADING PERCENTAGE ---------- */

/* Supports both class names (.preloader-loading and .preloader-percent) */
.preloader-loading,
.preloader-percent {
    min-height: 14px;
    margin: 8px 0 0;

    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 400;

    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: var(--gold);
}

/* =========================================
   PAGE 4 & 5 — GROOM / BRIDE
   FULL-SCREEN EDITORIAL PHOTO
========================================= */

.person-page {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    overflow: hidden;
    color: var(--white);
}

/* ---------- FULL BACKGROUND PHOTO ---------- */

.person-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.person-photo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

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

/* ---------- PHOTO OVERLAY ---------- */

.person-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(20, 17, 14, 0.48) 0%,
            rgba(20, 17, 14, 0.15) 38%,
            rgba(20, 17, 14, 0.05) 65%,
            rgba(20, 17, 14, 0.20) 100%);
}

/* ---------- TEXT — TOP RIGHT ---------- */

.person-content {
    position: relative;
    z-index: 2;

    width: 90%;
    min-height: var(--page-h);

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: flex-end;
    justify-content: flex-start;

    text-align: right;

    padding-top: clamp(70px, 10vh, 110px);
}

/* ---------- THE GROOM / THE BRIDE ---------- */

.person-content .section-eyebrow {
    margin: 0 0 14px;

    font-family: 'DM Sans', sans-serif;

    font-size: 9px;
    font-weight: 400;

    letter-spacing: 0.38em;
    text-transform: uppercase;

    color: var(--gold-light);
}

/* ---------- NAME ---------- */

.person-content h2 {
    margin: 0;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(34px, 5vw, 52px);
    font-weight: 400;

    line-height: 1.02;
    letter-spacing: 0.015em;

    color: var(--white);
}

/* ---------- FAMILY ---------- */

.person-content .person-family {
    margin: 16px 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- INSTAGRAM ---------- */
.person-content .instagram-button {
    margin-top: 19px;
    color: var(--charcoal);
    border: none;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-decoration: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .person-content {
        width: 88%;
        padding-top: 70px;
    }

    .person-content .section-eyebrow {
        font-size: 8px;
        letter-spacing: 0.32em;
        margin-bottom: 11px;
    }

    .person-content h2 {
        font-size: clamp(30px, 8vw, 38px);
        max-width: 250px;
    }

    .person-content .person-family {
        font-size: 15px;
        line-height: 1.4;
        max-width: 230px;
    }

    .person-content .instagram-button {
        font-size: 7px;
        margin-top: 16px;
        color: ghostwhite;
        background: transparent;
    }

    .person-content .instagram-button:hover {
        background: transparent;
        border-color: var(--gold);
        transform: translateY(-2px);
    }
}

/* =========================================
   PAGE 6 — AND THEN, THERE WAS US
========================================= */

.together {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    overflow: hidden;

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

    background: #302a24;
    color: var(--white);
}

/* ---------- BACKGROUND PHOTO ---------- */

.together-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.together-photo {
    width: 100%;
    height: 100%;

    display: block;

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

/* ---------- DARK OVERLAY ---------- */

.together-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(20, 17, 14, 0.18),
            rgba(20, 17, 14, 0.12) 40%,
            rgba(20, 17, 14, 0.48) 100%);
}

/* ---------- CONTENT ---------- */

.together-content {
    position: relative;
    z-index: 2;

    width: min(90%, 720px);
    min-height: var(--page-h);

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

    padding: 60px 24px 70px;

    text-align: center;
}

/* ---------- TITLE ---------- */

.together-eyebrow {
    margin: 0;

    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.94);
}

/* ---------- POETIC WORDING ---------- */

.together-quote {
    margin-top: 22px;

    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.25;

    letter-spacing: 0.01em;

    color: rgba(255, 255, 255, 0.96);
}

/* ---------- COUPLE NAMES ---------- */

.together-names {
    margin-top: 48px;

    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 400;
    font-style: italic;
    line-height: 1;

    letter-spacing: -0.02em;
    text-transform: none;

    color: var(--white);
}

.together-names span {
    display: inline-block;

    margin: 0 8px;

    font-family: 'Cormorant Garamond', serif;
    font-size: 0.5em;
    font-style: normal;
    font-weight: 300;

    vertical-align: middle;

    color: var(--white);
}

/* ---------- DATE + HASHTAG ---------- */

.together-details {
    margin-top: 34px;

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

    gap: 10px;
}

.together-details p {
    margin: 0;

    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.5;

    letter-spacing: 0.3em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.84);
}

.together-details p:last-child {
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: none;

    color: rgba(255, 255, 255, 0.64);
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    .together-content {
        padding: 50px 22px 60px;
    }

    .together-eyebrow {
        font-size: 11px;
        letter-spacing: 0.25em;
    }

    .together-quote {
        margin-top: 18px;
        font-size: 21px;
    }

    .together-names {
        margin-top: 40px;
        font-size: 50px;
    }

    .together-names span {
        margin: 0 5px;
    }

    .together-details {
        margin-top: 30px;
    }
}

/* =========================================
   PAGE 7 — SAVE OUR DATE
   CINEMATIC EVENT DETAILS
========================================= */

.save-our-date {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    overflow: hidden;
    color: var(--white);
    background: var(--charcoal);
}


/* ---------- BACKGROUND ---------- */

.save-date-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.save-date-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.save-date-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(20, 17, 14, 0.48) 0%,
            rgba(20, 17, 14, 0.32) 35%,
            rgba(20, 17, 14, 0.58) 100%);
}


/* ---------- CONTENT ---------- */

.save-date-content {
    position: relative;
    z-index: 2;

    width: min(88%, 760px);
    min-height: var(--page-h);

    margin: 0 auto;

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

    text-align: center;

    padding:
        clamp(60px, 8vh, 90px) 0;
}


/* ---------- TITLE ---------- */

.save-date-eyebrow {
    margin: 0 0 clamp(18px, 2.5vh, 28px);

    font-family: "DM Sans", sans-serif;
    font-size: clamp(9px, 1vw, 12px);
    font-weight: 500;

    letter-spacing: 0.34em;
    text-transform: uppercase;

    color: var(--white);
}


/* ---------- MAIN DATE ---------- */

.save-date-main-date {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom:
        clamp(30px, 4vh, 45px);
}

.save-date-day {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 400;

    letter-spacing: 0.28em;

    color: var(--gold-light);
}

.save-date-date {
    margin-top: 3px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;

    letter-spacing: 0.08em;

    color: var(--white);
}


/* ---------- TWO EVENTS ---------- */

.save-date-events {
    position: relative;

    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(30px, 6vw, 90px);
}


/* ---------- CENTER DIVIDER ---------- */

.save-date-events::before {
    content: "";

    position: absolute;

    top: 4%;
    bottom: 4%;
    left: 50%;

    width: 1px;

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(210, 189, 145, 0.75),
            transparent);
}


/* ---------- EVENT ---------- */

.save-date-event {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        0 clamp(10px, 2vw, 25px);
}


/* ---------- EVENT TITLE ---------- */

.event-title {
    margin: 0 0 12px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(17px, 2.1vw, 25px);
    font-weight: 500;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--gold-light);
}


/* ---------- DATE ---------- */

.event-date {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 400;

    letter-spacing: 0.04em;

    color: rgba(255, 255, 255, 0.92);
}


/* ---------- TIME ---------- */

.event-time {
    margin:
        5px 0 13px;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 500;

    letter-spacing: 0.12em;

    color: var(--white);
}


/* ---------- DIVIDER ---------- */

.event-divider {
    width: 42px;
    height: 1px;

    margin: 0 0 14px;

    background: var(--gold-light);

    opacity: 0.8;
}


/* ---------- VENUE ---------- */

.event-venue {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(16px, 1.9vw, 22px);
    font-weight: 500;

    color: var(--white);
}

.event-city {
    margin:
        1px 0 17px;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(9px, 0.9vw, 12px);

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.78);
}


/* ---------- GOOGLE MAPS BUTTON ---------- */

.maps-button {
    display: inline-flex;

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

    min-height: 34px;

    padding:
        8px 16px;

    border:
        1px solid rgba(210, 189, 145, 0.85);

    background:
        rgba(30, 26, 22, 0.22);

    color: var(--white);

    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 500;

    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;

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

.maps-button:hover {
    background: var(--gold-light);

    border-color: var(--gold-light);

    color: var(--espresso);

    transform: translateY(-2px);
}


/* =========================================
   PAGE 7 — MOBILE
========================================= */

@media (max-width: 700px) {

    .save-date-content {
        width: 88%;

        padding:
            55px 0 45px;
    }

    .save-date-eyebrow {
        margin-bottom: 15px;
    }

    .save-date-main-date {
        margin-bottom: 28px;
    }

    .save-date-date {
        font-size:
            clamp(25px, 8vw, 34px);
    }

    .save-date-events {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .save-date-events::before {
        display: none;
    }

    .save-date-event+.save-date-event {
        position: relative;

        padding-top: 30px;
    }

    .save-date-event+.save-date-event::before {
        content: "";

        position: absolute;

        top: 0;
        left: 50%;

        width: 42px;
        height: 1px;

        transform: translateX(-50%);

        background: var(--gold-light);

        opacity: 0.65;
    }

    .event-title {
        font-size: 19px;
    }

    .event-date,
    .event-time {
        font-size: 10px;
    }

    .event-venue {
        font-size: 19px;
    }

    .maps-button {
        min-height: 32px;

        padding:
            7px 14px;

        font-size: 7px;
    }
}

/* =========================================
   PAGE 8 — COUNTDOWN
   FULL PHOTO / MINIMAL LUXURY
========================================= */

.countdown-page {
    position: relative;
    width: 100%;
    min-height: var(--page-h);

    overflow: hidden;

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

    color: var(--white);

    background: var(--charcoal);
}


/* ---------- BACKGROUND PHOTO ---------- */

.countdown-background {
    position: absolute;
    inset: 0;

    background-image:
        url("../assets/images/page8.jpg");

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

    transform: scale(1.02);

    z-index: 0;
}


/* ---------- DARK CINEMATIC OVERLAY ---------- */

.countdown-page::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(25, 21, 18, 0.28) 0%,
            rgba(25, 21, 18, 0.20) 42%,
            rgba(25, 21, 18, 0.48) 100%);

    z-index: 1;
}


/* ---------- CONTENT ---------- */

.countdown-content {
    position: relative;
    z-index: 2;

    width: min(90%, 900px);

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

    text-align: center;

    padding:
        clamp(60px, 10vh, 100px) 0;
}


/* ---------- EYEBROW ---------- */

.countdown-eyebrow {
    margin: 0;

    font-family: "DM Sans", sans-serif;

    font-size: clamp(8px, 0.9vw, 11px);

    font-weight: 400;

    letter-spacing: 0.38em;

    color: rgba(255, 255, 255, 0.88);

    text-transform: uppercase;
}


/* ---------- TITLE ---------- */

.countdown-title {
    margin: 4px 0 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(48px, 7vw, 78px);

    line-height: 0.95;

    font-weight: 400;

    font-style: italic;

    letter-spacing: 0.01em;

    color: var(--white);

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.18);
}


/* ---------- ORNAMENT ---------- */

.countdown-ornament {
    display: flex;

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

    gap: 12px;

    width: min(240px, 55%);

    margin:
        clamp(20px, 3vh, 30px) 0 clamp(34px, 5vh, 50px);
}

.countdown-ornament span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(232, 221, 205, 0.75));
}

.countdown-ornament span:last-child {
    background:
        linear-gradient(to left,
            transparent,
            rgba(232, 221, 205, 0.75));
}

.countdown-ornament i {
    font-family: "Cormorant Garamond", serif;

    font-size: 15px;

    font-style: normal;

    color: var(--gold-light);
}


/* =========================================
   COUNTDOWN NUMBERS
========================================= */

.countdown-grid {
    width: min(100%, 720px);

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;

    margin: 0;
}


/* ---------- EACH ITEM ---------- */

.countdown-card {
    position: relative;

    min-height: auto;

    display: flex;

    flex-direction: column;

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

    padding: 0 20px;

    border: none;

    background: transparent;

    box-sizing: border-box;
}


/* ---------- DIVIDERS ---------- */

.countdown-card:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 10%;
    right: 0;

    width: 1px;
    height: 80%;

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(232, 221, 205, 0.55),
            transparent);
}


/* ---------- NUMBER ---------- */

.countdown-number {
    display: block;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(34px, 4.5vw, 54px);

    line-height: 1;

    font-weight: 400;

    letter-spacing: 0.01em;

    color: var(--white);

    font-variant-numeric: tabular-nums;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.20);
}


/* ---------- LABEL ---------- */

.countdown-label {
    display: block;

    margin-top: 9px;

    font-family: "DM Sans", sans-serif;

    font-size: 7px;

    font-weight: 500;

    letter-spacing: 0.22em;

    color: var(--gold-light);

    text-transform: uppercase;
}


/* =========================================
   FOOTER
========================================= */

.countdown-footer {
    margin-top:
        clamp(34px, 5vh, 48px);

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* ---------- DATE ---------- */

.countdown-date {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(18px, 2vw, 24px);

    font-weight: 500;

    letter-spacing: 0.16em;

    color: var(--white);

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.18);
}


/* ---------- HASHTAG ---------- */

.countdown-hashtag {
    margin: 10px 0 0;

    font-family: "DM Sans", sans-serif;

    font-size: clamp(8px, 0.85vw, 11px);

    font-weight: 400;

    letter-spacing: 0.12em;

    color: var(--gold-light);

    text-transform: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .countdown-background {
        background-position: center center;
    }

    .countdown-content {
        width: 90%;

        padding:
            55px 0 45px;
    }

    .countdown-eyebrow {
        font-size: 8px;

        letter-spacing: 0.30em;
    }

    .countdown-title {
        font-size:
            clamp(43px, 13vw, 58px);
    }

    .countdown-ornament {
        width: 65%;

        margin:
            20px 0 32px;
    }

    .countdown-grid {
        width: 100%;
    }

    .countdown-card {
        padding: 0 5px;
    }

    .countdown-card:not(:last-child)::after {
        height: 70%;
        top: 15%;
    }

    .countdown-number {
        font-size:
            clamp(27px, 8vw, 36px);
    }

    .countdown-label {
        margin-top: 7px;

        font-size: 5.5px;

        letter-spacing: 0.12em;
    }

    .countdown-date {
        font-size: 17px;

        letter-spacing: 0.12em;
    }

    .countdown-hashtag {
        font-size: 8px;

        letter-spacing: 0.08em;
    }
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 18px;
    padding: 10px 18px;

    background: rgba(245, 242, 236, 0.72);
    border: 1px solid rgba(180, 154, 106, 0.45);
    border-radius: 2px;

    color: var(--espresso);
    text-decoration: none;

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

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

.instagram-button:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.instagram-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.instagram-button span {
    white-space: nowrap;
}

/* =========================================
   PAGE 9 — OUR MOMENTS
========================================= */

.moments-page {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    height: 100vh;
    overflow: hidden;

    background: #252321;
    color: #ffffff;
}

/* ---------- BACKGROUND PHOTO ---------- */

.moments-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.moments-background img {
    width: 100%;
    height: 100%;
    display: block;

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

    opacity: 1;
    transition: opacity 0.7s ease;
}

/* ---------- DARK GRADIENT ---------- */

.moments-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.04) 45%,
            rgba(0, 0, 0, 0.58) 100%);

    pointer-events: none;
}

/* ---------- COUNTER ---------- */

.moments-counter {
    position: absolute;
    top: 38px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 3;

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.16em;

    color: #ffffff;

    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- ARROWS ---------- */

.moments-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    z-index: 4;

    width: 46px;
    height: 80px;

    padding: 0;

    border: none;
    background: transparent;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    opacity: 0.72;

    text-shadow:
        0 1px 10px rgba(0, 0, 0, 0.35);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.moments-arrow:hover {
    opacity: 1;
}

.moments-arrow-left {
    left: 25px;
}

.moments-arrow-left:hover {
    transform: translateY(-50%) translateX(-3px);
}

.moments-arrow-right {
    right: 25px;
}

.moments-arrow-right:hover {
    transform: translateY(-50%) translateX(3px);
}

/* ---------- BOTTOM CAPTION ---------- */

.moments-caption {
    position: absolute;
    left: 50%;
    bottom: 48px;

    transform: translateX(-50%);

    z-index: 3;

    width: 90%;

    text-align: center;

    color: #ffffff;

    text-shadow:
        0 2px 15px rgba(0, 0, 0, 0.35);
}

.moments-eyebrow {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.34em;

    color: #ffffff;
}

.moments-caption h2 {
    margin: 5px 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 0.95;
    font-weight: 400;
    font-style: italic;

    color: #ffffff;
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .moments-counter {
        top: 28px;
        font-size: 8px;
    }

    .moments-arrow {
        width: 35px;
        height: 65px;
        font-size: 34px;
    }

    .moments-arrow-left {
        left: 8px;
    }

    .moments-arrow-right {
        right: 8px;
    }

    .moments-caption {
        bottom: 35px;
    }

    .moments-eyebrow {
        font-size: 7px;
        letter-spacing: 0.28em;
    }

    .moments-caption h2 {
        font-size: clamp(38px, 12vw, 52px);
    }
}

/* =========================================
   PAGE 10 — UNVEILING OUR PREWEDDING STORY
========================================= */

.prewedding-film-page {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #252321;
    color: #ffffff;
    scroll-snap-align: start;
}

/* ---------- BACKGROUND ---------- */

.prewedding-film-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.prewedding-film-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ---------- CINEMATIC OVERLAY ---------- */

.prewedding-film-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(25, 20, 16, 0.38) 0%,
            rgba(25, 20, 16, 0.20) 42%,
            rgba(20, 16, 13, 0.72) 100%);
    pointer-events: none;
}

/* ---------- CONTENT ---------- */

.prewedding-film-content {
    position: relative;
    z-index: 2;

    width: min(920px, 90%);
    min-height: var(--page-h);
    margin: 0 auto;

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

    text-align: center;
    padding: 70px 0 55px;
}

/* ---------- EYEBROW ---------- */

.film-eyebrow {
    margin: 0 0 3px;

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.34em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.88);

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- TITLE ---------- */

.film-title {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.95;
    font-weight: 400;
    font-style: italic;

    color: #ffffff;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.38);
}

/* ---------- ORNAMENT ---------- */

.film-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 150px;
    margin: 13px auto 22px;
}

.film-ornament span {
    display: block;
    width: 52px;
    height: 1px;

    background: rgba(210, 189, 145, 0.78);
}

.film-ornament i {
    display: block;

    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;

    color: #d2bd91;

    transform: rotate(45deg);
}

/* ---------- VIDEO ---------- */
.film-video {
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.film-video video {
    height: min(62vh, 640px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
}

/* ---------- QUOTE ---------- */

.film-quote {
    width: min(720px, 88vw);
    margin: 22px auto 0;
    text-align: center;
}

.film-quote p {
    margin: 0;
    font-family: "Allura", "Parisienne", cursive;
    font-size: clamp(18px, 2vw, 27px);
    line-height: 1.55;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.01em;

    color: rgba(255, 255, 255, 0.96);

    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.42);
}

/* =========================================
   PAGE 10 — MOBILE
========================================= */

@media (max-width: 600px) {

    .prewedding-film-content {
        width: 92%;
        padding: 58px 0 38px;
    }

    .film-eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
        letter-spacing: 0.30em;
    }

    .film-title {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 0.95;
    }

    .film-ornament {
        width: 125px;
        gap: 8px;
        margin: 11px auto 18px;
    }

    .film-ornament span {
        width: 42px;
    }

    .film-ornament i {
        font-size: 11px;
    }

    .film-video {
        width: 70vw;
        max-width: none;
    }

    .film-quote {
        width: 90vw;
        margin-top: 18px;
    }

    .film-quote p {
        font-size: clamp(17px, 5vw, 23px);
        line-height: 1.5;
    }
}


/* =========================================
   PAGE 11 — RSVP STATUS
========================================= */

.rsvp-status {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: var(--espresso);
}

.rsvp-status[data-state="success"] {
    color: #55704f;
}

.rsvp-status[data-state="error"] {
    color: #a33b32;
}

.rsvp-status[data-state="loading"] {
    color: var(--gold);
}

#rsvpForm button:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* =========================================
   PAGE 11 — MULTI-STEP RSVP
========================================= */


.rsvp-page {
    min-height: 100vh;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.58)),
        url("../assets/images/rsvp.jpg") center center / cover no-repeat;

    color: #ffffff;
}

.rsvp-page .rsvp-content {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.rsvp-page .section-eyebrow {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.28em;
    text-align: center;
}

.rsvp-page .rsvp-title {
    margin: 0 auto 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.08;
    text-align: center;
}

.rsvp-page .rsvp-title span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.rsvp-page .rsvp-message {
    max-width: 390px;
    margin: 0 auto 22px;
    font-size: 11px;
    line-height: 1.75;
    text-align: center;
    opacity: 0.8;
}

/* Progress indicator */

.rsvp-progress {
    display: flex;
    gap: 7px;
    width: 100%;
    margin: 0 auto 9px;
}

.rsvp-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(180, 154, 106, 0.22);
    transition: background 0.3s ease;
}

.rsvp-progress-bar.active {
    background: var(--gold);
}

.rsvp-step-count {
    margin: 0 0 25px;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-align: center;
}

/* Step panels */

.rsvp-page .rsvp-step-panel[hidden],
.rsvp-page [hidden] {
    display: none !important;
}

.rsvp-page .rsvp-step-panel {
    min-height: 155px;
    animation: rsvpFadeIn 0.35s ease;
}

.rsvp-page .rsvp-step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.rsvp-page .rsvp-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
}

.rsvp-page .rsvp-step-heading h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 400;
}

/* Form controls */

.rsvp-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 17px;
}

.rsvp-page .form-group label {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.14em;
    line-height: 1.7;
}

.rsvp-page input,
.rsvp-page select,
.rsvp-page textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid rgba(180, 154, 106, 0.42);
    border-radius: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.48);
    color: var(--espresso);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 300;
}

.rsvp-page input:focus,
.rsvp-page select:focus,
.rsvp-page textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.85);
}

.rsvp-page input::placeholder,
.rsvp-page textarea::placeholder {
    color: var(--espresso);
    opacity: 0.48;
}

.rsvp-page textarea {
    min-height: 95px;
    resize: vertical;
    line-height: 1.8;
}

/* Back and Continue */

.rsvp-page .rsvp-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.rsvp-page .rsvp-next-button {
    flex: 1;
    min-height: 45px;
    padding: 13px 18px;
    border: 1px solid var(--gold);
    border-radius: 0;
    background: var(--gold);
    color: var(--white);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.rsvp-page .rsvp-next-button:hover {
    background: transparent;
    color: var(--espresso);
}

.rsvp-page .rsvp-back-button {
    min-height: 45px;
    padding: 12px 15px;
    border: 1px solid rgba(180, 154, 106, 0.5);
    background: transparent;
    color: var(--espresso);
    font-size: 8px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.rsvp-page .rsvp-status {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

/* Animation */

@keyframes rsvpFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Mobile */

@media (max-width: 600px) {
    .rsvp-page {
        padding: 28px 23px;
    }

    .rsvp-page .rsvp-title {
        font-size: 31px;
    }

    .rsvp-page .rsvp-message {
        margin-bottom: 19px;
    }

    .rsvp-step-count {
        margin-bottom: 21px;
    }

    .rsvp-page .rsvp-step-panel {
        min-height: 150px;
    }

    .rsvp-page .rsvp-step-heading {
        margin-bottom: 18px;
    }

    .rsvp-page .rsvp-step-heading h3 {
        font-size: 23px;
    }
}

/* =========================================
   PAGE 12 — GUEST WISHES
========================================= */

#wishesList {
    width: 100%;
}

.wish-entry {
    padding: 22px 0;
    border-bottom: 1px solid rgba(180, 154, 106, 0.35);
    text-align: left;
}

.wish-entry:first-child {
    border-top: 1px solid rgba(180, 154, 106, 0.35);
}

.wish-entry-name {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 500;
    color: var(--gold);
}

.wish-entry-message {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--espresso);
}

@media (max-width: 600px) {
    .wish-entry {
        padding: 18px 0;
    }

    .wish-entry-name {
        font-size: 21px;
    }

    .wish-entry-message {
        font-size: 12px;
    }
}


/* =========================================
   PAGE 12 — WISHES FROM OUR LOVED ONES
========================================= */

.guest-wishes-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 24px;
    overflow: hidden;
    background: var(--ivory);
    color: var(--espresso);
}

.guest-wishes-content {
    width: min(100%, 760px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guest-wishes-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--espresso);
}

.guest-wishes-title span {
    margin-top: 5px;
    font-style: italic;
    color: var(--gold);
}

.guest-wishes-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 30px;
    color: var(--gold);
}

.guest-wishes-ornament span {
    width: 38px;
    height: 1px;
    background: var(--gold-light);
}

.guest-wishes-ornament i {
    font-size: 16px;
    font-style: normal;
}

/* Wish bubbles */

.guest-wishes-list {
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
    text-align: left;
}

.guest-wish {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: wishFadeIn 0.4s ease both;
}

.guest-wish:nth-child(even) {
    align-items: flex-end;
}

.guest-wish-bubble {
    width: fit-content;
    max-width: min(88%, 510px);
    padding: 15px 20px;
    border: 1px solid #e3d8c7;
    border-radius: 18px 18px 18px 4px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(48, 42, 36, 0.035);
}

.guest-wish:nth-child(even) .guest-wish-bubble {
    border-color: #eae0d0;
    border-radius: 18px 18px 4px 18px;
    background: #eae0d0;
}

.guest-wish-message {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: var(--espresso);
}

.guest-wish-name {
    margin: 5px 10px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.025em;
    color: #8d795a;
}

.guest-wish:nth-child(even) .guest-wish-name {
    text-align: right;
}

/* Empty state */

.guest-wishes-empty {
    padding: 32px 20px;
    text-align: center;
}

.guest-wishes-empty-mark {
    display: block;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-style: italic;
    color: var(--gold);
}

.guest-wishes-empty p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: #8d795a;
}

/* Pagination */

.guest-wishes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 25px;
}

.guest-wishes-arrow {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.guest-wishes-arrow:hover:not(:disabled) {
    background: var(--gold);
    color: var(--white);
}

.guest-wishes-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.guest-wishes-page-count {
    min-width: 48px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #8d795a;
}

.guest-wishes-footer {
    margin-top: 27px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--gold);
}

@keyframes wishFadeIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

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

/* Mobile */

@media (max-width: 600px) {
    .guest-wishes-page {
        padding: 38px 20px;
    }

    .guest-wishes-title {
        font-size: clamp(35px, 9vw, 46px);
    }

    .guest-wishes-ornament {
        margin: 19px 0 24px;
    }

    .guest-wishes-list {
        min-height: 240px;
        gap: 15px;
    }

    .guest-wish-bubble {
        max-width: 91%;
        padding: 12px 15px;
    }

    .guest-wish-message {
        font-size: 12px;
        line-height: 1.65;
    }

    .guest-wish-name {
        font-size: 14px;
    }

    .guest-wishes-pagination {
        margin-top: 22px;
    }

    .guest-wishes-footer {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-wish {
        animation: none;
    }
}


/* RSVP — WHITE TYPOGRAPHY */

.rsvp-page .section-eyebrow,
.rsvp-page .rsvp-title,
.rsvp-page .rsvp-title span,
.rsvp-page .rsvp-message,
.rsvp-page .rsvp-step-heading h3,
.rsvp-page .rsvp-step-number,
.rsvp-page .form-group label,
.rsvp-page .rsvp-step-count {
    color: #ffffff;
}

.rsvp-page .rsvp-title,
.rsvp-page .rsvp-step-heading h3 {
    font-weight: 600;
}

.rsvp-page .rsvp-message {
    font-weight: 500;
    opacity: 1;
}

.rsvp-page .rsvp-step-number {
    border-color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.rsvp-page .form-group label {
    font-weight: 600;
}

.rsvp-page input,
.rsvp-page select,
.rsvp-page textarea {
    background: rgba(255, 255, 255, 0.94);
    color: #252321;
    border-color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.rsvp-page input::placeholder,
.rsvp-page textarea::placeholder {
    color: #555555;
    opacity: 1;
}

.rsvp-page input:focus,
.rsvp-page select:focus,
.rsvp-page textarea:focus {
    background: #ffffff;
    border-color: #ffffff;
}

.rsvp-page .rsvp-progress-bar {
    background: rgba(255, 255, 255, 0.35);
}

.rsvp-page .rsvp-progress-bar.active {
    background: #ffffff;
}

.rsvp-page .rsvp-next-button {
    background: #ffffff;
    color: #252321;
    border-color: #ffffff;
    font-weight: 600;
}

.rsvp-page .rsvp-next-button:hover {
    background: transparent;
    color: #ffffff;
}

.rsvp-page .rsvp-back-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.rsvp-page .rsvp-status {
    color: #ffffff;
    font-weight: 500;
}

/* =========================================
   PAGE 11 — WEDDING GIFT
   Append to the end of css/style.css
========================================= */

.gift-page {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    overflow: hidden;

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

    background: var(--charcoal);
    color: var(--white);
}

/* ---------- BACKGROUND: same photo, enlarged + darkened ---------- */

.gift-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gift-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.gift-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 14, 0.82);
}

/* ---------- CONTENT ---------- */

.gift-content {
    position: relative;
    z-index: 2;
    height: 70vh;
    width: min(88%, 440px);
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    text-align: left;
}

.gift-thumb {
    width: 150px;
    height: 150px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.gift-title {
    margin: 26px 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;

    color: var(--white);
}

.gift-message {
    margin: 12px 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.03em;

    color: rgba(255, 255, 255, 0.85);
}

/* ---------- ACCOUNT ROW ---------- */

.gift-account {
    width: 100%;
    margin-top: 22px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
}

.gift-holder {
    flex: 1;
    min-width: 0;
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;

    color: var(--white);
}

.gift-bank-box {
    flex: 0 0 auto;
    padding: 7px 12px;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.gift-bank {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.04em;

    color: var(--gold-light);
}

.gift-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.06em;

    font-variant-numeric: lining-nums tabular-nums;

    color: var(--white);
}

/* ---------- COPY ICON ---------- */

.copy-button {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;

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

    border: none;
    border-radius: 6px;
    background: transparent;

    color: var(--white);
    cursor: pointer;

    transition: background 0.25s ease, color 0.25s ease;
}

.copy-button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-button .icon-check {
    display: none;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.copy-button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.copy-button.is-copied {
    color: var(--gold-light);
}

.copy-button.is-copied .icon-copy {
    display: none;
}

.copy-button.is-copied .icon-check {
    display: block;
}

.copy-status {
    min-height: 18px;
    margin: 8px 0 0;

    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;

    color: var(--gold-light);
}

/* ---------- VERY NARROW PHONES ---------- */

@media (max-width: 360px) {

    .gift-account {
        flex-wrap: wrap;
    }

    .gift-holder {
        flex-basis: 100%;
    }

    .gift-bank-box {
        flex: 1;
    }
}

/* =========================================
   PAGE 13 — CLOSING
   Append to the end of css/style.css
========================================= */

.closing-page {
    position: relative;
    width: 100%;
    min-height: var(--page-h);
    overflow: hidden;

    background: var(--charcoal);
    color: var(--white);
}

/* ---------- BACKGROUND ---------- */

.closing-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.closing-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* darker at top and bottom so text stays readable, clear in the middle */
.closing-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(25, 21, 18, 0.58) 0%,
            rgba(25, 21, 18, 0.22) 36%,
            rgba(25, 21, 18, 0.12) 58%,
            rgba(25, 21, 18, 0.72) 100%);
}

/* ---------- LAYOUT: text on top, credits at the bottom ---------- */

.closing-content {
    position: relative;
    z-index: 2;

    width: min(90%, 820px);
    min-height: var(--page-h);
    margin: 0 auto;
    padding: clamp(56px, 9vh, 90px) 0 clamp(28px, 5vh, 44px);

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

    text-align: center;
}

/* ---------- TOP ---------- */

.closing-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-title {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 7vw, 60px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    /* offsets trailing letter-spacing so the word sits optically centered */
    padding-left: 0.22em;

    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.closing-message {
    margin: 20px 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.04em;

    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.closing-names {
    margin: 26px 0 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.01em;

    color: var(--white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* ---------- FOOTER ---------- */

.closing-footer {
    width: 100%;

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

.closing-credit {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3em;

    color: rgba(255, 255, 255, 0.82);
}

.closing-links {
    margin-top: 14px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 28px;
}

.closing-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 4px 0;

    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;

    color: var(--white);

    transition: color 0.3s ease;
}

.closing-link svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.closing-link:hover {
    color: var(--gold-light);
}

.closing-link:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.closing-copyright {
    margin: 16px 0 0;

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.12em;

    color: rgba(255, 255, 255, 0.66);
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .closing-title {
        letter-spacing: 0.16em;
        padding-left: 0.16em;
    }

    .closing-credit {
        font-size: 8px;
    }

    .closing-link {
        font-size: 10px;
    }

    .closing-copyright {
        font-size: 8px;
    }
}