:root {
    --olympus-cream: #f5ecd6;
    --olympus-gold: #c9a04a;
    --olympus-blue: #9bd0d8;
    --olympus-deep: #2d4870;
    --olympus-text: #3b4a5b;

    --t-enter: 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fade: 0.6s ease;
    --t-cupid: 2.8s cubic-bezier(0.33, 1, 0.68, 1);
}

@font-face {
    font-family: 'MyFont';
    src: url('font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: 'MyFont2';
    src: url('DM-CONSTITUTION.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
/* ─── Global night-mode colour transitions ─── */
*,
*::before,
*::after {
    transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease;
}

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

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* overflow-x belongs on html alone. On body it also forces overflow-y to
   compute as auto, which turns body into a scroll container that can never
   scroll - the trackpad wheel gesture latches onto that dead scroller instead
   of the page. */
html {
    overflow-x: hidden;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    font-family: 'MyFont2', 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    color: var(--olympus-text);
    background-color: var(--olympus-cream);
}

body.night {
    background-color: #0c1520;
    color: #c8d8e8;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--olympus-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--olympus-gold);
    border-radius: 6px;
    border: 2px solid var(--olympus-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--olympus-deep);
}

html {
    scrollbar-color: var(--olympus-gold) var(--olympus-cream);
    scrollbar-width: thin;
}

body.night::-webkit-scrollbar-track {
    background: #0c1520;
}

body.night::-webkit-scrollbar-thumb {
    background: #d4b56a;
    border-color: #0c1520;
}

body.night {
    scrollbar-color: #d4b56a #0c1520;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background-color: var(--olympus-blue);
    background-image: url('https://weddsite.b-cdn.net/showcase/pro-3/bg.jpg');
    background-repeat: no-repeat;
    background-position: center bottom -5px;
    background-size: cover;
    transform: scale(1.012)
}

/* night sky crossfade layer - sits below .hero__stage (z-index 0) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://weddsite.b-cdn.net/showcase/pro-3/bg-night.jpg');
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
    pointer-events: none;
    transform: scale(0.988)
}

body.night .hero::before {
    opacity: 1;
}

.hero__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.character {
    position: absolute;
    width: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    will-change: transform, opacity;
    filter: drop-shadow(0 8px 14px rgba(45, 72, 112, 0.18));
}

.character--groom {
    bottom: calc(var(--vh) * 3);
    left: 2%;
    height: calc(var(--vh) * 40);
    transform: translateX(-160%);
    transition: transform var(--t-enter), opacity var(--t-fade);
}

.character--bride {
    bottom: calc(var(--vh) * 1);
    right: -25%;
    height: calc(var(--vh) * 40);
    transform: translateX(160%);
    transition: transform var(--t-enter), opacity var(--t-fade);
}

.character--cupid {
    top: calc(var(--vh) * 2);
    right: -24%;
    height: calc(var(--vh) * 46);
    opacity: 1;
    transform: translate(70vw, calc(var(--vh) * -22)) rotate(22deg) scale(0.78);
}

.character--couple {
    bottom: calc(var(--vh) * 3);
    left: 61%;
    height: calc(var(--vh) * 41.5);
    transform: translateX(-50%) scale(0.92);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hearts {
    position: absolute;
    bottom: calc(var(--vh) * 22);
    left: 14%;
    width: calc(var(--vh) * 20);
    height: calc(var(--vh) * 20);
    pointer-events: none;
}

.heart {
    position: absolute;
    color: #ff6b8a;
    font-size: 22px;
    opacity: 0;
    text-shadow: 0 2px 6px rgba(255, 107, 138, 0.4);
}

.heart--1 { left: 10%; bottom: 0; }
.heart--2 { left: 35%; bottom: 0; font-size: 28px; }
.heart--3 { left: 60%; bottom: 0; font-size: 18px; }
.heart--4 { left: 85%; bottom: 0; font-size: 24px; }
.heart--5 { left: 22%; bottom: 0; font-size: 16px; }

.hero__title {
    position: absolute;
    top: calc(var(--vh) * 6);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 90%;
    text-align: center;
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(45, 30, 10, 0.45), 0 1px 4px rgba(45, 30, 10, 0.3);
    opacity: 0;
    transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}
.hero__subtitle, .hero__location {
    position: absolute;
    top: calc(var(--vh) * 22);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 90%;
    text-align: center;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(45, 30, 10, 0.4), 0 1px 4px rgba(45, 30, 10, 0.25);
    opacity: 0;
    transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    z-index: 10;
}

.hero__location {
    top: calc(var(--vh) * 20);
    font-size: 19px;
}

.hero.phase-4 .hero__subtitle, .hero.phase-4 .hero__location {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 1.6s;
}

.hero.phase-4 .hero__title {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.9s;
}

/* PHASE 1 - bride and groom enter from sides */
.hero.phase-1 .character--groom.is-groom-default {
    opacity: 1;
    transform: translateX(0);
}

.hero.phase-1 .character--groom.is-groom-love {
    opacity: 0;
    transform: translateX(0);
}

.hero.phase-1 .character--bride {
    opacity: 1;
    transform: translateX(0);
}

/* PHASE 2 - cupid swoops in from upper right, then hovers */
.hero.phase-2 .character--cupid.is-cupid-aim {
    animation: cupid-fly-in 2.8s cubic-bezier(0.32, 0.72, 0.4, 1) forwards,
               cupid-hover 2.4s ease-in-out 2.9s infinite;
}

/* pre-position release cupid at the final landing spot, invisible, instantly */
.hero.phase-2 .character--cupid.is-cupid-release {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
    transition: none;
}

/* PHASE 3 - arrow fires, cupid + groom swap states */
.hero.phase-3 .character--cupid.is-cupid-aim {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
    animation: none;
    transition: opacity 0.3s ease;
}

.hero.phase-3 .character--cupid.is-cupid-release {
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: cupid-recoil 0.7s ease;
}

.hero.phase-3 .character--groom.is-groom-default {
    opacity: 0;
    transform: translateX(0);
}

.hero.phase-3 .character--groom.is-groom-love {
    opacity: 1;
    transform: translateX(0);
    animation: heart-jolt 0.8s ease 0.1s;
}

.hero.phase-3 .heart {
    animation: heart-pop 1.6s ease-out 0.5s forwards;
}

.hero.phase-3 .heart--1 { animation-delay: 0.55s; }
.hero.phase-3 .heart--2 { animation-delay: 0.70s; }
.hero.phase-3 .heart--3 { animation-delay: 0.85s; }
.hero.phase-3 .heart--4 { animation-delay: 1.00s; }
.hero.phase-3 .heart--5 { animation-delay: 1.15s; }

/* PHASE 4 - couple-together fades in, individuals fade out */
.hero.phase-4 .character--groom,
.hero.phase-4 .character--bride {
    opacity: 0;
    transition: opacity 1s ease;
}

/* explicit override - phase-3 rule (.hero.phase-3 .character--groom.is-groom-love)
   has specificity 0,3,0 which beats the generic phase-4 groom rule (0,2,0).
   Match the specificity here so this later rule wins. */
.hero.phase-4 .character--groom.is-groom-love {
    opacity: 0;
    animation: none;
    transition: opacity 1s ease;
}

.hero.phase-4 .character--cupid.is-cupid-release {
    opacity: 0;
    transform: translate(75vw, calc(var(--vh) * -8)) rotate(10deg);
    transition: transform 1.6s cubic-bezier(0.4, 0, 1, 1), opacity 1s ease 0.4s;
    animation: none;
}

.hero.phase-4 .character--couple {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition-delay: 0.4s;
}

@keyframes cupid-fly-in {
    0%   { transform: translate(70vw, calc(var(--vh) * -22)) rotate(22deg) scale(0.78); }
    25%  { transform: translate(48vw, calc(var(--vh) * -16)) rotate(16deg) scale(0.84); }
    55%  { transform: translate(22vw, calc(var(--vh) * -8))  rotate(8deg)  scale(0.92); }
    80%  { transform: translate(6vw,  calc(var(--vh) * -2))  rotate(2deg)  scale(0.98); }
    100% { transform: translate(0, 0)        rotate(0deg)  scale(1); }
}

@keyframes cupid-hover {
    0%, 100% { transform: translate(0, 0)         rotate(0deg)    scale(1); }
    50%      { transform: translate(-1.5%, calc(var(--vh) * -1.8)) rotate(-1.5deg) scale(1); }
}

@keyframes cupid-recoil {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(4%, 1%) rotate(6deg); }
    60%  { transform: translate(2%, 0) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes heart-jolt {
    0%   { transform: translateX(0) scale(1) rotate(0); }
    15%  { transform: translateX(-2%) scale(1.06) rotate(-3deg); }
    30%  { transform: translateX(2%) scale(1.03) rotate(3deg); }
    45%  { transform: translateX(-1%) scale(1.05) rotate(-2deg); }
    60%  { transform: translateX(1%) scale(1.02) rotate(1deg); }
    100% { transform: translateX(0) scale(1) rotate(0); }
}

@keyframes heart-pop {
    0%   { opacity: 0; transform: translateY(0) scale(0.4); }
    20%  { opacity: 1; transform: translateY(calc(var(--vh) * -1.5)) scale(1.1); }
    100% { opacity: 0; transform: translateY(calc(var(--vh) * -12)) scale(0.7); }
}

/* TABLET 481px+ */
@media (min-width: 481px) {
    .hero__title {
        font-size: 34px;
        top: calc(var(--vh) * 7);
    }
    .hero__subtitle {
        font-size: 17px;
        top: calc(var(--vh) * 24);
    }
    .character--groom {
        height: calc(var(--vh) * 44);
        left: 6%;
    }
    .character--bride {
        height: calc(var(--vh) * 52);
        right: 3%;
    }
    .character--cupid {
        height: calc(var(--vh) * 38);
        top: calc(var(--vh) * 3);
        right: 2%;
    }
    .character--couple {
        height: calc(var(--vh) * 60);
    }
    .hearts {
        bottom: calc(var(--vh) * 26);
        left: 16%;
    }
    .heart {
        font-size: 26px;
    }
    .heart--2 { font-size: 32px; }
    .heart--4 { font-size: 28px; }
}

/* TABLET 769px+ */
@media (min-width: 769px) {
    .hero__title {
        font-size: 42px;
        top: calc(var(--vh) * 8);
    }
    .hero__subtitle {
        font-size: 19px;
        top: calc(var(--vh) * 26);
    }
    .character--groom {
        height: calc(var(--vh) * 50);
        left: 12%;
    }
    .character--bride {
        height: calc(var(--vh) * 58);
        right: 8%;
    }
    .character--cupid {
        height: calc(var(--vh) * 42);
        top: calc(var(--vh) * 5);
        right: 6%;
    }
    .character--couple {
        height: calc(var(--vh) * 70);
    }
    .hearts {
        bottom: calc(var(--vh) * 30);
        left: 22%;
    }
    .heart {
        font-size: 30px;
    }
    .heart--2 { font-size: 38px; }
    .heart--4 { font-size: 34px; }
}

/* DESKTOP 1025px+ */
@media (min-width: 1025px) {
    .hero__title {
        font-size: 52px;
        top: calc(var(--vh) * 9);
    }
    .hero__subtitle {
        font-size: 22px;
        top: calc(var(--vh) * 28);
    }
    .character--groom {
        height: calc(var(--vh) * 56);
        left: 22%;
    }
    .character--bride {
        height: calc(var(--vh) * 64);
        right: 18%;
    }
    .character--cupid {
        height: calc(var(--vh) * 46);
        top: calc(var(--vh) * 6);
        right: 12%;
    }
    .character--couple {
        height: calc(var(--vh) * 78);
    }
    .hearts {
        bottom: calc(var(--vh) * 34);
        left: 30%;
    }
}

/* ═══════════════════════════════════════════
   TIMELINE SECTION
═══════════════════════════════════════════ */

.timeline {
    position: relative;
    background-color: #ede5d0;
    padding: 72px 20px 155px;
    overflow: hidden;
}

/* subtle marble texture overlay */
.timeline::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(201,160,74,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 80%, rgba(201,160,74,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── Header ─── */
.timeline__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.timeline__wreath {
    width: 72px;
    opacity: 0.85;
    flex-shrink: 0;
}

.timeline__wreath--right {
    transform: scaleX(-1);
}

.timeline__header-text {
    text-align: center;
}

.timeline__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--olympus-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline__heading {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.02em;
    color: var(--olympus-deep);
    line-height: 1.1;
}

/* ─── Track & line ─── */
.timeline__track {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--olympus-gold) 8%,
        #e8d48a 50%,
        var(--olympus-gold) 92%,
        transparent 100%
    );
    opacity: 0.6;
}

/* ─── Cursor (golden ring that follows active dot) ─── */
.timeline__cursor {
    position: absolute;
    left: 24px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--olympus-gold);
    background-color: rgba(201, 160, 74, 0.12);
    box-shadow:
        0 0 0 4px rgba(201, 160, 74, 0.15),
        0 0 18px rgba(201, 160, 74, 0.45),
        0 0 36px rgba(201, 160, 74, 0.2);
    transform: translate(-50%, -50%);
    transition: top 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 1.5s ease, border-color 1.5s ease;
    pointer-events: none;
    z-index: 3;
}

/* ─── Items ─── */
.timeline__item {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 52px;
    padding-bottom: 52px;
    cursor: pointer;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

/* ─── Dot ─── */
.timeline__dot {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #c9a04a;
    border: 2px solid #ede5d0;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.35);
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 1.5s ease;
    z-index: 2;
    flex-shrink: 0;
}

.timeline__item.is-active .timeline__dot {
    background-color: #8a6010;
    box-shadow: 0 0 0 4px rgba(201, 160, 74, 0.5);
    transform: translate(-50%, -50%) scale(1.2);
}

/* ─── Card ─── */
.timeline__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #fdf7ed;
    border: 1px solid rgba(201, 160, 74, 0.28);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 3px 14px rgba(80, 50, 10, 0.08);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 1.5s ease;
    width: 100%;
}

.timeline__item.is-active .timeline__card {
    border-color: rgba(201, 160, 74, 0.7);
    box-shadow:
        0 4px 20px rgba(80, 50, 10, 0.12),
        0 0 0 1px rgba(201, 160, 74, 0.25),
        inset 0 0 0 1px rgba(201, 160, 74, 0.12);
    transform: translateX(4px);
}

.timeline__icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.88;
    filter: drop-shadow(0 2px 4px rgba(80, 50, 10, 0.15));
}

.timeline__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.timeline__time {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--olympus-gold);
    text-transform: uppercase;
}

.timeline__title {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--olympus-deep);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.timeline__desc {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--olympus-text);
    line-height: 1.55;
    margin-top: 2px;
}

