:root {
    --ink: #38342f;
    --cream: #f3eee5;
    --paper: #eee7dc;
    --accent: #8a7257;
    --dark: #282723;
    --line: #c8b9a4
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #d7d0c5;
    color: var(--ink);
    font-family: Montserrat, Arial, sans-serif
}

.locked {
    height: 100vh;
    overflow: hidden
}

.paper {
    background-color: var(--cream);
    background-image: radial-gradient(#6e5e4b12 .65px, transparent .65px), linear-gradient(115deg, #fff5, transparent 38%, #806e5610);
    background-size: 4px 4px, 100% 100%
}

.site {
    width: min(100%, 680px);
    margin: auto;
    background: var(--cream);
    box-shadow: 0 0 55px #0002;
    overflow: hidden
}

.tiny {
    font-size: 9px;
    letter-spacing: .34em;
    font-weight: 500
}

.gate {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #ddd5c9;
    transition: opacity 1s, visibility 1s
}

.gate-grain {
    position: absolute;
    inset: 0;
    opacity: .6;
    background-image: radial-gradient(#554b4010 .7px, transparent .8px);
    background-size: 4px 4px
}

.gate.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.gate-card {
    position: relative;
    width: min(510px, 100%);
    min-height: min(760px, 92vh);
    padding: 82px 38px 55px;
    text-align: center;
    background: #f2ede4;
    border: 1px solid #b8a78e;
    box-shadow: 0 25px 80px #3c332733
}

.gate-card:before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px solid #b8a78e66
}

.gate-card:after {
    content: "";
    position: absolute;
    inset: 21px;
    border: 1px solid #b8a78e33
}

.corner {
    position: absolute;
    z-index: 1;
    color: var(--accent);
    font-size: 30px
}

.tl {
    top: 27px;
    left: 30px
}

.br {
    bottom: 27px;
    right: 30px;
    transform: rotate(180deg)
}

.gate-mark {
    margin: 52px 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    letter-spacing: .14em
}

.gate-mark i,
.gate h1 i,
.hero h2 i,
.intro h2 i,
.section-head h2 i,
.date-section h2 i,
.location-card h2 i,
.timeline-section h2 i,
.rsvp h2 i,
.wishes h2 i,
.gift h2 i,
footer h2 i {
    font-family: Allura, cursive;
    font-weight: 400;
    color: var(--accent)
}

.gate h1 {
    margin: 0;
    font: 500 53px/.86 "Cormorant Garamond", serif
}

.gate h1 i {
    font-size: 43px
}

.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px auto 20px;
    max-width: 250px;
    color: var(--accent)
}

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

.gate-date {
    font: 500 16px "Cormorant Garamond", serif;
    letter-spacing: .18em
}

.gate-copy {
    margin: 22px auto 30px;
    font: 400 17px/1.65 "Cormorant Garamond", serif
}

.outline-btn,
.light-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #61594f;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font: 500 10px Montserrat, sans-serif;
    letter-spacing: .2em;
    cursor: pointer
}

.music-note {
    font-size: 9px;
    opacity: .55;
    margin-top: 17px
}

.music-toggle {
    position: fixed;
    z-index: 50;
    right: max(17px, calc((100vw - 680px)/2 + 17px));
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #38342ee8;
    color: white;
    box-shadow: 0 6px 20px #0003;
    cursor: pointer;
    display: none
}

.music-toggle.show {
    display: block
}

.music-toggle.playing .disc {
    display: inline-block;
    animation: spin 4s linear infinite
}

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

/* =========================
   HERO — ONE SCREEN
   Ảnh mờ dần xuống nền đen
========================= */

.hero {
    position: relative;
    height: 100svh;
    min-height: 700px;
    max-height: 860px;
    overflow: hidden;
    background: #050505;
    color: #fff;
}

