:root {
    --page: #edf0f1;
    --white: #ffffff;
    --cream: #fff8ef;
    --pink: #fde8ee;
    --orange: #c77429;
    --terracotta: #b85f38;
    --champagne: #f3d7b7;
    --brown: #61432f;
    --text: #4c4c4c;
    --muted: #888;
    --shadow: 0 22px 60px rgba(0, 0, 0, .12);
    --soft-shadow: 0 18px 48px rgba(97, 67, 47, .14);
    --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
    --motion-duration: .86s;
    --fs-xs: clamp(12px, .78vw, 14px);
    --fs-sm: clamp(13px, .9vw, 15px);
    --fs-base: clamp(14px, 1vw, 17px);
    --fs-md: clamp(16px, 1.25vw, 20px);
    --fs-lg: clamp(22px, 2vw, 32px);
    --fs-xl: clamp(34px, 4vw, 58px);
    --fs-display: clamp(58px, 7vw, 104px);
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    transition-timing-function: var(--ease-luxury);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .42;
    background:
        radial-gradient(circle at 12% 18%, rgba(243, 215, 183, .42) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 24%, rgba(184, 95, 56, .16) 0 2px, transparent 3px),
        radial-gradient(circle at 34% 72%, rgba(255, 255, 255, .7) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 82%, rgba(243, 215, 183, .35) 0 2px, transparent 3px);
    background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px;
    animation: floatingParticle 18s linear infinite;
}

body.modal-open {
    overflow: hidden;
}

body.is-loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.top-hero,
main,
.thanks-footer {
    width: 100%;
    margin: 0 auto;
}

.top-hero,
main,
.thanks-footer,
.floating-actions,
.wish-toast-stack {
    position: relative;
    z-index: 2;
}

.top-hero {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto;
    background: var(--page);
    overflow: visible;
    animation: pageHeroIn 1s ease both;
}

.hero-slider {
    min-height: 0;
    height: 100vh;
    height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: -26px;
    background-position: center;
    background-size: cover;
    filter: blur(11px) saturate(.95);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.1s var(--ease-luxury), transform 5.8s ease-out;
    z-index: -2;
}

.hero-slide.is-active {
    opacity: .78;
    transform: scale(1);
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(237, 240, 241, .2);
    z-index: -1;
}

.hero-stage {
    width: min(1040px, 74vw);
    height: calc(100% - clamp(20px, 4vh, 38px));
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(48, 32, 24, .24);
    background: #ddd;
    animation: heroCardIn 1.15s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-stage-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s var(--ease-luxury), transform 6s ease-out;
}

.hero-stage-image.is-active {
    opacity: 1;
    transform: scale(1.015);
    animation: cinematicZoom 12s ease-out both;
}

.snow-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.snow-dot {
    position: absolute;
    top: -20px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    animation: snowFall linear forwards;
}

.petal {
    position: fixed;
    top: -30px;
    z-index: 8;
    color: rgba(184, 95, 56, .46);
    pointer-events: none;
    filter: blur(.1px);
    animation: petalFall linear forwards;
}

.save-date {
    min-height: auto;
    padding: clamp(58px, 7vh, 84px) 20px clamp(48px, 6vh, 72px);
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    background: #f3f6f7;
    overflow: hidden;
}

.script-title {
    margin: 0;
    color: #333;
    font-family: "Great Vibes", cursive;
    font-size: clamp(68px, 8vw, 118px);
    line-height: .82;
    animation: floatText 4.8s ease-in-out infinite;
}

.save-date h1,
.couple-names {
    margin: 16px 0 4px;
    color: var(--orange);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 600;
    letter-spacing: .01em;
}