/* ─── DESKTOP: alternating left / right ─── */
@media (min-width: 769px) {
    .timeline__line {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline__cursor {
        left: 50%;
    }

    .timeline__item {
        padding-left: 0;
        padding-bottom: 56px;
        align-items: center;
    }

    /* Left items: card on left, dot at center */
    .timeline__item.is-left {
        flex-direction: row;
        justify-content: flex-start;
        padding-right: calc(50% + 36px);
    }

    .timeline__item.is-left .timeline__dot {
        left: auto;
        right: -36px;
        top: 50%;
        transform: translate(50%, -50%);
    }

    .timeline__item.is-left.is-active .timeline__dot {
        transform: translate(50%, -50%) scale(1.2);
    }

    /* connector: dot → card right edge */
    .timeline__item.is-left .timeline__dot::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 100%;
        width: 22px;
        height: 1px;
        background: linear-gradient(to left, var(--olympus-gold), transparent);
        transform: translateY(-50%);
    }

    /* Right items: dot at center, card on right */
    .timeline__item.is-right {
        flex-direction: row;
        justify-content: flex-end;
        padding-left: calc(50% + 36px);
    }

    .timeline__item.is-right .timeline__dot {
        left: -36px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .timeline__item.is-right.is-active .timeline__dot {
        transform: translate(-50%, -50%) scale(1.2);
    }

    /* connector: dot → card left edge */
    .timeline__item.is-right .timeline__dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        width: 22px;
        height: 1px;
        background: linear-gradient(to right, var(--olympus-gold), transparent);
        transform: translateY(-50%);
    }

    /* right-side cards: icon after text */
    .timeline__item.is-right .timeline__card {
        flex-direction: row;
    }

    .timeline__item.is-active .timeline__card {
        transform: none;
    }

    .timeline__item.is-left.is-active .timeline__card {
        transform: translateX(-4px);
    }

    .timeline__item.is-right.is-active .timeline__card {
        transform: translateX(4px);
    }

    .timeline__heading {
        font-size: 40px;
    }

    .timeline__wreath {
        width: 96px;
    }

    .timeline__title {
        font-size: 19px;
    }

    .timeline__icon {
        width: 62px;
        height: 62px;
    }
}

