@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --theme-gold: #bd8610;
    --theme-gold-2: #d8ad52;
    --theme-gold-soft: #ead4a5;
    --theme-ink: #332b26;
    --theme-muted: #7c726c;
    --theme-cream: #f8f1e7;
    --theme-paper: #fffdf9;
    --theme-sand: #efe2cf;
    --theme-sage: #7b8068;
    --theme-line: rgba(189, 134, 16, .22);
    --theme-shadow: 0 24px 70px rgba(89, 62, 27, .12);
    --theme-shadow-soft: 0 14px 40px rgba(89, 62, 27, .08);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Montserrat', Arial, sans-serif;
    --section-space: clamp(78px, 8vw, 132px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--theme-ink);
    background: var(--theme-paper);
    overflow-x: hidden;
    padding-bottom: 86px;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.theme-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    position: relative;
    z-index: 2;
}
.narrow-container { width: min(900px, calc(100% - 40px)); }
.theme-section { position: relative; overflow: hidden; padding: var(--section-space) 0; }

.theme-section::before,
.theme-section::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    background: url('assets/images/jasmine-corner.svg') center/contain no-repeat;
    opacity: .12;
    pointer-events: none;
    z-index: 0;
}
.theme-section::before { top: 12px; left: -20px; }
.theme-section::after { right: -20px; bottom: 12px; transform: rotate(180deg); }

.theme-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.theme-eyebrow::before,
.theme-eyebrow::after { content: '✦'; font-size: .52rem; opacity: .7; }
.theme-eyebrow-light { color: rgba(255, 247, 228, .95); }

.section-heading {
    max-width: 820px;
    margin: 0 auto 46px;
    text-align: center;
}
.section-heading h2,
.closing-content h2 {
    margin: 12px 0 10px;
    font-family: var(--font-display);
    color: var(--theme-gold);
    font-size: clamp(2rem, 4.3vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .01em;
}
.section-heading p,
    max-width: 720px;
    margin: 14px auto 0;
    color: var(--theme-muted);
    line-height: 1.9;
    font-size: .97rem;
}
.compact-heading { margin-bottom: 32px; }
.section-siger { width: 230px; margin: 10px auto -8px; display: block; opacity: .95; }

.theme-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(210px, 72%);
    margin: 14px auto 0;
    color: var(--theme-gold-2);
}
.theme-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--theme-gold-soft), transparent); }
.theme-divider i { font-style: normal; font-size: .78rem; }

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.theme-btn:hover { transform: translateY(-2px); }
.theme-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #b47b08, #d6a42f);
    box-shadow: 0 12px 28px rgba(166, 112, 0, .22);
}
.theme-btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(166, 112, 0, .28); }
.theme-btn-outline { color: var(--theme-gold); border-color: rgba(189,134,16,.4); background: rgba(255,255,255,.82); }
.theme-btn-light { color: var(--theme-ink); background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.65); }
.theme-btn-small { min-height: 42px; padding: 9px 17px; font-size: .7rem; }
.theme-btn-block { width: 100%; border-radius: 14px; }

/* Opening cover */
#cover {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(41,29,19,.72), rgba(41,29,19,.35)),
        var(--cover-bg-image) center/cover no-repeat;
    transition: transform .85s cubic-bezier(.77,0,.175,1), opacity .75s ease;
}
#cover::before,
#cover::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: url('assets/images/jasmine-corner.svg') center/contain no-repeat;
    opacity: .52;
    pointer-events: none;
}
#cover::before { top: -38px; left: -28px; }
#cover::after { right: -28px; bottom: -38px; transform: rotate(180deg); }
#cover.open { transform: translateY(-104%); opacity: 0; pointer-events: none; }
.cover-frame { position:absolute; inset:18px; border:1px solid rgba(238,211,158,.64); border-radius:28px; pointer-events:none; }
.cover-panel {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    padding: 42px 38px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 32px;
    background: rgba(44,31,21,.25);
    box-shadow: 0 28px 80px rgba(0,0,0,.24);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}
