/* =========================================================
   Shine & Sila – Wedding Invitation
   style.css
   ---------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Utilities
   4.  Opening intro (preloader + envelope)
   5.  Global FX: particles canvas, scroll progress, cursor
   6.  Navbar
   7.  Buttons
   8.  Hero
   9.  Sections & headers & wave dividers
   10. Couple
   11. Events
   12. Forms & RSVP
   13. Gallery & lightbox
   14. Guestbook & share
   15. Footer
   16. Music player & back-to-top
   17. Keyframes
   18. Responsive
   19. Reduced motion
   ========================================================= */

/* ===== 1. DESIGN TOKENS ===== */
:root {
    --ivory: #FAF8F5;
    --champagne: #F5F0E9;
    --blush: #E8D5D0;
    --rose: #C2707A;
    --sage: #5C6B5A;
    --sage-dark: #4A5A48;
    --gold: #C5A059;
    --gold-light: #D4B483;
    --gold-deep: #8B6A2E;          /* gold for small text (4.5:1 on ivory) */
    --text-dark: #2C2C2C;
    --text-muted: #6B6B6B;
    --white: #FFFFFF;
    --whatsapp: #0F7A3F;           /* deeper WhatsApp green for white text contrast */

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-script: 'Great Vibes', 'Cormorant Garamond', cursive;

    --shadow: 0 10px 34px rgba(92, 107, 90, 0.10);
    --shadow-lg: 0 24px 60px rgba(60, 70, 58, 0.16);
    --radius: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 12px;
    -webkit-text-size-adjust: 100%;
}

html.is-locked, html.is-locked body { overflow: hidden; }

body {
    font-family: var(--font-sans);
    background: var(--ivory);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--sage);
    line-height: 1.15;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--sage); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--blush); color: var(--text-dark); }

/* ===== 3. UTILITIES ===== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: -60px; left: 16px;
    z-index: 9000;
    background: var(--sage);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

.char { display: inline-block; }

/* Added by animations.js while GSAP drives an element, so CSS transitions don't fight it */
.gsap-anim { transition: none !important; }

/* ===== 4. OPENING INTRO ===== */
.no-js .intro { display: none; }

.intro {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(ellipse at 50% 110%, rgba(232, 213, 208, 0.55), transparent 55%),
        var(--ivory);
    overflow: hidden;
}

/* -- Preloader -- */
.preloader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.monogram { width: 150px; height: 150px; overflow: visible; }

.monogram__ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
}
.monogram__ring--inner { stroke-width: 0.6; opacity: 0.7; }

.monogram__text {
    font-family: var(--font-script);
    font-size: 54px;
    fill: var(--gold);
    stroke: var(--gold);
    stroke-width: 0.6;
}

.preloader__bar {
    width: 140px;
    height: 1px;
    background: rgba(197, 160, 89, 0.25);
    overflow: hidden;
}
.preloader__bar span {
    display: block;
    height: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.preloader__label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

/* -- Envelope stage -- */
.intro__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
}
.intro.is-ready .intro__stage { opacity: 1; visibility: visible; }

.envelope-wrap {
    perspective: 1200px;
    --env-w: min(86vw, 440px);
}

.envelope {
    position: relative;
    width: var(--env-w);
    aspect-ratio: 1.42;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* linen texture shared by envelope parts */
.envelope__back,
.envelope__pocket::before,
.envelope__flap::before {
    background-color: #F4EDE2;
    background-image:
        repeating-linear-gradient(0deg, rgba(139, 106, 46, 0.035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(139, 106, 46, 0.03) 0 1px, transparent 1px 3px);
}

.envelope__back {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(197, 160, 89, 0.25);
    background-color: #EADFCC;
}

/* Invitation card */
.invite-card {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 6%;
    height: 88%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 213, 208, 0.35), transparent 70%),
        var(--white);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08), inset 0 0 0 6px var(--white), inset 0 0 0 7px rgba(197, 160, 89, 0.6);
}

/* Couple photo: arch-shaped, sits beside the text (above it on phones) */
.invite-card { flex-direction: row; gap: 18px; padding: 18px 20px; }
.invite-card__photo {
    flex: none;
    align-self: stretch;
    width: 34%;
    height: auto;
    min-height: 0;
    max-height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 999px 999px 8px 8px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(197, 160, 89, 0.75), 0 6px 16px rgba(0, 0, 0, 0.12);
}
.invite-card__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.invite-card__corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid var(--gold);
}
.invite-card__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.invite-card__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.invite-card__pre {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
@media (min-width: 481px) { .invite-card__names { font-size: 2.3rem !important; } }
.invite-card__names {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 9vw, 3rem);
    color: var(--sage);
    line-height: 1.2;
}
.invite-card__rule {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 4px 0;
}
.invite-card__dates {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
}