/* ═══════════════════════════════════════════
   NIGHT TOGGLE BUTTON
═══════════════════════════════════════════ */

#night-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    /* own transition - must include the global colour transitions too */
    transition: opacity 0.8s ease, background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease;
}

#night-toggle.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.night-toggle__track {
    width: 52px;
    height: 28px;
    background-color: rgba(245, 236, 214, 0.92);
    border: 1px solid rgba(201, 160, 74, 0.5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 3px;
    /* own transition */
    transition: background-color 1.5s ease, border-color 1.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.night-toggle__thumb {
    width: 22px;
    height: 22px;
    background-color: var(--olympus-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    /* own transition */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 1.5s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.night-toggle__icon {
    font-size: 13px;
    line-height: 1;
    transition: none;
}

.night-toggle__icon--moon {
    display: none;
}

body.night .night-toggle__icon--sun  { display: none; }
body.night .night-toggle__icon--moon { display: inline; }

body.night .night-toggle__track {
    background-color: rgba(12, 21, 32, 0.92);
    border-color: rgba(212, 181, 106, 0.45);
}

body.night .night-toggle__thumb {
    transform: translateX(24px);
    background-color: #d4b56a;
}

/* ═══════════════════════════════════════════
   NIGHT MODE - TIMELINE OVERRIDES
═══════════════════════════════════════════ */

body.night .timeline {
    background-color: #0e1a28;
}

body.night .timeline__heading {
    color: #d4c8a0;
}

body.night .timeline__eyebrow {
    color: #d4b56a;
}

body.night .timeline__card {
    background-color: #152233;
    border-color: rgba(212, 176, 94, 0.2);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

body.night .timeline__item.is-active .timeline__card {
    border-color: rgba(212, 176, 94, 0.6);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 176, 94, 0.2),
        inset 0 0 0 1px rgba(212, 176, 94, 0.1);
}

body.night .timeline__title {
    color: #d4c8a0;
}

body.night .timeline__desc {
    color: #8aa8bc;
}

body.night .timeline__time {
    color: #d4b56a;
}

body.night .timeline__dot {
    background-color: #d4b56a;
    border-color: #152233;
    box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.3);
}

body.night .timeline__item.is-active .timeline__dot {
    background-color: #b08030;
    box-shadow: 0 0 0 4px rgba(212, 181, 106, 0.45);
}

/* ═══════════════════════════════════════════
   RSVP SECTION
═══════════════════════════════════════════ */

.rsvp {
    position: relative;
    background-color: #e8ddc8;
    padding: 60px 20px 100px;
    overflow-x: clip;
    overflow-y: visible;
}

.rsvp__arrow {
    position: absolute;
    top: -5.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

.map-section__arrow {
    position: absolute;
    top: -5.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(-1);
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(80, 50, 10, 0.18));
    z-index: 10;
}

/* .rsvp::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 160, 74, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 10% 100%, rgba(201, 160, 74, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 100%, rgba(201, 160, 74, 0.07) 0%, transparent 60%);
    pointer-events: none;
} */

/* ─── Flanking gods (desktop only) ─── */
.rsvp__god {
    display: none;
    position: absolute;
    bottom: 0;
    height: calc(var(--vh) * 58);
    pointer-events: none;
    opacity: 0.92;
    filter: drop-shadow(0 6px 18px rgba(40, 25, 5, 0.18));
}

/* ─── Inner container ─── */
.rsvp__inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Header ─── */
.rsvp__header {
    text-align: center;
    margin-bottom: 40px;
}

.rsvp__aphrodite {
    display: block;
    height: 18rem;
    width: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 12px rgba(40, 25, 5, 0.15));
    opacity: 0.93;
    animation: aphrodite-idle 4.8s ease-in-out infinite;
    will-change: transform;
}

.rsvp__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olympus-gold);
    margin-bottom: 8px;
}

