/* =====================
   RESET & BASE
===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a96e;
    --gold-light: #e2cba0;
    --gold-pale: #f7f0e6;
    --gold-dark: #a07840;
    --dark: #1a1714;
    --dark2: #231f1a;
    --mid: #3d3630;
    --soft: #8a7d70;
    --cream: #faf7f2;
    --cream2: #f2ede4;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background:
        radial-gradient(circle at top left, rgba(201, 169, 110, 0.1), transparent 28%),
        radial-gradient(circle at bottom right, rgba(201, 169, 110, 0.08), transparent 26%),
        linear-gradient(180deg, #fcfaf7 0%, #f8f3eb 48%, #faf7f2 100%);
    color: var(--dark);
    overflow-x: hidden;
    cursor: default;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(226, 203, 160, 0.14), transparent 0 18%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 110, 0.08), transparent 0 16%);
}

body.invitation-locked {
    overflow: hidden;
}

.opening-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(rgba(20, 17, 14, 0.78), rgba(20, 17, 14, 0.78)),
        radial-gradient(circle at top, rgba(201, 169, 110, 0.24), transparent 55%),
        var(--dark);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

body.invitation-open .opening-screen {
    opacity: 0;
    visibility: hidden;
}

.opening-glow {
    position: absolute;
    width: min(68vw, 700px);
    height: min(68vw, 700px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.2), transparent 60%);
    filter: blur(12px);
    animation: pulseGlow 4.5s ease-in-out infinite;
}

.opening-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding: 48px 34px 34px;
    text-align: center;
    color: var(--white);
    border: 0.5px solid rgba(201, 169, 110, 0.35);
    background: linear-gradient(180deg, rgba(35, 31, 26, 0.94), rgba(25, 22, 19, 0.9));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    animation: fadeUp 0.8s ease;
}

.opening-monogram {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 18px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif;
    background: radial-gradient(circle at center, rgba(201, 169, 110, 0.08), transparent 70%);
    box-shadow: inset 0 0 24px rgba(201, 169, 110, 0.05);
}

.mono-initial {
    font-size: 28px;
    line-height: 1;
    color: var(--white);
}

.mono-amp {
    font-size: 22px;
    line-height: 1;
    color: var(--gold);
    font-style: italic;
    transform: translateY(1px);
}

.opening-eyebrow {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.opening-couple {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 12px;
}

.opening-couple span {
    color: var(--gold);
    font-style: italic;
}

.opening-line,
.opening-note {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
}

.opening-line {
    max-width: 440px;
    margin: 0 auto 22px;
}

.opening-guest-block {
    border-top: 1px solid rgba(201, 169, 110, 0.18);
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
    padding: 20px 0;
    margin-bottom: 18px;
}

.opening-to {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.opening-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 6vw, 42px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
}

.opening-code {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.78);
}

.opening-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 18px;
}

.open-invitation-btn {
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    padding: 16px 28px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 14px 30px rgba(201, 169, 110, 0.18);
}

.open-invitation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(201, 169, 110, 0.26);
}

.opening-note {
    margin-top: 12px;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.82; }
    50% { transform: scale(1.05); opacity: 1; }
}

#main-content {
    position: relative;
    z-index: 1;
}

.particle-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.22);
    box-shadow: 0 0 18px rgba(201, 169, 110, 0.14);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) translateX(30px) scale(1.35);
        opacity: 0;
    }
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* =====================
   CUSTOM CURSOR
===================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

/* =====================
   NAVIGATION
===================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px;
    transition: background 0.5s, padding 0.4s;
}

nav.scrolled {
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 60px;
    border-bottom: 0.5px solid rgba(201, 169, 110, 0.2);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--soft);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 0.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* =====================
   HERO
===================== */
.hero {
    height: 100vh;
    min-height: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 169, 110, 0.08), transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 34px 28px;
    border: 1px solid rgba(201, 169, 110, 0.18);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 50px rgba(37, 26, 16, 0.06);
    transition: transform 0.25s ease;
}

/* Animated rings */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 0.5px solid rgba(201, 169, 110, 0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ringBreath 7s ease-in-out infinite;
}

.hero-ring:nth-child(1) {
    width: 500px;
    height: 500px;
    animation-delay: 0s;
}

.hero-ring:nth-child(2) {
    width: 700px;
    height: 700px;
    animation-delay: 1.5s;
    border-color: rgba(201, 169, 110, 0.1);
}