/* Front pocket (V-shaped top edge) */
.envelope__pocket {
    position: absolute;
    inset: 0;
    z-index: 3;
    filter: drop-shadow(0 -2px 3px rgba(92, 72, 40, 0.10));
    pointer-events: none;
}
.envelope__pocket::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 0 8px 8px;
    clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
    background-color: #F7F1E7;
}

.envelope__front-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8%;
    text-align: center;
}
.envelope__names {
    font-family: var(--font-script);
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    color: var(--sage);
    line-height: 1.1;
}
.envelope__dates {
    font-size: 0.66rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

/* Flap (rotates open in 3D) */
.envelope__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    z-index: 4;
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    filter: drop-shadow(0 3px 3px rgba(92, 72, 40, 0.14));
    pointer-events: none;
}
.envelope__flap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px 8px 0 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: #EFE6D7;
}
.envelope__flap-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.envelope__invited {
    position: absolute;
    top: 14%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-deep);
    letter-spacing: 0.06em;
}

/* Wax seal */
.seal {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    z-index: 6;
    border: 0;
    background: none;
    border-radius: 50%;
}
.seal::after {               /* pulsing glow */
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.55);
    animation: sealPulse 2.2s var(--ease) infinite;
    pointer-events: none;
}
.seal__half {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #E9CC8E 0%, #C5A059 38%, #9C7A36 75%, #7E6128 100%);
    box-shadow:
        inset 0 0 0 4px rgba(126, 97, 40, 0.35),
        inset 0 0 0 7px rgba(233, 204, 142, 0.35),
        0 4px 10px rgba(90, 60, 20, 0.35);
}
.seal__half--l { clip-path: polygon(0 0, 54% 0, 44% 32%, 58% 58%, 47% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 47% 100%, 58% 58%, 44% 32%); }
.seal__mono {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-script);
    font-size: 1.55rem;
    color: #5E4518;
    text-shadow: 0 1px 0 rgba(255, 235, 190, 0.6);
    pointer-events: none;
}
.seal:focus-visible { outline-offset: 6px; border-radius: 50%; }

.tap-hint {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tap-hint i { animation: tapBounce 1.6s var(--ease) infinite; font-size: 1rem; }

/* ===== 5. GLOBAL FX ===== */
.fx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6000;
    pointer-events: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1100;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-deep));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 7000;
    pointer-events: none;
    border-radius: 50%;
    display: none;
}
.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; opacity: 0; transition: opacity 0.3s; }
.has-cursor.cursor-on .cursor-dot, .has-cursor.cursor-on .cursor-ring { opacity: 1; }
.cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--gold);
}
.cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(197, 160, 89, 0.8);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s;
}
.cursor-ring.is-hover {
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px;
    background: rgba(197, 160, 89, 0.12);
}
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* ===== 6. NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(250, 248, 245, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform 0.5s var(--ease), background-color 0.4s, box-shadow 0.4s;
}
.navbar.is-scrolled {
    background: rgba(250, 248, 245, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.navbar.is-hidden { transform: translateY(-110%); }

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

.logo {
    font-family: var(--font-script);
    font-size: 1.9rem;
    color: var(--sage);
    text-decoration: none;
    line-height: 1;
}
.logo span { color: var(--gold); }

.nav-links {
    position: relative;
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--sage); }

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100px;
    height: 1.5px;
    background: var(--gold);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s var(--ease);
    pointer-events: none;
}

/* Hamburger -> X */
.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
}
.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1.8px;
    border-radius: 2px;
    background: var(--sage);
    transition: transform 0.45s var(--ease), opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 7. BUTTONS ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}
/* gold shine sweep */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 240, 200, 0.55) 50%, transparent 100%);
    transform: translateX(-120%) skewX(-20deg);
    transition: transform 0.9s var(--ease);
    pointer-events: none;
}
.btn:hover::before { transform: translateX(260%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple 0.65s var(--ease) forwards;
    pointer-events: none;
    z-index: -1;
}
.btn-outline .ripple { background: rgba(92, 107, 90, 0.2); }

.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); box-shadow: 0 10px 24px rgba(92, 107, 90, 0.28); }

.btn-outline { background: transparent; border-color: var(--sage); color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--white); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--text-dark);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(197, 160, 89, 0.35); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #0B6332; box-shadow: 0 10px 24px rgba(15, 122, 63, 0.28); }

.btn-instagram { background: linear-gradient(45deg, #C13584, #833AB4); color: var(--white); }
.btn-instagram:hover { box-shadow: 0 10px 24px rgba(193, 53, 132, 0.3); }

.btn-block { width: 100%; }

/* ===== 8. HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--ivory);
}

.hero__backdrop { display: none; }

/* Mobile: full-bleed portrait image, faces near the top */
.hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transform-origin: 50% 30%;
}
.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(250, 248, 245, 0) 62%,
        rgba(250, 248, 245, 0.5) 78%,
        rgba(250, 248, 245, 0.92) 92%,
        var(--ivory) 100%);
}