.rsvp__heading {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 27px;
    letter-spacing: 0.02em;
    color: var(--olympus-deep);
    line-height: 1.15;
    margin-bottom: 10px;
    margin-top: 10px;
}

.rsvp__subtext {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--olympus-text);
    letter-spacing: 0.04em;
}

/* ─── Form card ─── */
.rsvp__form {
    background-color: #fdf7ed;
    border: 1px solid rgba(201, 160, 74, 0.3);
    border-radius: 18px;
    padding: 32px 24px 28px;
    box-shadow: 0 6px 28px rgba(60, 38, 8, 0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* own transition - extend with night-mode colour transitions */
    transition: background-color 1.5s ease, border-color 1.5s ease;
}

/* ─── Field ─── */
.rsvp__row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rsvp__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvp__field--guests {
    display: none;
}

.rsvp__field--guests.is-visible {
    display: flex;
}

.rsvp__label {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--olympus-deep);
}

.rsvp__req {
    color: var(--olympus-gold);
}

.rsvp__input {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--olympus-text);
    background-color: #fff8f0;
    border: 1px solid rgba(201, 160, 74, 0.35);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    /* own transition */
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 1.5s ease, color 1.5s ease;
}

.rsvp__input:focus {
    border-color: var(--olympus-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.18);
}

