/* Jonas & Quenie Wedding Invitation */
/* Grayscale Theme */

@font-face {
    font-family: 'Great Vibes';
    src: url('fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Warm Script';
    src: url('fonts/warm-script-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Grayscale Palette */
    --sage-dark: #4A4A4A;
    --sage-primary: #6A6A68;
    --sage-medium: #888886;
    --sage-light: #BDC1CA;
    --sage-pale: #E0E2E6;

    /* Accent Colors */
    --cream: #FFFFFF;
    --cream-dark: #F9FAFB;
    --gold: #6A6A68;
    --gold-dark: #4A4A4A;
    --text-dark: #16181D;
    --text-light: #585E6A;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-form: 'Literata', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-attire: 'Allison', cursive;
    --font-savedate: 'Warm Script', 'Allison', cursive;
    --font-sans: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 999;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    background: #fff;
    transition: opacity 0.8s ease;
    width: 100%;
    margin: 0 auto;
}

.main-content.hidden {
    display: none;
}

.main-content.visible {
    display: block;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--sage-dark);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--sage-light);
    margin: 15px auto 0;
}


/* ===========================================
   HERO SECTION - Couple Photo Collage
   =========================================== */
.hero {
    position: relative;
    aspect-ratio: 375 / 768;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.hero-photo-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 84.5%;
    object-fit: cover;
    opacity: 0.3;
    will-change: transform;
}

.hero-photo-left {
    position: absolute;
    left: 0;
    top: 42.7%;
    width: 66.7%;
    height: 43.4%;
    object-fit: cover;
    border-radius: 2px;
    z-index: 1;
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInLeft 1s ease 0.5s forwards;
    will-change: transform;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-photo-right {
    position: absolute;
    right: 0;
    top: 65.2%;
    width: 53.3%;
    height: 34.8%;
    object-fit: cover;
    border-radius: 2px;
    z-index: 2;
    opacity: 0;
    transform: translateX(60px);
    animation: slideInRight 1s ease 0.8s forwards;
    will-change: transform;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-overlay {
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0;
    opacity: 0;
    animation: fadeInText 1.2s ease 0.5s forwards;
}

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

.hero-tagline-small {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    letter-spacing: 2px;
    margin: 5px 0;
    line-height: 1.5;
}

.hero-names {
    font-family: var(--font-body);
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.9px;
    line-height: 1.26;
    margin: 0;
}


/* ===========================================
   STORY SECTION
   =========================================== */
.story {
    padding: 60px 24px;
    text-align: left;
}

.story-label {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: #767775;
    margin-bottom: 0;
    line-height: 1;
}

.story-title {
    font-family: var(--font-body);
    font-size: 3.25rem;
    font-weight: 400;
    letter-spacing: 5.2px;
    margin-top: 0;
    color: var(--sage-dark);
    line-height: 1;
}

.story-title::after {
    display: none;
}

.story-content p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.64;
    color: #AAAAAA;
    margin-bottom: 20px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   WELCOME SECTION
   =========================================== */
.welcome {
    padding: 40px 24px 80px;
    background: var(--cream);
    text-align: center;
}

.welcome-content {
    max-width: 100%;
    margin: 0 auto;
}

.welcome-heading {
    font-family: var(--font-body);
    font-size: 2.75rem;
    font-weight: 400;
    color: #7A7778;
    letter-spacing: 5.2px;
    margin-bottom: 0;
    line-height: 1.5;
}

.welcome-to {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 400;
    color: #7C797A;
    letter-spacing: 5.2px;
    margin: -5px 0 0;
    line-height: 1.5;
}

.welcome-wedding {
    font-family: var(--font-body);
    font-size: 2.75rem;
    font-weight: 400;
    font-style: italic;
    color: #737172;
    margin-bottom: 0;
    line-height: 1.5;
}

.welcome-divider {
    width: 60px;
    height: 1px;
    background: var(--sage-light);
    margin: 15px auto;
}

.welcome-celebration {
    font-family: var(--font-body);
    font-size: 2.75rem;
    font-weight: 400;
    font-style: italic;
    color: #737172;
    letter-spacing: 4.4px;
    margin: -5px 0 10px;
    line-height: 1.5;
}

.welcome-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.64;
    color: #AAAAAA;
    margin-bottom: 20px;
}

.welcome-cta {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: #AAA7A8;
    margin-top: 10px;
}

.welcome-line {
    width: 150px;
    height: 1px;
    background: var(--sage-light);
    margin: 25px auto 0;
}


/* ===========================================
   DETAILS SECTION
   =========================================== */
.details {
    padding: 40px 24px 80px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.7)),
        url('assets/the_details_background_mobile.png') center / cover no-repeat,
        var(--cream);
    text-align: center;
    position: relative;
}