.petals-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 38vh 18px 110px;
    padding-top: 38svh;
}

.hero-content {
    width: 100%;
    max-width: 640px;
    padding: 34px 22px 32px;
    text-align: center;
    background: rgba(250, 248, 245, 0.74);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(60, 70, 58, 0.12);
}

.hero-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 6px;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 0.12em;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.4rem, 13vw, 6.4rem);
    line-height: 1.15;
    color: var(--sage);
}
.mask {
    display: inline-block;
    overflow: hidden;
    padding: 0.08em 0.18em 0.12em;
    margin: 0 -0.18em;
    vertical-align: bottom;
}
.mask__inner { display: inline-block; }

.hero-amp {
    width: 0.75em;
    height: 0.85em;
    overflow: visible;
}
.hero-amp text {
    font-family: var(--font-script);
    font-size: 84px;
    fill: var(--gold);
    stroke: var(--gold);
    stroke-width: 0.8;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 3.6vw, 1.4rem);
    color: var(--text-muted);
    margin: 4px auto 22px;
    max-width: 34ch;
    text-wrap: balance;
}

.hero-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 24px;
    perspective: 600px;
}
.hero-dates__sep { width: 1px; height: 44px; background: linear-gradient(transparent, var(--gold), transparent); }
.date-box { transform-origin: 50% 0%; flex: 1 1 0; max-width: 220px; }
.date-box__place {
    margin-top: 6px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--text-dark);
}
.date-box__place i { color: var(--gold-deep); font-size: 0.8rem; margin-right: 2px; }
.date-box__day {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 4.6vw, 1.8rem);
    font-weight: 600;
    color: var(--sage);
    line-height: 1.2;
}
.date-box__label {
    white-space: nowrap;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* -- Split-flap countdown -- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}
.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    padding: 2px;
}
.countdown__label {
    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.flip {
    --fh: 66px;
    position: relative;
    width: 64px;
    height: var(--fh);
    perspective: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(197, 160, 89, 0.28);
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--sage);
}
.flip::after {              /* hinge line */
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: rgba(92, 107, 90, 0.12);
    z-index: 5;
}
.flip__half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    background: var(--white);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.flip__half span {
    display: block;
    height: var(--fh);
    line-height: var(--fh);
    text-align: center;
}
.flip__half--top { top: 0; border-radius: 12px 12px 0 0; background: linear-gradient(#fff, #FBF9F6); }
.flip__half--bottom { bottom: 0; border-radius: 0 0 12px 12px; }
.flip__half--bottom span { margin-top: calc(var(--fh) / -2); }

.flip__flap { z-index: 3; }
.flip__flap.flip__half--top { transform-origin: 50% 100%; }
.flip__flap.flip__half--bottom { transform-origin: 50% 0%; transform: rotateX(90deg); }
.flip.is-flipping .flip__flap.flip__half--top { animation: flipTop 0.3s ease-in forwards; }
.flip.is-flipping .flip__flap.flip__half--bottom { animation: flipBottom 0.3s 0.3s ease-out forwards; }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--sage);
}
.scroll-down__mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--sage);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-down__dot {
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: var(--gold);
    animation: mouseDot 1.8s var(--ease) infinite;
}
.scroll-down__text {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== 9. SECTIONS ===== */
.section {
    position: relative;
    padding: 100px 20px;
}
.section--tint { background: var(--champagne); }

.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 680px; }
.container--wide { max-width: 1240px; }

.section-header {
    text-align: center;
    margin-bottom: 54px;
}
.ornament { display: inline-block; width: 120px; height: 20px; margin-bottom: 10px; }
.ornament svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.section-header h2 {
    font-size: clamp(2.3rem, 6vw, 3.3rem);
    margin-bottom: 14px;
}
.section-header .divider {
    width: 70px;
    height: 1.5px;
    margin: 0 auto 16px;
    background: var(--gold);
}
.section-header p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Wavy divider on top of tinted sections */
/* Jasmine garland (mullamala) hanging along the top edge of tinted sections */
.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2090%2031'%3E%3Cpath%20d='M0%20.5%20H90'%20stroke='%23C5A059'%20stroke-opacity='.45'%20stroke-width='1'%20fill='none'/%3E%3Cpath%20d='M0%202%20Q45%2046%2090%202'%20stroke='%238AA386'%20stroke-width='1'%20fill='none'/%3E%3Cellipse%20cx='12.6'%20cy='14.2'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(70%2012.6%2014.2)'/%3E%3Cellipse%20cx='25.7'%20cy='21.5'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(58%2025.7%2021.5)'/%3E%3Cellipse%20cx='38.7'%20cy='25.2'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(43%2038.7%2025.2)'/%3E%3Cellipse%20cx='51.3'%20cy='25.2'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(27%2051.3%2025.2)'/%3E%3Cellipse%20cx='64.3'%20cy='21.5'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(12%2064.3%2021.5)'/%3E%3Cellipse%20cx='77.4'%20cy='14.2'%20rx='2.6'%20ry='1.05'%20fill='%238AA386'%20transform='rotate(-0%2077.4%2014.2)'/%3E%3Cg%20transform='translate(6.3%208.7)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(18.9%2017.6)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(31.9%2023.1)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(45.0%2025.0)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(58.0%2023.1)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(71.1%2017.6)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Cg%20transform='translate(83.7%208.7)'%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(0)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(72)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(144)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(216)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Cellipse%20cx='0'%20cy='-2.5'%20rx='1.75'%20ry='2.8'%20transform='rotate(288)'%20fill='%23FFFDF6'%20stroke='%23C5A059'%20stroke-width='.45'/%3E%3Ccircle%20r='1.05'%20fill='%23D4B483'/%3E%3C/g%3E%3Ccircle%20cx='0'%20cy='2'%20r='2'%20fill='%23C5A059'/%3E%3Ccircle%20cx='90'%20cy='2'%20r='2'%20fill='%23C5A059'/%3E%3C/svg%3E") 50% 0 / 140px 48px repeat-x;
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 640px) { .wave-divider { height: 34px; background-size: 98px 34px; } }