.couple-names span,
.footer-names span,
.invite-couple span,
.couple-row h2 {
    background: linear-gradient(105deg, #9b6428 0%, #f4d69b 24%, #fff4cb 45%, #c99145 66%, #8f5726 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: champagneGold 8.5s var(--ease-luxury) infinite alternate;
    transition: filter .7s var(--ease-luxury), text-shadow .7s var(--ease-luxury);
}

.couple-names:hover span,
.footer-names:hover span,
.invite-couple:hover span,
.couple-row h2:hover {
    filter: brightness(1.06);
    text-shadow: 0 0 18px rgba(244, 214, 155, .34);
}

.couple-names,
.footer-names {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    row-gap: .02em;
    text-align: center;
    line-height: 1.12;
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.save-date .couple-names {
    width: min(900px, 100%);
}

.couple-names span,
.footer-names span {
    min-width: 0;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.couple-names span:first-child,
.footer-names span:first-child {
    text-align: center;
}

.couple-names span:last-child,
.footer-names span:last-child {
    text-align: center;
}

.couple-names em,
.footer-names em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    color: var(--orange);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: .62em;
    font-weight: inherit;
    font-style: normal;
    line-height: 1;
    transform: none;
}

.save-date time {
    display: block;
    color: #777;
    font-size: var(--fs-base);
    font-weight: 700;
}

.save-date p:not(.script-title) {
    width: min(760px, 100%);
    margin: 18px auto 16px;
    color: #777;
    font-size: var(--fs-base);
}

.countdown-panel {
    width: min(760px, 100%);
    margin: 10px auto 18px;
    padding: clamp(12px, 2vw, 18px);
    border: 1px solid rgba(199, 116, 41, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(255, 248, 239, .56));
    box-shadow: 0 18px 46px rgba(97, 67, 47, .1);
    backdrop-filter: blur(5px);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.countdown-item {
    min-height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 12px 8px;
    border: 1px solid rgba(199, 116, 41, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 32px rgba(97, 67, 47, .08);
    transition: transform .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury), border-color .7s var(--ease-luxury);
}

.countdown-item:hover {
    transform: translateY(-3px);
    border-color: rgba(199, 116, 41, .36);
    box-shadow: 0 20px 42px rgba(97, 67, 47, .13);
}

.countdown-item strong {
    color: var(--terracotta);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1;
}

.countdown-item span {
    margin-top: 6px;
    color: #76675d;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.countdown-complete {
    display: none;
    color: var(--terracotta) !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-lg) !important;
    font-weight: 700;
}

.countdown-panel.is-complete .countdown-grid {
    display: none;
}

.countdown-panel.is-complete .countdown-complete {
    display: block;
}

.mini-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mini-nav a,
.card-actions a,
.event-ticket a,
.rsvp-form button,
.wish-form-wrap button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    background: var(--terracotta);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.mini-nav a {
    min-height: 42px;
    padding: 0 22px;
    font-size: var(--fs-sm);
}

.save-date > * {
    animation: riseIn .9s var(--ease-luxury) both;
}

.save-date > *:nth-child(2) {
    animation-delay: .16s;
}

.save-date > *:nth-child(3) {
    animation-delay: .28s;
}

.save-date > *:nth-child(4) {
    animation-delay: .4s;
}

.save-date > *:nth-child(5) {
    animation-delay: .52s;
}

.save-date > *:nth-child(6) {
    animation-delay: .64s;
}

.save-date .script-title {
    animation: riseIn .9s var(--ease-luxury) both, floatText 4.8s ease-in-out .95s infinite;
}

.section,
.event-band,
.gift-band,
.thanks-footer {
    min-height: auto;
    padding: clamp(54px, 5.8vw, 86px) 24px;
    display: grid;
    align-items: center;
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.white-section {
    background: var(--white);
}

.gray-section,
.pink-section {
    background: var(--page);
}

.section-heading {
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading span {
    display: block;
    color: #888;
    font-size: clamp(16px, 1.2vw, 22px);
    font-weight: 600;
    line-height: 1.45;
}

.section-heading h2 {
    margin: 0;
    color: var(--orange);
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-xl);
    font-weight: 700;
}

.section-heading.is-visible h2 {
    animation: headingLetter .8s ease both;
}

.section-heading h2,
.script-title,
.thanks-footer h2 {
    text-wrap: balance;
}

.invitation-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border-radius: 12px;
    filter: drop-shadow(0 28px 52px rgba(97, 67, 47, .16));
    transition: transform .7s var(--ease-luxury), filter .7s var(--ease-luxury);
}

.invitation-card:hover {
    transform: translateY(-4px) scale(1.006);
    filter: drop-shadow(0 34px 64px rgba(97, 67, 47, .2));
}

.family-grid,
.invitation-body {
    background: #f2eadf;
    border-left: 1px dashed var(--orange);
    border-right: 1px dashed var(--orange);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 26px 30px 8px;
    border-top: 1px dashed var(--orange);
    border-radius: 10px 10px 0 0;
}

.family-grid > div:first-child {
    border-right: 1px solid rgba(0, 0, 0, .12);
}

.family-grid h3 {
    margin: 0 0 8px;
    color: #3f3a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-lg);
}

.family-grid strong {
    display: block;
    color: #3f3a38;
    font-size: var(--fs-md);
    line-height: 1.65;
}

.family-grid p {
    margin: 10px auto 0;
    width: min(230px, 100%);
    color: #68635f;
    font-size: var(--fs-base);
}

.invitation-body {
    padding: 20px 34px 34px;
    border-bottom: 1px dashed var(--orange);
    border-radius: 0 0 10px 10px;
}

.invite-title {
    margin: 0;
    color: #3f3a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    text-transform: uppercase;
}

.invite-guest {
    margin: 4px 0 22px;
    color: var(--orange);
    font-size: var(--fs-lg);
    font-weight: 700;
}

.invite-copy {
    width: min(560px, 100%);
    margin: 0 auto 18px;
    color: #4d4a48;
    font-size: var(--fs-md);
    line-height: 1.8;
    text-transform: uppercase;
}

.invite-couple {
    display: grid;
    gap: 8px;
    margin: 0 auto 22px;
    color: #f04a43;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: var(--fs-xl);
    font-weight: 600;
    line-height: .95;
}

.invite-couple em {
    color: #f04a43;
    font-size: .55em;
    font-style: normal;
}

.invite-time-label {
    margin: 0;
    color: #5d5653;
    font-size: var(--fs-md);
    text-transform: uppercase;
}

.invite-clock {
    display: block;
    color: #3f3a38;
    font-size: var(--fs-md);
    text-transform: uppercase;
}

.calendar-box {
    width: min(430px, 100%);
    margin: 6px auto 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(108px, 12vw, 132px) minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    height: 108px;
    min-height: 0;
    padding: 0;
    color: var(--orange);
    border-top: 1px solid #d9c1ac;
    border-bottom: 1px solid #d9c1ac;
}

.calendar-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-display);
    line-height: .78;
    color: #f04a43;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: center;
    transform: translateY(-.16em);
}