.details-title {
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 7.2px;
    color: #696969;
    margin-bottom: 40px;
}

.details-title::after {
    display: none;
}

.details-venue {
    max-width: 100%;
    margin: 0 auto 40px;
}

.details-venue-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--sage-medium);
    margin-bottom: 4px;
    letter-spacing: 1.6px;
}

.details-venue-address {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sage-medium);
    line-height: 1.43;
    margin-bottom: 4px;
}

.details-map-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--sage-medium);
    border-radius: 999px;
    color: var(--sage-dark);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.map-button:hover {
    background: var(--sage-primary);
    border-color: var(--sage-primary);
    color: #fff;
}

.map-button svg {
    flex-shrink: 0;
}

/* Timeline Layout */
.details-timeline {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--sage-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    text-align: center;
    margin-bottom: 30px;
}

.timeline-item.timeline-left {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item.timeline-right {
    margin-left: auto;
    margin-right: 0;
}

.timeline-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    font-size: 36px;
    line-height: 44px;
    color: var(--sage-dark);
    text-align: center;
}

.detail-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--sage-medium);
    margin-bottom: 2px;
    line-height: 1.5;
}

.detail-time {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sage-medium);
    line-height: 1.43;
}


/* ===========================================
   COUPLE ATTIRE SECTION
   =========================================== */
.couple-attire-section {
    width: 100%;
    position: relative;
    text-align: center;
    padding: 90px 24px 90px;
    background: var(--cream);
    overflow: hidden;
}

.attire-text {
    display: block;
    font-family: var(--font-attire);
    font-size: 4.55rem;
    font-weight: 400;
    color: var(--sage-medium);
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 28px;
}

.attire-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    border: 1px solid var(--sage-medium);
    border-radius: 999px;
    color: var(--sage-dark);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.attire-button:hover {
    background: var(--sage-primary);
    border-color: var(--sage-primary);
    color: #fff;
}

.attire-button svg {
    transition: transform 0.3s ease;
}

.attire-button:hover svg {
    transform: translateX(3px);
}

/* Attire Dialog */
.attire-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    padding: 0;
    width: min(92vw, 460px);
    max-height: 90vh;
    background: var(--cream);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    color: var(--sage-dark);
}

.attire-dialog[open] {
    animation: dialogIn 0.3s ease;
}

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.attire-dialog::backdrop {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.attire-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--sage-dark);
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease;
    z-index: 2;
}

.attire-dialog-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.attire-dialog-content {
    padding: 44px 24px 28px;
    text-align: center;
    overflow-y: auto;
    max-height: 90vh;
}

.attire-dialog-title {
    font-family: var(--font-attire);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--sage-medium);
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0 0 24px;
}

.attire-dialog-photos {
    margin: 0 auto 28px;
    max-width: 240px;
}

.attire-dialog-photos img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.attire-dialog-palette {
    margin: 0 auto 16px;
}

.attire-coordinated-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sage-dark);
    line-height: 1.6;
    margin: 12px 0 16px;
}

.attire-coordinated-note {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--sage-medium);
    line-height: 1.5;
    margin: 0;
}

.attire-dialog-note {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--sage-medium);
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* ===========================================
   SHADE / COLOR PALETTE SECTION
   =========================================== */
.shade-section {
    padding: 60px 24px;
    background: var(--cream);
    text-align: center;
}

.shade-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 300;
    color: #6A6A6A;
    letter-spacing: 13.2px;
    margin-bottom: 40px;
    line-height: 1;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 268px;
    margin: 0 auto 25px;
}

.palette-swatch {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    margin: 0 auto;
}

.palette-caption {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: #848484;
    line-height: 1.25;
}

/* ===========================================
   RSVP SECTION (Inline Form)
   =========================================== */
.rsvp-section {
    padding: 0;
    text-align: center;
    background: var(--cream);
}

/* RSVP Header */
.rsvp-header {
    text-align: center;
    margin-bottom: 0;
    background: var(--cream-dark);
    padding: 50px 24px 30px;
}

.rsvp-initials {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: #9095A1;
    letter-spacing: 4px;
    margin-bottom: 15px;
    line-height: 1.25;
}

.rsvp-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.33;
}

.rsvp-title::after {
    display: none;
}

.rsvp-subtitle {
    font-family: var(--font-form);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.43;
}

.rsvp-decorative-line {
    width: 64px;
    height: 1px;
    background: rgba(88, 94, 106, 0.5);
    margin: 20px auto 0;
}