.rsvp__input::placeholder {
    color: #b8a888;
    opacity: 1;
}

/* ─── Radio cards ─── */
.rsvp__radio-group {
    display: flex;
    gap: 12px;
}

.rsvp__radio-group--count {
    gap: 8px;
}

.rsvp__radio-card {
    flex: 1;
    cursor: pointer;
}

.rsvp__radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.rsvp__radio-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border: 1px solid rgba(201, 160, 74, 0.35);
    border-radius: 12px;
    background-color: #fff8f0;
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--olympus-text);
    text-align: center;
    /* own transition */
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.rsvp__radio-icon {
    font-size: 16px;
    color: var(--olympus-gold);
    transition: color 0.25s ease;
}

.rsvp__radio-card input:checked + .rsvp__radio-face {
    border-color: var(--olympus-gold);
    background-color: rgba(201, 160, 74, 0.14);
    color: var(--olympus-deep);
    box-shadow: 0 0 0 2px rgba(201, 160, 74, 0.2);
}

.rsvp__radio-card input:checked + .rsvp__radio-face .rsvp__radio-icon {
    color: var(--olympus-deep);
}

/* count cards */
.rsvp__radio-card--sm .rsvp__radio-face {
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 10px;
}

/* ─── Submit ─── */
.rsvp__submit {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
    background-color: var(--olympus-gold);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    /* own transition */
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.rsvp__submit:hover {
    background-color: #a8822e;
    box-shadow: 0 4px 16px rgba(168, 130, 46, 0.4);
    transform: translateY(-1px);
}

.rsvp__submit:active {
    transform: translateY(0);
}

.rsvp__submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* ─── Status message ─── */
.rsvp__status {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 13px;
    text-align: center;
    color: var(--olympus-text);
    min-height: 1.4em;
}

/* ─── Success state ─── */
.rsvp__success {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background-color: #fdf7ed;
    border: 1px solid rgba(201, 160, 74, 0.3);
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(60, 38, 8, 0.1);
    /* own transition */
    transition: background-color 1.5s ease, border-color 1.5s ease;
}

.rsvp__success.is-visible {
    display: block;
}

.rsvp__success-heart {
    font-size: 40px;
    color: var(--olympus-gold);
    margin-bottom: 16px;
    animation: heart-beat 1.8s ease-in-out infinite;
}

.rsvp__success-text {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--olympus-deep);
    letter-spacing: 0.02em;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.14); }
}

/* ─── Character idle animations ─── */
@keyframes zeus-idle {
    0%, 100% { transform: translateY(0)      rotate(0deg); }
    30%      { transform: translateY(-7px)   rotate(-0.4deg); }
    65%      { transform: translateY(-3px)   rotate(0.2deg); }
}

@keyframes hera-idle {
    0%, 100% { transform: translateY(0)      rotate(0deg); }
    40%      { transform: translateY(-5px)   rotate(0.5deg); }
    70%      { transform: translateY(-9px)   rotate(0.2deg); }
}

@keyframes aphrodite-idle {
    0%, 100% { transform: translateY(0)      rotate(-0.5deg); }
    50%      { transform: translateY(-10px)  rotate(0.4deg); }
}

/* ─── TABLET 481px+ ─── */
@media (min-width: 481px) {
    .rsvp__row {
        flex-direction: row;
    }
    .rsvp__heading {
        font-size: 38px;
    }
    .rsvp__aphrodite {
        height: 120px;
    }
}

/* ─── DESKTOP 769px+ - gods appear ─── */
@media (min-width: 769px) {
    .rsvp {
        padding: 96px 20px 0;
    }

    .rsvp__god {
        display: block;
    }

    .rsvp__god--zeus {
        left: 3%;
        height: calc(var(--vh) * 62);
        animation: zeus-idle 6.5s ease-in-out 0.3s infinite;
        will-change: transform;
    }

    .rsvp__god--hera {
        right: 3%;
        height: calc(var(--vh) * 62);
        animation: hera-idle 7.2s ease-in-out 1.8s infinite;
        will-change: transform;
    }

    .rsvp__inner {
        max-width: 580px;
        padding-bottom: 80px;
    }

    .rsvp__heading {
        font-size: 44px;
    }

    .rsvp__aphrodite {
        height: 138px;
    }
}

/* ─── DESKTOP 1025px+ ─── */
@media (min-width: 1025px) {
    .rsvp__god--zeus {
        left: 8%;
        height: calc(var(--vh) * 66);
    }

    .rsvp__god--hera {
        right: 8%;
        height: calc(var(--vh) * 66);
    }

    .rsvp__inner {
        max-width: 600px;
    }
}

/* ─── NIGHT MODE - RSVP ─── */
body.night .rsvp {
    background-color: #101d2b;
}

body.night .rsvp__heading {
    color: #d4c8a0;
}

body.night .rsvp__subtext {
    color: #8aa8bc;
}

body.night .rsvp__label {
    color: #d4c8a0;
}

body.night .rsvp__eyebrow {
    color: #d4b56a;
}

