:root {
    --color-bg: #0f0d0b;
    --color-bg-warm: #161210;
    --color-cream: #f5efe6;
    --color-gold: #c1a485;
    --color-gold-light: #d4be9e;
    --color-gold-dark: #8a6f55;
    --color-text: #e8e0d5;
    --color-text-muted: #a09585;
    --color-accent: #d4a574;
    --font-display: 'Libre Caslon Display', 'Georgia', serif;
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Josefin Sans', 'Helvetica Neue', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-dark) var(--color-bg);
}

body {
    font-family: var(--font-serif);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

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

.intro-ornament img {
    width: 450px !important;
    max-width: none !important;
}

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

/* --- CUSTOM CURSOR --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(193, 164, 133, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
}

body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(212, 165, 116, 0.6);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

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

.preloader-ring {
    width: 160px;
    height: 160px;
    position: absolute;
}

.ring-progress {
    transform-origin: center;
    transform: rotate(-90deg);
    animation: ringFill 2.2s var(--ease-in-out) forwards;
}

@keyframes ringFill {
    to {
        stroke-dashoffset: 0;
    }
}

.preloader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
}

.preloader-center {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.preloader-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-gold);
}

.preloader-letter,
.preloader-amp {
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.preloader-letter:nth-child(1) {
    animation-delay: 0.3s;
}

.preloader-amp {
    animation-delay: 0.5s;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.preloader-letter:nth-child(3) {
    animation-delay: 0.7s;
}

.preloader-sub {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 260px;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-expo) 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
}

.nav.scrolled {
    background: rgba(15, 13, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 48px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    transition: opacity 0.3s;
    background: url("logo.png") no-repeat;
    background-size: contain;
    width: 100px;
    height: 67px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    position: relative;
    overflow: hidden;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link--cta {
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 8px 24px;
    transition: background 0.4s var(--ease-out-expo), color 0.3s;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-gold);
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 13, 11, 0.96);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-link:hover {
    color: var(--color-gold);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.1);
    animation: heroZoom 8s var(--ease-out-expo) forwards;
    filter: grayscale(30%) brightness(0.4);
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
    rgba(15, 13, 11, 0.4) 0%,
    rgba(15, 13, 11, 0.1) 30%,
    rgba(15, 13, 11, 0.1) 50%,
    rgba(15, 13, 11, 0.7) 80%,
    rgba(15, 13, 11, 1) 100%
    );
}

.hero-botanical {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 2s 2.5s var(--ease-out-expo) forwards;
}

.hero-botanical--left {
    left: 24px;
}

.hero-botanical--right {
    right: 24px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
}

.hero-date {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--color-gold-light);
    margin-bottom: 32px;
}

.hero-names {
    position: relative;
}

.hero-names-ornament {
    width: 300px;
    max-width: 80vw;
    margin: 0 auto 16px;
    display: block;
    opacity: 0;
    animation: fadeIn 1.5s 1.2s var(--ease-out-expo) forwards;
}

.hero-names-ornament--bottom {
    margin: 16px auto 0;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-title-line {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-cream);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-title-amp {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
}

.hero-scroll {
    margin-top: 48px;
}

.scroll-arrow {
    display: block;
    margin: 0 auto;
    animation: arrowBounce 2.2s var(--ease-in-out) infinite;
}

.arrow-heart {
    transform-origin: 20px 16px;
    animation: heartbeat 2.2s ease-in-out infinite;
}

.arrow-line,
.arrow-chevron {
    animation: arrowFade 2.2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1);    opacity: 0.9; }
    20%       { transform: scale(1.22); opacity: 1;   }
    40%       { transform: scale(1);    opacity: 0.9; }
    60%       { transform: scale(1.1);  opacity: 1;   }
}

@keyframes arrowFade {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1;   }
}

.scroll-dot {
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        cy: 12;
        opacity: 1;
    }
    50% {
        cy: 26;
        opacity: 0.3;
    }
}

/* --- REVEAL ANIMATIONS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- INTRO --- */
.intro {
    padding: 120px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.intro-ornament {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 48px;
}

.intro-circle-svg {
    position: absolute;
    inset: -50px;
    width: 300px;
    height: 300px;
}

.rotating-circle {
    animation: rotateCircle 30s linear infinite;
    transform-origin: center;
}

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

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    margin-left: -64%;
}

.intro-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 2;
    color: var(--color-text);
    max-width: 650px;
}