.calendar-box small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    width: 100%;
    color: #3f3a38;
    font-size: var(--fs-md);
    line-height: 1;
    font-weight: 700;
    text-align: center;
    transform: translateY(-.04em);
}

.calendar-box small:first-child {
    text-transform: uppercase;
}

.lunar-text {
    color: #68635f;
    font-size: var(--fs-base);
}

.venue-name {
    margin: 28px 0 4px;
    color: #3f3a38;
    font-size: var(--fs-md);
    font-weight: 800;
    text-transform: uppercase;
}

.address {
    font-style: italic;
    color: #4d4a48;
    font-size: var(--fs-lg);
}

.welcome-line {
    margin: 28px 0 0;
    color: #3f3a38;
    font-family: "Great Vibes", cursive;
    font-size: clamp(26px, 2.4vw, 38px);
    text-decoration: underline;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 8px;
    padding: 14px 18px;
    background: #f0e6da;
    border-radius: 0 0 8px 8px;
}

.card-actions a {
    min-height: 56px;
    gap: 8px;
    border-radius: 5px;
    font-size: var(--fs-md);
    background: var(--terracotta);
    box-shadow: 0 12px 24px rgba(184, 95, 56, .22);
}

.couple-section {
    background: var(--white);
}

.couple-inner {
    display: grid;
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
}

.couple-row {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1fr);
    gap: clamp(26px, 4.5vw, 58px);
    align-items: center;
    padding: clamp(18px, 2.4vw, 28px);
    text-align: left;
    background: #fff;
    border: 1px solid rgba(199, 116, 41, .14);
    border-radius: 10px;
    box-shadow: var(--soft-shadow);
}

.couple-inner::before {
    content: "\F417";
    width: clamp(46px, 5vw, 62px);
    height: clamp(46px, 5vw, 62px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff4ea;
    color: #d54f65;
    font-family: "bootstrap-icons";
    font-size: clamp(22px, 2.5vw, 30px);
    box-shadow: 0 14px 34px rgba(184, 95, 56, .18);
    order: 2;
    justify-self: center;
    margin: -18px auto;
}

.couple-row--reverse img {
    order: 0;
}

.couple-row:first-child {
    order: 1;
}

.couple-row--reverse {
    order: 3;
}

.couple-row img {
    width: min(360px, 100%);
    aspect-ratio: 1;
    margin: 0;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 42px rgba(97, 67, 47, .16);
    transition: transform .75s var(--ease-luxury), box-shadow .75s var(--ease-luxury);
}

.couple-row img:hover {
    transform: scale(1.02);
    box-shadow: 0 26px 54px rgba(97, 67, 47, .2);
}

.couple-row > div {
    position: relative;
    padding-bottom: 18px;
}

.couple-row > div::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(180px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
}

.couple-row.is-visible > div::after {
    animation: drawLine .75s ease .35s both;
}

.couple-row small {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.couple-row h2 {
    margin: 2px 0 12px;
    color: var(--brown);
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-xl);
}

.couple-row p {
    margin: 0;
    color: #666;
    font-size: var(--fs-base);
    text-align: left;
}

.story-card {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 4vw, 48px);
    background: var(--white);
    border: 1px solid rgba(199, 116, 41, .14);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    position: relative;
}

