@font-face {
    font-family: 'Parfumerie';
    src: url('parfumerie-script-text.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --burgundy: #7F343A; /* Updated brand color */
    --burgundy-light: #9B4A51;
    --cream: #EFE9E5; /* Updated global background color */
    --gold: #C5A059;
    --text-dark: #2D2D2D;
    --text-muted: #6D6D6D;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-script: 'Parfumerie', cursive;
    --font-brand: 'Parfumerie', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 501px) {
    body {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 100px rgba(0,0,0,0.1);
        position: relative;
        background: #fff;
    }
    html {
        background: #f5f5f5;
    }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

.no-padding { padding: 0 !important; }

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

.text-center { text-align: center; }
.relative { position: relative; }

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300; /* Standardized */
    letter-spacing: 0.5em;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: var(--burgundy);
    margin: 0 auto;
    animation: loader-grow 1.5s infinite ease-in-out;
}

@keyframes loader-grow {
    0%, 100% { transform: scaleX(0.2); opacity: 0.2; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* Audio Toggle */
.audio-toggle-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--cream);
    border-radius: 50%;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: transform 0.3s ease;
}

.audio-icon-seal {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.audio-toggle-btn.playing .audio-icon-seal {
    animation: seal-rotate 12s linear infinite;
}

@keyframes seal-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--cream);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: hero-bg-fade 2s ease-out forwards;
}