.cover-siger { width: 190px; filter: brightness(1.55) saturate(.75); margin: 10px auto 2px; }
.cover-panel h1 {
    margin: 10px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 7vw, 4.4rem);
    font-weight: 600;
    line-height: 1.08;
    text-shadow: 0 8px 26px rgba(0,0,0,.18);
}
.cover-panel h1 span { display: block; color: #f0cd86; font-size: .78em; margin: .1em 0; }
.cover-date { font-family: var(--font-display); letter-spacing: .16em; font-size: .85rem; text-transform: uppercase; color: #f7e3b9; }
.cover-copy { max-width: 500px; margin: 16px auto 20px; line-height: 1.75; color: rgba(255,255,255,.88); font-size: .88rem; }
.cover-guest { display: inline-flex; flex-direction: column; gap: 3px; padding: 10px 20px; margin-bottom: 18px; border-radius: 16px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); }
.cover-guest span { font-size: .7rem; color: rgba(255,255,255,.72); }
.cover-guest strong { font-family: var(--font-display); font-size: 1rem; }

/* Hero */
.hero-section {
    min-height: min(790px, 92vh);
    display: flex;
    align-items: center;
    padding-top: 84px;
    background:
        radial-gradient(circle at 20% 18%, rgba(246,221,170,.48), transparent 26%),
        linear-gradient(120deg, #fbf7f0 0%, #f4e8d5 58%, #efe0c8 100%);
}
.hero-section::before { width: 280px; height: 280px; opacity: .28; top: -30px; left: -45px; }
.hero-section::after { width: 300px; height: 300px; opacity: .24; bottom: -35px; right: -40px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 62px; }
.hero-copy { padding: 38px 0 50px; }
.hero-title {
    margin: 18px 0 14px;
    font-family: var(--font-display);
    color: var(--theme-gold);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    line-height: 1.03;
    font-weight: 600;
    letter-spacing: -.03em;
}
.hero-title span { display: block; color: var(--theme-gold-2); font-size: .72em; margin: .1em 0; }
.hero-copy .theme-divider { margin-left: 0; width: 190px; }
.hero-date { margin: 18px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8d6d33; }
.hero-lead { max-width: 510px; color: var(--theme-muted); line-height: 1.85; margin: 0 0 24px; font-size: .92rem; }
.hero-media { position: relative; padding: 28px 20px 44px 34px; }
.hero-photo-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 52% 48% 18% 18% / 28% 30% 18% 18%;
    border: 6px solid rgba(255,255,255,.78);
    box-shadow: var(--theme-shadow);
}
.hero-photo-frame::before { content:''; position:absolute; inset:12px; border:1px solid rgba(240,210,151,.62); border-radius: inherit; z-index:1; pointer-events:none; }
.hero-photo-frame img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-media::before {
    content:'';
    position:absolute;
    width:210px;
    height:210px;
    right:-28px;
    top:-24px;
    background:url('assets/images/gold-pattern.svg') center/contain no-repeat;
    opacity:.42;
}
.hero-badge {
    position:absolute;
    left:0;
    bottom:15px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:var(--theme-gold);
    border:1px solid var(--theme-line);
    box-shadow:var(--theme-shadow-soft);
    font-size:.73rem;
    font-weight:700;
}
.section-wave {
    position:absolute;
    left:-4%;
    right:-4%;
    height:88px;
    background:var(--theme-paper);
    border-radius:50% 50% 0 0 / 70% 70% 0 0;
    z-index:1;
}
.section-wave-bottom { bottom:-52px; }

/* Greeting */
.greeting-section { background: var(--theme-paper); padding-top: calc(var(--section-space) + 10px); }
.greeting-section::before { opacity:.2; top:25px; }
.greeting-section::after { opacity:.2; bottom:10px; }
.greeting-section .section-heading {
    position:relative;
    padding:48px 52px 44px;
    border-radius:36px;
    background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(250,244,235,.72));
    border:1px solid rgba(212,165,116,.2);
    box-shadow:var(--theme-shadow-soft);
}
.greeting-section .section-heading::before,
.greeting-section .section-heading::after {
    content:'';
    position:absolute;
    width:110px;
    height:110px;
    background:url('assets/images/corner-ornament.svg') center/contain no-repeat;
    opacity:.2;
}
.greeting-section .section-heading::before { top:12px; left:12px; }
.greeting-section .section-heading::after { right:12px; bottom:12px; transform:rotate(180deg); }
.sundanese-note { display:inline-block; margin-top:18px; padding:8px 16px; border-radius:999px; background:#f6ead7; border:1px solid var(--theme-line); color:#9b711f; font-size:.78rem; font-weight:600; }

/* Couple */
.couple-section {
    background:
        linear-gradient(180deg, rgba(248,241,231,.92), rgba(247,238,224,.88)),
        url('assets/images/cover-demo.svg') center 72%/cover no-repeat;
}
.couple-section::before,
.couple-section::after { opacity:.28; }
.section-landscape { position:absolute; inset:auto 0 0; height:46%; background:linear-gradient(180deg, transparent, rgba(232,214,184,.32)); pointer-events:none; }
.couple-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);
    gap:28px;
    align-items:center;
    max-width:1040px;
    margin:0 auto;
}
.couple-profile { text-align:center; padding:24px 22px 30px; border-radius:34px; background:rgba(255,253,249,.6); border:1px solid rgba(212,165,116,.15); backdrop-filter:blur(5px); }
.couple-role { display:inline-flex; padding:7px 14px; margin-bottom:14px; border-radius:999px; background:rgba(255,255,255,.82); border:1px solid var(--theme-line); color:var(--theme-gold); font-size:.67rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.portrait-shell { width:min(290px, 90%); margin:0 auto 24px; position:relative; }
.portrait-arch {
    aspect-ratio: .82;
    overflow:hidden;
    border-radius:48% 48% 14% 14% / 34% 34% 12% 12%;
    border:4px solid #fff;
    outline:2px solid rgba(194,141,26,.48);
    outline-offset:6px;
    background:#f4eadc;
    box-shadow:0 22px 48px rgba(91,66,30,.16);
}
.portrait-arch img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.portrait-shell::before { content:''; position:absolute; inset:-18px -26px auto auto; width:100px; height:100px; background:url('assets/images/gold-pattern.svg') center/contain no-repeat; opacity:.38; z-index:-1; }
.portrait-flower { position:absolute; width:118px; height:118px; background:url('assets/images/jasmine-corner.svg') center/contain no-repeat; bottom:-22px; opacity:.86; }
.portrait-flower-left { left:-38px; transform:rotate(-18deg); }
.portrait-flower-right { right:-38px; transform:scaleX(-1) rotate(-18deg); }
.couple-profile h3 { margin:0 0 10px; font-family:var(--font-display); font-size:clamp(1.65rem, 2.8vw, 2.4rem); color:var(--theme-gold); }
.couple-profile p { margin:0 auto 15px; color:var(--theme-muted); line-height:1.75; font-size:.86rem; }
.couple-profile p strong { color:#65584f; font-weight:600; }
.social-pill { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; text-decoration:none; color:var(--theme-gold); background:rgba(255,255,255,.78); border:1px solid var(--theme-line); font-size:.74rem; font-weight:600; }
.couple-emblem {
    width:116px;
    height:116px;
    margin:auto;
    display:grid;
    place-items:center;
    position:relative;
    color:var(--theme-gold);
    font-family:var(--font-display);
    font-size:3.4rem;
    background:rgba(255,253,248,.9);
    border:1px solid rgba(201,149,42,.32);
    transform:rotate(45deg);
    border-radius:28px;
    box-shadow:var(--theme-shadow-soft);
}
.couple-emblem::before { content:''; position:absolute; inset:10px; border:1px solid rgba(201,149,42,.22); border-radius:21px; }
.couple-emblem span { transform:rotate(-45deg); }

/* Countdown */
.countdown-section {
    background:
        linear-gradient(180deg, rgba(255,253,249,.86), rgba(245,235,219,.88)),
        url('assets/images/cover-demo.svg') center 50%/cover no-repeat;
    padding-top:90px;
    padding-bottom:100px;
}
.countdown-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; max-width:780px; margin:0 auto; }
.countdown-card { position:relative; min-height:150px; display:grid; place-items:center; align-content:center; gap:5px; border-radius:22px; background:rgba(255,253,249,.9); border:1px solid var(--theme-line); box-shadow:var(--theme-shadow-soft); overflow:hidden; }
.countdown-card::after { content:''; position:absolute; right:-18px; top:-18px; width:55px; height:55px; border:1px solid rgba(189,134,16,.18); border-radius:50%; }
.countdown-card span { font-family:var(--font-display); color:var(--theme-gold); font-size:2.55rem; font-weight:700; line-height:1; }
.countdown-card small { color:#6d6158; font-size:.72rem; font-weight:600; }

/* Events */
.event-section { background:linear-gradient(180deg,#f8f0e5,#f4e8d7); }
.event-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; }
.event-card { position:relative; padding:34px 30px 28px; border-radius:28px; background:linear-gradient(180deg,#fffefd,#fbf6ee); border:1px solid rgba(192,139,23,.22); box-shadow:var(--theme-shadow); overflow:hidden; }
.event-card::before { content:''; position:absolute; width:150px; height:150px; left:-44px; bottom:-44px; background:url('assets/images/jasmine-corner.svg') center/contain no-repeat; opacity:.25; }
.event-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.event-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:18px; color:#fff; font-size:1.4rem; background:linear-gradient(135deg,#b47b08,#d9ab43); box-shadow:0 12px 24px rgba(166,112,0,.16); }
.event-number { color:#d5b065; font-family:var(--font-display); font-size:1rem; }
.event-card h3 { margin:0 0 20px; font-family:var(--font-display); color:var(--theme-gold); font-size:1.8rem; }
.event-meta { display:flex; flex-wrap:wrap; gap:10px 18px; margin-bottom:18px; color:#6d625a; font-size:.83rem; }
.event-meta span { display:inline-flex; align-items:center; gap:7px; }
.event-meta i { color:var(--theme-gold); }
.event-place { border-top:1px solid rgba(189,134,16,.14); padding-top:16px; margin-bottom:18px; }
.event-place strong { display:block; margin-bottom:4px; font-size:1rem; }
.event-place p { margin:0; color:var(--theme-muted); line-height:1.7; font-size:.79rem; }
.event-map { margin-top:20px; border-radius:20px; overflow:hidden; border:1px solid rgba(189,134,16,.15); aspect-ratio:16/8.3; }
.event-map iframe { width:100%!important; height:100%!important; min-height:0!important; border:0; display:block; }

/* Story */
.story-section { background:#fffdf9; }
.story-letter { max-width:800px; margin:0 auto; padding:42px; border-radius:30px; background:#fbf5ec; border:1px solid var(--theme-line); text-align:center; box-shadow:var(--theme-shadow-soft); }
.story-letter i { color:var(--theme-gold-2); font-size:1.4rem; }
.story-letter p { color:var(--theme-muted); line-height:1.9; }
.story-letter strong { font-family:var(--font-display); color:var(--theme-gold); }

/* Gallery */
.gallery-section { background:linear-gradient(180deg,#f7efe4,#fbf8f2); }
.gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:180px; gap:12px; }
.gallery-card { position:relative; padding:0; border:0; border-radius:18px; overflow:hidden; cursor:pointer; background:#eee; box-shadow:0 10px 24px rgba(79,58,28,.08); }
.gallery-featured { grid-column:span 2; grid-row:span 2; }
.gallery-card img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease; }
.gallery-card:hover img { transform:scale(1.045); }
.gallery-card > span { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:1.2rem; background:rgba(42,31,21,.18); opacity:0; transition:opacity .25s; }
.gallery-card:hover > span { opacity:1; }

/* Guest album */
.guest-album-section {
    background:
        linear-gradient(120deg, rgba(255,253,248,.96), rgba(246,235,218,.93)),
        url('assets/images/cover-demo.svg') center/cover no-repeat;
}
.exclusive-badge { display:inline-flex; align-items:center; gap:7px; margin:18px 0 0; padding:8px 12px; border-radius:999px; background:#fff5dc; color:#9e741d; border:1px solid rgba(189,134,16,.2); font-size:.7rem; font-weight:700; }
.guest-album-stats { display:flex; gap:12px; margin:20px 0 22px; }
.guest-album-stats > span { min-width:125px; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.8); border:1px solid var(--theme-line); box-shadow:0 8px 20px rgba(78,57,28,.05); }
.guest-album-stats strong { display:block; font-family:var(--font-display); color:var(--theme-gold); font-size:1.35rem; }
.guest-album-stats small { color:var(--theme-muted); font-size:.65rem; }

/* Gift */
.gift-section { background:#fffdf9; }
.gift-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; max-width:900px; margin:0 auto; }
.gift-card { padding:28px; border-radius:24px; background:linear-gradient(160deg,#fff,#f9f0e4); border:1px solid rgba(189,134,16,.22); box-shadow:var(--theme-shadow-soft); text-align:left; }
.gift-card-head { display:flex; align-items:center; justify-content:space-between; color:#d5b065; font-family:var(--font-display); }
.gift-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:16px; background:#fff6e5; color:var(--theme-gold); border:1px solid var(--theme-line); }
.gift-card h3 { margin:18px 0 12px; font-family:var(--font-display); color:var(--theme-gold); font-size:1.25rem; }
.gift-card p { margin:4px 0; color:var(--theme-muted); font-size:.77rem; }
.gift-account { display:block; margin:2px 0 8px; color:#4d4037; font-size:1.08rem; letter-spacing:.06em; word-break:break-all; }
.gift-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }

/* RSVP */
.rsvp-section { background:linear-gradient(180deg,#f7efe4,#f4e6d3); }
.rsvp-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:start; }
.rsvp-card,
.wishes-card { padding:28px; border-radius:28px; background:rgba(255,253,249,.94); border:1px solid rgba(189,134,16,.18); box-shadow:var(--theme-shadow-soft); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field-wide { grid-column:span 2; }
.field-full { grid-column:1 / -1; }
.field span { font-size:.73rem; font-weight:700; color:#50463f; }
.field input,
.field select,
.field textarea { width:100%; border:1px solid rgba(110,91,75,.17); border-radius:13px; background:#fff; color:#3d342e; padding:12px 13px; outline:none; transition:border .2s, box-shadow .2s; }
.field textarea { resize:vertical; min-height:118px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color:rgba(189,134,16,.58); box-shadow:0 0 0 4px rgba(189,134,16,.08); }
.rsvp-card .theme-btn { margin-top:18px; }
.wishes-head { display:flex; gap:14px; align-items:center; margin-bottom:16px; }
.wishes-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:15px; background:#fff5df; color:var(--theme-gold); }
.wishes-head h3 { margin:3px 0 0; font-family:var(--font-display); color:var(--theme-gold); font-size:1.05rem; }
.wishes-head .theme-eyebrow { font-size:.57rem; }
.wishes-list { max-height:430px; overflow:auto; padding-right:6px; }
.guestbook-item { display:grid; grid-template-columns:42px 1fr; gap:11px; padding:14px 0; border-bottom:1px solid rgba(110,91,75,.1); }
.guestbook-item:last-child { border-bottom:0; }
.wish-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#d7a43a,#f2d89e); color:#fff; font-family:var(--font-display); font-weight:700; }
.wish-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.wish-meta strong { color:#a77717; font-size:.8rem; }
.wish-meta time { color:#9e948d; font-size:.62rem; white-space:nowrap; }
.wish-body p { margin:5px 0 0; color:#746a63; font-size:.76rem; line-height:1.6; }
.empty-state { color:var(--theme-muted); text-align:center; padding:24px; }

/* Closing */
.closing-section {
    position:relative;
    min-height:500px;
    display:grid;
    place-items:center;
    padding:110px 0 130px;
    overflow:hidden;
    background:
        linear-gradient(180deg, rgba(252,248,241,.4), rgba(226,207,177,.38)),
        url('assets/images/cover-demo.svg') center 72%/cover no-repeat;
}
.closing-section::before,
.closing-section::after { content:''; position:absolute; width:260px; height:260px; background:url('assets/images/jasmine-corner.svg') center/contain no-repeat; opacity:.34; }
.closing-section::before { left:-30px; bottom:-28px; }
.closing-section::after { right:-30px; bottom:-28px; transform:scaleX(-1); }
.closing-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,253,248,.88),rgba(255,253,248,.42)); }
.closing-content { text-align:center; max-width:780px; }
.closing-content h2 span { color:var(--theme-gold-2); }
.closing-content > p { color:#675d56; line-height:1.85; font-size:.9rem; }
.closing-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:24px 0 30px; }
.watermark { display:block; color:#837971; font-size:.7rem; }
.watermark i { color:#db7d82; }
.watermark a { color:var(--theme-gold); text-decoration:none; font-weight:700; }

/* Bottom navigation */
.bottom-menu {
    position:fixed;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    z-index:9990;
    width:min(560px, calc(100% - 28px));
    display:flex;
    align-items:center;
    justify-content:space-around;
    padding:9px 10px;
    border-radius:28px;
    background:rgba(255,253,250,.9);
    border:1px solid rgba(189,134,16,.22);
    box-shadow:0 18px 48px rgba(76,55,24,.15);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.menu-item { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 4px; border-radius:16px; color:#81776f; text-decoration:none; font-size:.63rem; font-weight:500; transition:.2s; }
.menu-item i { font-size:1rem; }
.menu-item.active,
.menu-item:hover { color:var(--theme-gold); background:rgba(238,218,177,.24); }

.music-player { position:fixed; right:18px; bottom:92px; z-index:9990; width:46px; height:46px; border-radius:50%; border:1px solid rgba(189,134,16,.35); background:rgba(255,253,249,.94); color:var(--theme-gold); box-shadow:var(--theme-shadow-soft); cursor:pointer; animation:musicSpin 7s linear infinite; }
.music-player.paused { animation:none; color:#8f877f; }
@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); }

/* Modal */
.theme-modal { border:1px solid var(--theme-line); border-radius:22px; overflow:hidden; }
.theme-modal .modal-title { font-family:var(--font-display); color:var(--theme-gold); }
.lightbox-close { position:absolute; top:8px; right:8px; z-index:3; }
.lightbox-img { max-height:86vh; border-radius:18px; box-shadow:0 28px 80px rgba(0,0,0,.35); }

/* Mobile */
@media (max-width: 991.98px) {
    .theme-container,
    .narrow-container { width:min(100% - 30px, 760px); }
    .hero-grid { grid-template-columns:1fr; gap:24px; }
    .hero-section { min-height:auto; padding-top:72px; }
    .hero-copy { text-align:center; padding:20px 0 8px; }
    .hero-copy .theme-divider { margin-inline:auto; }
    .hero-lead { margin-inline:auto; }
    .hero-media { width:min(650px,100%); margin:0 auto; padding:18px 8px 36px; }
    .couple-grid { grid-template-columns:1fr 100px 1fr; gap:16px; }
    .couple-profile { padding-inline:14px; }
    .event-grid,
    .gift-grid,
    .rsvp-grid { grid-template-columns:1fr; }
    .guest-album-stats { justify-content:center; }
    .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:155px; }
}

@media (max-width: 767.98px) {
    :root { --section-space: 72px; }
    body { padding-bottom:82px; }
    .theme-container,
    .narrow-container { width:min(100% - 24px, 620px); }
    .theme-section::before,
    .theme-section::after { width:118px; height:118px; opacity:.1; }
    .section-heading { margin-bottom:32px; }
    .section-heading h2,
    .closing-content h2 { font-size:clamp(1.65rem, 8vw, 2.2rem); }
    .section-heading p,
    .theme-eyebrow { font-size:.6rem; letter-spacing:.16em; }
    .theme-divider { width:160px; }
    .theme-btn { min-height:44px; padding:10px 17px; font-size:.7rem; }

    #cover { padding:14px; }
    #cover::before,
    #cover::after { width:180px; height:180px; opacity:.38; }
    .cover-frame { inset:10px; border-radius:20px; }
    .cover-panel { padding:30px 18px; border-radius:24px; }
    .cover-siger { width:150px; }
    .cover-panel h1 { font-size:clamp(1.9rem, 11vw, 2.8rem); }
    .cover-copy { font-size:.8rem; line-height:1.65; }

    .hero-section { padding-top:58px; padding-bottom:88px; }
    .hero-title { font-size:clamp(2.45rem, 13vw, 3.45rem); }
    .hero-date { font-size:.67rem; letter-spacing:.1em; }
    .hero-lead { font-size:.83rem; line-height:1.7; }
    .hero-media { padding-bottom:28px; }
    .hero-photo-frame { border-width:4px; border-radius:42% 42% 16% 16% / 28% 28% 14% 14%; }
    .hero-badge { bottom:5px; left:10px; padding:8px 12px; font-size:.64rem; }
    .hero-media::before { width:130px; height:130px; right:-8px; top:-8px; }
    .section-wave { height:58px; bottom:-36px; }

    .greeting-section .section-heading { padding:34px 20px 30px; border-radius:26px; }
    .greeting-section .section-heading::before,
    .greeting-section .section-heading::after { width:72px; height:72px; }
    .section-siger { width:180px; }
    .sundanese-note { font-size:.69rem; padding:7px 12px; }

    .couple-grid { grid-template-columns:1fr; gap:18px; }
    .couple-profile { width:100%; max-width:420px; margin:0 auto; border-radius:26px; padding:22px 16px 26px; }
    .portrait-shell { width:min(238px,78vw); }
    .portrait-flower { width:90px; height:90px; }
    .couple-emblem { width:78px; height:78px; font-size:2.25rem; border-radius:20px; }
    .couple-emblem::before { border-radius:14px; }
    .couple-profile h3 { font-size:1.7rem; }
    .couple-profile p { font-size:.8rem; }

    .countdown-section { padding-block:72px; }
    .countdown-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .countdown-card { min-height:104px; border-radius:18px; }
    .countdown-card span { font-size:2rem; }

    .event-grid { gap:16px; }
    .event-card { padding:26px 20px 22px; border-radius:24px; }
    .event-card h3 { font-size:1.5rem; }
    .event-meta { display:grid; gap:9px; }
    .event-map { aspect-ratio:16/10; }

    .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:135px; gap:8px; }
    .gallery-featured { grid-column:span 2; grid-row:span 2; }
    .gallery-card { border-radius:14px; }

    .guest-album-stats { gap:8px; }
    .guest-album-stats > span { min-width:0; flex:1; padding:10px; }

    .gift-grid { gap:14px; }
    .gift-card { padding:22px; border-radius:20px; }

    .rsvp-card,
    .wishes-card { padding:20px; border-radius:22px; }
    .form-grid { grid-template-columns:1fr; gap:12px; }
    .field-wide,
    .field-full { grid-column:auto; }
    .wish-meta { flex-direction:column; gap:2px; }
    .wish-meta time { white-space:normal; }
    .guestbook-item { grid-template-columns:36px 1fr; }
    .wish-avatar { width:36px; height:36px; }

    .closing-section { min-height:430px; padding:86px 0 110px; }
    .closing-section::before,
    .closing-section::after { width:150px; height:150px; }
    .closing-content > p { font-size:.82rem; }

    .bottom-menu { bottom:12px; width:calc(100% - 20px); max-width:390px; padding:7px 6px; border-radius:22px; }
    .menu-item { padding:5px 2px; font-size:.56rem; }
    .menu-item i { font-size:.92rem; }
    .music-player { right:12px; bottom:76px; width:42px; height:42px; }
}

@media (max-width: 380px) {
    .theme-container,
    .narrow-container { width:calc(100% - 18px); }
    .hero-title { font-size:2.25rem; }
    .countdown-card { min-height:96px; }
    .menu-item span { display:none; }
    .menu-item { min-height:38px; justify-content:center; }
    .menu-item i { font-size:1.05rem; }
}


:root {
    --cover-panel-bg: rgba(78, 50, 27, 0.32);
    --cover-panel-border: rgba(255, 245, 229, 0.22);
}

body.has-desktop-parallax .parallax-active {
    will-change: transform;
    transition: transform .08s linear;
}

.cover-experience {
    overflow: hidden;
}

.cover-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 16%, rgba(255,255,255,.18), transparent 26%),
        linear-gradient(180deg, rgba(29, 18, 9, 0.28), rgba(29, 18, 9, 0.44));
    z-index: 0;
}

.cover-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 44px, 1320px);
}

.cover-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 560px);
    align-items: center;
    gap: 56px;
}

.cover-floral {
    position: absolute;
    z-index: 1;
    opacity: .78;
    pointer-events: none;
    width: 260px;
    height: 260px;
    background: url('assets/images/jasmine-corner.svg') center/contain no-repeat;
}

.cover-floral-top { top: -14px; left: -10px; }
.cover-floral-bottom { right: -12px; bottom: -14px; transform: rotate(180deg); }

.cover-preview-card {
    position: relative;
    justify-self: start;
    width: min(100%, 620px);
    padding: 22px;
    border-radius: 38px;
    background: rgba(255, 247, 236, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 245, 229, 0.18);
    box-shadow: 0 26px 65px rgba(34, 21, 10, 0.22);
}

.cover-preview-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255, 244, 226, 0.26);
    pointer-events: none;
}

.cover-preview-photo {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 13 / 16;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.cover-preview-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 15, 7, 0.06), rgba(27, 15, 7, 0.26));
}

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

.cover-preview-badge {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,252,247,.92);
    color: var(--theme-gold);
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37,24,12,.12);
}

.cover-panel {
    justify-self: end;
    max-width: 560px;
    margin: 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(66, 43, 23, 0.38), rgba(82, 53, 29, 0.48));
    border: 1px solid var(--cover-panel-border);
    box-shadow: 0 34px 85px rgba(15, 9, 4, 0.20);
}

.cover-panel h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.8rem);
    line-height: .98;
    text-wrap: balance;
}

.cover-panel .theme-eyebrow,
.cover-date,
.cover-copy,
.cover-guest span,
.cover-guest strong {
    text-shadow: 0 2px 20px rgba(24, 12, 6, 0.30);
}

.cover-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.cover-actions .theme-btn {
    min-width: 220px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 120px;
}

.hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 80px;
    align-items: center;
}

.hero-copy {
    position: relative;
    padding: 22px 0 28px;
}

.hero-copy::before {
    content: '';
    position: absolute;
    inset: -28px -20px -18px -28px;
    border-radius: 42px;
    background: radial-gradient(circle at top left, rgba(255,255,255,.58), transparent 58%);
    z-index: -1;
    opacity: .85;
}

.hero-title {
    font-size: clamp(4rem, 7.2vw, 6.2rem);
    line-height: .92;
    margin-bottom: 18px;
    text-wrap: balance;
}

.hero-title span {
    display: inline-block;
    color: var(--theme-gold-2);
    margin-inline: .14em;
}

.hero-lead {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.88;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(189,134,16,.14);
    color: #7d6a51;
    font-size: .78rem;
    font-weight: 600;
}

.hero-media {
    position: relative;
    padding: 18px 18px 44px 28px;
}

.hero-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 40% 40% 16% 16% / 27% 27% 14% 14%;
    border: 6px solid rgba(255,255,255,.82);
    box-shadow: 0 26px 60px rgba(116, 88, 48, 0.18);
    background: #fff;
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212,165,116,.42);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.hero-photo-frame img {
    width: 100%;
    aspect-ratio: 1.08 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-mini-portraits {
    position: absolute;
    right: 34px;
    bottom: -8px;
    display: flex;
    gap: 10px;
}

.hero-mini-portraits span {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 26px rgba(107,79,40,.14);
}

.hero-mini-portraits img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.portrait-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: saturate(1.02) contrast(1.03);
}

.portrait-shell {
    box-shadow: 0 20px 48px rgba(107,79,40,.12);
}

.story-section {
    overflow: hidden;
}

.story-timeline {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0 0;
}

.story-line {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(189,134,16,.34) 8%, rgba(189,134,16,.55) 50%, rgba(189,134,16,.34) 92%, transparent);
}