/* ===== 10. COUPLE ===== */
.couple-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.profile-card {
    position: relative;
    background: var(--white);
    border-radius: 22px;
    padding: 44px 28px 38px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.profile-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 15px;
    pointer-events: none;
}
.profile-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.portrait {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 24px;
}
.portrait__img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 22%;
}
.portrait__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
.portrait__ring circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.profile-card h3 { font-family: var(--font-script); font-weight: 400; font-size: 3rem; line-height: 1.1; }
.profile-role {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 4px 0 16px;
}
.quote-wrap { margin-bottom: 24px; }
.profile-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.js .profile-quote.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    margin-top: 8px;
    background: none;
    border: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}
.read-more[hidden] { display: none; }

.couple-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.couple-heart__line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.couple-heart__icon {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.5);
    box-shadow: var(--shadow);
    color: var(--rose);
    font-size: 1.3rem;
}
.float-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    color: var(--rose);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ===== 11. EVENTS ===== */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    perspective: 1600px;
}

.event-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform-origin: 0% 50%;
    transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.event-card:hover { box-shadow: var(--shadow-lg); }

.event-card { display: flex; flex-direction: column; }

.event-header {
    position: relative;
    padding: 34px 24px 30px;
    text-align: center;
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 180, 131, 0.28), transparent 50%),
        radial-gradient(circle at 92% 100%, rgba(232, 213, 208, 0.55), transparent 50%),
        linear-gradient(180deg, #FFFFFF, var(--champagne));
    border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}
/* gold bar along the top edge of each card */
.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}
.event-type {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.event-header h3 { color: var(--sage); font-size: 2rem; margin-top: 2px; }

/* Big date badge: solid sage so it stands out on the light header */
.event-date {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 10px 26px 10px 22px;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--sage), var(--sage-dark));
    box-shadow: 0 10px 24px rgba(92, 107, 90, 0.28), inset 0 0 0 1px rgba(212, 180, 131, 0.6);
    text-align: left;
}
.event-date__day {
    font-family: var(--font-serif);
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 0.9;
    color: var(--gold-light);
}
.event-date__meta {
    display: block;
    padding-left: 16px;
    border-left: 1px solid rgba(212, 180, 131, 0.6);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}
.event-date__meta b {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--white);
}

.event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 30px;
}
.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.event-detail i {
    width: 42px;
    height: 42px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--champagne);
    color: var(--gold-deep);
    font-size: 1rem;
}
.event-detail strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.event-detail span { color: var(--text-dark); font-size: 0.98rem; line-height: 1.6; }

/* Actions: one primary button, then a tidy row below */
.event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.event-actions .btn {
    padding: 13px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.event-actions .btn-wide { grid-column: 1 / -1; padding: 15px 18px; font-size: 0.92rem; }

/* ===== 12. FORMS & RSVP ===== */
.card-form {
    position: relative;
    background: var(--white);
    padding: 36px 30px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
fieldset.form-group { border: 0; min-width: 0; }

.form-group > label,
.form-group > legend {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--sage);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #E3DCD1;
    border-radius: 12px;
    background: var(--ivory);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}
.form-group textarea { resize: vertical; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--gold-deep);
    pointer-events: none;
}

.rsvp-choice { display: flex; gap: 12px; flex-wrap: wrap; }
.rsvp-choice label { flex: 1 1 200px; cursor: pointer; }
.rsvp-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1.5px solid #E3DCD1;
    border-radius: 14px;
    background: var(--ivory);
    font-size: 0.92rem;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.rsvp-choice span:hover { border-color: var(--gold); }
