:root {
    --ivory: #FBFAF7;
    --ivory-soft: #F2EDE7;
    --cream: #EDE6DE;
    --gold: #b9924b;
    --gold-deep: #8F6F34;
    --gold-light: #D8C184;
    --taupe: #B8A790;
    --taupe-soft: rgba(184, 167, 144, 0.18);
    --charcoal: #24211E;
    --muted: #756C63;
    --white: #ffffff;
    --line: rgba(184, 167, 144, 0.3);
    --shadow: 0 24px 72px rgba(55, 45, 30, 0.11);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --serif: 'Cormorant Garamond', serif;
    --script: 'Great Vibes', cursive;
    --sans: 'Inter', sans-serif;
    --arima: 'Arima', system-ui;
    --nunito: 'Nunito', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--charcoal);
    background:
        radial-gradient(circle at 8% 0%, rgba(185, 146, 75, 0.1), transparent 34rem),
        radial-gradient(circle at 94% 18%, var(--taupe-soft), transparent 32rem),
        var(--ivory);
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 42px));
    margin: 0 auto;
}

.section {
    padding: 86px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1080px, calc(100% - 42px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(184, 167, 144, 0.34), rgba(185, 146, 75, 0.24), transparent);
    z-index: 0;
}

.section:first-of-type::before {
    display: none;
}

.section .container {
    position: relative;
    z-index: 2;
}

.bg-white {
    background:
        linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, var(--ivory) 9%, var(--ivory) 91%, rgba(251, 250, 247, 0) 100%),
        radial-gradient(circle at 12% 12%, rgba(185, 146, 75, 0.08), transparent 28rem),
        var(--ivory);
}

.bg-soft {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(242, 237, 231, 0) 0%, var(--ivory-soft) 9%, var(--ivory-soft) 91%, rgba(242, 237, 231, 0) 100%),
        radial-gradient(circle at 86% 12%, var(--taupe-soft), transparent 28rem),
        var(--ivory-soft);
}

.bg-soft::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg.png");
  background-size: 100% auto;      /* fit width */
  background-repeat: repeat-y;     /* repeat vertical */
  background-position: top center;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.bg-soft > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-deep);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eyebrow::before,
.eyebrow::after {
    display: none;
    content: none;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 7.6vw, 3.8rem);
    line-height: 0.96;
    font-weight: 500;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 18px;
}

.section-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 0.28s ease;
    min-height: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--white);
    box-shadow: 0 16px 36px rgba(138, 106, 47, 0.24);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(138, 106, 47, 0.3);
}

.btn-outline {
    background: rgba(255, 250, 240, 0.7);
    color: var(--gold-deep);
    border: 1px solid var(--line);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
    transform: translateY(-3px);
}

.btn ion-icon {
    font-size: 1rem;
    margin-top: -1px;
    flex: 0 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(185, 146, 75, 0.18);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.ornament {
    width: 120px;
    height: 20px;
    margin: 26px auto;
    position: relative;
}

.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 44px;
    height: 1px;
    background: var(--gold-light);
}

.ornament::before {
    left: 0;
}

.ornament::after {
    right: 0;
}

.ornament span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 13px;
    height: 13px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    background: var(--ivory);
}

/* Opening Cover */
.opening-cover {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(35, 33, 30, 0.38), rgba(0, 0, 0, 0.42)),
        url('../img/modal-bg.jpg') center/cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-cover.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-card {
    width: min(580px, 100%);
    padding: 20px;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--white);
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.48);
}

.cover-card::before {
    display: none;
    content: none;
}

.cover-monogram {
    width: clamp(4.2rem, 12vw, 5.8rem);
    height: clamp(4.2rem, 12vw, 5.8rem);
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--white);
}

.cover-small {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 12px;
}

.cover-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 12vw, 3.8rem);
    line-height: 0.85;
    font-weight: 500;
    letter-spacing: -0.06em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.cover-date,
.guest-label,
.cover-message {
    color: rgba(255, 255, 255, 0.9);
}


.cover-date {
    line-height: 1.8;
    margin-bottom: 16px;
}

.guest-label {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.guest-name {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--gold-light);
    margin-bottom: 2px;
}

.cover-message {
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 16px;
}

@media (max-width: 480px) {
    .cover-card .btn {
        width: auto;
    }
}

