:root {
    --ink: #1a1714;
    --olive: #1F4D3F;
    --paper: #FBF6EE;
    --sand: #F2DDD6;
    --line: #C9A66B;
    --gold: #C9A66B;
    --gold-light: #d4bc8a;
    --gold-dark: #8a6d3b;
    --muted: #5e564d;
    --serif: "Cormorant Garamond", Georgia, serif;
    --script: "Great Vibes", cursive;
    --sans: "Manrope", sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.65 var(--sans)
}

.shell {
    width: min(100% - 40px, 720px);
    margin: auto
}

.hero {
    height: 740px;
    min-height: 650px;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden
}

.hero-image, .hero-shade {
    position: absolute;
    z-index: -1
}

.hero-image {
    inset: 28px 20px 278px;
    background: url("assets/WhatsApp Image 2026-10-19 at 12.17.47 PM.jpeg") center 18%/cover;
    filter: saturate(.75) brightness(.92) contrast(1.05)
}

.hero-shade {
    inset: 28px 20px 278px;
    border: 1px solid rgba(245, 239, 225, .75);
    box-shadow: inset 0 0 0 10px rgba(26, 23, 18, .08), inset 0 0 60px rgba(184, 150, 90, .06)
}

.hero-content {
    text-align: center;
    padding-bottom: 62px
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .23em;
    text-transform: uppercase
}

.light {
    color: var(--gold)
}

.spark {
    display: block;
    color: var(--gold);
    margin-bottom: 14px
}

h1, h2, h3, p {
    margin-top: 0
}

h1 {
    margin: 0;
    display: grid;
    gap: 3px;
    line-height: .9;
    text-shadow: none
}

h1 .script {
    font-size: clamp(46px, 12vw, 78px);
    font-weight: 400
}

h1 i {
    font: 20px var(--serif);
    color: var(--gold)
}

.hero-date {
    margin: 20px 0 16px;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted)
}

.hero a {
    color: var(--ink);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    transition: background .3s ease, color .3s ease, transform .3s ease
}

.hero a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px)
}

.section {
    padding: 90px 0
}

.welcome, .celebration {
    text-align: center
}

.section h2 {
    font: 500 clamp(42px, 10vw, 64px)/.92 var(--serif);
    letter-spacing: -.025em;
    margin-bottom: 28px
}

.section h2 em {
    font: 400 .9em var(--script);
    color: var(--gold)
}

.rule {
    color: var(--gold);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 150px
}

.rule:before, .rule:after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1
}

.intro {
    font: 25px/1.22 var(--serif);
    max-width: 520px;
    margin: 0 auto 18px
}

.body-copy {
    color: var(--muted);
    max-width: 520px;
    margin-inline: auto
}

.families {
    margin-top: 32px;
    color: var(--muted);
    font: 17px var(--serif)
}

.families p {
    margin: 4px
}

.families span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--line);
    margin: 14px auto
}

.film {
    padding: 32px 20px;
    background: linear-gradient(180deg, #1f1d18 0%, var(--olive) 50%, #1f1d18 100%)
}

.film-frame {
    max-width: 760px;
    margin: auto;
    padding: 8px;
    border: 1px solid rgba(233, 218, 189, .48)
}

.film video {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover
}

.date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    margin: 34px 0 48px
}

.date > span {
    font: 92px/.72 var(--serif);
    color: var(--olive);
    border-right: 1px solid var(--line);
    padding-right: 17px
}

.date strong, .date small {
    display: block;
    text-align: center
}

.date strong {
    font: 500 34px/1 var(--serif)
}

.date small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-top: 5px
}

.event-list {
    border-top: 1px solid var(--line);
    text-align: center
}

.event {
    display: grid;
    grid-template-columns:40px 1fr;
    gap: 15px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    text-align: center
}

.marker {
    font: 20px var(--serif);
    color: var(--gold)
}

.event-type {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 5px
}

.event h3 {
    font: 500 25px/1.1 var(--serif);
    margin-bottom: 7px
}

.event p:not(.event-type) {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 3px
}

.note {
    font-style: italic
}

.actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 3px
}

.actions a, .actions button {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--gold);
    padding: 0 0 3px;
    color: var(--ink);
    font: 10px var(--sans);
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer
}

.portrait {
    padding-bottom: 90px
}

.portrait figure {
    margin: 0;
    position: relative;
    padding: 10px 10px 50px;
    background: var(--sand)
}

