@import url('https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --primary-dark: #8B2252;
    --primary-medium: #B05C7E;
    --primary-light: #D490AA;
    --accent-gold: #C46A84;
    --accent-gold-light: #E8B4C8;
    --accent-rose: #D4869C;
    --champagne: #F0C0CC;
    --bg-soft: #FEF0F3;
    --bg-warm: #FFF5F7;
    --bg-cream: #FFF8FA;

    --text-primary: #6B2E4A;
    --text-secondary: #A0607E;
    --text-light: #C490A8;
    --text-on-dark: rgba(255, 255, 255, 0.92);
    --text-on-dark-muted: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(107, 46, 74, 0.5);

    --script-font: 'Great Vibes', cursive;
    --name-font: 'Ballet', cursive;
    --display-font: 'Playfair Display', serif;

    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --space-128: 128px;

    --text-h1: clamp(2.8rem, 7vw, 4.5rem);
    --text-h2: clamp(1.8rem, 3.2vw, 2.4rem);
    --text-h3: clamp(1.2rem, 1.8vw, 1.4rem);
    --text-body: clamp(0.95rem, 1.1vw, 1.05rem);
    --text-caption: clamp(0.8rem, 0.9vw, 0.85rem);
    --text-small: clamp(0.65rem, 0.8vw, 0.75rem);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 20px rgba(139, 34, 82, 0.06);
    --shadow-soft: 0 8px 32px rgba(139, 34, 82, 0.1);
    --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.1);
    --shadow-warm: 0 16px 48px rgba(139, 34, 82, 0.12);

    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 200ms;
    --dur-normal: 300ms;
    --dur-slow: 600ms;
    --dur-reveal: 900ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-soft);
    background-image: url('assets/fonod.png');
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--display-font);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
}

/* ========================================
   INVITATION CONTAINER (Initial)
   ======================================== */

.invitation-container {
    width: 100%;
    max-width: 600px;
    height: 100svh;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 2s var(--ease-smooth);
    overflow-y: auto;
}

.invitation-container.fade-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: all var(--dur-slow) ease;
}

.header-image {
    width: 100%;
    max-width: 480px;
    margin-bottom: var(--space-8);
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.06));
    animation: slideDown 1.5s ease;
}

.intro-text {
    font-size: var(--text-h3);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
}

.name {
    font-family: var(--name-font);
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--primary-dark);
    margin: var(--space-16) 0;
    line-height: 1.15;
    animation: flourish 2s ease-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    cursor: pointer;
}

.elegant-arrow {
    width: 44px; height: 44px;
    fill: var(--primary-dark);
    animation: slowBounce 3s infinite var(--ease-smooth);
    opacity: 0.7;
    transition: opacity var(--dur-normal) ease;
}

.action-container:hover .elegant-arrow { opacity: 1; }

.envelope-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    cursor: pointer;
    transition: transform 0.5s var(--ease-bounce);
}

.envelope-container:hover { transform: scale(1.03); }

.envelope-image {
    width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.12));
    animation: breathe 3.5s infinite var(--ease-smooth);
}

.sparkle {
    position: absolute;
    width: 4px; height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.8);
    animation: twinkle 3s infinite;
}

/* ========================================
   EXPERIENCE WRAPPER
   ======================================== */

#experienceWrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) ease, visibility var(--dur-slow) ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#experienceWrapper.visible { opacity: 1; visibility: visible; }

#experienceWrapper section {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

/* ========================================
   HERO
   ======================================== */

.hero-section {
    width: 100%;
    min-height: 100vh; min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(32px, 6vh, 64px) clamp(16px, 4vw, 32px);
}

.hero-layer-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    pointer-events: none; user-select: none;
    will-change: transform;
}

.hero-layer-fg {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    pointer-events: none; user-select: none;
    will-change: transform;
}

.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(82,35,45,0.10) 0%, rgba(82,35,45,0.40) 50%, rgba(82,35,45,0.60) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-section > * { position: relative; z-index: 3; }
.hero-section > .hero-layer-bg,
.hero-section > .hero-layer-fg { position: absolute; z-index: auto; }

.hero-section .details-content {
    width: min(100%, 720px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-subtitle {
    font-size: var(--text-h2);
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: var(--space-12);
    color: var(--champagne);
}

.details-name {
    font-family: var(--name-font);
    font-size: var(--text-h1);
    color: white;
    margin-bottom: var(--space-24);
    line-height: 1.05;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.details-date {
    font-size: calc(var(--text-h3) * 1.15);
    font-weight: 400;
    color: var(--text-on-dark);
    margin-bottom: var(--space-32);
    padding: var(--space-12) var(--space-32);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    display: inline-block;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.06);
    letter-spacing: 1px;
}

/* micro-interaction: subtle glow pulse on the date badge */
.details-date {
    animation: subtleGlow 4s infinite var(--ease-smooth);
}

@keyframes subtleGlow {
    0%, 100% { border-color: rgba(255,255,255,0.15); box-shadow: 0 0 0 rgba(196,106,132,0); }
    50% { border-color: rgba(255,255,255,0.25); box-shadow: 0 0 24px rgba(196,106,132,0.08); }
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 110px;
    padding: var(--space-16) var(--space-12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.12);
}

.countdown-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: var(--text-caption);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: var(--space-8);
    color: var(--text-on-dark-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-24);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 10;
}

.hero-section .scroll-indicator { opacity: 0.7; }

.scroll-text {
    font-size: var(--text-small);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
}

.mouse {
    width: 22px; height: 34px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 11px;
    position: relative;
}

.wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ========================================
   WELCOME — Editorial, left-aligned with photo
   ======================================== */

/* ========================================
   PARENTS — Botanical editorial keepsake
   ======================================== */

.parents-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(80px, 10vw, 136px) var(--space-32);
    position: relative;
    background:
        radial-gradient(circle at 50% 12%, rgba(255,255,255,.9), transparent 29%),
        radial-gradient(ellipse at 8% 55%, rgba(196,106,132,.09), transparent 34%),
        radial-gradient(ellipse at 92% 45%, rgba(196,106,132,.07), transparent 34%),
        linear-gradient(155deg, #fffaf8 0%, #fdf1ed 52%, #f9e8e4 100%);
    overflow: hidden;
}

.parents-section::before {
    content: '';
    position: absolute;
    inset: clamp(18px, 3.5vw, 48px);
    border: 1px solid rgba(139,34,82,.12);
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.28);
    border-radius: 180px 180px 28px 28px;
    pointer-events: none;
}