.story-moment {
    position: relative;
    display: flex;
    margin-bottom: 26px;
    min-height: 170px;
}

.story-left { justify-content: flex-start; padding-right: calc(50% + 44px); }
.story-right { justify-content: flex-end; padding-left: calc(50% + 44px); }

.story-node {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fff, #faf3e7);
    border: 1px solid rgba(189,134,16,.28);
    color: var(--theme-gold);
    box-shadow: 0 16px 26px rgba(110,91,75,.11);
    z-index: 2;
}

.story-moment-card {
    position: relative;
    width: min(100%, 420px);
    padding: 26px 26px 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,245,236,.98));
    border: 1px solid rgba(189,134,16,.16);
    box-shadow: 0 24px 48px rgba(112, 85, 48, 0.08);
}

.story-left .story-moment-card::after,
.story-right .story-moment-card::after {
    content: '';
    position: absolute;
    top: 62px;
    width: 16px;
    height: 16px;
    background: inherit;
    border-top: 1px solid rgba(189,134,16,.16);
    border-right: 1px solid rgba(189,134,16,.16);
}

.story-left .story-moment-card::after { right: -8px; transform: rotate(45deg); }
.story-right .story-moment-card::after { left: -8px; transform: rotate(-135deg); }

.story-moment-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(241, 226, 194, 0.72);
    border: 1px solid rgba(189,134,16,.18);
    color: #bf8a1a;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.story-moment-card h3 {
    margin-bottom: 12px;
}