.hero-ring:nth-child(3) {
    width: 900px;
    height: 900px;
    animation-delay: 3s;
    border-color: rgba(201, 169, 110, 0.06);
}

.hero-ring:nth-child(4) {
    width: 300px;
    height: 300px;
    animation-delay: 0.8s;
    border-color: rgba(201, 169, 110, 0.25);
}

@keyframes ringBreath {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.04);
        opacity: 1;
    }
}

.hero-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.4;
}

.hero-corner.tl {
    top: 40px;
    left: 60px;
    border-top: 0.5px solid var(--gold);
    border-left: 0.5px solid var(--gold);
}

.hero-corner.tr {
    top: 40px;
    right: 60px;
    border-top: 0.5px solid var(--gold);
    border-right: 0.5px solid var(--gold);
}

.hero-corner.bl {
    bottom: 80px;
    left: 60px;
    border-bottom: 0.5px solid var(--gold);
    border-left: 0.5px solid var(--gold);
}

.hero-corner.br {
    bottom: 80px;
    right: 60px;
    border-bottom: 0.5px solid var(--gold);
    border-right: 0.5px solid var(--gold);
}

.hero-pre {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 1s 0.4s forwards;
}

.hero-personal {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(60px, 11vw, 110px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--dark);
    opacity: 0;
    animation: fadeUp 1.2s 0.6s forwards;
}

.hero-names .amp {
    font-style: italic;
    color: var(--gold);
    display: block;
    font-size: 0.65em;
    margin: 8px 0;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 36px 0 24px;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.hero-divider hr {
    flex: 1;
    border: none;
    border-top: 0.5px solid var(--gold-light);
    max-width: 140px;
}

.diamond {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hero-date,
.hero-code {
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--soft);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

.hero-code {
    margin-top: 12px;
    color: var(--gold-dark);
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--soft);
    margin: 22px auto 0;
    max-width: 620px;
    opacity: 0;
    animation: fadeUp 1s 1.3s forwards;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-tagline.is-switching {
    opacity: 0.35;
    transform: translateY(4px);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    opacity: 0;
    animation: fadeUp 1s 1.45s forwards;
}

.hero-btn {
    border: none;
    padding: 13px 18px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-btn.primary {
    background: var(--dark);
    color: var(--white);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--dark);
    border: 1px solid rgba(201, 169, 110, 0.35);
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-signature {
    margin: 18px auto 0;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--soft);
    opacity: 0;
    animation: fadeUp 1s 1.6s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1s 2s forwards;
}

.hero-scroll span {
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--soft);
}

.scroll-line {
    width: 0.5px;
    height: 44px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.7);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* =====================
   COUNTDOWN
===================== */
.countdown-section {
    background: var(--dark);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201, 169, 110, 0.07), transparent);
    pointer-events: none;
}

.cd-label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.cd-sub {
    max-width: 620px;
    margin: 0 auto 42px;
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.46);
}

.cd-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.cd-unit {
    text-align: center;
    padding: 0 40px;
}

.cd-unit+.cd-unit {
    border-left: 0.5px solid rgba(201, 169, 110, 0.2);
}

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(56px, 9vw, 96px);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    display: block;
}

.cd-unit-label {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--soft);
    margin-top: 12px;
    display: block;
}

.cd-quote {
    margin-top: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    color: rgba(201, 169, 110, 0.6);
    letter-spacing: 0.03em;
}

