@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ivory: #f7f3eb;
    --ivory-2: #fcfaf6;
    --sage: #98a58f;
    --sage-dark: #74816d;
    --sage-soft: #dfe5dc;
    --clay: #c58d74;
    --clay-dark: #aa715a;
    --sand: #d8c8b6;
    --walnut: #67554a;
    --charcoal: #3e3935;
    --muted: #7a716a;
    --line: rgba(103, 85, 74, .16);
    --paper-shadow: 0 24px 64px rgba(78, 67, 58, .11);
    --photo-shadow: 0 22px 54px rgba(62, 57, 53, .16);
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Manrope', Arial, sans-serif;
    --section-space: clamp(72px, 8vw, 118px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    padding-bottom: 82px;
    color: var(--charcoal);
    background: var(--ivory);
    font-family: var(--body);
    font-size: 15px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.content-shell {
    width: min(1080px, calc(100% - 36px));
    margin-inline: auto;
}
.invitation-section { position: relative; overflow: hidden; }
.invitation-section > .content-shell,
.invitation-section > .hero-photo,
.invitation-section > .hero-paper,
.invitation-section > .countdown-content { position: relative; z-index: 2; }

/* Realistic Javanese ambience on wide screens; kept outside the main reading column. */
.ambient-side {
    position: fixed;
    top: 11vh;
    z-index: 12;
    width: clamp(130px, 14vw, 250px);
    height: 72vh;
    max-height: 760px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .14;
    filter: saturate(.78) sepia(.08);
}
.ambient-side--left { left: max(0px, calc((100vw - 1180px) / 2 - 190px)); background-image: url('assets/images/ornament-wayang-pair.webp'); }
.ambient-side--right { right: max(0px, calc((100vw - 1180px) / 2 - 180px)); background-image: url('assets/images/ornament-gunungan.webp'); }

.micro-label {
    display: inline-block;
    color: var(--clay-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.micro-label--light { color: rgba(255,255,255,.82); }
.section-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}
.section-intro--left { margin-inline: 0; text-align: left; }
.section-intro h2,
.greeting-copy h2,
.countdown-content h2,
.closing-content h2 {
    margin: 10px 0 12px;
    color: var(--walnut);
    font-family: var(--display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 500;
    line-height: .98;
}
.section-intro p,
.greeting-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.82;
}
.section-intro--split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}
.section-intro--split p { max-width: 360px; }

.soft-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid rgba(103,85,74,.18);
    border-radius: 999px;
    color: var(--walnut);
    background: rgba(255,255,255,.72);
    text-decoration: none;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.soft-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(80,67,58,.12); }
.soft-btn--clay { color: #fff; background: var(--clay); border-color: var(--clay); }
.soft-btn--light { color: var(--walnut); background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.5); }
.soft-btn--ghost { background: transparent; border-color: rgba(103,85,74,.24); }
.soft-btn--ghost-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.52); }
.soft-btn--small { min-height: 38px; padding: 8px 13px; font-size: .67rem; }
.soft-btn--block { width: 100%; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--clay-dark);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
}
.empty-state { margin: 0; color: var(--muted); text-align: center; font-size: .82rem; }