.rsvp-choice input:checked + span {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--white);
    animation: pop 0.45s var(--ease);
}
.rsvp-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Expanding details (grid-rows trick) */
.rsvp-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.55s var(--ease), opacity 0.4s, visibility 0s 0.55s;
}
.rsvp-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows 0.55s var(--ease), opacity 0.5s 0.1s, visibility 0s;
}
.rsvp-details__inner { overflow: hidden; min-height: 0; }

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.stepper button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--sage);
    background: var(--white);
    color: var(--sage);
    font-size: 1.4rem;
    line-height: 1;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
}
.stepper button:hover { background: var(--sage); color: var(--white); }
.stepper button:active { transform: scale(0.92); }
.stepper input {
    width: 90px !important;
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: 600;
    color: var(--sage) !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input.bump { animation: bump 0.4s var(--ease); }

.form-error { min-height: 1.2em; margin: -6px 0 10px; font-size: 0.85rem; color: #A2372F; }
.form-note { text-align: center; font-size: 0.84rem; color: var(--text-muted); margin-top: 14px; }

.rsvp-thanks {
    display: none;
    margin-top: 26px;
    padding: 26px 20px;
    border-radius: 16px;
    background: var(--champagne);
    text-align: center;
}
.rsvp-thanks.is-visible { display: block; animation: fadeUp 0.6s var(--ease); }
.rsvp-thanks__check { width: 64px; height: 64px; margin: 0 auto 10px; display: block; }
.rsvp-thanks__check circle {
    fill: none;
    stroke: var(--sage);
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}
.rsvp-thanks__check path {
    fill: none;
    stroke: var(--gold-deep);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}
.rsvp-thanks.is-visible .rsvp-thanks__check circle { animation: draw 0.7s var(--ease) forwards; }
.rsvp-thanks.is-visible .rsvp-thanks__check path { animation: draw 0.45s 0.55s var(--ease) forwards; }
.rsvp-thanks__title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--sage); }
.rsvp-thanks__text { font-size: 0.9rem; color: var(--text-muted); }
.rsvp-thanks__text a { font-weight: 600; }

/* ===== 13. GALLERY ===== */
/* Scrapbook: white-bordered photos with tape, each tilted a little.
   Uses the standalone `rotate` / `translate` properties so GSAP's `transform`
   animations and the hover tilt never fight with the resting angle. */
#gallery { overflow: hidden; padding-bottom: 130px; }

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 26px 0;
    padding: 20px 0 30px;
}

.gallery-item {
    --pt: 10px;
    --pb: 40px;
    position: relative;
    flex: none;
    display: block;
    width: var(--wm);
    margin: 0 -1.5vw;
    padding: var(--pt) var(--pt) var(--pb);
    border: 0;
    border-radius: 4px;
    background: #FFFDF9;
    box-shadow: 0 14px 34px rgba(60, 50, 30, 0.18), 0 2px 6px rgba(60, 50, 30, 0.1);
    rotate: var(--rot);
    translate: 0 var(--lift);
    cursor: zoom-in;
    transition: rotate 0.6s var(--ease), translate 0.6s var(--ease), scale 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* strip of tape */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    width: 78px;
    height: 26px;
    translate: -50% 0;
    rotate: -4deg;
    background: linear-gradient(180deg, rgba(231, 208, 160, 0.85), rgba(212, 180, 131, 0.7));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 100% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
    z-index: 2;
}
.gallery-item:nth-child(even)::before { rotate: 5deg; }