/* RSVP CTA (main page) */
.rsvp-cta {
    padding: 30px 24px 10px;
    text-align: center;
}

/* RSVP Form Sections */
.rsvp-form-section {
    margin-bottom: 35px;
    text-align: left;
}

.rsvp-section-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sage-pale);
    line-height: 1.56;
}

/* RSVP Form Styles */
.rsvp-form {
    text-align: left;
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: #424856;
    margin-bottom: 8px;
    line-height: 1.67;
}

.form-hint {
    display: block;
    font-family: var(--font-form);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.33;
}

.required {
    color: var(--sage-primary);
}

.form-label-optional {
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--sage-medium);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.field-error {
    display: none;
    font-family: var(--font-form);
    font-size: 0.8rem;
    color: #8b3a3a;
    margin-top: 6px;
}

.field-error.visible {
    display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: #b85555;
    background: rgba(184, 85, 85, 0.04);
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-textarea:focus {
    border-color: #8b3a3a;
    box-shadow: 0 0 0 3px rgba(184, 85, 85, 0.12);
}

.form-group.has-error .radio-label,
.form-group.has-error .attendance-option .radio-label {
    border-color: #b85555;
    background: rgba(184, 85, 85, 0.04);
}

.form-group.has-error .radio-custom {
    border-color: #b85555;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-form);
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
    border: 1px solid var(--sage-pale);
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1.57;
}

.form-input:hover {
    border-color: var(--sage-medium);
}

.form-input:focus {
    outline: none;
    border-color: var(--sage-primary);
    box-shadow: 0 0 0 3px rgba(106, 106, 104, 0.1);
    background: #fff;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    font-family: var(--font-form);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-form);
    line-height: 1.5;
}

.regret-message-group {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio Grid (2x2) */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option .radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--cream-dark);
    border: 1px solid var(--sage-pale);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-form);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.43;
}

.radio-option .radio-label:hover {
    border-color: var(--sage-medium);
    background: #F3F4F6;
}

.radio-option input:checked + .radio-label {
    border-color: var(--sage-primary);
    background: rgba(106, 106, 104, 0.08);
}

.radio-option .radio-custom {
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-option .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--sage-primary);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.radio-option input:checked + .radio-label .radio-custom {
    border-color: var(--sage-primary);
}

.radio-option input:checked + .radio-label .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input:focus + .radio-label {
    box-shadow: 0 0 0 4px rgba(60, 60, 60, 0.15);
}

/* Companions Section */
.companion-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(125, 140, 110, 0.2);
    border-radius: 10px;
    gap: 10px;
}

@media (min-width: 640px) {
    .companion-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
}

.companion-name {
    font-family: var(--font-form);
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    flex-shrink: 0;
}

.success-role-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-display, var(--font-body));
    font-size: 1.25rem;
    font-weight: 500;
    color: #9C7C66;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin: 28px auto 4px;
    line-height: 1.3;
    max-width: 520px;
}

.success-role-badge::before,
.success-role-badge::after {
    content: '';
    flex: 0 1 36px;
    height: 1px;
    background: #9C7C66;
    opacity: 0.6;
}

@media (min-width: 768px) {
    .success-role-badge {
        font-size: 1.75rem;
        letter-spacing: 4px;
        gap: 18px;
    }

    .success-role-badge::before,
    .success-role-badge::after {
        flex-basis: 50px;
    }
}

.success-personal-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--sage-medium);
    line-height: 1.6;
    text-align: center;
    max-width: 480px;
    margin: 8px auto 0;
}

.success-reminders {
    margin: 24px auto 0;
    text-align: center;
}

/* Video Dialog */
.video-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    padding: 0;
    width: min(92vw, 720px);
    max-height: 90vh;
    background: #000;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: #fff;
}

.video-dialog[open] {
    animation: dialogIn 0.3s ease;
}

.video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.video-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease;
    z-index: 2;
}

.video-dialog-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-dialog-content {
    width: 100%;
    background: #000;
    line-height: 0;
}

.video-dialog-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-reminders-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--sage-medium);
    margin: 0 0 12px;
}

.success-reminders-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    width: 100%;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #9C7C66;
    border-radius: 999px;
    color: #9C7C66;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.success-action-btn:hover {
    background: #9C7C66;
    color: #fff;
}

.success-action-btn svg {
    flex-shrink: 0;
}

.pair-partner-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(125, 140, 110, 0.2);
    border-radius: 10px;
}

.pair-partner-name {
    font-family: var(--font-form);
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.pair-partner-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--sage-medium);
    margin-top: 4px;
}