.parents-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.parents-header {
    margin-bottom: clamp(46px, 6vw, 72px);
}

.parents-sup {
    font-family: var(--display-font);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-12);
}

.parents-title {
    font-family: var(--script-font);
    font-size: clamp(3.4rem, 7vw, 5.8rem);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: .95;
    margin-bottom: var(--space-16);
    text-shadow: 0 8px 22px rgba(139,34,82,.08);
}

.parents-sub {
    font-size: var(--text-body);
    color: var(--text-secondary);
    font-style: italic;
}

.parents-line-ornament {
    width: 180px;
    margin: var(--space-24) auto 0;
    opacity: 0.8;
    line-height: 0;
}

.parents-line-svg {
    width: 100%;
    height: auto;
    display: block;
    color: var(--accent-gold);
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parents-list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(34px, 5vw, 72px);
    max-width: 860px;
    margin: 0 auto;
}

.parent-entry {
    text-align: center;
    flex: 1 1 0;
    padding: clamp(34px, 5vw, 54px) clamp(22px, 3vw, 42px);
    position: relative;
    background: rgba(255,255,255,.32);
    border: 1px solid rgba(139,34,82,.11);
    border-radius: 130px 130px 22px 22px;
    box-shadow: 0 24px 60px rgba(107,46,74,.07), inset 0 1px rgba(255,255,255,.8);
    backdrop-filter: blur(3px);
}

.parent-entry::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto var(--space-24);
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 0 6px rgba(196,106,132,.07);
}

.parent-role {
    font-family: var(--display-font);
    font-size: .67rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--accent-rose);
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-12);
}

.parent-fullname {
    font-family: var(--script-font);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: 1.1;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.parent-quote {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 400;
}

/* Large hand-drawn botanical branches */
.parents-botanical {
    position: absolute;
    top: 50%;
    width: clamp(150px, 22vw, 300px);
    height: min(78%, 760px);
    pointer-events: none;
    z-index: 1;
    color: var(--primary-medium);
    opacity: .34;
}

.parents-botanical--left {
    left: clamp(-110px, -5vw, -30px);
    transform: translateY(-50%);
}

.parents-botanical--right {
    right: clamp(-110px, -5vw, -30px);
    transform: translateY(-50%) scaleX(-1);
}

.parents-botanical-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.botanical-stem {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.botanical-leaves {
    fill: rgba(196,106,132,.13);
    stroke: currentColor;
    stroke-width: 1.15;
    stroke-linejoin: round;
}

.botanical-buds {
    fill: #fff8f5;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Decorative divider between parents */
.parents-divider {
    width: 72px;
    flex: 0 0 72px;
    margin: auto -18px;
    line-height: 0;
    opacity: .55;
}

.parents-divider-svg {
    width: 100%;
    height: auto;
    display: block;
    color: var(--accent-gold);
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   GODPARENTS — Soft editorial
   ======================================== */

.godparents-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-96) var(--space-32);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255,255,255,.8), transparent 42%),
        linear-gradient(175deg, #fdf5f3 0%, #faecec 55%, #fff8f6 100%);
}

.godparents-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.godparents-header {
    margin-bottom: var(--space-64);
}

.godparents-sup {
    font-family: var(--display-font);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-medium);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-12);
}

.godparents-title {
    font-family: var(--script-font);
    font-size: clamp(2.7rem, 5vw, 4rem);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--space-16);
    text-shadow: none;
}

.godparents-sub {
    font-size: var(--text-body);
    color: var(--text-secondary);
    font-style: italic;
}

.godparents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(22px, 4vw, 54px);
}

.godparent-card {
    padding: 10px 0 22px;
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: var(--space-16);
    text-align: center;
    border-bottom: 1px solid rgba(139,34,82,.18);
    transition: transform var(--dur-normal) var(--ease-smooth);
}

.godparent-card:hover { transform: translateY(-2px); }

.godparent-card:last-child {
    text-align: center;
    grid-template-columns: 1fr 34px;
}

.godparent-card:last-child .godparent-number { grid-column: 2; }
.godparent-card:last-child .godparent-copy { grid-column: 1; grid-row: 1; }

.godparent-number {
    font-family: var(--display-font);
    font-size: .62rem;
    color: rgba(139,34,82,.48);
    letter-spacing: 2px;
    padding-top: 7px;
    border-top: 1px solid rgba(139,34,82,.35);
}

.godparent-role {
    font-family: var(--display-font);
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-medium);
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--space-12);
    padding: 0;
}

.godparent-name {
    font-family: var(--script-font);
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-16);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.godparent-message {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.75;
    font-style: italic;
    max-width: 380px;
    margin: 0 auto;
}


/* ========================================
   ITINERARY — Timeline
   ======================================== */

.itinerary-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-96) var(--space-32);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196,106,132,0.06) 0%, transparent 50%),
        linear-gradient(175deg, #FDF3EE 0%, #FFF8F6 50%, #FDF3EE 100%);
    position: relative;
    overflow: hidden;
}

