:root {
    /* Refined Color Palette - More harmonious HSL values */
    --clr-ivory: hsl(45, 30%, 98%);
    --clr-cream: hsl(45, 25%, 95%);
    --clr-beige: hsl(45, 20%, 88%);
    --clr-sage: hsl(105, 12%, 63%);
    --clr-sage-light: hsl(105, 15%, 80%);
    --clr-forest: hsl(135, 25%, 18%);
    --clr-forest-dark: hsl(135, 30%, 12%);
    --clr-champagne: hsl(36, 40%, 65%);
    --clr-champagne-light: hsl(36, 45%, 85%);
    --clr-blush: hsl(11, 36%, 68%);
    --clr-mist: hsl(194, 24%, 82%);
    --clr-text-main: hsl(135, 20%, 14%);
    --clr-text-light: hsl(135, 10%, 35%);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-accent: 'Great Vibes', 'Segoe Script', 'Brush Script MT', cursive;

    /* Transitions & Shadows */
    --transition: var(--transition-fast);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 12px 40px hsla(135, 25%, 12%, 0.08);
    --shadow-glass: 0 8px 32px hsla(135, 25%, 12%, 0.12);
    --shadow-hover: 0 30px 60px hsla(135, 25%, 12%, 0.15);
}

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

*:focus-visible {
    outline: 2px solid var(--clr-champagne);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-ivory);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
}

.fonts-fallback {
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-accent: 'Segoe Script', 'Brush Script MT', cursive;
}

.fonts-fallback .accent-text,
.fonts-fallback .footer-title,
.fonts-fallback .save-weekend-panel h2 {
    font-size: 1em;
    line-height: 1.05;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    display: none;
}

/* Typography Utilities */
h1, h2, h3, h4, .eyebrow {
    font-family: var(--font-heading);
    font-weight: 400;
}

h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--clr-forest);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-light);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

section {
    scroll-margin-top: 5.5rem;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header .eyebrow,
.grid-content .eyebrow,
.sticky-content .eyebrow,
.details .eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-champagne);
}

.max-w-lg { max-width: 680px; }
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism Refinement */
.glass-card {
    background: hsla(45, 30%, 98%, 0.78);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1px solid hsla(0, 0%, 100%, 0.5);
    border-top: 1px solid hsla(0, 0%, 100%, 0.9);
    border-radius: 18px;
    box-shadow:
        0 4px 16px hsla(135, 25%, 12%, 0.05),
        0 16px 48px hsla(135, 25%, 12%, 0.08);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: hsla(36, 40%, 65%, 0.6);
}

/* Enhanced Reveal Classes */
.section-reveal {
    transition: var(--transition-smooth);
}

.animations-ready .section-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transition: var(--transition-smooth);
}

.animations-ready .reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    transition: var(--transition-smooth);
}

.animations-ready .reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    transition: var(--transition-smooth);
}

.animations-ready .reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-up {
    transition: var(--transition-smooth);
}

.animations-ready .reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

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

/* Split Text Utility */
.split-line {
    overflow: hidden;
    display: block;
}

.split-line span {
    display: block;
    transform: translateY(0);
    opacity: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.animations-ready .split-line span {
    transform: translateY(110%);
    opacity: 0;
}

.active .split-line span {
    transform: translateY(0);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--clr-forest);
    color: var(--clr-ivory);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--clr-forest-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(252, 251, 248, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-ivory);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--clr-ivory);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-champagne);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--clr-champagne-light);
}

/* Scrollspy active navigation states */
.nav-links a.active {
    color: var(--clr-sage-light);
}

.nav-links a.active::after {
    width: 100%;
    background-color: var(--clr-sage-light);
}

.navbar.scrolled .nav-links a.active {
    color: var(--clr-sage);
}

.navbar.scrolled .nav-links a.active::after {
    width: 100%;
    background-color: var(--clr-sage);
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-brand {
    color: var(--clr-forest);
    text-shadow: none;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--clr-sage);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--clr-ivory);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    cursor: pointer;
    z-index: 101;
    transition: var(--transition);
}

.navbar.scrolled .hamburger {
    color: var(--clr-forest);
    filter: none;
}

/* Botanical Accents */
.botanical-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.scroll-vine {
    position: absolute;
    top: 0;
    width: 15vw;
    max-width: 160px;
    min-width: 70px;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.left-vine {
    left: 0;
}

.right-vine {
    right: 0;
}

.scroll-vine-path {
    fill: none;
    stroke: var(--clr-sage);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    will-change: stroke-dashoffset;
    transition: stroke-dashoffset 0.08s ease-out;
}

@media (max-width: 1024px) {
    .scroll-vine {
        width: 12vw;
        max-width: 120px;
    }
    .scroll-vine-path {
        stroke-width: 1.8;
    }
}

@media (max-width: 768px) {
    .scroll-vine {
        width: 10vw;
        max-width: 70px;
        min-width: 45px;
    }
    .scroll-vine-path {
        stroke-width: 1.4;
        opacity: 0.55;
    }
}

/* Hero Section Refinement */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-ivory);
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 1.4rem;
    border: 1px solid hsla(45, 30%, 98%, 0.22);
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/couple-snow.webp');
    background-size: cover;
    background-position: center 42%;
    z-index: -2;
    animation: kenBurns 30s infinite alternate ease-in-out;
    overflow: hidden;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) translate(2%, 1%); }
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    inset: -22%;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-bg::before {
    background:
        linear-gradient(111deg, transparent 0 16%, hsla(45, 78%, 88%, 0.16) 19%, hsla(45, 78%, 88%, 0.04) 23%, transparent 29% 43%, hsla(42, 70%, 92%, 0.12) 46%, transparent 53%),
        linear-gradient(111deg, transparent 0 58%, hsla(188, 55%, 94%, 0.1) 62%, hsla(42, 82%, 90%, 0.16) 65%, transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.58;
    transform: translate3d(-8%, 0, 0) rotate(-2deg);
    animation: conservatoryLightSweep 17s ease-in-out infinite alternate;
}

.hero-bg::after {
    background:
        repeating-linear-gradient(106deg, transparent 0 5.5rem, hsla(45, 82%, 92%, 0.08) 5.7rem, transparent 6.15rem),
        radial-gradient(ellipse at 67% 18%, hsla(42, 85%, 86%, 0.18), transparent 20rem);
    mix-blend-mode: soft-light;
    opacity: 0.48;
    transform: translate3d(3%, -2%, 0);
    animation: conservatoryGlassGlint 22s ease-in-out infinite alternate;
}

@keyframes conservatoryLightSweep {
    0% {
        opacity: 0.4;
        transform: translate3d(-12%, 2%, 0) rotate(-3deg);
    }
    45% {
        opacity: 0.68;
    }
    100% {
        opacity: 0.5;
        transform: translate3d(10%, -3%, 0) rotate(2deg);
    }
}

@keyframes conservatoryGlassGlint {
    0% {
        opacity: 0.34;
        transform: translate3d(4%, -3%, 0);
    }
    100% {
        opacity: 0.56;
        transform: translate3d(-4%, 2%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg::before,
    .hero-bg::after {
        animation: none;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 73% 35%, hsla(36, 55%, 68%, 0.16), transparent 26rem),
        linear-gradient(90deg, hsla(135, 30%, 9%, 0.92) 0%, hsla(135, 24%, 12%, 0.68) 48%, hsla(135, 30%, 8%, 0.82) 100%),
        linear-gradient(0deg, hsla(135, 30%, 8%, 0.88), transparent 40%);
    z-index: -1;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5.25rem 4rem 2.75rem;
    position: relative;
    z-index: 1;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
}

.hero-main-content .eyebrow {
    font-size: 1.5rem;
    color: var(--clr-champagne-light);
    margin-bottom: 0.5rem;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero .title {
    font-size: clamp(3.7rem, 8.2vw, 7rem);
    line-height: 0.98;
    margin-bottom: 1.35rem;
    text-align: left;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero .title .split-line {
    padding-bottom: 0.14em;
    margin-bottom: -0.08em;
}

.accent-text {
    font-family: var(--font-accent);
    color: var(--clr-champagne);
    font-size: 1.08em;
    display: inline-block;
    margin-top: -0.2em;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid hsla(36, 55%, 78%, 0.5);
    border-radius: 999px;
    background: hsla(36, 55%, 78%, 0.12);
    color: var(--clr-champagne-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-date-box h2 {
    color: var(--clr-ivory);
    font-size: 2rem;
    margin: 0.5rem 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-location {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--clr-beige);
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-side-content {
    max-width: 430px;
    justify-self: end;
}

.hero-photo-card {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 300px;
    margin: 0 0 1.2rem auto;
    overflow: hidden;
    border: 1px solid hsla(45, 30%, 98%, 0.28);
    border-radius: 18px;
    box-shadow: 0 30px 90px hsla(135, 30%, 6%, 0.45);
    transform: rotate(1.5deg);
}

.hero-photo-card::before {
    content: '';
    position: absolute;
    inset: 0.9rem;
    border: 1px solid hsla(45, 30%, 98%, 0.35);
    z-index: 2;
    pointer-events: none;
}

.hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 54%;
    display: block;
    filter: saturate(1.04) contrast(1.03);
}

.hero-photo-caption {
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 3rem;
    color: var(--clr-ivory);
    background: linear-gradient(to top, hsla(135, 30%, 7%, 0.82), transparent);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 3;
}

.hero-photo-caption strong {
    color: var(--clr-champagne-light);
    font-weight: 600;
    text-align: right;
}

/* Countdown Styles */
.countdown-wrapper {
    background: linear-gradient(135deg, hsla(135, 30%, 8%, 0.65), hsla(135, 30%, 4%, 0.85));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 24px;
    border: 1px solid hsla(36, 40%, 65%, 0.25);
    border-top-color: hsla(36, 45%, 85%, 0.4);
    margin-bottom: 0;
    box-shadow:
        0 1px 0 hsla(36, 45%, 85%, 0.15) inset,
        0 24px 60px hsla(135, 30%, 3%, 0.6);
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.countdown-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, hsla(36, 45%, 85%, 0.12), transparent 75%);
    pointer-events: none;
}

.countdown-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsla(36, 40%, 65%, 0.3), transparent);
}

.countdown-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--clr-beige);
    margin-bottom: 1.25rem;
    opacity: 0.95;
    text-align: center;
}

.countdown-eyebrow .accent-text {
    font-family: var(--font-accent);
    color: var(--clr-champagne-light);
    font-size: 1.7em;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25rem;
    margin-right: -0.1rem;
    margin-top: -0.35rem;
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    width: 100%;
}

.timer-unit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: hsla(45, 30%, 98%, 0.04);
    border: 1px solid hsla(36, 40%, 65%, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.25rem 0.65rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.timer-unit:hover {
    background: hsla(45, 30%, 98%, 0.08);
    border-color: hsla(36, 40%, 65%, 0.28);
    transform: translateY(-2px);
}

.timer-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.3rem);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: var(--clr-ivory);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
}

.timer-number.is-rolling {
    animation: countdownRoll 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timer-divider {
    display: none; /* Hide colons */
}

@keyframes timerPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.25; }
}

.countdown-note {
    margin: 0.85rem 0 0;
    color: var(--clr-beige);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.35;
    text-align: center;
    opacity: 0.7;
}

@keyframes countdownRoll {
    0% {
        opacity: 0;
        transform: translateY(-0.55rem) rotateX(58deg);
    }

    58% {
        opacity: 1;
        transform: translateY(0.08rem) rotateX(-8deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 880px;
    margin-top: 1.35rem;
    border: 1px solid hsla(45, 30%, 98%, 0.22);
    background: hsla(45, 30%, 98%, 0.16);
    backdrop-filter: blur(16px);
}

.hero-quick-facts div {
    padding: 0.9rem 1.15rem;
    background: hsla(135, 25%, 10%, 0.18);
}

.hero-quick-facts span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--clr-champagne-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-quick-facts strong {
    display: block;
    color: var(--clr-ivory);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
}

.timer-unit label {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-champagne-light);
    opacity: 0.8;
    margin-top: 0.4rem;
}

.scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    left: 4rem;
    transform: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: none;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--clr-champagne);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--clr-ivory);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    to { left: 100%; }
}

/* Our Journey Section */
.journey {
    background:
        linear-gradient(180deg, var(--clr-ivory), var(--clr-cream));
    position: relative;
    z-index: 1;
}

.journey::before {
    content: '';
    position: absolute;
    top: -4rem;
    right: -8rem;
    width: 28rem;
    height: 28rem;
    background: url('assets/images/botanical-bg.webp') center / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.asymmetrical-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.grid-content {
    max-width: 500px;
}

.grid-images {
    position: relative;
    height: 600px;
}

.image-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 2;
    width: min(100%, 720px);
    height: 100%;
    margin-left: auto;
}

.image-main::before {
    content: '';
    position: absolute;
    inset: -0.9rem;
    border: 1px solid hsla(36, 40%, 65%, 0.36);
    border-radius: 22px;
    z-index: -1;
}

.image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-main:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(22, 38, 25, 0.2));
    pointer-events: none;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--clr-forest);
    border: 1px dashed var(--clr-sage);
}

.travel-meta {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: hsla(105, 15%, 80%, 0.36);
    color: var(--clr-forest);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.italic { font-style: italic; }
.text-lg { font-size: 1.25rem; }

@media (max-width: 900px) {
    .asymmetrical-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .grid-images {
        height: 500px;
    }
    .grid-content {
        max-width: 100%;
    }
}

/* Long Weekend */
.long-weekend {
    background:
        radial-gradient(circle at 22% 8%, hsla(36, 45%, 70%, 0.16), transparent 24rem),
        linear-gradient(135deg, var(--clr-forest), var(--clr-forest-dark));
    color: var(--clr-ivory);
}

.long-weekend .section-header h2 {
    color: var(--clr-champagne);
}

.long-weekend .section-header p {
    color: var(--clr-beige);
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(252, 251, 248, 0.2);
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    background: hsla(45, 30%, 98%, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    width: 22%;
    box-shadow: var(--shadow-glass);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: hsla(36, 40%, 65%, 0.5);
    background: hsla(45, 30%, 98%, 0.1);
}

.timeline-icon {
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--clr-champagne) !important;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--clr-champagne-light);
    margin-bottom: 0.75rem;
}

.timeline-event {
    font-size: 0.95rem;
    color: var(--clr-ivory);
}

.timeline-event strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Venue Section */
.venue {
    position: relative;
    background-color: var(--clr-forest-dark);
    padding: 8rem 0;
    overflow: hidden;
    isolation: isolate;
}

.venue-cinematic {
    position: absolute;
    inset: -34vh 0 auto;
    height: min(92vh, 760px);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: calc(0.68 + (var(--venue-progress, 0) * 0.32));
    -webkit-mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
}

.venue-cinematic-layer {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    will-change: opacity, transform;
}

.venue-mountain-layer {
    background-image:
        linear-gradient(to bottom, hsla(148, 48%, 7%, 0.12), hsla(148, 48%, 7%, 0.5) 76%, hsla(148, 48%, 7%, 0.94)),
        url('assets/images/bright-mountain-bg.webp');
    opacity: calc(1 - var(--venue-progress, 0));
    transform: translate3d(0, var(--venue-mountain-y, 0px), 0) scale(1.08);
    filter: saturate(0.9) contrast(1.08);
}

.venue-greenery-layer {
    background-image:
        radial-gradient(circle at 72% 24%, hsla(39, 70%, 82%, 0.26), transparent 18rem),
        linear-gradient(to bottom, hsla(148, 48%, 7%, 0.12), hsla(148, 48%, 7%, 0.72) 76%, hsla(148, 48%, 7%, 0.96)),
        url('assets/images/botanical-bg.webp');
    opacity: var(--venue-progress, 0);
    transform: translate3d(0, var(--venue-greenery-y, 48px), 0) scale(1.08);
    filter: saturate(1.12) contrast(1.08);
}

.venue-glass-ribs {
    position: absolute;
    inset: -12%;
    background:
        repeating-linear-gradient(104deg, transparent 0 6.4rem, hsla(45, 70%, 88%, 0.08) 6.55rem, transparent 6.85rem),
        linear-gradient(104deg, transparent 0 33%, hsla(45, 82%, 90%, 0.14) 36%, transparent 43% 64%, hsla(45, 82%, 90%, 0.1) 67%, transparent 74%);
    mix-blend-mode: screen;
    opacity: calc(0.12 + (var(--venue-progress, 0) * 0.52));
    transform: translate3d(var(--venue-rib-x, -17px), 0, 0);
    will-change: opacity, transform;
}

.venue::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: clamp(9rem, 18vw, 17rem);
    background:
        linear-gradient(to bottom, hsla(140, 34%, 18%, 0.86), hsla(151, 38%, 8%, 0.1) 72%, transparent),
        linear-gradient(to right, hsla(197, 34%, 76%, 0.16), transparent 45%, hsla(39, 70%, 82%, 0.12));
    pointer-events: none;
    z-index: 1;
}

.venue-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/botanical-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 0;
    mix-blend-mode: soft-light;
}

.venue .container {
    position: relative;
    z-index: 2;
}

.botanical-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    display: block;
    width: var(--particle-size, 0.75rem);
    height: var(--particle-size, 0.75rem);
    left: var(--particle-x, 50%);
    top: var(--particle-y, 50%);
    opacity: var(--particle-opacity, 0.22);
    transform: translate3d(0, 0, 0) rotate(var(--particle-rotate, 0deg));
    filter: blur(var(--particle-blur, 0px));
    animation:
        particleFloat var(--particle-duration, 32s) ease-in-out infinite,
        particleFade var(--particle-fade-duration, 18s) ease-in-out infinite;
    animation-delay: var(--particle-delay, 0s);
    will-change: transform, opacity;
}

.particle.mote {
    border-radius: 999px;
    background: hsla(45, 72%, 88%, 0.7);
    box-shadow: 0 0 18px hsla(45, 72%, 88%, 0.28);
}

.particle.petal {
    border-radius: 70% 30% 70% 30%;
    background:
        radial-gradient(circle at 30% 26%, hsla(45, 64%, 92%, 0.72), transparent 48%),
        linear-gradient(135deg, hsla(11, 44%, 76%, 0.54), hsla(36, 55%, 76%, 0.2));
}

.particle.leaf {
    border-radius: 80% 0 80% 0;
    background:
        linear-gradient(135deg, hsla(105, 20%, 78%, 0.08), hsla(105, 20%, 72%, 0.42)),
        linear-gradient(45deg, transparent 47%, hsla(45, 30%, 98%, 0.28) 50%, transparent 54%);
}