/* YouTube Music */
.youtube-music-holder {
    position: fixed;
    width: 1px;
    height: 1px;
    right: -999px;
    bottom: -999px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    box-shadow: 0 16px 34px rgba(34, 30, 24, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: 0.5s ease;
}

.music-toggle.playing ion-icon {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(940px, calc(100% - 28px));
    z-index: 100;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(185, 146, 75, 0.18);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 40px rgba(34, 30, 24, 0.08);
}

.nav-brand {
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--gold-deep);
    text-transform: uppercase;
}

.nav-brand span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links ion-icon {
    display: none;
}

.nav-links a.active {
    background: rgba(185, 146, 75, 0.16);
    color: var(--gold-deep);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Fullscreen Slideshow */
.hero {
    min-height: 100svh;
    display: grid;
    place-items: end;
    padding: 0 0 180px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}

.hero-slider,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    background:
        linear-gradient(rgba(35, 33, 30, 0), rgba(0, 0, 0, 0.36));
    z-index: 1;
}

@keyframes heroSlideshow {

    0%,
    100% {
        opacity: 0;
        transform: scale(1.05);
    }

    6%,
    25% {
        opacity: 1;
        transform: scale(1);
    }

    31% {
        opacity: 0;
        transform: scale(1.02);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(4.2rem, 16vw, 10.5rem);
    line-height: 0.82;
    font-weight: 500;
    letter-spacing: -0.075em;
    margin-bottom: 28px;
    text-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.hero-script {
    font-family: var(--script);
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--gold-light);
    display: block;
    margin: 4px 0 10px;
    letter-spacing: 0;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    line-height: 1.85;
    max-width: 610px;
    margin: 0 auto 30px;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-date-chip {
    width: fit-content;
    margin: 0 auto 28px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Intro */
.intro-card {
    padding: clamp(34px, 8vw, 76px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-card::before,
.intro-card::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(185, 146, 75, 0.15);
    border-radius: 50%;
}

.intro-card::before {
    left: -80px;
    top: -80px;
}

.intro-card::after {
    right: -80px;
    bottom: -80px;
}

.signature-names {
    font-family: var(--script);
    font-size: clamp(3.6rem, 12vw, 7rem);
    line-height: 0.9;
    color: var(--gold);
    margin: 22px 0;
}

/* Countdown */
.countdown-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 760px;
    margin-top: 38px;
    margin-left: auto;
    margin-right: auto;
}

.count-item {
    padding: 26px 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.64);
    text-align: center;
    box-shadow: var(--shadow);
    transition: .4s ease;
}

.count-item:hover {
    border-color: var(--gold-light);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .05);
}

.count-number {
    font-size: clamp(2.3rem, 8vw, 4.2rem);
    line-height: 1;
    color: var(--gold-deep);
    font-weight: 600;
}

.count-label {
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

/* Event Details */
.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 46px;
}

.event-card {
    position: relative;
    padding: 0;
    min-height: 100%;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.72)),
        radial-gradient(circle at top right, rgba(217, 191, 128, 0.3), transparent 42%);
    box-shadow: 0 24px 70px rgba(34, 30, 24, 0.11);
    overflow: hidden;
    isolation: isolate;
}

.event-card>* {
    position: relative;
    z-index: 2;
}

.event-photo {
    height: 280px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 20px 48px rgba(34, 30, 24, 0.12);
    background: var(--ivory-soft);
}

.event-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.event-card:hover .event-photo img {
    transform: scale(1.05);
}

.event-body {
    padding: 28px;
}

.event-title-box {
    margin: 4px 0 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(185, 146, 75, 0.18);
}

.event-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
    color: var(--gold-deep);
    font-size: 1.8rem;
    box-shadow: 0 18px 40px rgba(34, 30, 24, 0.2);
}

.event-date-number {
    min-height: 96px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 4.6rem;
    line-height: 0.8;
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(145deg, var(--gold), var(--gold-deep));
    box-shadow: 0 18px 42px rgba(138, 106, 47, 0.22);
}