body.night .rsvp__form,
body.night .rsvp__success {
    background-color: #152233;
    border-color: rgba(212, 176, 94, 0.2);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

body.night .rsvp__input {
    background-color: #0c1520;
    border-color: rgba(212, 176, 94, 0.25);
    color: #c8d8e8;
}

body.night .rsvp__input::placeholder {
    color: #4a6478;
}

body.night .rsvp__input:focus {
    border-color: #d4b56a;
    box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.18);
}

body.night .rsvp__radio-face {
    background-color: #0c1520;
    border-color: rgba(212, 176, 94, 0.25);
    color: #c8d8e8;
}

body.night .rsvp__radio-card input:checked + .rsvp__radio-face {
    background-color: rgba(212, 181, 106, 0.15);
    border-color: #d4b56a;
    color: #d4c8a0;
    box-shadow: 0 0 0 2px rgba(212, 181, 106, 0.2);
}

body.night .rsvp__status {
    color: #8aa8bc;
}

body.night .rsvp__success-text {
    color: #d4c8a0;
}

body.night .rsvp__success-heart {
    color: #d4b56a;
}

/* ═══════════════════════════════════════════
   MAP SECTION
═══════════════════════════════════════════ */

.map-section {
    position: relative;
    background-color: #ede5d0;
    padding: 25rem 20px 96px;
    overflow-x: clip;
    overflow-y: visible;
    transition: background-color 1.5s ease;
}

.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ─── Flanking gods ─── */
.map-section__god {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    opacity: 0.88;
    filter: drop-shadow(0 6px 18px rgba(40, 25, 5, 0.15));
    height: 18rem;
}

.map-section__god--zeus {
    top: 10%;
    left: 2%;
    animation: zeus-idle 6.5s ease-in-out 0.3s infinite;
    will-change: transform;
}

.map-section__god--hera {
    top: 10%;
    right: 2%;
    animation: hera-idle 7.2s ease-in-out 1.8s infinite;
    will-change: transform;
}

/* ─── Inner container ─── */
.map-section__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── Header ─── */
.map-section__header {
    text-align: center;
    margin-bottom: 36px;
}

.map-section__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olympus-gold);
    margin-bottom: 8px;
}

.map-section__heading {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 34px;
    letter-spacing: 0.02em;
    color: var(--olympus-deep);
    line-height: 1.15;
    margin-bottom: 8px;
    transition: color 1.5s ease;
}

.map-section__subtext {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--olympus-text);
}

.addr-num {
    font-style: normal;
    font-variant-numeric: lining-nums;
}

/* ─── Card ─── */
.map-section__card {
    background-color: #fdf7ed;
    border: 1px solid rgba(201, 160, 74, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(60, 38, 8, 0.12);
    transition: background-color 1.5s ease, border-color 1.5s ease;
}

/* ─── Map frame ─── */
.map-section__frame {
    width: 100%;
    height: 240px;
    border-bottom: 1px solid rgba(201, 160, 74, 0.25);
    overflow: hidden;
    transition: border-color 1.5s ease;
}

.map-section__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(0.12) saturate(0.95) brightness(1.02);
    transition: filter 1.5s ease;
}

/* ─── Info bar ─── */
.map-section__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.map-section__venue-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.map-section__venue-name {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--olympus-deep);
    letter-spacing: 0.01em;
    transition: color 1.5s ease;
}

.map-section__venue-addr {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--olympus-text);
    letter-spacing: 0.04em;
}

.map-section__directions {
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--olympus-gold);
    background-color: transparent;
    border: 1px solid rgba(201, 160, 74, 0.5);
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.map-section__directions:hover {
    background-color: var(--olympus-gold);
    color: #fff;
    border-color: var(--olympus-gold);
}

/* ─── TABLET 481px+ ─── */
@media (min-width: 481px) {
    .map-section__frame {
        height: 290px;
    }

    .map-section__heading {
        font-size: 38px;
    }
}

/* ─── DESKTOP 769px+ ─── */
@media (min-width: 769px) {
    .map-section {
        padding: 96px 20px 0;
    }

    .map-section__god--zeus {
        left: 2%;
        height: calc(var(--vh) * 56);
    }

    .map-section__god--hera {
        right: 2%;
        height: calc(var(--vh) * 56);
    }

    .map-section__inner {
        max-width: 700px;
        padding-bottom: 80px;
    }

    .map-section__frame {
        height: 360px;
    }

    .map-section__heading {
        font-size: 44px;
    }

    .map-section__info {
        padding: 20px 28px;
    }

    .map-section__venue-name {
        font-size: 18px;
    }

    .map-section__venue-addr {
        font-size: 14px;
    }

    .map-section__directions {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ─── DESKTOP 1025px+ ─── */
@media (min-width: 1025px) {
    .map-section__god--zeus {
        left: 7%;
        height: calc(var(--vh) * 60);
    }

    .map-section__god--hera {
        right: 7%;
        height: calc(var(--vh) * 60);
    }

    .map-section__inner {
        max-width: 740px;
    }

    .map-section__frame {
        height: 420px;
    }
}

/* ─── NIGHT MODE ─── */
body.night .map-section {
    background-color: #0e1a28;
}

body.night .map-section__heading {
    color: #d4c8a0;
}

body.night .map-section__subtext,
body.night .map-section__venue-addr {
    color: #8aa8bc;
}

body.night .map-section__venue-name {
    color: #d4c8a0;
}

body.night .map-section__eyebrow {
    color: #d4b56a;
}

body.night .map-section__card {
    background-color: #152233;
    border-color: rgba(212, 176, 94, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.night .map-section__frame {
    border-color: rgba(212, 176, 94, 0.15);
}

body.night .map-section__frame iframe {
    filter: sepia(0.3) saturate(0.7) brightness(0.85) hue-rotate(10deg);
}

body.night .map-section__directions {
    color: #d4b56a;
    border-color: rgba(212, 181, 106, 0.4);
}

body.night .map-section__directions:hover {
    background-color: #d4b56a;
    color: #0c1520;
    border-color: #d4b56a;
}

/* ═══════════════════════════════════════════
   TIMELINE POPUP
═══════════════════════════════════════════ */

.tl-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 18, 5, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.tl-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tl-popup__box {
    position: relative;
    background-color: #fdf7ed;
    border: 1px solid rgba(201, 160, 74, 0.4);
    border-radius: 20px;
    padding: 40px 28px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(40, 20, 5, 0.22);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 1.5s ease, border-color 1.5s ease;
}

.tl-popup.is-open .tl-popup__box {
    transform: translateY(0) scale(1);
}

.tl-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--olympus-text);
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 1.5s ease;
}

.tl-popup__close:hover {
    opacity: 1;
}

.tl-popup__icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(80, 50, 10, 0.15));
}