.story-moment-card p {
    margin: 0;
    color: #746960;
    line-height: 1.85;
}

.story-letter {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 38px 36px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(251,245,236,.98));
    border: 1px solid rgba(189,134,16,.16);
    box-shadow: 0 26px 50px rgba(112,85,48,.08);
}

.story-letter-mark {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,#c69220,#e7c47b);
    color: #fff;
    box-shadow: 0 16px 28px rgba(198,146,32,.22);
}

.gallery-section .section-heading { margin-bottom: 28px; }
.gallery-grid {
    gap: 14px;
    grid-auto-rows: 185px;
}
.gallery-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 18px 40px rgba(101, 75, 41, 0.10);
}
.gallery-card img {
    transition: transform .45s ease, filter .45s ease;
}
.gallery-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.gallery-card span {
    opacity: 0;
    transition: .25s ease;
}
.gallery-card:hover span { opacity: 1; }

.guest-album-shell {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 42px 34px;
    text-align: center;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,241,231,.98));
    border: 1px solid rgba(189,134,16,.16);
    box-shadow: 0 28px 60px rgba(101, 75, 41, 0.10);
    overflow: hidden;
}

.guest-album-shell::before,
.guest-album-shell::after {
    content: '';
    position: absolute;
    width: 86px;
    height: 86px;
    background: url('assets/images/jasmine-corner.svg') center/contain no-repeat;
    opacity: .25;
}