.event-date-meta span {
    display: block;
    color: var(--gold-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.event-date-meta strong {
    display: block;
    font-family: var(--serif);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 500;
    color: var(--charcoal);
}

.event-card h3 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.event-eyebrow {
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.event-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.event-info ion-icon {
    color: var(--gold-deep);
    font-size: 1.35rem;
    margin-top: 1px;
    flex: 0 0 auto;
}

.event-location strong {
    display: block;
    color: var(--charcoal);
    font-weight: 800;
    margin-bottom: 2px;
}

.event-btn {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Timeline */
.program-card {
    max-width: 800px;
    margin-top: 38px;
    margin-left: auto;
    margin-right: auto;
}

.program-list {
    padding: 10px;
    display: grid;
}

.program-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    align-items: start;
    padding: 16px 0;
    border-radius: 18px;
    transition: 0.3s ease;
    position: relative;
}

.program-row time {
    color: var(--gold-deep);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 3px;
    text-align: right;
}

.program-copy h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.08;
    font-weight: 600;
    margin-bottom: 4px;
}

.program-copy p {
    color: var(--muted);
    line-height: 1.5;
}

/* Hover effect for Style 3 */
.program-row:hover {
    padding-left: 15px;
}

.program-row:hover time {
    color: var(--charcoal);
}

.note {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (min-width: 720px) {
    .program-list {
        padding: 16px 22px;
    }

    .program-row {
        grid-template-columns: 180px 1fr;
        padding: 20px 10px;
    }
    
    .program-row time {
        text-align: right;
    }

    .program-copy h3 {
        font-size: 1.62rem;
    }
}

/* Love Story */
.timeline {
    max-width: 900px;
    margin: 48px auto 20px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    width: 1px;
    height: 100%;
    background: var(--line);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 12px;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold), var(--gold-deep));
    transition: height 0.15s linear;
    z-index: 0;
}

.story-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
    z-index: 2;
}

.story-item:last-child {
    padding-bottom: 0;
}

.story-dot {
    position: absolute;
    top: 12px;
    left: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.45s ease;
}

.story-dot::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(184, 145, 75, 0);
    transform: scale(0.5);
    opacity: 0;
}

.story-dot::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    transition: all 0.45s ease;
}

.story-item.is-visible .story-dot {
    background: var(--gold);
    box-shadow: 0 0 0 8px rgba(184, 145, 75, 0.11);
    transform: scale(1.08);
}

.story-item.is-visible .story-dot::before {
    animation: dotPulse 1.6s ease-out infinite;
    border-color: rgba(184, 145, 75, 0.45);
}

.story-item.is-visible .story-dot::after {
    background: var(--ivory-soft);
    transform: scale(1.25);
}

@keyframes dotPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.story-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.72)),
        radial-gradient(circle at top right, rgba(217, 191, 128, 0.3), transparent 42%);
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 18px 50px rgba(59, 48, 36, 0.07);
    transition: all 0.35s ease;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(59, 48, 36, 0.11);
    border-color: rgba(184, 145, 75, 0.42);
}

.story-photo {
    width: 100%;
    aspect-ratio: 4 / 2.6;
    border-radius: 21px;
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--gold-light);
    position: relative;
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.8s ease;
}

.story-card:hover .story-photo img {
    transform: scale(1.1);
}

.story-year {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.88);
    backdrop-filter: blur(8px);
    color: var(--deep-gold);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid rgba(184, 145, 75, 0.28);
    box-shadow: 0 8px 24px rgba(59, 48, 36, 0.08);
}

.story-content {
    padding: 0 12px 16px;
}

.story-card h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--brown);
}

.story-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.94rem;
}

@media (min-width: 768px) {

    .timeline::before,
    .timeline-progress {
        left: 50%;
        transform: translateX(-50%);
    }

    .story-item:nth-child(odd) .story-year {
        left: auto;
        right: 14px;
    }

    .story-item:nth-child(even) .story-year {
        left: 14px;
        right: auto;
    }

    .story-item {
        width: 50%;
        padding-left: 0;
        padding-bottom: 48px;
    }

    .story-item:nth-child(odd) {
        padding-right: 58px;
        text-align: right;
    }

    .story-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 58px;
    }

    .story-photo {
        aspect-ratio: 4 / 2.2;
    }

    .story-dot {
        left: auto;
        top: 18px;
        right: -12px;
        width: 25px;
        height: 25px;
    }

    .story-dot::after {
        content: "";
        width: 7px;
        height: 7px;
    }

    .story-item:nth-child(even) .story-dot {
        left: -12px;
        right: auto;
    }

    .story-content {
        padding: 0 18px 20px;
    }
}

