@font-face {
    font-family: 'Mont';
    src: url('assets/mont_extralightdemo.woff2') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Parfumer';
    src: url('assets/parfumerie-script-text.woff2') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Berold';
    src: url('assets/Berold.woff2') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AnastasiaScript';
    src: url('assets/AnastasiaScript.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Foglihten';
    src: url('assets/FoglihtenNo06_076.woff2') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

:root {
    --bg: #F9F8F3;
    --text-dark: #1a1a1a;
    /* Darker for better visibility */
    --text-light: #555555;
    --text-muted: rgba(26, 26, 26, 0.5);
    --accent: #C5A059;
    --gold: #C5A059;
    --gold-bright: #A68646;
    --font-serif: 'Forum', serif;
    --font-script: 'AnastasiaScript', cursive;
    --font-sans: 'Forum', serif;
    --section-gap: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.2;
    /* Further tightened from 1.3 */
    letter-spacing: -0.01em;
    /* Subtle tightening for names and text */
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/WebKit */
    width: 0;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 0.9;
    opacity: 1;
    /* Made fully visible */
}

.font-script {
    font-family: var(--font-script);
    text-transform: none !important;
}

.title-reveal {
    overflow: hidden;
}

.title-reveal span {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .title-reveal span {
    transform: translateY(0);
}

.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: var(--bg);
    min-height: 100vh;
    box-shadow: none;
    /* Clean look without card borders */
    overflow: visible;
}

/* Force hide iOS safari play button on the preloader envelope */
#preloader-video::-webkit-media-controls { display: none !important; }
#preloader-video::-webkit-media-controls-start-playback-button { display: none !important; }

main {
    background-color: var(--bg);
    position: relative;
    z-index: 10;
}

/* Header & Controls */
.controls {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* Allow clicks to pass through except for children */
}

.controls>* {
    pointer-events: auto;
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    font-family: var(--font-sans);
    opacity: 0.6;
}

.lang-btn.active {
    background: var(--gold) !important;
    color: #fff !important;
    border-color: var(--gold) !important;
    font-weight: 600;
    opacity: 1;
}

.music-btn {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    margin-left: 180px;
    cursor: pointer;
    width: 65px;
    height: 65px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: none;
    border: none;
    color: var(--text-dark);
    z-index: 100;
    transition: transform 0.3s;
}

#music-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

.music-btn.playing #music-icon {
    animation: rotateMusic 5s linear infinite;
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    .music-btn {
        left: auto;
        right: 2rem;
        margin-left: 0;
    }
}

.music-btn:hover {
    transform: scale(1.1);
}

.theme-switcher {
    display: flex;
    gap: 0.3rem;
    background: rgba(253, 252, 251, 0.5);
    padding: 2px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-btn {
    cursor: pointer;
    width: 24px;
    /* Smaller */
    height: 24px;
    /* Smaller */
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: all 0.4s;
}

.theme-btn i {
    width: 12px;
    /* Smaller */
    height: 12px;
    /* Smaller */
}

.theme-btn.active {
    background: transparent;
    color: var(--gold);
}

/* Hero Section */
.hero {
    min-height: calc(var(--vh, 1vh) * 100);
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: var(--bg);
    overflow: hidden;
    opacity: 0;
}

.content-visible .hero {
    opacity: 1;
}

.hero-bg,
.hero-bg-day,
.hero-bg-night {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: calc(var(--vh, 1vh) * 100);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.hero-bg-day {
    background: linear-gradient(to bottom,
            rgba(253, 252, 251, 0.0) 0%,
            rgba(253, 252, 251, 0.1) 60%,
            var(--bg) 100%),
        url('assets/bastion-day.webp') center/cover no-repeat;
    opacity: 1;
    transition: opacity 2.5s ease-in-out;
}

.hero-bg-night {
    background: url('assets/bastion-night.webp') top center / cover no-repeat;
    background-color: #0b1a32;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

/* Dark Theme State - Scoped to Hero */
body.dark-theme .hero {
    --bg: #0b1a32;
    --text-dark: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    color: #FFFFFF;
}

body.dark-theme .hero .hero-tag,
body.dark-theme .hero .hero-names span,
body.dark-theme .hero .hero-date,
body.dark-theme .hero .hero-location,
body.dark-theme .hero .scroll-hint {
    color: #FFFFFF !important;
}

body.dark-theme .hero-bg-night {
    opacity: 1;
}

body.dark-theme .hero-bg-day {
    opacity: 0;
}

/* Scrolled controls state */
body.dark-theme .controls:not(.scrolled) .lang-btn,
body.dark-theme .controls:not(.scrolled) .theme-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .controls:not(.scrolled) .theme-switcher {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .controls:not(.scrolled) .theme-btn.active {
    color: var(--gold);
}


.hero-tag,
.hero-names,
.scroll-hint {
    position: relative;
    z-index: 1;
}

.hero-names {
    margin: -5vh 0 0.8rem !important;
    /* Move higher */
    line-height: 1;
}

.hero-names span:not(.ampersand) {
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--text-dark);
    /* Changed from brown #7A5B5B to dark grey */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
    text-transform: none;
    letter-spacing: 0;
    display: block;
}

.hero-names .ampersand {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--text-dark);
    /* Changed from gold to match names */
    display: block;
    margin: -1rem 0;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 22%;
    /* Lowered from 15% */
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(circle, var(--bg) 0%, transparent 70%);
    opacity: 0.65;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.hero-tag.married {
    font-size: 0.8rem;
    opacity: 0.85;
    letter-spacing: 0.25em;
    font-weight: 900;
    /* Extra bold */
    margin-bottom: 14vh !important;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-date {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 5rem !important;
    opacity: 1;
}

.hero-location {
    font-size: 1.1rem !important;
    opacity: 1;
    letter-spacing: 0.2em;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 1.2rem !important;
}

.hero-names {
    margin: 0 auto !important;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-names span:first-of-type {
    display: inline-block;
}

.hero-names span:last-of-type {
    display: inline-block;
}

.hero-names .ampersand {
    margin: -1.2rem 0 !important;
    /* Shifting ampersand to overlap slightly more */
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
section {
    padding: var(--section-gap) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

section.large-gap {
    margin-top: 6rem;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Dear Guests Section */
.dear-guests-section {
    text-align: center;
    padding-top: 2rem !important;
    padding-bottom: 0 !important;
}

.dear-guests-title {
    font-family: 'Forum', serif;
    font-size: 2.5rem;
    letter-spacing: 0;
    text-transform: none !important;
    color: var(--text-dark);
    margin-bottom: 1.5rem !important;
    line-height: 1.1;
}

.dear-guests-text {
    font-family: 'Forum', serif;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.4;
    max-width: 360px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Mini Calendar */
.mini-calendar {
    margin: 0 auto;
    text-align: center;
}

.calendar-month {
    font-family: 'Forum', serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1.5rem !important;
    text-transform: none !important;
    position: relative;
    display: inline-block;
}

.calendar-dates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.cal-date {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(184, 158, 103, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-dark);
    opacity: 0.8;
    position: relative;
    transition: all 0.3s ease;
}

.cal-date--muted {
    width: 44px !important;
    height: 44px !important;
    font-size: 0.85rem !important;
    opacity: 0.35 !important;
    border-color: rgba(184, 158, 103, 0.2) !important;
}

.cal-date--active {
    border: none;
    opacity: 1;
    width: 85px;
    height: 85px;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.date-sticker {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: heartPulse 2.5s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Animated Timeline Path */
.timeline-path-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    /* Changed from negative to positive to push below calendar */
    position: relative;
    height: 60px;
    overflow: visible;
    z-index: 5;
}

.timeline-svg {
    position: absolute;
    top: 10px;
    /* Align with heart */
    left: 0;
    width: 100%;
    height: 120vh;
    /* Will be adjusted by script */
    pointer-events: none;
    overflow: visible;
}

#main-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    filter: drop-shadow(0 0 2px rgba(74, 51, 40, 0.1));
}

.traveling-heart {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    /* Increased from 32px */
    height: auto;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

@keyframes lockVibrate {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.05) rotate(-1deg);
    }

    50% {
        transform: scale(1.03) rotate(1deg);
    }

    75% {
        transform: scale(1.04) rotate(-0.5deg);
    }
}

.lock-vibration-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-vibration-wrapper.vibrate {
    animation: lockVibrate 1.2s ease-in-out;
}

.traveling-heart.visible {
    opacity: 1;
}

.traveling-heart svg {
    width: 100%;
    height: 100%;
}

.traveling-heart .heart-number {
    position: absolute;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -2px;
}

/* Flowing Timeline */
.timing-section {
    padding-top: 0 !important;
    margin-top: -10px;
}

.timing-list {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.timing-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sticker {
    position: absolute;
    width: 140px;
    height: auto;
    opacity: 0.8;
    filter: sepia(0.1) brightness(1.05);
    z-index: 1;
}

.sticker-left {
    left: -70px;
}

.sticker-right {
    right: -70px;
}

.sticker-cupid {
    top: 0%;
    width: 200px;
    opacity: 0.35;
}

.sticker-rings {
    top: 22%;
    opacity: 0.45;
}

.sticker-bouquet {
    top: 38%;
    opacity: 0.4;
}

.sticker-fountain {
    top: 56%;
    width: 200px;
    opacity: 0.4;
}

.sticker-cake {
    top: 76%;
    opacity: 0.45;
}

.sticker-candles {
    top: 93%;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .sticker {
        width: 110px;
    }

    .sticker-cupid,
    .sticker-fountain {
        width: 140px;
    }

    .sticker-left {
        left: -40px;
        opacity: 0.35;
    }

    .sticker-right {
        right: -40px;
        opacity: 0.35;
    }
}

.timing-item {
    display: flex;
    width: 100%;
    padding: 3rem 0;
    position: relative;
    align-items: center;
    border: none !important;
}

.timing-item.left {
    justify-content: flex-start;
    padding-right: 50%;
    text-align: center;
}

.timing-item.right {
    justify-content: flex-end;
    padding-left: 50%;
    text-align: center;
}

.timing-item .details {
    padding: 0 1.5rem;
    max-width: 100%;
    opacity: 0.1;
    /* Semi-visible fallback */
    transform: translateY(10px);
    transition: all 0.8s ease-out;
}

.timing-item.visible .details {
    opacity: 1;
    transform: translateY(0);
}

.timing-item .details {
    padding: 0 1.5rem;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s ease-out;
}

.timing-item .time {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.25em;
    transform-origin: center;
    transition: color 0.4s ease;
}

.timing-item .event {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}

.timing-item .venue-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.timing-item .map-link {
    margin-top: 1rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.7rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.timing-item .map-link:hover {
    background-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 158, 103, 0.3);
}

.timing-item .map-link i {
    margin-right: 8px;
    width: 14px;
    height: 14px;
}

/* SVG Line Dot overlay effect */
.timeline-point {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border: 1.5px solid var(--bg);
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.timing-item.visible .timeline-point {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Adjusting points to be centered on the straight line */
.timing-item .timeline-point {
    transform: translate(-50%, -50%);
}

.timing-item.visible .timeline-point {
    transform: translate(-50%, -50%) scale(1.2);
}

/* RSVP Form Accordion */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-step {
    border-bottom: 1px solid rgba(46, 26, 26, 0.1);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.step-header:hover {
    opacity: 0.7;
}

.step-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.3;
    margin-right: 1.5rem;
    min-width: 25px;
    color: #000;
}

.step-header h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    color: #000;
    text-transform: uppercase;
}

.step-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 3rem;
}

.rsvp-step.active .step-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 2rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #2E1A1A;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 0;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--gold);
}

.next-step {
    display: inline-block;
    margin-top: 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.next-step:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: #2E1A1A;
    color: white;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-btn:hover {
    background: #4A2B2B;
    letter-spacing: 0.25rem;
}

/* Photo Display Section */
.photo-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 2rem 0 0.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #eee;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

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

.photo-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.photo-item.wide img {
    object-position: center 33%;
}

.photo-caption {
    font-family: var(--font-script);
    font-size: 1.9rem;
    color: var(--gold);
    margin-top: 0;
    display: block;
    letter-spacing: 1px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-names {
        font-size: 3.4rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    :root {
        --section-gap: 1rem;
    }
}

/* Dress Code Carousel */
.dress-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 4rem;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track img {
    height: 320px;
    width: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.carousel-track img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .carousel-track img {
        height: 300px;
    }
}

/* Video Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    /* Limit width on desktop */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: #F9F8F3;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 1s;
    box-shadow: none;
}

.preloader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200vw;
    right: -200vw;
    height: 100vh;
    background: #F9F8F3;
    z-index: -1;
}

@media (max-width: 500px) {
    .preloader::after {
        display: none;
    }
}

.preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    z-index: 2;
}

.open-hint {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadePulse 2.5s infinite;
    transition: opacity 0.5s;
    background: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
}

@keyframes fadePulse {
    0% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-5px);
    }

    100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #FFFFFF;
}

.preloader.fade-out video {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Hide content during preload */
main {
    opacity: 0;
    transition: opacity 1.5s;
}

.content-visible main {
    opacity: 1;
}

/* Wishes Section */
.wishes-section {
    padding: 2rem 0;
}

.subtract-card {
    position: sticky;
    top: 15vh;
    width: 100vw;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 5vh;
    padding: 0 0 5rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform-origin: center top;
}

.subtract-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 1;
    opacity: 1;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

.wishes-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 2.5rem;
}

.wishes-text {
    margin-top: 1rem;
    color: #2E1A1A;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 1;
}

.hotel-link-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hotel-link-button:hover {
    background-color: var(--gold);
    color: white;
}

@media (max-width: 768px) {
    .subtract-card {
        padding: 4rem 1.5rem;
        width: 85%;
        max-width: 340px;
    }
}

/* Card Stickers */
.card-sticker {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.sticker-1 {
    width: 100px;
    top: 15%;
    right: 15%;
}

.sticker-2 {
    width: 140px;
    top: -30px;
    left: -20px;
    transform: rotate(-10deg);
}

.sticker-3 {
    width: 80px;
    top: 10%;
    left: 10%;
}

@media (max-width: 480px) {
    .sticker-1 {
        width: 75px;
        top: -15px;
        right: 5px;
    }

    .sticker-2 {
        width: 110px;
        top: -20px;
        left: -15px;
    }

    .sticker-3 {
        width: 65px;
        top: -10px;
        left: -10px;
    }
}

/* Contact Section */
.contact-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #fdfaf5;
    border-radius: 4px;
    border: 1px solid rgba(184, 158, 103, 0.1);
}

.contact-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.organizer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.organizer-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.organizer-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #2E1A1A;
}

.contact-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #2E1A1A;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
}

/* Countdown */
.countdown-section {
    padding: 6rem 1rem !important;
    margin: 4rem 0 !important;
    background-color: #fdfaf5 !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url('assets/bg_countdoun.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    text-align: center !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.countdown-title {
    font-family: var(--font-script) !important;
    font-size: 2.3rem !important;
    color: #2E1A1A !important;
    margin-bottom: 2.5rem !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
}

.countdown-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.countdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.countdown-item .number {
    font-family: var(--font-serif) !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #2E1A1A !important;
}

.countdown-item .label {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #2E1A1A !important;
    margin-top: 0.5rem !important;
    opacity: 0.7 !important;
}

/* Footer Names */
.footer-names {
    margin-top: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    color: #2E1A1A !important;
    opacity: 1 !important;
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 1rem !important;
    }

    .countdown-item .number {
        font-size: 1.8rem !important;
    }
}

/* Interactive Bastion */
.bastion-interactive:hover {
    transform: translateY(-5px) scale(1.05);
    opacity: 1 !important;
}

.bastion-interactive:active {
    transform: scale(0.95);
}

/* Studio Footer Styling */
.studio-footer {
    margin-top: 3rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.studio-footer:hover {
    opacity: 1;
}

.studio-logo {
    width: 65px;
    height: auto;
    filter: none;
}

.studio-footer p {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: #000;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Studio Branding Footer Block */
.studio-branding {
    background: #FDFCFB;
    /* Solid background to separate from hero-bg if needed */
    padding: 1rem 0 3rem;
    position: relative;
    z-index: 10;
    margin-top: -1px;
    /* Join with previous section */
}

.studio-footer {
    margin-top: 0 !important;
    /* Reset margin since it has its own container */
}

/* Override container for wishes to allow full width */
.wishes-section.container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Desktop adjustment for wishes cards */
@media (min-width: 1024px) {
    .subtract-card {
        max-width: 480px !important;
    }

    .subtract-bg {
        transform: translate(-50%, -50%) scale(1.1) !important;
    }
}

.studio-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 1rem 0 !important;
}