.companion-name-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-family: var(--font-form);
    font-size: 16px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(125, 140, 110, 0.35);
    border-radius: 8px;
    outline: none;
}

.companion-name-input:focus {
    border-color: var(--sage-primary, #6A6A68);
    box-shadow: 0 0 0 3px rgba(106, 106, 104, 0.12);
}

.companion-name-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.companion-name-input.is-locked {
    background: rgba(0, 0, 0, 0.03);
    border-style: dashed;
    color: var(--sage-dark);
    cursor: default;
}

.companion-name-input.is-locked:focus {
    box-shadow: none;
    border-color: rgba(125, 140, 110, 0.35);
}

.companion-name-input.is-disabled,
.companion-name-input:disabled {
    background: rgba(0, 0, 0, 0.04);
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.6;
}

.companion-row.has-error {
    border-color: rgba(139, 58, 58, 0.55);
    background: rgba(139, 58, 58, 0.04);
}

.companion-row.has-error .companion-name-input {
    border-color: rgba(139, 58, 58, 0.55);
}

.companion-error {
    font-family: var(--font-form);
    font-size: 0.78rem;
    color: #8b3a3a;
    margin: 4px 0 0;
    flex-basis: 100%;
}

.companions-na-notice {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--sage-medium);
    padding: 10px 14px;
    background: rgba(125, 140, 110, 0.08);
    border-left: 3px solid rgba(156, 124, 102, 0.5);
    border-radius: 4px;
    margin-bottom: 16px;
}

.companion-attendance {
    display: flex;
    gap: 8px;
}

.companion-attendance .radio-option {
    margin: 0;
}

.companion-attendance .radio-label {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.companion-attire-note {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(125, 140, 110, 0.08);
    border-left: 3px solid var(--color-sage);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-form);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.5;
}

.companion-notice {
    padding: 16px 20px;
    background: rgba(125, 140, 110, 0.08);
    border-left: 3px solid var(--color-sage);
    border-radius: 0 8px 8px 0;
}

.companion-notice p {
    font-family: var(--font-form);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    font-style: italic;
}

/* Attendance Options */
.attendance-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-option .radio-label {
    padding: 15px 16px;
    justify-content: flex-start;
}

.attendance-text {
    font-weight: 500;
    font-family: var(--font-form);
    font-size: 0.875rem;
}

.attendance-option input:checked + .radio-label.attending-yes {
    background: rgba(106, 106, 104, 0.08);
    border-color: var(--sage-primary);
}

.attendance-option input:checked + .radio-label.attending-no {
    background: rgba(106, 106, 104, 0.08);
    border-color: var(--sage-primary);
}

.attendance-option input:checked + .radio-label.attending-no .radio-custom {
    border-color: var(--sage-primary);
}

.attendance-option input:checked + .radio-label.attending-no .radio-custom::after {
    background: var(--sage-primary);
}

/* RSVP Footer */
.rsvp-footer {
    text-align: center;
    margin-top: 0;
    padding: 4px 24px 30px;
}

.rsvp-deadline {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-style: italic;
    font-weight: 400;
    color: var(--sage-medium);
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.8;
}

.rsvp-deadline strong {
    color: var(--text-light);
    font-weight: 400;
}

.rsvp-event-info {
    font-family: var(--font-form);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.33;
}

@media (max-width: 374px) {
    .radio-grid {
        grid-template-columns: 1fr;
    }
}

/* Autocomplete Styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--sage-pale);
    border-radius: 0 0 4px 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-dropdown.visible {
    display: block !important;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-family: var(--font-form);
    font-size: 0.875rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--sage-pale);
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--sage-pale);
}

.form-input.selected {
    border-color: var(--sage-primary);
    background: rgba(106, 106, 104, 0.05);
}

/* Name Suggestions (fuzzy match) */
.name-suggestions {
    margin-top: 12px;
    padding: 15px;
    background: rgba(106, 106, 104, 0.05);
    border: 1px solid var(--sage-pale);
    border-radius: 4px;
    display: none;
}

.name-suggestions.visible {
    display: block;
}

.suggestions-error {
    font-family: var(--font-form);
    font-size: 0.875rem;
    color: #8b3a3a;
    font-weight: 500;
    margin-bottom: 8px;
}

.suggestions-text {
    font-family: var(--font-form);
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.suggestion-btn {
    display: inline-block;
    margin: 4px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--sage-primary);
    border-radius: 20px;
    font-family: var(--font-form);
    font-size: 0.8rem;
    color: var(--sage-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: var(--sage-primary);
    color: #fff;
}


/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px 0;
    border-radius: 4px;
    font-family: var(--font-form);
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(60, 60, 60, 0.15);
    color: var(--sage-dark);
    border: 1px solid var(--sage-primary);
}