.story-line {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .92fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: 30px 0 30px 42px;
    border-bottom: 1px solid #eee1d4;
    opacity: .72;
    transition: opacity .75s var(--ease-luxury), transform .75s var(--ease-luxury);
}

.story-line::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(184, 95, 56, .42), transparent);
}

.story-line::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--terracotta);
    box-shadow: 0 0 0 8px rgba(184, 95, 56, .09);
    transform: translateY(-50%) scale(.75);
    transition: transform .75s var(--ease-luxury), box-shadow .75s var(--ease-luxury), border-color .75s var(--ease-luxury);
}

.story-line.is-visible,
.story-line.is-active {
    opacity: 1;
}

.story-line.is-visible::after,
.story-line.is-active::after {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 12px rgba(184, 95, 56, .12);
}

.story-line:last-child {
    border-bottom: 0;
}

.story-line img {
    width: 100%;
    height: clamp(230px, 28vw, 320px);
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(97, 67, 47, .13);
    transition: transform .85s var(--ease-luxury), filter .7s var(--ease-luxury);
}

.story-line img:hover,
.wide-photo:hover,
.rsvp-avatar:hover,
.thanks-footer img:hover {
    transform: scale(1.02);
}

.story-line time {
    color: var(--orange);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.story-line h3 {
    margin: 4px 0 8px;
    color: #555;
    font-size: var(--fs-lg);
}

.story-line p {
    margin: 0;
    color: #777;
    font-size: var(--fs-base);
}

.album-grid {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
}

.album-grid button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
}

.album-grid img,
.album-grid button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .85s var(--ease-luxury), filter .7s var(--ease-luxury);
}

.album-grid button:hover img,
.album-grid button:focus-visible img {
    transform: scale(1.06);
    filter: saturate(1.06) brightness(1.03);
}

.album-grid button:focus-visible {
    outline: 3px solid rgba(184, 95, 56, .35);
    outline-offset: 3px;
}

.album-grid button:nth-child(1) {
    grid-row: span 2;
}

.album-grid button:nth-child(4),
.album-grid button:nth-child(7) {
    grid-column: span 2;
}

.video-section {
    text-align: center;
}

.video-frame {
    width: min(860px, 100%);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #222;
    box-shadow: var(--shadow);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.event-band {
    background:
        linear-gradient(rgba(237, 240, 241, .86), rgba(237, 240, 241, .86)),
        var(--section-bg, linear-gradient(#edf0f1, #edf0f1)) center/cover;
    background-attachment: fixed;
    background-position: center var(--parallax-y, 0px);
}

.event-wrap {
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.event-wrap--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.event-ticket {
    min-height: 300px;
    padding: 34px 28px 30px;
    text-align: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    box-shadow: var(--soft-shadow);
    transition: transform .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury);
}

.event-ticket:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 52px rgba(97, 67, 47, .18);
}

.event-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff2e4;
    color: var(--terracotta);
    font-size: 26px;
}

.event-ticket h3 {
    margin: 0 0 14px;
    color: #555;
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-lg);
}

.event-ticket time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: var(--fs-base);
    font-weight: 700;
}

.event-ticket p {
    min-height: 62px;
    margin: 12px 0 18px;
    display: grid;
    grid-template-columns: 20px minmax(0, max-content);
    justify-content: center;
    align-items: start;
    gap: 8px;
    color: #777;
    font-size: var(--fs-base);
    text-align: left;
}

.event-ticket p i {
    color: var(--terracotta);
    line-height: 1.7;
    text-align: center;
}

.event-ticket a {
    min-height: 46px;
    gap: 8px;
    border-radius: 999px;
    background: var(--terracotta);
    box-shadow: 0 12px 28px rgba(184, 95, 56, .24);
}