/* Gallery */
.masonry-grid {
    columns: 4;
    column-gap: 20px;
    margin-top: 46px;
}

/* Important fix for iPhone Safari + CSS columns */
.masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.4s ease;
    background: var(--white, #fff);

    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.masonry-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.8s ease;

    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Helps iPhone reserve height for the video poster */
.masonry-item video {
    background: #f8f3ea;
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.05);
}

.masonry-item .content-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.5);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
}

/* Video Play Button */
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 4;
}

.video-play:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play ion-icon {
    color: var(--charcoal);
    font-size: 1.4rem;
    margin-left: 5px;
}

/* Modal Image */
#imageModal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageModal.active {
    display: flex;
    opacity: 1;
}

#imageModal .modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.5s ease;
    background-color: transparent;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#imageModal .modal-content img,
#imageModal .modal-content video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

#imageModal .close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#imageModal .close-modal:hover {
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2;
        column-gap: 12px;
    }

    .masonry-item {
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .masonry-item img,
    .masonry-item video {
        border-radius: 16px;
    }

    /* Important: avoid transform glitch on iPhone */
    .masonry-item:hover img,
    .masonry-item:hover video {
        transform: none;
    }

    .masonry-item:hover {
        box-shadow: var(--shadow);
    }

    .masonry-item .content-type {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.6rem;
    }

    .video-play {
        width: 52px;
        height: 52px;
    }
}

/* Dress */
.dress-section {
    padding: 70px 0;
}

.palette-area {
    position: relative;
    z-index: 3;
    margin-top: 44px;
}

.palette-label {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 34px;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 560px;
    margin: 0 auto;
}

.color-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
}

.color-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transform: scale(1);
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    position: relative;
}

.color-btn:hover,
.color-btn.active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .03);
}

.color-btn::before {
    content: attr(data-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(8px);
    background: rgba(31, 31, 31, 0.92);
    color: var(--white);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.color-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 1px);
    transform: translateX(-50%) translateY(8px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid rgba(31, 31, 31, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.color-btn:hover::before,
.color-btn:hover::after,
.color-btn.active::before,
.color-btn.active::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dress-note {
    position: relative;
    z-index: 2;
    margin: 42px auto 0;
    max-width: 560px;
    font-size: 0.88rem;
    color: var(--muted);
}

.dress-note strong {
    color: var(--gold-deep);
    font-weight: 500;
}

@media (min-width: 768px) {
    .color-palette {
        gap: 4px;
        max-width: 720px;
    }

    .color-item {
        width: 82px;
        height: 82px;
    }

    .color-btn {
        width: 68px;
        height: 68px;
    }

    .palette-label {
        margin-bottom: 42px;
    }

    .section-desc {
        font-size: 1rem;
    }
}

/* Accommodation */
.stay-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 46px;
}

.stay-card {
    background: var(--white);
    border: 1px solid rgba(184, 150, 75, 0.22);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(70, 55, 30, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(70, 55, 30, 0.12);
}

.stay-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.stay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.stay-card:hover .stay-image img {
    transform: scale(1.06);
}

.stay-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(24, 23, 21, 0.04),
            rgba(24, 23, 21, 0.32));
}

.stay-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    background: rgba(253, 250, 244, 0.92);
    backdrop-filter: blur(8px);
    color: var(--charcoal);
    border: 1px solid rgba(184, 150, 75, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.64rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 600;
}

.stay-body {
    padding: 24px;
}

.stay-body h3 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 12px;
}

.stay-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.stay-meta ion-icon {
    font-size: 1rem;
}

.stay-body p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.stay-actions {
    margin-top: 4px;
}

@media (min-width: 786px) {
    .stay-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .stay-card {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .stay-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 28px;
    }

    .stay-actions {
        margin-top: auto;
    }
}