/* =====================
   SECTION BASE
===================== */
.section {
    padding: 120px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.section-badge {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 300;
    line-height: 1.1;
    text-align: center;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-sub {
    text-align: center;
    font-size: 13px;
    color: var(--soft);
    line-height: 1.9;
    margin-bottom: 70px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================
   STORY
===================== */
.story-wrap {
    position: relative;
}

.story-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background: linear-gradient(to bottom, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
    transform: translateX(-50%);
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 70px;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-item.right .s-text {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
    padding-left: 40px;
}

.story-item.right .s-center {
    grid-column: 2;
    grid-row: 1;
}

.story-item.right .s-empty {
    grid-column: 1;
    grid-row: 1;
}

.story-item.left .s-text {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: 40px;
}

.story-item.left .s-center {
    grid-column: 2;
    grid-row: 1;
}

.story-item.left .s-empty {
    grid-column: 3;
    grid-row: 1;
}

.s-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.s-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cream);
    border: 1.5px solid var(--gold);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: background 0.3s;
}

.s-dot.active {
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.18);
}

.s-text {
    padding-top: 0;
}

.s-chapter {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.s-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.s-desc {
    font-size: 13px;
    line-height: 1.9;
    color: var(--soft);
}

.s-desc em {
    font-style: italic;
    color: var(--soft);
    opacity: 0.8;
    display: block;
    margin-top: 6px;
}

/* =====================
   DETAIL / RECEPTION
===================== */
.reception-section {
    background: var(--dark);
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
}

.reception-section .watermark {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 320px;
    font-weight: 300;
    font-style: italic;
    color: rgba(201, 169, 110, 0.03);
    right: -40px;
    bottom: -40px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.reception-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reception-inner .section-badge {
    color: var(--gold);
}

.reception-inner .section-title {
    color: var(--white);
}

.reception-inner .section-sub {
    color: rgba(255, 255, 255, 0.4);
}

.reception-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 0.5px solid rgba(201, 169, 110, 0.25);
    margin-bottom: 50px;
}

.rc-card {
    padding: 50px 36px;
    text-align: center;
    border-right: 0.5px solid rgba(201, 169, 110, 0.15);
    transition: background 0.4s;
}

.rc-card:last-child {
    border-right: none;
}

.rc-card:hover {
    background: rgba(201, 169, 110, 0.04);
}

.rc-roman {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
    opacity: 0.7;
}

.rc-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 14px;
}

.rc-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 8px;
}

.rc-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
}

.dress-block {
    border: 0.5px solid rgba(201, 169, 110, 0.25);
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.dress-left .dc-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.dress-left .dc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}

.dress-left .dc-desc {
    font-size: 12px;
    color: var(--soft);
    line-height: 1.8;
}

.swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sw {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sw-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s;
}

.sw-circle:hover {
    transform: scale(1.1);
}

.sw-name {
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--soft);
    text-align: center;
}

/* =====================
   GALLERY
===================== */
.gallery-section {
    padding: 120px 60px;
}

.gallery-section .section-badge,
.gallery-section .section-title,
.gallery-section .section-sub {
    margin-bottom: 0;
}

.gallery-section .section-sub {
    margin-bottom: 18px;
}

.gallery-help {
    text-align: center;
    color: var(--soft);
    font-size: 12px;
    margin-bottom: 26px;
    letter-spacing: 0.08em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 280px 200px;
    gap: 8px;
}

.g-cell {
    background: var(--cream2);
    border: 0.5px solid rgba(201, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
}

.g-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(201, 169, 110, 0.06));
    pointer-events: none;
}

.g-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g-cell.has-image .g-hint.overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(26, 23, 20, 0.58);
    color: var(--white);
    opacity: 1;
}

.g-cell:hover {
    background: var(--gold-pale);
    transform: scale(0.985);
}

.g-cell:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1;
}

.g-cell:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1;
}

.g-cell:nth-child(3) {
    grid-column: 1 / 5;
    grid-row: 2;
}

.g-cell:nth-child(4) {
    grid-column: 5 / 9;
    grid-row: 2;
}

.g-cell:nth-child(5) {
    grid-column: 9 / 13;
    grid-row: 2;
}

.g-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    opacity: 0.45;
}

.g-hint {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--soft);
    opacity: 0.6;
}

.g-cell:nth-child(1) .g-placeholder {
    font-size: 64px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 14, 12, 0.82);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 920px);
    margin: 6vh auto;
    padding: 18px 18px 14px;
    background: rgba(250, 247, 242, 0.98);
    border: 1px solid rgba(201, 169, 110, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.gallery-lightbox-dialog img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: var(--cream2);
}

.gallery-lightbox-caption {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft);
}

.gallery-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(26, 23, 20, 0.84);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

/* =====================
   MAPS & MUSIC
===================== */
.map-section {
    padding: 0 0 30px;
}

.map-card {
    display: grid;
    grid-template-columns: 0.98fr 1.25fr;
    gap: 24px;
    align-items: stretch;
}

.map-info,
.map-embed {
    border: 0.5px solid rgba(201, 169, 110, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.68));
    box-shadow: 0 18px 44px rgba(37, 26, 16, 0.05);
}

.map-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.map-info::after {
    content: '';
    position: absolute;
    right: -36px;
    top: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.18);
    pointer-events: none;
}

.map-label,
.music-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.map-info h3,
.music-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--dark);
}

.map-info p,
.music-desc {
    font-size: 13px;
    line-height: 1.9;
    color: var(--soft);
}

.map-address {
    margin-bottom: 16px;
}

.map-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.map-detail {
    padding: 12px 14px;
    border: 1px solid rgba(201, 169, 110, 0.18);
    background: rgba(247, 240, 230, 0.52);
}