.venue-particles .particle-1 {
    --particle-x: 7%;
    --particle-y: 22%;
    --particle-size: 1.05rem;
    --particle-opacity: 0.18;
    --particle-rotate: 20deg;
    --particle-duration: 38s;
    --particle-delay: -9s;
}

.venue-particles .particle-2 {
    --particle-x: 17%;
    --particle-y: 76%;
    --particle-size: 0.34rem;
    --particle-opacity: 0.26;
    --particle-blur: 0.5px;
    --particle-duration: 29s;
    --particle-delay: -4s;
}

.venue-particles .particle-3 {
    --particle-x: 88%;
    --particle-y: 18%;
    --particle-size: 1.45rem;
    --particle-opacity: 0.14;
    --particle-rotate: -18deg;
    --particle-duration: 42s;
    --particle-delay: -16s;
}

.venue-particles .particle-4 {
    --particle-x: 77%;
    --particle-y: 68%;
    --particle-size: 0.42rem;
    --particle-opacity: 0.24;
    --particle-blur: 0.6px;
    --particle-duration: 34s;
    --particle-delay: -12s;
}

.venue-particles .particle-5 {
    --particle-x: 58%;
    --particle-y: 9%;
    --particle-size: 0.8rem;
    --particle-opacity: 0.16;
    --particle-rotate: 34deg;
    --particle-duration: 36s;
    --particle-delay: -20s;
}

.venue-particles .particle-6 {
    --particle-x: 35%;
    --particle-y: 88%;
    --particle-size: 1.25rem;
    --particle-opacity: 0.13;
    --particle-rotate: 58deg;
    --particle-duration: 45s;
    --particle-delay: -6s;
}

@keyframes particleFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(var(--particle-rotate, 0deg));
    }
    50% {
        transform: translate3d(var(--particle-drift-x, 2.4rem), -3.8rem, 0) rotate(calc(var(--particle-rotate, 0deg) + 24deg));
    }
    100% {
        transform: translate3d(var(--particle-drift-back, -0.85rem), -7rem, 0) rotate(calc(var(--particle-rotate, 0deg) + 48deg));
    }
}

@keyframes particleFade {
    0%, 100% {
        opacity: 0;
    }
    18%, 78% {
        opacity: var(--particle-opacity, 0.22);
    }
}

.venue-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: stretch;
    gap: 1.5rem;
    --venue-panel-height: clamp(500px, 43vw, 560px);
}

.venue-copy {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--venue-panel-height);
    background:
        linear-gradient(145deg, hsla(45, 30%, 98%, 0.88), hsla(45, 25%, 95%, 0.72));
    position: relative;
    overflow: visible;
}

.venue-copy:hover {
    transform: none;
}

.venue-copy::after {
    content: '';
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid hsla(36, 40%, 65%, 0.34);
    border-radius: 50%;
    pointer-events: none;
}

.venue-copy .eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-champagne);
}

.venue-copy h2 {
    color: var(--clr-forest);
    max-width: 620px;
}

.venue-highlights {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

/* Venue ceremony photo */
.venue-image-wrapper {
    width: 100%;
    min-height: var(--venue-panel-height);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 90px hsla(135, 30%, 6%, 0.36);
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid hsla(45, 30%, 98%, 0.18);
}

.venue-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid hsla(45, 30%, 98%, 0.36);
    z-index: 2;
    pointer-events: none;
}

.venue-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(135, 30%, 8%, 0.74), transparent 54%);
    pointer-events: none;
    z-index: 1;
}

.venue-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 56% !important;
    display: block;
}

.venue-inset-image {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: min(34%, 15rem);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 48%;
    border: 0.45rem solid hsla(45, 30%, 98%, 0.88);
    border-radius: 12px;
    box-shadow: 0 18px 48px hsla(135, 30%, 6%, 0.4);
    z-index: 3;
    transform: rotate(1.5deg);
}

.venue-image-caption {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    z-index: 3;
    color: var(--clr-ivory);
}

.venue-image-caption span {
    display: block;
    color: var(--clr-champagne-light);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.venue-image-caption strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 0.95;
}

/* Hover scale handled by active slideshow slide Ken Burns animation */

/* Venue Slideshow Styles */
.venue-slider-container {
    position: relative;
}

.venue-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.venue-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
    z-index: 1;
}

.venue-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Ken Burns animation disabled to prevent browser composite layer rendering blurriness on Retina screens */
.venue-slide.active .venue-image {
    /* Kept static for maximum image sharpness and clarity */
}

.venue-slider-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    right: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 4;
    pointer-events: none;
}

.venue-slider-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsla(45, 30%, 98%, 0.15);
    border: 1px solid hsla(45, 30%, 98%, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--clr-ivory);
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    padding: 0;
}

.venue-slider-btn:hover {
    background: hsla(45, 30%, 98%, 0.35);
    border-color: hsla(45, 30%, 98%, 0.5);
    transform: scale(1.05);
}

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

.venue-slider-dots {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.venue-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: hsla(45, 30%, 98%, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-dot.active {
    background: var(--clr-ivory);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .venue-slider-nav {
        left: 0.75rem;
        right: 0.75rem;
    }
    .venue-slider-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    .venue-slider-dots {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}


.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--clr-forest);
    padding: 0.95rem 1rem;
    background: hsla(45, 30%, 98%, 0.5);
    border: 1px solid hsla(36, 40%, 65%, 0.18);
    border-radius: 12px;
}

.highlight-item svg {
    color: var(--clr-sage);
    flex-shrink: 0;
}

/* Getting There Grid */
.sticky-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.sticky-content {
    /* Removed sticky to fix scroll glitch */
}

.travel-card {
    padding: 2rem;
    background:
        linear-gradient(135deg, var(--clr-ivory), hsla(45, 25%, 95%, 0.88));
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--clr-champagne);
    position: relative;
    overflow: hidden;
}

.travel-card::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsla(194, 24%, 82%, 0.34);
}

.travel-number {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--clr-blush);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.travel-card p {
    color: var(--clr-text-main);
}

.sticky-visual {
    height: 600px;
    width: 100%;
    max-width: 660px;
    justify-self: center;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.arrival-map {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        radial-gradient(circle at 24% 22%, hsla(36, 40%, 65%, 0.18), transparent 12rem),
        radial-gradient(circle at 78% 40%, hsla(105, 15%, 80%, 0.46), transparent 16rem),
        linear-gradient(135deg, hsla(45, 30%, 98%, 0.96), hsla(45, 25%, 95%, 0.86)),
        url('assets/images/subtle-mountain-bg.webp') center / cover;
    isolation: isolate;
}

.arrival-map::before {
    content: '';
    position: absolute;
    inset: 1.25rem;
    border: 1px solid hsla(36, 40%, 65%, 0.3);
    border-radius: 12px;
    z-index: 3;
    pointer-events: none;
}

.arrival-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 28%, hsla(105, 15%, 80%, 0.42), transparent 15rem),
        linear-gradient(to top, hsla(135, 25%, 18%, 0.08), transparent 62%);
    z-index: 1;
    pointer-events: none;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsla(135, 25%, 18%, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, hsla(135, 25%, 18%, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.18;
    z-index: 0;
}

.map-compass {
    position: absolute;
    top: 2.1rem;
    right: 2.1rem;
    z-index: 5;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    color: var(--clr-forest);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    border-radius: 50%;
    background: hsla(45, 30%, 98%, 0.76);
    border: 1px solid hsla(36, 40%, 65%, 0.28);
    box-shadow: 0 18px 42px hsla(135, 25%, 12%, 0.11);
}

.map-compass::before,
.map-compass::after {
    content: '';
    position: absolute;
    inset: 0.55rem;
    border-radius: 50%;
    border: 1px solid hsla(135, 25%, 18%, 0.15);
}

.map-compass::after {
    inset: auto;
    top: 0.38rem;
    width: 0.42rem;
    height: 0.9rem;
    border: 0;
    border-radius: 999px 999px 0 0;
    background: var(--clr-blush);
}

.map-context {
    position: absolute;
    z-index: 2;
    padding: 1.25rem;
    border-radius: 18px;
    background: hsla(45, 30%, 98%, 0.68);
    border: 1px solid hsla(36, 40%, 65%, 0.2);
    box-shadow: 0 18px 50px hsla(135, 25%, 12%, 0.08);
}

.map-context span,
.route-label {
    color: hsla(135, 20%, 14%, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.map-context strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--clr-forest);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    font-weight: 400;
    line-height: 0.96;
}

.downtown-area {
    top: 24%;
    left: 9%;
    width: min(44%, 17rem);
    min-height: 12rem;
}

.downtown-area::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.15rem;
    height: 4.7rem;
    background:
        linear-gradient(to top, hsla(135, 25%, 18%, 0.17) 0 100%) 0 100% / 1.6rem 58% no-repeat,
        linear-gradient(to top, hsla(135, 25%, 18%, 0.2) 0 100%) 2.25rem 100% / 1.9rem 88% no-repeat,
        linear-gradient(to top, hsla(135, 25%, 18%, 0.14) 0 100%) 4.9rem 100% / 1.45rem 70% no-repeat,
        linear-gradient(to top, hsla(135, 25%, 18%, 0.18) 0 100%) 7.05rem 100% / 2.1rem 100% no-repeat,
        linear-gradient(to top, hsla(135, 25%, 18%, 0.13) 0 100%) 9.9rem 100% / 1.7rem 62% no-repeat;
    opacity: 0.85;
}

.zoo-area {
    top: 18%;
    right: 9%;
    width: min(39%, 16rem);
    min-height: 11rem;
    background:
        radial-gradient(circle at 77% 72%, hsla(105, 15%, 80%, 0.72), transparent 4.8rem),
        hsla(45, 30%, 98%, 0.72);
}

.zoo-area::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 52% 48% 58% 42%;
    background: hsla(105, 12%, 63%, 0.32);
    box-shadow:
        -2rem 0.7rem 0 hsla(105, 12%, 63%, 0.18),
        -0.7rem -1.15rem 0 hsla(105, 15%, 80%, 0.4);
}

.bow-river {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 44%;
    height: 7.25rem;
    z-index: 2;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, hsla(194, 24%, 82%, 0.86) 12%, hsla(194, 24%, 82%, 0.72) 88%, transparent);
    transform: rotate(-7deg);
    box-shadow: inset 0 0 0 1px hsla(194, 35%, 70%, 0.2);
}

.bow-river span {
    position: absolute;
    top: 50%;
    left: 50%;
    color: hsla(135, 20%, 14%, 0.42);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.map-route {
    position: absolute;
    top: 38%;
    left: 9%;
    right: 8%;
    height: 40%;
    z-index: 4;
    pointer-events: none;
}

.route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.route-shadow,
.route-glow,
.route-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-path {
    stroke: var(--route-color, var(--clr-blush));
    stroke-width: 7;
    stroke-dasharray: 820;
    stroke-dashoffset: 820;
    filter: drop-shadow(0 8px 14px hsla(135, 25%, 12%, 0.14));
}

.route-shadow {
    stroke: hsla(135, 25%, 12%, 0.16);
    stroke-width: 15;
}

.route-glow {
    stroke: var(--route-glow, hsla(11, 36%, 68%, 0.18));
    stroke-width: 24;
    opacity: 0.82;
}

.arrival-map.is-visible .route-path {
    animation: routeDraw 1.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

.route-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--clr-ivory);
    border: 4px solid var(--route-color, var(--clr-blush));
    box-shadow: 0 10px 24px hsla(135, 25%, 12%, 0.16);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}

.route-dot::after {
    content: '';
    position: absolute;
    inset: -0.85rem;
    border-radius: 50%;
    border: 1px solid var(--route-color, var(--clr-blush));
    opacity: 0;
}

.arrival-map.is-visible .route-dot {
    animation: routePinIn 0.55s ease forwards, pinPulse 2.4s ease-in-out 1.1s infinite;
}

.route-dot-end {
    border-color: var(--clr-forest);
}

.route-dot-start {
    left: 7.5%;
    top: 72%;
}

.route-dot-mid {
    left: 51.5%;
    top: 42%;
    border-color: var(--clr-champagne);
}

.route-dot-end {
    left: 92.5%;
    top: 48%;
}

.arrival-map.is-visible .route-dot-start {
    animation-delay: 0.15s, 1.2s;
}

.arrival-map.is-visible .route-dot-mid {
    animation-delay: 0.82s, 1.35s;
}

.arrival-map.is-visible .route-dot-end {
    animation-delay: 1.55s, 1.55s;
}

.route-label {
    position: absolute;
    top: 41%;
    left: 35%;
    z-index: 5;
    padding: 0.55rem 0.78rem;
    border-radius: 999px;
    background: hsla(45, 30%, 98%, 0.92);
    border: 1px solid hsla(36, 40%, 65%, 0.2);
    box-shadow: 0 16px 40px hsla(135, 25%, 12%, 0.11);
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.route-label.is-changing {
    opacity: 0;
    transform: translateY(0.35rem);
}

.map-pin {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-forest);
    font-weight: 600;
}

.map-pin::before {
    content: '';
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--clr-ivory);
    border: 5px solid var(--clr-blush);
    box-shadow: 0 10px 30px hsla(135, 25%, 12%, 0.18);
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    transform: scale(0.72);
}

.downtown-pin::after {
    left: -0.85rem;
}

.zoo-pin::after {
    right: -0.85rem;
}

.arrival-map.is-visible .map-pin::after {
    animation: pinRing 2.3s ease-out infinite;
}

.downtown-pin {
    top: 58%;
    left: 13%;
}

.zoo-pin {
    top: 52%;
    right: 11%;
    flex-direction: row-reverse;
}

.zoo-pin::before {
    border-color: var(--clr-forest);
}