.itinerary-section::before {
    content: '';
    position: absolute;
    width: min(55vw, 620px);
    aspect-ratio: 1;
    right: -24%;
    top: -18%;
    border: 1px solid rgba(196,106,132,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(196,106,132,.025);
}

.itinerary-container {
    max-width: 860px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.itinerary-header {
    margin-bottom: var(--space-64);
}

.itinerary-sup {
    font-family: var(--display-font);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-8);
}

.itinerary-title {
    font-family: var(--script-font);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    color: var(--primary-dark);
    font-weight: 400;
    line-height: 1.1;
}

.itinerary-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-12);
    margin-top: var(--space-24);
    padding: 8px 18px;
    border-block: 1px solid rgba(196,106,132,.2);
    color: var(--text-secondary);
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.itinerary-date b {
    font-family: var(--display-font);
    font-size: 1.55rem;
    line-height: 1;
    color: var(--primary-dark);
    font-weight: 500;
}

.itinerary-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
    max-width: 680px;
    margin: 0 auto;
    padding-left: var(--space-64);
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 27px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(196,106,132,.55) 12%, rgba(196,106,132,.2) 88%, transparent);
}

.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: rgba(255,255,255,.84);
    border-radius: 26px 66px 26px 26px;
    border: 1px solid rgba(196,106,132,.14);
    box-shadow: 0 18px 48px rgba(107,46,74,.075), inset 0 1px rgba(255,255,255,.9);
    transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
    overflow: hidden;
}

.timeline-event::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
    border: solid rgba(196,106,132,.14);
    border-width: 1px 0 0 1px;
    border-radius: 0 0 0 54px;
}

.timeline-event:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 24px 58px rgba(107,46,74,.12);
    background: rgba(255,255,255,.94);
}

.timeline-step {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: .6rem;
    letter-spacing: 2px;
    color: rgba(139,34,82,.48);
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-64) + 20px);
    top: var(--space-32);
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-cream);
    box-shadow: 0 0 0 1px rgba(196,106,132,0.3);
    z-index: 1;
    transform: rotate(45deg);
}

.timeline-icon {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 47%, rgba(255,255,255,.92) 0 32%, transparent 33%),
        linear-gradient(145deg, #f9e1e8, #f4cfdc);
    border-right: 1px solid rgba(196,106,132,.13);
}

.timeline-icon-img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(107,46,74,.12));
    transition: transform var(--dur-normal) var(--ease-smooth);
}

.timeline-event:hover .timeline-icon-img { transform: scale(1.05); }

.timeline-content {
    text-align: left;
    padding: 34px 42px 34px 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.timeline-time {
    font-family: var(--display-font);
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 2px;
    line-height: 1;
    display: inline-flex;
    padding: 7px 12px;
    margin-bottom: var(--space-12);
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    border: 1px solid rgba(196,106,132,.12);
}

.timeline-event-name {
    font-family: var(--display-font);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: var(--space-8);
}

.timeline-location {
    font-size: var(--text-body);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 7px;
}

.timeline-location::before {
    content: '';
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--accent-rose);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    flex: 0 0 auto;
}

.timeline-desc {
    font-size: var(--text-caption);
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: var(--space-16);
}

.timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: 9px 18px;
    background: transparent;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(139,34,82,.22);
    box-shadow: 0 5px 14px rgba(139,34,82,.04);
    transition: all var(--dur-normal) var(--ease-smooth);
}

.timeline-btn::after {
    content: '↗';
    font-size: 1.1em;
    transition: transform var(--dur-normal) var(--ease-smooth);
}

.timeline-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.timeline-btn:hover::after {
    transform: translateX(4px);
}

/* ========================================
   GIFT — Baby pink envelope
   ======================================== */

.gift-section {
    width: 100%;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-96) var(--space-32);
    position: relative;
    background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,.95), transparent 28%),
        radial-gradient(circle at 12% 75%, rgba(255,255,255,.55), transparent 22%),
        linear-gradient(155deg, #fbdde7 0%, #f8cedd 48%, #fce7ed 100%);
    overflow: hidden;
}

.gift-section::before,
.gift-section::after {
    content: '';
    position: absolute;
    width: 280px;
    aspect-ratio: 1;
    border: 1px solid rgba(139,34,82,.08);
    border-radius: 50%;
}

.gift-section::before { left: -180px; top: -120px; }
.gift-section::after { right: -170px; bottom: -150px; box-shadow: 0 0 0 30px rgba(255,255,255,.12); }

.gift-bg-texture {
    position: absolute;
    inset: 0;
    background-image: url('assets/paper.png');
    background-size: 200px;
    opacity: .035;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.gift-container {
    max-width: 650px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    z-index: 1;
}

.gift-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    padding: clamp(42px, 7vw, 68px) clamp(28px, 7vw, 64px);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(139,34,82,.11);
    border-radius: 120px 120px 30px 30px;
    box-shadow: 0 24px 65px rgba(139,34,82,.11), inset 0 1px rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
}

.gift-envelope {
    width: 104px;
    height: 84px;
    margin-bottom: 2px;
    color: var(--primary-medium);
    filter: drop-shadow(0 10px 16px rgba(139,34,82,.12));
}

.gift-envelope svg {
    width: 100%;
    height: 100%;
    fill: rgba(255,255,255,.48);
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gift-envelope .gift-heart {
    fill: #e59bb2;
    stroke: #b85d7c;
    stroke-width: 1;
}

.gift-badge {
    display: inline-flex;
    padding: var(--space-8) var(--space-28);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(139,34,82,.13);
    color: var(--primary-medium);
    letter-spacing: 2px;
    font-size: var(--text-small);
    text-transform: uppercase;
    font-weight: 600;
}

.gift-title {
    font-family: var(--script-font);
    font-size: clamp(2.6rem, 5vw, 4rem);
    color: var(--primary-dark);
    line-height: 1.1;
    font-weight: 400;
}

.gift-text {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 480px;
    opacity: 1;
}

.gift-ornament-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
    opacity: .45;
    margin-top: var(--space-8);
}

/* ========================================
   RSVP — Premium form card
   ======================================== */