.intro-sign {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 36px;
}

.intro-names {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-top: 8px;
}

/* --- GALLERY --- */
.gallery {
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.gallery::before,
.gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.gallery::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg), transparent);
}

.gallery::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg), transparent);
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 200s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo), filter 0.8s;
    filter: grayscale(30%) brightness(0.7);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(193, 164, 133, 0);
    border-radius: 8px;
    transition: border-color 0.5s;
}

.gallery-item:hover::after {
    border-color: rgba(193, 164, 133, 0.4);
}

/* --- STORY --- */
.story {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 80px;
}

.story-divider {
    width: 400px;
    max-width: 80vw;
    margin: 0 auto 32px;
    display: block;
    opacity: 0.5;
}

.story-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-gold-light);
}

.story-title span {
    display: block;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-text p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: justify;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(100%);
    transition: transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.story-image:hover img {
    transform: scale(1.02);
}

.story-image-frame {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(193, 164, 133, 0.2);
    border-radius: 16px;
    pointer-events: none;
    transition: inset 0.8s var(--ease-out-expo);
}

.story-image:hover .story-image-frame {
    inset: -16px;
}

/* --- PROGRAM --- */
.program {
    padding: 120px 24px;
    position: relative;
}

.program::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(193, 164, 133, 0.03) 50%, transparent);
    pointer-events: none;
}

.program-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 16px;
}

.section-ornament {
    width: 120px;
    margin: 0 auto;
    display: block;
}

.program-cards {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.program-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.program-card--reversed {
    direction: rtl;
}

.program-card--reversed > * {
    direction: ltr;
}

.program-card-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.program-card-image img:first-child {
    filter: grayscale(10%) brightness(0.9) !important;

}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out-expo);
    filter: grayscale(30%) brightness(0.7);

}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-card-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.program-card-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-gold-light);
    margin-bottom: 16px;
}

.program-card-desc {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.program-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.program-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--color-text);
}

.program-detail svg {
    flex-shrink: 0;
}

/* --- FAQ --- */
.faq {
    padding: 120px 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq .section-ornament {
    margin-bottom: 60px;
}

.faq-list {
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(193, 164, 133, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
    cursor: none;
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-gold);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-gold);
    transition: transform 0.5s var(--ease-out-expo);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-out-expo), padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text-muted);
}

.faq-answer strong {
    line-height: 1.6;
    font-size: 1.4rem;
}

.faq-answer a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- RSVP --- */
.rsvp {
    padding: 120px 24px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.rsvp-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.rsvp-botanical {
    width: 440px;
    height: 440px;
    animation: floatSlow 14s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(193, 164, 133, 0.06));
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.rsvp-content {
    position: relative;
    z-index: 1;
}

.rsvp h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 24px;
}

.rsvp-deadline {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.rsvp-deadline strong {
    color: var(--color-gold);
}

.rsvp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--color-bg);
    background: var(--color-gold);
    padding: 18px 48px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.rsvp-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-cream);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.rsvp-button:hover::before {
    transform: scaleX(1);
}

.rsvp-button span,
.rsvp-button svg {
    position: relative;
    z-index: 1;
}

.rsvp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(193, 164, 133, 0.25);
}

.rsvp-button svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.rsvp-button:hover svg {
    transform: translateX(4px);
}

/* --- FOOTER --- */
.footer {
    padding: 80px 24px 40px;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    height: 80px;
    margin: 0 auto 20px;
}

.footer h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.footer p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    margin-top: 48px;
}

.footer-wave {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* --- PETALS --- */
/* --- PETALS (REALISTIC / MODERN) --- */
.petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
    /* un brillo muy sutil para look premium */
    mix-blend-mode: screen;
}

.petal {
    position: absolute;
    top: -40px;
    left: var(--left, 50%);
    width: var(--size, 14px);
    height: var(--size, 14px);
    opacity: 0;
    will-change: transform, opacity, left, filter;
    filter: blur(var(--blur, 0px));
    animation: petalFallReal var(--dur, 12s) linear var(--delay, 0s) forwards;
    transform-origin: center;
}

.petal svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(var(--spin, 0deg));
    /* micro brillo */
    filter: drop-shadow(0 0 10px rgba(193, 164, 133, 0.08));
}