.rsvp-box {
    width: min(720px, 100%);
    margin: 0 auto 32px;
    padding: 38px 34px 34px;
    text-align: center;
    background: var(--pink);
    border: 1px solid #f2cbd5;
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    transition: transform .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury);
}

.rsvp-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 58px rgba(97, 67, 47, .18);
}

.rsvp-avatar {
    width: 112px;
    height: 112px;
    margin: -76px auto 12px;
    border: 6px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.rsvp-form,
.wish-form-wrap form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rsvp-form input,
.rsvp-form select,
.wish-form-wrap input,
.wish-form-wrap textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #dfc8bd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font: inherit;
    font-size: var(--fs-base);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.wish-form-wrap input:focus,
.wish-form-wrap textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(184, 95, 56, .12);
    outline: 0;
}

.rsvp-form button,
.wish-form-wrap button,
.form-message,
.wish-form-wrap textarea {
    grid-column: 1 / -1;
}

.rsvp-form button,
.wish-form-wrap button {
    min-height: 54px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--terracotta), var(--orange));
    box-shadow: 0 14px 30px rgba(184, 95, 56, .24);
    cursor: pointer;
    transition: transform .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury), filter .7s var(--ease-luxury);
}

.rsvp-form button:hover,
.rsvp-form button:focus-visible,
.wish-form-wrap button:hover,
.wish-form-wrap button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(184, 95, 56, .3);
    filter: brightness(1.03);
    outline: 0;
}

.rsvp-form button:active,
.wish-form-wrap button:active {
    transform: translateY(0) scale(.99);
}

.form-message {
    min-height: 20px;
    color: #555;
    font-size: var(--fs-sm);
    font-weight: 700;
}

.wide-photo {
    width: min(760px, 100%);
    margin: 0 auto;
    max-height: 440px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform .85s var(--ease-luxury);
}

.gift-band {
    text-align: center;
    background:
        linear-gradient(rgba(237, 240, 241, .84), rgba(237, 240, 241, .84)),
        var(--section-bg, linear-gradient(#edf0f1, #edf0f1)) center/cover;
    background-attachment: fixed;
    background-position: center var(--parallax-y, 0px);
}

.gift-card {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 30px 26px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 12px;
    background: rgba(255, 248, 239, .88);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(4px);
    transition: transform .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury);
}

.gift-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 26px 58px rgba(97, 67, 47, .2);
}

.gift-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    background: linear-gradient(135deg, var(--terracotta), #d88953);
    color: #fff;
    font-size: clamp(32px, 3vw, 44px);
    cursor: pointer;
    transition: transform .7s var(--ease-luxury), background .7s var(--ease-luxury);
}

.gift-icon:hover,
.gift-icon:focus-visible {
    background: rgba(199, 116, 41, .78);
    transform: translateY(-3px) scale(1.03);
    outline: 0;
}

.gift-hint {
    margin: 2px 0 8px;
    color: var(--terracotta);
    font-size: var(--fs-md);
    font-weight: 800;
}

.gift-card p {
    margin: 0;
    color: #75665c;
    font-size: var(--fs-sm);
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 20px;
}

.gift-modal.is-open {
    display: grid;
}

.gift-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 35, 35, .58);
    backdrop-filter: blur(5px);
}

.gift-modal-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    animation: modalIn .28s cubic-bezier(.2, .8, .2, 1);
    background: #fff;
    border-radius: 12px;
}

.gift-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: #111;
    font-size: 14px;
    cursor: pointer;
}

.gift-modal-heading {
    padding: 28px 54px 12px;
    text-align: center;
}

.gift-modal-heading h3 {
    margin: 0 0 10px;
    color: var(--terracotta);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.05;
}

.gift-modal-heading p {
    margin: 0;
    color: #333;
    font-size: var(--fs-base);
    line-height: 1.55;
}

.gift-info {
    width: min(360px, 100%);
    margin: 0 auto;
    padding: 12px 20px 24px;
    background: #fff;
}

.gift-info img {
    width: 210px;
    margin: 0 auto 12px;
}

.gift-info p,
.gift-info span {
    display: block;
    margin: 0;
    color: #777;
    font-size: var(--fs-base);
}