.portrait img {
    display: block;
    width: 100%;
    height: clamp(350px, 80vw, 600px);
    object-fit: cover;
    object-position: center 16%;
    filter: saturate(.85) contrast(1.05)
}

.portrait figcaption {
    position: absolute;
    right: 20px;
    bottom: 10px;
    color: var(--muted);
    font: italic 16px var(--serif)
}

.portrait .script {
    font-size: 28px;
    color: var(--gold);
    margin-left: 5px
}

form {
    max-width: 510px;
    margin: 35px auto 0;
    text-align: center;
    display: grid;
    gap: 18px
}

form > label, fieldset {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px
}

input:not([type=radio]), select, textarea {
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--olive)
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    grid-template-columns:1fr 1fr;
    gap: 10px
}

legend {
    grid-column: 1/-1;
    padding: 0
}

.submit {
    margin-top: 7px;
    border: 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    padding: 15px;
    cursor: pointer;
    font: 600 10px var(--sans);
    letter-spacing: .19em;
    text-transform: uppercase
}

footer {
    padding: 64px 20px;
    background: linear-gradient(180deg, #1f1d18 0%, var(--olive) 100%);
    color: var(--gold-light);
    text-align: center
}

footer .script {
    font-size: 54px
}

footer p {
    margin: 8px 0;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase
}

footer p + p {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 188, 138, .2);
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(29, 27, 23, .66)
}

.sheet[hidden] {
    display: none
}

.card {
    position: relative;
    width: min(420px, 100%);
    padding: 48px 32px;
    background: var(--paper);
    text-align: center
}

.card h3 {
    font: 500 28px/1.1 var(--serif)
}

.card a, .card button:not(#calClose) {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 0;
    background: var(--olive);
    color: white;
    text-decoration: none;
    cursor: pointer;
    font: 600 10px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase
}

.card button:not(#calClose) {
    background: transparent;
    border: 1px solid var(--olive);
    color: var(--olive)
}

#calClose {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer
}

@media (min-width: 760px) {
    .event {
        grid-template-columns:60px 1fr auto;
        align-items: center
    }

    .actions {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end
    }

    .portrait {
        width: min(100% - 80px, 800px)
    }
}

/* Keep the invitation copy beneath the framed portrait on the cover. */
.hero {
    height: 900px !important;
}

.hero-image, .hero-shade {
    bottom: 470px !important;
}

.hero-content {
    position: absolute !important;
    left: 20px;
    right: 20px;
    bottom: 52px;
    padding-bottom: 0 !important;
}

/* Refined motion and atmospheric details */
.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    opacity: .55;
    background: radial-gradient(circle, rgba(230, 205, 150, .5), transparent 68%);
    animation: drift 11s ease-in-out infinite
}

.hero::before {
    left: -48px;
    top: 95px
}

.hero::after {
    right: -55px;
    top: 265px;
    animation-delay: -5s
}

.hero-content {
    z-index: 1
}

.hero-image {
    animation: portraitIn 1.8s cubic-bezier(.2, .75, .2, 1) both
}

.hero-shade {
    animation: frameGlow 4s ease-in-out infinite
}

.spark {
    animation: twinkle 2.8s ease-in-out infinite
}

.hero h1 .script {
    animation: nameRise 1.1s .4s both
}

.hero h1 i {
    animation: nameRise 1.1s .58s both
}

.hero-date, .hero a {
    animation: nameRise 1.1s .72s both
}

.film-frame {
    overflow: hidden
}

.film video {
    animation: slowZoom 13s ease-in-out infinite alternate
}

.portrait figure {
    overflow: hidden
}

.portrait img {
    transition: transform 1s ease;
    animation: slowZoom 18s ease-in-out infinite alternate
}

.portrait figure:hover img {
    transform: scale(1.035)
}

.event {
    transition: transform .35s ease, background .35s ease
}

.event:hover {
    transform: translateX(7px);
    background: rgba(232, 223, 207, .3)
}

.actions a, .actions button, .submit {
    transition: transform .25s ease, background .25s ease, color .25s ease
}

.actions a:hover, .actions button:hover {
    transform: translateY(-2px);
    color: var(--gold)
}

.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(52, 53, 44, .2)
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .75, .2, 1)
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