.hero-photo {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 72%;
    z-index: 1;

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 62%,
        rgba(0,0,0,.94) 70%,
        rgba(0,0,0,.72) 80%,
        rgba(0,0,0,.35) 91%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 62%,
        rgba(0,0,0,.94) 70%,
        rgba(0,0,0,.72) 80%,
        rgba(0,0,0,.35) 91%,
        transparent 100%
    );
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.03) 0%,
        rgba(0,0,0,.03) 34%,
        rgba(0,0,0,.14) 44%,
        rgba(0,0,0,.38) 54%,
        rgba(0,0,0,.68) 63%,
        rgba(5,5,5,.92) 72%,
        #050505 82%,
        #050505 100%
    );
}

.hero-top {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 5;

    text-align: center;
    font-size: 9px;
    letter-spacing: .35em;
}

.hero-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 58px;
    z-index: 5;
    text-align: center;
}

.hero-copy p {
    margin: 7px 0;
    font-size: 8px;
    letter-spacing: .38em;
}

.hero-copy h2 {
    margin: 12px 0 14px;
    font: 500 clamp(44px, 8.5vw, 56px)/.84 "Cormorant Garamond", serif;
}

.hero-copy h2 i {
    color: #eee1cf;
}

.hero-line {
    width: 72px;
    height: 1px;
    margin: 14px auto;
    background: rgba(255,255,255,.5);
}

.hero-copy strong {
    display: block;
    font: 400 15px "Cormorant Garamond", serif;
    letter-spacing: .2em;
}

.hero-copy small {
    display: block;
    margin-top: 7px;
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: .18em;
}

.scroll {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 6;

    text-align: center;
    font-size: 7px;
    letter-spacing: .3em;
    opacity: .7;
}

.scroll span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .hero {
        height: 100svh;
        min-height: 680px;
        max-height: 820px;
    }

    .hero-photo {
        height: 69%;
        background-position: center top;
    }

    .hero-copy {
        left: 16px;
        right: 16px;
        bottom: 54px;
    }

    .hero-copy h2 {
        font-size: clamp(42px, 12.5vw, 52px);
    }

    .hero-line {
        margin: 12px auto;
    }
}

.placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 10px;
    letter-spacing: .18em;
    background: linear-gradient(135deg, #b7afa3, #777066);
    color: #fff
}

.placeholder small {
    letter-spacing: .05em
}

.intro {
    position: relative;
    padding: 105px 28px 100px;
    text-align: center
}

.botanical {
    position: absolute;
    font-size: 120px;
    color: #9a856b13;
    transform: rotate(-35deg);
    left: -20px;
    top: 0
}

.monogram {
    margin: 45px auto 25px;
    width: 110px;
    height: 110px;
    border: 2px solid var(--line);
    border-radius: 75%;
    display: grid;
    place-items: center;
    font: 500 28px "Cormorant Garamond", serif
}

.monogram i {
    font-family: Allura, cursive;
    color: var(--accent);
    margin: 0 2px
}

.intro h2,
.section-head h2,
.date-section h2,
.location-card h2,
.timeline-section h2,
.rsvp h2,
.wishes h2,
.gift h2 {
    font: 500 45px/.9 "Cormorant Garamond", serif;
    margin: 15px 0 25px
}

.intro h2 i {
    font-size: 37px
}

.serif-copy {
    font: 400 17px/1.75 "Cormorant Garamond", serif;
    max-width: 440px;
    margin: 25px auto
}

.divider {
    color: var(--accent);
    font-size: 25px;
    margin: 30px
}

.place-line {
    font-size: 9px;
    letter-spacing: .25em;
    line-height: 2
}

.place-line b {
    font: 500 18px "Cormorant Garamond", serif;
    letter-spacing: .03em
}

.portrait-band {
    position: relative;
    background: #292723;
    padding: 48px 35px 80px
}

.portrait {
    height: 650px;
    position: relative;
    background: #827a70 center/cover no-repeat
}

.floating-card {
    position: absolute;
    right: 15px;
    bottom: 28px;
    width: 190px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #b8a990;
    box-shadow: 0 15px 40px #0003
}

.floating-card span,
.floating-card small {
    display: block;
    font-size: 8px;
    letter-spacing: .25em
}

.floating-card b {
    display: block;
    font: 500 70px/.9 "Cormorant Garamond", serif;
    margin-top: 10px
}

.floating-card em {
    font: 400 28px Allura, cursive;
    color: var(--accent)
}