/* Quote */
.quote-section {
    padding: 96px 0;
    background-image:
        linear-gradient(rgba(33, 31, 28, 0.52), rgba(33, 31, 28, 0.62)),
        url('../img/quote-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    text-align: center;
}

/* Enable fixed background only on desktop */
@media (min-width: 1025px) and (hover: hover) {
    .quote-section {
        background-attachment: scroll, fixed;
    }
}

/* Polaroid Photos */
.polaroid-stack {
    position: relative;
    width: min(310px, 82vw);
    height: 245px;
    margin: 0 auto 45px;
}

.polaroid {
    position: absolute;
    width: 190px;
    padding: 9px 9px 34px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.polaroid span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.02em;
    text-align: center;
}

.polaroid-one {
    left: 18px;
    top: 18px;
    transform: rotate(-8deg);
    z-index: 1;
}

.polaroid-two {
    right: 16px;
    top: 2px;
    transform: rotate(7deg);
    z-index: 1;
}

.polaroid-one:hover {
    transform: rotate(-12deg) translateY(-8px) scale(1.04);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
    z-index: 5;
}

.polaroid-two:hover {
    transform: rotate(12deg) translateY(-8px) scale(1.04);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
    z-index: 5;
}

@media (min-width: 768px) {
    .polaroid-stack {
        width: 420px;
        height: 280px;
        margin-bottom: 54px;
    }

    .polaroid {
        width: 230px;
        padding: 10px 10px 38px;
    }

    .polaroid span {
        font-size: 1.18rem;
    }

    .polaroid-one {
        left: 18px;
        top: 34px;
    }

    .polaroid-two {
        right: 12px;
        top: 0;
    }
}

@media (min-width: 1024px) {
    .polaroid-stack {
        margin-bottom: 65px;
    }
}

@media (max-width: 420px) {
    .polaroid-stack {
        height: 220px;
    }

    .polaroid {
        width: 168px;
    }

    .polaroid-one {
        left: 4px;
        top: 28px;
    }

    .polaroid-two {
        right: 2px;
        top: 4px;
    }
}

.quote-mark {
    font-family: var(--nunito);
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.4;
    color: var(--gold-light);
}

.quote-text {
    font-family: var(--serif);
    font-size: clamp(2.45rem, 10vw, 6.1rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: var(--white);
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
    max-width: 820px;
    margin: 0 auto 30px;
}

.quote-author {
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 600;
}

/* RSVP */
.rsvp-card {
    padding: clamp(26px, 5vw, 48px);
    max-width: 920px;
    margin: 46px auto 0;
}

.rsvp-intro {
    margin-bottom: 30px;
}

.rsvp-intro h3 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 0.96;
    font-weight: 500;
    letter-spacing: 0.035em;
    text-align: center;
    margin-bottom: 20px;
}

.rsvp-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 980px) {
    .rsvp-info {
        grid-template-columns: 1fr;
    }
}

.rsvp-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(185, 146, 75, 0.14);
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.rsvp-note ion-icon {
    display: block;
    color: var(--gold-deep);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.form-grid {
    display:grid;
    gap:18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.78rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(185, 146, 75, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: var(--charcoal);
    border-radius: 18px;
    padding: 15px 16px;
    outline: none;
    transition: 0.25s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(185, 146, 75, 0.12);
    background: white;
}

.attendance-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.attendance-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-option {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.attendance-option strong {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.attendance-option span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 500;
    text-transform: none;
}

.attendance-option:hover {
    background: var(--white);
    border-color: rgba(185, 147, 90, 0.55);
    transform: translateY(-3px);
}

.attendance-options input[type="radio"]:checked+.attendance-option {
    border-color: var(--gold-light);
    background: rgba(255, 250, 240, 0.72);
    box-shadow: 0 12px 30px rgba(185, 155, 107, .12);
}

.attending-only {
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
    overflow: hidden;
    max-height: 220px;
}

.attending-only.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    pointer-events: none;
}

.attendance-field {
    transition: margin-bottom 0.35s ease;
}

.attendance-field.is-declining {
    margin-bottom: -54px;
}

@media (min-width: 640px) {
    .attendance-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 16px 0 22px;
}

.success-message {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(185, 146, 75, 0.12);
    border: 1px solid rgba(185, 146, 75, 0.22);
    color: var(--gold-deep);
    line-height: 1.6;
}

.success-message.show {
    display: block;
}

/* Gift */
.wishing-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 46px;
}

.wish-action {
    border: 1px solid rgba(200, 164, 93, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    padding: 35px 22px 28px;
    text-align: left;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.wish-action:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 164, 93, 0.45);
    box-shadow: 0 18px 45px rgba(23, 23, 23, 0.08);
}

.wish-action h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}

.wish-action p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.mobile-bank-slot {
    display: block;
}

.desktop-bank-slot {
    display: none;
}