/* capas de profundidad */
.petal[data-depth="far"] {
    opacity: 0.18;
}
.petal[data-depth="mid"] {
    opacity: 0.28;
}
.petal[data-depth="near"] {
    opacity: 0.36;
}

@keyframes petalFallReal {
    0% {
        opacity: 0;
        transform: translate3d(0, -20px, 0) scale(var(--scaleStart, 1));
    }
    8% {
        opacity: 1;
    }
    35% {
        transform: translate3d(0, 32vh, 0) scale(1);
    }
    70% {
        opacity: 0.95;
        transform: translate3d(0, 70vh, 0) scale(1.01);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 110vh, 0) scale(var(--scaleEnd, 1));
    }
}

/* Reduce efecto en móvil para rendimiento */
@media (max-width: 768px) {
    .petals-container {
        z-index: 4;
    }

    .petal svg {
        filter: none;
    }
}
/* --- NOISE TEXTURE OVERLAY --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .program-card--reversed {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    body {
        width: 100% !important;
    }

    .nav {
        padding: 16px 48px 16px 24px
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-botanical {
        width: 60px;
    }

    .gallery-item {
        width: 220px;
        height: 300px;
    }

    .intro {
        padding: 80px 24px;
    }

    .program,
    .faq,
    .story {
        padding: 80px 24px;
    }
}

/* --- TIMELINE --- */
.timeline {
    padding: 80px 0 60px;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.timeline-container {
    position: relative;
    max-width: 100%;
    /* Allow scaled photos to breathe vertically */
    overflow: visible;
}

.timeline-years {
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: rgba(193, 164, 133, 0.12);
    transition: color 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    text-shadow 0.8s;
    cursor: default;
    user-select: none;
    position: relative;
}

.timeline-year.active {
    color: var(--color-gold);
    transform: scale(1.1);
    text-shadow: 0 0 40px rgba(193, 164, 133, 0.25);
}

.timeline-year.passed {
    color: rgba(193, 164, 133, 0.3);
}

.timeline-year::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transform: translateX(-50%);
    transition: width 0.6s var(--ease-out-expo);
}

.timeline-year.active::after {
    width: 40px;
}

.timeline-line {
    position: relative;
    height: 1px;
    background: rgba(193, 164, 133, 0.1);
    margin: 0 60px 28px;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transition: width 0.4s var(--ease-out-expo);
}

.timeline-dot-active {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 10px;
    height: 10px;
    background: var(--color-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.4s var(--ease-out-expo);
    box-shadow: 0 0 16px rgba(193, 164, 133, 0.5);
}

.timeline-dot-active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(193, 164, 133, 0.3);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.timeline-strip {
    display: flex;
    gap: 16px;
    padding: 32px 60px;
    overflow-x: scroll;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    will-change: scroll-position;
}

.timeline-strip:active {
    cursor: grabbing;
}

.timeline-strip::-webkit-scrollbar {
    display: none;
}

.timeline-photo {
    flex-shrink: 0;
    width: 260px;
    height: 370px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0.4;
    transform: scale(0.88);
    filter: grayscale(65%) brightness(0.6);
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo),
        filter 0.65s var(--ease-out-expo),
        box-shadow 0.65s var(--ease-out-expo);
    will-change: transform, filter, opacity;
}

.timeline-photo.in-view {
    opacity: 0.6;
    transform: scale(0.92);
}

.timeline-photo.center {
    border-radius: 12px !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
    filter: grayscale(0%) brightness(1.18) contrast(1.1) saturate(1.08) !important;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(193, 164, 133, 0.18),
        0 0 80px rgba(193, 164, 133, 0.07) !important;
    z-index: 3;
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0807;
    filter: grayscale(45%) brightness(0.65);
    transition: transform 0.7s var(--ease-out-expo), filter 0.7s var(--ease-out-expo);
    display: block;
}

.timeline-photo.center img {
    filter: grayscale(0%) brightness(1.05) contrast(1.05) !important;
    transform: scale(1.0) !important;
}

.timeline-photo:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.95);
}

.timeline-photo.center:hover img {
    transform: scale(1.04) !important;
    filter: grayscale(0%) brightness(1.1) contrast(1.08) !important;
}