.map-detail span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.map-detail strong {
    display: block;
    font-size: 12px;
    line-height: 1.7;
    color: var(--dark);
    font-weight: 500;
}

.map-note {
    padding: 14px 16px;
    border-left: 2px solid var(--gold);
    background: rgba(247, 240, 230, 0.6);
}

.map-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 12px;
}

.map-note p {
    margin: 0;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.map-link {
    display: inline-block;
    padding: 12px 18px;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 26, 16, 0.1);
}

.map-link.secondary {
    background: transparent;
    color: var(--dark);
    border: 1px solid rgba(201, 169, 110, 0.4);
}

.map-footnote {
    margin-top: 12px;
    font-size: 12px;
    color: var(--soft);
}

.map-embed {
    min-height: 380px;
    overflow: hidden;
    position: relative;
}

.map-embed::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 70px;
    background: linear-gradient(to top, rgba(26, 23, 20, 0.1), transparent);
    pointer-events: none;
}

.map-embed-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--dark);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.background-music {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.youtube-audio-embed {
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.floating-music-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease;
}

.floating-music-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.floating-music-btn.is-playing {
    animation: pulseMusic 1.5s ease-in-out infinite;
}

@keyframes pulseMusic {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* =====================
   GIFT
===================== */
.gift-section {
    padding: 0 0 40px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gift-card {
    border: 0.5px solid rgba(201, 169, 110, 0.22);
    background: rgba(255, 255, 255, 0.72);
    padding: 24px;
    text-align: left;
}

.gift-bank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.gift-bank-logo {
    width: 78px;
    height: auto;
    object-fit: contain;
    display: block;
}

.gift-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.gift-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 8px;
}

.gift-name {
    color: var(--soft);
    margin-bottom: 16px;
    line-height: 1.7;
}

.gift-copy-btn {
    border: none;
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =====================
   WISHES
===================== */
.wishes-section {
    padding: 0 0 40px;
}

.wishes-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 22px;
    align-items: start;
}

.wishes-list-card,
.wish-form-card {
    border: 0.5px solid rgba(201, 169, 110, 0.22);
    background: rgba(255, 255, 255, 0.72);
    padding: 24px;
}

.wishes-list-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.wishes-list-head h3,
.wish-form-card h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--dark);
}

.wishes-list-head span,
.wish-card-sub,
.wish-note {
    color: var(--soft);
    font-size: 12px;
    line-height: 1.8;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 440px;
    overflow: auto;
    padding-right: 4px;
}

.wish-item,
.wish-empty,
.wish-locked-note {
    border: 0.5px solid rgba(201, 169, 110, 0.18);
    background: rgba(250, 247, 242, 0.95);
    padding: 16px;
}

.wish-item p,
.wish-empty,
.wish-locked-note {
    margin: 0;
    color: var(--soft);
    line-height: 1.8;
    font-size: 13px;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wish-meta strong {
    display: block;
    color: var(--dark);
    margin-bottom: 3px;
}

.wish-meta span,
.wish-meta time {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.wish-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wish-field label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.wish-field input,
.wish-field textarea {
    border: 0.5px solid rgba(201, 169, 110, 0.2);
    background: #fff;
    color: var(--dark);
    padding: 14px 16px;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    outline: none;
}

.wish-field textarea {
    resize: vertical;
}

.wish-submit-btn {
    border: none;
    background: var(--dark);
    color: var(--white);
    padding: 14px 16px;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.wish-alert {
    margin: 0 auto 18px;
    max-width: 1180px;
    border: 0.5px solid rgba(201, 169, 110, 0.22);
    padding: 14px 16px;
    font-size: 13px;
}

.wish-alert.success {
    background: rgba(201, 169, 110, 0.1);
    color: var(--dark);
}

.wish-alert.error {
    background: rgba(180, 70, 70, 0.1);
    color: #7b3030;
    border-color: rgba(180, 70, 70, 0.22);
}

/* =====================
   RSVP
===================== */
.rsvp-section {
    background: var(--dark2);
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    border: 0.5px solid rgba(201, 169, 110, 0.08);
    pointer-events: none;
}

.rsvp-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 0.5px solid rgba(201, 169, 110, 0.06);
    pointer-events: none;
}

.rsvp-inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rsvp-inner .section-badge {
    color: var(--gold);
}

.rsvp-inner .section-title {
    color: var(--white);
}

.rsvp-inner .section-sub {
    color: rgba(255, 255, 255, 0.35);
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 0.5px solid rgba(201, 169, 110, 0.25);
    font-size: 13px;
    line-height: 1.7;
}

.form-alert.success {
    color: #e7d8b8;
    background: rgba(201, 169, 110, 0.08);
}

.form-alert.error {
    color: #ffd7d7;
    background: rgba(180, 70, 70, 0.16);
    border-color: rgba(255, 120, 120, 0.3);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rf-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.7);
}

.rf-group input,
.rf-group select,
.rf-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(201, 169, 110, 0.2);
    color: var(--white);
    padding: 15px 18px;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    outline: none;
    border-radius: 0;
    transition: border-color 0.35s, background 0.35s;
    width: 100%;
    appearance: none;
}