/* zoom icon over the photo area only */
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: var(--pt) var(--pt) var(--pb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    background: rgba(74, 90, 72, 0.4);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

.gallery-item:hover,
.gallery-item:focus-visible {
    z-index: 5;
    rotate: 0deg;
    scale: 1.06;
    box-shadow: 0 26px 56px rgba(60, 50, 30, 0.28), 0 4px 10px rgba(60, 50, 30, 0.12);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* ≥ 900px: one overlapping row */
@media (min-width: 900px) {
    .gallery { flex-wrap: nowrap; gap: 0; }
    .gallery-item { width: var(--w); margin: 0 -10px; --pt: 12px; --pb: 48px; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 26, 21, 0.94);
    touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; }
.lightbox__figure img {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s var(--ease);
    z-index: 2;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
}

/* ===== 14. GUESTBOOK & SHARE ===== */
.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}
.wish-card {
    padding: 22px 26px;
    border-radius: 14px;
    border-left: 4px solid var(--gold);
    background: var(--white);
    box-shadow: var(--shadow);
}
.wish-card__name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sage);
}
.wish-card__date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.wish-card__message { line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.wishes-empty { text-align: center; color: var(--text-muted); font-style: italic; }

.share { margin-top: 0; text-align: center; }
#share { padding-top: 90px; padding-bottom: 80px; }
.share h3 { font-size: 2rem; }
.share > p { color: var(--text-muted); }
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.share-btn { padding: 12px 24px; }
.share-btn[hidden] { display: none; }

/* Copy button: icon morph + tooltip (no clipping) */
#shareCopy { overflow: visible; }
#shareCopy::before { display: none; }
.copy-icon { position: relative; width: 1em; height: 1em; display: inline-block; }
.copy-icon i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s var(--ease), opacity 0.3s;
}
.copy-icon .fa-check { transform: scale(0) rotate(-90deg); opacity: 0; }
#shareCopy.is-copied .fa-link { transform: scale(0) rotate(90deg); opacity: 0; }
#shareCopy.is-copied .fa-check { transform: scale(1) rotate(0); opacity: 1; }
.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--text-dark);
    color: var(--white);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.9);
    transition: opacity 0.3s, transform 0.4s var(--ease);
    pointer-events: none;
}
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
}
#shareCopy.is-copied .tooltip { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ===== 15. FOOTER ===== */
.footer {
    position: relative;
    padding: 70px 20px 110px;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 180, 131, 0.18), transparent 60%),
        var(--sage);
}
.footer__vine { display: block; width: min(520px, 90%); height: 40px; margin: 0 auto 6px; }
.vine-stem { fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; }
.vine-leaf { fill: rgba(212, 180, 131, 0.75); }
.footer__names { display: block; width: min(420px, 88%); height: auto; margin: 0 auto; overflow: visible; }
.footer__names text {
    font-family: var(--font-script);
    font-size: 72px;
    fill: var(--white);
    stroke: var(--gold-light);
    stroke-width: 0.8;
}
.footer__date { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 8px; }
.footer__heart { display: inline-block; color: var(--blush); animation: heartbeat 1.4s ease-in-out infinite; }
.footer__note { font-size: 0.9rem; opacity: 0.92; }
.footer__credit { margin-top: 26px; font-size: 0.78rem; opacity: 0.92; }
.footer__credit a { color: inherit; }

/* ===== 16. MUSIC PLAYER & BACK TO TOP ===== */
.music-player {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 18px 7px 7px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.music-btn {
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--sage);
    color: var(--white);
    transition: background-color 0.3s, transform 0.3s var(--ease);
}
.music-btn:hover { background: var(--sage-dark); transform: scale(1.06); }
.music-btn__vinyl {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px dashed var(--gold);
    opacity: 0;
    transition: opacity 0.4s;
}
.music-player.is-playing .music-btn__vinyl { opacity: 1; animation: spin 7s linear infinite; }
.music-player.is-nudge .music-btn { animation: nudge 1.6s var(--ease) 3; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleY(0.25);
    transform-origin: bottom;
}
.music-player.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.music-player.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.music-player.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1s; }
.music-player.is-playing .eq i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }

.music-info { font-size: 0.78rem; line-height: 1.3; color: var(--text-muted); }
.music-info strong { display: block; font-size: 0.86rem; color: var(--sage); }
.volume input { width: 72px; accent-color: var(--gold); }