@keyframes portraitIn {
    from {
        opacity: 0;
        transform: scale(1.06)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes nameRise {
    from {
        opacity: 0;
        transform: translateY(18px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: .55;
        transform: scale(.8)
    }
    50% {
        opacity: 1;
        transform: scale(1.45)
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(.9)
    }
    50% {
        transform: translate3d(24px, -16px, 0) scale(1.15)
    }
}

@keyframes frameGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 10px rgba(26, 23, 18, .12)
    }
    50% {
        box-shadow: inset 0 0 0 10px rgba(224, 196, 139, .36)
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1)
    }
    to {
        transform: scale(1.045)
    }
}

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

/* Faded photo atmosphere and falling petals */
.photo-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(rgba(247, 244, 237, .64), rgba(247, 244, 237, .72)), url("assets/Agent Image - Create a high-end 3D CG animated frame in a Pixar and Illumination feature-film style.png") left 12% top 10%/45% auto no-repeat, url("assets/Agent Image - Create a high-end 3D CG animated key frame in a Pixar and Illumination feature-film st(1).png") right 8% center/36% auto no-repeat, url("assets/Agent Image - Create a high-end 3D CG animated frame in a Pixar and Illumination feature-film style(1).png") left 6% bottom 8%/34% auto no-repeat;
    filter: sepia(.1) saturate(.82);
    opacity: .58
}

.photo-atmosphere::before, .photo-atmosphere::after {
    content: "";
    position: absolute;
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    filter: blur(34px);
    opacity: .36;
    background: #efe1c7;
    animation: ambientFloat 18s ease-in-out infinite
}

.photo-atmosphere::before {
    left: -16vw;
    top: 14vh
}

.photo-atmosphere::after {
    right: -14vw;
    bottom: 8vh;
    background: #d8dfd0;
    animation-delay: -9s
}

.hero, .film, footer {
    background-color: transparent !important
}

.hero {
    background: rgba(247, 244, 237, .32) !important
}

.section, .portrait {
    position: relative
}

.section::before, .portrait::before {
    content: "";
    position: absolute;
    inset: 16px -20px;
    z-index: -1;
    background: rgba(250, 248, 243, .55);
    border: 1px solid rgba(184, 150, 90, .15);
    pointer-events: none
}

.petal-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden
}

.petal {
    position: absolute;
    top: -40px;
    width: 12px;
    height: 17px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, #fff2ee, #cb8794);
    box-shadow: 0 2px 7px rgba(103, 56, 67, .14);
    opacity: .78;
    animation: petalFall var(--fall-time) linear forwards
}

.petal.gold {
    background: linear-gradient(135deg, #fff4cf, #c6a151)
}

@keyframes petalFall {
    to {
        transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin));
        opacity: 0
    }
}

@keyframes ambientFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(.9)
    }
    50% {
        transform: translate3d(8vw, -4vh, 0) scale(1.14)
    }
}

/* A fuller, natural floral shower — varied petals drift, turn, and catch the light. */
.petal-layer {
    z-index: 20 !important
}

.petal {
    width: 15px !important;
    height: 22px !important;
    opacity: .88 !important;
    border-radius: 100% 0 100% 0 !important;
    transform-origin: center bottom;
    filter: drop-shadow(0 4px 4px rgba(113, 58, 73, .14));
    animation: floralFall var(--fall-time) cubic-bezier(.32, .05, .63, .94) forwards !important
}

.petal::before {
    content: "";
    position: absolute;
    inset: 3px 7px 3px 2px;
    border-radius: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, .8), transparent 70%);
    transform: rotate(-24deg)
}

.petal.gold {
    box-shadow: 0 0 12px rgba(224, 190, 105, .34)
}

@keyframes floralFall {
    0% {
        opacity: 0;
        transform: translate3d(0, -28px, 0) rotate(0deg) scale(var(--scale))
    }
    7% {
        opacity: .9
    }
    28% {
        transform: translate3d(calc(var(--drift) * -.22), 28vh, 0) rotate(calc(var(--spin) * .25)) scale(var(--scale))
    }
    56% {
        transform: translate3d(calc(var(--drift) * .42), 57vh, 0) rotate(calc(var(--spin) * .58)) scale(var(--scale))
    }
    78% {
        transform: translate3d(calc(var(--drift) * -.15), 79vh, 0) rotate(calc(var(--spin) * .82)) scale(var(--scale))
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin)) scale(var(--scale))
    }
}

/* Elevated cards and polished interactive controls */
.event-list {
    border: 0 !important;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    width: 100%
}