.gallery-section {
    padding: 90px 16px;
    background: #292723;
    color: #eee7dc
}

.section-head {
    text-align: center;
    padding: 0 15px 40px
}

.section-head h2 i {
    color: #c8b397
}

.section-head>p:last-child {
    font: 400 15px "Cormorant Garamond", serif;
    opacity: .7
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
    gap: 8px
}

.gallery button {
    position: relative;
    border: 0;
    padding: 0;
    background: #777 center/cover no-repeat;
    overflow: hidden
}

.gallery button:nth-child(3),
.gallery button:nth-child(6) {
    grid-column: 1/-1;
    grid-row: span 2
}

.gallery button .placeholder {
    font-size: 9px
}

.date-section {
    padding: 95px 28px;
    text-align: center
}

.date-feature {
    margin: 42px auto 35px;
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    max-width: 460px
}

.date-feature span {
    font-size: 9px;
    letter-spacing: .18em
}

.date-feature b {
    font: 500 86px/.8 "Cormorant Garamond", serif;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line)
}

.date-feature small {
    grid-column: 1/-1;
    margin-top: 22px;
    font: italic 14px "Cormorant Garamond", serif
}

.calendar {
    max-width: 410px;
    margin: 40px auto
}

.cal-head {
    font: 500 23px "Cormorant Garamond", serif;
    margin-bottom: 15px
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px
}

.cal-grid span {
    padding: 10px 2px;
    font-size: 10px
}

.cal-grid .dow {
    font-weight: 500
}

.cal-grid .wedding {
    position: relative;
    border: 1px solid var(--accent);
    border-radius: 50%
}

.cal-grid .wedding:after {
    content: "♡";
    position: absolute;
    right: -3px;
    top: -8px;
    color: var(--accent)
}

.next-day {
    font: 400 14px "Cormorant Garamond", serif
}

.count-title {
    margin-top: 45px;
    font: italic 18px "Cormorant Garamond", serif
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 450px;
    margin: 22px auto 0
}

.countdown div {
    border-right: 1px solid var(--line)
}

.countdown div:last-child {
    border: 0
}

.countdown b {
    display: block;
    font: 500 34px "Cormorant Garamond", serif
}

.countdown span {
    font-size: 7px;
    letter-spacing: .18em
}

.location-section {
    position: relative;
    padding: 0 0 65px;
    background: #d4c9ba
}

.location-photo {
    height: 600px;
    position: relative;
    background: #777 center/cover no-repeat
}

.location-card {
    position: relative;
    width: calc(100% - 50px);
    margin: -95px auto 0;
    padding: 55px 25px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: 0 15px 35px #4a3c2920
}

.location-card p {
    font: 400 16px/1.6 "Cormorant Garamond", serif
}

.timeline-section {
    padding: 95px 30px;
    text-align: center
}

.timeline {
    max-width: 470px;
    margin: 45px auto 0;
    text-align: left
}

.timeline>div {
    display: grid;
    grid-template-columns: 72px 18px 1fr;
    gap: 15px;
    min-height: 110px
}

.timeline time {
    font: 500 22px "Cormorant Garamond", serif
}

.timeline>div>span {
    position: relative;
    border-left: 1px solid var(--line)
}

.timeline>div>span:before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    left: -4px;
    top: 8px
}

.timeline p {
    margin: 0
}

.timeline p b {
    font: 500 20px "Cormorant Garamond", serif
}

.timeline p small {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.6
}

.rsvp {
    padding: 100px 28px;
    background: #2b2925;
    color: #eee7dc;
    text-align: center
}

.rsvp h2 i {
    color: #c8b397
}

.rsvp-inner {
    border: 1px solid #a7967d66;
    padding: 55px 25px
}

.rsvp form,
.wishes form {
    display: grid;
    gap: 10px;
    max-width: 430px;
    margin: 30px auto
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #b7aa96;
    background: #fff9;
    font: 400 11px Montserrat, sans-serif;
    border-radius: 0
}

textarea {
    min-height: 105px;
    resize: vertical
}

.light-btn {
    border-color: #e9dfd0;
    color: #fff
}

.status {
    font-size: 10px
}