.form-message.error {
    display: block;
    background: rgba(139, 58, 58, 0.1);
    color: #8b3a3a;
    border: 1px solid #c98a8a;
}

.rsvp-success-message {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--sage-dark);
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.attire-guide {
    margin-top: 32px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(125, 140, 110, 0.2);
    border-radius: 12px;
    text-align: center;
}

.attire-guide-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: normal;
    color: var(--color-text);
    margin-bottom: 8px;
}

.attire-guide-subtitle {
    font-family: var(--font-form);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.attire-swatches {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.attire-swatch {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attire-guide-note {
    font-family: var(--font-form);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-muted);
    line-height: 1.5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Farewell Card (Not Attending) */
.farewell-card {
    padding: 80px 24px;
    text-align: center;
    background: var(--sage-pale);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.farewell-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.farewell-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 20px;
}

.farewell-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto 0;
}

.farewell-message {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 450px;
}


.rsvp-button {
    display: inline-block;
    width: 100%;
    padding: 12px 30px;
    background: #9C7C66;
    color: #fff;
    font-family: var(--font-form);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(156, 124, 102, 0.25);
    margin-top: 10px;
    line-height: 1.57;
}

.rsvp-button:hover {
    background: #846552;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(156, 124, 102, 0.4);
}

.rsvp-button:active {
    transform: translateY(0);
}

.rsvp-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* ===========================================
   GIFTS SECTION
   =========================================== */
.gifts-section {
    padding: 60px 24px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gifts-icon {
    color: var(--sage-medium);
    opacity: 0.8;
    margin-bottom: 20px;
}

.gifts-title {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--sage-dark);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.gifts-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: #AAAAAA;
    line-height: 1.64;
    max-width: 320px;
    margin-bottom: 24px;
}

.gifts-heart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: rgba(156, 124, 102, 0.08);
    border: 1px solid rgba(156, 124, 102, 0.35);
    border-radius: 999px;
    color: #9C7C66;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    animation: heartPulse 2.4s ease-in-out infinite;
}

.gifts-heart:hover {
    background: #9C7C66;
    border-color: #9C7C66;
    color: #fff;
    animation: none;
}

.gifts-heart:active {
    transform: scale(0.97);
}

.gifts-heart svg {
    flex-shrink: 0;
}

.gifts-heart-label {
    white-space: nowrap;
}

@keyframes heartPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(156, 124, 102, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(156, 124, 102, 0);
    }
}

/* QR Grid (inside shared dialog) */
.gifts-qr-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}

.gifts-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gifts-qr-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
}

.gifts-qr-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sage-dark);
    letter-spacing: 0.5px;
    margin: 0;
}

.gifts-qr-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--sage-medium);
    letter-spacing: 0.5px;
    margin: -4px 0 4px;
}

.gifts-qr-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.gifts-qr-copy,
.gifts-qr-link {
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gifts-qr-copy {
    background: transparent;
    color: #9C7C66;
    border: 1px solid #9C7C66;
    padding: 6px 10px;
    min-width: 36px;
}

.gifts-qr-copy:hover {
    background: #9C7C66;
    color: #fff;
}

.gifts-qr-copy .icon-check {
    display: none;
}

.gifts-qr-copy.copied {
    background: #9C7C66;
    color: #fff;
}

.gifts-qr-copy.copied .icon-copy {
    display: none;
}

.gifts-qr-copy.copied .icon-check {
    display: inline-block;
}

.gifts-qr-link {
    background: #9C7C66;
    color: #fff;
    border: 1px solid #9C7C66;
}

.gifts-qr-link:hover {
    background: #846552;
    border-color: #846552;
}

/* ===========================================
   CONTACT / QUESTIONS SECTION
   =========================================== */
.contact-section {
    padding: 60px 24px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    color: var(--sage-medium);
    opacity: 0.8;
    margin-bottom: 20px;
}

.contact-title {
    font-family: var(--font-body);
    font-size: 1.875rem;
    font-weight: 400;
    color: #696969;
    letter-spacing: 6px;
    margin-bottom: 8px;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.64;
    color: #AAAAAA;
    margin-bottom: 24px;
}

.contact-name {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 4px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 16px 0 24px;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid var(--sage-medium);
    border-radius: 999px;
    color: var(--sage-dark);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-action:hover {
    background: #9C7C66;
    border-color: #9C7C66;
    color: #fff;
}

.contact-action svg {
    flex-shrink: 0;
}

.contact-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.contact-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage-light);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding: 60px 24px;
    text-align: center;
    background: var(--sage-dark);
    color: var(--cream);
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: #9095A1;
    margin-bottom: 10px;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #BDC1CA;
}