.guest-album-shell::before { top: 16px; left: 16px; }
.guest-album-shell::after { right: 16px; bottom: 16px; transform: rotate(180deg); }

.guest-album-stats-centered {
    justify-content: center;
    margin-bottom: 22px;
}

.album-preview-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.album-preview-card {
    position: relative;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f6efe4, #efe6d7);
    border: 1px solid rgba(189,134,16,.10);
    box-shadow: 0 12px 24px rgba(104, 78, 44, 0.10);
    text-align: center;
    color: inherit;
    text-decoration: none;
}

button.album-preview-card { border: 1px solid rgba(189,134,16,.10); }

.album-preview-card::before {
    content: '';
    position: absolute;
    inset: 12px auto auto 12px;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at center, rgba(212,165,116,.72) 0 5px, transparent 6px), linear-gradient(45deg, rgba(212,165,116,.42), rgba(212,165,116,0));
    opacity: .75;
}

.album-preview-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(189,134,16,.18);
    margin-bottom: 10px;
}

.album-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.album-preview-card strong {
    display: block;
    font-family: var(--font-display);
    color: var(--theme-gold);
    font-size: .92rem;
    margin-bottom: 4px;
}

.album-preview-card small {
    display: block;
    color: #746960;
    font-size: .72rem;
}