.event {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 150, 90, .35) !important;
    border-radius: 18px;
    padding: 28px 22px !important;
    background: linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(237, 225, 200, .65));
    box-shadow: 0 12px 26px rgba(69, 58, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: transform .42s cubic-bezier(.2, .75, .2, 1), box-shadow .42s ease, border-color .42s ease !important
}

.event::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .72) 47%, transparent 64%);
    transform: translateX(-140%);
    transition: transform .8s ease;
    pointer-events: none
}

.event:hover {
    transform: translateY(-7px) !important;
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(240, 228, 205, .8));
    box-shadow: 0 22px 40px rgba(184, 150, 90, .2), inset 0 1px 0 rgba(255, 255, 255, .8) !important
}

.event:hover::before {
    transform: translateX(140%)
}

@media (hover: none) {
    .event::before {
        display: none
    }

    .event:hover {
        transform: none !important;
        box-shadow: 0 12px 26px rgba(69, 58, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .6) !important
    }
}

.event:hover .marker {
    transform: rotate(-8deg) scale(1.14)
}

.marker {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff !important;
    font-size: 14px !important;
    box-shadow: 0 6px 14px rgba(184, 150, 90, .35);
    transition: transform .35s ease
}

.actions {
    gap: 10px !important
}

.actions a, .actions button, .submit, .card a, .card button:not(#calClose) {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    padding: 10px 15px !important;
    background: linear-gradient(135deg, #3e4036, #272820) !important;
    color: #fff !important;
    box-shadow: 0 8px 15px rgba(52, 53, 44, .18);
    font-weight: 600 !important;
    letter-spacing: .11em !important;
    transition: transform .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s ease, filter .3s ease !important
}

.actions a::before, .actions button::before, .submit::before, .card a::before, .card button:not(#calClose)::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 35%;
    height: 200%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: rotate(25deg);
    transition: left .6s ease
}

.actions a:hover, .actions button:hover, .submit:hover, .card a:hover, .card button:not(#calClose):hover {
    color: #fff !important;
    filter: brightness(1.13);
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 14px 22px rgba(52, 53, 44, .28) !important
}

.actions a:hover::before, .actions button:hover::before, .submit:hover::before, .card a:hover::before, .card button:not(#calClose):hover::before {
    left: 150%
}

.actions button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important
}

.submit {
    width: 100%;
    padding: 16px !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important
}

.submit:active, .actions a:active, .actions button:active {
    transform: translateY(-1px) scale(.98) !important
}

.portrait figure {
    box-shadow: 0 20px 42px rgba(69, 58, 43, .16), inset 0 0 0 1px rgba(184, 150, 90, .15)
}

.card {
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(30, 28, 23, .24), inset 0 1px 0 rgba(255, 255, 255, .5);
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%)
}

/* Deliberate opening interaction and quick chapter navigation */
body.is-locked {
    overflow: hidden
}

.is-locked main, .is-locked footer {
    pointer-events: none;
    user-select: none
}