.rsvp-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-96) var(--space-24);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 26%),
        radial-gradient(circle at 85% 80%, rgba(196,106,132,.10), transparent 30%),
        linear-gradient(160deg, #fff8f7 0%, #f9e8ed 100%);
}

.rsvp-section::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: -250px;
    bottom: -260px;
    border: 1px solid rgba(139,34,82,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(139,34,82,.025);
}

.rsvp-container {
    width: 100%;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.rsvp-card {
    position: relative;
    text-align: center;
    background: rgba(255,252,251,.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(139,34,82,.13);
    border-radius: 38px;
    padding: 56px 48px 48px;
    box-shadow: 0 22px 65px rgba(107,46,74,.10), inset 0 1px rgba(255,255,255,.95);
}

.rsvp-card::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 34px;
    height: 5px;
    border: solid rgba(196,106,132,.22);
    border-width: 1px 0;
    transform: translateX(-50%);
}

.rsvp-badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(196,106,132,.09);
    border: 1px solid rgba(196,106,132,0.15);
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-size: var(--text-small);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--space-12);
}

.rsvp-title {
    font-family: var(--script-font);
    font-size: clamp(2.8rem, 5vw, 4rem);
    letter-spacing: 0;
    text-transform: none;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: var(--space-8);
}

.rsvp-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-body);
    margin: 0 auto var(--space-40, 40px);
    max-width: 430px;
    line-height: 1.6;
    font-style: italic;
}

.rsvp-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    font-family: var(--display-font);
    text-align: left;
}

.rsvp-form * { font-family: inherit; }

.rsvp-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rsvp-field:first-child,
.rsvp-field.textarea,
.rsvp-preview,
.btn-whatsapp { grid-column: 1 / -1; }

.rsvp-form label {
    position: static;
    order: -1;
    transform: none;
    align-self: flex-start;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1.35px;
    color: var(--text-secondary);
    font-weight: 600;
    padding-left: 5px;
}

.rsvp-field.textarea label {
    position: static;
}

.rsvp-form input:focus + label,
.rsvp-form input:not(:placeholder-shown) + label,
.rsvp-form select:focus + label,
.rsvp-form select:valid + label,
.rsvp-form textarea:focus + label,
.rsvp-form textarea:not(:placeholder-shown) + label {
    transform: none;
    font-size: .68rem;
    color: var(--accent-rose);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(139,34,82,.12);
    border-radius: 16px;
    padding: 17px 18px 15px;
    font-family: var(--display-font);
    font-size: var(--text-body);
    color: var(--text-primary);
    background: rgba(255,255,255,.66);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(107,46,74,.025);
    transition: border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth), background var(--dur-fast) ease;
}

.rsvp-form textarea {
    padding-top: var(--space-24);
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--accent-rose);
    background: white;
    box-shadow: 0 0 0 4px rgba(196,130,142,.07), 0 7px 20px rgba(107,46,74,.04);
}

.rsvp-form input:disabled {
    background: rgba(139,34,82,0.03);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: rgba(139,34,82,0.06);
}

.rsvp-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23A08070' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41 8.58L12 13.17L16.59 8.58L18 10L12 16L6 10L7.41 8.58Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 18px;
    cursor: pointer;
}

.rsvp-preview {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.46);
    color: var(--text-secondary);
    font-size: var(--text-small);
    line-height: 1.5;
    border: 1px solid rgba(139,34,82,.07);
}

.rsvp-preview::before {
    content: '✓';
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border-radius: 50%;
    background: rgba(196,106,132,.1);
    color: var(--primary-medium);
    font-weight: 700;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-12);
    padding: var(--space-16) var(--space-32);
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4fa574 0%, #2f8158 100%);
    color: white;
    font-size: var(--text-body);
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(47,129,88,.18);
    transition: all var(--dur-normal) var(--ease-smooth);
    width: 100%;
}

.btn-whatsapp::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
    display: inline-block;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(22,121,71,.32);
    filter: brightness(1.06);
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 5px 16px rgba(22,121,71,.2);
}

.btn-whatsapp:focus-visible {
    outline: 3px solid rgba(39,157,91,.22);
    outline-offset: 4px;
}

.rsvp-error {
    font-size: .68rem;
    color: #c0394b;
    padding-left: 5px;
    min-height: 1em;
    display: block;
}

.rsvp-char-count {
    font-size: .65rem;
    color: var(--text-light);
    text-align: right;
    padding-right: 5px;
}

/* ========================================
   FAREWELL
   ======================================== */

.farewell-section {
    width: 100%;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-96) var(--space-32);
    background:
        radial-gradient(circle at 50% 32%, rgba(255,255,255,.9), transparent 34%),
        radial-gradient(circle at 12% 82%, rgba(255,255,255,.46), transparent 24%),
        linear-gradient(155deg, #fbdde7 0%, #f6cbd9 58%, #f9dce5 100%);
    position: relative;
    overflow: hidden;
}

.farewell-section::before {
    content: '';
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(139,34,82,.11);
    border-radius: 180px 180px 26px 26px;
    pointer-events: none;
}

.farewell-section::after {
    content: 'XV';
    position: absolute;
    right: -15px;
    bottom: -70px;
    font-family: var(--display-font);
    font-size: clamp(10rem, 28vw, 24rem);
    line-height: 1;
    color: rgba(139,34,82,.035);
    pointer-events: none;
}

.farewell-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
    position: relative;
    z-index: 1;
}

.farewell-monogram {
    width: 106px;
    height: 106px;
    position: relative;
    margin-bottom: var(--space-8);
    color: var(--primary-medium);
}

.farewell-monogram svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: .7;
    opacity: .65;
}

.farewell-monogram .farewell-heart {
    fill: rgba(255,255,255,.42);
    stroke-width: 1;
}

.farewell-monogram > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-top: 7px;
    font-family: var(--script-font);
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.farewell-kicker {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-medium);
    font-weight: 600;
}