.gift-info strong {
    display: block;
    color: var(--orange);
    font-size: var(--fs-lg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wishes-section {
    text-align: center;
}

.wish-intro {
    width: min(820px, 100%);
    margin: 0 auto 28px;
    color: #777;
    font-size: var(--fs-base);
}

.wish-form-wrap {
    width: min(820px, 100%);
    margin: 32px auto 0;
    padding: clamp(20px, 3vw, 30px);
    background: #fff8ef;
    border: 1px solid rgba(199, 116, 41, .14);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
}

.wish-list {
    max-height: 220px;
    margin-top: 18px;
    overflow: auto;
    text-align: left;
}

.wish-list blockquote {
    margin: 0 0 12px;
    padding: 16px 18px;
    background: #fff;
    border-left: 4px solid var(--champagne);
    border-radius: 8px;
    color: #666;
    font-size: var(--fs-base);
}

.wish-list cite {
    display: block;
    margin-top: 5px;
    color: var(--orange);
    font-weight: 700;
}

.thanks-footer {
    text-align: center;
    background: #fff;
    justify-items: center;
}

.thanks-footer h2 {
    margin: 0;
    color: #777;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 6vw, 86px);
    letter-spacing: .04em;
}

.see-you {
    margin: 8px 0 0;
    color: #76675d;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: var(--fs-md);
    font-weight: 600;
}

.see-you--vi {
    margin-top: 2px;
    color: var(--terracotta);
}

.footer-names {
    margin: 8px auto 18px;
    color: var(--orange);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 600;
}

.footer-names {
    width: min(520px, 100%);
    font-size: var(--fs-lg);
}

.thanks-footer .footer-names em {
    color: #d83b3b;
}

.thanks-footer img {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
}

.music-toggle,
.float-action {
    position: fixed;
    z-index: 30;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 32;
    display: grid;
    gap: 10px;
}

.float-action,
.music-toggle {
    position: static;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .76);
    background: linear-gradient(135deg, #fff6e9, var(--champagne));
    color: var(--terracotta);
    cursor: pointer;
    opacity: .92;
    transform: translateY(8px);
    transition: transform .7s var(--ease-luxury), opacity .7s var(--ease-luxury), box-shadow .7s var(--ease-luxury), background .7s var(--ease-luxury);
}

.float-action:hover,
.float-action:focus-visible,
.music-toggle:hover,
.music-toggle:focus-visible {
    opacity: 1;
    transform: translateY(3px) scale(1.05);
    box-shadow: 0 16px 34px rgba(97, 67, 47, .25);
    outline: 0;
}

.music-toggle.is-playing {
    background: linear-gradient(135deg, var(--terracotta), var(--orange));
    color: #fff;
    animation: musicPulse 1.8s ease-in-out infinite;
}

.music-toggle.needs-action {
    animation: pulseButton 1.35s ease-in-out 2;
}

.float-action {
    font-size: 22px;
    opacity: .45;
    animation: pulseButton 3.8s ease-in-out infinite;
}

.float-action.is-visible,
.float-action.is-active,
.music-toggle {
    opacity: 1;
}

.float-action.is-active {
    animation: pulseButton 1.5s ease-in-out infinite;
}

.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(243, 215, 183, .32), transparent 34%),
        linear-gradient(135deg, #fffdf8, #f8e8dc);
    opacity: 1;
    visibility: visible;
    transition: opacity .55s ease, visibility .55s ease;
}

.page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-card {
    width: min(320px, calc(100vw - 40px));
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 28px;
    border: 1px solid rgba(184, 95, 56, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 24px 70px rgba(97, 67, 47, .18);
    backdrop-filter: blur(8px);
    animation: preloaderFloat 1.8s ease-in-out infinite;
}

.preloader-ring {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(184, 95, 56, .22);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: ringSpin 1.2s linear infinite;
}

.preloader-ring::after {
    content: "\F417";
    font-family: "bootstrap-icons";
    color: var(--terracotta);
    font-size: 25px;
    animation: counterSpin 1.2s linear infinite;
}

.preloader-card strong {
    color: var(--terracotta);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: var(--fs-lg);
    line-height: 1.15;
    text-align: center;
}

.preloader-card small {
    color: #846a5d;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.lightbox-modal,
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(35, 29, 25, .72);
    backdrop-filter: blur(7px);
}

.lightbox-modal.is-open,
.success-modal.is-open {
    display: grid;
}

.lightbox-modal figure {
    width: min(1080px, 100%);
    max-height: calc(100dvh - 80px);
    margin: 0;
    display: grid;
    place-items: center;
}

.lightbox-modal img {
    max-height: calc(100dvh - 88px);
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
    animation: lightboxIn .28s ease both;
}

.lightbox-close,
.lightbox-nav,
.success-dialog button {
    border: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 246, 233, .92);
    color: var(--terracotta);
    cursor: pointer;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 24px;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.success-modal {
    background: transparent;
}

.success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 29, 25, .58);
    backdrop-filter: blur(5px);
}