.footer-date {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: #BDC1CA;
    opacity: 0.8;
}

/* ===========================================
   ASSET PRELOADER
   =========================================== */
.asset-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1eee7;
    transition: opacity 0.6s ease;
}

.asset-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.asset-loader-text {
    font-family: var(--font-savedate);
    font-size: clamp(1.92rem, 6vh, 3.84rem);
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
    padding: 0 24px;
    max-width: 90vw;
    text-align: center;
    line-height: 1.2;
    visibility: hidden;
    animation: pulse 1.6s ease-in-out infinite;
}

.asset-loader.fonts-ready .asset-loader-text {
    visibility: visible;
}

/* ===========================================
   SAVE THE DATE LANDING OVERLAY
   =========================================== */
.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(241, 238, 231, 0.96);
    transition: opacity 0.9s ease;
    cursor: pointer;
    overflow: hidden;
}

.envelope-overlay.dismissed {
    opacity: 0;
    pointer-events: none;
}

.save-date-content {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4svh, 60px) 16px clamp(60px, 10svh, 130px);
}

.save-date-content > .save-date-hint {
    position: absolute;
    bottom: clamp(20px, 4svh, 50px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0 !important;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.5s ease;
}

.save-date-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

.save-date-titles {
    position: relative;
    width: 100%;
    height: clamp(3.1rem, 9.6svh, 6rem);
    font-family: var(--font-savedate);
    font-size: clamp(2.4rem, 7.7svh, 5rem);
    z-index: 4;
}

.save-date-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: max-content;
    max-width: 92vw;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    color: #111;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: opacity 0.6s ease;
}

.save-date-title-final {
    opacity: 0;
}

.envelope-overlay.unveiled .save-date-title-initial {
    opacity: 0;
}

.envelope-overlay.unveiled .save-date-title-final {
    opacity: 1;
}

.save-date-titles + .envelope {
    margin-top: clamp(20px, 8svh, 90px);
}

.envelope {
    position: relative;
    width: min(38vw, 42svh);
    max-width: 460px;
    min-width: 220px;
    aspect-ratio: 185 / 149;
    transform-style: preserve-3d;
}

.envelope-body,
.envelope-mouth,
.envelope-stamp,
.pets-row,
.kid-photo {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
}

.envelope-body {
    top: 6.7%;
    left: 0;
    width: 100%;
    height: 93.3%;
    object-position: top;
    z-index: 2;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.2));
}

.envelope-mouth {
    top: 0;
    left: 0;
    width: 100%;
    height: 58.4%;
    object-position: top;
    z-index: 3;
    transform-origin: top center;
    transition:
        transform 1s cubic-bezier(0.5, -0.3, 0.4, 1.3) 0.5s,
        opacity 0.4s ease 1.1s;
}

.envelope.open .envelope-mouth {
    transform: rotateX(-170deg);
    opacity: 0;
}

.envelope-stamp {
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
    width: 27%;
    aspect-ratio: 1;
    z-index: 4;
    transition: opacity 0.5s ease;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22));
}

.envelope.open .envelope-stamp {
    opacity: 0;
}

.kid-photo {
    width: 50%;
    aspect-ratio: 1;
    opacity: 0;
    z-index: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
    transition: top 0.9s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.7s ease;
}

.kid-photo.kid-jonas {
    top: 25%;
    left: 3%;
    transform: translateZ(-1px) rotate(-8deg);
}

.kid-photo.kid-quenie {
    top: 25%;
    right: 3%;
    transform: translateZ(-1px) rotate(8deg);
}

.envelope-overlay.unveiled .kid-photo.kid-jonas {
    top: -15%;
    opacity: 1;
}

.envelope-overlay.unveiled .kid-photo.kid-quenie {
    top: -15%;
    opacity: 1;
    transition-delay: 0.15s;
}