.album-footnote {
    margin: 18px 0 0;
    color: var(--theme-gold);
    font-size: .8rem;
    font-weight: 600;
}

.gift-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.gift-intro-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #bc8612, #e4be72);
    color: #fffdf8;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(188, 134, 18, 0.24);
}

.gift-intro-card::before,
.gift-intro-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.gift-intro-card::before { width: 170px; height: 170px; right: -45px; top: -40px; }
.gift-intro-card::after { width: 120px; height: 120px; left: -25px; bottom: -28px; }

.gift-intro-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.gift-intro-card h3 {
    color: inherit;
    margin-bottom: 10px;
    font-size: 2rem;
}

.gift-intro-card p {
    color: rgba(255,255,255,.90);
    line-height: 1.84;
    margin: 0 0 18px;
}

.gift-intro-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gift-intro-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .76rem;
    font-weight: 600;
}

.gift-grid {
    align-content: start;
}

.gift-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(251,245,236,.98));
    border: 1px solid rgba(189,134,16,.16);
    box-shadow: 0 20px 42px rgba(112,85,48,.08);
}

.gift-card::after {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    right: -18px;
    top: -18px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(231,196,123,.24), rgba(231,196,123,0));
}

.gift-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9c8f82;
}

.gift-holder { margin-bottom: 18px; }

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

@media (min-width: 992px) {
    body.has-desktop-parallax .theme-section {
        background-position: center calc(50% + var(--section-shift, 0px));
    }
}