.wishes {
    padding: 95px 28px;
    text-align: center
}

.wish-list {
    max-width: 430px;
    margin: auto
}

.wish {
    border-top: 1px solid var(--line);
    padding: 16px 5px;
    text-align: left
}

.wish b {
    font: 500 18px "Cormorant Garamond", serif
}

.wish p {
    font-size: 11px;
    line-height: 1.6
}

.gift {
    padding: 65px 25px;
    background: #b9ad9d;
    text-align: center
}

.gift-frame {
    padding: 60px 20px;
    background: #f1ebe1;
    border: 1px solid #7f705d
}

.gift-icon {
    font-size: 45px
}

.qr-placeholder {
    width: 155px;
    height: 155px;
    margin: 25px auto 0;
    border: 1px dashed var(--accent);
    display: grid;
    place-items: center;
    font: 500 24px "Cormorant Garamond", serif
}

.qr-placeholder small {
    display: block;
    font: 8px Montserrat, sans-serif
}

footer {
    padding: 85px 20px;
    text-align: center;
    background: #24231f;
    color: #eee5d8
}

footer h2 {
    font: 500 48px "Cormorant Garamond", serif;
    margin: 12px
}

footer h2 i {
    color: #c8b397
}

footer p {
    font-size: 9px;
    letter-spacing: .25em
}

footer small {
    font: 400 13px "Cormorant Garamond", serif
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform .9s ease
}

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

@media(max-width:480px) {
    .gate-card {
        min-height: 650px;
        padding: 70px 26px 45px
    }

    .gate h1 {
        font-size: 46px
    }

    .hero-copy h2 {
        font-size: 50px
    }

    .intro h2,
    .section-head h2,
    .date-section h2,
    .location-card h2,
    .timeline-section h2,
    .rsvp h2,
    .wishes h2,
    .gift h2 {
        font-size: 41px
    }

    .portrait-band {
        padding-left: 22px;
        padding-right: 22px
    }

    .portrait {
        height: 540px
    }

    .gallery {
        grid-auto-rows: 205px
    }

    .date-feature {
        grid-template-columns: 1fr 95px 1fr
    }

    .date-feature b {
        font-size: 72px
    }

    .location-photo {
        height: 500px
    }

    .music-toggle {
        right: 15px
    }
}

/* ===== V3: BURGUNDY / IVORY WEDDING EDITORIAL ===== */
:root {
    --wine: #5b1119;
    --wine2: #6d1720;
    --ivory: #f7f0e4;
    --rose: #8f2431;
    --gold: #c7a56a
}

body {
    background: #cfc4b5
}

.site {
    background: var(--ivory)
}