/* ── 3D Invitation Gate with Envelope Opening ── */
.invitation-gate {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: radial-gradient(ellipse at center, #2c2a24 0%, #1a1714 60%, #0f0e0b 100%);
    transition: opacity 1s ease, visibility 1s ease;
}
.invitation-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(201,166,107,.12) 0%, transparent 60%);
    pointer-events: none;
}
.invitation-gate.opened { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-scene { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.envelope-wrap { cursor: pointer; outline: none; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
.envelope-wrap:focus-visible { box-shadow: 0 0 0 3px rgba(201,166,107,.55); }

/* Envelope body — the background behind the lid (invitation content shows through when lid opens) */
.envelope {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ── Vertical Split Panels — two halves that part like opening doors ── */

.envelope-left,
.envelope-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,166,107,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201,166,107,.04) 0%, transparent 50%),
        linear-gradient(180deg, #2c2a24 0%, #1f1d18 40%, #1a1714 100%);
    z-index: 10;
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.envelope-left {
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.envelope-right {
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Subtle geometric pattern overlay on panels ── */
.panel-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 1;
}

/* ── Gold border frame inside each panel ── */
.panel-border-frame {
    position: absolute;
    top: 3%;
    bottom: 3%;
    left: 3%;
    right: 3%;
    border: 1px solid rgba(201,166,107,.15);
    pointer-events: none;
    z-index: 2;
}

.envelope-left .panel-border-frame {
    right: 5%;
}

.envelope-right .panel-border-frame {
    left: 5%;
}

/* ── Corner ornaments ── */
.panel-ornament {
    position: absolute;
    width: clamp(40px, 8vw, 80px);
    height: clamp(40px, 8vw, 80px);
    pointer-events: none;
    z-index: 3;
}

.panel-ornament::before,
.panel-ornament::after {
    content: "";
    position: absolute;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* Top-left corner ornament */
.panel-ornament-tl {
    top: 5%;
    left: 5%;
}
.panel-ornament-tl::before {
    top: 0; left: 0;
    width: 100%; height: 2px;
}
.panel-ornament-tl::after {
    top: 0; left: 0;
    width: 2px; height: 100%;
}

/* Bottom-left corner ornament */
.panel-ornament-bl {
    bottom: 5%;
    left: 5%;
}
.panel-ornament-bl::before {
    bottom: 0; left: 0;
    width: 100%; height: 2px;
}
.panel-ornament-bl::after {
    bottom: 0; left: 0;
    width: 2px; height: 100%;
}

/* Top-right corner ornament */
.panel-ornament-tr {
    top: 5%;
    right: 5%;
}
.panel-ornament-tr::before {
    top: 0; right: 0;
    width: 100%; height: 2px;
}
.panel-ornament-tr::after {
    top: 0; right: 0;
    width: 2px; height: 100%;
}

/* Bottom-right corner ornament */
.panel-ornament-br {
    bottom: 5%;
    right: 5%;
}
.panel-ornament-br::before {
    bottom: 0; right: 0;
    width: 100%; height: 2px;
}
.panel-ornament-br::after {
    bottom: 0; right: 0;
    width: 2px; height: 100%;
}

/* ── Floral corner motifs ── */
.panel-floral {
    position: absolute;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    pointer-events: none;
    z-index: 4;
    opacity: 0.12;
}

.panel-floral-top {
    top: 8%;
}

.panel-floral-bottom {
    bottom: 8%;
}

.envelope-left .panel-floral-top {
    left: 10%;
}
.envelope-left .panel-floral-bottom {
    right: 10%;
}
.envelope-right .panel-floral-top {
    right: 10%;
}
.envelope-right .panel-floral-bottom {
    left: 10%;
}

/* Flower shape using radial gradients */
.panel-floral::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* Center of the flower */
        radial-gradient(circle at 50% 50%, var(--gold) 8%, transparent 12%),
        /* Petals - top */
        radial-gradient(ellipse at 50% 15%, var(--gold) 6%, transparent 14%),
        /* Petals - bottom */
        radial-gradient(ellipse at 50% 85%, var(--gold) 6%, transparent 14%),
        /* Petals - left */
        radial-gradient(ellipse at 15% 50%, var(--gold) 6%, transparent 14%),
        /* Petals - right */
        radial-gradient(ellipse at 85% 50%, var(--gold) 6%, transparent 14%),
        /* Petals - top-left diagonal */
        radial-gradient(ellipse at 25% 25%, var(--gold-light) 5%, transparent 12%),
        /* Petals - top-right diagonal */
        radial-gradient(ellipse at 75% 25%, var(--gold-light) 5%, transparent 12%),
        /* Petals - bottom-left diagonal */
        radial-gradient(ellipse at 25% 75%, var(--gold-light) 5%, transparent 12%),
        /* Petals - bottom-right diagonal */
        radial-gradient(ellipse at 75% 75%, var(--gold-light) 5%, transparent 12%);
    transform: rotate(0deg);
}

/* Leaf accents around the flower */
.panel-floral::after {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        /* Leaf top-left */
        radial-gradient(ellipse at 10% 10%, var(--gold-dark) 4%, transparent 10%),
        /* Leaf top-right */
        radial-gradient(ellipse at 90% 10%, var(--gold-dark) 4%, transparent 10%),
        /* Leaf bottom-left */
        radial-gradient(ellipse at 10% 90%, var(--gold-dark) 4%, transparent 10%),
        /* Leaf bottom-right */
        radial-gradient(ellipse at 90% 90%, var(--gold-dark) 4%, transparent 10%);
    transform: rotate(20deg);
}

/* ── Circular floral medallion ── */
.panel-medallion {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(100px, 15vw, 160px);
    height: clamp(100px, 15vw, 160px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
    opacity: 0.06;
}

/* Outer ring */
.panel-medallion::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background:
        /* Inner petal ring */
        radial-gradient(ellipse at 50% 10%, var(--gold) 3%, transparent 10%),
        radial-gradient(ellipse at 50% 90%, var(--gold) 3%, transparent 10%),
        radial-gradient(ellipse at 10% 50%, var(--gold) 3%, transparent 10%),
        radial-gradient(ellipse at 90% 50%, var(--gold) 3%, transparent 10%),
        radial-gradient(ellipse at 20% 20%, var(--gold-light) 2.5%, transparent 9%),
        radial-gradient(ellipse at 80% 20%, var(--gold-light) 2.5%, transparent 9%),
        radial-gradient(ellipse at 20% 80%, var(--gold-light) 2.5%, transparent 9%),
        radial-gradient(ellipse at 80% 80%, var(--gold-light) 2.5%, transparent 9%),
        /* Center dot */
        radial-gradient(circle at 50% 50%, var(--gold) 5%, transparent 8%);
}

/* Inner decorative ring */
.panel-medallion::after {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
}

/* ── Vine pattern along inner edge (center seam) ── */
.panel-vine {
    position: absolute;
    top: 0;
    width: clamp(30px, 4vw, 50px);
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.08;
}

.panel-vine-inner {
    /* Positioned at the inner edge of each panel */
}

.envelope-left .panel-vine-inner {
    right: 0;
}

.envelope-right .panel-vine-inner {
    left: 0;
}

/* Vine leaves pattern using repeating radial gradients */
.panel-vine::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        /* Leaf pairs repeating vertically */
        radial-gradient(ellipse at 30% 5%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 5%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 30% 25%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 25%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 30% 45%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 45%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 30% 65%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 65%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 30% 85%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 85%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 30% 95%, var(--gold) 4%, transparent 12%),
        radial-gradient(ellipse at 70% 95%, var(--gold) 4%, transparent 12%);
    background-size: 100% 8%;
    background-repeat: repeat-y;
}

/* Vine stem line */
.panel-vine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--gold) 5%,
        var(--gold) 95%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* Gold edge at the center seam — left panel's right edge */
.envelope-left::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
    z-index: 12;
}

/* Gold edge at the center seam — right panel's left edge */
.envelope-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
    z-index: 12;
}