.farewell-title {
    font-family: var(--script-font);
    font-size: clamp(3rem, 6vw, 4.8rem);
    color: var(--primary-dark);
    line-height: 1;
    font-weight: 400;
    max-width: 560px;
    text-shadow: 0 10px 26px rgba(139,34,82,.09);
}

.farewell-body {
    font-size: var(--text-body);
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 450px;
    opacity: .72;
    margin-top: var(--space-8);
}

.farewell-divider {
    width: min(100%, 230px);
    display: flex;
    align-items: center;
    gap: var(--space-12);
    color: var(--primary-medium);
    margin: var(--space-12) 0 var(--space-4);
    opacity: .55;
}

.farewell-divider i {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, currentColor);
}

.farewell-divider i:last-child { transform: scaleX(-1); }
.farewell-divider span { font-size: .62rem; }

.farewell-signature {
    font-family: var(--script-font);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--primary-dark);
    line-height: 1;
}

.farewell-signature span {
    font-family: var(--display-font);
    display: block;
    margin-top: 7px;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--primary-medium);
}

.farewell-date {
    margin-top: var(--space-12);
    font-family: var(--display-font);
    font-size: .68rem;
    letter-spacing: 4px;
    color: rgba(107,46,74,.6);
}

/* ========================================
   FLOATING ACTIONS
   ======================================== */

.floating-actions {
    position: fixed;
    bottom: var(--space-32);
    right: var(--space-32);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    opacity: 0;
    transform: translateX(24px) scale(0.9);
    transition: all var(--dur-normal) var(--ease-bounce);
}

.floating-btn-wrapper.show { opacity: 1; transform: translateX(0) scale(1); }

.btn-label {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,242,246,.95));
    color: var(--primary-dark);
    padding: 10px 17px 10px 15px;
    border-radius: var(--radius-full);
    font-family: var(--display-font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .35px;
    box-shadow: 0 8px 26px rgba(107,46,74,.13), inset 0 1px rgba(255,255,255,.9);
    border: 1px solid rgba(139,34,82,.12);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    transition: opacity var(--dur-fast) ease, max-width var(--dur-fast) ease, padding var(--dur-fast) ease;
    overflow: hidden;
    pointer-events: none;
}

.btn-label::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent-rose);
    box-shadow: 0 0 0 4px rgba(196,106,132,.1);
    flex: 0 0 auto;
}

.btn-label::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    width: 9px;
    height: 9px;
    background: #fff5f8;
    border: solid rgba(139,34,82,.12);
    border-width: 1px 1px 0 0;
    transform: translateY(-50%) rotate(45deg);
}

.btn-label.hide-text {
    opacity: 0;
    pointer-events: none;
    max-width: 0;
    padding: 0;
    margin: 0;
}

.floating-btn {
    width: 52px;
    height: 52px;
    position: relative;
    background: linear-gradient(145deg, #d987a2, #a94369);
    color: white;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(139,34,82,.14), 0 9px 24px rgba(139,34,82,.28);
    transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-smooth), filter var(--dur-normal) ease;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
}

.floating-btn:hover {
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 0 0 1px rgba(139,34,82,.17), 0 13px 30px rgba(139,34,82,.36);
    filter: saturate(1.08) brightness(1.03);
}

.floating-btn:active { transform: scale(0.95); }

.floating-btn:focus-visible {
    outline: 3px solid rgba(139,34,82,.25);
    outline-offset: 4px;
}

.floating-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
    position: relative;
    z-index: 1;
}

/* ========================================
   PARALLAX GALLERY (Legacy - not in use)
   ======================================== */

.parallax-gallery { width: 100%; }

.parallax-item {
    width: 100%; height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.parallax-item::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--parallax-overlay, rgba(139,34,82,0.25));
    pointer-events: none;
    z-index: 1;
}

.parallax-caption {
    position: absolute;
    left: 50%; bottom: 44px;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--script-font);
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    color: rgba(255,255,255,0.96);
    text-align: center;
    text-shadow: 0 8px 24px rgba(0,0,0,0.35);
    width: min(90%, 700px);
}

.photo-1 { background-position: center 28%; --parallax-overlay: linear-gradient(180deg, rgba(17,27,44,0.20) 0%, rgba(17,27,44,0.40) 100%); }
.photo-2 { background-position: center 50%; --parallax-overlay: linear-gradient(180deg, rgba(12,22,36,0.25) 0%, rgba(12,22,36,0.48) 100%); }
.photo-3 { background-position: center 70%; --parallax-overlay: linear-gradient(180deg, rgba(15,24,38,0.18) 0%, rgba(15,24,38,0.44) 100%); }

.parallax-item.reveal-item { transform: translateY(28px) scale(1.06); }

/* ========================================
   UTILITY
   ======================================== */