.tl-popup__time {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olympus-gold);
    margin-bottom: 8px;
}

.tl-popup__title {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--olympus-deep);
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin-bottom: 14px;
    transition: color 1.5s ease;
}

.tl-popup__body {
    font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--olympus-text);
    line-height: 1.7;
}

/* night mode */
body.night .tl-popup {
    background-color: rgba(5, 10, 18, 0.7);
}

body.night .tl-popup__box {
    background-color: #152233;
    border-color: rgba(212, 176, 94, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.night .tl-popup__close {
    color: #c8d8e8;
}

body.night .tl-popup__time {
    color: #d4b56a;
}

body.night .tl-popup__title {
    color: #d4c8a0;
}

body.night .tl-popup__body {
    color: #8aa8bc;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.site-footer {
    background-color: var(--olympus-deep);
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1.5s ease;
}

body.night .site-footer {
    background-color: #060e18;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    text-decoration: none;
    transition: opacity 0.35s ease;
}

.footer-credit:hover {
    opacity: 1;
}

.footer-credit__logo {
    width: 52px;
    height: auto;
    display: block;
}

.footer-credit__text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #fff;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   CURTAIN (entry animation) - pleated ivory velvet
═══════════════════════════════════════════ */

.curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
    background: none; /* fallback while panels paint */
}

.curtain.is-done {
    display: none;
}

/* ─── Panels ─── */
.curtain__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%; /* slight overlap so no centre seam shows */
    will-change: transform;
    /* Slow, dramatic open. Long duration lets the hero scene wake up behind
       the curtain - by the time panels finish parting, the bride/groom are
       already mid-entry and the cupid is approaching. */
    transition: transform 3.6s cubic-bezier(0.65, 0.04, 0.35, 1);
    background-color: #d9d4c8;
    overflow: hidden;
}

/* Pleat pattern - one pleat: deep fold shadow → climbing warm tone → bright
   ivory crest → falling tone → deep fold. Tiled horizontally for several
   heavy fabric folds. The whole layer breathes (background-position +
   filter) so the highlights drift across the pleats like real cloth. */
.curtain__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* top→bottom lighting (warm light near top, soft shadow near bottom) */
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0)    32%,
            rgba(0,   0,   0,   0)    62%,
            rgba(92,  86,  74,  0.30) 100%
        ),
        /* one pleat (tiles via background-size) - ivory palette */
        linear-gradient(
            to right,
            #7a7467   0%,
            #8f8879   9%,
            #a8a091  20%,
            #c0b8aa  32%,
            #d1cabd  41%,
            #e3ddd2  47%,
            #f3f0e9  50%,
            #fffdf8  51.5%,
            #f3f0e9  53%,
            #e3ddd2  56%,
            #d1cabd  62%,
            #c0b8aa  72%,
            #a8a091  83%,
            #8f8879  92%,
            #7a7467  100%
        );
    background-size: 100% 100%, 28% 100%; /* 1 vignette + ~3.5 pleats per panel */
    background-repeat: no-repeat, repeat-x;
    pointer-events: none;
    animation: cloth-breathe 6.5s ease-in-out infinite;
    will-change: background-position, filter;
}

.curtain__panel--left  { left:  0; }
.curtain__panel--right { right: 0; }

/* Mirror the pleat pattern on the right panel so light catches symmetrically
   and the seam in the middle reads as a continuous deep fold. Phase-offset
   the breathing animation so panels sway out of sync (more natural). */
.curtain__panel--right::before {
    transform: scaleX(-1);
    animation-delay: -3.2s;
}

/* ─── Cloth motion ───
   Breathing cloth: pleat highlights drift sideways while a subtle brightness
   modulation simulates light shifting across the folds. Both effects are on
   the ::before so they don't fight the panel's open transform. */
@keyframes cloth-breathe {
    0%, 100% {
        background-position: 0 0, 0    0;
        filter: brightness(1) saturate(1);
    }
    50% {
        background-position: 0 0, -2.5% 0;
        filter: brightness(1.04) saturate(1.05);
    }
}

/* Champagne trim along the inside edges where the panels meet. */
.curtain__panel--left::after,
.curtain__panel--right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(184, 158, 92,  0)  0%,
        #c9a04a                18%,
        #f0d175                50%,
        #c9a04a                82%,
        rgba(184, 158, 92,  0) 100%);
    box-shadow: 0 0 14px rgba(240, 209, 117, 0.4);
    z-index: 2;
}