.timeline-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 10px;
    z-index: 2;
    transition: border-color 0.6s var(--ease-out-expo), inset 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.timeline-photo.center::before {
    border-color: rgba(193, 164, 133, 0.55) !important;
    inset: -2px;
}

.timeline-photo.year-start::before {
    border-color: rgba(193, 164, 133, 0.25);
}

.timeline-year-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s;
}

.timeline-year-display.show {
    opacity: 1;
}

.timeline-year-display span {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 400;
    color: rgba(193, 164, 133, 0.4);
    transition: color 0.6s, transform 0.6s var(--ease-out-expo);
    display: block;
    text-align: center;
    line-height: 1;
}

.timeline-year-display.transitioning span {
    color: rgba(193, 164, 133, 0.18);
    transform: scale(1.15);
}

.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 4;
    pointer-events: none;
}

.timeline::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 20%, transparent 100%);
}

.timeline::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg) 0%, var(--color-bg) 20%, transparent 100%);
}

@media (max-width: 768px) {
    .timeline {
        padding: 50px 0 40px;
    }

    .timeline-years {
        padding: 0 20px;
        margin-bottom: 16px;
    }

    .timeline-year {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .timeline-line {
        margin: 0 20px 22px;
    }

    .timeline-strip {
        padding: 28px 20px;
        gap: 12px;
    }

    /* On mobile, center the active photo viewport-relative */
    .timeline-strip::before,
    .timeline-strip::after {
        content: '';
        flex-shrink: 0;
        width: 1px;
    }

    .timeline-photo {
        width: 64vw;
        max-width: 260px;
        height: 82vw;
        max-height: 330px;
        border-radius: 10px;
        transform: scale(0.86);
        opacity: 0.35;
    }

    .timeline-photo.in-view {
        transform: scale(0.90);
        opacity: 0.55;
    }

    .timeline-photo.center {
        transform: scale(1.04) !important;
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(193, 164, 133, 0.15) !important;
    }

    .timeline::before, .timeline::after {
        width: 32px;
    }
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
    body, .faq-question, .nav-hamburger {
        cursor: auto !important;
    }
}

.hero-title-line,
.section-title,
.footer h3 {
    text-shadow:
        0 0 1px rgba(255,255,255,0.08),
        0 0 28px rgba(193,164,133,0.08);
}

/* ═══════════════════════════════════════════════
   RSVP MODAL — Amado & Elena
   Añadir al final de styles.css
════════════════════════════════════════════════ */

/* ── Overlay ── */
.rsvp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 8, 6, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
    overflow-y: auto;
}

.rsvp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Caja del modal ── */
.rsvp-modal-box {
    position: relative;
    background: var(--color-bg-warm);
    border: 1px solid rgba(193, 164, 133, 0.15);
    border-radius: 4px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(193,164,133,0.2) transparent;
    padding: 52px 44px 44px;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.5s var(--ease-out-expo);
}

.rsvp-modal-overlay.active .rsvp-modal-box {
    transform: translateY(0) scale(1);
}

/* ── Botón cerrar ── */
.rsvp-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(193, 164, 133, 0.2);
    border-radius: 50%;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out-expo);
}

.rsvp-modal-close:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: rotate(90deg);
}

/* ── Cabecera ── */
.rsvp-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.rsvp-modal-ornament {
    width: 180px;
    max-width: 70%;
    display: block;
    margin: 0 auto 20px;
    opacity: 0.7;
}

.rsvp-modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 8px;
}

.rsvp-modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ── Campos ── */
.rsvp-field {
    margin-bottom: 28px;
}

.rsvp-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.rsvp-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(193, 164, 133, 0.18);
    border-radius: 2px;
    padding: 13px 16px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.35s var(--ease-out-expo), background 0.35s;
    -webkit-appearance: none;
    appearance: none;
}

.rsvp-input::placeholder {
    color: rgba(160, 149, 133, 0.45);
}

.rsvp-input:focus {
    border-color: rgba(193, 164, 133, 0.55);
    background: rgba(193, 164, 133, 0.04);
}