/* Subtle gold glow behind the seal — spans both panels */
.envelope::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201,166,107,.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 11;
}

/* Centered wax seal — single full circle */
.wax-seal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(150px, 16vw, 180px);
    height: clamp(150px, 16vw, 180px);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #f0d89a 0%, #d4a855 25%, #c9a66b 50%, #a98246 80%, #8a6d3b 100%);
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,.4),
        inset 0 -4px 10px rgba(0,0,0,.22),
        0 8px 24px rgba(120,86,30,.45),
        0 0 60px rgba(201,166,107,.25);
    border: 2px solid rgba(169,130,70,.5);
    display: grid;
    place-items: center;
    color: #fffdf5;
    font: 400 clamp(28px, 5vw, 56px)/1 var(--script);
    letter-spacing: .02em;
    user-select: none;
    z-index: 20;
    transform: translate(-50%, -50%);
    animation: sealPulse 2.4s ease-in-out infinite;
}

.wax-seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}

.wax-seal::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 1px solid rgba(201,166,107,.3);
    pointer-events: none;
}

@keyframes sealPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.06); }
}

.envelope-hint {
    margin-top: clamp(30px, 5vh, 60px);
    font: 600 clamp(11px, 1.4vw, 16px)/1 var(--sans);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(201,166,107,.5);
    text-align: center;
    animation: hintPulse 2s ease-in-out infinite;
    z-index: 1;
}
@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── Open state: panels slide apart like opening doors, then gate fades ── */
.invitation-gate.open .envelope-left {
    transform: translateX(-100%);
}
.invitation-gate.open .envelope-right {
    transform: translateX(100%);
}
.invitation-gate.open .wax-seal {
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* After panels slide, fade the entire gate to reveal the invitation */
.invitation-gate.open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease 0.8s, visibility 0.6s ease 0.8s;
}


/* ── Countdown Timer ── */
.countdown-section {
    text-align: center;
    background: linear-gradient(135deg, #2c2a24 0%, #1f1d18 100%);
    color: #f5e8c9;
    border-radius: 24px;
    margin: 0 auto;
    padding: 70px 20px !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 150, 90, .2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2)
}

.countdown-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(184, 150, 90, .15), transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(184, 150, 90, .1), transparent 50%);
    pointer-events: none;
}