/* Minimal player: just the round play/pause button (no title, status text or slider) */
.music-info, .volume, .eq { display: none; }
.music-player { padding: 0; border: 0; background: none; box-shadow: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.music-btn { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
/* hidden on the opening (hero) screen; fades in after scrolling down */
.music-player.is-away { opacity: 0; transform: scale(0.8); pointer-events: none; }

.to-top {
    position: fixed;
    right: 26px;
    bottom: 92px;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--sage);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.5s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: rgba(197, 160, 89, 0.2); stroke-width: 2; }
.to-top__ring { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }

/* ===== 17. KEYFRAMES ===== */
@keyframes sealPulse {
    0%   { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}
@keyframes tapBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes mouseDot {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
@keyframes flipTop {
    from { transform: rotateX(0deg); }
    to   { transform: rotateX(-90deg); }
}
@keyframes flipBottom {
    from { transform: rotateX(90deg); }
    to   { transform: rotateX(0deg); }
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes pop {
    0%   { transform: scale(0.94); }
    60%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
@keyframes bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.28); color: var(--gold-deep); }
    100% { transform: scale(1); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15%      { transform: scale(1.25); }
    30%      { transform: scale(1); }
    45%      { transform: scale(1.18); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq {
    from { transform: scaleY(0.25); }
    to   { transform: scaleY(1); }
}
@keyframes nudge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6); }
    50%      { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
}

/* ===== 18. RESPONSIVE ===== */

/* Venue lines inside the invitation card (shown on the portrait card) */
.invite-card__venues { display: none; }

/* Phones: portrait envelope + vertical invitation card */
@media (max-width: 480px) {
    .envelope-wrap { --env-w: min(80vw, 330px); }
    .envelope { aspect-ratio: 0.68; }
    .envelope__flap { height: 42%; }
    .envelope__pocket::before { clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%); }
    .seal { top: 42%; width: 66px; height: 66px; margin: -33px 0 0 -33px; }
    .seal__mono { font-size: 1.4rem; }
    .envelope__invited { top: 12%; font-size: 1.2rem; }
    .envelope__front-text { bottom: 12%; }
    .envelope__names { font-size: 2.6rem; margin-bottom: 6px; }
    .envelope__dates { font-size: 0.62rem; }

    .invite-card { left: 7%; right: 7%; top: 5%; height: 90%; flex-direction: column; gap: 12px; padding: 24px 16px 22px; }
    .invite-card__photo { align-self: center; width: 48%; height: auto; aspect-ratio: 4 / 5; }
    .invite-card__text { flex: none; gap: 6px; }
    .invite-card__pre { font-size: 0.6rem; }
    .invite-card__names { font-size: 2.6rem; line-height: 1.1; margin: 2px 0; }
    .invite-card__names .char { display: inline-block; }
    .invite-card__dates { font-size: 1.1rem; }
    .invite-card__venues {
        display: block;
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        line-height: 1.9;
        color: var(--gold-deep);
    }
}

/* Small phones */
@media (max-width: 380px) {
    .flip { --fh: 56px; width: 54px; font-size: 1.9rem; }
    .countdown { gap: 7px; }
    .hero-dates { gap: 14px; }
    .card-form { padding: 28px 20px; }
    .btn { padding: 13px 22px; }
}

/* Mobile navigation */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 10px 24px 24px;
        background: rgba(250, 248, 245, 0.98);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
    }
    .nav-links.is-open {
        clip-path: inset(0 0 0 0);
        visibility: visible;
        transition: clip-path 0.55s var(--ease), visibility 0s;
    }
    .nav-links li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s, transform 0.5s var(--ease);
    }
    .nav-links.is-open li { opacity: 1; transform: none; }
    .nav-links.is-open li:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.is-open li:nth-child(2) { transition-delay: 0.13s; }
    .nav-links.is-open li:nth-child(3) { transition-delay: 0.18s; }
    .nav-links.is-open li:nth-child(4) { transition-delay: 0.23s; }
    .nav-links.is-open li:nth-child(5) { transition-delay: 0.28s; }
    .nav-links.is-open li:nth-child(6) { transition-delay: 0.33s; }
    .nav-links a {
        display: block;
        padding: 13px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    }
    .nav-links a.is-active { color: var(--gold-deep); }
    .nav-indicator { display: none; }

    .section { padding: 76px 18px; }

    .scroll-down { display: none; }
    .hero__inner { padding: 82vh 14px 60px; padding-top: 82svh; }
    .hero__img { object-position: 50% 30%; }
    .hero-content { padding: 30px 18px 28px; border-radius: 22px; }
    .hero-dates { gap: 14px; align-items: flex-start; }
    .hero-dates__sep { align-self: stretch; height: auto; }
    .hero-actions .btn { width: 100%; }
    .event-body { padding: 24px 18px 22px; }
    .event-actions { grid-template-columns: 1fr; }
    .event-date__day { font-size: 3rem; }
    .section-header { margin-bottom: 42px; }

    .music-player { right: 16px; bottom: 16px; padding: 0; border: 0; background: none; box-shadow: none; }
    .music-btn { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
    .music-info, .volume, .eq { display: none; }

    .to-top { right: 18px; bottom: 76px; width: 44px; height: 44px; }

    .lightbox__nav { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
    .lightbox__nav--prev { left: 20px; }
    .lightbox__nav--next { right: 20px; }
    .lightbox__counter { bottom: 28px; }
}

/* Tablet+ */
@media (min-width: 769px) {
    .hero-content { padding: 42px 40px 38px; }
    .date-box__place { font-size: 1.05rem; }
    .card-form { padding: 42px 40px; }
}

/* Two-column cards */
@media (min-width: 860px) {
    .events-grid { grid-template-columns: 1fr 1fr; }
    .couple-grid { grid-template-columns: 1fr auto 1fr; gap: 26px; }
    .couple-heart { flex-direction: column; }
    .couple-heart__line { width: 1px; height: 70px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
}

/* Desktop hero: content left, portrait in an arched frame right */
@media (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: center;
        gap: 4vw;
        padding: 60px 6vw 80px;
    }
    .hero__backdrop {
        display: block;
        position: absolute;
        inset: -60px;
        background: url('../assets/images/hero-bg.jpg') center 30% / cover no-repeat;
        filter: blur(40px) saturate(1.1);
        opacity: 0.35;
    }
    .hero__backdrop::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 30% 50%, rgba(250, 248, 245, 0.85), rgba(250, 248, 245, 0.4) 70%);
    }
    .hero__media {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: min(100%, 52vh, 506px);
        height: auto;
        aspect-ratio: 2 / 3;
        border-radius: 999px 999px 28px 28px;
        box-shadow: var(--shadow-lg);
        outline: 1px solid rgba(197, 160, 89, 0.7);
        outline-offset: 12px;
        z-index: 2;
    }
    .hero__media::after { display: none; }
    .hero__img { object-position: 50% 40%; }
    .hero__inner {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }
    .hero-content {
        max-width: 620px;
        background: rgba(250, 248, 245, 0.6);
    }
    .flip { --fh: 76px; width: 74px; font-size: 2.6rem; }
    .countdown { gap: 14px; }
}