@keyframes hero-bg-fade {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-frame-outer {
    background: white;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(128, 0, 32, 0.1);
    border: 0.5px solid rgba(128, 0, 32, 0.1);
    opacity: 0;
    transform: scale(0.95);
    animation: hero-frame-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes hero-frame-reveal {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.hero-reveal-item {
    opacity: 0;
    transform: translateY(15px);
    animation: hero-item-slide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) + 1s); /* Delay relative to frame reveal */
}

@keyframes hero-item-slide {
    from { 
        opacity: 0; 
        transform: translateY(15px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.hero-frame-inner {
    border: 1px solid var(--burgundy);
    padding: 3.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-frame-inner::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 0.5px solid var(--burgundy);
    opacity: 0.3;
    pointer-events: none;
}

.hero-label {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 1rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.name-script {
    font-family: var(--font-brand);
    font-size: 8.5rem; /* Even larger */
    color: var(--burgundy);
    font-weight: 300; /* Standardized */
    line-height: 0.9;
    margin-bottom: 0;
    z-index: 2;
    text-transform: capitalize;
    opacity: 0;
    animation: slide-from-left 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.name-serif {
    font-family: var(--font-brand);
    font-size: 8.5rem; /* Even larger */
    letter-spacing: 0.02em;
    color: var(--burgundy);
    font-weight: 400;
    line-height: 0.9;
    margin-top: 0;
    opacity: 0;
    animation: slide-from-right 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes slide-from-left {
    from { opacity: 0; transform: translateX(-150px); filter: blur(15px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes slide-from-right {
    from { opacity: 0; transform: translateX(150px); filter: blur(15px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1rem; /* Reverted to original compact size */
    letter-spacing: 0.4em;
    color: var(--burgundy);
    margin-top: 2.5rem;
}

/* Scroll Button */
.scroll-dist-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-dist-btn:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em; /* Compensate for letter-spacing to center perfectly */
    font-weight: 400;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
}

/* Section Common */
.section {
    padding: 0.5rem 0; /* Ultra-minimized */
    position: relative;
}

.serif-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header {
    margin-bottom: 0.5rem; /* Ultra-minimized */
    text-align: center;
}

.header-line {
    display: none;
}

/* Intro Image Section */
.intro-image-section {
    padding: 0; /* Minimized to 0 for seamless transition */
    background: var(--cream);
    display: flex;
    justify-content: center;
    position: relative;
}

.intro-full-img {
    width: 100%;
    max-width: 1000px; /* Centered on desktop */
    height: auto;
    display: block;
    box-shadow: none; /* Removed shadow that caused the 'gray strip' effect */
}

.interactive-seal {
    position: absolute;
    bottom: 5%;
    right: calc(50% - 450px); /* Positioned relative to the centered image */
    width: 180px; /* Enlarged */
    height: 180px;
    z-index: 20;
    cursor: pointer;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.2));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

@media (max-width: 1100px) {
    .interactive-seal {
        right: 5%;
    }
}

.seal-spin {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: seal-continuous-spin 20s linear infinite;
    transition: animation-duration 0.5s ease;
}

@keyframes seal-continuous-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.interactive-seal:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 25px 45px rgba(127, 52, 58, 0.3));
}

.interactive-seal:hover .seal-spin {
    animation-duration: 8s; /* Spins faster on hover */
}

/* Story Section */
.story-section {
    background-color: var(--cream);
    padding: 1.5rem 0 4rem; /* Added bottom padding to prevent clipping */
    overflow: visible; /* Ensure no clipping of rotated items */
}

.story-section .container {
    padding-left: 10%; /* Editorial side margins */
    padding-right: 10%;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-script-title {
    font-family: var(--font-brand);
    font-size: 5rem;
    color: var(--burgundy);
    margin-bottom: 0; /* Removed margin */
    font-weight: normal;
    text-transform: capitalize;
}

.story-text p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--burgundy);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.polaroid-stack {
    position: relative;
    height: 600px; /* Increased further to avoid any bottom clipping */
    width: 100%;
    margin-top: 2rem;
}

.centered-stack {
    max-width: 550px; /* Increased from 400px for side-breathing room */
    margin: 1rem auto 0;
    position: relative; /* Ensure nested absolute items stay inside */
    overflow: visible; /* Prevents side clipping */
}

.polaroid {
    position: absolute;
    background: white;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 250px;
    transition: transform 0.4s ease;
}

.polaroid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.p1 { 
    left: 0; 
    z-index: 2; 
    transform: rotate(-6deg); 
}

.p2 { 
    right: 0; 
    top: 50px; 
    z-index: 1; 
    transform: rotate(6deg); 
}

.polaroid:hover {
    z-index: 10;
    transform: scale(1.05) rotate(0deg);
}

.mt-5 { margin-top: 3rem; }

/* Timeline Section */
.timeline-section {
    background-color: #5D292B;
    padding: 0;
    position: relative;
}


.timeline-section .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.timeline-section .brand-script-title {
    color: var(--cream);
}

.timeline-container {
    max-width: 600px;
    margin: 0.5rem auto 0;
    position: relative;
    padding-bottom: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0 !important;
}

/* Vertical vibe line */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1rem;
    background: rgba(239, 233, 229, 0.3);
}

.timeline-time {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0) invert(1) opacity(0.85);
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--cream);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Dress Code Section */
.dress-code-section {
    background-color: var(--cream);
    padding: 0.5rem 0;
    border-top: none;
}

.dress-code-section .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.dress-code-divider {
    width: 60px;
    margin: 0 auto 1.5rem;
}

.dress-code-divider img {
    width: 100%;
}

.dress-code-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--burgundy);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dress-code-note {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Tighter gap for 4 circles */
    margin: 2.5rem 0;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.color-item:hover .color-circle {
    transform: translateY(-5px);
}

.color-item span {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Countdown Section */
.countdown-section {
    position: relative;
    padding: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.countdown-card {
    position: relative;
    z-index: 2;
    background: #5D292B;
    margin: 4rem 2rem;
    padding: 3px;
    max-width: 500px;
    width: 90%;
}

/* Ornate double border frame */
.countdown-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(239, 233, 229, 0.4);
    pointer-events: none;
}

/* Corner ornaments */
.countdown-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(239, 233, 229, 0.15);
    pointer-events: none;
}

.countdown-card-inner {
    padding: 3rem 2rem;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: rgba(239, 233, 229, 0.4);
    margin-top: 0.2rem;
}

.countdown-label {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    color: rgba(239, 233, 229, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

/* Details Section */
.details-section {
    background: #EDE8E5;
    overflow: hidden;
}

.details-bg-stripes {
    display: none;
}

.details-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.details-card {
    background: var(--cream);
    max-width: 700px;
    margin: 0 auto;
    padding: 0.5rem;
    /* Reduced from 1rem */
    border: 0.5px solid rgba(128, 0, 32, 0.1);
    width: 100%;
}

.card-inner {
    border: 1px solid var(--burgundy);
    padding: 3rem 1.25rem;
    /* Reduced horizontal from 3rem to 1.25rem */
    text-align: center;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--burgundy);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-val {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
}

.detail-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.map-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.2rem 3.5rem;
    background: transparent;
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.map-btn:hover {
    background: var(--burgundy);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.2);
}

/* Dress Section */
.palette-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.swatch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 3px solid white;
}

.palette-item:hover .swatch {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(128, 0, 32, 0.15);
}

.palette-item span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* RSVP Section */
.rsvp-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.details-section .container {
    padding-bottom: 2rem;
}

.rsvp-card {
    background: white;
    max-width: 550px;
    margin: 0 auto;
    padding: 5rem 3rem;
    position: relative;
    border: 1px solid rgba(128, 0, 32, 0.05);
    box-shadow: 0 50px 100px rgba(128, 0, 32, 0.12);
    border-radius: 2px;
}

.rsvp-seal {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

/* Form Styling */
.rsvp-form {
    margin-top: 3rem;
    text-align: left;
}

.rsvp-form input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(128, 0, 32, 0.2);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    outline: none;
}

.rsvp-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.radio-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--burgundy);
    border-radius: 50%;
}

.radio-container:hover input ~ .checkmark {
    background-color: rgba(128, 0, 32, 0.05);
}

.radio-container input:checked ~ .checkmark {
    background-color: var(--burgundy);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked ~ .checkmark:after {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--burgundy);
    color: white;
    border: none;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #5A0016;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    background: var(--cream);
    border-top: 1px solid rgba(128, 0, 32, 0.05);
}

.footer-names {
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.footer-icon {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    animation: wow-float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(128, 0, 32, 0.1));
}

@keyframes wow-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-bg { background-size: cover !important; background-position: center; }
    .hero-frame-inner { padding: 2.5rem 1.5rem; }
    .name-script { font-size: 5.8rem; }
    .name-serif { font-size: 5.8rem; }
    
    .story-grid { grid-template-columns: 1fr; gap: 3rem; }
    .polaroid-stack { height: 350px; }
    .polaroid { width: 220px; }
    
    .details-grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-item.full-width { grid-column: auto; }
    
    .palette-container { flex-wrap: wrap; gap: 1.5rem; }

    /* Collage Responsive */
    .collage-section { padding: 5rem 0; }
    .collage-container { height: 500px; max-width: 100%; }
    
    .photo-left { width: 140px; height: 180px; top: 30px; left: 5%; }
    .photo-top-right { width: 120px; height: 160px; top: 10px; right: 10%; }
    .photo-bottom-right { display: none; }
    
    .envelope-wrapper { width: 280px; bottom: 10px; right: 2%; }
    .invitation-card { padding: 1.5rem 1rem; top: 15px; }
    .card-text { font-size: 1.1rem; max-width: 180px; }
    .tape { width: 60px; height: 20px; }
}

@media (max-width: 480px) {
    .hero-bg { background-size: cover !important; background-position: center; }
    .intro-full-img { transform: scale(1.15); transform-origin: center; }
    .hero-content { padding: 1rem; }
    .hero-frame-inner { padding: 2rem 1rem; }
    .name-script { font-size: 3.8rem; }
    .name-serif { font-size: 3.8rem; }
    .hero-date { font-size: 0.8rem; letter-spacing: 0.2rem; }
    .hero-label { font-size: 0.7rem; margin-bottom: 1rem; }
    
    .brand-script-title { font-size: 3.5rem; }
    .story-text p { font-size: 1rem; line-height: 1.5; }
    .polaroid { width: 180px; }
    .polaroid-stack { height: 300px; }
    
    .footer-names { font-size: 3rem; }
    .footer-icon { width: 70px; }
    
    .countdown-timer { gap: 0.2rem; }
    .countdown-unit { min-width: 45px; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-separator { font-size: 1.5rem; }
    .countdown-label { font-size: 0.55rem; }
    .countdown-card-inner { padding: 2rem 1rem; }
    
    .details-section .container { padding-top: 2rem; padding-bottom: 2rem; }
    .card-inner { padding: 2.5rem 1.5rem; }
    .card-title { font-size: 1.3rem; margin-bottom: 1.5rem; letter-spacing: 0.15em; }
    .details-grid { gap: 1.5rem; }
    .detail-val { font-size: 1.1rem; }
    .detail-label { letter-spacing: 0.2em; margin-bottom: 0.2rem; }
    .detail-sub { font-size: 0.75rem; margin-top: 0.3rem; }
    .map-btn { margin-top: 1.5rem; padding: 1rem 2rem; font-size: 0.65rem; width: 100%; box-sizing: border-box; }
    
    .rsvp-card { padding: 2.5rem 1.5rem; }
    .rsvp-form { margin-top: 1.5rem; }
    .rsvp-form input[type="text"] { font-size: 1rem; margin-bottom: 1.5rem; padding: 0.8rem 0; }
    .rsvp-options { margin-bottom: 2rem; gap: 1rem; }
    .radio-container { font-size: 0.9rem; }
    .submit-btn { padding: 1rem; font-size: 0.8rem; letter-spacing: 0.2em; }
}