.intro {
    margin: 38px 18px 55px;
    padding: 58px 25px 54px;
    border-radius: 7px;
    background: linear-gradient(145deg, #681721, #4d0d14);
    color: #fff;
    box-shadow: 0 8px 18px #44101835;
    overflow: visible
}

.intro:before,
.intro:after,
.timeline-section:before,
.timeline-section:after,
.rsvp:before {
    content: "✿❀✿";
    position: absolute;
    font-family: serif;
    color: #f4ddd0;
    font-size: 27px;
    letter-spacing: -8px;
    text-shadow: -8px 7px 0 #71151e, 9px -5px 0 #8f2431;
    z-index: 2
}

.intro:before {
    left: -12px;
    top: 10px;
    transform: rotate(-25deg)
}

.intro:after {
    right: -8px;
    bottom: 13px;
    transform: rotate(145deg)
}

.intro .botanical {
    display: none
}

.intro .tiny,
.intro .serif-copy,
.intro .place-line {
    color: #f8eee4
}

.intro h2 {
    font-size: 38px
}

.intro h2 i,
.intro .monogram i {
    color: #e8c9b1
}

.intro .monogram {
    border-color: #ffffff55
}

.intro .divider {
    color: #e7c6a9
}

.intro .place-line b {
    color: #fff
}

.portrait-band {
    background: var(--ivory);
    padding: 10px 32px 85px
}

.portrait {
    border: 8px solid #fff;
    box-shadow: 0 12px 28px #35140f2b
}

.floating-card {
    background: var(--wine);
    color: #fff;
    border: 0;
    border-radius: 4px
}

.floating-card em {
    color: #f0c9b3
}

.gallery-section {
    background: var(--ivory);
    color: #4d1719;
    padding-top: 62px
}

.section-head h2 i {
    color: var(--wine2)
}

.gallery {
    gap: 0;
    padding: 0 20px;
    perspective: 800px
}

.gallery button {
    border: 7px solid #fff;
    box-shadow: 0 10px 20px #4c2b2026;
    border-radius: 2px
}

.gallery button:nth-child(odd) {
    transform: rotate(-2deg)
}

.gallery button:nth-child(even) {
    transform: rotate(2deg)
}

.date-section {
    position: relative;
    margin: 38px 18px 48px;
    padding: 58px 22px;
    border-radius: 7px;
    background: linear-gradient(145deg, #65151e, #4d0c14);
    color: #fff;
    box-shadow: 0 8px 18px #44101835
}

.date-section h2 i {
    color: #efcbb5
}

.date-feature b {
    border-color: #ffffff55
}

.calendar {
    background: #fbf5ea;
    color: #5a171d;
    border-radius: 7px;
    padding: 24px 15px;
    box-shadow: 0 4px 10px #24050833
}

.cal-grid .wedding {
    border-color: var(--wine);
    background: #ead4cd
}

.cal-grid .wedding:after {
    color: var(--wine)
}

.countdown div {
    border-color: #ffffff45
}

.countdown b {
    color: #fff
}

.location-section {
    background: var(--ivory);
    padding-bottom: 75px
}

.location-photo {
    height: 380px;
    margin: 0 22px;
    border: 7px solid #fff;
    box-shadow: 0 10px 25px #49241d2b
}

.location-card {
    width: calc(100% - 44px);
    margin: 22px auto 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 30px 15px
}

.location-card h2 i {
    color: var(--wine2)
}

.timeline-section {
    position: relative;
    margin: 20px 18px 55px;
    padding: 58px 25px;
    border-radius: 7px;
    background: linear-gradient(145deg, #65151e, #4b0c13);
    color: #fff;
    box-shadow: 0 8px 18px #44101835
}

.timeline-section h2 i {
    color: #efcbb5
}

.timeline-section:before {
    left: -12px;
    top: 5px;
    transform: rotate(-25deg)
}

.timeline-section:after {
    right: -10px;
    bottom: 8px;
    transform: rotate(145deg)
}

.timeline>div>span {
    border-color: #d7b8a5
}

.timeline>div>span:before {
    background: #f0d7c6
}

.timeline p small {
    color: #f0ddd2
}

.rsvp {
    position: relative;
    margin: 0 18px 55px;
    padding: 56px 20px;
    background: linear-gradient(145deg, #65151e, #4d0c14);
    border-radius: 7px;
    box-shadow: 0 8px 18px #44101835
}

.rsvp:before {
    left: -11px;
    bottom: 18px;
    transform: rotate(-25deg)
}

.rsvp-inner {
    background: #f4e9dc;
    color: #58141a;
    border: 0;
    border-radius: 7px;
    padding: 40px 22px;
    box-shadow: 0 7px 16px #24050844
}

.rsvp h2 i {
    color: var(--wine2)
}

.rsvp input,
.rsvp select,
.rsvp textarea {
    background: #ead8d4;
    border: 1px solid #caaead;
    color: #58141a;
    border-radius: 5px
}

.rsvp .light-btn {
    background: #d8b9b6;
    color: #5b1119;
    border: 0;
    border-radius: 5px;
    width: 100%
}

.wishes {
    margin: 0 18px 55px;
    padding: 52px 22px;
    background: #fbf6ed;
    border: 1px solid #d5c8b7;
    border-radius: 7px;
    box-shadow: 0 7px 18px #4c2b201c
}

.wishes h2 i {
    color: var(--wine2)
}

.wishes .outline-btn {
    background: var(--wine);
    color: #fff;
    border-color: var(--wine);
    width: 100%
}

.wish {
    background: #fff;
    border: 1px solid #e2d5c6;
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px;
    box-shadow: 0 4px 9px #0000000d
}

.gift {
    background: var(--ivory);
    padding-top: 20px
}

.gift-frame {
    background: var(--wine);
    color: #fff;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 8px 18px #44101835
}

.gift h2 i {
    color: #efcbb5
}

.qr-placeholder {
    border-color: #f2d6c1
}

footer {
    background: #4b0c13
}

.outline-btn {
    border-radius: 3px
}

@media(max-width:480px) {

    .intro,
    .date-section,
    .timeline-section,
    .rsvp,
    .wishes {
        margin-left: 10px;
        margin-right: 10px
    }

    .intro {
        padding-left: 18px;
        padding-right: 18px
    }

    .portrait-band {
        padding-left: 18px;
        padding-right: 18px
    }

    .gallery {
        padding: 0 10px
    }

    .location-photo {
        margin-left: 14px;
        margin-right: 14px
    }

    .location-card {
        width: calc(100% - 28px)
    }
}

.family-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr auto 1.2fr;
    align-items: start;
    gap: 18px;
    margin: 24px auto 30px;
    padding: 0 12px;
    text-align: center;
}

.family-side {
    min-width: 0;
}

.family-label {
    margin-bottom: 12px;

    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #65151d;
}

.family-parents {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    line-height: 1.55;
    color: #f7f0e4;
}

.family-parents p {
    margin: 1px 0;
}

.family-parents strong {
    font-weight: 600;
}

.family-address {
    margin-top: 11px;

    font-family: "Cormorant Garamond", serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.45;

    color: #c2bdb6;
}

.family-divider {
    position: relative;
    width: 1px;
    min-height: 105px;
    margin-top: 3px;

    background: rgba(101, 21, 29, 0.22);
}

.family-divider span {
    position: absolute;
    top: 42%;
    left: 50%;

    padding: 5px 0;

    transform: translate(-50%, -50%);

    font-size: 17px;
    color: #7a1720;
    background: #f8f1e7;
}

/* =====================================
   HỘP QUÀ MỪNG
===================================== */

.gift-section {
    position: relative;

    padding: 75px 20px 90px;

    text-align: center;

    background:
        radial-gradient(
            circle at center 55%,
            rgba(255,255,255,.8),
            transparent 42%
        ),
        var(--ivory);

    overflow: hidden;
}


/* Họa tiết kiến trúc mờ phía sau */
.gift-building {
    position: absolute;
    inset: 20% 0 0;

    pointer-events: none;

    opacity: .06;

    background:
        url("../images/wedding-building.png")
        center bottom / contain
        no-repeat;
}


.gift-scene {
    position: relative;
    z-index: 2;

    max-width: 520px;
    margin: auto;
}


.gift-section .tiny {
    color: #986e6e;
}


.gift-section h2 {
    margin: 10px 0 38px;

    font:
        600 43px/1
        "Cormorant Garamond",
        serif;

    letter-spacing: .04em;

    color: #64121c;
}


/* =========================
   HỘP QUÀ CLICK
========================= */

.wedding-gift {
    position: relative;

    display: block;

    width: min(330px, 78vw);
    height: 330px;

    margin: auto;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


.gift-image {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 16px
            rgba(72,14,22,.22)
        );

    transform-origin: center bottom;

    transition:
        transform .35s ease,
        filter .35s ease;

    animation:
        giftIdle 2.6s
        ease-in-out infinite;
}


/* Hơi nhún nhẹ khi bình thường */
@keyframes giftIdle {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0);
    }

    50% {
        transform:
            translateY(-6px)
            rotate(.5deg);
    }

}


/* Hover hộp quà */
.wedding-gift:hover .gift-image {
    animation:
        giftHover .55s
        ease-in-out infinite alternate;

    filter:
        drop-shadow(
            0 22px 20px
            rgba(101,18,29,.32)
        );
}


@keyframes giftHover {

    from {
        transform:
            translateY(-3px)
            rotate(-1deg)
            scale(1.02);
    }

    to {
        transform:
            translateY(-10px)
            rotate(1deg)
            scale(1.04);
    }

}


/* Ánh sáng dưới hộp */
.gift-glow {
    position: absolute;

    z-index: 1;

    width: 65%;
    height: 30%;

    left: 50%;
    bottom: 3%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(151,29,43,.18),
            transparent 70%
        );

    filter: blur(10px);
}