.map-pin span {
    padding: 0.55rem 0.75rem;
    background: hsla(45, 30%, 98%, 0.9);
    border: 1px solid hsla(36, 40%, 65%, 0.22);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.map-note {
    position: absolute;
    left: 2.6rem;
    right: 2.6rem;
    bottom: 2.6rem;
    z-index: 4;
    padding: 1.5rem;
    background: hsla(135, 25%, 18%, 0.88);
    color: var(--clr-ivory);
    border-radius: 14px;
    box-shadow: var(--shadow-glass);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.map-note.is-changing {
    opacity: 0;
    transform: translateY(0.55rem);
}

.map-note span {
    display: block;
    color: var(--clr-champagne-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.map-note strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
}

.map-mode-toggle {
    position: absolute;
    left: 2.6rem;
    right: 2.6rem;
    bottom: 13rem;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: hsla(45, 30%, 98%, 0.72);
    border: 1px solid hsla(36, 40%, 65%, 0.24);
    box-shadow: 0 18px 48px hsla(135, 25%, 12%, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.map-mode-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    color: hsla(135, 20%, 14%, 0.66);
    font: 600 0.76rem / 1 var(--font-body);
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.map-mode-btn:hover,
.map-mode-btn.active {
    color: var(--clr-forest);
    background: hsla(45, 30%, 98%, 0.92);
    box-shadow: 0 10px 24px hsla(135, 25%, 12%, 0.1);
}

.map-mode-btn.active {
    transform: translateY(-1px);
}

.mode-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-grid;
    place-items: center;
    color: var(--route-color, var(--clr-blush));
}

.mode-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arrival-map[data-route-mode="transit"] {
    --route-color: var(--clr-blush);
    --route-glow: hsla(11, 36%, 68%, 0.22);
}

.arrival-map[data-route-mode="rideshare"] {
    --route-color: hsl(194, 34%, 52%);
    --route-glow: hsla(194, 34%, 52%, 0.2);
}

.arrival-map[data-route-mode="parking"] {
    --route-color: var(--clr-champagne);
    --route-glow: hsla(36, 40%, 65%, 0.24);
}

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

@keyframes routePinIn {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pinPulse {
    0%, 100% {
        box-shadow: 0 10px 24px hsla(135, 25%, 12%, 0.16);
    }
    50% {
        box-shadow: 0 10px 24px hsla(135, 25%, 12%, 0.16), 0 0 0 0.55rem var(--route-glow, hsla(11, 36%, 68%, 0.18));
    }
}

@keyframes pinRing {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }
    22% {
        opacity: 0.28;
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

@media (max-width: 900px) {
    .sticky-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sticky-content {
        position: relative;
        top: 0;
    }
    .sticky-visual {
        height: 400px;
    }

    .map-context {
        padding: 1rem;
        border-radius: 14px;
    }

    .downtown-area {
        top: 18%;
        left: 7%;
        width: 42%;
        min-height: 9.5rem;
    }

    .downtown-area::before {
        height: 3.5rem;
        background-size:
            1.15rem 58%,
            1.4rem 88%,
            1.1rem 70%,
            1.45rem 100%,
            1.1rem 62%;
        background-position:
            0 100%,
            1.65rem 100%,
            3.65rem 100%,
            5.2rem 100%,
            7.2rem 100%;
    }

    .zoo-area {
        top: 14%;
        right: 7%;
        width: 40%;
        min-height: 9.5rem;
    }

    .bow-river {
        top: 44%;
        height: 5.25rem;
    }

    .map-route {
        top: 39%;
        left: 8%;
        right: 7%;
        height: 34%;
    }

    .route-dot-start {
        left: 7.5%;
        top: 70%;
    }

    .route-dot-mid {
        left: 51%;
        top: 41%;
    }

    .route-dot-end {
        left: 92.5%;
        top: 48%;
    }

    .route-label {
        top: 38%;
        left: 26%;
        font-size: 0.58rem;
    }

    .map-pin {
        font-size: 0.82rem;
    }

    .downtown-pin {
        top: 57%;
        left: 8%;
    }

    .zoo-pin {
        top: 53%;
        right: 7%;
    }

    .map-note {
        left: 1.4rem;
        right: 1.4rem;
        bottom: 1.4rem;
        padding: 1.15rem;
    }

    .map-mode-toggle {
        left: 1.4rem;
        right: 1.4rem;
        bottom: 10.5rem;
    }

    .map-mode-btn {
        min-height: 2.55rem;
        padding: 0.55rem 0.45rem;
        font-size: 0.68rem;
    }

    .mode-icon {
        width: 1rem;
        height: 1rem;
    }
}

/* Details Flip Card */
.details {
    background:
        radial-gradient(circle at 16% 16%, hsla(11, 36%, 68%, 0.14), transparent 20rem),
        linear-gradient(180deg, var(--clr-cream), var(--clr-ivory));
    color: var(--clr-text-main);
    position: relative;
    overflow: hidden;
}

.details::before {
    content: '';
    position: absolute;
    inset: 3rem auto auto -8rem;
    width: 22rem;
    height: 22rem;
    background: url('assets/images/botanical-bg.webp') center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.details .section-reveal h2 {
    color: var(--clr-forest);
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.details-layout-simple {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.details-copy {
    max-width: 640px;
}

.details-layout-simple .details-copy {
    max-width: 860px;
}

.details-copy .eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-champagne);
}

.detail-promises {
    display: grid;
    gap: 1px;
    margin-top: 2.5rem;
    border: 1px solid hsla(36, 40%, 65%, 0.24);
    background: hsla(36, 40%, 65%, 0.24);
}

.details-layout-simple .detail-promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: left;
}

.detail-promises div {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.4rem 1.2rem;
    padding: 1.35rem;
    background: hsla(45, 30%, 98%, 0.64);
}

.detail-promises span {
    grid-row: span 2;
    color: var(--clr-blush);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.detail-promises strong {
    color: var(--clr-forest);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.detail-promises p {
    margin: 0;
    font-size: 0.94rem;
}

.save-card-panel {
    position: relative;
}

.save-date-card {
    position: relative;
    max-width: 500px;
    min-height: 350px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    background:
        linear-gradient(145deg, var(--clr-ivory), hsla(45, 25%, 95%, 0.92));
    border: 1px solid var(--clr-beige);
    overflow: hidden;
}

.save-date-card::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid hsla(36, 40%, 65%, 0.35);
    border-radius: 12px;
    pointer-events: none;
}

.save-date-details,
.calendar-actions {
    position: relative;
    z-index: 1;
}

.save-date-details {
    padding-bottom: 2rem;
}

.calendar-actions {
    padding-top: 1.75rem;
}

.calendar-actions h3 {
    color: var(--clr-forest);
    font-size: 1.55rem;
    margin-bottom: 1.25rem;
}

.flip-card-container {
    max-width: 500px;
    margin: 0 auto;
    height: 350px;
}

.flip-card {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:focus-visible .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background:
        linear-gradient(145deg, var(--clr-ivory), hsla(45, 25%, 95%, 0.92));
    overflow: hidden;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid hsla(36, 40%, 65%, 0.35);
    border-radius: 12px;
    pointer-events: none;
}

.flip-card-front {
    border: 1px solid var(--clr-beige);
}

.flip-card-back {
    transform: rotateY(180deg);
    border: 1px solid var(--clr-champagne);
}

.ticket-eyebrow {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-blush);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.save-date-details h3,
.flip-card-front h3 {
    font-size: 2rem;
    color: var(--clr-forest);
    margin-bottom: 1rem;
}

.date-text, .location-text {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 0.25rem;
}

.flip-hint {
    margin-top: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-champagne-light);
    opacity: 0.8;
}

.ticket-perforation {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4.6rem;
    height: 1px;
    background-image: linear-gradient(to right, hsla(36, 40%, 65%, 0.55) 45%, transparent 45%);
    background-size: 14px 1px;
}

.save-date-card .ticket-perforation {
    position: static;
    display: block;
    width: 100%;
    margin-top: 1.8rem;
}

.save-note {
    margin: 1rem auto 0;
    max-width: 430px;
    text-align: center;
    font-size: 0.86rem;
}

.calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

/* Regrets Section - Floating Form */
.regrets {
    background:
        linear-gradient(135deg, hsla(135, 30%, 12%, 0.92), hsla(135, 28%, 16%, 0.86)),
        url('assets/images/bright-mountain-bg.webp') center / cover;
    position: relative;
    padding: 7rem 0;
    color: var(--clr-ivory);
    overflow: hidden;
}

.regrets::before {
    content: '';
    position: absolute;
    inset: 1.4rem;
    border: 1px solid hsla(45, 30%, 98%, 0.18);
    z-index: 0;
    pointer-events: none;
}

.regrets .container {
    position: relative;
    z-index: 1;
}

.regrets-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.regrets-note {
    max-width: 680px;
}

.regrets-note .eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-champagne-light);
}

.regrets-note h2 {
    color: var(--clr-champagne-light);
}

.regrets-note p {
    color: var(--clr-beige);
    font-size: 1.05rem;
}

.closing-quote {
    margin-top: 2rem;
    padding: 1.4rem 0 1.4rem 1.4rem;
    border-left: 2px solid var(--clr-blush);
}

.closing-quote p {
    margin: 0;
    color: var(--clr-ivory);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-style: italic;
    line-height: 1.15;
}

.form-card {
    max-width: 500px;
    padding: 4rem 3rem;
    margin: 0 auto;
    background: hsla(45, 30%, 98%, 0.9);
}

.regrets-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.regrets-form-note {
    margin: -0.7rem 0 0;
    color: var(--clr-text-light);
    font-size: 0.88rem;
    text-align: center;
}

.regrets-form-note a {
    color: var(--clr-forest);
    font-weight: 600;
    text-decoration-color: hsla(135, 25%, 18%, 0.35);
}

.regrets-form-note a:hover {
    text-decoration-color: currentColor;
}

.floating-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.floating-input {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--clr-forest);
    border: none;
    border-bottom: 2px solid var(--clr-beige);
    background: transparent;
    outline: none;
    transition: var(--transition-fast);
}

.floating-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--clr-text-light);
    pointer-events: none;
    transition: var(--transition-fast);
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    border-bottom-color: var(--clr-champagne);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -20px;
    font-size: 0.9rem;
    color: var(--clr-champagne);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Final Save the Weekend Moment */
.save-weekend {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    min-height: 78vh;
    background:
        radial-gradient(circle at 82% 18%, hsla(39, 70%, 72%, 0.18), transparent 24rem),
        linear-gradient(135deg, hsl(150, 42%, 8%), hsl(139, 34%, 16%));
    color: var(--clr-ivory);
    overflow: hidden;
}

.save-weekend::before {
    content: '';
    position: absolute;
    inset: 1.1rem;
    border: 1px solid hsla(45, 30%, 98%, 0.2);
    pointer-events: none;
    z-index: 2;
}

.save-weekend::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 44%, hsla(150, 42%, 8%, 0.18) 58%, hsla(150, 42%, 8%, 0.88) 100%),
        linear-gradient(0deg, hsla(150, 42%, 8%, 0.38), transparent 42%);
    pointer-events: none;
    z-index: 1;
}

.save-weekend-photo {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
}

.save-weekend-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
    filter: saturate(1.04) contrast(1.04);
}

.save-weekend-panel {
    position: relative;
    z-index: 3;
    align-self: center;
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem);
}

.save-weekend .eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid hsla(39, 70%, 82%, 0.36);
    border-radius: 999px;
    background: hsla(45, 30%, 98%, 0.08);
    color: var(--clr-champagne-light);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.save-weekend h2 {
    margin-bottom: 0.75rem;
    color: var(--clr-champagne-light);
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    line-height: 0.86;
    text-shadow: 0 18px 52px hsla(150, 42%, 5%, 0.34);
}

.save-weekend-venue {
    margin-bottom: 1.2rem;
    color: var(--clr-ivory);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.save-weekend-panel > p:not(.save-weekend-venue):not(.save-weekend-note) {
    max-width: 34rem;
    color: var(--clr-beige);
    font-size: 1.08rem;
    line-height: 1.8;
}

.save-weekend-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 34rem;
    margin: 2rem 0;
    border: 1px solid hsla(45, 30%, 98%, 0.18);
    background: hsla(45, 30%, 98%, 0.18);
}

.save-weekend-meta div {
    padding: 1.1rem;
    background: hsla(45, 30%, 98%, 0.08);
    backdrop-filter: blur(14px);
}

.save-weekend-meta span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--clr-champagne-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.save-weekend-meta strong {
    display: block;
    color: var(--clr-ivory);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.1;
}

.save-weekend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

/* Calendar Dropdown */
.calendar-dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.calendar-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.dropdown-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calendar-dropdown-container.active .dropdown-chevron {
    transform: rotate(180deg);
}

.calendar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 240px;
    background: hsla(135, 30%, 12%, 0.85); /* Match dark forest background */
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid hsla(45, 30%, 98%, 0.15);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 
        0 10px 30px hsla(135, 30%, 6%, 0.4),
        0 1px 3px hsla(0, 0%, 100%, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.calendar-dropdown-container.active .calendar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--clr-beige);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: hsla(45, 30%, 98%, 0.08);
    color: var(--clr-ivory);
    outline: none;
}

.calendar-icon {
    flex-shrink: 0;
    color: var(--clr-champagne-light);
    transition: transform 0.2s;
}

.dropdown-item:hover .calendar-icon {
    transform: scale(1.08);
}

.save-weekend-note {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: hsla(45, 20%, 88%, 0.78);
    font-size: 0.86rem;
}

/* Standard Footer (Removed Curtain Effect for Stability) */
.curtain-footer {
    width: 100%;
    padding: 6rem 0 4rem 0;
    background:
        linear-gradient(hsla(135, 30%, 12%, 0.88), hsla(135, 30%, 12%, 0.94)),
        url('assets/images/couple-snow.webp') center 45% / cover;
    color: var(--clr-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.curtain-footer .footer-content {
    position: relative;
    z-index: 2;
}

.footer-particles {
    z-index: 1;
}

.footer-particles .particle-1 {
    --particle-x: 11%;
    --particle-y: 82%;
    --particle-size: 0.38rem;
    --particle-opacity: 0.26;
    --particle-blur: 0.5px;
    --particle-duration: 28s;
    --particle-delay: -10s;
}

.footer-particles .particle-2 {
    --particle-x: 28%;
    --particle-y: 66%;
    --particle-size: 0.9rem;
    --particle-opacity: 0.17;
    --particle-rotate: -26deg;
    --particle-duration: 34s;
    --particle-delay: -18s;
}

.footer-particles .particle-3 {
    --particle-x: 76%;
    --particle-y: 75%;
    --particle-size: 1.3rem;
    --particle-opacity: 0.14;
    --particle-rotate: 42deg;
    --particle-duration: 41s;
    --particle-delay: -8s;
}

.footer-particles .particle-4 {
    --particle-x: 63%;
    --particle-y: 28%;
    --particle-size: 0.32rem;
    --particle-opacity: 0.24;
    --particle-blur: 0.7px;
    --particle-duration: 32s;
    --particle-delay: -14s;
}

.footer-particles .particle-5 {
    --particle-x: 91%;
    --particle-y: 58%;
    --particle-size: 0.72rem;
    --particle-opacity: 0.15;
    --particle-rotate: 16deg;
    --particle-duration: 37s;
    --particle-delay: -22s;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--clr-champagne);
    margin-bottom: 1rem;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--clr-sage);
    margin: 0 auto 1.5rem auto;
}

.footer-date {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--clr-beige);
}

.footer-replay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0.78rem 1.5rem;
    border: 1px solid hsla(36, 40%, 65%, 0.62);
    border-radius: 999px;
    background: hsla(45, 30%, 98%, 0.1);
    color: var(--clr-ivory);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-replay-button:hover,
.footer-replay-button:focus-visible {
    background: var(--clr-champagne);
    color: var(--clr-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px hsla(135, 30%, 8%, 0.28);
}

.cormorant {
    font-family: 'Cormorant Garamond', serif;
}

/* Animations */
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.animations-ready .fade-in-up {
    opacity: 1;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
    }
}

/* Base Reveal Styles */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
}

.animations-ready .reveal-up,
.animations-ready .reveal-left,
.animations-ready .reveal-right,
.animations-ready .reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animations-ready .reveal-up { transform: translateY(40px); }
.animations-ready .reveal-left { transform: translateX(-30px); }
.animations-ready .reveal-right { transform: translateX(30px); }
.animations-ready .reveal-scale { transform: scale(1.05); }

/* Active States */
.active .reveal-up, .reveal-up.active,
.active .reveal-left, .reveal-left.active,
.active .reveal-right, .reveal-right.active,
.active .reveal-scale, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Timeline Progress */
.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    background-color: var(--clr-champagne);
    z-index: 2;
    width: 0%;
}

/* Magnetic Buttons */
.magnetic-btn {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 0.1s linear, background-color 0.4s, box-shadow 0.4s;
    will-change: transform;
}

.magnetic-btn:hover {
    transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.05);
}

/* Password Screen Polish */
.password-screen {
    background-color: var(--clr-ivory);
    min-height: 100vh;
}

.photo-frame {
    padding: 2rem;
    background: white;
    box-shadow: var(--shadow-hover);
    transform: rotate(-2deg);
}

.password-screen .title {
    font-family: var(--font-accent);
    font-size: 4rem;
    color: var(--clr-forest);
    margin-top: 1rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4d4d !important;
}