/* OPENING COVER */
.opening-cover {
    position: fixed;
    inset: 0;
    z-index: 10000;
    min-height: 100svh;
    overflow-y: auto;
    color: #fff;
    background: var(--cover-image) center 35%/cover no-repeat;
    transition: transform .85s cubic-bezier(.77,0,.175,1), opacity .68s ease;
}
.opening-cover.open { transform: translateY(-104%); opacity: 0; pointer-events: none; }
.opening-cover__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(37,36,31,.08) 0%, rgba(40,45,37,.16) 36%, rgba(37,42,34,.72) 100%),
        linear-gradient(90deg, rgba(42,38,34,.18), transparent 42%, rgba(42,38,34,.10));
}
.opening-cover__content {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    width: min(760px, calc(100% - 34px));
    margin-inline: auto;
    padding: clamp(34px, 7vh, 70px) 0 clamp(30px, 6vh, 58px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.opening-cover__guest {
    display: grid;
    gap: 3px;
    max-width: 340px;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 20px;
    background: rgba(55,62,49,.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.opening-cover__guest span,
.opening-cover__guest small { color: rgba(255,255,255,.72); font-size: .66rem; letter-spacing: .08em; }
.opening-cover__guest strong { font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.opening-cover__identity { width: min(560px, 100%); }
.opening-cover__identity .micro-label { color: rgba(255,255,255,.78); }
.opening-cover__identity h1 {
    margin: 8px 0 6px;
    font-family: var(--display);
    font-size: clamp(3.1rem, 10vw, 6rem);
    font-weight: 500;
    line-height: .92;
    text-shadow: 0 8px 26px rgba(20,20,18,.32);
}
.opening-cover__identity h1 em { display: inline-block; margin-inline: .08em; font-weight: 500; }
.opening-cover__identity time { display: block; margin-bottom: 20px; font-size: .77rem; letter-spacing: .22em; }
.opening-cover__identity p { max-width: 440px; margin: 18px auto 0; color: rgba(255,255,255,.77); font-size: .73rem; line-height: 1.75; }

/* HERO */
.hero-section { background: var(--ivory); }
.hero-photo {
    position: relative;
    height: clamp(420px, 66vw, 760px);
    overflow: hidden;
}
.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(51,49,43,.2));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.hero-paper {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 28px));
    margin: clamp(-86px, -8vw, -52px) auto 0;
    padding: 48px clamp(24px, 6vw, 70px) 44px;
    text-align: center;
    background: var(--ivory-2);
    border-radius: 48% 48% 16px 16px / 34px 34px 16px 16px;
    box-shadow: var(--paper-shadow);
}
.hero-paper::before,
.hero-paper::after {
    content: '';
    position: absolute;
    top: 34px;
    width: 78px;
    height: 100px;
    opacity: .2;
    background:
        radial-gradient(ellipse at 40% 28%, var(--sage-dark) 0 14%, transparent 15%),
        radial-gradient(ellipse at 64% 54%, var(--sage) 0 11%, transparent 12%),
        linear-gradient(70deg, transparent 48%, var(--sage-dark) 49% 51%, transparent 52%);
}
.hero-paper::before { left: 18px; transform: rotate(-14deg); }
.hero-paper::after { right: 18px; transform: scaleX(-1) rotate(-14deg); }
.hero-paper h1 {
    margin: 8px 0 6px;
    color: var(--walnut);
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5.3rem);
    font-weight: 500;
    line-height: .95;
}
.hero-paper h1 em { color: var(--clay); font-weight: 500; }
.hero-paper time { display: block; color: var(--sage-dark); font-size: .74rem; font-weight: 700; letter-spacing: .2em; }
.hero-paper > p { max-width: 580px; margin: 16px auto 0; color: var(--muted); font-size: .86rem; line-height: 1.82; }
.botanical-rule { display: flex; align-items: center; justify-content: center; gap: 9px; width: 170px; margin: 18px auto 0; color: var(--clay); }
.botanical-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.botanical-rule span:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.botanical-rule i { font-size: .65rem; transform: rotate(-20deg); }
.scroll-cue { display: grid; place-items: center; width: 38px; height: 38px; margin: 22px auto -6px; color: var(--sage-dark); text-decoration: none; }

/* GREETING */
.greeting-section { padding: var(--section-space) 0; background: var(--ivory); }
.greeting-layout {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 64px clamp(24px, 7vw, 82px);
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(252,250,246,.94), rgba(252,250,246,.94)),
        url('assets/images/truntum-pattern.svg') center/170px repeat;
    box-shadow: var(--paper-shadow);
}
.greeting-layout::after {
    content: '';
    position: absolute;
    right: -36px;
    bottom: -24px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(103,85,74,.09);
    border-radius: 50%;
}
.greeting-flower {
    position: absolute;
    left: -24px;
    top: -20px;
    width: 180px;
    height: 190px;
    opacity: .64;
    background:
        radial-gradient(circle at 38% 30%, #fff 0 8%, #efe8dc 9% 13%, transparent 14%),
        radial-gradient(circle at 58% 48%, #fff 0 9%, #efe8dc 10% 14%, transparent 15%),
        radial-gradient(ellipse at 64% 75%, var(--sage) 0 12%, transparent 13%),
        radial-gradient(ellipse at 28% 66%, var(--sage-dark) 0 9%, transparent 10%);
    filter: drop-shadow(0 10px 18px rgba(80,69,60,.08));
}
.greeting-copy { position: relative; z-index: 1; max-width: 680px; text-align: center; }
.greeting-copy h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.greeting-copy small { display: block; margin-top: 24px; color: var(--clay-dark); font-family: var(--display); font-size: 1rem; font-style: italic; }

/* COUPLE */
.couple-section {
    padding: var(--section-space) 0 calc(var(--section-space) + 10px);
    background:
        linear-gradient(180deg, rgba(252,250,246,.96), rgba(242,238,230,.94) 54%, rgba(252,250,246,.97)),
        url('assets/images/background-pendopo-soft.jpg') center 42%/cover no-repeat;
}

.couple-editorial {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(180px,.58fr) minmax(0,1fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
}
.person-card { max-width: 360px; }
.person-card--bride { justify-self: end; transform: translateY(54px); }
.person-card figure {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px;
    aspect-ratio: .78/1;
    background: #e9e2d9;
    border-radius: 44% 44% 18px 18px / 20% 20% 18px 18px;
    box-shadow: var(--photo-shadow);
}
.person-card figure::after { content: ''; position: absolute; inset: 0; border: 8px solid rgba(255,255,255,.54); border-radius: inherit; pointer-events: none; }
.person-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.person-card__copy { padding-inline: 12px; text-align: center; }
.person-card__copy > span { color: var(--sage-dark); font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.person-card__copy h3 { margin: 7px 0 8px; color: var(--walnut); font-family: var(--display); font-size: 2rem; font-weight: 500; }
.person-card__copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.person-card__copy a { display: inline-flex; gap: 7px; align-items: center; margin-top: 12px; color: var(--clay-dark); text-decoration: none; font-size: .7rem; font-weight: 700; }
.couple-centerpiece { text-align: center; }
.couple-centerpiece > span { display: block; color: var(--walnut); font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: .9; }
.couple-centerpiece em { display: block; margin: 8px 0; color: var(--clay); font-family: var(--display); font-size: 3.1rem; font-weight: 500; }
.couple-centerpiece p { margin: 22px auto 0; max-width: 230px; color: var(--muted); font-family: var(--display); font-size: 1rem; line-height: 1.55; }

/* COUNTDOWN */
.countdown-section {
    padding: 74px 0;
    color: #fff;
    background: linear-gradient(135deg, #8e9b85, #a7b19f);
}
.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .08;
    background: url('assets/images/truntum-pattern.svg') center/150px repeat;
}
.countdown-content { position: relative; z-index: 1; text-align: center; }
.countdown-content h2 { margin-bottom: 30px; color: #fff; }
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.35);
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.countdown-card { min-height: 116px; display: grid; place-content: center; gap: 5px; border-right: 1px solid rgba(255,255,255,.22); }
.countdown-card:last-child { border-right: 0; }
.countdown-card span { font-family: var(--display); font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1; }
.countdown-card small { color: rgba(255,255,255,.68); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; }
.countdown-content > p { max-width: 610px; margin: 28px auto 0; color: rgba(255,255,255,.76); font-family: var(--display); font-size: .96rem; font-style: italic; line-height: 1.65; }
.countdown-leaf { position: absolute; width: 220px; height: 220px; opacity: .18; background: radial-gradient(ellipse at 50% 50%, #fff 0 12%, transparent 13%); }
.countdown-leaf--left { left: -90px; bottom: -90px; }
.countdown-leaf--right { right: -90px; top: -90px; }

/* EVENTS */
.event-section { padding: var(--section-space) 0; background: var(--ivory-2); }
.event-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 6vw, 74px); align-items: center; }
.event-scene {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    margin: 0;
    border-radius: 48% 48% 28px 28px / 18% 18% 28px 28px;
    box-shadow: var(--photo-shadow);
}
.event-scene::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 9px rgba(255,255,255,.46); border-radius: inherit; }
.event-scene img { width: 100%; height: 100%; object-fit: cover; }
.event-list { display: grid; gap: 14px; }
.event-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 23px 22px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(77,66,58,.07);
}
.event-item__icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--clay-dark); background: #f5ece4; border-radius: 50%; }
.event-item__body h3 { margin: 0 0 11px; color: var(--walnut); font-family: var(--display); font-size: 1.65rem; font-weight: 600; }
.event-item__body p { margin: 7px 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.event-item__body p i { width: 20px; color: var(--clay-dark); }
.event-item__body p span { display: inline-block; margin-left: 20px; }
.event-map { overflow: hidden; margin-top: 16px; border-radius: 14px; }
.event-map iframe { width: 100% !important; min-height: 220px; border: 0; }

/* STORY */
.story-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(rgba(247,243,235,.94), rgba(247,243,235,.97)),
        url('assets/images/background-pendopo-soft.jpg') center 54%/cover no-repeat;
}

.story-scrapbook { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 48px; max-width: 900px; margin: 0 auto; }
.story-note {
    position: relative;
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: 0 15px 34px rgba(77,66,58,.08);
}
.story-note--tilt-left { transform: rotate(-1.25deg); }
.story-note--tilt-right { transform: rotate(1.25deg); }
.story-note figure { overflow: hidden; margin: 0; aspect-ratio: 1/1.08; background: var(--sand); }
.story-note img { width: 100%; height: 100%; object-fit: cover; }
.story-note time { color: var(--clay-dark); font-size: .69rem; font-weight: 700; letter-spacing: .08em; }
.story-note h3 { margin: 4px 0 7px; color: var(--walnut); font-family: var(--display); font-size: 1.55rem; font-weight: 600; }
.story-note p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.62; }
.story-letter { max-width: 720px; margin: 0 auto; padding: 42px; text-align: center; background: #fffdf9; border: 1px solid var(--line); box-shadow: var(--paper-shadow); }
.story-letter i { margin-bottom: 18px; color: var(--clay); }
.story-letter p { margin: 0; color: var(--muted); line-height: 1.9; }

/* GALLERY */
.gallery-section { padding: var(--section-space) 0; background: #f3eee6; }
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 92px;
    gap: 10px;
}
.gallery-tile { position: relative; overflow: hidden; padding: 0; border: 0; background: #ddd6cc; cursor: pointer; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile span { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--walnut); background: rgba(255,255,255,.88); border-radius: 50%; opacity: 0; transition: opacity .2s ease; }
.gallery-tile:hover span { opacity: 1; }
.gallery-tile--1 { grid-column: span 5; grid-row: span 4; }
.gallery-tile--2 { grid-column: span 3; grid-row: span 2; }
.gallery-tile--3 { grid-column: span 4; grid-row: span 2; }
.gallery-tile--4 { grid-column: span 3; grid-row: span 2; }
.gallery-tile--5 { grid-column: span 4; grid-row: span 2; }
.gallery-tile--6 { grid-column: span 5; grid-row: span 3; }

/* GUEST ALBUM */
.guest-album-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(rgba(252,250,246,.95), rgba(252,250,246,.97)),
        url('assets/images/background-pendopo-soft.jpg') center/cover no-repeat;
}

.guest-album-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(34px, 7vw, 82px); align-items: center; }
.guest-album-copy h2 { margin: 9px 0 12px; color: var(--walnut); font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; }
.guest-album-copy > p { color: var(--muted); line-height: 1.8; }
.guest-album-stats { display: flex; gap: 22px; margin: 25px 0; }
.guest-album-stats span { min-width: 110px; padding-block: 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guest-album-stats strong { display: block; color: var(--walnut); font-family: var(--display); font-size: 1.85rem; }
.guest-album-stats small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.album-collage { position: relative; min-height: 650px; }
.album-photo {
    position: absolute;
    overflow: hidden;
    padding: 8px 8px 34px;
    border: 0;
    color: var(--walnut);
    background: #fff;
    box-shadow: 0 15px 36px rgba(75,65,58,.14);
    cursor: pointer;
}
.album-photo img { width: 100%; height: 100%; object-fit: cover; }
.album-photo span { position: absolute; left: 10px; right: 10px; bottom: 9px; text-align: center; font-family: var(--display); font-size: .82rem; }
.album-photo--1 { top: 4px; left: 3%; width: 34%; height: 220px; transform: rotate(-5deg); }
.album-photo--2 { top: 32px; left: 35%; width: 31%; height: 205px; transform: rotate(2deg); }
.album-photo--3 { top: 8px; right: 1%; width: 31%; height: 228px; transform: rotate(5deg); }
.album-photo--4 { top: 224px; left: 9%; width: 31%; height: 205px; transform: rotate(3deg); }
.album-photo--5 { top: 245px; left: 39%; width: 34%; height: 230px; transform: rotate(-4deg); }
.album-photo--6 { top: 240px; right: 0; width: 28%; height: 202px; transform: rotate(4deg); }
.album-photo--7 { bottom: 4px; left: 17%; width: 31%; height: 205px; transform: rotate(-3deg); }
.album-photo--8 { bottom: 0; right: 12%; width: 35%; height: 220px; transform: rotate(3deg); }
.album-footnote { width: min(1080px, calc(100% - 36px)); margin: 22px auto 0; color: var(--muted); text-align: center; font-size: .68rem; }

/* GIFT */
.gift-section { padding: var(--section-space) 0; background: #d2a58f; }
.gift-section .micro-label { color: rgba(82,58,46,.78); }
.gift-section .section-intro h2 { color: #fff; }
.gift-section .section-intro p { color: rgba(255,255,255,.82); }
.gift-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 800px; margin: 0 auto; }
.gift-account-card { padding: 24px; background: rgba(255,250,245,.93); border-radius: 18px; box-shadow: 0 14px 32px rgba(92,62,48,.1); }
.gift-account-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.gift-account-card__head > span { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--clay); border-radius: 50%; }
.gift-account-card h3 { margin: 0; color: var(--walnut); font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.gift-account-card > strong { display: block; color: var(--charcoal); font-family: var(--display); font-size: 1.35rem; overflow-wrap: anywhere; }
.gift-account-card > p { margin: 4px 0 18px; color: var(--muted); font-size: .74rem; }
.gift-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* RSVP */
.rsvp-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(rgba(247,243,235,.96), rgba(247,243,235,.98)),
        url('assets/images/background-pendopo-soft.jpg') center 58%/cover no-repeat;
}

.rsvp-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.rsvp-form,
.wishes-panel { padding: 28px; background: #fffdf9; border: 1px solid var(--line); box-shadow: var(--paper-shadow); }
.rsvp-form { display: grid; gap: 15px; }
.rsvp-form label { display: grid; gap: 7px; }
.rsvp-form label > span { color: var(--walnut); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--charcoal);
    background: #fbf8f3;
    border: 1px solid rgba(103,85,74,.16);
    border-radius: 10px;
    outline: none;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { border-color: rgba(197,141,116,.7); box-shadow: 0 0 0 3px rgba(197,141,116,.08); }
.rsvp-form textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wishes-panel__head { display: flex; gap: 13px; align-items: center; margin-bottom: 19px; }
.wishes-panel__head > span { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--sage); border-radius: 50%; }
.wishes-panel__head small { color: var(--sage-dark); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wishes-panel__head h3 { margin: 2px 0 0; color: var(--walnut); font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.wishes-list { display: grid; gap: 6px; max-height: 430px; overflow-y: auto; padding-right: 5px; }
.guestbook-item { display: grid; grid-template-columns: 40px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.wish-avatar { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--clay); border-radius: 50%; font-family: var(--display); }
.wish-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wish-meta strong { color: var(--walnut); font-size: .76rem; }
.wish-meta time { color: #9a918a; font-size: .6rem; white-space: nowrap; }
.wish-body p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.58; }

/* CLOSING */
.closing-section {
    position: relative;
    min-height: 680px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 100px 24px 130px;
    color: #fff;
    background: var(--closing-image) center/cover no-repeat;
}
.closing-section__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,55,45,.28), rgba(40,48,39,.74)); }
.closing-content { position: relative; z-index: 1; max-width: 650px; text-align: center; }
.closing-content > p { max-width: 560px; margin: 12px auto 0; color: rgba(255,255,255,.8); line-height: 1.8; }
.closing-content h2 { margin-top: 24px; color: #fff; font-size: clamp(3rem, 8vw, 5rem); text-shadow: 0 8px 24px rgba(27,30,25,.24); }
.closing-content h2 em { color: #ead9ca; font-weight: 500; }
.closing-content time { display: block; margin-top: 9px; font-size: .72rem; letter-spacing: .2em; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.watermark { display: block; margin-top: 24px; color: rgba(255,255,255,.66); font-size: .66rem; }
.watermark a { color: #fff; text-decoration: none; }
.watermark i { color: #f0b4a0; }

/* FLOATING UI */
.bottom-menu {
    position: fixed;
    left: 50%;
    bottom: 13px;
    z-index: 9980;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px,1fr);
    width: min(480px, calc(100% - 24px));
    padding: 6px;
    transform: translateX(-50%);
    background: rgba(252,250,246,.94);
    border: 1px solid rgba(103,85,74,.14);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(70,61,54,.15);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}
.menu-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 4px 5px;
    color: rgba(62,57,53,.55);
    border-radius: 13px;
    text-decoration: none;
    font-size: .56rem;
    font-weight: 700;
}
.menu-item i { font-size: .9rem; }
.menu-item.active { color: #fff; background: var(--sage); }
.menu-item:hover { color: var(--clay-dark); }
.music-player {
    position: fixed;
    right: 16px;
    bottom: 83px;
    z-index: 9990;
    width: 43px;
    height: 43px;
    color: #fff;
    background: var(--clay);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(73,61,53,.2);
    cursor: pointer;
    animation: musicSpin 7s linear infinite;
}
.music-player.paused { animation: none; opacity: .78; }
@keyframes musicSpin { to { transform: rotate(360deg); } }
.invitation-floating-ui { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility .28s ease, transform .28s ease; }
.bottom-menu.invitation-floating-ui { transform: translateX(-50%) translateY(12px); }
.music-player.invitation-floating-ui { transform: translateY(12px); }
body.invitation-open .invitation-floating-ui { opacity: 1; visibility: visible; pointer-events: auto; }
body.invitation-open .bottom-menu.invitation-floating-ui { transform: translateX(-50%) translateY(0); }
body.invitation-open .music-player.invitation-floating-ui { transform: translateY(0); }
.theme-modal { overflow: hidden; border: 0; border-radius: 18px; background: var(--ivory-2); }
.theme-modal .modal-title { color: var(--walnut); font-family: var(--display); }
.gallery-lightbox { background: rgba(31, 29, 27, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gallery-lightbox .modal-dialog { margin-inline: auto; }
.lightbox-stage {
    position: relative;
    min-height: min(92vh, 920px);
    display: grid;
    place-items: center;
    padding: 52px 74px 42px;
}
.lightbox-figure { position: relative; margin: 0; max-width: min(1120px, 100%); text-align: center; }
.lightbox-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    margin: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.lightbox-close { position: absolute; top: 12px; right: 14px; z-index: 5; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav--prev { left: 12px; }
.lightbox-nav--next { right: 12px; }
.lightbox-caption { display: block; margin-top: 12px; color: rgba(255,255,255,.82); font-size: .76rem; }
.lightbox-counter { display: block; margin-top: 7px; color: rgba(255,255,255,.58); font-size: .68rem; letter-spacing: .12em; }

@media (max-width: 1199.98px) {
    .ambient-side { display: none; }
}

@media (max-width: 991.98px) {
    .content-shell { width: min(760px, calc(100% - 30px)); }
    .couple-editorial { grid-template-columns: 1fr 160px 1fr; gap: 18px; }
    .person-card--bride { transform: translateY(32px); }
    .event-layout { grid-template-columns: .86fr 1.14fr; gap: 28px; }
    .event-scene { min-height: 540px; }
    .story-scrapbook { gap: 26px; }
    .guest-album-layout { grid-template-columns: .82fr 1.18fr; gap: 30px; }
}

@media (max-width: 767.98px) {
    body { padding-bottom: 76px; font-size: 14px; }
    .content-shell { width: min(100% - 26px, 580px); }
    .section-intro { margin-bottom: 30px; }
    .section-intro--split { display: block; text-align: center; }
    .section-intro--split p { margin: 8px auto 0; }

    .opening-cover { background-position: center 28%; }
    .opening-cover__content { width: min(100% - 28px, 520px); padding: 28px 0 32px; }
    .opening-cover__guest { padding: 11px 18px; }
    .opening-cover__identity h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
    .opening-cover__identity p { max-width: 330px; }

    .hero-photo { height: min(67svh, 580px); min-height: 430px; }
    .hero-photo img { object-position: 52% 35%; }
    .hero-paper { width: calc(100% - 20px); margin-top: -58px; padding: 42px 22px 34px; border-radius: 42% 42% 12px 12px / 24px 24px 12px 12px; }
    .hero-paper::before,
    .hero-paper::after { width: 48px; height: 72px; top: 30px; opacity: .13; }
    .hero-paper h1 { font-size: clamp(3rem, 13vw, 4.7rem); }

    .greeting-section { padding: 64px 0; }
    .greeting-layout { min-height: 0; padding: 52px 22px 46px; }
    .greeting-flower { width: 120px; height: 130px; left: -25px; top: -24px; opacity: .45; }
    .greeting-copy h2 { font-size: 2.3rem; }

    .couple-section { padding: 66px 0 82px; }
    .couple-editorial { display: block; }
    .person-card { max-width: 330px; margin-inline: auto; }
    .person-card--groom { margin-right: 12%; }
    .person-card--bride { margin-top: 20px; margin-left: 12%; transform: none; }
    .couple-centerpiece { position: relative; z-index: 2; width: min(260px, 82%); margin: -8px auto 14px; padding: 24px 16px; background: rgba(247,243,235,.9); }
    .couple-centerpiece > span { font-size: 2.35rem; }
    .couple-centerpiece em { font-size: 2.5rem; margin: 3px 0; }
    .couple-centerpiece p { margin-top: 14px; font-size: .9rem; }
    .person-card figure { aspect-ratio: .84/1; }

    .countdown-section { padding: 60px 0; }
    .countdown-content h2 { font-size: 2.5rem; }
    .countdown-card { min-height: 94px; }
    .countdown-card span { font-size: 2.4rem; }

    .event-section { padding: 66px 0; }
    .event-layout { display: block; }
    .event-scene { min-height: 0; height: 390px; margin-bottom: 34px; border-radius: 46% 46% 22px 22px / 17% 17% 22px 22px; }
    .section-intro--left { text-align: center; }
    .event-item { grid-template-columns: 46px 1fr; padding: 19px 17px; gap: 14px; }
    .event-item__icon { width: 42px; height: 42px; }
    .event-item__body h3 { font-size: 1.5rem; }

    .story-section { padding: 66px 0; }
    .story-scrapbook { grid-template-columns: 1fr; max-width: 510px; gap: 20px; }
    .story-note { grid-template-columns: 38% 1fr; transform: none !important; }

    .gallery-section { padding: 66px 0; }
    .gallery-masonry { grid-template-columns: repeat(6,1fr); grid-auto-rows: 82px; gap: 7px; }
    .gallery-tile--1 { grid-column: span 4; grid-row: span 4; }
    .gallery-tile--2 { grid-column: span 2; grid-row: span 2; }
    .gallery-tile--3 { grid-column: span 2; grid-row: span 2; }
    .gallery-tile--4 { grid-column: span 3; grid-row: span 2; }
    .gallery-tile--5 { grid-column: span 3; grid-row: span 2; }
    .gallery-tile--6 { grid-column: span 6; grid-row: span 3; }

    .guest-album-section { padding: 66px 0; }
    .guest-album-layout { display: block; }
    .guest-album-copy { max-width: 500px; margin: 0 auto 28px; text-align: center; }
    .guest-album-stats { justify-content: center; }
    .album-collage { min-height: 610px; max-width: 560px; margin: 0 auto; }

    .gift-section { padding: 66px 0; }
    .gift-grid { grid-template-columns: 1fr; max-width: 520px; }

    .rsvp-section { padding: 66px 0; }
    .rsvp-layout { grid-template-columns: 1fr; }
    .rsvp-form,
    .wishes-panel { padding: 22px; }

    .closing-section { min-height: 620px; padding: 84px 20px 112px; background-position: 52% center; }
    .closing-content h2 { font-size: 3.4rem; }

    .lightbox-stage { min-height: 100svh; padding: 54px 14px 76px; }
    .lightbox-img { max-height: 78svh; border-radius: 10px; }
    .lightbox-nav { top: auto; bottom: 16px; width: 44px; height: 44px; transform: none; }
    .lightbox-nav--prev { left: calc(50% - 54px); }
    .lightbox-nav--next { right: calc(50% - 54px); }
    .lightbox-close { top: 13px; right: 14px; }

    .bottom-menu { bottom: 9px; width: calc(100% - 16px); border-radius: 16px; }
    .menu-item { min-height: 45px; font-size: .52rem; }
    .music-player { right: 11px; bottom: 77px; }
}

@media (max-width: 479.98px) {
    .opening-cover__identity h1 { font-size: 3.35rem; }
    .opening-cover__identity time { margin-bottom: 16px; }
    .hero-photo { min-height: 410px; }
    .hero-paper { padding-inline: 18px; }
    .hero-paper h1 { font-size: 3.1rem; }
    .greeting-layout { width: calc(100% - 18px); }
    .countdown-grid { width: 100%; }
    .countdown-card { min-height: 86px; }
    .countdown-card span { font-size: 2.05rem; }
    .countdown-card small { font-size: .54rem; letter-spacing: .08em; }
    .person-card--groom { margin-right: 9%; }
    .person-card--bride { margin-left: 9%; }
    .event-scene { height: 330px; }
    .story-note { grid-template-columns: 1fr; }
    .story-note figure { aspect-ratio: 16/10; }
    .gallery-masonry { grid-auto-rows: 68px; }
    .album-collage { min-height: 610px; }
    .album-photo { padding: 6px 6px 28px; }
    .album-photo span { bottom: 7px; font-size: .72rem; }
    .album-photo--1 { top: 0; left: 2%; width: 45%; height: 178px; }
    .album-photo--2 { top: 20px; left: auto; right: 2%; width: 45%; height: 178px; }
    .album-photo--3 { top: 180px; left: 6%; width: 41%; height: 170px; }
    .album-photo--4 { top: 190px; right: 4%; width: 43%; height: 176px; }
    .album-photo--5 { top: 350px; left: 2%; width: 45%; height: 170px; }
    .album-photo--6 { top: 356px; right: 2%; width: 45%; height: 170px; }
    .album-photo--7 { bottom: 0; left: 8%; width: 41%; height: 150px; }
    .album-photo--8 { bottom: 4px; right: 5%; width: 42%; height: 155px; }
    .field-row { grid-template-columns: 1fr; }
    .bottom-menu { grid-auto-columns: minmax(52px,1fr); }
    .menu-item span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 900px) and (max-height: 820px) {
    .opening-cover__content { padding: 26px 0 28px; }
    .opening-cover__guest { padding: 9px 18px; }
    .opening-cover__identity h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
    .opening-cover__identity p { margin-top: 12px; line-height: 1.55; }
    .opening-cover__identity .soft-btn { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