.section-title {
    font-family: var(--display-font);
    font-size: var(--text-h2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.08;
}

.lazy-bg { background-image: none; background-color: #E8D0D8; }
.lazy-bg.bg-loaded { background-color: transparent; }

/* ========================================
   TAP TARGETS — Mobile accessibility
   ======================================== */

.floating-btn,
.btn-whatsapp,
.timeline-btn {
    min-width: 44px;
    min-height: 44px;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal-item {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(4px);
    transition:
        opacity var(--dur-reveal) var(--ease-smooth),
        transform var(--dur-reveal) var(--ease-smooth),
        filter var(--dur-reveal) var(--ease-smooth);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity, filter;
}

.reveal-item.reveal-left { transform: translateX(-28px) scale(0.98); }
.reveal-item.reveal-right { transform: translateX(28px) scale(0.98); }

.reveal-item.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* ========================================
   KEYFRAMES
   ======================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes flourish { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes slowBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }
@keyframes scrollWheel { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .gift-container {
        grid-template-columns: 60px 1fr 60px;
        gap: var(--space-16);
    }
}

@media (max-width: 768px) {
    .parents-list {
        flex-direction: column;
        max-width: 520px;
        gap: var(--space-24);
    }

    .parents-divider {
        width: 110px;
        flex-basis: auto;
        margin: -12px auto;
        transform: rotate(90deg);
    }

    .parents-botanical {
        width: 170px;
        opacity: .2;
    }

    .godparents-grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .godparent-card {
        width: min(100%, 520px);
        margin: 0 auto;
        padding: 10px 0 22px;
    }

    .godparents-grid {
        gap: var(--space-32);
    }

    .parents-section,
    .godparents-section,
    .itinerary-section,
    .gift-section,
    .rsvp-section,
    .farewell-section {
        padding: var(--space-64) var(--space-24);
        min-height: 100vh;
    }

    .itinerary-timeline {
        padding-left: var(--space-48);
    }

    .timeline-dot {
        left: calc(-1 * var(--space-48) + 14px);
    }

    .timeline-event {
        grid-template-columns: 110px 1fr;
        gap: 0;
        padding: 0;
    }

    .timeline-icon {
        width: 100%;
        height: 100%;
        min-height: 160px;
    }

    .timeline-icon-img {
        width: 66px;
        height: 66px;
    }

    .timeline-time {
        font-size: .68rem;
    }

    .timeline-content { padding: 28px 34px 28px 28px; }

    .gift-container {
        grid-template-columns: 1fr;
    }

    .rsvp-card {
        padding: var(--space-32) var(--space-24);
    }
}

@media (max-width: 600px) {
    :root {
        --text-h1: clamp(2.4rem, 12vw, 3.2rem);
        --text-h2: clamp(1.5rem, 6vw, 1.9rem);
    }

    .intro-text { font-size: 1.1rem; }

    .hero-section {
        min-height: 100dvh;
        padding: var(--space-24) var(--space-16) 72px;
    }

    .hero-layer-bg { object-fit: cover; }
    .hero-layer-fg { object-fit: cover; object-position: center bottom; }

    .details-subtitle {
        font-size: var(--text-h2);
        letter-spacing: 4px;
        margin-bottom: var(--space-8);
    }

    .details-name { margin-bottom: var(--space-16); }

    .details-date {
        font-size: var(--text-body);
        padding: var(--space-8) var(--space-20);
        margin-bottom: var(--space-24);
    }

    .countdown-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: min(100%, 360px);
        gap: var(--space-8);
    }

    .countdown-item {
        min-width: 0;
        min-height: 82px;
        padding: var(--space-10) var(--space-6);
        border-radius: var(--radius-sm);
    }

    .countdown-value { font-size: 1.8rem; }
    .countdown-label { font-size: 0.6rem; letter-spacing: 1px; margin-top: var(--space-4); }

    .parents-section,
    .godparents-section,
    .itinerary-section,
    .gift-section,
    .rsvp-section,
    .farewell-section {
        padding: var(--space-48) var(--space-16);
        min-height: 100vh;
    }

    .parents-header,
    .godparents-header,
    .itinerary-header {
        margin-bottom: var(--space-32);
    }

    .parents-list {
        gap: var(--space-20, 20px);
    }

    .parent-entry {
        padding: 34px 24px 38px;
        border-radius: 96px 96px 18px 18px;
    }

    .parents-section::before {
        inset: 12px;
        border-radius: 110px 110px 22px 22px;
    }

    .parents-botanical--left { left: -118px; }
    .parents-botanical--right { right: -118px; }

    .parent-fullname,
    .godparent-name {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .godparents-section {
        padding-inline: var(--space-24);
    }

    .godparents-header { margin-bottom: var(--space-48); }

    .godparents-title {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .godparent-card,
    .godparent-card:last-child {
        grid-template-columns: 36px 1fr;
        text-align: center;
    }

    .godparent-card:last-child .godparent-number {
        grid-column: 1;
    }

    .godparent-card:last-child .godparent-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .godparent-message { font-size: .92rem; }

    .itinerary-timeline {
        padding-left: var(--space-40);
    }

    .timeline-dot {
        left: calc(-1 * var(--space-40) + 10px);
        width: 12px;
        height: 12px;
    }

    .timeline-event {
        grid-template-columns: 76px 1fr;
        gap: 0;
        padding: 0;
        border-radius: 14px 38px 14px 14px;
    }

    .timeline-step { top: 10px; left: 12px; right: auto; }

    .itinerary-date {
        gap: var(--space-8);
        padding-inline: var(--space-12);
        letter-spacing: 1.2px;
    }

    .timeline-icon {
        width: 100%;
        height: 100%;
        min-height: 150px;
    }

    .timeline-icon-img {
        width: 52px;
        height: 52px;
    }

    .timeline-time {
        font-size: .62rem;
    }

    .timeline-event-name {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    }

    .timeline-content { padding: 22px 20px 22px 18px; }
    .timeline-location { font-size: .88rem; }
    .timeline-desc { line-height: 1.45; }
    .timeline-btn { padding: 8px 14px; }

    .gift-container {
        grid-template-columns: 1fr;
    }

    .gift-content {
        padding: 38px 22px 34px;
        border-radius: 82px 82px 22px 22px;
    }

    .gift-envelope { width: 88px; height: 72px; }

    .gift-title { font-size: clamp(2.35rem, 12vw, 3.2rem); }

    .rsvp-card {
        padding: var(--space-16);
        padding-top: 30px;
        border-radius: 28px;
    }

    .rsvp-title {
        font-size: clamp(2.2rem, 10vw, 2.8rem);
        margin-bottom: 0;
    }

    .rsvp-subtitle {
        margin-bottom: var(--space-16);
        font-size: 0.95rem;
    }

    .rsvp-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rsvp-field { grid-column: 1; }

    .rsvp-form label {
        font-size: .68rem;
        letter-spacing: .85px;
    }

    .farewell-section::before {
        inset: 12px;
        border-radius: 110px 110px 20px 20px;
    }

    .farewell-monogram { width: 88px; height: 88px; }
    .farewell-title { font-size: clamp(2.8rem, 14vw, 3.8rem); }
    .farewell-body { padding-inline: var(--space-12); }

    .floating-actions {
        bottom: var(--space-16);
        right: var(--space-16);
    }

    .floating-btn {
        width: 46px;
        height: 46px;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }

    .btn-label {
        max-width: 190px;
        padding: 9px 14px 9px 13px;
        font-size: .68rem;
    }

    .section-title {
        font-size: var(--text-h2);
        letter-spacing: 3px;
    }

    .scroll-indicator {
        bottom: var(--space-16);
    }

}

@media (max-width: 480px) {
    .invitation-container {
        padding: 0 12px;
    }

    .header-image {
        max-width: 340px;
    }

    .envelope-container {
        max-width: 360px;
    }

    .intro-text {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .hero-layer-bg,
    .hero-layer-fg {
        object-fit: cover;
    }

    .hero-layer-fg {
        object-position: center 40%;
    }

    .hero-section {
        padding: var(--space-16) var(--space-12) 56px;
    }

    .details-subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
        margin-bottom: 6px;
    }

    .details-name {
        margin-bottom: var(--space-12);
    }

    .details-date {
        font-size: 0.82rem;
        padding: 6px 14px;
        margin-bottom: var(--space-16);
    }

    .countdown-container {
        gap: 8px;
        width: min(100%, 320px);
    }

    .countdown-item {
        min-height: 76px;
        padding: var(--space-12) var(--space-8);
        border-radius: var(--radius-sm);
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
        margin-top: var(--space-4);
    }

    .scroll-indicator {
        bottom: var(--space-24);
    }

    .parents-section,
    .godparents-section,
    .itinerary-section,
    .gift-section,
    .rsvp-section,
    .farewell-section {
        padding: var(--space-32) var(--space-16);
        min-height: 100vh;
    }

    .parents-header,
    .godparents-header,
    .itinerary-header {
        margin-bottom: var(--space-24);
    }

    .parents-section::before {
        inset: 12px;
        border-radius: 16px;
    }

    .parent-entry {
        padding: 24px 20px 28px;
        border-radius: 42px 42px 12px 12px;
    }

    .parent-entry::before {
        width: 6px;
        height: 6px;
        margin-bottom: 16px;
    }

    .parents-botanical {
        display: none;
    }

    .parents-list {
        gap: var(--space-16);
    }

    .parents-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .parent-fullname {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }

    .parent-quote {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .godparents-section {
        padding-inline: var(--space-16);
    }

    .godparents-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .godparent-number {
        display: none;
    }

    .godparent-card,
    .godparent-card:last-child {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0 18px;
    }

    .godparent-name {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }

    .godparent-message {
        font-size: 0.88rem;
    }

    .godparent-role {
        font-size: 0.58rem;
        letter-spacing: 2px;
        margin-bottom: var(--space-8);
    }

    .itinerary-timeline {
        padding-left: 0;
        gap: 16px;
    }

    .itinerary-timeline::before,
    .timeline-dot,
    .timeline-step,
    .timeline-event::after {
        display: none;
    }

    .timeline-event {
        display: flex;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(196,106,132,.1);
        box-shadow: 0 4px 20px rgba(107,46,74,.05);
        align-items: flex-start;
    }

    .timeline-icon {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 16px;
        background: linear-gradient(145deg, #f9e1e8, #f4cfdc);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 1px rgba(255,255,255,.5);
    }

    .timeline-icon-img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .timeline-content {
        flex: 1;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .timeline-event-name {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-dark);
        line-height: 1.2;
    }

    .timeline-time {
        align-self: flex-start;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: var(--primary-dark);
        padding: 4px 10px;
        background: var(--bg-soft);
        border-radius: var(--radius-full);
        border: 1px solid rgba(196,106,132,.1);
        white-space: nowrap;
        line-height: 1.3;
    }

    .timeline-location {
        font-size: 0.82rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .timeline-desc {
        display: none;
    }

    .timeline-btn {
        align-self: stretch;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: var(--primary-dark);
        background: transparent;
        border: 1px solid rgba(139,34,82,.2);
        border-radius: var(--radius-full);
        text-decoration: none;
        min-height: 38px;
        transition: all var(--dur-normal) var(--ease-smooth);
    }

    .timeline-btn::after {
        content: '→';
        font-size: 1em;
        transition: transform var(--dur-normal) var(--ease-smooth);
    }

    .timeline-btn:hover {
        background: var(--primary-dark);
        color: white;
        border-color: var(--primary-dark);
    }

    .timeline-btn:hover::after {
        transform: translateX(3px);
    }

    .itinerary-date {
        font-size: 0.6rem;
        padding: 8px 14px;
        gap: 6px;
        letter-spacing: 1.5px;
    }

    .itinerary-date b {
        font-size: 1.25rem;
    }

    .gift-section::before,
    .gift-section::after {
        display: none;
    }

    .gift-content {
        padding: 32px 20px 28px;
        border-radius: 44px 44px 16px 16px;
    }

    .gift-title {
        font-size: clamp(1.7rem, 9vw, 2.2rem);
    }

    .gift-badge {
        padding: var(--space-8) var(--space-32);
    }

    .gift-text {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .gift-envelope {
        width: 72px;
        height: 60px;
    }

    .rsvp-card {
        padding: 16px 16px 20px;
        padding-top: 32px;
        border-radius: 24px;
    }

    .rsvp-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .rsvp-subtitle {
        font-size: 0.85rem;
        margin-bottom: var(--space-16);
    }

    .rsvp-form {
        gap: 12px;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        min-height: 48px;
        padding: 12px 14px 10px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .rsvp-form textarea {
        resize: none;
        min-height: 72px;
        padding-top: var(--space-16);
    }

    .rsvp-form select {
        padding-right: 28px;
    }

    .rsvp-form label {
        font-size: 0.6rem;
        letter-spacing: 0.7px;
        padding-left: 6px;
    }

    .btn-whatsapp {
        padding: var(--space-10) var(--space-20);
        font-size: 0.95rem;
        min-height: 46px;
    }

    .rsvp-badge {
        margin-bottom: var(--space-8);
        padding: 4px 14px;
        font-size: 0.7rem;
    }

    .farewell-section::before {
        inset: 14px;
        border-radius: 60px 60px 14px 14px;
    }

    .farewell-monogram {
        width: 68px;
        height: 68px;
        margin-bottom: var(--space-4);
    }

    .farewell-monogram > span {
        font-size: 2rem;
    }

    .farewell-title {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .farewell-body {
        font-size: 0.9rem;
        padding-inline: var(--space-16);
    }

    .farewell-signature {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .floating-actions {
        bottom: calc(var(--space-16) + env(safe-area-inset-bottom, 0px));
        right: var(--space-16);
        gap: 10px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }

    .btn-label {
        max-width: 160px;
        padding: 8px 12px 8px 10px;
        font-size: 0.65rem;
    }

}

@media (max-height: 520px) and (orientation: landscape) {
    .hero-section {
        min-height: 100dvh;
        padding: var(--space-12) var(--space-24) 48px;
    }

    .details-name {
        font-size: clamp(1.6rem, 5vh, 2.4rem);
        margin-bottom: 6px;
    }

    .details-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: var(--space-4);
    }

    .details-date {
        font-size: 0.75rem;
        padding: var(--space-4) 14px;
        margin-bottom: var(--space-12);
    }

    .countdown-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: var(--space-4);
        width: auto;
    }

    .countdown-item {
        min-width: 56px;
        min-height: 50px;
        padding: 6px var(--space-4);
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.48rem;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 380px), (max-height: 680px) {
    .hero-section { padding-bottom: 56px; }
    .countdown-item { min-height: 68px; padding-block: var(--space-6); }
    .countdown-value { font-size: 1.5rem; }
    .mouse { height: 28px; }
}

/* ========================================
   RESPONSIVE: ≤360px (Very small phones)
   ======================================== */

@media (max-width: 360px) {
    :root {
        --text-h1: clamp(2rem, 10vw, 2.4rem);
        --text-h2: clamp(1.3rem, 5vw, 1.5rem);
        --text-body: clamp(0.85rem, 1vw, 0.9rem);
        --text-caption: clamp(0.72rem, 0.8vw, 0.78rem);
        --space-32: 24px;
        --space-48: 36px;
        --space-64: 48px;
    }

    .hero-section {
        padding: var(--space-12) var(--space-8) 48px;
    }
    .details-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .details-date {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .countdown-container {
        gap: 5px;
        width: min(100%, 280px);
    }
    .countdown-item {
        min-height: 64px;
        padding: 6px 4px;
    }
    .countdown-value {
        font-size: 1.3rem;
    }

    .parents-section::before {
        inset: 8px;
        border-radius: 15px;
    }
    .parent-entry {
        padding: 20px 14px 24px;
        border-radius: 32px 32px 8px 8px;
    }
    .parent-entry::before {
        width: 5px;
        height: 5px;
        margin-bottom: 12px;
    }
    .parents-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .parent-fullname {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    .parent-quote {
        font-size: 0.82rem;
    }

    .godparent-number {
        display: none;
    }

    .godparent-card,
    .godparent-card:last-child {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .godparent-name {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .itinerary-timeline {
        gap: 14px;
    }
    .timeline-event {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(107,46,74,.05);
        align-items: flex-start;
    }
    .timeline-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 12px;
    }
    .timeline-icon-img {
        width: 28px;
        height: 28px;
    }
    .timeline-content {
        gap: 4px;
    }
    .timeline-event-name {
        font-size: 1rem;
    }
    .timeline-time {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
    .timeline-location {
        font-size: 0.75rem;
        gap: 4px;
    }
    .timeline-btn {
        align-self: stretch;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.65rem;
        min-height: 34px;
    }

    .gift-content {
        padding: 24px 14px 22px;
        border-radius: 32px 32px 12px 12px;
    }
    .gift-title {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
    }
    .gift-envelope {
        width: 62px;
        height: 52px;
    }

    .rsvp-card {
        padding: 12px 12px 16px;
        padding-top: 28px;
    }
    .rsvp-title {
        font-size: clamp(1.3rem, 7vw, 1.6rem);
    }
    .rsvp-subtitle {
        font-size: 0.8rem;
        margin-bottom: var(--space-12);
    }
    .rsvp-form {
        gap: 10px;
    }
    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        min-height: 44px;
        padding: 10px 12px 8px;
        font-size: 0.9rem;
    }
    .rsvp-form textarea {
        min-height: 60px;
        padding-top: var(--space-14);
    }
    .btn-whatsapp {
        padding: var(--space-8) var(--space-16);
        font-size: 0.9rem;
        min-height: 42px;
    }
    .rsvp-badge {
        margin-bottom: var(--space-6);
        padding: 3px 12px;
        font-size: 0.65rem;
    }

    .farewell-section::before {
        inset: 8px;
        border-radius: 36px 36px 10px 10px;
    }
    .farewell-monogram {
        width: 56px;
        height: 56px;
    }
    .farewell-monogram > span {
        font-size: 1.6rem;
    }
    .farewell-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .floating-actions {
        right: var(--space-8);
        bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
    }
    .floating-btn {
        width: 40px;
        height: 40px;
    }
    .floating-btn svg {
        width: 17px;
        height: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item, .reveal-item.reveal-left, .reveal-item.reveal-right {
        opacity: 1; transform: none; filter: none; transition: none;
    }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