@media (min-width: 901px) and (max-height: 760px) {
    .hero-container {
        padding-top: 4.35rem;
        padding-bottom: 1.8rem;
    }

    .hero-content-wrapper {
        gap: clamp(1.5rem, 4vw, 4rem);
    }

    .hero-main-content .eyebrow {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .hero .title {
        font-size: clamp(3.4rem, 7.2vw, 6.1rem);
        margin-bottom: 1rem;
    }

    .hero-details {
        gap: 0.6rem;
    }

    .hero-photo-card {
        max-height: 255px;
        margin-bottom: 0.75rem;
    }

    .countdown-wrapper {
        padding: 0.9rem 1rem;
        margin-bottom: 0.7rem;
    }

    .countdown-eyebrow {
        margin-bottom: 0.65rem;
    }

    .countdown-note {
        margin-top: 0.75rem;
    }

    .hero-quick-facts {
        margin-top: 0.9rem;
    }

    .scroll-cue {
        display: none;
    }
}


/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
    }

    .hero::before {
        inset: 0.8rem;
    }

    .hero-container {
        padding: 7rem 1.5rem 5rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .hero-side-content {
        max-width: none;
        width: 100%;
        justify-self: stretch;
    }

    .hero-photo-card {
        max-width: 420px;
        margin: 0 auto 1.2rem;
        aspect-ratio: 5 / 4;
    }

    .hero-quick-facts {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .timeline {
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 2rem;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 0;
        width: 1px;
        height: 100%;
    }

    .timeline-progress {
        top: 0;
        left: 0;
        width: 1px;
        height: 0%;
    }

    .timeline-item {
        width: 100%;
        text-align: left;
        display: grid;
        grid-template-columns: 44px minmax(82px, 0.75fr) 1fr;
        align-items: center;
        gap: 1rem;
        padding: 1.35rem;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2.3rem;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--clr-sage);
    }

    .timeline-icon {
        margin-bottom: 0;
    }

    .timeline-date {
        margin-bottom: 0;
        font-size: 1.12rem;
        line-height: 1.1;
    }

    .timeline-event {
        font-size: 0.9rem;
    }

    .venue-bg {
        width: 100%;
        opacity: 0.2;
    }

    .venue-showcase,
    .details-layout,
    .regrets-layout {
        grid-template-columns: 1fr;
    }

    .venue-copy,
    .venue-image-wrapper {
        min-height: auto;
    }

    .venue-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .venue-inset-image {
        top: 0.85rem;
        right: 0.85rem;
        width: min(38%, 11rem);
        border-width: 0.32rem;
        border-radius: 9px;
    }

    .venue-image-caption {
        left: 1.4rem;
        right: 1.4rem;
        bottom: 1.4rem;
    }

    .details-layout-simple .detail-promises {
        grid-template-columns: 1fr;
    }

    .detail-promises div {
        grid-template-columns: 2.5rem 1fr;
    }

    .flip-card-container {
        height: auto;
        max-width: 560px;
    }

    .save-date-card {
        max-width: 560px;
        min-height: 0;
    }

    .flip-card,
    .flip-card-inner {
        height: auto;
        transform: none !important;
    }

    .flip-card-front,
    .flip-card-back {
        position: relative;
        min-height: 260px;
        transform: none;
    }

    .flip-card-back {
        margin-top: 1rem;
    }

    .flip-hint {
        display: none;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--clr-ivory);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--clr-forest) !important;
        font-size: 1.2rem;
        text-shadow: none !important;
    }

    .nav-links a.active {
        color: var(--clr-sage) !important;
        background: transparent !important;
    }

    .nav-brand {
        color: var(--clr-ivory);
    }

    .navbar.scrolled .nav-brand {
        color: var(--clr-forest);
    }

    .hamburger {
        color: var(--clr-ivory);
    }

    .navbar.scrolled .hamburger {
        color: var(--clr-forest);
    }

    .section-padding {
        padding: 4rem 0;
    }

    .container,
    .nav-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

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

    .hero-container {
        padding: 6rem 1rem 4rem;
    }

    .hero .title {
        font-size: clamp(3.6rem, 21vw, 5.8rem);
        margin-bottom: 1.6rem;
    }

    .hero-main-content .eyebrow {
        font-size: 1.15rem;
    }

    .hero-date-box h2 {
        font-size: 1.45rem;
    }

    .hero-location {
        font-size: 1.05rem;
    }

    .hero-photo-caption {
        flex-direction: column;
        gap: 0.25rem;
    }

    .hero-photo-caption strong {
        text-align: left;
    }

    .countdown-wrapper {
        padding: 1.1rem;
    }

    .countdown-eyebrow {
        letter-spacing: 1.4px;
    }

    .timer-unit span {
        font-size: 2rem;
    }

    .countdown-note {
        font-size: 1rem;
    }

    .scroll-cue {
        left: 1rem;
        bottom: 1.2rem;
        font-size: 0.8rem;
        gap: 0.8rem;
    }

    .grid-images {
        height: 420px;
    }

    .venue-copy {
        padding: 1.35rem;
        border-radius: 16px;
    }

    .venue-image-wrapper {
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .venue-image {
        height: 100%;
        object-fit: cover;
    }

    .venue-inset-image {
        width: 42%;
    }


    .form-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .regrets {
        padding: 5rem 0;
    }

    .regrets::before {
        inset: 0.8rem;
    }

    .detail-promises div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .map-pin {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .zoo-pin {
        flex-direction: column;
        align-items: flex-end;
    }

    .map-pin span {
        max-width: 12rem;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 2rem 1.25rem;
    }

    .save-date-card {
        padding: 2rem 1.25rem;
    }

    .calendar-buttons .btn {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Center all images on mobile */
    img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .timeline-item {
        text-align: left;
    }

    .highlight-item {
        justify-content: center;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .venue {
        --venue-progress: 1 !important;
    }

    .venue-cinematic-layer,
    .venue-glass-ribs {
        transform: none !important;
    }
}

/* Password Screen - Split Layout */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(circle at 18% 12%, hsla(194, 36%, 82%, 0.5), transparent 24rem),
        radial-gradient(circle at 84% 78%, hsla(11, 42%, 72%, 0.34), transparent 26rem),
        linear-gradient(135deg, hsl(45, 38%, 97%), hsl(105, 20%, 88%));
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 1800px;
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.password-screen::before,
.password-screen::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.password-screen::before {
    inset: 1.1rem;
    border: 1px solid hsla(135, 25%, 18%, 0.13);
}

.password-screen::after {
    right: -9rem;
    bottom: -10rem;
    width: 34rem;
    height: 34rem;
    background: url('assets/images/botanical-bg.webp') center / contain no-repeat;
    opacity: 0.11;
    filter: saturate(0.7);
}

.password-screen.is-unlocking {
    overflow: hidden;
}

.password-screen.card-zooming {
    opacity: 0;
    filter: saturate(1.05) brightness(1.04);
    pointer-events: none;
}

.password-screen.is-unlocking .split-layout {
    animation: invitationRoomFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.password-screen.is-unlocking .photo-frame {
    animation: invitationPhotoLift 1.55s cubic-bezier(0.2, 0.9, 0.24, 1) forwards;
    transform-origin: 50% 100%;
}

.password-screen.is-unlocking .unlock-card {
    animation: invitationCardSeal 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.password-screen.is-unlocking .envelope-stage {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg);
}

.password-screen.is-opening .envelope-flap-top {
    transform: translateZ(42px) rotateX(170deg);
}

.password-screen.card-rising .envelope-wrapper {
    transform: translateY(35%) translateZ(-100px);
    opacity: 0;
}

.password-screen.card-rising .envelope-paper {
    transform: translateY(-80%) rotateX(-4deg) translateZ(100px);
}

.password-screen.card-zooming .envelope-paper {
    transform: translateY(-50%) rotateX(0deg) translateZ(600px) scale(2.2);
    opacity: 0;
}

.password-screen.card-rising .envelope-photo {
    opacity: 1;
    transform: translate3d(0%, -50%, 120px) rotate(-2.5deg) scale(1.05);
}

.password-screen.card-zooming .envelope-photo {
    transform: translate3d(0%, -50%, 400px) rotate(-2.5deg) scale(1.8);
    opacity: 0;
}

/* Wax Seal Styles - Deep Forest Green and Gold Stamp */
.wax-seal-top-half,
.wax-seal-bottom-half {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 52% 48% 49% 51% / 45% 55% 45% 55%;
    background: radial-gradient(circle at 30% 30%, hsl(145, 30%, 22%) 0%, hsl(145, 35%, 12%) 70%, hsl(145, 40%, 6%) 100%);
    box-shadow: 
        inset 1px 1px 3px rgba(255, 255, 255, 0.12),
        inset -2px -2px 4px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 10;
}

.wax-seal-top-half {
    left: 50%;
    bottom: -35px;
    transform: translate(-50%, 0) translateZ(10px);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 80% 48%, 60% 53%, 50% 46%, 40% 52%, 20% 47%, 0 50%);
}

.wax-seal-bottom-half {
    left: 50%;
    top: 55.8%;
    transform: translate(-50%, -50%) translateZ(92px);
    clip-path: polygon(0 50%, 20% 47%, 40% 52%, 50% 46%, 60% 53%, 80% 48%, 100% 50%, 100% 100%, 0 100%);
    transition: transform 0.8s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.8s ease-in;
}

.password-screen.is-opening .wax-seal-bottom-half {
    transform: translate(-50%, 100px) translateZ(40px) rotate(25deg);
    opacity: 0;
}

.wax-seal-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(230, 202, 131, 0.25); /* delicate gold foil rim */
    background: radial-gradient(circle at 30% 30%, hsl(145, 25%, 15%) 0%, hsl(145, 30%, 8%) 90%);
    box-shadow: 
        inset -1px -1px 2px rgba(255, 255, 255, 0.1),
        inset 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wax-seal-monogram {
    font-family: 'Great Vibes', 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #e6ca83; /* Warm metallic gold stamp */
    text-shadow: 
        -0.5px -0.5px 0px rgba(0, 0, 0, 0.8),
        0.5px 0.5px 0px rgba(255, 255, 255, 0.25),
        0 0 4px rgba(230, 202, 131, 0.4); /* glowing gold foil effect */
    letter-spacing: -1px;
    line-height: 1;
    margin-top: -2px;
}

/* Crack Shaking Animations */
.password-screen.is-cracking .wax-seal-top-half {
    animation: seal-shake-top 0.6s ease-in-out;
}

.password-screen.is-cracking .wax-seal-bottom-half {
    animation: seal-shake-bottom 0.6s ease-in-out;
}

@keyframes seal-shake-top {
    0%, 100% { transform: translate(-50%, 0) translateZ(10px) rotate(0deg); }
    15% { transform: translate(-52%, -1px) translateZ(10px) rotate(-1.5deg); }
    30% { transform: translate(-48%, 1px) translateZ(10px) rotate(1.5deg); }
    45% { transform: translate(-51%, -1px) translateZ(10px) rotate(-1deg); }
    60% { transform: translate(-49%, 1px) translateZ(10px) rotate(1deg); }
    75% { transform: translate(-50.5%, -0.5px) translateZ(10px) rotate(-0.5deg); }
    90% { transform: translate(-49.5%, 0.5px) translateZ(10px) rotate(0.5deg); }
}

@keyframes seal-shake-bottom {
    0%, 100% { transform: translate(-50%, -50%) translateZ(92px) rotate(0deg); }
    15% { transform: translate(-52%, -51%) translateZ(92px) rotate(-1.5deg); }
    30% { transform: translate(-48%, -49%) translateZ(92px) rotate(1.5deg); }
    45% { transform: translate(-51%, -50.5%) translateZ(92px) rotate(-1deg); }
    60% { transform: translate(-49%, -49.5%) translateZ(92px) rotate(1deg); }
    75% { transform: translate(-50.5%, -50.2%) translateZ(92px) rotate(-0.5deg); }
    90% { transform: translate(-49.5%, -49.8%) translateZ(92px) rotate(0.5deg); }
}

.envelope-stage {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(74vw, 560px);
    aspect-ratio: 1.42 / 1;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.85) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.envelope-wrapper {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.envelope-shadow {
    position: absolute;
    inset: auto 8% -9% 8%;
    height: 18%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, hsla(135, 24%, 10%, 0.24), transparent 68%);
    filter: blur(12px);
    transform: translateZ(-90px);
}

.envelope-back {
    position: absolute;
    inset: 13.8% 10% 13.8% 10%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--clr-forest), var(--clr-forest-dark));
    border: 1px solid hsla(36, 34%, 72%, 0.55);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
    transform: translateZ(0px);
    overflow: hidden;
}

.envelope-inner-liner {
    position: absolute;
    inset: 0.8rem;
    border: 1px solid var(--clr-champagne);
    border-radius: 8px;
    background: url('assets/images/botanical-bg.webp') center / cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.envelope-paper,
.envelope-flap,
.envelope-liner,
.envelope-photo {
    position: absolute;
}

.envelope-paper {
    inset: 14% 10%;
    border-radius: 12px;
    background:
        linear-gradient(135deg, hsla(45, 50%, 100%, 0.98), hsla(42, 44%, 93%, 0.98)),
        url('assets/images/botanical-bg.webp') center / 82% no-repeat;
    border: 1px solid hsla(36, 34%, 72%, 0.55);
    box-shadow: 0 28px 80px hsla(135, 25%, 12%, 0.18);
    overflow: visible; /* Let 3D elements float outwards */
    transform: translateY(16%) rotateX(7deg) translateZ(20px);
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transition: transform 1.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.envelope-liner {
    inset: 1.1rem;
    border: 1px solid hsla(36, 44%, 68%, 0.32);
    border-radius: 8px;
    pointer-events: none;
}

.envelope-liner::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 0.5px solid hsla(36, 44%, 68%, 0.16);
    border-radius: 6px;
    pointer-events: none;
}

/* Botanical corner gold foil line-art decorations */
.invitation-botanical-decoration {
    position: absolute;
    inset: 1.1rem;
    pointer-events: none;
    z-index: 2;
    transform-style: preserve-3d;
}

.corner-leaf {
    position: absolute;
    width: clamp(25px, 6vw, 40px);
    height: clamp(25px, 6vw, 40px);
    opacity: 0.42;
    color: var(--clr-champagne);
}

.top-left-leaf {
    top: 6px;
    left: 6px;
}

.bottom-right-leaf {
    bottom: 6px;
    right: 6px;
}

/* Invitation details container (right side of landscape card) */
.envelope-card-details {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) translate3d(15px, 0, 10px);
    width: 48%;
    text-align: center;
    color: var(--clr-forest);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.0s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.password-screen.card-rising .envelope-card-details {
    opacity: 1;
    transform: translateY(-50%) translate3d(0, 0, 30px);
}

.password-screen.card-zooming .envelope-card-details {
    transform: translateY(-50%) translate3d(0, 0, 300px) scale(1.6);
    opacity: 0;
}

.inv-monogram {
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    color: var(--clr-champagne);
    margin-bottom: 0.05rem;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.inv-eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.5rem, 1.1vw, 0.7rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-sage);
    margin-bottom: 0.35rem;
}

.inv-names {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.6vw, 1.8rem);
    font-weight: 600;
    color: var(--clr-forest);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.inv-line {
    width: 35px;
    height: 1px;
    background: var(--clr-champagne);
    margin: 0.4rem 0;
    opacity: 0.7;
}

.inv-date {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 2.2vw, 1.18rem);
    font-weight: 500;
    color: var(--clr-text-main);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.inv-venue {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.inv-footer {
    font-family: var(--font-body);
    font-size: clamp(0.45rem, 0.9vw, 0.58rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-sage);
    opacity: 0.8;
}

/* Invitation photo frame container (left side of landscape card) */
.envelope-photo {
    left: 8%;
    top: 50%;
    transform: translate3d(0%, -50%, 30px) rotate(-1deg);
    width: 38%;
    min-width: 150px;
    padding: 0.55rem 0.55rem 1.1rem;
    border-radius: 7px;
    background: hsl(45, 44%, 98%);
    box-shadow: 0 12px 30px hsla(135, 25%, 12%, 0.15);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.envelope-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 38%;
    border-radius: 4px;
    filter: brightness(0.92) saturate(0.98);
}

.envelope-photo span {
    display: block;
    margin-top: 0.55rem;
    color: var(--clr-forest);
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 0.95;
    text-align: center;
}

.envelope-flap {
    background:
        linear-gradient(135deg, hsla(43, 46%, 98%, 0.98), hsla(36, 36%, 86%, 0.98));
    border: 1px solid hsla(36, 34%, 72%, 0.55);
    box-shadow: 0 18px 55px hsla(135, 25%, 12%, 0.12);
    backface-visibility: hidden;
}

.envelope-flap-top {
    top: 13.8%;
    left: 10%;
    width: 80%;
    height: 42%;
    transform-origin: 50% 0;
    transform: translateZ(90px) rotateX(0deg);
    z-index: 9;
    transform-style: preserve-3d;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.flap-top-outer,
.flap-top-inner {
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    backface-visibility: hidden;
    border: 1px solid hsla(36, 34%, 72%, 0.55);
}

.flap-top-outer {
    background: linear-gradient(135deg, hsla(43, 46%, 98%, 0.98), hsla(36, 36%, 86%, 0.98));
    transform: rotateX(0deg);
    z-index: 2;
}

.flap-top-inner {
    background: linear-gradient(135deg, var(--clr-forest), var(--clr-forest-dark));
    transform: rotateX(180deg);
    z-index: 1;
}

.flap-top-inner-liner {
    position: absolute;
    inset: 0.8rem 0.8rem 1.6rem 0.8rem;
    border: 1px solid var(--clr-champagne);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: url('assets/images/botanical-bg.webp') center / cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.envelope-flap-bottom {
    left: 10%;
    bottom: 13.8%;
    width: 80%;
    height: 48%;
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
    transform-origin: 50% 100%;
    transform: translateZ(80px) rotateX(0deg);
    z-index: 8;
}

.envelope-flap-left,
.envelope-flap-right {
    top: 14%;
    width: 42%;
    height: 72%;
    z-index: 7;
}

.envelope-flap-left {
    left: 10%;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform-origin: 0 50%;
    transform: translateZ(86px) rotateY(0deg);
}

.envelope-flap-right {
    right: 10%;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    transform-origin: 100% 50%;
    transform: translateZ(86px) rotateY(0deg);
}

.site-revealed {
    animation: siteReveal 0.8s ease both;
}

#main-content.site-revealed {
    transform: none !important;
    filter: none !important;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

.split-image {
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5.5rem);
    overflow: hidden;
}

.split-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, hsla(135, 30%, 9%, 0.08), transparent 48%),
        url('assets/images/bright-mountain-bg.webp') center / cover;
    opacity: 0.48;
    transform: scale(1.04);
}

.photo-frame {
    background: hsla(45, 42%, 98%, 0.95);
    padding: clamp(0.9rem, 2vw, 1.4rem);
    box-shadow: 0 32px 90px hsla(135, 25%, 12%, 0.18);
    transform: rotate(-2.2deg);
    max-width: min(420px, 64vh);
    width: 100%;
    border-radius: 10px;
    border: 1px solid hsla(45, 30%, 100%, 0.85);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -1.2rem;
    border: 1px solid hsla(36, 40%, 65%, 0.3);
    border-radius: 16px;
    z-index: -1;
}

.photo-frame:hover {
    transform: rotate(-0.5deg) scale(1.015);
    box-shadow: 0 40px 100px hsla(135, 25%, 12%, 0.22);
}

.polaroid-image-wrapper {
    width: 100%;
    margin-bottom: 1.25rem;
    border: 1px solid hsla(36, 28%, 80%, 0.55);
    border-radius: 6px;
    overflow: hidden;
    background: var(--clr-cream);
    position: relative;
}

.polaroid-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, hsla(135, 24%, 12%, 0.08), hsla(135, 24%, 12%, 0.16)),
        radial-gradient(circle at 50% 42%, transparent 42%, hsla(135, 24%, 12%, 0.16));
    pointer-events: none;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 38%;
    transition: transform 0.8s ease;
    filter: brightness(0.86) saturate(0.96) contrast(1.06);
}

.photo-frame:hover img {
    transform: scale(1.05);
}

.polaroid-caption {
    text-align: center;
    padding: 0 0.5rem 0.35rem;
}

.polaroid-caption .eyebrow {
    display: block;
    color: var(--clr-champagne);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.polaroid-caption .title {
    font-family: var(--font-accent);
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    color: var(--clr-forest);
    margin-bottom: 0;
    line-height: 1;
}

.split-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    background-color: transparent;
}

.split-content {
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.unlock-card {
    position: relative;
    padding: clamp(2rem, 5vw, 3.6rem);
    border: 1px solid hsla(45, 36%, 100%, 0.86);
    border-top-color: hsla(45, 36%, 100%, 0.96);
    border-radius: 18px;
    background: hsla(45, 34%, 98%, 0.78);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    box-shadow: 0 22px 70px hsla(135, 25%, 12%, 0.12);
}

.unlock-card::before {
    content: '';
    position: absolute;
    inset: 0.75rem;
    border: 1px solid hsla(36, 40%, 65%, 0.22);
    border-radius: 12px;
    pointer-events: none;
}

.split-content h2 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    margin-bottom: 1.1rem;
    color: var(--clr-forest);
    line-height: 0.92;
}

.split-content p {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.02rem;
    color: var(--clr-text-light);
    line-height: 1.7;
}

.split-content .eyebrow {
    color: var(--clr-champagne);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 2rem;
}

.password-form label {
    color: var(--clr-forest);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.password-form input {
    min-height: 3.65rem;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    border: 1px solid hsla(135, 15%, 42%, 0.18);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    text-align: center;
    transition: var(--transition);
    background-color: hsla(45, 42%, 99%, 0.92);
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.8), 0 8px 24px hsla(135, 25%, 12%, 0.05);
}

.password-form input:focus {
    border-color: var(--clr-forest);
    box-shadow: 0 0 0 4px hsla(135, 25%, 18%, 0.08), 0 10px 28px hsla(135, 25%, 12%, 0.08);
}

.password-form .btn {
    min-height: 3.65rem;
    box-shadow: 0 16px 36px hsla(135, 25%, 12%, 0.16);
}

.password-error {
    color: hsl(0, 55%, 45%);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.unlock-status {
    min-height: 1.4rem;
    margin-top: 0.9rem;
    color: var(--clr-forest);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.password-form.is-submitting {
    pointer-events: none;
}

.password-form.is-submitting input,
.password-form.is-submitting .btn {
    opacity: 0.72;
}

@keyframes invitationRoomFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.18;
        transform: scale(0.965);
    }
}

@keyframes invitationPhotoLift {
    0% {
        opacity: 1;
        transform: rotate(-2.2deg) translate3d(0, 0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(-0.4deg) translate3d(18vw, 3vh, 90px) scale(0.92);
    }
    100% {
        opacity: 0;
        transform: rotate(2deg) translate3d(22vw, 9vh, 140px) scale(0.76);
    }
}

@keyframes invitationCardSeal {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    42% {
        opacity: 1;
        transform: translate3d(-12vw, 0, 80px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate3d(-16vw, 4vh, 120px) scale(0.72);
    }
}

@keyframes envelopeStageReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.85) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

@keyframes envelopeTopOpen {
    0% {
        transform: translateZ(90px) rotateX(0deg);
    }
    100% {
        transform: translateZ(42px) rotateX(170deg);
    }
}

@keyframes envelopeWrapperSlide {
    0% {
        transform: translateY(0) translateZ(0);
        opacity: 1;
    }
    100% {
        transform: translateY(35%) translateZ(-100px);
        opacity: 0;
    }
}

@keyframes cardRevealAndZoom {
    0% {
        transform: translateY(16%) rotateX(7deg) translateZ(20px);
        opacity: 1;
    }
    52% {
        transform: translateY(16%) rotateX(7deg) translateZ(20px);
        opacity: 1;
    }
    78% {
        transform: translateY(-80%) rotateX(-4deg) translateZ(100px);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) rotateX(0deg) translateZ(600px) scale(2.2);
        opacity: 0;
    }
}

@keyframes invitationPhotoReveal {
    0% {
        opacity: 0;
        transform: translate3d(-50%, 56%, 70px) rotate(-1deg) scale(0.86);
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, -8%, 130px) rotate(-1.8deg) scale(1);
    }
}