.pets-row {
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 145%;
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.envelope + .save-date-couple {
    margin-top: clamp(20px, 6svh, 90px);
}

.save-date-couple,
.save-date-date {
    text-align: center;
    color: #111;
    z-index: 4;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.save-date-couple {
    font-family: var(--font-savedate);
    font-size: clamp(2.2rem, 6.7svh, 4.3rem);
    line-height: 1;
}

.save-date-couple + .save-date-date {
    margin-top: clamp(4px, 0.8svh, 12px);
}

.save-date-date {
    font-family: var(--font-savedate);
    font-size: clamp(1.4rem, 4.1svh, 2.6rem);
    letter-spacing: 0.12em;
}

.envelope-overlay.unveiled .save-date-couple {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.envelope-overlay.unveiled .save-date-date {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

.save-date-date + .save-date-hint,
.envelope + .save-date-hint {
    margin-top: clamp(16px, 3.5svh, 50px);
}

.save-date-hint {
    font-family: var(--font-sans);
    z-index: 6;
}

.save-date-hint-initial {
    animation: pulse 2.4s ease-in-out infinite;
}

.save-date-hint-final {
    opacity: 0;
}

.envelope-overlay.unveiled .save-date-hint-initial {
    opacity: 0;
    animation: none;
    pointer-events: none;
}

.envelope-overlay.unveiled .save-date-hint-final {
    opacity: 1;
    animation: pulse 2.4s ease-in-out infinite;
    transition-delay: 0.4s;
}

@media (min-width: 769px) {
    .save-date-title {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .envelope {
        width: min(64vw, 38vh);
    }

    .pets-row {
        width: 138%;
    }

    .kid-photo {
        width: 52%;
    }
}


/* ===========================================
   DESKTOP LAYOUT (768px+)
   =========================================== */
@media (min-width: 768px) {
    .main-content {
        max-width: 1440px;
    }

    /* Hero - left-aligned text, photos on right with white borders */
    .hero {
        aspect-ratio: 1440 / 600;
    }

    .hero-bg-photo {
        height: 100%;
        opacity: 0.3;
    }

    .hero-overlay {
        text-align: left;
        left: 80px;
        right: auto;
        top: 35%;
    }

    .hero-tagline-small {
        font-family: var(--font-display);
        font-size: 1.875rem;
        color: var(--sage-dark);
        letter-spacing: 0.75px;
    }

    .hero-names {
        font-family: var(--font-display);
        font-size: 4.5rem;
        color: var(--text-dark);
        letter-spacing: 7.2px;
        line-height: 1.25;
    }

    .hero-photo-left {
        left: auto;
        right: 14.6%;
        top: 31%;
        width: 19.4%;
        height: 63.3%;
        border-radius: 4px;
        z-index: 2;
        animation-name: slideInRight;
    }

    .hero-photo-right {
        left: auto;
        right: 2.1%;
        top: 12.5%;
        width: 24.3%;
        height: 75%;
        border-radius: 4px;
        z-index: 1;
        animation-name: slideInRight;
    }

    /* Story */
    .story {
        padding: 100px 120px;
    }

    .story-label {
        font-size: 3rem;
    }

    .story-title {
        font-size: 5.125rem;
        letter-spacing: 8.2px;
    }

    .story-content p {
        font-size: 1.125rem;
        line-height: 1.78;
        max-width: 577px;
    }

    /* Welcome */
    .welcome {
        padding: 50px 24px 100px;
    }

    .welcome-heading,
    .welcome-wedding,
    .welcome-celebration {
        font-size: 3.75rem;
        letter-spacing: 12px;
    }

    .welcome-to {
        font-size: 1.875rem;
    }

    .welcome-text {
        font-size: 1.125rem;
        line-height: 1.78;
    }

    /* Details - horizontal timeline */
    .details {
        padding: 40px 24px 100px;
        background:
            linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.7)),
            url('assets/the_details_background_desktop.png') center / cover no-repeat,
            var(--cream);
    }

    .details-title {
        font-family: var(--font-serif);
        font-size: 3rem;
        letter-spacing: 9.6px;
    }

    .details-venue-name {
        font-family: var(--font-serif);
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .details-timeline {
        max-width: 600px;
    }

    /* Attire Section */
    .couple-attire-section {
        padding: 130px 24px 130px;
    }

    .attire-text {
        font-size: 6.5rem;
        letter-spacing: 6px;
        margin-bottom: 36px;
    }

    .attire-button {
        padding: 13px 30px;
        font-size: 0.9375rem;
    }

    .attire-dialog {
        width: 520px;
    }

    .attire-dialog-content {
        padding: 56px 44px 36px;
    }

    .attire-dialog-title {
        font-size: 3rem;
        letter-spacing: 3px;
        margin-bottom: 32px;
    }

    .attire-dialog-photos {
        max-width: 280px;
        margin-bottom: 32px;
    }

    .attire-dialog {
        max-height: 92vh;
    }

    .attire-dialog-content {
        max-height: 92vh;
    }

    .palette-grid {
        max-width: 340px;
        margin: 0 auto 30px;
        gap: 24px;
    }

    .palette-swatch {
        width: 64px;
        height: 64px;
        border-radius: 32px;
    }

    .palette-caption {
        font-size: 1.25rem;
    }

    /* RSVP - form in bordered card, two columns */
    .rsvp-section {
        padding: 0;
    }

    .rsvp-header {
        padding: 80px 24px 30px;
    }

    .rsvp-initials {
        font-size: 3.75rem;
        letter-spacing: -1.5px;
    }

    .rsvp-title {
        font-size: 1.875rem;
    }

    .rsvp-subtitle {
        font-size: 1rem;
        font-style: italic;
    }

    .rsvp-form {
        max-width: 1024px;
        margin: 0 auto;
        padding: 48px;
        border: 1px solid #DEE1E6;
        border-radius: 16px;
        background: #fff;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 48px;
    }

    /* Your Details */
    .rsvp-form .rsvp-form-section:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* About You */
    .rsvp-form .rsvp-form-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Companions (hidden by default) */
    .rsvp-form .rsvp-form-section:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    /* Your Response */
    .rsvp-form .rsvp-form-section:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rsvp-form .rsvp-button {
        grid-column: 2;
        grid-row: 4;
        width: 320px;
        height: auto;
        max-height: 56px;
        justify-self: end;
        align-self: end;
        padding: 14px 30px;
        font-size: 1rem;
        border-radius: 24px;
    }

    .rsvp-cta .rsvp-button {
        width: auto;
        min-width: 240px;
        padding: 14px 48px;
    }

    .rsvp-form .form-message {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .rsvp-footer {
        max-width: 1024px;
        margin: 0 auto;
        text-align: center;
        padding: 4px 48px 60px;
    }

    /* Gifts */
    .gifts-section {
        padding: 96px 48px;
        position: relative;
        overflow: hidden;
    }

    .gifts-icon {
        width: 48px;
        height: 48px;
        opacity: 0.7;
        margin-bottom: 32px;
    }

    .gifts-title {
        font-size: 3.75rem;
        letter-spacing: 6px;
        line-height: 1;
        margin-bottom: 24px;
    }

    .gifts-description {
        font-family: var(--font-sans);
        font-size: 1.25rem;
        font-weight: 300;
        max-width: 678px;
        letter-spacing: 0.5px;
        line-height: 1.4;
        margin-bottom: 40px;
    }

    .gifts-heart {
        padding: 13px 28px;
        font-size: 0.875rem;
    }

    .gifts-qr-card img {
        width: 160px;
        height: 160px;
    }

    /* Contact */
    .contact-section {
        padding: 97px 48px 100px;
        border-top: 1px solid var(--sage-pale);
        border-bottom: 1px solid var(--sage-pale);
    }

    .contact-icon {
        width: 64px;
        height: 64px;
        opacity: 0.6;
        margin-bottom: 48px;
    }

    .contact-title {
        font-family: var(--font-display);
        font-size: 3.75rem;
        letter-spacing: 15px;
        line-height: 1;
        margin-bottom: 24px;
    }

    .contact-subtitle {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-style: italic;
        color: rgba(25, 25, 31, 0.7);
        margin-bottom: 60px;
    }

    .contact-name {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text-dark);
        letter-spacing: 0.6px;
        margin-bottom: 4px;
    }

    .contact-actions {
        flex-direction: row;
        gap: 14px;
        margin: 24px 0 60px;
    }

    .contact-action {
        padding: 12px 26px;
        font-size: 0.875rem;
    }

    .contact-dots span {
        width: 8px;
        height: 8px;
        border-radius: 4px;
        background: rgba(243, 244, 246, 0.4);
    }

    .contact-dots {
        gap: 16px;
    }
}

/* ===========================================
   SCROLLBAR
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sage-pale);
}

::-webkit-scrollbar-thumb {
    background: var(--sage-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-primary);
}

/* Photo Carousel */
.photo-carousel {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    width: 100%;
}

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

.photo-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.photo-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 280px;
    display: flex;
    align-items: center;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    align-items: center;
}

.carousel-card {
    flex: 0 0 160px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    will-change: flex-basis;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .photo-carousel {
        padding: 15px 0;
    }
    .carousel-viewport {
        height: 420px;
    }
    .carousel-card {
        flex: 0 0 240px;
        border-radius: 14px;
    }
    .carousel-track {
        gap: 28px;
    }
    .photo-carousel::before,
    .photo-carousel::after {
        width: 140px;
    }
}

/* All text → jet black */
* {
    color: #000 !important;
}