/* TEXT NHẤN ĐỂ MỞ */
.gift-open-text {
    margin: 2px 0 45px;

    font:
        600 17px
        Montserrat,
        sans-serif;

    color: #711923;

    animation:
        giftTextPulse
        1.8s ease infinite;
}


@keyframes giftTextPulse {

    50% {
        opacity: .55;
    }

}


.gift-note {
    position: relative;

    max-width: 450px;

    margin: auto;

    font:
        500 21px/1.55
        "Cormorant Garamond",
        serif;

    color: #5c2023;
}


/* =====================================
   PHÁO HOA
===================================== */

.firework-layer {
    position: absolute;

    inset: -60px;

    z-index: 5;

    pointer-events: none;
}


.firework-particle {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #b88732;

    box-shadow:
        0 0 6px
        currentColor;

    animation:
        fireworkExplode
        .85s ease-out forwards;
}


@keyframes fireworkExplode {

    0% {
        opacity: 1;

        transform:
            translate(0,0)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translate(
                var(--x),
                var(--y)
            )
            scale(.15);
    }

}


/* =====================================
   POPUP
===================================== */

.gift-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 18px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.gift-modal.show {
    opacity: 1;
    visibility: visible;
}


.gift-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(20,10,10,.62);

    backdrop-filter: blur(2px);
}