@keyframes siteReveal {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .password-screen {
        overflow-y: auto;
    }

    .split-layout {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100svh;
    }

    .split-image {
        padding: 2rem 1.5rem 0.5rem;
        border-right: none;
        background-color: transparent;
        min-height: auto;
    }

    .photo-frame {
        max-width: min(76vw, 310px);
        padding: 0.7rem;
        margin: 0 auto;
        transform: rotate(-1deg);
    }

    .photo-frame::before {
        inset: -0.65rem;
    }

    .photo-frame img {
        aspect-ratio: 5 / 4;
        object-position: center 32%;
        filter: brightness(0.78) saturate(0.92) contrast(1.08);
    }

    .polaroid-image-wrapper::after {
        background:
            linear-gradient(180deg, hsla(135, 24%, 12%, 0.12), hsla(135, 24%, 12%, 0.22)),
            radial-gradient(circle at 50% 38%, transparent 36%, hsla(135, 24%, 12%, 0.18));
    }

    .polaroid-image-wrapper {
        margin-bottom: 0.5rem;
    }

    .polaroid-caption .eyebrow {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .polaroid-caption .title {
        font-size: 2rem;
    }

    .split-content-wrapper {
        padding: 1rem 1.25rem 2rem;
        background-color: transparent;
        align-items: start;
    }

    .unlock-card {
        padding: 1.55rem 1.2rem;
        border-radius: 14px;
    }

    .split-content {
        padding: 0;
    }

    .split-content h2 {
        font-size: 2.35rem;
        margin-bottom: 0.65rem;
    }

    .split-content p {
        font-size: 0.92rem;
        margin-bottom: 0.5rem;
        line-height: 1.55;
    }

    .password-form {
        margin-top: 1.1rem;
        gap: 0.75rem;
    }

    .password-form input, .password-form .btn {
        min-height: 3.2rem;
        padding: 0.8rem 1.1rem;
    }

    .password-error {
        margin-top: 0.5rem;
    }

    .password-screen.is-unlocking .photo-frame {
        animation-name: invitationPhotoLiftMobile;
    }

    .password-screen.is-unlocking .unlock-card {
        animation-name: invitationCardSealMobile;
    }

    .envelope-stage {
        width: min(94vw, 460px);
        top: 48%;
    }

    .envelope-photo {
        left: 6%;
        width: 36%;
        min-width: 120px;
        padding: 0.45rem 0.45rem 0.8rem;
    }

    .envelope-card-details {
        right: 6%;
        width: 50%;
    }

    .password-screen.card-rising .envelope-photo {
        transform: translate3d(0%, -50%, 80px) rotate(-1.5deg) scale(1.02);
    }

    .password-screen.card-rising .envelope-card-details {
        transform: translateY(-50%) translate3d(0, 0, 20px);
    }
}

@media (max-width: 420px) {
    .split-image {
        padding-top: 1.4rem;
    }

    .photo-frame {
        max-width: min(72vw, 260px);
    }

    .polaroid-caption .title {
        font-size: 1.72rem;
    }

    .unlock-card {
        padding: 1.3rem 1rem;
    }

    .split-content h2 {
        font-size: 2.05rem;
    }

    .envelope-stage {
        width: min(95vw, 360px);
        top: 48%;
    }

    .envelope-photo {
        left: 4%;
        width: 38%;
        min-width: 90px;
        padding: 0.3rem 0.3rem 0.5rem;
    }

    .envelope-card-details {
        right: 4%;
        width: 52%;
    }

    .inv-monogram {
        font-size: 1.2rem;
    }

    .inv-names {
        font-size: 0.9rem;
    }

    .inv-date {
        font-size: 0.78rem;
    }

    .inv-venue {
        font-size: 0.55rem;
    }

    .inv-footer {
        font-size: 0.45rem;
    }
}

@media (max-width: 600px) {
    .password-screen {
        position: absolute;
        min-height: 100vh;
        min-height: 100dvh;
        max-width: 100%;
        overflow: visible;
        overflow-x: clip;
        -webkit-overflow-scrolling: touch;
    }

    .split-layout {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: clip;
    }

    .split-content-wrapper {
        padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 2rem));
    }
}

@media (max-width: 600px) and (max-height: 760px) {
    .split-layout {
        display: flex;
        min-height: 100vh;
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: max(1rem, env(safe-area-inset-top)) 0 max(1.25rem, env(safe-area-inset-bottom));
    }

    .split-image {
        display: none;
    }

    .split-content-wrapper {
        width: 100%;
        padding: 1rem 1rem max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
        align-items: center;
    }

    .unlock-card {
        max-width: 24rem;
        margin: 0 auto;
        padding: 1.2rem 1rem;
    }

    .unlock-card::before {
        inset: 0.55rem;
    }

    .split-content h2 {
        font-size: clamp(1.85rem, 9vw, 2.35rem);
        margin-bottom: 0.55rem;
    }

    .split-content p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .password-form {
        margin-top: 0.85rem;
        gap: 0.6rem;
    }

    .password-form input,
    .password-form .btn {
        min-height: 3rem;
    }

    .unlock-status {
        min-height: 0.9rem;
        margin-top: 0.45rem;
    }
}

@media (max-width: 600px) {
    .password-screen.is-entry-transitioning,
    .password-screen.is-unlocking,
    .password-screen.card-rising,
    .password-screen.card-zooming {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        background: #050806;
        overscroll-behavior: none;
    }

    .password-screen.is-unlocking .split-layout {
        min-height: 100dvh;
    }
}

@keyframes invitationPhotoLiftMobile {
    0% {
        opacity: 1;
        transform: rotate(-1deg) translate3d(0, 0, 0) scale(1);
    }
    52% {
        opacity: 1;
        transform: rotate(-1deg) translate3d(0, 18vh, 70px) scale(0.82);
    }
    100% {
        opacity: 0;
        transform: rotate(0.5deg) translate3d(0, 24vh, 110px) scale(0.64);
    }
}

@keyframes invitationCardSealMobile {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    42% {
        opacity: 1;
        transform: translate3d(0, -13vh, 70px) scale(0.88);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -18vh, 110px) scale(0.7);
    }
}

/* Premium visual refresh */
:root {
    --clr-ivory: hsl(42, 42%, 98%);
    --clr-cream: hsl(44, 34%, 93%);
    --clr-beige: hsl(39, 24%, 84%);
    --clr-sage: hsl(112, 13%, 50%);
    --clr-sage-light: hsl(108, 18%, 78%);
    --clr-forest: hsl(146, 32%, 15%);
    --clr-forest-dark: hsl(150, 38%, 8%);
    --clr-champagne: hsl(37, 55%, 64%);
    --clr-champagne-light: hsl(39, 70%, 82%);
    --clr-blush: hsl(4, 45%, 66%);
    --clr-mist: hsl(197, 34%, 76%);
    --clr-text-main: hsl(150, 23%, 12%);
    --clr-text-light: hsl(150, 9%, 36%);
    --shadow-soft: 0 18px 55px hsla(150, 32%, 9%, 0.1);
    --shadow-glass: 0 20px 70px hsla(150, 36%, 8%, 0.18);
    --shadow-hover: 0 34px 80px hsla(150, 36%, 8%, 0.22);
}

body {
    background:
        linear-gradient(90deg, hsla(150, 23%, 12%, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(180deg, var(--clr-ivory), hsl(42, 38%, 95%));
}

h2 {
    letter-spacing: 0;
}

p {
    font-size: 1.03rem;
}

.container {
    max-width: 1240px;
}

.section-padding {
    padding: clamp(5rem, 8vw, 8rem) 0;
}

.section-header p {
    font-size: 1.08rem;
    line-height: 1.85;
}

.glass-card,
.timeline-item,
.travel-card,
.map-context,
.save-date-card,
.form-card,
.unlock-card,
.hero-photo-card,
.venue-image-wrapper,
.image-main,
.sticky-visual {
    border-radius: 10px;
}

.btn {
    border-radius: 999px;
    min-height: 3.25rem;
    padding: 0.9rem 1.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(151, 36%, 16%), hsl(141, 29%, 24%));
    box-shadow: 0 18px 38px hsla(150, 36%, 8%, 0.2);
}

.btn-secondary {
    color: var(--clr-ivory);
    border: 1px solid hsla(39, 70%, 82%, 0.45);
    background: hsla(45, 30%, 98%, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 hsla(45, 30%, 98%, 0.22);
}

.btn-secondary:hover {
    background: hsla(39, 70%, 82%, 0.16);
    border-color: hsla(39, 70%, 82%, 0.78);
    transform: translateY(-3px);
}

.navbar {
    padding: 1.15rem 0;
}

.nav-container {
    max-width: 1320px;
}

.nav-brand {
    font-size: 1.65rem;
}

.nav-links {
    align-items: center;
    gap: 1.25rem;
    padding: 0.38rem;
    border: 1px solid hsla(45, 30%, 98%, 0.18);
    border-radius: 999px;
    background: hsla(150, 34%, 8%, 0.22);
    backdrop-filter: blur(18px);
}

.nav-links a {
    display: inline-flex;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.17em;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--clr-forest-dark);
    background: var(--clr-champagne-light);
    text-shadow: none;
}

.nav-links a.active {
    color: var(--clr-ivory) !important;
    background: var(--clr-sage) !important;
    text-shadow: none !important;
}

.navbar.scrolled {
    background: hsla(42, 42%, 98%, 0.86);
    box-shadow: 0 14px 44px hsla(150, 36%, 8%, 0.08);
}

.navbar.scrolled .nav-links {
    background: hsla(42, 42%, 98%, 0.72);
    border-color: hsla(150, 32%, 15%, 0.1);
}

.hero {
    min-height: 100svh;
    align-items: stretch;
}

.hero::before {
    inset: 1rem;
    border-color: hsla(45, 30%, 98%, 0.3);
}

.hero-bg {
    background-position: center 35%;
    filter: saturate(1.04) contrast(1.05);
}

.hero::after {
    background:
        radial-gradient(circle at 72% 18%, hsla(39, 70%, 72%, 0.2), transparent 23rem),
        linear-gradient(90deg, hsla(150, 44%, 6%, 0.92) 0%, hsla(150, 35%, 8%, 0.62) 48%, hsla(150, 42%, 6%, 0.72) 100%),
        linear-gradient(0deg, hsla(150, 44%, 6%, 0.86), transparent 42%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1440px;
    min-height: 100svh;
    padding: 6.4rem clamp(1.5rem, 5vw, 5rem) 2.5rem;
}

.hero-content-wrapper {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.62fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 4.5rem);
}

.hero-main-content {
    max-width: 820px;
}

.hero-main-content .eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border: 1px solid hsla(39, 70%, 82%, 0.35);
    border-radius: 999px;
    background: hsla(45, 30%, 98%, 0.08);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero .title {
    max-width: 780px;
    font-size: clamp(3.8rem, 7.7vw, 7.8rem);
    line-height: 0.86;
    margin: 0.95rem 0 1.35rem;
}

.accent-text {
    color: hsl(40, 72%, 74%);
    text-shadow: 0 14px 40px hsla(37, 55%, 45%, 0.16);
}

.hero-date-box {
    display: grid;
    gap: 0.65rem;
}

.hero-date-box h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.45rem);
    letter-spacing: 0.1em;
}

.badge {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--clr-champagne-light);
}