@media (min-width: 1440px) {
    .hero { padding-left: 9vw; padding-right: 9vw; }
}

/* Golden sparkles + jasmine drifting over the whole page (canvas created by animations.js) */
.fall-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

/* Events: simple, compact cards on phones */
@media (max-width: 640px) {
    #events { padding: 50px 14px 46px; }
    #events .section-header { margin-bottom: 22px; }
    #events .ornament { display: none; }
    #events .section-header h2 { font-size: 2rem; margin-bottom: 10px; }
    #events .section-header .divider { margin-bottom: 10px; }
    #events .section-header p { font-size: 0.92rem; }

    .events-grid { gap: 14px; }
    .event-card { border-radius: 18px; }

    /* header: date block on the left, event name on the right */
    .event-header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: "date type" "date title";
        align-items: center;
        column-gap: 16px;
        padding: 18px 16px;
        text-align: left;
    }
    .event-header::before { height: 4px; }
    .event-type { grid-area: type; align-self: end; font-size: 0.64rem; }
    .event-header h3 { grid-area: title; align-self: start; margin: 0; font-size: 1.7rem; }
    .event-date {
        grid-area: date;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 10px 16px;
        border-radius: 16px;
        text-align: center;
    }
    .event-date__day { font-size: 2.4rem; }
    .event-date__meta { padding: 0; border: 0; font-size: 0.55rem; letter-spacing: 0.12em; line-height: 1.3; }
    .event-date__meta b { font-size: 0.8rem; letter-spacing: 0.02em; }

    .event-body { padding: 16px 16px 18px; }
    .event-detail { gap: 12px; margin-bottom: 12px; }
    .event-detail i { width: 34px; height: 34px; font-size: 0.85rem; }
    .event-detail strong { font-size: 0.64rem; }
    .event-detail span { font-size: 0.92rem; line-height: 1.5; }
    .d-br { display: none; }

    .event-actions { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
    .event-actions .btn { padding: 11px 8px; font-size: 0.78rem; gap: 7px; }
    .event-actions .btn-wide { padding: 13px 14px; font-size: 0.88rem; }
}

/* Couple: compact layout so both cards fit one phone screen */
@media (max-width: 640px) {
    #couple { padding: 44px 14px 48px; }
    #couple .section-header { margin-bottom: 22px; }
    #couple .ornament { display: none; }
    #couple .section-header h2 { font-size: 2.1rem; margin-bottom: 10px; }
    #couple .section-header .divider { margin-bottom: 10px; }
    #couple .section-header p { font-size: 0.92rem; }

    .couple-grid { gap: 12px; }

    .profile-card {
        display: grid;
        grid-template-columns: 92px 1fr;
        grid-template-areas: "photo name" "photo role" "photo cta" "quote quote";
        grid-template-rows: auto auto 1fr auto;
        column-gap: 16px;
        padding: 18px 16px 16px;
        text-align: left;
        border-radius: 18px;
    }
    .profile-card::before { inset: 6px; border-radius: 13px; }
    .profile-card:hover { transform: none; }

    .portrait { grid-area: photo; width: 92px; height: 92px; margin: 0; }
    .portrait__img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
    .portrait__ring circle { stroke-width: 4; }

    .profile-card h3 { grid-area: name; align-self: end; font-size: 2.3rem; line-height: 1; }
    .profile-role { grid-area: role; margin: 2px 0 8px; font-size: 0.66rem; letter-spacing: 0.2em; }
    .profile-card .btn-instagram {
        grid-area: cta;
        justify-self: start;
        align-self: start;
        padding: 7px 14px;
        gap: 7px;
        font-size: 0.74rem;
    }

    .quote-wrap { grid-area: quote; margin: 12px 0 0; }
    .profile-quote { font-size: 1.02rem; line-height: 1.5; }
    .js .profile-quote.is-clamped { -webkit-line-clamp: 3; line-clamp: 3; }
    .read-more { margin-top: 4px; font-size: 0.7rem; }

    /* heart sits on the seam between the two cards */
    .couple-heart { position: relative; z-index: 3; height: 0; }
    .couple-heart__line { display: none; }
    .couple-heart__icon { width: 34px; height: 34px; font-size: 0.9rem; }
}

@media (max-width: 360px) {
    .profile-card { grid-template-columns: 78px 1fr; column-gap: 12px; }
    .portrait { width: 78px; height: 78px; }
    .profile-card h3 { font-size: 2rem; }
}

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