/* BOX */
.gift-modal-box {
    position: relative;

    z-index: 2;

    width: min(575px, 100%);

    border-radius: 17px;

    overflow: hidden;

    background: #fff6e9;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,.35);

    transform:
        translateY(20px)
        scale(.96);

    transition:
        transform .35s
        cubic-bezier(.2,.8,.2,1);
}


.gift-modal.show
.gift-modal-box {

    transform:
        translateY(0)
        scale(1);
}


/* HEADER ĐỎ GIỐNG HÌNH */
.gift-modal-head {
    position: relative;

    padding: 26px 55px;

    background:
        #65141d;

    color: #fff;
}


.gift-modal-head h3 {
    margin: 0;

    font:
        600 20px
        "Cormorant Garamond",
        serif;

    letter-spacing: .06em;
}


.gift-modal-close {
    position: absolute;

    top: 14px;
    right: 17px;

    width: 35px;
    height: 35px;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 28px;

    cursor: pointer;

    opacity: .8;
}


/* BODY */
.gift-modal-body {
    padding:
        27px 30px
        25px;

    text-align: center;
}


.gift-modal-thanks {
    margin:
        0 0 15px;

    color: #6c2529;

    font:
        500 15px
        Montserrat,
        sans-serif;
}


/* QR */
.gift-qr-box {
    width: 192px;
    height: 192px;

    margin:
        0 auto 14px;

    padding: 10px;

    border:
        1px solid #e0d7d2;

    border-radius: 11px;

    background: #fff;

    box-shadow:
        0 4px 8px
        rgba(0,0,0,.13);
}


.gift-qr-box img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* BANK */
.gift-bank {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-bottom: 12px;

    color: #672126;
}


.gift-bank strong {
    font-size: 12px;
}


.gift-bank span {
    font-size: 11px;
}


/* DOWNLOAD */
.gift-download {
    display: inline-flex;

    align-items: center;

    padding:
        8px 13px;

    border-radius: 20px;

    background:
        #f3e5da;

    color: #681721;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;
}


/* MOBILE */
@media(max-width:480px) {

    .gift-section {
        padding:
            65px 15px
            75px;
    }

    .gift-section h2 {
        font-size: 38px;
    }

    .wedding-gift {
        width: 275px;
        height: 275px;
    }

    .gift-note {
        font-size: 19px;
    }

    .gift-modal-head {
        padding: 21px 45px;
    }

    .gift-modal-body {
        padding:
            25px 20px
            23px;
    }

    .gift-qr-box {
        width: 185px;
        height: 185px;
    }

}