.countdown-section h2 {
    color: #f5e8c9;
}

.countdown-section .eyebrow {
    color: var(--gold-light);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 20px 16px;
    border: 1px solid rgba(184, 150, 90, .3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 253, 248, .08), rgba(255, 253, 248, .03));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .3s ease, border-color .3s ease;
}

.countdown-unit:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.countdown-number {
    font: 600 48px/1 var(--serif);
    background: linear-gradient(180deg, #f5e6c8 0%, #d4bc8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(184, 150, 90, .25));
}

.countdown-label {
    font: 600 11px var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-top: 6px;
}

.countdown-separator {
    font: 500 32px var(--serif);
    color: var(--gold);
    opacity: .45;
}

/* ── Story Timeline ── */
.story-section {
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
    padding-left: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 10%, var(--line) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 0 40px 50px;
    text-align: center;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-left: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    padding-right: calc(50% + 30px);
    text-align: center;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(184, 150, 90, .4);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    font: 600 10px var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.timeline-title {
    font: 500 24px/1.15 var(--serif);
    margin-bottom: 8px;
    color: var(--olive);
}

.timeline-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Gallery Carousel ── */
.gallery-section {
    text-align: center;
}

.gallery-carousel {
    position: relative;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-track-wrapper {
    overflow: hidden;
    border-radius: 18px;
    flex: 1;
    box-shadow: 0 16px 44px rgba(69, 58, 43, .16);
    border: 1px solid rgba(184, 150, 90, .3);
}

.gallery-track {
    display: flex;
    transition: transform .6s cubic-bezier(.2, .75, .2, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: clamp(280px, 60vw, 500px);
    aspect-ratio: 16/10;
    object-fit: cover;
    filter: saturate(.88) contrast(1.03);
    transition: filter .4s ease;
}

.gallery-slide:hover img {
    filter: saturate(1);
}

.gallery-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 18px;
    background: linear-gradient(transparent, rgba(26, 23, 18, .6));
    color: #f5e8c9;
    font: italic 16px var(--serif);
}

/* ── Wishes Carousel ── */
.wishes-section {
    text-align: center;
}

.wishes-carousel {
    position: relative;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishes-track-wrapper {
    overflow: hidden;
    border-radius: 18px;
    flex: 1;
}

.wishes-track {
    display: flex;
    transition: transform .6s cubic-bezier(.2, .75, .2, 1);
}

.wish-card {
    min-width: 100%;
    padding: 40px 30px;
    border: 1px solid rgba(184, 150, 90, .25);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 253, 248, .95), rgba(237, 225, 200, .6));
    box-shadow: 0 12px 32px rgba(69, 58, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.wish-card .wish-quote {
    font: 22px/1.5 var(--serif);
    color: var(--ink);
    max-width: 500px;
    margin: 0 0 16px;
    position: relative;
}

.wish-card .wish-quote::before {
    content: "\201C";
    font-size: 60px;
    color: var(--gold);
    opacity: .45;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--serif);
}

.wish-card .wish-author {
    font: 600 11px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Carousel Buttons & Dots ── */
.carousel-btn {
    appearance: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(184, 150, 90, .4);
    border-radius: 50%;
    background: rgba(250, 248, 243, .9);
    backdrop-filter: blur(8px);
    color: var(--gold-dark);
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(69, 58, 43, .1);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(184, 150, 90, .35);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(184, 150, 90, .4);
}

/* ── Wish Form ── */
.wish-form-wrapper {
    max-width: 500px;
    margin: 50px auto 0;
    padding: 36px 30px;
    border: 1px solid rgba(184, 150, 90, .3);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 253, 248, .95), rgba(237, 225, 200, .55));
    box-shadow: 0 16px 40px rgba(69, 58, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
    text-align: center;
}

.wish-form-title {
    font: 500 32px/1.1 var(--serif);
    margin-bottom: 24px;
    color: var(--olive);
}

.wish-form-title em {
    font: 400 1em var(--script);
    color: var(--gold);
}

#wishForm {
    display: grid;
    gap: 16px;
    text-align: center;
}

#wishForm > label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

#wishForm input, #wishForm textarea {
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

#wishForm input:focus, #wishForm textarea:focus {
    outline: none;
    border-color: var(--gold);
}

#wishStatus {
    margin: 0;
    text-align: center;
    color: var(--gold);
    font-size: 13px;
}