.rf-group input::placeholder,
.rf-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.rf-group input:focus,
.rf-group select:focus,
.rf-group textarea:focus {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.04);
}

.rf-group select option {
    background: var(--dark);
}

.rf-group textarea {
    resize: none;
}

.rsvp-submit {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.35s, letter-spacing 0.3s;
    width: 100%;
    margin-top: 8px;
}

.rsvp-submit:hover {
    background: var(--gold-light);
    letter-spacing: 0.35em;
}

.rsvp-success {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.rsvp-success .rs-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    display: block;
    margin-bottom: 24px;
    animation: fadeUp 0.8s forwards;
}

.rsvp-success .rs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.2s forwards;
    opacity: 0;
}

.rsvp-success .rs-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 2;
    animation: fadeUp 0.8s 0.4s forwards;
    opacity: 0;
}

/* =====================
   FOOTER
===================== */
footer {
    background: var(--dark);
    padding: 60px 40px;
    text-align: center;
    border-top: 0.5px solid rgba(201, 169, 110, 0.15);
}

.footer-badge {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-divider hr {
    flex: 1;
    border: none;
    border-top: 0.5px solid rgba(201, 169, 110, 0.2);
    max-width: 80px;
}

.footer-sub {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--soft);
}

.footer-message {
    max-width: 620px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    line-height: 1.9;
}

.footer-copy {
    margin-top: 40px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.1em;
}

/* =====================
   ANIMATIONS & REVEALS
===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.35s;
}

.reveal-delay-4 {
    transition-delay: 0.5s;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
    }

    nav.scrolled {
        padding: 14px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .opening-card {
        padding: 36px 22px;
    }

    .opening-monogram {
        width: 72px;
        height: 72px;
        gap: 4px;
    }

    .mono-initial {
        font-size: 24px;
    }

    .mono-amp {
        font-size: 18px;
    }

    .opening-name {
        font-size: 28px;
    }

    .map-card {
        grid-template-columns: 1fr;
    }

    .gift-grid {
        grid-template-columns: 1fr;
    }

    .wishes-layout {
        grid-template-columns: 1fr;
    }

    .map-actions {
        flex-direction: column;
    }

    .floating-music-btn {
        right: 16px;
        bottom: 16px;
    }

    .section {
        padding: 80px 24px;
    }

    .reception-section,
    .gallery-section,
    .rsvp-section {
        padding: 80px 24px;
    }

    .reception-cards {
        grid-template-columns: 1fr;
    }

    .rc-card {
        border-right: none;
        border-bottom: 0.5px solid rgba(201, 169, 110, 0.15);
    }

    .dress-block {
        grid-template-columns: 1fr;
    }

    .swatches {
        justify-content: flex-start;
    }

    .gallery-grid {
        grid-template-rows: 220px 160px;
        gap: 6px;
    }

    .story-item {
        grid-template-columns: 24px 1fr !important;
    }

    .story-item.right .s-text,
    .story-item.left .s-text {
        grid-column: 2 !important;
        grid-row: 1 !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
    }

    .story-item.right .s-center,
    .story-item.left .s-center {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .story-item.right .s-empty,
    .story-item.left .s-empty {
        display: none !important;
    }

    .story-center-line {
        left: 12px;
    }

    .rf-row {
        grid-template-columns: 1fr;
    }

    .hero-corner {
        display: none;
    }

    .hero-content {
        padding: 26px 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .g-cell:nth-child(1) {
        grid-column: 1/13;
    }

    .g-cell:nth-child(2) {
        grid-column: 1/13;
        grid-row: 2;
    }

    .g-cell:nth-child(3),
    .g-cell:nth-child(4),
    .g-cell:nth-child(5) {
        display: none;
    }

    .cd-unit {
        padding: 0 20px;
    }
}