.success-dialog {
    position: relative;
    width: min(390px, 100%);
    padding: 32px 28px;
    text-align: center;
    border-radius: 16px;
    background: #fffaf5;
    box-shadow: 0 30px 90px rgba(35, 29, 25, .28);
    animation: modalIn .28s cubic-bezier(.2, .8, .2, 1);
}

.success-dialog button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
}

.success-dialog span {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff0e5;
    color: var(--terracotta);
    font-size: 26px;
}

.success-dialog h3 {
    margin: 0 0 8px;
    color: var(--terracotta);
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-lg);
}

.success-dialog p {
    margin: 0;
    color: #75665c;
}

.heart {
    position: fixed;
    top: -24px;
    z-index: 9;
    color: rgba(199, 116, 41, .55);
    pointer-events: none;
    animation: heartFall linear forwards;
}

.wish-toast-stack {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 40;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}

.wish-toast {
    overflow: hidden;
    padding: 16px 18px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
    transform: translateX(110%);
    opacity: 0;
    animation: toastIn .45s ease forwards, toastOut .45s ease 5.5s forwards;
    position: relative;
}

.wish-toast::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #20d6a2, #8d76ff, #ff7ba7);
    animation: toastBar 5.5s linear forwards;
}

.wish-toast strong {
    display: block;
    color: #333;
    font-size: var(--fs-sm);
}

.wish-toast p {
    margin: 4px 0 0;
    color: #666;
    font-size: var(--fs-xs);
}

.text-success {
    color: #257b4a;
}

.text-danger {
    color: #ba3131;
}

@keyframes heartFall {
    to {
        transform: translateY(106vh) rotate(180deg);
        opacity: 0;
    }
}

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

@keyframes snowFall {
    to {
        transform: translate3d(var(--drift), 105vh, 0);
        opacity: 0;
    }
}