.wish-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 4px;
}

.wish-form-note {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    margin-top: 12px;
}

#wishForm input:invalid:not(:placeholder-shown),
#wishForm textarea:invalid:not(:placeholder-shown) {
    border-color: #c0392b;
}

#wishForm input:valid:not(:placeholder-shown),
#wishForm textarea:valid:not(:placeholder-shown) {
    border-color: var(--gold);
}

.film video {
    cursor: pointer;
}

.video-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
}

.film-frame:hover .video-play-pause {
    opacity: 1;
}

.video-play-pause:hover {
    background: rgba(0, 0, 0, .55);
}

/* ═══════════════════════════════════════════
   TOP 5 QUICK WINS — Design Enhancements
   ═══════════════════════════════════════════ */

/* 1. Hero Frosted-Glass Card */
.hero-card {
    background: rgba(250, 248, 243, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 188, 138, .35);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 16px 48px rgba(69, 58, 43, .12), inset 0 1px 0 rgba(255, 255, 255, .5);
    max-width: 520px;
    margin: 0 auto;
}

/* 2. Section Gradient Dividers */
.section-divider {
    height: 60px;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-light) 30%, var(--gold) 50%, var(--gold-light) 70%, transparent 100%);
}

.section-divider::after {
    content: "✦";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--gold);
    background: var(--paper);
    padding: 0 16px;
}

.section-divider--dark::after {
    background: var(--olive);
}

/* 3. Event Card Corner Flourishes */
/* Using a dedicated corner element to avoid conflicting with ::before shimmer */
.event-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    opacity: .3;
    transition: opacity .3s ease;
}

.event-corner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--gold-light);
    border-right: 2px solid var(--gold-light);
    border-radius: 0 8px 0 0;
}

.event-corner::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    border-radius: 0 4px 0 0;
    opacity: .5;
}

.event:hover .event-corner {
    opacity: .6;
}

/* 4. Wish Card Decorative Quote Marks (enhanced) */
.wish-card {
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 140px;
    line-height: 1;
    color: var(--gold);
    opacity: .08;
    font-family: var(--serif);
    pointer-events: none;
}

.wish-card::after {
    content: "\201D";
    position: absolute;
    bottom: -30px;
    left: 16px;
    font-size: 120px;
    line-height: 1;
    color: var(--gold);
    opacity: .06;
    font-family: var(--serif);
    pointer-events: none;
}

/* 5. Staggered Scroll-Reveal Animations */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .4s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .5s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .6s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .7s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .8s; }

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero {
        height: 600px !important;
    }

    .hero-image, .hero-shade {
        bottom: 350px !important;
    }

    h1 .script {
        font-size: clamp(36px, 10vw, 56px);
    }

    .countdown {
        gap: 8px;
    }

    .countdown-unit {
        min-width: 70px;
        padding: 14px 10px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-separator {
        font-size: 22px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 36px;
        padding-right: 0;
        text-align: center;
    }

    .timeline-dot {
        left: 16px;
        width: 12px;
        height: 12px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .wish-card {
        padding: 30px 20px;
        min-height: 180px;
    }

    .wish-card .wish-quote {
        font-size: 18px;
    }
}

/* Added for Muhsin & Murshida architecture alignment */
.hero-sub{margin:10px 0 6px;font:600 12px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.arch-card{max-width:560px;margin:28px auto 0;padding:28px 22px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.55);box-shadow:0 10px 30px rgba(0,0,0,.04)}
.date-pill{margin:18px auto 0;display:inline-block;padding:8px 14px;border:1px solid var(--gold);border-radius:999px;letter-spacing:.18em;font:600 12px var(--sans);color:var(--gold-dark)}
.section-title-center{text-align:center}
.couple-figure{margin:24px auto 0;max-width:520px;text-align:center}
.couple-figure img{width:min(100%,420px);border-radius:999px;border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.couple-figure figcaption{margin-top:14px;color:var(--muted);font:20px/1.4 var(--serif)}
.closing-mono{font-size:clamp(42px,10vw,64px);color:var(--gold);margin:18px 0 0}

.music-toggle{position:fixed;left:16px;bottom:16px;z-index:70;border:1px solid rgba(201,166,107,.6);background:rgba(251,246,238,.92);color:#5a4630;border-radius:999px;padding:10px 14px;font:600 11px/1 var(--sans);letter-spacing:.08em;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.music-toggle:hover{background:#fff}