@media (max-width: 991.98px) {
    .cover-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 0 28px;
    }

    .cover-preview-card {
        width: min(100%, 500px);
        justify-self: center;
        order: 2;
    }

    .cover-panel {
        justify-self: center;
        order: 1;
        max-width: 620px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead,
    .hero-copy .theme-divider {
        margin-inline: auto;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .story-line {
        left: 28px;
        transform: none;
    }

    .story-moment,
    .story-left,
    .story-right {
        justify-content: flex-start;
        padding-left: 82px;
        padding-right: 0;
        min-height: 0;
    }

    .story-node {
        left: 28px;
        top: 28px;
        width: 48px;
        height: 48px;
    }

    .story-moment-card {
        width: 100%;
    }

    .story-left .story-moment-card::after,
    .story-right .story-moment-card::after {
        left: -8px;
        right: auto;
        transform: rotate(-135deg);
        top: 52px;
    }

    .album-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cover-inner {
        width: min(100% - 20px, 640px);
    }

    .cover-grid {
        min-height: auto;
        padding: 26px 0 24px;
        gap: 18px;
    }

    .cover-preview-card {
        padding: 14px;
        border-radius: 26px;
    }

    .cover-preview-card::before {
        inset: 10px;
        border-radius: 18px;
    }

    .cover-preview-photo {
        border-radius: 20px;
        aspect-ratio: 1 / 1.12;
    }

    .cover-preview-badge {
        left: 24px;
        right: 24px;
        bottom: 22px;
        justify-content: center;
        font-size: .7rem;
    }

    .cover-floral {
        width: 155px;
        height: 155px;
        opacity: .55;
    }

    .cover-panel {
        padding: 26px 16px;
        border-radius: 22px;
    }

    .cover-panel h1 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .cover-actions .theme-btn {
        min-width: 0;
        width: 100%;
    }

    .hero-section {
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 88px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 13vw, 4rem);
        line-height: .98;
    }

    .hero-copy::before {
        inset: -12px -10px -10px -10px;
        border-radius: 28px;
        opacity: .7;
    }

    .hero-cta-row {
        gap: 10px;
    }

    .hero-inline-note {
        font-size: .68rem;
        padding: 8px 12px;
    }

    .hero-media {
        padding: 10px 2px 30px;
    }

    .hero-photo-frame {
        border-width: 4px;
    }

    .hero-photo-frame img {
        aspect-ratio: 0.92 / 1;
    }

    .hero-mini-portraits {
        right: 16px;
        bottom: -2px;
        gap: 8px;
    }

    .hero-mini-portraits span {
        width: 62px;
        height: 62px;
    }

    .section-heading h2 {
        text-wrap: balance;
    }

    .portrait-arch img {
        object-position: center 18%;
    }

    .story-timeline {
        padding-top: 0;
    }

    .story-line {
        left: 23px;
    }

    .story-moment,
    .story-left,
    .story-right {
        padding-left: 66px;
        margin-bottom: 18px;
    }

    .story-node {
        left: 23px;
        top: 24px;
        width: 40px;
        height: 40px;
        font-size: .82rem;
    }

    .story-moment-card {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .story-moment-year {
        min-width: 60px;
        padding: 6px 12px;
        margin-bottom: 12px;
        font-size: .68rem;
    }

    .story-moment-card h3 { font-size: 1.1rem; }
    .story-moment-card p { font-size: .8rem; }

    .gallery-grid {
        gap: 10px;
        grid-auto-rows: 145px;
    }

    .guest-album-shell {
        padding: 30px 18px 24px;
        border-radius: 26px;
    }

    .guest-album-shell::before,
    .guest-album-shell::after {
        width: 64px;
        height: 64px;
        opacity: .18;
    }

    .album-preview-grid {
        gap: 10px;
    }

    .album-preview-card {
        padding: 10px;
        border-radius: 14px;
    }

    .album-preview-card strong {
        font-size: .8rem;
    }

    .album-preview-card small {
        font-size: .64rem;
    }

    .gift-intro-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .gift-intro-card h3 {
        font-size: 1.55rem;
    }

    .gift-grid {
        grid-template-columns: 1fr;
    }

    .gift-card {
        padding: 22px 18px;
    }
}

@media (max-width: 420px) {
    .album-preview-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cover-preview-badge {
        font-size: .66rem;
        gap: 6px;
        padding: 8px 10px;
    }
}

@media (min-width: 992px) and (max-width: 1500px), (min-width: 992px) and (max-height: 850px) {
    #cover { padding: 14px; }
    .cover-frame { inset: 10px; border-radius: 22px; }
    .cover-inner { width: min(100% - 24px, 1180px); }
    .cover-grid { grid-template-columns: 1fr; min-height: 100dvh; padding: 24px 0; gap: 0; }
    .cover-preview-card { display: none; }
    .cover-panel { justify-self: center; width: min(560px, 92vw); padding: 30px 34px; border-radius: 26px; }
    .cover-siger { width: 150px; margin-block: 4px 0; }
    .cover-panel h1 { font-size: clamp(2.5rem, 4.2vw, 3.8rem); margin: 6px 0; line-height: 1; }
    .cover-panel h1 span { margin: .04em 0; }
    .cover-date { font-size: .72rem; margin-bottom: 6px; }
    .cover-copy { max-width: 470px; margin: 10px auto 14px; font-size: .79rem; line-height: 1.62; }
    .cover-guest { padding: 8px 18px; margin-bottom: 12px; }
    .cover-actions { margin-top: 10px; }
    .cover-actions .theme-btn { min-height: 42px; padding: 9px 20px; }

    .hero-section { min-height: 100dvh; padding: 54px 0 84px; }
    .hero-grid { grid-template-columns: .92fr 1.08fr; gap: 42px; }
    .hero-copy { padding: 12px 0 22px; }
    .hero-title { font-size: clamp(3rem, 5vw, 4.6rem); }
    .hero-lead { font-size: .84rem; line-height: 1.7; }
    .hero-media { padding: 12px 12px 36px 20px; }
    .hero-photo-frame img { aspect-ratio: 1.18 / 1; }
    .hero-mini-portraits span { width: 68px; height: 68px; }

    .theme-section { --section-space: clamp(66px, 6vw, 94px); }
    .section-heading { margin-bottom: 34px; }
    .section-heading h2, .closing-content h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
    .couple-grid { grid-template-columns: 1fr 88px 1fr; gap: 20px; }
    .portrait-shell { width: min(245px, 88%); }
    .couple-profile { padding: 20px 16px 24px; }
    .countdown-grid { max-width: 720px; gap: 14px; }
    .event-grid { gap: 20px; }
    .gallery-grid { grid-auto-rows: 160px; }
    .bottom-menu { bottom: 10px; }
}

@media (max-width: 991.98px) {
    #cover { padding: 10px; overflow: auto; }
    .cover-inner { width: min(100% - 16px, 680px); }
    .cover-grid { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
    .cover-preview-card { display: none; }
    .cover-panel { order: initial; width: min(100%, 600px); margin: auto; }
    .hero-section { min-height: auto; }
}

@media (max-width: 767.98px) {
    #cover { min-height: 100dvh; }
    .cover-panel { padding: 24px 15px; }
    .cover-siger { width: 132px; margin: 3px auto 0; }
    .cover-panel h1 { font-size: clamp(2rem, 10.5vw, 2.9rem); line-height: 1.02; margin: 6px 0; }
    .cover-date { font-size: .66rem; letter-spacing: .12em; }
    .cover-copy { font-size: .76rem; line-height: 1.58; margin: 10px auto 12px; }
    .cover-guest { margin-bottom: 10px; padding: 7px 14px; }
    .cover-guest strong { font-size: .88rem; }
    .cover-actions { margin-top: 8px; }

    .hero-grid { gap: 22px; }
    .hero-title { font-size: clamp(2.45rem, 11vw, 3.45rem); }
    .hero-lead { font-size: .79rem; }
    .hero-inline-note { display: none; }
    .hero-photo-frame img { aspect-ratio: .95 / 1; object-position: center; }
    .hero-mini-portraits { display: none; }

    .theme-section { --section-space: 64px; }
    .section-heading { margin-bottom: 28px; }
    .section-heading h2, .closing-content h2 { font-size: clamp(1.55rem, 7vw, 2.05rem); }
    .section-heading p { font-size: .82rem; }
    .couple-profile { max-width: 390px; }
    .portrait-shell { width: min(220px, 72vw); }
    .portrait-arch { aspect-ratio: .82 / 1; }
    .countdown-card { min-height: 96px; }
    .event-card { padding: 23px 17px 20px; }
    .gallery-grid { grid-auto-rows: 128px; }
    .album-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rsvp-card, .wishes-card { padding: 18px; }
}

@media (max-width: 420px), (max-height: 680px) and (max-width: 767.98px) {
    #cover { padding: 6px; }
    .cover-frame { inset: 6px; border-radius: 16px; }
    .cover-floral { width: 105px; height: 105px; opacity: .42; }
    .cover-panel { padding: 18px 12px; border-radius: 18px; }
    .cover-panel .theme-eyebrow { font-size: .52rem; }
    .cover-siger { width: 105px; }
    .cover-panel h1 { font-size: clamp(1.75rem, 9.7vw, 2.35rem); }
    .cover-date { font-size: .59rem; }
    .cover-copy { font-size: .7rem; line-height: 1.5; margin: 7px auto 9px; }
    .cover-guest { padding: 6px 12px; margin-bottom: 7px; }
    .cover-guest span { font-size: .58rem; }
    .cover-guest strong { font-size: .8rem; }
    .cover-actions .theme-btn { min-height: 40px; padding: 8px 16px; font-size: .66rem; }
}

/* =========================================================
   Theme refinement v10 - clearer cover + balanced couple
   ========================================================= */

#cover .cover-grid {
    background: transparent !important;
}

#cover .cover-backdrop {
    background:
        radial-gradient(circle at 14% 16%, rgba(255,255,255,.10), transparent 28%),
        linear-gradient(180deg, rgba(29,18,9,.14), rgba(29,18,9,.25));
}