@keyframes floatText {
    0%,
    100% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(18px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pageHeroIn {
    from {
        opacity: 0;
        transform: scale(.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cinematicZoom {
    from {
        transform: scale(1.015);
    }

    to {
        transform: scale(1.075);
    }
}

@keyframes headingLetter {
    from {
        letter-spacing: .08em;
    }

    to {
        letter-spacing: 0;
    }
}

.reveal,
[data-reveal],
[data-animate] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(6px);
    transition: opacity var(--motion-duration) var(--ease-luxury), transform var(--motion-duration) var(--ease-luxury), filter var(--motion-duration) var(--ease-luxury);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-animate="up"],
.reveal-up,
[data-reveal="text"] {
    transform: translateY(30px);
}

[data-animate="left"],
.reveal-left {
    transform: translate3d(-42px, 0, 0);
}

[data-animate="right"],
.reveal-right {
    transform: translate3d(42px, 0, 0);
}

[data-animate="scale"],
.reveal-scale,
[data-reveal="card"] {
    transform: translateY(50px) scale(.94);
}

[data-animate="blur"],
.reveal-blur {
    transform: translateY(24px);
    filter: blur(8px);
}

[data-animate="image"],
[data-reveal="image"] {
    transform: translateY(40px) scale(.96);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal.is-visible,
[data-animate].is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-blur.is-visible,
.stagger-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.reveal-up.is-visible,
[data-animate="up"].is-visible,
[data-reveal="up"].is-visible,
[data-reveal="text"].is-visible,
.stagger-item.is-visible {
    animation: textVipIn var(--motion-duration) var(--ease-luxury) both;
    animation-delay: var(--reveal-delay, 0ms);
}

.section-heading h2.is-visible,
.script-title.is-visible,
.thanks-footer h2.is-visible {
    animation: textVipIn .92s var(--ease-luxury) both, headingLetter .92s ease-out both;
    animation-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.stagger-item {
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-slide-up {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(6px);
    transition:
        opacity .9s var(--ease-luxury),
        transform .9s var(--ease-luxury),
        filter .9s var(--ease-luxury);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform, filter;
}

.motion-slide-up.motion-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: softSlideUp .9s var(--ease-luxury) both;
    animation-delay: var(--motion-delay, 0ms);
}

@keyframes softSlideUp {
    from {
        opacity: 0;
        transform: translateY(34px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pulseButton {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes toastIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

@keyframes toastBar {
    to {
        width: 0;
    }
}

@keyframes preloaderFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

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

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

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes musicPulse {
    0%,
    100% {
        transform: translateY(8px) scale(1);
    }

    50% {
        transform: translateY(8px) scale(1.08) rotate(8deg);
    }
}

@keyframes textVipIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes drawLine {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes floatingParticle {
    to {
        background-position: 0 220px, 0 260px, 0 300px, 0 240px;
    }
}

@keyframes champagneGold {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@media (max-width: 1280px) {
    .section-inner {
        width: min(1040px, 100%);
    }

    .section,
    .event-band,
    .gift-band,
    .thanks-footer {
        padding-top: clamp(48px, 5vw, 76px);
        padding-bottom: clamp(48px, 5vw, 76px);
    }
}

@media (max-width: 1024px) {
    .hero-stage {
        width: min(820px, 82vw);
    }

    .section-inner {
        width: min(900px, 100%);
    }

    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {
    .top-hero {
        height: auto;
        min-height: 0;
    }

    .hero-slider {
        height: 100dvh;
        min-height: 0;
    }

    .hero-stage {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .hero-stage-image {
        object-fit: contain;
        background: rgba(237, 240, 241, .72);
    }

    .section,
    .event-band,
    .gift-band,
    .thanks-footer {
        min-height: auto;
        padding: 50px 16px;
    }

    .couple-row,
    .couple-row--reverse,
    .couple-inner,
    .event-wrap,
    .rsvp-form,
    .wish-form-wrap form {
        grid-template-columns: 1fr;
    }

    .couple-inner::before {
        order: 2;
        margin: -8px auto;
    }

    .couple-row--reverse {
        order: 3;
    }

    .couple-row--reverse img {
        order: 0;
    }

    .couple-row {
        text-align: center;
        gap: 20px;
    }

    .couple-row img {
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .couple-row p {
        text-align: center;
    }

    .couple-row > div::after {
        left: 50%;
    }

    .story-line,
    .story-line:nth-of-type(odd) {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 0 30px 26px;
    }

    .story-line img {
        width: 100%;
        height: 280px;
        order: 0;
    }

    .story-line::before {
        left: 8px;
    }

    .story-line::after {
        left: 1px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }

    .album-grid button:nth-child(1),
    .album-grid button:nth-child(4),
    .album-grid button:nth-child(7) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .wish-toast-stack {
        top: 18px;
        right: 16px;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .family-grid > div:first-child {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, .12);
        padding-bottom: 18px;
    }

    .invitation-body {
        padding: 20px 18px 28px;
    }

    .invite-copy {
        font-size: var(--fs-base);
    }

    .calendar-box {
        grid-template-columns: 1fr;
        gap: 2px;
        height: auto;
        padding: 8px 0;
    }

    .calendar-box span,
    .calendar-box small {
        height: auto;
        transform: none;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

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

    .event-band,
    .gift-band {
        background-attachment: scroll;
        background-position: center;
    }

    .floating-actions {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .float-action,
    .music-toggle {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: var(--fs-sm);
    }

    .hero-slider {
        min-height: 0;
    }

    .hero-stage {
        height: 100%;
        min-height: 0;
    }

    .save-date {
        min-height: 100dvh;
        padding: 46px 14px 54px;
    }

    .script-title {
        font-size: clamp(52px, 15vw, 72px);
    }

    .couple-names {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.18;
    }

    .mini-nav a {
        min-height: 36px;
        padding: 0 14px;
        font-size: var(--fs-xs);
    }

    .story-line {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-line img {
        width: 100%;
        height: 240px;
    }

    .countdown-item {
        min-height: 82px;
    }

    .album-grid {
        grid-auto-rows: 150px;
        gap: 6px;
    }

    .music-toggle,
    .float-action {
        width: 46px;
        height: 46px;
        bottom: 16px;
    }

    .family-grid {
        padding: 22px 18px 8px;
    }

    .invite-couple {
        font-size: clamp(34px, 10vw, 42px);
    }

    .calendar-box span {
        font-size: clamp(50px, 14vw, 62px);
    }

    .address {
        font-size: var(--fs-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: smooth;
    }

    .page-preloader {
        display: none;
    }

    body::before {
        animation: none;
        opacity: .18;
    }

    .hero-stage-image.is-active,
    .music-toggle.is-playing,
    .float-action,
    .snow-dot,
    .heart,
    .petal {
        animation: none !important;
    }
}