.rsvp-input--sm {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

/* ── Counter ── */
.rsvp-counter-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.rsvp-counter-btn {
    width: 40px;
    height: 46px;
    background: rgba(193, 164, 133, 0.06);
    border: 1px solid rgba(193, 164, 133, 0.18);
    color: var(--color-gold);
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rsvp-counter-btn:first-child { border-radius: 2px 0 0 2px; border-right: none; }
.rsvp-counter-btn:last-child  { border-radius: 0 2px 2px 0; border-left: none; }

.rsvp-counter-btn:hover {
    background: rgba(193, 164, 133, 0.15);
    color: var(--color-cream);
}

.rsvp-input--counter {
    width: 56px;
    text-align: center;
    border-radius: 0;
    padding: 13px 8px;
    font-size: 1rem;
    letter-spacing: 1px;
    -moz-appearance: textfield;
}

.rsvp-input--counter::-webkit-inner-spin-button,
.rsvp-input--counter::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Checkboxes ── */
.rsvp-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 0;
}

.rsvp-check-item,
.rsvp-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.rsvp-check-item input,
.rsvp-radio-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rsvp-check-box,
.rsvp-radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(193, 164, 133, 0.35);
    background: transparent;
    transition: border-color 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-check-box {
    border-radius: 2px;
}

.rsvp-radio-dot {
    border-radius: 50%;
    position: relative;
}

.rsvp-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
}

/* checked state — checkbox */
.rsvp-check-item input:checked ~ .rsvp-check-box {
    border-color: var(--color-gold);
    background: rgba(193, 164, 133, 0.12);
}

.rsvp-check-item input:checked ~ .rsvp-check-box::after {
    content: '';
    width: 10px;
    height: 7px;
    border-left: 1.5px solid var(--color-gold);
    border-bottom: 1.5px solid var(--color-gold);
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

/* checked state — radio */
.rsvp-radio-item input:checked ~ .rsvp-radio-dot {
    border-color: var(--color-gold);
}

.rsvp-radio-item input:checked ~ .rsvp-radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.rsvp-check-label {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text);
}

/* ── Radio group ── */
.rsvp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

/* ── Error ── */
.rsvp-form-error {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #d4907a;
    min-height: 18px;
    margin-bottom: 12px;
    transition: opacity 0.3s;
}

/* ── Botón submit ── */
.rsvp-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
    margin-top: 8px;
}

.rsvp-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.rsvp-submit:hover::before {
    transform: scaleX(1);
}

.rsvp-submit:hover {
    color: var(--color-bg);
    transform: translateY(-2px);
}

.rsvp-submit-text,
.rsvp-submit-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-out-expo);
}

.rsvp-submit:hover .rsvp-submit-icon {
    transform: translateX(4px);
}

.rsvp-submit.loading .rsvp-submit-text,
.rsvp-submit.loading .rsvp-submit-icon {
    opacity: 0;
}

.rsvp-submit-spinner {
    position: absolute;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(193,164,133,0.3);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
    transition: opacity 0.2s;
}

.rsvp-submit.loading .rsvp-submit-spinner {
    opacity: 1;
}

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

/* ── Estado éxito ── */
.rsvp-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 10px;
    gap: 20px;
}

.rsvp-success.show {
    display: flex;
}

.rsvp-success-heart {
    width: 56px;
    animation: heartbeat 2s ease-in-out infinite;
}

.rsvp-success h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--color-cream);
    font-weight: 400;
}

.rsvp-success p {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 340px;
}

/* ── Responsive mobile ── */
@media (max-width: 600px) {
    .rsvp-modal-box {
        padding: 48px 24px 36px;
        max-height: 92vh;
        border-radius: 6px;
    }

    .rsvp-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rsvp-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

.iban-copy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    background: rgba(193, 164, 133, 0.06);
    border: 1px solid rgba(193, 164, 133, 0.2);
    border-radius: 4px;
    padding: 10px 16px;
    flex-wrap: wrap;
}

.iban-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--color-cream);
    user-select: all;
}

.iban-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(193, 164, 133, 0.35);
    border-radius: 3px;
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.iban-copy-btn:hover {
    background: rgba(193, 164, 133, 0.12);
    border-color: var(--color-gold);
}

.iban-copy-btn.copied {
    border-color: #7db87d;
    color: #7db87d;
}

.iban-icon-check { display: none; }
.iban-copy-btn.copied .iban-icon-copy { display: none; }
.iban-copy-btn.copied .iban-icon-check { display: block; }

.proposal-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.5s;
}
.proposal-canvas.active {
    opacity: 1;
}