

.hero {
    height: auto;
    min-height: max(100svh, 600px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: clamp(28px, 4vh, 40px) 20px clamp(72px, 9vh, 96px);
}

/* The desktop Hero is deliberately one viewport tall.  The height-based
   rules below compact only the foreground invitation content when needed,
   keeping the decorative background composition untouched. */
@media (min-width: 601px) {
    .hero {
        height: 100svh;
        min-height: 0;
    }
}


/* =========================================
                                                                                   BACKGROUND I / J LETTERS
                                                                                ========================================= */

.background-monograms {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}




.bg-letter {
    position: absolute;
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    line-height: 0.8;
    color: rgba(234, 214, 210, 0.055);
    will-change: transform;
}


/*
                                                                                    EACH LETTER CAN BE MOVED SEPARATELY

                                                                                    top       = distance from top
                                                                                    bottom    = distance from bottom
                                                                                    left      = distance from left
                                                                                    right     = distance from right
                                                                                    font-size = size of letter
                                                                                */


/* BIG I - TOP LEFT */

.letter-1 {
    font-size: clamp(20rem, 42vw, 40rem);
    top: -15%;
    left: -5%;
    animation: monogram-drift 18s ease-in-out infinite;
}


/* BIG J - TOP RIGHT */

.letter-2 {
    font-size: clamp(24rem, 50vw, 48rem);
    top: -5%;
    right: -15%;
    animation: monogram-drift-alt 22s ease-in-out infinite;
}


/* I - MIDDLE LEFT */

.letter-3 {
    font-size: clamp(14rem, 30vw, 30rem);
    top: 35%;
    left: 5%;
    animation: monogram-drift-alt 20s ease-in-out infinite;
}


/* J - MIDDLE RIGHT */

.letter-4 {
    font-size: clamp(18rem, 38vw, 36rem);
    top: 32%;
    right: 3%;
    animation: monogram-drift 24s ease-in-out infinite;
}


/* I - BOTTOM LEFT */

.letter-5 {
    font-size: clamp(16rem, 32vw, 32rem);
    bottom: -12%;
    left: -5%;
    animation: monogram-drift 21s ease-in-out infinite;
}


/* J - BOTTOM RIGHT */

.letter-6 {
    font-size: clamp(20rem, 42vw, 40rem);
    bottom: -18%;
    right: -8%;
    animation: monogram-drift-alt 19s ease-in-out infinite;
}


/* SMALLER I - TOP CENTER */

.letter-7 {
    font-size: clamp(10rem, 22vw, 22rem);
    top: -8%;
    left: 45%;
    animation: monogram-drift-alt 25s ease-in-out infinite;
}


/* SMALLER J - LOWER CENTER */

.letter-8 {
    font-size: clamp(12rem, 26vw, 25rem);
    bottom: -5%;
    left: 38%;
    animation: monogram-drift 23s ease-in-out infinite;
}


/* =========================================
                                                                                   MAIN HERO CONTENT
                                                                                ========================================= */

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    min-width: 0;
}


/* =========================================
                                                                                   TOP SUBTITLE
                                                                                ========================================= */

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: clamp(20px, 3.4vh, 36px);
    opacity: 0;
    transform: translateY(28px);
}


/* =========================================
                                                                                   SMALL IJ MONOGRAM
                                                                                ========================================= */

.small-monogram {
    line-height: 0;
    position: relative;
    padding-bottom: 32px;
    margin-bottom: clamp(18px, 3vh, 32px);
    color: rgba(234, 214, 210, 0.45);
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(28px);
}

.small-monogram-image {
    width: clamp(84px, 9vw, 118px);
    height: auto;
    opacity: .42;
    filter: saturate(.85) brightness(1.08);
}

.small-monogram::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: clamp(72px, 10vw, 120px);
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(234, 214, 210, 0) 0%,
        rgba(234, 214, 210, 0.72) 22%,
        rgba(255, 248, 230, 1) 50%,
        rgba(234, 214, 210, 0.72) 78%,
        rgba(234, 214, 210, 0) 100%
    );
    box-shadow: 0 0 8px rgba(255, 248, 230, 0.38);
    transform: translateX(-50%);
}


/* =========================================
                                                                                   IRENE & JOHANNES
                                                                                ========================================= */

.names {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.16em;
    line-height: 0.9;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    letter-spacing: 0.5em;
}


.ampersand {
    display: block;
    font-size: 0.7em;
    margin: clamp(8px, 1.5vh, 16px) 0;
    letter-spacing: 0;
}


/* =========================================
                                                                                   INVITATION MESSAGE
                                                                                ========================================= */

.invitation-text {
    margin: clamp(28px, 4.5vh, 50px) auto clamp(16px, 2.6vh, 28px);
    max-width: 620px;
    font-size: clamp(1.15rem, 2.5vw, 1.7rem);
    line-height: 1.5;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(28px);
}


/* =========================================
                                                                                   DATE
                                                                                ========================================= */

.date {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(28px);
}

.venue-group {
    margin-top: 0;
}

.venue-city {
    margin-bottom: 0;
}

.hero-officiant {
    display: grid;
    gap: 5px;
    margin-top: clamp(14px, 2vh, 20px);
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(28px);
}

.hero-officiant span {
    font-size: clamp(0.58rem, 1.2vw, 0.72rem);
    font-weight: 600;
    opacity: 0.72;
}