#cover .cover-preview-card {
    background: rgba(255,247,236,.045);
    border-color: rgba(255,245,229,.13);
    box-shadow: 0 24px 58px rgba(34,21,10,.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#cover .cover-panel {
    background: linear-gradient(180deg, rgba(55,34,17,.25), rgba(65,40,20,.31));
    border-color: rgba(255,245,229,.17);
    box-shadow: 0 30px 72px rgba(15,9,4,.14);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.couple-grid {
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    gap: 34px;
    max-width: 980px;
    align-items: center;
}

.couple-profile {
    width: 100%;
    max-width: 390px;
    justify-self: center;
    padding: 24px 20px 28px;
}

.portrait-shell {
    width: min(258px, 86%);
    margin-bottom: 25px;
}

.portrait-arch {
    aspect-ratio: .735 / 1;
    border-radius: 47% 47% 13% 13% / 29% 29% 11% 11%;
    border-width: 4px;
    outline-width: 1.5px;
    outline-offset: 6px;
}

.portrait-arch img {
    object-fit: cover;
    object-position: center 18%;
}

.couple-emblem {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    transform: none;
    font-size: 2.55rem;
    background: rgba(255,253,248,.82);
    box-shadow: 0 14px 32px rgba(91,66,30,.10);
}

.couple-emblem::before {
    inset: 8px;
    border-radius: 50%;
}

.couple-emblem span {
    transform: none;
    line-height: 1;
    margin-top: -3px;
}

@media (min-width: 992px) and (max-width: 1500px) {
    .couple-grid {
        grid-template-columns: minmax(0,1fr) 86px minmax(0,1fr);
        gap: 24px;
        max-width: 900px;
    }
    .couple-profile { max-width: 350px; }
    .portrait-shell { width: min(224px, 84%); }
    .couple-emblem { width: 70px; height: 70px; font-size: 2.2rem; }
}

@media (max-width: 991.98px) {
    .couple-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 440px;
    }
    .couple-profile {
        max-width: 400px;
        padding: 22px 16px 24px;
    }
    .portrait-shell { width: min(225px, 72vw); }
    .couple-emblem {
        width: 66px;
        height: 66px;
        font-size: 2.05rem;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .portrait-shell { width: min(205px, 68vw); }
    .portrait-arch { outline-offset: 5px; }
    .couple-emblem { width: 60px; height: 60px; font-size: 1.9rem; }
}

/* =========================================================
   Theme refinement v11 - transparent cinematic opening cover
   ========================================================= */
#cover.cover-experience {
    background:
        linear-gradient(135deg, rgba(30,20,12,.18), rgba(30,20,12,.08)),
        var(--cover-bg-image) center/cover no-repeat;
}

#cover .cover-backdrop {
    background:
        radial-gradient(circle at 14% 16%, rgba(255,255,255,.055), transparent 30%),
        linear-gradient(180deg, rgba(24,14,8,.055), rgba(24,14,8,.12));
}

#cover .cover-panel {
    background: linear-gradient(180deg, rgba(48,30,17,.115), rgba(54,33,18,.16));
    border-color: rgba(255,245,229,.24);
    box-shadow: 0 24px 60px rgba(15,9,4,.105);
    backdrop-filter: blur(2.5px) saturate(1.04);
    -webkit-backdrop-filter: blur(2.5px) saturate(1.04);
}

#cover .cover-panel h1 {
    text-shadow: 0 3px 18px rgba(14,7,3,.62), 0 1px 2px rgba(14,7,3,.72);
}

#cover .cover-panel .theme-eyebrow,
#cover .cover-date,
#cover .cover-copy,
#cover .cover-guest span,
#cover .cover-guest strong {
    text-shadow: 0 2px 12px rgba(14,7,3,.72), 0 1px 2px rgba(14,7,3,.8);
}

#cover .cover-guest {
    background: rgba(42,27,16,.12);
    border-color: rgba(255,245,229,.25);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

#cover .cover-frame {
    border-color: rgba(238,211,158,.78);
}

@media (max-width: 767.98px) {
    #cover.cover-experience {
        background:
            linear-gradient(180deg, rgba(30,20,12,.15), rgba(30,20,12,.09)),
            var(--cover-bg-image) center/cover no-repeat;
    }

    #cover .cover-panel {
        background: linear-gradient(180deg, rgba(48,30,17,.13), rgba(54,33,18,.18));
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}