.curtain__panel--left::after  { right: 0; }
.curtain__panel--right::after { left:  0; }

/* OPEN STATE - slide each panel off screen */
.curtain.is-opening .curtain__panel--left  { transform: translateX(-105%); }
.curtain.is-opening .curtain__panel--right { transform: translateX(105%);  }

/* ─── Greek ornament (single sample detail) ─── */
.curtain__ornament {
    position: absolute;
    top: 12px;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
    z-index: 5;
    width: 110%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(45, 35, 20, 0.28));
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.curtain.is-opening .curtain__ornament {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}

/* ─── Click hint (lower left) ─── */
.curtain__hint {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 5;
    margin: 0;
    font-family: 'MyFont2', 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 18px;
    letter-spacing: 0.18em;
    color: #fdfaea;
    text-shadow: 0 2px 8px rgba(70, 55, 30, 0.65), 0 0 14px rgba(255, 240, 200, 0.35);
    pointer-events: none;
    animation: hint-pulse 2.2s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.curtain.is-opening .curtain__hint {
    opacity: 0;
    transform: translateY(8px);
    animation: none;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1;    }
}

@media (min-width: 481px) {
    .curtain__ornament { top: 14px; width: 290px; max-width: 60vw; }
    .curtain__hint { left: 32px; bottom: 32px; font-size: 20px; }
}

@media (min-width: 769px) {
    .curtain__ornament { top: 18px; width: 360px; max-width: 44vw; }
    .curtain__hint { left: 44px; bottom: 44px; font-size: 22px; letter-spacing: 0.22em; }
}

/* Pleat density grows on larger screens so the folds stay proportionate. */
@media (min-width: 481px) {
    .curtain__panel::before { background-size: 100% 100%, 24% 100%; }
}

@media (min-width: 769px) {
    .curtain__panel::before { background-size: 100% 100%, 20% 100%; }
}

@media (min-width: 1025px) {
    .curtain__panel::before { background-size: 100% 100%, 16% 100%; }
}

/* ───────────────────────────────────────────
   Desktop notice (open on mobile)
─────────────────────────────────────────── */
.mobile-prompt {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(12, 14, 20, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease;
}

.mobile-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-prompt.is-blocking {
    background-color: rgba(7, 10, 16, 0.96);
}

.mobile-prompt__card {
    position: relative;
    width: min(92vw, 420px);
    padding: 26px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background-color: rgba(19, 26, 36, 0.9);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.mobile-prompt__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background-color: transparent;
    color: #ecf2fa;
    font-family: 'MyFont2', 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 16px;
    cursor: pointer;
}

.mobile-prompt.is-blocking .mobile-prompt__close {
    display: none;
}

.mobile-prompt__logo {
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 14px;
    opacity: 0.8;
}

.mobile-prompt__title {
    margin: 0 0 8px;
    font-family: 'MyFont2', 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 22px;
    color: #f4f8ff;
    letter-spacing: 0.03em;
}

.mobile-prompt__text {
    margin: 0;
    font-family: 'MyFont2', 'Noto Serif Georgian', 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #c9d7e7;
    line-height: 1.45;
}

body.night .mobile-prompt {
    background-color: rgba(4, 8, 14, 0.72);
}

body.night .mobile-prompt.is-blocking {
    background-color: rgba(2, 5, 10, 0.97);
}

body.night .mobile-prompt__card {
    background-color: rgba(11, 17, 27, 0.95);
    border-color: rgba(122, 163, 186, 0.35);
}

@media (min-width: 481px) {
    .mobile-prompt {
        display: flex;
    }
}


/* ===========================================================================
   Viewport pin + loading screen
   ---------------------------------------------------------------------------
   Shared across every Weddsite template; only the palette below is per design.

   --vh is written by the inline script in <head> and re-measured on width
   changes only, so Instagram's and Messenger's sliding nav bar cannot resize
   the layout. `vh`, `svh`, `lvh` and `dvh` all move with it, which is why the
   pin has to come from JS. The 100vh/100svh floors stay as the no-JS fallback
   and MUST be declared before the .vh-lock rule that overrides them.

   The loader exists so `font-display: block` is safe: the block period is spent
   behind the spinner instead of on an invisible page. It also holds the entry
   animation (via .is-loading) so the intro is not played out behind it.
   =========================================================================== */

:root {
    --vh: 1vh;
}

html {
    overscroll-behavior-y: none;
}

.vh-lock body,
.vh-lock .hero {
    min-height: calc(var(--vh) * 100);
}

/* Entry animations must not play out behind the spinner - a guest who uncovers a
   finished, static scene has been shown nothing. `is-loading` is set by the
   inline script in <head> before first paint and removed on reveal, so a paused
   animation resumes from frame zero exactly when the guest can first see it.
   The spinner itself is excluded, and with JS off the class never lands. */
.is-loading body *:not(.loader):not(.loader__spinner) {
    animation-play-state: paused !important;
}

.loader {
    position: fixed;
    inset: 0;
    /* Out-ranks every entry overlay (envelopes / curtains / clouds live at 9999+). */
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5ecd6;
    opacity: 1;
    transition: opacity 0.55s ease;
}

.loader.is-hidden {
    opacity: 0;
}

.loader.is-gone {
    display: none;
}

.loader__spinner {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(201, 160, 74, 0.28);
    border-top-color: #c9a04a;
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}