.hero-officiant strong {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.86rem, 1.8vw, 1.08rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* The invitation contains several vertically stacked elements.  Keep the
   desktop Hero within one viewport by compacting foreground spacing only on
   shorter desktop/laptop screens. */
@media (min-width: 601px) and (max-height: 900px) {
    .hero {
        padding-top: clamp(24px, 3.5vh, 34px);
        padding-bottom: clamp(64px, 8vh, 80px);
    }

    .subtitle {
        margin-bottom: clamp(14px, 2.4vh, 22px);
    }

    .small-monogram {
        padding-bottom: 20px;
        margin-bottom: clamp(14px, 2.5vh, 20px);
    }

    .small-monogram-image {
        width: clamp(72px, 7vw, 96px);
    }

    .names {
        font-size: clamp(3rem, 7.2vw, 6rem);
        line-height: 0.86;
    }

    .ampersand {
        margin: clamp(4px, 0.8vh, 8px) 0;
    }

    .invitation-text {
        margin-top: clamp(18px, 3vh, 28px);
        margin-bottom: clamp(10px, 1.8vh, 16px);
        font-size: clamp(1rem, 2vw, 1.35rem);
    }

    .date {
        font-size: clamp(0.92rem, 1.8vw, 1.14rem);
        margin-bottom: 8px;
    }

    .hero .venue {
        font-size: clamp(1rem, 2vw, 1.35rem);
    }

    .hero .venue-city {
        margin-top: 4px;
        font-size: clamp(0.64rem, 1vw, 0.76rem);
    }

    .hero-officiant {
        gap: 3px;
        margin-top: 10px;
    }

    .hero-officiant strong {
        font-size: clamp(0.78rem, 1.3vw, 0.92rem);
    }
}

/* A compact desktop/laptop treatment preserves the full invitation and the
   scroll cue in one viewport without changing the overlapping IJ artwork. */
@media (min-width: 601px) and (max-height: 800px) {
    .hero {
        padding: clamp(22px, 3vh, 28px) 20px clamp(54px, 7vh, 64px);
    }

    .subtitle {
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
        margin-bottom: clamp(12px, 1.8vh, 16px);
    }

    .small-monogram {
        padding-bottom: 16px;
        margin-bottom: clamp(12px, 1.8vh, 16px);
    }

    .small-monogram-image {
        width: clamp(70px, 6.5vw, 88px);
    }

    .names {
        font-size: clamp(2.9rem, 6.9vw, 5.8rem);
        line-height: 0.84;
    }

    .ampersand {
        margin: clamp(3px, 0.6vh, 5px) 0;
    }

    .invitation-text {
        margin-top: clamp(15px, 2.2vh, 20px);
        margin-bottom: clamp(8px, 1.4vh, 12px);
        font-size: clamp(0.98rem, 1.8vw, 1.22rem);
        line-height: 1.42;
    }

    .date {
        font-size: clamp(0.9rem, 1.6vw, 1.08rem);
        margin-bottom: 6px;
    }

    .hero .venue {
        font-size: clamp(0.98rem, 1.8vw, 1.22rem);
    }

    .hero .venue-city {
        margin-top: 3px;
        font-size: clamp(0.62rem, 0.9vw, 0.7rem);
    }

    .hero-officiant {
        gap: 2px;
        margin-top: 8px;
    }

    .hero-officiant strong {
        font-size: clamp(0.76rem, 1.1vw, 0.84rem);
    }

    .hero .scroll-down {
        bottom: clamp(10px, 1.8vh, 14px);
    }
}

@media (min-width: 601px) and (max-height: 720px) {
    .hero {
        padding: clamp(16px, 2.5vh, 20px) 18px clamp(42px, 6vh, 48px);
    }

    .subtitle {
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        margin-bottom: 10px;
    }

    .small-monogram {
        padding-bottom: 12px;
        margin-bottom: 10px;
    }

    .small-monogram-image {
        width: clamp(64px, 5.8vw, 78px);
    }

    .names {
        font-size: clamp(2.7rem, 6vw, 5rem);
        line-height: 0.82;
    }

    .ampersand {
        margin: clamp(2px, 0.5vh, 4px) 0;
    }

    .invitation-text {
        margin-top: clamp(10px, 1.8vh, 14px);
        margin-bottom: clamp(6px, 1vh, 8px);
        font-size: clamp(0.9rem, 1.55vw, 1.1rem);
        line-height: 1.35;
    }

    .date {
        font-size: clamp(0.82rem, 1.4vw, 0.96rem);
        margin-bottom: 4px;
    }

    .hero .venue {
        font-size: clamp(0.9rem, 1.55vw, 1.08rem);
    }

    .hero .venue-city {
        margin-top: 2px;
        font-size: clamp(0.56rem, 0.8vw, 0.66rem);
    }

    .hero-officiant {
        margin-top: 6px;
    }

    .hero-officiant strong {
        font-size: clamp(0.7rem, 1vw, 0.8rem);
    }

    .hero .scroll-down {
        bottom: 16px;
        font-size: 0.56rem;
    }
}


/*
                                                                                        IMPORTANT:
                                                                                        On mobile, the ending letter spacing
                                                                                        should match the smaller name spacing.
                                                                                    */

@keyframes letter-in {

    from {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
        letter-spacing: 0.35em;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.1em;
    }
}