.hero-location {
    max-width: 40rem;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    color: hsl(42, 36%, 88%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.hero-side-content {
    position: relative;
    max-width: 380px;
}

.hero-side-content::before {
    content: '';
    position: absolute;
    inset: 2.2rem -2.2rem auto auto;
    width: 9rem;
    height: 9rem;
    border: 1px solid hsla(39, 70%, 82%, 0.3);
    transform: rotate(18deg);
}

.hero-photo-card {
    max-height: 360px;
    aspect-ratio: 0.82;
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.hero-photo-card::before,
.venue-image-wrapper::before {
    inset: 0.75rem;
    border-color: hsla(45, 30%, 98%, 0.42);
    border-radius: 7px;
}

.countdown-wrapper {
    border-radius: 10px;
}

.countdown-timer {
    gap: 0.35rem;
}

.timer-unit {
    min-width: 0;
}

.hero-quick-facts {
    align-self: flex-start;
    width: min(100%, 940px);
    margin-top: clamp(1.5rem, 4vh, 3rem);
    border-radius: 10px;
    overflow: hidden;
}

.journey {
    background:
        linear-gradient(90deg, hsla(150, 23%, 12%, 0.04) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, hsl(42, 42%, 98%), hsl(45, 34%, 93%));
}

.asymmetrical-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.grid-content p {
    font-size: 1.08rem;
    line-height: 1.85;
}

.grid-images {
    height: min(720px, 72vw);
    min-height: 560px;
}

.image-main {
    width: 82%;
    height: 86%;
}

.image-main img {
    object-position: center 35%;
}

.image-secondary {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(42%, 280px);
    aspect-ratio: 4 / 5;
    border: 0.7rem solid var(--clr-ivory);
    border-radius: 8px;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 28px 70px hsla(150, 32%, 9%, 0.18);
}

.image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.image-tertiary {
    position: absolute;
    right: 2.5rem;
    bottom: 1.5rem;
    width: min(34%, 250px);
    aspect-ratio: 5 / 4;
    border: 0.6rem solid var(--clr-ivory);
    border-radius: 8px;
    overflow: hidden;
    z-index: 4;
    box-shadow: 0 24px 60px hsla(150, 32%, 9%, 0.16);
}

.image-tertiary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.journey-polaroids {
    --string-color: hsl(35, 33%, 66%);
    height: min(680px, 68vw);
    min-height: 560px;
    padding-top: 2.8rem;
}

.journey-polaroids::before,
.journey-polaroids::after {
    content: '';
    position: absolute;
    left: -2rem;
    right: -2rem;
    top: 2.2rem;
    height: 2px;
    z-index: 0;
    pointer-events: none;
}

.journey-polaroids::before {
    background:
        repeating-linear-gradient(90deg,
            hsla(35, 33%, 50%, 0.9) 0 0.55rem,
            hsla(35, 30%, 74%, 0.9) 0.55rem 1.1rem);
    box-shadow: 0 2px 4px hsla(35, 20%, 38%, 0.16);
    transform: rotate(1.1deg);
}

.journey-polaroids::after {
    top: 2.55rem;
    background: hsla(35, 24%, 54%, 0.24);
    filter: blur(0.5px);
    transform: rotate(-0.7deg);
}

.journey-polaroids .image-main,
.journey-polaroids .image-secondary,
.journey-polaroids .image-tertiary {
    overflow: visible;
    border: 1px solid hsla(38, 28%, 71%, 0.48);
    border-radius: 3px;
    background:
        linear-gradient(135deg, hsla(42, 50%, 100%, 0.94), hsla(40, 52%, 94%, 0.98));
    box-shadow:
        0 1.25rem 2.7rem hsla(150, 32%, 9%, 0.17),
        0 0.18rem 0.35rem hsla(36, 35%, 42%, 0.14);
    padding: clamp(0.55rem, 1vw, 0.75rem) clamp(0.55rem, 1vw, 0.75rem) clamp(1.85rem, 2.8vw, 2.35rem);
    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-polaroids .image-main {
    width: min(76%, 520px);
    height: auto;
    aspect-ratio: auto;
    margin: 0 2rem 0 auto;
    transform: rotate(1.4deg);
}

.journey-polaroids .image-secondary {
    left: 0.2rem;
    bottom: 1.1rem;
    width: min(39%, 260px);
    border-width: 1px;
    transform: rotate(-2.6deg);
}

.journey-polaroids .image-tertiary {
    right: 0.4rem;
    bottom: 0.1rem;
    width: min(34%, 240px);
    border-width: 1px;
    transform: rotate(3deg);
}

.journey-polaroids .image-main::before,
.journey-polaroids .image-secondary::before,
.journey-polaroids .image-tertiary::before {
    content: '';
    position: absolute;
    top: -1.65rem;
    left: 50%;
    width: 1px;
    height: 1.9rem;
    background: hsla(35, 29%, 51%, 0.64);
    box-shadow: 1px 0 hsla(42, 45%, 95%, 0.5);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.journey-polaroids .image-main::after,
.journey-polaroids .image-secondary::after,
.journey-polaroids .image-tertiary::after {
    content: '';
    position: absolute;
    inset: 0.35rem;
    border: 1px solid hsla(38, 30%, 55%, 0.1);
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
}

.journey-polaroids img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 2px;
    display: block;
    object-fit: cover;
    filter: saturate(0.97) contrast(1.02);
    transform: none;
}

.journey-polaroids .image-main img {
    object-position: center 35%;
}

.journey-polaroids .image-overlay {
    display: none;
}

.journey-polaroids .photo-pin {
    top: -0.64rem;
}

.journey-polaroids .image-main .photo-pin {
    --pin-rotate: -2deg;
}

.journey-polaroids .image-secondary .photo-pin {
    --pin-rotate: 3deg;
}

.journey-polaroids .image-tertiary .photo-pin {
    --pin-rotate: -3deg;
}

.photo-note {
    min-height: clamp(3.1rem, 4.5vw, 4rem);
    margin: clamp(0.75rem, 1.2vw, 0.95rem) 0 0;
    color: hsl(152, 21%, 19%);
}

.photo-note span {
    display: block;
    margin-bottom: 0.08rem;
    color: hsla(152, 20%, 23%, 0.66);
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.photo-note strong {
    display: block;
    max-width: 12rem;
    font-family: 'Great Vibes', 'Segoe Script', cursive;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 400;
    line-height: 0.98;
}

.journey-polaroids .image-main:hover,
.journey-polaroids .image-secondary:hover,
.journey-polaroids .image-tertiary:hover {
    box-shadow:
        0 1.7rem 3.4rem hsla(150, 36%, 8%, 0.2),
        0 0.22rem 0.42rem hsla(36, 35%, 42%, 0.14);
}

.journey-polaroids .image-main:hover {
    transform: translateY(-0.45rem) rotate(0.6deg);
}

.journey-polaroids .image-secondary:hover {
    transform: translateY(-0.45rem) rotate(-1.1deg);
}

.journey-polaroids .image-tertiary:hover {
    transform: translateY(-0.45rem) rotate(1.4deg);
}

.long-weekend {
    background:
        radial-gradient(circle at 16% 20%, hsla(39, 70%, 72%, 0.15), transparent 28rem),
        radial-gradient(circle at 86% 76%, hsla(197, 34%, 76%, 0.12), transparent 26rem),
        linear-gradient(135deg, hsl(152, 42%, 10%), hsl(140, 34%, 18%));
}

.timeline {
    gap: 1rem;
}

.timeline-item {
    padding: 1.65rem 1.35rem;
    background: hsla(45, 30%, 98%, 0.075);
    border-color: hsla(45, 30%, 98%, 0.16);
}

.timeline-item:hover {
    transform: translateY(-8px);
}

.venue {
    background-color: hsl(151, 38%, 8%);
}

.venue-bg {
    opacity: 0.28;
    filter: saturate(0.8) contrast(1.05);
}

.venue-showcase {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    --venue-panel-height: clamp(500px, 43vw, 560px);
}

.venue-copy {
    min-height: var(--venue-panel-height);
}

.venue-copy.glass-card:hover,
.countdown-wrapper.glass-card:hover,
.save-date-card.glass-card:hover,
.form-card.glass-card:hover {
    transform: none;
}

.venue-image-wrapper {
    min-height: var(--venue-panel-height);
}

.venue-image {
    object-position: center 56%;
}

.highlight-item {
    border-radius: 8px;
}

.getting-there {
    background:
        linear-gradient(180deg, var(--clr-ivory), hsl(44, 31%, 94%));
}

.travel-card {
    border-left: 0;
    border-top: 4px solid var(--clr-champagne);
}

.travel-card::after {
    border-radius: 8px;
    transform: rotate(8deg);
}

.arrival-map {
    background:
        radial-gradient(circle at 24% 22%, hsla(36, 40%, 65%, 0.18), transparent 12rem),
        radial-gradient(circle at 78% 40%, hsla(105, 15%, 80%, 0.46), transparent 16rem),
        linear-gradient(135deg, hsla(42, 42%, 98%, 0.92), hsla(197, 34%, 76%, 0.25)),
        url('assets/images/subtle-mountain-bg.webp') center / cover;
}

.sticky-visual {
    height: min(680px, 74vh);
    min-height: 560px;
    background: hsl(42, 24%, 92%);
}

.arrival-map {
    background: hsl(42, 24%, 92%);
    overflow: hidden;
}

.arrival-map::before {
    inset: 0.9rem;
    border-color: hsla(45, 30%, 98%, 0.72);
    z-index: 5;
}

.arrival-map::after {
    z-index: 2;
    background:
        linear-gradient(180deg, hsla(150, 36%, 8%, 0.12), transparent 10%),
        linear-gradient(0deg, hsla(150, 36%, 8%, 0.2), transparent 15%);
    pointer-events: none;
}

/* Custom Leaflet Map container replacing standard iframe */
.google-map-frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: var(--clr-cream);
}

/* Apply map filter to style Voyager tiles in wedding theme colors (sage, cream, mist) without washing out details */
.google-map-frame .leaflet-tile-container {
    filter: sepia(0.18) saturate(0.9) contrast(1.04) brightness(0.98);
}

/* Custom markers styling */
.custom-map-marker {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
}

.marker-pin-wrapper {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    background: var(--clr-forest);
    border: 2px solid var(--clr-champagne);
    transform: rotate(-45deg);
    position: absolute;
    box-shadow: 0 4px 12px hsla(135, 25%, 12%, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-map-marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.12);
    background: var(--clr-forest-dark);
    box-shadow: 0 8px 20px hsla(135, 25%, 12%, 0.28);
}

.marker-icon {
    position: relative;
    z-index: 2;
    color: var(--clr-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 50%;
}

/* Specific styling for the Wedding Venue heart marker to make it stand out */
.custom-map-marker.venue-marker .marker-pin {
    background: hsl(355, 75%, 45%);
    border-color: var(--clr-champagne);
    border-width: 2.5px;
    box-shadow: 0 6px 16px hsla(355, 75%, 20%, 0.25);
}

.custom-map-marker.venue-marker:hover .marker-pin {
    background: hsl(355, 80%, 38%);
    box-shadow: 0 10px 24px hsla(355, 75%, 20%, 0.35);
}

.custom-map-marker.venue-marker .marker-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(355, 75%, 45%);
    opacity: 0.55;
    animation: venueMarkerPulse 2.2s infinite ease-out;
    pointer-events: none;
    z-index: -1;
    transform: translateY(16px) scale(0.5);
}

@keyframes venueMarkerPulse {
    0% {
        transform: translateY(16px) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(16px) scale(3.0);
        opacity: 0;
    }
}

.marker-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Pulsing shadow effect for key points (Calgary Zoo Venue) */
.marker-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--clr-champagne);
    opacity: 0.6;
    animation: markerPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: -1;
    transform: translateY(12px) scale(0.5);
}

@keyframes markerPulse {
    0% {
        transform: translateY(12px) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translateY(12px) scale(2.4);
        opacity: 0;
    }
}

/* Hotel specific marker styling overrides */
.custom-map-marker.hotel-marker .marker-pin {
    background: var(--clr-ivory);
    border-color: var(--clr-forest);
}

.custom-map-marker.hotel-marker .marker-icon {
    color: var(--clr-forest);
}

.custom-map-marker.hotel-marker:hover .marker-pin {
    background: var(--clr-cream);
    border-color: var(--clr-forest-dark);
}

/* Glowing downtown skyscraper polygon overlay */
.glowing-downtown-polygon {
    stroke-dasharray: 8, 8;
    animation: polygonGlow 4s ease-in-out infinite alternate;
}

@keyframes polygonGlow {
    from {
        stroke-opacity: 0.65;
        fill-opacity: 0.04;
    }
    to {
        stroke-opacity: 0.95;
        fill-opacity: 0.12;
    }
}

/* Custom Leaflet Popup Styling */
.google-map-frame .leaflet-popup-content-wrapper {
    background: hsla(45, 30%, 98%, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(36, 40%, 65%, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px hsla(135, 25%, 12%, 0.15) !important;
    color: var(--clr-text-main) !important;
    font-family: var(--font-body) !important;
    padding: 0.4rem !important;
}

.google-map-frame .leaflet-popup-tip {
    background: hsla(45, 30%, 98%, 0.94) !important;
    border: 1px solid hsla(36, 40%, 65%, 0.35) !important;
    box-shadow: none !important;
}

.google-map-frame .leaflet-popup-close-button {
    color: var(--clr-text-light) !important;
    padding: 8px !important;
    font-size: 1.1rem !important;
}

.google-map-frame .leaflet-popup-close-button:hover {
    color: var(--clr-forest) !important;
    background: transparent !important;
}

.map-popup-card {
    padding: 0.25rem;
    min-width: 170px;
}

.map-popup-card h4 {
    font-family: var(--font-heading);
    color: var(--clr-forest);
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.map-popup-card p {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.map-popup-card .popup-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--clr-champagne-light);
    color: var(--clr-forest);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.map-topbar {
    position: absolute;
    top: 1.45rem;
    left: 1.45rem;
    right: 1.45rem;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    color: var(--clr-forest);
    border: 1px solid hsla(45, 30%, 98%, 0.72);
    border-radius: 8px;
    background: hsla(45, 30%, 98%, 0.9);
    box-shadow: 0 18px 48px hsla(150, 36%, 8%, 0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.map-topbar span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Preset View Switcher styling inside topbar */
.map-view-presets {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.map-preset-btn {
    background: transparent;
    border: 1px solid hsla(135, 25%, 18%, 0.18);
    color: var(--clr-text-light);
    padding: 0.35rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-preset-btn:hover {
    background: var(--clr-cream);
    color: var(--clr-forest);
    border-color: var(--clr-forest);
}

.map-preset-btn.active {
    background: var(--clr-forest);
    color: var(--clr-ivory);
    border-color: var(--clr-forest);
}

.map-external-link {
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--clr-forest);
    border-bottom: 1px dashed var(--clr-forest);
    transition: var(--transition-fast);
}

.map-external-link:hover {
    color: var(--clr-champagne);
    border-bottom-color: var(--clr-champagne);
}

/* Micro-animated dashed route line */
.animated-route-line {
    stroke-dasharray: 10, 10;
    animation: routeLineDash 16s linear infinite;
}

@keyframes routeLineDash {
    to {
        stroke-dashoffset: -200;
    }
}

/* Micro-animated dashed scenic routes */
.animated-scenic-route {
    stroke-dasharray: 8, 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease, opacity 0.3s ease;
}

.hover-scenic-line {
    stroke: var(--clr-champagne);
    stroke-width: 4px;
    animation: scenicRouteDash 14s linear infinite;
}

.active-scenic-line {
    stroke: var(--clr-forest);
    stroke-width: 5px;
    animation: scenicRouteDashActive 10s linear infinite;
}

@keyframes scenicRouteDash {
    to {
        stroke-dashoffset: -160;
    }
}

@keyframes scenicRouteDashActive {
    to {
        stroke-dashoffset: -120;
    }
}


@media (max-width: 576px) {
    .map-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        text-align: center;
    }
    .map-view-presets {
        justify-content: center;
    }
    .map-external-link {
        align-self: center;
    }
}

.arrival-map .map-mode-toggle {
    left: 1.45rem;
    right: 1.45rem;
    bottom: 12.25rem;
    z-index: 6;
    border-radius: 8px;
    background: hsla(45, 30%, 98%, 0.92);
    border-color: hsla(45, 30%, 98%, 0.74);
}

.arrival-map .map-mode-btn {
    border-radius: 6px;
}

.arrival-map .map-note {
    left: 1.45rem;
    right: 1.45rem;
    bottom: 1.45rem;
    z-index: 6;
    padding: 1.15rem 1.2rem;
    border-radius: 8px;
    background: hsla(150, 34%, 10%, 0.92);
    border: 1px solid hsla(45, 30%, 98%, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.arrival-map .map-note strong {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.arrival-map .map-note p {
    max-width: 36rem;
    margin: 0.55rem 0 0;
    color: hsla(45, 30%, 98%, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .sticky-visual {
        height: 560px;
        min-height: 560px;
    }

    .arrival-map .map-mode-toggle {
        bottom: 12.25rem;
    }
}

@media (max-width: 600px) {
    .sticky-visual {
        height: 620px;
        min-height: 620px;
    }

    .map-topbar {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .arrival-map .map-mode-toggle {
        left: 1rem;
        right: 1rem;
        bottom: 13.5rem;
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .arrival-map .map-note {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }

    .arrival-map .map-note p {
        font-size: 0.86rem;
    }
}

.details {
    background:
        radial-gradient(circle at 14% 12%, hsla(4, 45%, 66%, 0.15), transparent 22rem),
        radial-gradient(circle at 88% 18%, hsla(197, 34%, 76%, 0.18), transparent 22rem),
        linear-gradient(180deg, hsl(44, 31%, 94%), var(--clr-ivory));
}

.detail-promises,
.detail-promises div {
    border-radius: 8px;
}

.save-date-card {
    box-shadow: 0 28px 80px hsla(150, 32%, 9%, 0.14);
}

.regrets {
    background:
        linear-gradient(135deg, hsla(150, 42%, 8%, 0.9), hsla(140, 34%, 18%, 0.78)),
        url('assets/images/couple-snow.webp') center 46% / cover;
}

.form-card {
    box-shadow: 0 24px 70px hsla(150, 32%, 9%, 0.2);
}

.curtain-footer {
    min-height: 46vh;
    background:
        linear-gradient(hsla(150, 42%, 8%, 0.74), hsla(150, 42%, 8%, 0.9)),
        url('assets/images/A5032807-78E3-4644-B18F-1B8065C60BF0_1_105_c.webp') center 40% / cover;
}

.footer-title {
    font-size: clamp(3rem, 8vw, 6rem);
}

@media (max-width: 900px) {
    .nav-links {
        border-radius: 0;
        background: var(--clr-ivory);
    }

    .hero {
        min-height: 100svh;
    }

    .hero-container {
        min-height: 100svh;
        padding-top: 6.75rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .hero .title {
        font-size: clamp(4rem, 16vw, 7rem);
    }

    .hero-side-content::before {
        display: none;
    }

    .hero-photo-card {
        max-width: 520px;
        aspect-ratio: 16 / 10;
    }

    .hero-actions .btn {
        min-width: min(100%, 12rem);
    }

    .asymmetrical-grid,
    .venue-showcase {
        grid-template-columns: 1fr;
    }

    .grid-images {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 0.52fr;
        gap: 0.8rem;
        align-items: end;
    }

    .image-main {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .image-secondary {
        position: relative;
        width: 100%;
        border-width: 0.45rem;
    }

    .image-tertiary {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        width: min(30%, 190px);
        border-width: 0.45rem;
    }

    .venue-copy,
    .venue-image-wrapper {
        min-height: auto;
    }

    .venue-cinematic {
        inset: -24vh 0 auto;
        height: 62vh;
    }

    .venue-image-wrapper {
        aspect-ratio: 16 / 11;
    }

    .save-weekend {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .save-weekend::after {
        background:
            linear-gradient(0deg, hsl(150, 42%, 8%) 0%, hsla(150, 42%, 8%, 0.84) 34%, transparent 68%);
    }

    .save-weekend-photo {
        min-height: 58vh;
    }

    .save-weekend-panel {
        margin-top: -10rem;
        padding: 0 1.5rem 4rem;
    }
}

@media (max-width: 600px) {
    p {
        font-size: 0.98rem;
    }

    .sticky-visual {
        height: 500px;
    }

    .map-compass {
        top: 1.25rem;
        right: 1.25rem;
        width: 2.7rem;
        height: 2.7rem;
    }

    .map-context strong {
        font-size: 1.18rem;
    }

    .route-label {
        max-width: 12rem;
        white-space: normal;
        line-height: 1.35;
    }

    .map-mode-toggle {
        grid-template-columns: 1fr;
        border-radius: 18px;
        bottom: 9.65rem;
    }

    .map-mode-btn {
        justify-content: flex-start;
        min-height: 2.35rem;
        padding-left: 0.85rem;
    }

    .map-note strong {
        font-size: 1.42rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .hero-container {
        min-height: auto;
        padding: 6rem 1rem 2.25rem;
    }

    .hero .title {
        font-size: clamp(3.35rem, 17vw, 4.9rem);
        margin-bottom: 1rem;
        color: var(--clr-ivory);
    }

    .hero .title .split-line span {
        opacity: 1;
        transform: none;
    }

    .hero-main-content .eyebrow {
        max-width: 11rem;
        white-space: normal;
        line-height: 1.55;
    }

    .hero-date-box h2 {
        font-size: 1.35rem;
    }

    .hero-location {
        font-size: 1rem;
        line-height: 1.45;
    }

    .hero-side-content {
        display: block;
        width: 100%;
        max-width: none;
    }

    .hero-photo-card {
        display: none;
    }

    .countdown-wrapper {
        margin-top: 0.2rem;
        padding: 0.9rem;
    }

    .countdown-eyebrow {
        margin-bottom: 0.7rem;
        font-size: 0.68rem;
    }

    .timer-unit span {
        font-size: 1.75rem;
    }

    .timer-unit label {
        font-size: 0.62rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 3rem;
        padding: 0.8rem 1rem;
    }

    .hero-quick-facts {
        display: none;
    }

    .grid-images {
        grid-template-columns: 1fr;
    }

    .image-secondary {
        display: none;
    }

    .image-tertiary {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 36px 1fr;
    }

    .timeline-date,
    .timeline-event {
        grid-column: 2;
    }

    .save-weekend::before {
        inset: 0.75rem;
    }

    .save-weekend-photo {
        min-height: 54vh;
    }

    .save-weekend-panel {
        margin-top: -7rem;
        padding: 0 1rem 3.25rem;
    }

    .save-weekend h2 {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .save-weekend-meta {
        grid-template-columns: 1fr;
    }

    .save-weekend-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calendar-dropdown-container {
        width: 100%;
    }

    .calendar-dropdown-btn {
        width: 100%;
    }

    .calendar-dropdown-menu {
        width: 100%;
        min-width: 100%;
    }

    .footer-date {
        padding: 0 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 900px) {
    .getting-there .sticky-visual {
        height: 560px;
        min-height: 560px;
    }
}

@media (max-width: 600px) {
    .getting-there .sticky-visual {
        height: 620px;
        min-height: 620px;
    }

    .arrival-map .map-mode-toggle {
        bottom: 13.5rem;
    }
}

/* Editorial Photo Gallery */
.photo-gallery {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, hsla(38, 32%, 78%, 0.2) 1px, transparent 1px),
        linear-gradient(180deg, hsla(38, 32%, 78%, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, hsl(43, 37%, 94%), hsl(42, 42%, 98%));
    background-size: 4rem 4rem, 4rem 4rem, auto;
}

.photo-gallery::before {
    content: '';
    position: absolute;
    top: 9%;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: url('assets/images/botanical-bg.webp') center / contain no-repeat;
    opacity: 0.065;
    pointer-events: none;
}

.photo-gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.52fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: end;
    margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.gallery-intro .eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--clr-champagne);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.gallery-intro h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.gallery-intro p {
    margin: 0 0 0.35rem;
    color: var(--clr-text-light);
    font-size: 1.02rem;
    line-height: 1.75;
}

.polaroid-gallery {
    --string-color: hsl(35, 33%, 66%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
    align-items: start;
    position: relative;
    padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(0.5rem, 2vw, 1.5rem);
}

.polaroid-gallery::before,
.polaroid-gallery::after {
    content: '';
    position: absolute;
    left: -4%;
    right: -4%;
    top: clamp(2.05rem, 3.4vw, 2.8rem);
    height: 2px;
    pointer-events: none;
    z-index: 0;
}

.polaroid-gallery::before {
    background:
        repeating-linear-gradient(90deg,
            hsla(35, 33%, 50%, 0.9) 0 0.55rem,
            hsla(35, 30%, 74%, 0.9) 0.55rem 1.1rem);
    box-shadow: 0 2px 4px hsla(35, 20%, 38%, 0.18);
    transform: rotate(-1.1deg);
}

.polaroid-gallery::after {
    top: clamp(2.35rem, 3.8vw, 3.15rem);
    background: hsla(35, 24%, 54%, 0.28);
    transform: rotate(0.9deg);
    filter: blur(0.5px);
}

.gallery-card {
    position: relative;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border-radius: 3px;
    border: 1px solid hsla(38, 28%, 71%, 0.48);
    background:
        linear-gradient(135deg, hsla(42, 50%, 100%, 0.92), hsla(40, 52%, 94%, 0.98));
    box-shadow:
        0 1.1rem 2.3rem hsla(150, 32%, 9%, 0.16),
        0 0.18rem 0.35rem hsla(36, 35%, 42%, 0.14);
    isolation: isolate;
    padding: clamp(0.55rem, 1vw, 0.75rem) clamp(0.55rem, 1vw, 0.75rem) clamp(1.9rem, 3vw, 2.45rem);
    transform: translateY(0) rotate(var(--gallery-rotate, 0deg));
    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: -1.62rem;
    left: 50%;
    width: 1px;
    height: 1.8rem;
    background: hsla(35, 29%, 51%, 0.64);
    box-shadow: 1px 0 hsla(42, 45%, 95%, 0.5);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0.35rem;
    border: 1px solid hsla(38, 30%, 55%, 0.1);
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    filter: saturate(0.96) contrast(1.02);
    transform: scale(1);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card figcaption {
    position: static;
    min-height: clamp(3.25rem, 5vw, 4.15rem);
    margin: clamp(0.8rem, 1.4vw, 1rem) 0 0;
    color: hsl(152, 21%, 19%);
    transform: rotate(var(--note-rotate, 0deg));
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card figcaption span {
    display: block;
    margin-bottom: 0.08rem;
    color: hsla(152, 20%, 23%, 0.66);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-card figcaption strong {
    display: block;
    max-width: 13rem;
    font-family: 'Great Vibes', 'Segoe Script', cursive;
    font-size: clamp(1.55rem, 2.7vw, 2rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: none;
}

.photo-pin {
    position: absolute;
    left: 50%;
    top: -0.62rem;
    width: 1.7rem;
    height: 1.28rem;
    border-radius: 0.18rem;
    background:
        linear-gradient(90deg, hsla(38, 58%, 88%, 0.42), transparent 40%),
        linear-gradient(180deg, hsl(37, 35%, 76%), hsl(35, 32%, 62%));
    box-shadow:
        0 0.18rem 0.35rem hsla(30, 25%, 28%, 0.24),
        inset 0 0 0 1px hsla(45, 45%, 94%, 0.42);
    transform: translateX(-50%) rotate(var(--pin-rotate, -2deg));
    z-index: 4;
}

.photo-pin::before,
.photo-pin::after {
    content: '';
    position: absolute;
    top: 0.22rem;
    bottom: 0.22rem;
    width: 1px;
    background: hsla(33, 24%, 45%, 0.34);
}

.photo-pin::before {
    left: 0.48rem;
}

.photo-pin::after {
    right: 0.48rem;
}

.gallery-card:hover {
    box-shadow:
        0 1.6rem 3.2rem hsla(150, 36%, 8%, 0.2),
        0 0.22rem 0.42rem hsla(36, 35%, 42%, 0.14);
    transform: translateY(-0.5rem) rotate(calc(var(--gallery-rotate, 0deg) * 0.45));
}

.gallery-card:hover img {
    filter: saturate(1.04) contrast(1.04);
    transform: scale(1.025);
}

.gallery-card:hover figcaption {
    transform: rotate(0deg);
}

.gallery-card-large {
    --gallery-rotate: -2.4deg;
    --note-rotate: -1.2deg;
    --pin-rotate: 3deg;
    margin-top: clamp(0.9rem, 2vw, 1.6rem);
}

.gallery-card-large img {
    object-position: center 40%;
}

.gallery-card-tall {
    --gallery-rotate: 1.7deg;
    --note-rotate: 1deg;
    --pin-rotate: -3deg;
    margin-top: clamp(0.1rem, 1vw, 0.4rem);
}

.gallery-card-tall img {
    object-position: center 42%;
}

.gallery-card-small {
    --gallery-rotate: -1deg;
    --note-rotate: -0.6deg;
    --pin-rotate: 2deg;
    margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.gallery-card-small img {
    object-position: center 35%;
}

.gallery-card-wide {
    --gallery-rotate: 2.3deg;
    --note-rotate: 0.8deg;
    --pin-rotate: -2deg;
    margin-top: clamp(0.45rem, 1.7vw, 1rem);
}

.gallery-card-wide img {
    object-position: center 44%;
}

/* Two-Row Polaroid Gallery desktop centering */
.polaroid-gallery.row-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 846px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .gallery-intro {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .polaroid-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.25rem, 4vw, 1.8rem);
    }

    .polaroid-gallery.row-2 {
        max-width: none;
    }

    .gallery-card,
    .gallery-card-large,
    .gallery-card-tall,
    .gallery-card-small,
    .gallery-card-wide {
        grid-column: auto;
        grid-row: auto;
        width: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .gallery-card-large {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .polaroid-gallery {
        grid-template-columns: 1fr;
        gap: 1.45rem;
        padding-top: 2.75rem;
    }

    .gallery-card,
    .gallery-card-large {
        aspect-ratio: auto;
    }

    .gallery-card {
        max-width: 22rem;
        justify-self: center;
    }

    .gallery-card figcaption strong {
        font-size: 1.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .gallery-card img,
    .gallery-card figcaption {
        transition: none;
    }

    .gallery-card:hover,
    .gallery-card:hover img,
    .gallery-card:hover figcaption {
        transform: none;
    }

    .arrival-map .route-path,
    .arrival-map .route-dot,
    .arrival-map .map-pin::after {
        animation: none;
    }

    .arrival-map .route-path {
        stroke-dashoffset: 0;
    }

    .arrival-map .route-dot {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile stability pass */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .navbar {
        padding: 0.9rem 0;
    }

    .nav-container {
        min-height: 2.75rem;
    }

    .hamburger {
        width: 2.75rem;
        height: 2.75rem;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: hsla(150, 34%, 8%, 0.2);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .navbar.scrolled .hamburger,
    body.nav-open .hamburger {
        color: var(--clr-forest);
        background: hsla(42, 42%, 98%, 0.9);
        box-shadow: 0 12px 34px hsla(150, 36%, 8%, 0.12);
    }

    .nav-links {
        width: min(84vw, 320px);
        max-width: none;
        height: 100vh;
        height: 100svh;
        padding: max(5.25rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
        justify-content: flex-start;
        gap: 0.55rem;
        overflow-y: auto;
    }

    .nav-links a {
        width: 100%;
        min-height: 3.1rem;
        justify-content: center;
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
    }

    .nav-links {
        width: 100%;
    }

    .hero::after {
        background:
            radial-gradient(circle at 54% 20%, hsla(39, 70%, 72%, 0.16), transparent 18rem),
            linear-gradient(180deg, hsla(150, 44%, 6%, 0.55) 0%, hsla(150, 44%, 6%, 0.72) 36%, hsla(150, 44%, 6%, 0.91) 100%);
    }

    .hero-container {
        justify-content: flex-start;
        min-height: 100svh;
        padding: 5.65rem 1rem 2rem;
    }

    .hero-main-content.fade-in-up {
        animation-delay: 0.05s;
    }

    .hero-main-content {
        max-width: 22rem;
    }

    .hero-main-content .eyebrow {
        max-width: none;
        padding: 0.3rem 0.65rem;
        font-size: 0.68rem;
        line-height: 1.35;
        text-shadow: 0 4px 16px hsla(150, 44%, 5%, 0.55);
    }

    .hero .title {
        font-size: clamp(3.05rem, 15.4vw, 4.35rem);
        line-height: 0.92;
        margin: 0.8rem 0 1rem;
        text-shadow: 0 12px 34px hsla(150, 44%, 5%, 0.82);
    }

    .hero-details {
        gap: 0.8rem;
    }

    .badge {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }

    .hero-date-box h2 {
        font-size: 1.18rem;
        letter-spacing: 0.08em;
    }

    .hero-location {
        max-width: 18rem;
        font-size: 0.95rem;
    }

    .scroll-cue {
        display: none;
    }

    .section-header {
        margin-bottom: 2.4rem;
    }

    .timeline {
        padding-left: 1.25rem;
    }

    .timeline-item {
        padding: 1rem;
        gap: 0.7rem;
    }

    .timeline-item::before {
        left: -1.55rem;
    }

    .venue {
        padding: 4.5rem 0;
    }

    .map-topbar,
    .arrival-map .map-mode-toggle,
    .arrival-map .map-note {
        left: 0.75rem;
        right: 0.75rem;
    }

    .arrival-map .map-mode-toggle {
        bottom: 13rem;
    }

    .arrival-map .map-note {
        bottom: 0.75rem;
    }

    .save-date-card,
    .form-card,
    .unlock-card {
        box-shadow: 0 18px 48px hsla(150, 32%, 9%, 0.14);
    }
}

@media (max-width: 420px) {
    .container,
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .hero-main-content {
        max-width: 20rem;
    }

    .hero .title {
        font-size: clamp(2.85rem, 15vw, 3.75rem);
    }

    .btn {
        letter-spacing: 0.08em;
    }
}

/* ==========================================================================
   Editorial Lightbox Styles
   ========================================================================== */

body.lightbox-open {
    overflow: hidden !important;
    position: fixed;
    top: var(--lightbox-scroll-lock-top, 0);
    left: 0;
    right: 0;
    width: 100%;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background:
        radial-gradient(circle at 50% 20%, hsla(38, 42%, 86%, 0.12), transparent 32rem),
        hsla(132, 24%, 7%, 0.9);
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --lightbox-media-preview: none;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Close & Nav Buttons */
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: hsla(45, 35%, 96%, 0.14);
    color: var(--clr-ivory);
    border: 1px solid hsla(45, 35%, 96%, 0.24);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10010;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    width: 3.2rem;
    height: 3.2rem;
}

.lightbox-close:hover {
    background: hsla(11, 36%, 68%, 0.2);
    border-color: var(--clr-blush);
    transform: rotate(90deg) scale(1.05);
    color: var(--clr-ivory);
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 3.6rem;
    height: 3.6rem;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-nav:hover {
    background: hsla(36, 40%, 65%, 0.2);
    border-color: var(--clr-champagne);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Slide Counter */
.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--clr-ivory);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    background: hsla(132, 18%, 10%, 0.55);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid hsla(45, 35%, 96%, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10005;
}

/* Lightbox Content Layout */
.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(92vw, 72rem);
    height: 100%;
    padding: 5.5rem 0 4rem;
    box-sizing: border-box;
    position: relative;
    pointer-events: none;
}

.lightbox-image-container {
    position: relative;
    max-width: min(92vw, 72rem);
    max-height: calc(100dvh - 15rem);
    padding: clamp(0.45rem, 1vw, 0.8rem);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid hsla(42, 30%, 88%, 0.78);
    border-radius: 12px;
    background: hsl(42, 28%, 92%);
    box-shadow: 0 28px 80px hsla(132, 24%, 4%, 0.62);
    overflow: hidden;
    pointer-events: auto;
}

.lightbox-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lightbox-media-preview) center / cover no-repeat;
    opacity: 0;
}

.lightbox-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 16.6rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 32px hsla(132, 18%, 8%, 0.2);
    border: 1px solid hsla(42, 25%, 78%, 0.7);
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-img.loaded {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.lightbox-img[data-load-error="true"] {
    min-width: min(72vw, 38rem);
    min-height: min(48vh, 28rem);
    background: var(--lightbox-media-preview) center / contain no-repeat;
}

/* Caption block */
.lightbox-caption {
    margin-top: 0.8rem;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.15rem;
    width: 100%;
    max-width: min(92vw, 38rem);
    text-align: center;
    color: hsl(128, 22%, 15%);
    background: hsl(42, 28%, 92%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid hsla(42, 30%, 88%, 0.86);
    border-radius: 12px;
    box-shadow: 0 18px 50px hsla(132, 24%, 4%, 0.42);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.15s;
    pointer-events: auto;
}

.lightbox-overlay.active .lightbox-caption {
    transform: translateY(0);
    opacity: 1;
}

.lightbox-overlay.active .lightbox-caption:hover {
    transform: translateY(0);
    border-color: hsla(42, 30%, 88%, 0.86);
    box-shadow: 0 18px 50px hsla(132, 24%, 4%, 0.42);
}

.lightbox-tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(37, 54%, 38%);
    margin-bottom: 0.5rem;
}

.lightbox-title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 400;
    color: hsl(128, 22%, 15%);
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .lightbox-nav {
        width: 3.2rem;
        height: 3.2rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 2.8rem;
        height: 2.8rem;
    }

    .lightbox-counter {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .lightbox-content-wrapper {
        padding: 5rem 0 3rem;
        max-width: 94vw;
    }
    
    .lightbox-image-container {
        max-height: calc(100dvh - 14.5rem);
    }
    
    .lightbox-img {
        max-height: calc(100dvh - 16rem);
    }
}

@media (max-width: 600px) {
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-caption {
        padding: 0.9rem 1rem 1rem;
        margin-top: 0.7rem;
        max-width: 92vw;
    }

    .lightbox-title {
        font-size: clamp(1.2rem, 8vw, 1.65rem);
    }
}

.gallery-card {
    cursor: pointer;
}

/* ==========================================================================
   Scroll Reveal Animations (safe element-level fade)
   Text is ALWAYS readable. The animation is a gentle fade+slide on the
   whole element — no per-word clipping, no DOM fragmentation.
   ========================================================================== */

/* Default: text fully visible (safe fallback for no-JS, slow observers, etc.) */
.split-reveal-words,
.split-reveal-chars {
    opacity: 1;
    transform: none;
}

/* When JS is running and animations are ready, prepare the element for reveal */
.animations-ready .split-reveal-words,
.animations-ready .split-reveal-chars {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Revealed state */
.animations-ready .split-reveal-words.split-text-active,
.animations-ready .split-reveal-chars.split-text-active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger sibling elements slightly for a cascading feel */
.animations-ready .split-reveal-words.split-text-active + .split-reveal-words {
    transition-delay: 0.08s;
}
.animations-ready .split-reveal-words.split-text-active + .split-reveal-words + .split-reveal-words {
    transition-delay: 0.16s;
}

/* Eyebrow / chars: slightly faster reveal */
.animations-ready .split-reveal-chars {
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

/* Safety: if somehow split-word/char spans still exist from old markup,
   make absolutely sure they never hide text */
.split-word-wrapper {
    display: inline;
    overflow: visible;
    vertical-align: baseline;
    padding: 0;
    margin: 0;
}
.split-word,
.split-char {
    display: inline;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}
.split-word-group {
    display: inline;
    white-space: normal;
}
.split-char-wrapper {
    display: inline;
    overflow: visible;
    vertical-align: baseline;
    padding: 0;
    margin: 0;
}

/* No-JS and reduced-motion: always show immediately */
.no-js .split-reveal-words,
.no-js .split-reveal-chars {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .animations-ready .split-reveal-words,
    .animations-ready .split-reveal-chars {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}



/* Final mobile polish: keep narrow screens readable and controls thumb-friendly. */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Prevent horizontal layout shifts from reveal animations on mobile */
    .reveal-left {
        transform: translateY(20px);
    }
    .reveal-right {
        transform: translateY(20px);
    }
    .reveal-left.active,
    .active .reveal-left,
    .reveal-right.active,
    .active .reveal-right {
        transform: translateY(0);
        opacity: 1;
    }

    h2 {
        font-size: clamp(2.15rem, 11vw, 3.1rem);
        line-height: 1;
    }

    .btn {
        min-height: 3rem;
        padding: 0.82rem 1.1rem;
        font-size: 0.95rem;
        line-height: 1.15;
        text-align: center;
    }

    .botanical-accents {
        opacity: 0.28;
    }

    .scroll-vine {
        min-width: 34px;
    }

    .hero {
        min-height: 100svh;
        align-items: stretch;
    }

    .hero-bg {
        background-image: url('assets/images/couple-snow-800.webp');
        background-position: 58% 28%;
        animation: none;
    }

    .hero::before {
        inset: 0.65rem;
    }

    .hero-container {
        min-height: 100svh;
        justify-content: flex-start;
        padding: max(5.75rem, calc(env(safe-area-inset-top) + 5rem)) 1rem max(2rem, env(safe-area-inset-bottom));
    }

    .hero-main-content {
        max-width: min(100%, 23rem);
    }

    .hero .title {
        font-size: clamp(3rem, 15.5vw, 4.45rem);
        line-height: 0.94;
    }

    .hero-location {
        max-width: 19rem;
    }

    .hero-actions {
        grid-template-columns: 1fr;
        width: min(100%, 21rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .nav-links {
        right: 0;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translate3d(105%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hero-quick-facts,
    .scroll-cue {
        display: none;
    }

    .hero-side-content {
        display: block;
        width: 100%;
        max-width: none;
    }

    .hero-photo-card {
        display: none;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .asymmetrical-grid,
    .sticky-grid,
    .venue-showcase,
    .regrets-layout,
    .details-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .grid-content p,
    .sticky-content p,
    .details-copy p,
    .regrets-note p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .grid-images {
        display: block;
        height: auto;
        min-height: 0;
    }

    .image-main {
        width: 100%;
        aspect-ratio: 4 / 5;
    }

    .image-secondary,
    .image-tertiary {
        display: none;
    }

    .gallery-intro {
        grid-template-columns: 1fr;
    }

    .editorial-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-card,
    .gallery-card-large,
    .gallery-card-tall,
    .gallery-card-small,
    .gallery-card-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .gallery-card figcaption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .polaroid-gallery {
        grid-template-columns: 1fr;
        gap: 1.45rem;
        padding-top: 2.75rem;
    }

    .polaroid-gallery.row-2 {
        grid-template-columns: 1fr;
        max-width: 22rem;
    }

    .polaroid-gallery .gallery-card,
    .polaroid-gallery .gallery-card-large,
    .polaroid-gallery .gallery-card-tall,
    .polaroid-gallery .gallery-card-small,
    .polaroid-gallery .gallery-card-wide {
        aspect-ratio: auto;
        width: min(100%, 22rem);
        max-width: 22rem;
        justify-self: center;
    }

    .polaroid-gallery .gallery-card figcaption {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .polaroid-gallery .gallery-card figcaption strong {
        font-size: 1.72rem;
    }

    .timeline {
        gap: 1rem;
        padding-left: 1rem;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 2rem 1fr;
        padding: 1rem;
        gap: 0.35rem 0.75rem;
    }

    .timeline-date,
    .timeline-event {
        grid-column: 2;
    }

    .timeline-event strong {
        font-size: 1rem;
    }

    .venue {
        padding: 3.75rem 0;
    }

    .venue-cinematic {
        height: 48vh;
        opacity: 0.55;
    }

    .venue-copy {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .venue-highlights {
        margin-top: 1.6rem;
    }

    .highlight-item {
        align-items: flex-start;
        padding: 0.85rem;
    }

    .venue-image-wrapper {
        aspect-ratio: 4 / 5;
        border-radius: 12px;
    }

    .venue-inset-image {
        width: 44%;
        top: 0.75rem;
        right: 0.75rem;
    }

    .venue-image-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .sticky-visual,
    .getting-there .sticky-visual {
        height: min(620px, 78svh);
        min-height: 540px;
        border-radius: 12px;
    }

    .map-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
        padding: 0.75rem;
    }

    .map-topbar span,
    .map-external-link {
        text-align: center;
    }

    .map-view-presets {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .map-preset-btn {
        min-height: 2.35rem;
        padding: 0.45rem 0.35rem;
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .arrival-map .map-mode-toggle {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 12.75rem;
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.35rem;
    }

    .arrival-map .map-mode-btn {
        justify-content: flex-start;
        min-height: 2.45rem;
    }

    .arrival-map .map-note {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.9rem;
    }

    .arrival-map .map-note span {
        font-size: 0.66rem;
        line-height: 1.35;
    }

    .arrival-map .map-note strong {
        font-size: 1.25rem;
        line-height: 1.05;
    }

    .arrival-map .map-note p {
        display: none;
    }



    .regrets {
        padding: 4rem 0;
    }

    .form-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .floating-input {
        min-height: 3.3rem;
    }

    .regrets-form-note {
        overflow-wrap: anywhere;
    }

    .save-weekend-panel {
        margin-top: 0;
        padding: max(4.9rem, calc(env(safe-area-inset-top) + 4.25rem)) 1rem 3.25rem;
        background: linear-gradient(180deg, hsl(150, 42%, 8%), hsl(139, 34%, 13%));
    }

    .save-weekend-photo {
        min-height: min(62vh, 34rem);
    }

    .save-weekend .eyebrow {
        max-width: 100%;
        letter-spacing: 0.14em;
        line-height: 1.25;
        white-space: normal;
    }

    .save-weekend h2 {
        font-size: clamp(2.8rem, 15vw, 4.25rem);
        line-height: 0.95;
    }

    .save-weekend-meta,
    .detail-promises {
        grid-template-columns: 1fr;
    }

    .calendar-dropdown-container,
    .calendar-dropdown-btn,
    .calendar-dropdown-menu {
        width: 100%;
        min-width: 100%;
    }

    .curtain-footer {
        min-height: 34vh;
    }

    .journey-polaroids {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.35rem;
        height: auto;
        min-height: 0;
        padding-top: 2.75rem;
    }

    .journey-polaroids .image-main,
    .journey-polaroids .image-secondary,
    .journey-polaroids .image-tertiary {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
        width: min(100%, 22rem);
        margin: 0 auto;
        aspect-ratio: auto;
    }

    .journey-polaroids .image-main {
        transform: rotate(1.1deg);
    }

    .journey-polaroids .image-secondary {
        transform: rotate(-1.8deg);
    }

    .journey-polaroids .image-tertiary {
        transform: rotate(1.6deg);
    }
}

@media (max-width: 420px) {
    .container,
    .nav-container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .nav-brand {
        font-size: 1.32rem;
    }

    .hamburger {
        width: 2.55rem;
        height: 2.55rem;
    }

    .hero-container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .hero .title {
        font-size: clamp(2.75rem, 14.7vw, 3.75rem);
    }

    .hero-main-content .eyebrow,
    .badge {
        letter-spacing: 0.11em;
    }

    .timeline-item {
        grid-template-columns: 1.75rem 1fr;
    }

    .sticky-visual,
    .getting-there .sticky-visual {
        min-height: 560px;
    }

    .arrival-map .map-mode-toggle {
        bottom: 11.8rem;
    }

    .lightbox-caption {
        left: 0.75rem;
        right: 0.75rem;
    }
}

/* Final mobile hero/map tune-up. Keep this late in the file so it wins over earlier responsive passes. */
@media (max-width: 768px) {
    #main-content {
        margin-top: 0;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        margin-top: 0;
        overflow: hidden;
    }

    .hero-bg {
        inset: 0;
        width: auto;
        height: auto;
        min-height: 100%;
        background-image: url('assets/images/couple-snow-1200.webp');
        background-position: 55% 0%;
        background-size: cover;
    }

    .hero-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: max(5.25rem, calc(env(safe-area-inset-top) + 4.75rem));
    }

    .sticky-visual,
    .getting-there .sticky-visual {
        height: auto;
        min-height: 0;
        overflow: visible;
        border-radius: 12px;
        background: transparent;
        box-shadow: 0 18px 48px hsla(150, 32%, 9%, 0.12);
    }

    .arrival-map {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        height: auto;
        padding: 0.75rem;
        overflow: hidden;
        border-radius: 12px;
        background: hsl(42, 24%, 92%);
    }

    .arrival-map::before,
    .arrival-map::after {
        display: none;
    }

    .google-map-frame {
        position: relative;
        inset: auto;
        order: 2;
        height: clamp(320px, 64vh, 430px);
        min-height: 320px;
        overflow: hidden;
        border: 1px solid hsla(150, 32%, 15%, 0.12);
        border-radius: 10px;
    }

    .map-topbar,
    .arrival-map .map-mode-toggle,
    .arrival-map .map-note {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        z-index: 3;
    }

    .map-topbar {
        order: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.8rem;
        text-align: center;
    }

    .map-view-presets {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .map-preset-btn {
        min-height: 2.3rem;
        padding: 0.45rem 0.25rem;
        font-size: 0.66rem;
    }

    .map-external-link {
        justify-self: center;
        width: fit-content;
    }

    .arrival-map .map-mode-toggle {
        order: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.4rem;
    }

    .arrival-map .map-mode-btn {
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.45rem 0.25rem;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .arrival-map .mode-icon {
        width: 1rem;
        height: 1rem;
        margin-right: 0.25rem;
    }

    .arrival-map .map-note {
        order: 4;
        padding: 0.95rem;
    }

    .arrival-map .map-note p {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero-bg {
        background-position: 57% 0%;
    }

    .google-map-frame {
        height: 340px;
    }

    .arrival-map .map-mode-btn {
        flex-direction: column;
        gap: 0.2rem;
        min-height: 3rem;
    }

    .arrival-map .mode-icon {
        margin-right: 0;
    }
}

body.entry-transition-active {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-bg {
        height: 100svh;
        min-height: 100svh;
        animation: none;
        transform: none !important;
        will-change: auto;
    }

    .hero-bg::before,
    .hero-bg::after {
        animation: none;
        will-change: auto;
    }

    .hero-container {
        min-height: 100svh;
    }
}

@media (max-width: 360px) {
    .hero {
        min-height: auto;
        overflow: visible;
    }

    .hero-container {
        min-height: auto;
        padding-top: max(4.9rem, calc(env(safe-area-inset-top) + 4.35rem));
        padding-bottom: 1.4rem;
    }

    .hero-content-wrapper {
        gap: 1rem;
    }

    .hero-main-content {
        max-width: 18rem;
    }

    .hero .title {
        font-size: clamp(2.65rem, 14vw, 3.35rem);
        margin-bottom: 0.8rem;
    }

    .hero-details {
        gap: 0.55rem;
    }

    .hero-actions {
        gap: 0.55rem;
    }

    .hero-actions .btn {
        min-height: 2.7rem;
        padding-block: 0.7rem;
    }

    .hero-side-content {
        display: none;
    }

    .countdown-wrapper {
        padding: 0.72rem;
    }

    .countdown-eyebrow {
        margin-bottom: 0.55rem;
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }

    .countdown-timer {
        gap: 0.28rem;
    }

    .timer-unit {
        padding: 0.55rem 0.18rem 0.5rem;
    }

    .timer-number {
        font-size: 1.45rem;
    }

    .timer-unit label {
        margin-top: 0.28rem;
        font-size: 0.47rem;
        letter-spacing: 0.08em;
    }

    .countdown-note {
        margin-top: 0.55rem;
        font-size: 0.62rem;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .navbar {
        padding: 0.9rem 0;
    }

    .nav-container {
        min-height: 2.9rem;
    }

    .hamburger {
        width: 2.85rem;
        height: 2.85rem;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: hsla(150, 34%, 8%, 0.22);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .navbar.scrolled .hamburger,
    body.nav-open .hamburger {
        color: var(--clr-forest);
        background: hsla(42, 42%, 98%, 0.92);
        box-shadow: 0 12px 34px hsla(150, 36%, 8%, 0.12);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(58vw, 360px);
        max-width: none;
        height: 100vh;
        height: 100svh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
        padding: max(5.5rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: var(--clr-ivory);
        box-shadow: -18px 0 50px hsla(150, 36%, 8%, 0.14);
        transform: translate3d(105%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        will-change: transform;
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        min-height: 3.25rem;
        justify-content: center;
        padding: 0.9rem 1rem;
        color: var(--clr-forest) !important;
        font-size: 0.92rem;
        line-height: 1.2;
        text-shadow: none !important;
    }

    .nav-links a.active {
        color: var(--clr-forest) !important;
        background: hsla(105, 15%, 80%, 0.42) !important;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-container {
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(6.5rem, calc(env(safe-area-inset-top) + 5.8rem)) 2.25rem 4rem;
    }

    .hero-content-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.5fr);
        gap: 2rem;
        align-items: center;
    }

    .hero-main-content {
        max-width: 31rem;
    }

    .hero .title {
        font-size: clamp(4.5rem, 10.4vw, 6rem);
    }

    .hero-side-content {
        display: block;
        width: 100%;
        max-width: none;
        justify-self: end;
    }

    .hero-photo-card {
        display: block;
        max-width: 300px;
        aspect-ratio: 4 / 5;
        margin: 0 auto 1rem;
    }

    .countdown-wrapper {
        max-width: 300px;
        margin-inline: auto;
        padding: 1rem;
    }

    .timer-number {
        font-size: 1.65rem;
    }

    .timer-unit label {
        font-size: 0.48rem;
        letter-spacing: 0.1em;
    }

    .hero-quick-facts,
    .scroll-cue {
        display: none;
    }
}

/* ==========================================================================
   Story Transition Overlay & Particle Canvas Styles
   ========================================================================== */

.story-transition-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--clr-forest-dark), #09130d);
    z-index: 20000; /* Sit above everything else during unlock */
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overscroll-behavior: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.story-transition-overlay.stage-active {
    opacity: 1;
    pointer-events: auto;
}

/* Ambient gold glow in background */
.story-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsla(36, 40%, 65%, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Gold Editorial Frame Inset */
.story-border-frame {
    position: absolute;
    inset: 1.5rem;
    border: 1px solid hsla(36, 40%, 65%, 0.25);
    pointer-events: none;
    z-index: 2;
}
.story-border-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 0.5px solid hsla(36, 40%, 65%, 0.12);
}

.story-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Title Section */
.story-title-wrapper {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-intro .story-title-wrapper,
.stage-converging .story-title-wrapper,
.stage-merged .story-title-wrapper,
.stage-flair .story-title-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.story-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clr-champagne);
    margin-bottom: 0.5rem;
}

.story-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--clr-ivory);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

/* Photos Wrapper Layout */
.story-photos-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    margin: 1rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-photo-card {
    position: absolute;
    top: 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Polaroid Frames */
.polaroid-frame {
    background: #ffffff;
    padding: 14px 14px 26px 14px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-block;
    transition: box-shadow 0.5s ease;
}

.polaroid-img-container {
    width: 190px;
    height: 190px;
    overflow: hidden;
    border-radius: 2px;
    background: #eee;
}

.polaroid-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-label {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 1.9rem;
    color: #1a251d;
    margin-top: 12px;
    text-align: center;
    line-height: 1.05;
}

.polaroid-label.font-cursive {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--clr-forest);
    margin-top: 14px;
    text-transform: uppercase;
}

/* Individual Polaroid Placement & Transitions */
.card-left {
    left: 4%;
    transform: translateY(-50%) rotate(-5deg);
    transition: left 2.0s cubic-bezier(0.25, 1, 0.5, 1), transform 2.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
    opacity: 0;
}

.card-right {
    right: 4%;
    transform: translateY(-50%) rotate(5deg);
    transition: right 2.0s cubic-bezier(0.25, 1, 0.5, 1), transform 2.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
    opacity: 0;
}

.card-center {
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65) rotate(0deg);
    opacity: 0;
    pointer-events: none;
    z-index: 12;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.2s ease;
}

/* Timed Stage states added by script */
.stage-intro .card-left {
    left: 10%;
    opacity: 1;
}

.stage-intro .card-right {
    right: 10%;
    opacity: 1;
}

.stage-converging .card-left {
    left: calc(50% - 210px);
    transform: translateY(-50%) rotate(3deg);
    opacity: 1;
}

.stage-converging .card-right {
    right: calc(50% - 210px);
    transform: translateY(-50%) rotate(-3deg);
    opacity: 1;
}

.stage-merged .card-left,
.stage-flair .card-left {
    left: calc(50% - 190px);
    transform: translateY(-50%) scale(0.8) rotate(6deg);
    opacity: 0;
    pointer-events: none;
}

.stage-merged .card-right,
.stage-flair .card-right {
    right: calc(50% - 190px);
    transform: translateY(-50%) scale(0.8) rotate(-6deg);
    opacity: 0;
    pointer-events: none;
}

.stage-merged .card-center,
.stage-flair .card-center {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-1.5deg);
}

/* Cursive Captions text styles */
.story-caption-wrapper {
    margin-top: 1rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.story-caption {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 300;
    color: var(--clr-beige);
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-caption.show-text {
    opacity: 1;
    transform: translateY(0);
}

/* Flourishing golden 'We do.' lettering */
.story-ido-flourish {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-family: 'Great Vibes', cursive;
    font-size: 6.2rem;
    color: var(--clr-champagne-light);
    text-shadow: 
        0 0 20px hsla(36, 40%, 65%, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.stage-flair .story-ido-flourish,
.stage-merged .story-ido-flourish {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Canvas Particle overlay */
.story-flair-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 18;
}

/* Final Overlay Fade-out */
.story-transition-overlay.stage-fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsive scaling */
@media (max-width: 600px) {
    .story-border-frame {
        inset: 0.8rem;
    }

    .story-transition-overlay {
        height: 100dvh;
        min-height: 100dvh;
        background: #050806;
    }

    .story-container {
        max-height: 100dvh;
        overflow: hidden;
    }
    
    .story-main-title {
        font-size: 2.1rem;
    }
    
    .story-eyebrow {
        font-size: 0.75rem;
    }
    
    .story-photos-wrapper {
        height: 240px;
        margin: 1rem 0 1.5rem;
    }
    
    .polaroid-img-container {
        width: 120px;
        height: 120px;
    }
    
    .polaroid-frame {
        padding: 9px 9px 18px 9px;
    }
    
    .polaroid-label {
        font-size: 1.35rem;
        margin-top: 6px;
    }
    
    .polaroid-label.font-cursive {
        font-size: 0.85rem;
        margin-top: 8px;
    }
    
    .card-left {
        left: 2%;
    }
    
    .card-right {
        right: 2%;
    }
    
    .stage-intro .card-left {
        left: 6%;
    }
    
    .stage-intro .card-right {
        right: 6%;
    }
    
    .stage-converging .card-left {
        left: calc(50% - 133px);
        transform: translateY(-50%) rotate(3deg);
    }
    
    .stage-converging .card-right {
        right: calc(50% - 133px);
        transform: translateY(-50%) rotate(-3deg);
    }
    
    .stage-merged .card-left,
    .stage-flair .card-left {
        left: calc(50% - 118px);
        transform: translateY(-50%) scale(0.7) rotate(5deg);
        opacity: 0;
        pointer-events: none;
    }
    
    .stage-merged .card-right,
    .stage-flair .card-right {
        right: calc(50% - 118px);
        transform: translateY(-50%) scale(0.7) rotate(-5deg);
        opacity: 0;
        pointer-events: none;
    }
    
    .story-caption {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    
    .story-ido-flourish {
        font-size: 4.2rem;
        top: 53%;
    }
}

/* ==========================================================================
   Our Beginning Section (Childhood Photos & Coming Together)
   ========================================================================== */

.our-beginning {
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, var(--clr-ivory) 0%, hsl(135, 30%, 12%) 120px, #09130d 100%);
    padding: 6rem 0;
    color: var(--clr-ivory);
    overflow: hidden;
}

.beginning-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: hsla(135, 25%, 15%, 0.45);
    border: 1px solid hsla(36, 40%, 65%, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        0 4px 16px hsla(135, 25%, 12%, 0.1),
        0 16px 48px hsla(135, 25%, 12%, 0.15);
}

.beginning-card .eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clr-champagne);
    margin-bottom: 0.75rem;
}

.beginning-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--clr-ivory);
    margin: 0 0 1rem;
}

.beginning-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
    position: relative;
}

.beginning-polaroid {
    background: #ffffff;
    padding: 12px 12px 24px 12px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    max-width: 175px;
    width: 100%;
    position: relative;
}

.beginning-polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    background: #eee;
}

.beginning-polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beginning-polaroid span.polaroid-name {
    display: block;
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: #1a251d;
    margin-top: 10px;
    text-align: center;
    line-height: 1.1;
}

.beginning-polaroid span.polaroid-location {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(135, 10%, 45%);
    margin-top: 2px;
    text-align: center;
    line-height: 1;
}

.beginning-polaroid.left {
    transform: rotate(-6deg) translateX(15px);
    z-index: 2;
}

.beginning-polaroid.right {
    transform: rotate(6deg) translateX(-15px);
    z-index: 1;
}

/* Hover effects */
.beginning-card:hover .beginning-polaroid.left {
    transform: rotate(-2deg) scale(1.05) translate(-10px, -8px);
    z-index: 3;
    box-shadow: 
        0 10px 22px rgba(0, 0, 0, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.3);
}

.beginning-card:hover .beginning-polaroid.right {
    transform: rotate(2deg) scale(1.05) translate(10px, -8px);
    z-index: 3;
    box-shadow: 
        0 10px 22px rgba(0, 0, 0, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.3);
}

.beginning-text {
    max-width: 500px;
    margin: 0 auto;
}

.beginning-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--clr-beige);
    line-height: 1.75;
    margin: 0;
    font-weight: 300;
}

.beginning-flourish {
    font-family: var(--font-accent);
    font-size: 3.6rem;
    color: var(--clr-champagne-light);
    margin-top: 2rem;
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    line-height: 1;
}

.beginning-card:hover .beginning-flourish {
    transform: scale(1.1) rotate(-1deg);
    opacity: 1;
    text-shadow: 0 0 15px hsla(36, 40%, 65%, 0.3);
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .beginning-card {
        padding: 3rem 1.5rem;
    }
    .beginning-photos {
        gap: 0.75rem;
        margin: 2rem 0;
    }
    .beginning-polaroid {
        max-width: 135px;
        padding: 9px 9px 18px 9px;
    }
    .beginning-polaroid span.polaroid-name {
        font-size: 1.3rem;
        margin-top: 6px;
    }
    .beginning-polaroid span.polaroid-location {
        font-size: 0.58rem;
        margin-top: 1px;
    }
    .beginning-polaroid.left {
        transform: rotate(-4deg) translateX(8px);
    }
    .beginning-polaroid.right {
        transform: rotate(4deg) translateX(-8px);
    }
    .beginning-text p {
        font-size: 0.95rem;
    }
    .beginning-flourish {
        font-size: 3rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    body.nav-open .nav-links,
    .nav-links.active {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