.bank-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s ease, opacity 0.4s ease;
}

.bank-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.bank-panel-inner {
    overflow: hidden;
}

.bank-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.bank-card {
    border: 1px solid rgba(200, 164, 93, 0.24);
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 239, 0.86));
}

.bank-card h3 {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}

.bank-card>p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.bank-details {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.detail-row {
    padding: 11px 0;
    border-bottom: 1px solid rgba(200, 164, 93, 0.16);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 0.94rem;
    font-weight: 500;
    word-break: break-word;
}

.well-footer {
    text-align: center;
    padding: 26px 10px 8px;
}

.well-footer p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%) translateY(20px);
    background: var(--charcoal);
    color: var(--white);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.84rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
    box-shadow: 0 16px 45px rgba(23, 23, 23, 0.18);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 786px) {

    .wishing-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .mobile-bank-slot {
        display: none;
    }

    .desktop-bank-slot {
        display: block;
        margin-top: 20px;
    }

    .bank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .wish-action,
    .bank-card {
        padding: 40px 30px 35px;
    }

    .btn-primary,
    .btn-outline,
    .copy-btn {
        width: auto;
        min-width: 180px;
    }
    
    .toast {
        bottom: 22px;
    }
}

/* FAQ */
.faq-list {
    max-width: 820px;
    margin: 46px auto 0;
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid rgba(185, 146, 75, 0.18);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 22px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: var(--charcoal);
    font-weight: 600;
}

.faq-question ion-icon {
    color: var(--gold-deep);
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 22px 20px;
    color: var(--muted);
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    max-height: 180px;
}

.faq-item.active .faq-question ion-icon {
    transform: rotate(180deg);
}

/* Guestbook */
.wall-frame {
    position: relative;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.42);
    overflow: hidden;
    margin-top: 36px;
}

.wishes-list {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    max-height: min(68vh, 620px);
    padding: 4px 6px 4px 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.wishes-list::-webkit-scrollbar {
    width: 6px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(201, 166, 77, 0.08);
    border-radius: 999px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(201, 166, 77, 0.34);
    border-radius: 999px;
}

.wish-card {
    position: relative;
    min-width: 0;
    min-height: auto;
    padding: 34px 20px 22px;
    border: 1px solid rgba(201, 166, 77, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    overflow: hidden;
    isolation: isolate;
    transition: var(--transition);
    animation: wishIn 0.45s ease both;
}

.wish-card::before {
    content: "“";
    position: absolute;
    top: 2px;
    right: 16px;
    z-index: 0;
    font-family: var(--nunito);
    font-size: 5rem;
    line-height: 1;
    color: rgba(201, 166, 77, 0.13);
    pointer-events: none;
}

.wish-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 166, 77, 0.34);
    background: rgba(255, 255, 255, 0.9);
}

.wish-message {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin: 0 0 8px;
    color: #514b42;
    font-size: 0.88rem;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
    opacity: 1;
    visibility: visible;
}

.wish-name {
    position: relative;
    z-index: 2;
    display: block;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.05;
    color: var(--charcoal);
}

.wish-date {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.wishes-list.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.wishes-list.is-empty .wall-state {
    width: min(460px, 100%);
    margin-inline: auto;
    padding: 0;
}

.wall-state {
    position: relative;
    z-index: 2;
    padding: 34px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.wall-state strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--charcoal);
}

@keyframes wishIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 680px) {
    .wall-frame {
        padding: 20px;
    }

    .wishes-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .wish-card:nth-child(3n + 2) {
        transform: translateY(18px);
    }

    .wish-card:nth-child(3n + 2):hover {
        transform: translateY(15px);
    }
}

@media (min-width: 980px) {
    .wishes-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .wall-frame {
        padding: 24px;
    }
}

/* Footer */
.ivory-footer {
    position: relative;
    overflow: hidden;
    background:
        url("../img/footer-bg.jpg") center/cover no-repeat;
    color: var(--ivory-soft);
    padding: 3.25rem 1.25rem 7rem;
    isolation: isolate;
}

.ivory-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 12, 0.64) 0%, rgba(11, 11, 12, 0.74) 100%),
        radial-gradient(circle at 50% 0%, rgba(185, 150, 91, 0.42), transparent 42%);
    pointer-events: none;
    z-index: 0;
}

.footer-shell {
    width: min(100%, 520px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.footer-rule {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 2rem;
}

.footer-mark {
    width: clamp(4.2rem, 12vw, 5.8rem);
    height: clamp(4.2rem, 12vw, 5.8rem);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.05rem;
    margin: 0 auto;
}

.footer-monogram {
    text-align: center;
    margin-bottom: 1.75rem;
}

.footer-kicker {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.footer-names {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 12vw, 3.8rem);
    line-height: 0.85;
    font-weight: 500;
    letter-spacing: -0.06em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.footer-message {
    margin: 0 auto 1.85rem;
    max-width: 29rem;
    text-align: center;
    color: var(--white-soft);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
}


.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-hashtag {
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.footer-note {
    color: rgba(244, 234, 219, 0.55);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-bottom {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-location {
    color: rgba(244, 234, 219, 0.62);
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.8;
}

.footer-credit {
    color: rgba(244, 234, 219, 0.34);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
}

.footer-credit span {
    color: rgba(216, 195, 160, 0.58);
}

@media (min-width: 640px) {
    .page-preview {
        min-height: 76vh;
        padding: 6rem 2rem 4rem;
    }

    .ivory-footer {
        padding: 4.4rem 2rem 1.7rem;
    }

    .footer-shell {
        width: min(100%, 720px);
    }

}

@media (min-width: 920px) {
    .footer-shell {
        width: min(100%, 860px);
    }
}

/* Floating RSVP */
.floating-rsvp {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--white);
    box-shadow: 0 16px 40px rgba(34, 30, 24, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 980px) {

    .guestbook-grid,
    .map-card,
    .rsvp-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .section {
        padding: 68px 0;
    }

    .nav {
        top: auto;
        bottom: 11px;
        width: min(540px, calc(100% - 22px));
        border-radius: 26px;
        padding: 8px;
        opacity: 0;
    }

    .nav.show-mobile-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        left: 11px;
    }

    .nav-brand,
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .nav-links a {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 9px 4px;
        font-size: 0.65rem;
        letter-spacing: 0;
        border-radius: 18px;
    }

    .nav-links ion-icon {
        display: block;
        font-size: 1.24rem;
    }

    .hero {
        padding-bottom: 160px;
    }

    .hero-actions .btn {
        width: auto;
    }

    .event-grid,
    .form-grid,
    .bank-grid {
        grid-template-columns: 1fr;
    }

    .countdown-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .moments-grid {
        grid-template-columns: 1fr;
    }

    .moment-card,
    .moment-card.wide,
    .moment-card.tall {
        grid-column: auto;
        min-height: 340px;
    }

    .floating-rsvp {
        display: none;
    }

    .music-toggle {
        right: 12px;
    }

    .music-toggle.mobile-nav {
        bottom: 98px;
    }

    .template-credit {
        padding-bottom: 116px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 36px, 1120px);
    }

    .btn {
        width: 100%;
    }

    .hero-actions,
    .gift-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
    }

    .cover-title,
    .hero-title {
        letter-spacing: -0.065em;
    }

    .section-title {
        letter-spacing: 0.02em;
    }

    .count-item {
        padding: 28px 8px 26px;
        ;
    }

    .event-card {
        border-radius: 26px;
    }

    .rsvp-card {
        border-radius: 26px;
        padding: 40px 20px 30px;
    }

    .event-photo {
        height: 240px;
        margin: 0;
    }

    .event-title-box {
        grid-template-columns: 78px 1fr;
        gap: 14px;
    }

    .event-date-number {
        min-height: 78px;
        border-radius: 22px;
        font-size: 3.6rem;
    }

    .event-date-meta strong {
        font-size: 1.72rem;
    }

    .bank-row {
        flex-direction: column;
        gap: 4px;
    }

    .bank-row strong {
        text-align: left;
    }

    .credit-inner {
        border-radius: 24px;
    }
}

/* HORIZONTAL SCROLL MOBILE */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

section,
header,
footer,
.container,
.container-fluid {
  max-width: 100%;
}

/* Prevent grid/flex children from forcing wider body */
.row,
[class*="grid"],
[class*="wrapper"],
[class*="inner"] {
  min-width: 0;
}

/* AOS left/right animation can create horizontal overflow on mobile */
@media (max-width: 768px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 24px, 0) !important;
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }
}