/* ================================================================
   Jude & Nica Wedding — Pastel Rainbow Fairytale Theme
   ================================================================ */

:root {
    /* Base palette */
    --bg:          #fef9fb;
    --bg-alt:      #fce8f5;
    --ink:         #3b1f38;
    --muted:       #9c7a8b;
    --white:       #ffffff;
    --line:        #f0d0e8;

    /* Main brand */
    --royal:       #b06aa0;
    --royal-dark:  #7a4070;
    --midnight:    #2a1038;
    --rose:        #e8a0c0;
    --rose-light:  #f9d5e8;
    --rose-dark:   #c4608a;

    /* Rainbow accent set — subtle pastels */
    --c-pink:    #f4a8c8;   --c-pink-bg:  #fef0f8;   --c-pink-d:   #b03070;
    --c-blue:    #90c0f0;   --c-blue-bg:  #eef5ff;   --c-blue-d:   #2460a0;
    --c-yellow:  #f0d870;   --c-yel-bg:   #fdfbea;   --c-yel-d:    #907010;
    --c-green:   #80d4a8;   --c-grn-bg:   #edfaf3;   --c-grn-d:    #1a6e48;
    --c-violet:  #b898e8;   --c-vio-bg:   #f3effe;   --c-vio-d:    #4830a0;
    --c-orange:  #f0b080;   --c-orn-bg:   #fff3ea;   --c-orn-d:    #a84020;

    /* Gold */
    --gold:        #e8c07a;
    --gold-dark:   #c4924a;

    /* Dreamy fairytale gradient — soft pastel rainbow used on the hero,
       subpage headers and the password gate, so every "cover" screen
       reads as one consistent whimsical wash instead of a dark night sky. */
    --dream-gradient: linear-gradient(160deg, #ffe3ef 0%, #ffe9d8 22%, #fff8d6 40%, #ddf5e6 58%, #dbeafb 76%, #ecdffa 100%);

    /* Shadows */
    --shadow:      0 16px 50px rgba(60,20,70,0.10);
    --shadow-sm:   0 6px 20px rgba(60,20,70,0.07);
    --shadow-card: 0 8px 32px rgba(60,20,70,0.08);

    --radius:      20px;
    --radius-sm:   12px;
    --radius-full: 9999px;

    --serif:  "Cinzel", Georgia, serif;
    --script: "Great Vibes", cursive;
    --sans:   "Quicksand", system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

/* Brief dim while the seamless router swaps in a new page's content. */
html.is-navigating body { opacity:.55; transition:opacity .12s ease; }

/* ---- Icon utility (inline SVGs from img/icons.svg) ---- */
.icon {
    width:1em; height:1em; display:inline-block; flex-shrink:0;
    vertical-align:-0.15em; overflow:visible;
}
body { font-family:var(--sans); color:var(--ink); background:var(--bg); line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img { max-width:100%; display:block; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 32px;
    transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
    background: rgba(254,249,251,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 24px rgba(176,106,160,0.10);
    padding: 10px 32px;
}
.nav__logo-placeholder {
    font-family:var(--script); font-size:2rem; color:var(--royal-dark); line-height:1; transition:color .3s;
}
.nav.scrolled .nav__logo-placeholder { color:var(--royal); }
.nav__logo-img { height:64px; width:auto; transition:filter .3s; filter:brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.nav.scrolled .nav__logo-img { filter:none; }
.nav__brand { text-decoration:none; line-height:1; }
.nav__links { list-style:none; display:flex; gap:18px; }
.nav__links a {
    text-decoration:none; color:rgba(255,255,255,0.92); text-shadow:0 2px 8px rgba(0,0,0,.55);
    font-size:0.67rem; letter-spacing:0.12em; text-transform:uppercase; font-weight:600;
    transition:color .25s;
}
.nav.scrolled .nav__links a { color:var(--ink); text-shadow:none; }
.nav__links a:hover { color:var(--rose-light); }
.nav.scrolled .nav__links a:hover { color:var(--royal); }
/* Section indicator in nav */
.nav__section-label {
    font-family:var(--serif); font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase;
    color:rgba(255,255,255,0.92); text-shadow:0 2px 8px rgba(0,0,0,.55); white-space:nowrap;
    opacity:0; transform:translateY(-6px);
    transition:opacity .4s, transform .4s, color .3s;
    pointer-events:none;
}
.nav.scrolled .nav__section-label { color:var(--royal); text-shadow:none; }
.nav__section-label.visible { opacity:1; transform:translateY(0); }

/* Active nav link */
.nav__links a.active { color:#fff !important; }
.nav.scrolled .nav__links a.active { color:var(--royal) !important; font-weight:700; }

.nav__toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav__toggle span { width:26px; height:2px; background:#fff; border-radius:2px; box-shadow:0 1px 3px rgba(0,0,0,.5); transition:.3s; }
.nav.scrolled .nav__toggle span { background:var(--ink); box-shadow:none; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position:relative; min-height:100vh; min-height:100svh;
    display:flex; align-items:center; justify-content:center;
    text-align:center; color:var(--royal-dark); overflow:hidden;
    background: var(--dream-gradient);
}
.hero::before {
    content:""; position:absolute; inset:0; z-index:0;
    background:url("../Pictures/BG/Dreamy_Garden_watercolor.webp") center center / cover no-repeat scroll;
    opacity:.22; mix-blend-mode:multiply; pointer-events:none;
}
.hero__stars {
    position:absolute; inset:0; opacity:.6; animation:twinkle 4s ease-in-out infinite alternate;
    background-image:
        radial-gradient(2px 2px at 10% 20%,rgba(176,106,160,.55),transparent),
        radial-gradient(2px 2px at 80% 10%,rgba(176,106,160,.55),transparent),
        radial-gradient(1.5px 1.5px at 30% 60%,rgba(176,106,160,.45),transparent),
        radial-gradient(2px 2px at 60% 35%,rgba(176,106,160,.55),transparent),
        radial-gradient(1.5px 1.5px at 90% 70%,rgba(176,106,160,.4),transparent),
        radial-gradient(2px 2px at 45% 85%,rgba(176,106,160,.55),transparent),
        radial-gradient(1.5px 1.5px at 15% 45%,rgba(176,106,160,.5),transparent),
        radial-gradient(2px 2px at 70% 25%,rgba(176,106,160,.55),transparent),
        radial-gradient(1.5px 1.5px at 25% 90%,rgba(176,106,160,.45),transparent),
        radial-gradient(2px 2px at 95% 45%,rgba(176,106,160,.55),transparent),
        radial-gradient(1.5px 1.5px at 50% 15%,rgba(176,106,160,.5),transparent),
        radial-gradient(2px 2px at 35% 75%,rgba(176,106,160,.55),transparent);
    background-repeat:repeat;
}
.hero__bg-photo { position:absolute; inset:0; z-index:0; }
.hero__bg-placeholder {
    width:100%; height:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px; border:3px dashed rgba(122,64,112,.3);
    color:rgba(122,64,112,.55); font-size:.9rem; letter-spacing:.1em;
}
.hero__bg-placeholder span {
    display:inline-block; width:3rem; height:3rem; opacity:.7;
    background-color:currentColor;
    -webkit-mask:url("../img/icon-camera.svg") no-repeat center / contain;
            mask:url("../img/icon-camera.svg") no-repeat center / contain;
}
.hero__photo-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
/* Slideshow: the incoming photo fades in on top of the previous one, which
   stays fully opaque underneath so the background never shows through. */
.hero__photo-img.is-prev   { opacity:1; z-index:1; }
.hero__photo-img.is-active { opacity:1; z-index:2; transition:opacity .5s ease; }
.hero__overlay {
    position:absolute; inset:0; z-index:1; pointer-events:none;
    /* Darken the sky/castle and garden-path bands for text contrast, keep the
       middle band (where the couple stands) clear so their faces stay visible. */
    background: linear-gradient(to bottom,
        rgba(30,12,32,.55) 0%,
        rgba(30,12,32,.22) 18%,
        rgba(30,12,32,0) 36%,
        rgba(30,12,32,0) 58%,
        rgba(30,12,32,.28) 74%,
        rgba(30,12,32,.5) 88%,
        rgba(30,12,32,.7) 100%);
}
.hero__content {
    position:relative; z-index:2; width:100%; min-height:100vh; min-height:100svh;
    display:flex; flex-direction:column; align-items:center; justify-content:space-between;
    padding:112px 20px 100px; animation:fadeUp 1.2s ease both;
}
.hero__top, .hero__bottom { display:flex; flex-direction:column; align-items:center; width:100%; }
.hero__eyebrow {
    letter-spacing:.3em; font-size:.95rem; margin-bottom:18px; color:#fff; font-weight:600;
    text-shadow:0 2px 6px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.5);
}
.hero__names {
    font-family:var(--script); font-size:clamp(4rem,13vw,9rem); font-weight:400;
    line-height:1; margin-bottom:10px; color:#fff;
    text-shadow:0 3px 10px rgba(0,0,0,.6), 0 6px 34px rgba(0,0,0,.5), 0 0 60px rgba(0,0,0,.35);
}
.hero__names span { display:inline-block; margin:0 6px; font-size:.6em; vertical-align:middle; color:var(--rose-light); }
.hero__tagline {
    font-family:var(--serif); font-size:clamp(1.15rem,3vw,1.7rem); font-style:italic; letter-spacing:.08em; opacity:1; color:#fff; font-weight:500;
    text-shadow:0 2px 8px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5);
}
.hero__date { display:flex; flex-direction:column; gap:6px; margin-bottom:28px; font-size:.85rem; letter-spacing:.25em; text-transform:uppercase; color:#fff; font-weight:600; text-shadow:0 2px 8px rgba(0,0,0,.8), 0 0 18px rgba(0,0,0,.6); }
.hero__date-main { font-family:var(--serif); font-size:1.7rem; letter-spacing:.08em; text-transform:none; margin:6px 0; color:var(--gold); font-weight:600; text-shadow:0 2px 8px rgba(0,0,0,.85), 0 0 22px rgba(0,0,0,.7); }

.hero__scroll {
    display:flex; flex-direction:column; align-items:center; gap:8px;
    width:fit-content; margin:20px auto 0;
    color:#fff; text-decoration:none; text-shadow:0 2px 8px rgba(0,0,0,.75), 0 0 16px rgba(0,0,0,.55);
    font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; font-weight:600;
    animation:hero-scroll-fade-up 1.6s ease both;
}
.hero__scroll-mouse {
    width:24px; height:38px; border:2px solid rgba(255,255,255,.75); border-radius:14px; position:relative;
}
.hero__scroll-mouse::before {
    content:""; position:absolute; top:6px; left:50%; width:4px; height:8px;
    background:rgba(255,255,255,.9); border-radius:2px; transform:translateX(-50%);
    animation:hero-scroll-wheel 1.8s ease infinite;
}
.hero__scroll-chevron {
    width:9px; height:9px; border-right:2px solid rgba(255,255,255,.8); border-bottom:2px solid rgba(255,255,255,.8);
    transform:rotate(45deg); animation:hero-scroll-bounce 1.8s ease infinite;
}
@keyframes hero-scroll-fade-up {
    from { opacity:0; transform:translateY(40px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes hero-scroll-wheel {
    0% { opacity:1; transform:translate(-50%,0); }
    70% { opacity:0; transform:translate(-50%,14px); }
    100% { opacity:0; transform:translate(-50%,14px); }
}
@keyframes hero-scroll-bounce {
    0%,100% { transform:rotate(45deg) translate(0,0); }
    50% { transform:rotate(45deg) translate(4px,4px); }
}

/* ================================================================
   SUBPAGE HERO  — Our Love Story / Entourage standalone pages
   ================================================================ */
.subpage-hero {
    position:relative; min-height:46vh; padding:140px 24px 60px;
    display:flex; align-items:center; justify-content:center;
    text-align:center; color:var(--royal-dark); overflow:hidden;
    background: var(--dream-gradient);
}
.subpage-hero::before {
    content:""; position:absolute; inset:0; z-index:0;
    background:url("../Pictures/BG/Dreamy_Garden_watercolor.webp") center / cover no-repeat;
    opacity:.22; mix-blend-mode:multiply; pointer-events:none;
}
.subpage-hero__content { position:relative; z-index:2; animation:fadeUp 1.2s ease both; }

/* Subpages (Love Story, Entourage, Discounted Room Rates) never show the nav
   over a photo, so keep it dark/legible against the light gradient at all times. */
body.subpage .nav__logo-img { filter:none; }
body.subpage .nav__links a { color:rgba(122,64,112,0.85); text-shadow:none; }
body.subpage .nav__links a:hover { color:var(--c-pink-d); }
body.subpage .nav__links a.active { color:var(--c-pink-d) !important; }
body.subpage .nav__section-label { color:rgba(122,64,112,0.85); text-shadow:none; }
body.subpage .nav__toggle span { background:var(--royal-dark); box-shadow:none; }
.subpage-hero__eyebrow { letter-spacing:.3em; font-size:.85rem; margin-bottom:14px; color:var(--rose-dark); font-weight:500; text-transform:uppercase; }
.subpage-hero__title {
    font-family:var(--serif); font-size:clamp(2.4rem,6vw,3.6rem); font-weight:600;
    line-height:1.1; margin-bottom:32px; color:var(--royal-dark);
    text-shadow:0 4px 26px rgba(255,255,255,.85);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 36px; font-family:var(--sans); font-size:.78rem;
    letter-spacing:.18em; text-transform:uppercase; font-weight:600;
    text-decoration:none; border:none; border-radius:var(--radius-full);
    cursor:pointer; transition:transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform:translateY(-3px); }
.btn--light { background:var(--white); color:var(--royal-dark); box-shadow:0 10px 30px rgba(0,0,0,.20); }
.btn--light:hover { box-shadow:0 14px 40px rgba(0,0,0,.25); }
.btn--dark { background:linear-gradient(135deg,var(--royal) 0%,var(--royal-dark) 100%); color:var(--white); box-shadow:0 8px 24px rgba(122,64,112,.35); }
.btn--dark:hover { background:linear-gradient(135deg,var(--royal-dark) 0%,#5c2f55 100%); }
.btn--outline { background:transparent; color:var(--royal); border:2px solid var(--royal); padding:12px 30px; }
.btn--outline:hover { background:var(--royal); color:var(--white); }
.btn:disabled { opacity:.75; cursor:default; transform:none !important; }

.spinner {
    display:inline-block; width:16px; height:16px;
    border:2.5px solid rgba(122,64,112,.35); border-top-color:currentColor;
    border-radius:50%; animation:spin .7s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.btn--full { width:100%; justify-content:center; padding:16px; }

/* ================================================================
   COUNTDOWN  — yellow/golden
   ================================================================ */
.countdown {
    background: linear-gradient(135deg, var(--c-yel-bg) 0%, var(--c-vio-bg) 100%);
    padding:56px 24px; text-align:center;
    border-top: 3px solid var(--c-yellow);
    border-bottom: 3px solid var(--c-violet);
}
.countdown__label { font-family:var(--serif); font-style:italic; font-size:1.1rem; color:var(--royal); margin-bottom:28px; }
.countdown__items { display:flex; justify-content:center; gap:clamp(24px,6vw,80px); flex-wrap:wrap; }
.countdown__item { text-align:center; min-width:70px; }
.countdown__item span { display:block; font-family:var(--serif); font-size:clamp(2.4rem,6vw,3.8rem); font-weight:600; color:var(--royal-dark); line-height:1; }
.countdown__item small { text-transform:uppercase; letter-spacing:.2em; font-size:.68rem; color:var(--muted); margin-top:6px; display:block; }

/* ================================================================
   SECTION BASE STYLES
   ================================================================ */
.section { padding:100px 24px; max-width:1160px; margin:0 auto; }
.section__head { text-align:center; margin-bottom:64px; }
.section__eyebrow { letter-spacing:.28em; font-size:.75rem; color:var(--rose-dark); margin-bottom:12px; font-weight:600; text-transform:uppercase; }
.section__title {
    font-family:var(--serif); font-size:clamp(2.2rem,5.5vw,3.4rem); font-weight:600;
    color:var(--royal-dark); position:relative; display:inline-block;
}
.section__title::after { content:"✦"; display:block; font-size:1rem; color:var(--rose); margin:16px auto 0; letter-spacing:.5em; }
.section__sub { font-family:var(--serif); font-style:italic; color:var(--muted); font-size:1.05rem; margin-top:14px; }

/* ================================================================
   IMAGE PLACEHOLDERS
   ================================================================ */
.img-placeholder {
    background: linear-gradient(135deg, var(--c-vio-bg) 0%, var(--rose-light) 100%);
    border:2px dashed var(--rose); border-radius:var(--radius);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; padding:30px 20px; text-align:center; min-height:200px; color:var(--muted); width:100%;
}
.img-placeholder span {
    display:inline-block; width:2.5rem; height:2.5rem; opacity:.7;
    background-color:currentColor;
    -webkit-mask:url("../img/icon-camera.svg") no-repeat center / contain;
            mask:url("../img/icon-camera.svg") no-repeat center / contain;
}
.img-placeholder p { font-family:var(--serif); font-style:italic; font-size:.95rem; }
.img-placeholder small { font-size:.78rem; letter-spacing:.08em; opacity:.8; }
.img-placeholder--mini  { min-height:220px; min-width:190px; border-width:1.5px; border-radius:var(--radius-sm); background:linear-gradient(135deg,var(--c-blue-bg),var(--c-pink-bg)); }
.img-placeholder--photo { min-height:340px; border-radius:var(--radius-sm); }
.img-placeholder--venue { min-height:240px; border-radius:var(--radius) var(--radius) 0 0; border-bottom:none; }
.img-placeholder--attire{ min-height:380px; }
.img-placeholder--qr { min-height:180px; aspect-ratio:1/1; border-radius:var(--radius-sm); }

/* ================================================================
   OUR LOVE STORY  — white bg, colourful chapter tags
   ================================================================ */
.story { background:var(--bg); max-width:none; }

/* Love Story teaser — same treatment as the hero: dream-gradient base with the
   watercolor photo multiply-blended on top, full-bleed edge to edge.
   Both layers use the same full-bleed trick (the section itself is width-
   capped by .section) and fixed attachment so neither leaves blank gutters
   on the sides nor gets stretched thin across this tall section's height. */
.story-teaser { position:relative; }
.story-teaser::before {
    content:"";
    position:absolute;
    top:0; bottom:0;
    left:50%;
    width:100vw;
    margin-left:-50vw;
    background: var(--dream-gradient);
    z-index:-1;
    pointer-events:none;
}
.story-teaser::after {
    content:"";
    position:absolute;
    top:0; bottom:0;
    left:50%;
    width:100vw;
    margin-left:-50vw;
    /* Scroll attachment (not fixed) avoids the zoom/jump glitch in mobile in-app browsers. */
    background:url('../Pictures/BG/Dreamy_Garden_watercolor.webp') center center / cover no-repeat scroll;
    opacity:.15; mix-blend-mode:multiply;
    z-index:-1;
    pointer-events:none;
}
.story-teaser > * { position:relative; z-index:1; }
.story-teaser .section__sub { color:var(--royal-dark); }
.story .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.story .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.story__timeline { max-width:1160px; margin-left:auto; margin-right:auto; }
.story__timeline { display:flex; flex-direction:column; gap:80px; }
.story__chapter {
    display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.story__chapter--reverse .story__chapter-album { order:2; }
.story__chapter--reverse .story__chapter-body  { order:1; }

/* Mini scroll album inside each chapter */
.story__chapter-album {
    overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
    scrollbar-width:thin; scrollbar-color:var(--rose) var(--c-pink-bg);
    border-radius:var(--radius); padding-bottom:12px;
    box-shadow:var(--shadow);
}
.story__chapter-album::-webkit-scrollbar { height:5px; }
.story__chapter-album::-webkit-scrollbar-track { background:var(--c-pink-bg); border-radius:3px; }
.story__chapter-album::-webkit-scrollbar-thumb { background:var(--rose); border-radius:3px; }
.story__album-track { display:flex; gap:10px; padding:0; width:max-content; }
.story__album-photo { flex:0 0 190px; scroll-snap-align:start; border-radius:var(--radius-sm); overflow:hidden; }
.story__album-photo img { width:100%; aspect-ratio:2/3; object-fit:cover; display:block; }
/* Snap the LAST photo to the end (not start) so scrolling all the way through
   lands it flush against the album's right edge instead of the browser
   reserving extra scrollable space to let it snap flush against the left. */
.story__album-photo:last-child { scroll-snap-align:end; }
/* Variant for chapters with only a couple of photos: no horizontal scroll/scrollbar,
   photos wrap and center within the available width instead. */
.story__chapter-album--no-scroll { overflow:visible; }
.story__chapter-album--no-scroll .story__album-track {
    width:100%; flex-wrap:wrap; justify-content:center;
}

/* Chapter tag colour variants */
.story__chapter-tag {
    display:inline-block; font-size:.68rem; font-weight:700;
    letter-spacing:.2em; text-transform:uppercase; color:var(--white);
    padding:5px 16px; border-radius:var(--radius-full); margin-bottom:14px;
}
.story__chapter-tag--1 { background:linear-gradient(135deg,#f4a8c8,#d04080); }
.story__chapter-tag--2 { background:linear-gradient(135deg,#90c0f0,#3070c0); }
.story__chapter-tag--3 { background:linear-gradient(135deg,#80d4a8,#20a060); }
.story__chapter-tag--4 { background:linear-gradient(135deg,#f0d870,#c09020); color:#3a2000; }
.story__chapter-tag--5 { background:linear-gradient(135deg,#ff9ab0,#c2185b); }
.story__chapter-tag--6 { background:linear-gradient(135deg,#f0b080,#c05020); }
.story__chapter-tag--7 { background:linear-gradient(135deg,#b898e8,#5030b0); }
.story__chapter-tag--8 { background:linear-gradient(135deg,#f4a8c8,#d04080); }

.story__chapter-body { padding:10px 0; }
.story__chapter-body h3 { font-family:var(--serif); font-size:1.65rem; color:var(--royal-dark); margin-bottom:14px; line-height:1.3; }
.story__chapter-body p { color:var(--muted); font-size:.97rem; line-height:1.8; }
.story__quote { margin:18px 0 0; padding:14px 20px; border-left:3px solid var(--c-blue); background:var(--c-blue-bg); border-radius:0 var(--radius-sm) var(--radius-sm) 0; font-family:var(--sans); font-size:.97rem; font-style:italic; color:var(--c-blue-d); line-height:1.8; }
.story__quote cite { display:block; margin-top:8px; font-family:var(--sans); font-style:normal; font-size:.82rem; color:var(--c-blue-d); opacity:.8; }

/* ================================================================
   OUR LOVE STORY / ENTOURAGE — teaser sections on the main page
   ================================================================ */
.story-teaser__couple {
    display:flex; justify-content:center; gap:40px; flex-wrap:wrap; max-width:640px; margin:0 auto;
}
.story-teaser__person { flex:1 1 220px; max-width:260px; text-align:center; }
.story-teaser__photo {
    display:block; width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:var(--radius-sm);
    box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.story-teaser__photo--groom { object-position:50% 10%; }
.story-teaser__photo--bride { object-position:50% 8%; }
.story-teaser__name {
    font-family:var(--serif); font-size:1.15rem; font-weight:700; color:var(--royal-dark); margin-top:16px; line-height:1.4;
}
.story-teaser__cta, .entourage-teaser__cta { text-align:center; margin-top:48px; }
.entourage-teaser__photo { max-width:900px; margin:0 auto; }
.entourage-teaser__img { width:100%; height:auto; display:block; border-radius:var(--radius-sm); }

/* ================================================================
   SAVE THE DATE  — blue bg
   ================================================================ */
.savethedate {
    background:linear-gradient(135deg,var(--c-blue-bg) 0%,var(--c-vio-bg) 100%);
    max-width:none; padding:100px 24px;
    border-top:3px solid var(--c-blue);
}
.savethedate .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.savethedate__video-wrap { max-width:820px; margin:0 auto 56px; }
.savethedate__frame {
    position:relative; width:100%; padding-top:56.25%;
    border-radius:var(--radius); overflow:hidden;
    box-shadow:var(--shadow); border:2px solid var(--c-blue);
    background:linear-gradient(135deg,var(--royal-dark),var(--midnight));
}
.savethedate__frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.savethedate__placeholder {
    position:absolute; inset:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    color:var(--white); gap:12px; padding:24px; text-align:center;
}
.savethedate__play {
    width:80px; height:80px; border-radius:50%;
    background:rgba(255,255,255,.12); border:2px solid var(--c-blue);
    display:flex; align-items:center; justify-content:center;
    font-size:1.6rem; color:var(--white); margin-bottom:10px;
}
.savethedate__placeholder p { font-family:var(--serif); font-size:1.2rem; font-style:italic; }
.savethedate__placeholder span { font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--c-blue); opacity:.85; }
.savethedate__card {
    max-width:640px; margin:0 auto;
    background:var(--white); border-radius:var(--radius);
    box-shadow:var(--shadow); border:2px solid var(--c-blue);
    display:flex; align-items:center; gap:40px; padding:40px 48px; overflow:hidden;
}
.savethedate__date-badge {
    display:flex; flex-direction:column; align-items:center; text-align:center;
    flex-shrink:0; border-right:2px solid var(--c-blue); padding-right:40px; min-width:100px;
}
.savethedate__month { font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.savethedate__day { font-family:var(--serif); font-size:3.6rem; font-weight:600; color:var(--c-blue-d); line-height:1; margin:4px 0; }
.savethedate__year { font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.savethedate__weekday { font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-top:6px; }
.savethedate__info { display:flex; flex-direction:column; gap:10px; }
.savethedate__couple { font-family:var(--script); font-size:2.2rem; color:var(--royal-dark); line-height:1; }
.savethedate__info p:not(.savethedate__couple) { color:var(--muted); font-size:.9rem; }

/* ================================================================
   PRENUP ALBUM  — pink bg
   ================================================================ */
.prenup { background:var(--c-pink-bg); border-top:3px solid var(--c-pink); max-width:none; }
.prenup .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.prenup__gallery-wrap {
    max-width:1060px; margin:0 auto;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
}
.prenup__scroll-wrap {
    overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
    scrollbar-width:thin; scrollbar-color:var(--c-pink) var(--rose-light);
    padding:8px 16px 20px;
}
.prenup__scroll-wrap::-webkit-scrollbar { height:6px; }
.prenup__scroll-wrap::-webkit-scrollbar-track { background:var(--rose-light); border-radius:3px; }
.prenup__scroll-wrap::-webkit-scrollbar-thumb { background:var(--c-pink); border-radius:3px; }
.prenup__track { display:flex; gap:20px; padding:10px 0; width:max-content; }
.prenup__photo { flex:0 0 280px; scroll-snap-align:start; border-radius:var(--radius-sm); overflow:hidden; box-shadow:var(--shadow-card); transition:transform .3s; }
.prenup__photo:hover { transform:translateY(-6px); }
.prenup__photo img { width:100%; aspect-ratio:2/3; object-fit:cover; display:block; }

/* ================================================================
   VENUE  — green bg
   ================================================================ */
.venue {
    background:linear-gradient(135deg,var(--c-grn-bg) 0%,var(--c-blue-bg) 100%);
    max-width:none; padding:100px 24px;
    border-top:3px solid var(--c-green);
}
.venue .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.venue__grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:40px; max-width:1000px; margin:0 auto; }
.venue__card { background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow); border:2px solid var(--c-green); overflow:hidden; transition:transform .3s; }
.venue__card:hover { transform:translateY(-6px); }
.venue__img img { width:100%; height:240px; object-fit:cover; display:block; }
.venue__body { padding:32px 30px 36px; display:flex; flex-direction:column; gap:12px; }
.venue__badge { display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; padding:5px 16px; border-radius:var(--radius-full); width:fit-content; margin-bottom:4px; }
.venue__badge--ceremony { background:rgba(244,168,200,.3); color:var(--c-pink-d); }
.venue__badge--reception { background:rgba(128,212,168,.3); color:var(--c-grn-d); }
.venue__body h3 { font-family:var(--serif); font-size:1.5rem; color:var(--royal-dark); line-height:1.3; }
.venue__time { font-size:.9rem; font-weight:700; color:var(--c-grn-d); letter-spacing:.05em; }
.venue__body p:not(.venue__time) { color:var(--muted); font-size:.92rem; }
.venue__btns { display:flex; flex-direction:column; gap:10px; margin-top:4px; }

/* Shuttle info box */
/* Location note — matches .section__sub style */
.venue__location-note {
    font-family:var(--serif); font-style:italic; color:var(--muted);
    font-size:1.05rem; margin-top:14px; display:block; text-align:center;
}
.venue__note-shuttle { display:block; margin-top:6px; }

/* ================================================================
   ATTIRE GUIDE  — orange bg
   ================================================================ */
.attire { background:var(--c-orn-bg); border-top:3px solid var(--c-orange); max-width:none; }
.attire .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.attire__wrap { max-width:1160px; margin-left:auto; margin-right:auto; }
.attire__wrap { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.attire__img { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.attire__guide-img { width:100%; object-fit:contain; display:block; }
.attire__body { display:flex; flex-direction:column; gap:16px; }
.attire__body h3 { font-family:var(--serif); font-size:2rem; color:var(--royal-dark); margin-bottom:4px; }
.attire__body p { color:var(--muted); font-size:.97rem; line-height:1.8; }
.attire__note { font-size:.9rem !important; background:var(--white); border-left:3px solid var(--c-orange); border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:10px 16px; color:var(--ink) !important; }

/* ================================================================
   PROGRAM SCHEDULE  — yellow bg
   ================================================================ */
.program {
    background:linear-gradient(135deg,var(--c-yel-bg) 0%,var(--c-orn-bg) 100%);
    max-width:none; padding:100px 24px;
    border-top:3px solid var(--c-yellow);
}
.program .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.program__timeline { position:relative; max-width:700px; margin:0 auto; padding-left:34px; }
.program__timeline::before {
    content:""; position:absolute; left:30px; top:30px; bottom:30px; width:2px;
    background:linear-gradient(to bottom,var(--c-pink),var(--c-blue),var(--c-green),var(--c-yellow),var(--c-orange),var(--c-violet));
}
.program__item { position:relative; display:grid; grid-template-columns:64px 1fr; gap:22px; align-items:start; margin-bottom:36px; }
.program__item:last-child { margin-bottom:0; }
.program__dot {
    position:relative; width:64px; height:64px; border-radius:50%;
    background:var(--white); display:flex; align-items:center; justify-content:center;
    font-size:1.6rem; box-shadow:var(--shadow-card); z-index:1; flex-shrink:0;
}
/* Rainbow dot borders */
.program__item:nth-child(1) .program__dot { border:2px solid var(--c-pink);   color:var(--c-pink-d);  }
.program__item:nth-child(2) .program__dot { border:2px solid var(--c-violet);  color:var(--c-vio-d);  }
.program__item:nth-child(3) .program__dot { border:2px solid var(--c-blue);    color:var(--c-blue-d); }
.program__item:nth-child(4) .program__dot { border:2px solid var(--c-orange);  color:var(--c-orn-d);  }
.program__item:nth-child(5) .program__dot { border:2px solid var(--c-green);   color:var(--c-grn-d);  }
.program__item:nth-child(6) .program__dot { border:2px solid var(--c-yellow);  color:var(--c-yel-d);  }

.program__body { background:var(--white); border:1px solid #f0e8d8; border-radius:var(--radius-sm); padding:18px 24px; box-shadow:var(--shadow-sm); }
.program__time {
    display:inline-block; font-size:.68rem; font-weight:700;
    letter-spacing:.15em; text-transform:uppercase; padding:4px 14px;
    border-radius:var(--radius-full); margin-bottom:10px;
}
.program__item:nth-child(1) .program__time { background:rgba(244,168,200,.25); color:var(--c-pink-d); }
.program__item:nth-child(2) .program__time { background:rgba(184,152,232,.25); color:var(--c-vio-d); }
.program__item:nth-child(3) .program__time { background:rgba(144,192,240,.25); color:var(--c-blue-d); }
.program__item:nth-child(4) .program__time { background:rgba(240,176,128,.25); color:var(--c-orn-d); }
.program__item:nth-child(5) .program__time { background:rgba(128,212,168,.25); color:var(--c-grn-d); }
.program__item:nth-child(6) .program__time { background:rgba(240,216,112,.25); color:var(--c-yel-d); }

.program__body h3 { font-family:var(--serif); color:var(--royal-dark); font-size:1.25rem; margin-bottom:4px; }
.program__body p { color:var(--muted); font-size:.9rem; }

/* ================================================================
   ENTOURAGE  — violet bg
   ================================================================ */
.entourage, .entourage-teaser { background:var(--c-vio-bg); border-top:3px solid var(--c-violet); max-width:none; padding:100px 24px; }
.entourage .section__head, .entourage-teaser .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.entourage__grid { max-width:1160px; margin-left:auto; margin-right:auto; }
.entourage__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:24px; }
.entourage__group {
    background:var(--white); border:1px solid var(--line);
    border-radius:var(--radius); padding:28px 24px;
    box-shadow:var(--shadow-card); display:flex; flex-direction:column; gap:10px;
    transition:transform .3s; border-left-width:4px;
}
.entourage__group:hover { transform:translateY(-4px); }
.entourage__group--wide { grid-column:1/-1; }
.entourage__group--featured {
    background:linear-gradient(135deg,var(--c-vio-bg) 0%,var(--rose-light) 100%);
    text-align:center; align-items:center;
}

/* Colour coding per category */
.entourage__group--pink   { border-left-color:var(--c-pink);   }

/* Center-row: MoH+BM, Bridesmaids+Groomsmen, Banner+Flowers */
.entourage__center-row {
    grid-column:1/-1;
    display:flex; justify-content:center; align-items:stretch; gap:24px; flex-wrap:wrap;
}
.entourage__center-row .entourage__group {
    flex:0 0 280px; max-width:280px;
}

/* Bearer icons inside three-col */
.entourage__bearer { text-align:center; }
.entourage__bearer-icon { font-size:1.8rem; margin-bottom:8px; display:flex; justify-content:center; color:var(--c-orn-d); }

/* Secondary sponsor icons (above Veil / Candle / Cord headings) */
.entourage__three-col--icons > div { text-align:center; }
.entourage__sponsor-icon { font-size:2rem; margin-bottom:6px; display:flex; justify-content:center; color:var(--c-blue-d); }
.entourage__group--gold   { border-left-color:var(--gold); background:linear-gradient(135deg,#fffcee,var(--white)); }
.entourage__group--violet { border-left-color:var(--c-violet); }
.entourage__group--blue   { border-left-color:var(--c-blue);   }
.entourage__group--green  { border-left-color:var(--c-green);  }
.entourage__group--orange { border-left-color:var(--c-orange); }

.entourage__group-icon { font-size:2rem; margin-bottom:4px; text-align:center; display:flex; justify-content:center; color:var(--royal-dark); }
.entourage__group--pink   .entourage__group-icon { color:var(--c-pink-d);  }
.entourage__group--gold   .entourage__group-icon { color:var(--gold-dark); }
.entourage__group--violet .entourage__group-icon { color:var(--c-vio-d);   }
.entourage__group--green  .entourage__group-icon { color:var(--c-grn-d);   }
.entourage__group--orange .entourage__group-icon { color:var(--c-orn-d);   }
.entourage__group-title { font-family:var(--serif); font-size:1.2rem; color:var(--royal-dark); margin-bottom:8px; text-align:center; }
.entourage__subgroup { border-top:1px solid var(--line); padding-top:12px; margin-top:4px; }
.entourage__sublabel { font-size:.68rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--rose-dark); margin-bottom:8px; }
.entourage__group p:not(.entourage__sublabel):not(.entourage__featured-name) { color:var(--muted); font-size:.9rem; padding:3px 0; }
.entourage__featured-name { color:var(--muted); font-size:.9rem; padding:3px 0; line-height:1.2; }
.entourage__two-col   { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:4px; }
.entourage__three-col { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:4px; }

/* Parents block: explicit placement so DOM order can differ from visual desktop columns */
.entourage__col--bride-parents     { grid-column:1; grid-row:1; }
.entourage__col--bride-step        { grid-column:1; grid-row:2; }
.entourage__col--groom-parents     { grid-column:2; grid-row:1; }
.entourage__col--groom-grandfather { grid-column:2; grid-row:2; }
.entourage__two-col p, .entourage__three-col p { color:var(--muted); font-size:.9rem; padding:3px 0; }

/* Circular photo placeholder above each entourage member's name */
.entourage__group p:not(.entourage__sublabel):not(.entourage__featured-name),
.entourage__featured-name {
    display:flex; flex-direction:column; align-items:center; gap:8px;
    text-align:center;
}
.entourage__group p:not(.entourage__sublabel):not(.entourage__featured-name)::before,
.entourage__featured-name::before {
    content:"";
    width:88px; height:88px;
    border-radius:50%;
    background:var(--white) url("../img/avatar-placeholder.svg") center/62% no-repeat;
    background-color:var(--c-vio-bg);
    border:2px solid var(--line);
    box-shadow:var(--shadow-card);
    flex-shrink:0;
}
.entourage__featured-name::before { width:120px; height:120px; }
.entourage__group p.has-photo::before,
.entourage__featured-name.has-photo::before {
    background-image:var(--photo) !important; background-size:cover !important; background-position:center !important;
}

/* ================================================================
   REMINDERS  — individual rainbow cards
   ================================================================ */
.reminders {
    background:linear-gradient(135deg,var(--c-grn-bg) 0%,var(--c-blue-bg) 50%,var(--c-pink-bg) 100%);
    max-width:none; padding:100px 24px;
    border-top:3px solid var(--c-green);
}
.reminders .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.reminders__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; max-width:1160px; margin:0 auto; }
.reminders__card {
    background:var(--white); border:1px solid var(--line);
    border-radius:var(--radius); padding:36px 28px;
    box-shadow:var(--shadow-card); text-align:center;
    transition:transform .3s; border-top-width:5px;
}
.reminders__card:hover { transform:translateY(-5px); }
.reminders__card--violet { border-top-color:var(--c-violet); }
.reminders__card--blue   { border-top-color:var(--c-blue);   }
.reminders__card--yellow { border-top-color:var(--c-yellow);  }
.reminders__card--green  { border-top-color:var(--c-green);   }
.reminders__card--orange { border-top-color:var(--c-orange);  }
.reminders__card--pink   { border-top-color:var(--c-pink);    }
.reminders__icon { font-size:2.4rem; margin-bottom:14px; display:flex; justify-content:center; }
.reminders__card--blue   .reminders__icon { color:var(--c-blue-d);  }
.reminders__card--yellow .reminders__icon { color:var(--c-yel-d);   }
.reminders__card--green  .reminders__icon { color:var(--c-grn-d);   }
.reminders__card--violet .reminders__icon { color:var(--c-vio-d);   }
.reminders__card--orange .reminders__icon { color:var(--c-orn-d);   }
.reminders__card--pink   .reminders__icon { color:var(--c-pink-d);  }
.reminders__card h3 { font-family:var(--serif); font-size:1.2rem; color:var(--royal-dark); margin-bottom:12px; }
.reminders__card p { color:var(--muted); font-size:.9rem; line-height:1.75; }
.reminders__card strong { color:var(--royal-dark); }
.reminders__gift-btn { margin-top:18px; }

/* ================================================================
   MESSAGES FOR THE COUPLE
   ================================================================ */
.messages {
    background-color:#fdeceb;
    background-image:
        linear-gradient(135deg, rgba(253,236,235,.92) 0%, rgba(250,214,212,.92) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath fill='%23c0324f' fill-opacity='0.12' d='M22 15c-4.4 0-8 3.6-8 8 0 6.2 6 11.4 12.3 16.5.5.4 1.2.4 1.7 0C34.3 34.4 40 29.2 40 23c0-4.4-3.6-8-8-8-2.4 0-4.6 1.1-6 2.9-1.4-1.8-3.6-2.9-6-2.9Z'/%3E%3Cpath fill='%23c0324f' fill-opacity='0.09' d='M66 48c-3.3 0-6 2.7-6 6 0 4.6 4.5 8.5 9.2 12.3.4.3.9.3 1.3 0C75.2 62.5 79.7 58.6 79.7 54c0-3.3-2.7-6-6-6-1.8 0-3.4.8-4.5 2.2-1.1-1.4-2.7-2.2-4.5-2.2Z'/%3E%3C/svg%3E");
    background-repeat:no-repeat, repeat;
    background-size:cover, 90px 90px;
    border-top:3px solid var(--c-pink-d); max-width:none;
}
.messages .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.messages__wall {
    max-width:720px; margin:0 auto;
    max-height:560px; overflow-y:auto;
    display:flex; flex-direction:column;
    padding:26px; background:rgba(255,255,255,.92);
    border:2px solid var(--c-pink-d); border-radius:var(--radius);
    box-shadow:var(--shadow); scroll-behavior:smooth;
}
/* Soft scrollbar to match the palette */
.messages__wall { scrollbar-width:thin; scrollbar-color:var(--c-pink-d) transparent; }
.messages__wall::-webkit-scrollbar { width:8px; }
.messages__wall::-webkit-scrollbar-thumb { background:var(--c-pink-d); border-radius:8px; }
.messages__wall::-webkit-scrollbar-track { background:transparent; }
.messages__empty {
    text-align:center; color:var(--muted);
    font-family:var(--serif); font-style:italic; font-size:1.05rem;
    padding:28px 0; display:flex; align-items:center; justify-content:center; gap:8px;
}
.messages__card {
    padding:18px 4px; margin:0;
    border-bottom:1px solid var(--line);
}
.messages__card:last-child { border-bottom:none; }
.messages__name { font-family:var(--sans); font-size:.85rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--rose-dark); line-height:1.1; margin-bottom:8px; }
.messages__text {
    font-family:var(--sans); font-style:normal; font-size:.95rem; line-height:1.7;
    color:var(--ink); margin:0;
}

/* ================================================================
   RSVP
   ================================================================ */
.rsvp { background:var(--bg); border-top:3px solid var(--c-pink); max-width:none; }
.rsvp .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.rsvp__deadline { font-family:var(--serif); font-style:italic; font-size:1.1rem; color:var(--muted); margin-top:10px; }
.rsvp__form { max-width:620px; margin:0 auto; background:var(--white); padding:48px 50px; border-radius:var(--radius); box-shadow:var(--shadow); border:2px solid var(--c-pink); }
.form__row { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.form__group { margin-bottom:22px; display:flex; flex-direction:column; }
.form__group label { font-size:.72rem; letter-spacing:.15em; text-transform:uppercase; font-weight:700; margin-bottom:8px; color:var(--ink); }
.form__group label span { color:var(--rose-dark); }
.form__group input,
.form__group select,
.form__group textarea {
    font-family:var(--sans); font-size:.95rem; padding:13px 16px;
    border:1.5px solid var(--line); border-radius:var(--radius-sm);
    background:var(--bg); color:var(--ink); transition:border-color .25s, box-shadow .25s; resize:vertical;
}
.form__group input::placeholder, .form__group textarea::placeholder { color:var(--muted); opacity:.7; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
    outline:none; border-color:var(--c-pink); box-shadow:0 0 0 3px rgba(244,168,200,.2);
}
.rsvp__note {
    margin-top:18px; font-size:.82rem; color:var(--muted); font-style:italic;
    background:var(--c-yel-bg); border-left:3px solid var(--c-yellow);
    border-radius:0 var(--radius-sm) var(--radius-sm) 0; padding:12px 16px;
    line-height:1.6;
}
.rsvp__note strong { color:var(--ink); }
.form__hint { margin-top:8px; font-size:.8rem; color:var(--muted); font-style:italic; line-height:1.5; }
.form__hint a { color:var(--rose-dark); font-weight:600; font-style:normal; text-decoration:underline; }
.form__status { text-align:center; margin-top:18px; font-size:.92rem; min-height:1.2em; font-weight:500; }
.form__status.success { color:#2e7d32; }
.form__status.error   { color:#c0392b; }

/* ================================================================
   RSVP SUCCESS MODAL
   ================================================================ */
body.modal-open { overflow:hidden; }
.rsvp-modal {
    position:fixed; inset:0; z-index:9998;
    display:flex; align-items:center; justify-content:center;
    padding:24px; overflow-y:auto;
}
.rsvp-modal[hidden] { display:none; }
.rsvp-modal__backdrop {
    position:fixed; inset:0;
    background:rgba(43,20,40,.55);
    opacity:0; transition:opacity .25s ease;
}
.rsvp-modal__box {
    position:relative; z-index:1;
    background:var(--white); border-radius:var(--radius);
    border:2px solid var(--c-pink); box-shadow:0 24px 60px rgba(0,0,0,.25);
    max-width:400px; width:100%; padding:44px 36px;
    margin:auto;
    text-align:center;
    opacity:0; transform:translateY(16px) scale(.97);
    transition:opacity .3s ease, transform .3s ease;
}
.rsvp-modal.is-visible .rsvp-modal__backdrop { opacity:1; }
.rsvp-modal.is-visible .rsvp-modal__box { opacity:1; transform:translateY(0) scale(1); }
.rsvp-modal__icon { font-size:2.2rem; color:var(--rose-dark); margin-bottom:14px; }
.rsvp-modal__title { font-family:var(--serif); font-size:1.6rem; color:var(--royal-dark); margin-bottom:8px; }
.rsvp-modal__text { color:var(--muted); font-size:.98rem; margin-bottom:26px; }
.rsvp-modal__close { min-width:140px; }
.gift-modal .rsvp-modal__box { max-width:560px; }
.gift-modal__qrs { display:flex; flex-wrap:wrap; gap:18px; justify-content:center; margin-bottom:28px; }
.gift-modal__qrs .img-placeholder { flex:1 1 200px; max-width:200px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    position:relative; overflow:hidden;
    text-align:center; padding:72px 24px;
    color:var(--white); display:flex; flex-direction:column; align-items:center; gap:12px;
    border-top:3px solid var(--c-violet);
}
.footer::before {
    content:""; position:absolute; inset:0; z-index:0;
    background:url("../Pictures/BG/Dreamy_Garden_watercolor.webp") center / cover no-repeat;
    opacity:.5;
}
.footer::after {
    content:""; position:absolute; inset:0; z-index:1;
    /* Translucent so the 50%-opacity floral layer beneath still reads through. */
    background: linear-gradient(135deg, rgba(72,48,160,.82) 0%, rgba(122,64,112,.82) 100%);
}
.footer > * { position:relative; z-index:2; }
.footer__flowers { font-size:1.2rem; letter-spacing:.5em; opacity:.7; }
.footer__names { font-family:var(--script); font-size:3.2rem; color:var(--white); line-height:1; }
.footer__date { letter-spacing:.22em; font-size:.78rem; text-transform:uppercase; color:rgba(255,255,255,.8); }
/* Hashtags — match hero eyebrow style ("You are invited!") */
.footer__hashtags { font-family:var(--sans); font-size:.82rem; font-weight:500; color:var(--rose-light); letter-spacing:.28em; opacity:.95; }
.footer__quote { font-family:var(--sans); font-size:.82rem; letter-spacing:.15em; color:rgba(255,255,255,.8); margin-top:2px; display:flex; align-items:center; justify-content:center; gap:8px; }
.footer__pokeball { height:1em; width:auto; object-fit:contain; vertical-align:middle; display:inline-block; }
.subpage-footer__back { margin-bottom:14px; }

/* ================================================================
   HOTEL DISCOUNTED ROOM RATES  — subpage
   ================================================================ */
.rates-terms      { background:var(--bg); }
.rates-table-section { background:var(--c-blue-bg); border-top:3px solid var(--c-blue); max-width:none; }
.rates-table-section .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.rates-inclusions { background:var(--c-grn-bg); border-top:3px solid var(--c-green); max-width:none; }
.rates-inclusions .section__head { max-width:1160px; margin-left:auto; margin-right:auto; }
.rates-booking     { background:var(--bg); }

.rates-list {
    list-style:none; max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:16px;
}
.rates-list li {
    display:flex; align-items:flex-start; gap:14px;
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm);
    padding:16px 20px; font-size:.95rem; color:var(--ink); line-height:1.7; box-shadow:var(--shadow-sm);
}
.rates-list li .icon { flex-shrink:0; margin-top:4px; font-size:1.15rem; color:var(--royal); }
.rates-list li strong { color:var(--royal-dark); }
.rates-list--compact { max-width:520px; margin-top:18px; gap:10px; }
.rates-list--compact li { padding:10px 18px; font-size:.9rem; }

.rates-table__wrap { max-width:820px; margin:0 auto; overflow-x:auto; border-radius:var(--radius); box-shadow:var(--shadow-card); }
.rates-table { width:100%; border-collapse:collapse; background:var(--white); font-size:.92rem; }
.rates-table thead th {
    background:linear-gradient(135deg,var(--royal) 0%,var(--royal-dark) 100%); color:var(--white);
    text-align:left; padding:16px 24px; font-family:var(--serif); font-weight:600; letter-spacing:.04em;
}
.rates-table thead th:last-child, .rates-table tbody td:last-child { text-align:right; }
.rates-table tbody td { padding:14px 24px; border-bottom:1px solid var(--line); color:var(--ink); }
.rates-table tbody tr:last-child td { border-bottom:none; }
.rates-table tbody tr:nth-child(even) { background:var(--c-blue-bg); }
.rates-table tbody td:last-child { font-weight:700; color:var(--royal-dark); }
.rates-table thead th:nth-child(2), .rates-table tbody td.rates-table__original { text-align:right; }
.rates-table__original { color:var(--muted); text-decoration:line-through; }

.rates-contact-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:26px; max-width:1000px; margin:0 auto; }
.rates-contact-card {
    background:var(--white); border:1px solid var(--line); border-top-width:5px;
    border-radius:var(--radius); padding:32px 26px; text-align:center;
    box-shadow:var(--shadow-card); transition:transform .3s;
}
.rates-contact-card:hover { transform:translateY(-5px); }
.rates-contact-card--pink  { border-top-color:var(--c-pink); }
.rates-contact-card--blue  { border-top-color:var(--c-blue); }
.rates-contact-card--green { border-top-color:var(--c-green); }
.rates-contact-card--orange { border-top-color:var(--c-orange); }
.rates-contact-icon { font-size:2.2rem; margin-bottom:14px; display:flex; justify-content:center; color:var(--royal); }
.rates-contact-card h3 { font-family:var(--serif); font-size:1.15rem; color:var(--royal-dark); margin-bottom:12px; }
.rates-contact-card p { color:var(--muted); font-size:.9rem; line-height:1.6; margin-top:4px; }
.rates-contact-card a { color:var(--royal); text-decoration:none; word-break:break-word; }
.rates-contact-card a:hover { text-decoration:underline; }
.rates-booking__note { max-width:620px; margin:44px auto 0; text-align:center; }
.rates-booking__note h3 { font-family:var(--serif); font-size:1.1rem; color:var(--royal-dark); margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:8px; }
.rates-booking__note p { color:var(--muted); font-size:.95rem; line-height:1.7; }
.rates-booking__note strong { color:var(--ink); }

/* ================================================================
   REVEAL ANIMATIONS  — subtle blur-to-focus fade + rise
   Fires once, the first time an element scrolls into view
   (IntersectionObserver + unobserve), on every device.
   --reveal-order is set in JS so grouped elements cascade in.
   ================================================================ */
.reveal {
    opacity:0; transform:translateY(26px);
    filter:blur(4px);
    transition:opacity .7s cubic-bezier(.22,.61,.36,1),
               transform .7s cubic-bezier(.22,.61,.36,1),
               filter .7s cubic-bezier(.22,.61,.36,1);
    transition-delay:calc(var(--reveal-order, 0) * 90ms);
}
.reveal.visible { opacity:1; transform:translateY(0); filter:blur(0); }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes twinkle { 0%{opacity:.4} 50%{opacity:.9} 100%{opacity:.5} }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes softPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.14)} }

/* ================================================================
   ENHANCED INTERACTIONS
   Extra hover effects are guarded by (hover:hover) so touch
   devices never get "stuck" hover states — mobile keeps the
   scroll-reveal animations, laptops/desktops get hover polish.
   ================================================================ */

/* Reveal: add a gentle scale for a softer entrance (all devices) */
.reveal { will-change:opacity, transform; }
.reveal--fade { transform:translateY(0) scale(.96); }

/* Subtle looping motion on decorative accents (all devices) */
.section__title::after { animation:softPulse 3.2s ease-in-out infinite; }

/* Smooth transition defaults for interactive elements */
.reminders__icon,
.entourage__group-icon,
.venue__badge,
.countdown__item span,
.btn .icon,
.nav__logo-img {
    transition:transform .35s cubic-bezier(.34,1.56,.64,1);
}

@media (hover:hover) and (pointer:fine) {
    /* Card lift + soft glow */
    .venue__card:hover   { transform:translateY(-8px) scale(1.01); box-shadow:0 22px 52px rgba(60,20,70,.18); }
    .reminders__card:hover { transform:translateY(-7px); box-shadow:0 20px 48px rgba(60,20,70,.16); }
    .entourage__group:hover { box-shadow:0 18px 42px rgba(60,20,70,.15); }
    .prenup__photo:hover { transform:translateY(-8px) scale(1.02); box-shadow:0 18px 40px rgba(60,20,70,.20); }

    /* Icon pop when hovering its card */
    .reminders__card:hover .reminders__icon,
    .entourage__group:hover .entourage__group-icon { transform:scale(1.18) translateY(-2px); }

    /* Animated underline for nav links */
    .nav__links a { position:relative; }
    .nav__links a::after {
        content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
        background:currentColor; border-radius:2px;
        transform:scaleX(0); transform-origin:center; transition:transform .3s ease;
    }
    .nav__links a:hover::after { transform:scaleX(1); }

    /* Button icon gently grows on hover */
    .btn:hover .icon { transform:scale(1.18); }

    /* Logo subtle pop */
    .nav__logo-img:hover { transform:scale(1.06); }
}

/* Touch devices: no hover, so give a subtle press-in response on tap.
   This keeps cards/buttons feeling interactive on mobile. */
@media (hover:none) {
    .venue__card, .reminders__card, .entourage__group,
    .prenup__photo, .btn {
        transition:transform .2s ease, box-shadow .2s ease;
    }
    .venue__card:active, .reminders__card:active,
    .entourage__group:active, .prenup__photo:active {
        transform:scale(.98);
        box-shadow:0 10px 28px rgba(60,20,70,.14);
    }
    .btn:active { transform:scale(.96); }
    .nav__links a:active { color:var(--c-pink); }
}

/* Respect users who prefer reduced motion — disable all animation */
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
    .reveal { opacity:1 !important; transform:none !important; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:900px) {
    .story__chapter { grid-template-columns:1fr; gap:30px; }
    /* On mobile, always show the chapter text before its photo album, regardless of reverse variant. */
    .story__chapter-body  { order:1; }
    .story__chapter-album { order:2; }
    .attire__wrap { grid-template-columns:1fr; gap:36px; }
    .savethedate__card { flex-direction:column; text-align:center; gap:24px; padding:36px 28px; }
    .savethedate__date-badge { border-right:none; border-bottom:2px solid var(--c-blue); padding-right:0; padding-bottom:24px; min-width:auto; }
    .rates-contact-grid { grid-template-columns:1fr; }
}

@media (max-width:680px) {
    .nav { padding:12px 18px; }
    .nav.scrolled { padding:10px 18px; }
    .nav__section-label { font-size:0.6rem; max-width:120px; overflow:hidden; text-overflow:ellipsis; }
    .nav__toggle { display:flex; z-index:101; }
    .nav__links {
        position:fixed; inset:0; height:100vh; height:100dvh; background:rgba(254,249,251,.98);
        backdrop-filter:blur(12px); flex-direction:column; align-items:center;
        justify-content:center; gap:22px; transform:translateX(100%); transition:transform .4s ease;
        overflow-y:auto; -webkit-overflow-scrolling:touch; padding:80px 20px 40px;
    }
    .nav__links.open { transform:translateX(0); }
    .nav__links a { color:var(--ink) !important; font-size:.9rem; }

    .nav__toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
    .nav__toggle.open span:nth-child(2) { opacity:0; }
    .nav__toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
    .nav__toggle.open span { background:var(--ink); }
    body.nav-open { position:fixed; left:0; right:0; overflow:hidden; }
    .section { padding:72px 18px; }
    .form__row { grid-template-columns:1fr; gap:0; }
    .rsvp__form { padding:30px 22px; }
    .story__timeline { gap:48px; }
    .program__item { grid-template-columns:52px 1fr; gap:14px; }
    .program__dot  { width:52px; height:52px; font-size:1.2rem; }
    .entourage__two-col   { grid-template-columns:1fr; gap:16px; }
    .entourage__col--groom-parents,
    .entourage__col--bride-parents,
    .entourage__col--bride-step,
    .entourage__col--groom-grandfather { grid-column:1; grid-row:auto; }
    .entourage__col--groom-parents     { order:1; }
    .entourage__col--bride-parents     { order:2; }
    .entourage__col--bride-step        { order:3; }
    .entourage__col--groom-grandfather { order:4; }
    .entourage__three-col { grid-template-columns:1fr; gap:14px; }
    .venue__grid { grid-template-columns:1fr; }
    .venue__body { padding:26px 22px 30px; }
    .venue__note-shuttle { font-size:.85rem; }
    .reminders__grid { grid-template-columns:1fr; }
    .messages__wall { max-height:460px; padding:18px; }
    .prenup__photo { flex:0 0 240px; }
    .hero__scroll { margin-top:28px; }

    .story__album-photo { flex:0 0 160px; }
    /* Narrow viewports crop the watercolor to a thin center strip via cover,
       so bump opacity here to keep it visibly present on phones. */
    .story-teaser::after { opacity:.32; }
    /* Tighter section heads + comfy reading spacing on phones */
    .section__head { margin-bottom:44px; }
    .countdown { padding:44px 20px; }
    .countdown__label { margin-bottom:20px; }
    .btn { padding:13px 28px; }
    .btn--outline { padding:11px 24px; }
    /* Entourage center rows: stack and center on mobile */
    .entourage__center-row { flex-direction:column; align-items:center; }
    .entourage__center-row .entourage__group { flex:none; width:100%; max-width:360px; }
    .rates-table thead th, .rates-table tbody td { padding:12px 14px; font-size:.85rem; }

    /* Keep RSVP/gift modals compact instead of stretching full-screen */
    .rsvp-modal { padding:16px; }
    .rsvp-modal__box { padding:30px 22px; }
    .rsvp-modal__title { font-size:1.3rem; }
    .rsvp-modal__text { font-size:.9rem; margin-bottom:20px; }
    .gift-modal__qrs { gap:12px; margin-bottom:20px; }
    .gift-modal__qrs .img-placeholder { flex:0 1 120px; max-width:120px; min-height:0; }
    .img-placeholder--qr { min-height:120px; }
}

/* Small phones — extra layout polish */
@media (max-width:420px) {
    .section { padding:60px 16px; }
    .section__head { margin-bottom:36px; }
    .hero__date-main { font-size:1.35rem; }
    .hero__content { padding:96px 16px 104px; }
    .countdown__items { gap:18px; }
    .countdown__item { min-width:60px; }
    .rsvp__form { padding:26px 18px; }
    .venue__body { padding:24px 20px 28px; }
    .btn { padding:12px 22px; font-size:.72rem; letter-spacing:.14em; }
    .prenup__photo { flex:0 0 200px; }
    .story__album-photo { flex:0 0 140px; }
}

/* ================================================================
   PASSWORD GATE
   ================================================================ */
.pw-gate {
    position:fixed; inset:0; z-index:9999;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
    background: var(--dream-gradient);
    transition:opacity .6s ease, visibility .6s ease;
}
.pw-gate--hidden { opacity:0; visibility:hidden; pointer-events:none; }
.pw-gate::before {
    content:""; position:absolute; inset:0; z-index:0;
    background:url("../Pictures/BG/Dreamy_Garden_watercolor.webp") center / cover no-repeat;
    opacity:.22; mix-blend-mode:multiply; pointer-events:none;
}
.pw-gate__bg { position:absolute; inset:0; z-index:0; }
.pw-gate__bg-placeholder {
    width:100%; height:100%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px; border:3px dashed rgba(122,64,112,.3);
    color:rgba(122,64,112,.55); font-size:.9rem; letter-spacing:.1em;
}
.pw-gate__bg-placeholder span {
    display:inline-block; width:3rem; height:3rem; opacity:.7;
    background-color:currentColor;
    -webkit-mask:url("../img/icon-camera.svg") no-repeat center / contain;
            mask:url("../img/icon-camera.svg") no-repeat center / contain;
}
.pw-gate__bg-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pw-gate__overlay {
    position:absolute; inset:0; z-index:1;
    background:linear-gradient(160deg,rgba(255,255,255,.15) 0%,rgba(255,255,255,.5) 100%);
}
.pw-gate__stars {
    position:absolute; inset:0; z-index:2; opacity:.55; animation:twinkle 4s ease-in-out infinite alternate;
    background-image:
        radial-gradient(2px 2px at 10% 20%,rgba(176,106,160,.6),transparent),
        radial-gradient(2px 2px at 80% 10%,rgba(176,106,160,.6),transparent),
        radial-gradient(1.5px 1.5px at 30% 60%,rgba(176,106,160,.45),transparent),
        radial-gradient(2px 2px at 60% 35%,rgba(176,106,160,.6),transparent),
        radial-gradient(2px 2px at 90% 70%,rgba(176,106,160,.4),transparent),
        radial-gradient(2px 2px at 45% 85%,rgba(176,106,160,.6),transparent),
        radial-gradient(1.5px 1.5px at 15% 45%,rgba(176,106,160,.5),transparent),
        radial-gradient(2px 2px at 70% 25%,rgba(176,106,160,.6),transparent);
    background-repeat:repeat;
}
.pw-gate__card {
    position:relative; z-index:3;
    background:rgba(255,255,255,.55); backdrop-filter:blur(16px);
    border:1px solid rgba(255,255,255,.7); border-radius:24px;
    padding:52px 44px; text-align:center;
    max-width:420px; width:90%;
    box-shadow:0 24px 80px rgba(122,64,112,.2);
    animation:fadeUp .8s ease both;
}
.pw-gate__logo { height:160px; width:auto; margin:0 auto 18px; }
.pw-gate__date {
    font-size:.72rem; letter-spacing:.25em; text-transform:uppercase;
    color:rgba(122,64,112,.75); margin-bottom:28px;
}
.pw-gate__label {
    font-family:var(--serif); font-style:italic; font-size:1rem;
    color:var(--royal-dark); margin-bottom:20px;
}
.pw-gate__form { display:flex; flex-direction:column; gap:14px; }
.pw-gate__input {
    font-family:var(--sans); font-size:1rem; text-align:center;
    padding:14px 20px; border-radius:var(--radius-full);
    border:1.5px solid rgba(122,64,112,.3);
    background:rgba(255,255,255,.6); color:var(--ink);
    letter-spacing:.12em; outline:none;
    transition:border-color .25s, background .25s;
}
.pw-gate__input::placeholder { color:rgba(122,64,112,.45); letter-spacing:.08em; }
.pw-gate__input:focus { border-color:var(--royal); background:rgba(255,255,255,.85); }
.pw-gate__btn { align-self:center; min-width:160px; }
.pw-gate__error {
    font-size:.82rem; color:var(--c-pink-d);
    min-height:1.4em; margin-top:4px; font-style:italic;
}
@keyframes pw-shake {
    0%,100% { transform:translateX(0); }
    20%,60%  { transform:translateX(-10px); }
    40%,80%  { transform:translateX(10px); }
}
.pw-gate__input--shake { animation:pw-shake .5s ease; }

/* ================================================================
   MUSIC TOGGLE BUTTON  (fixed, bottom-right)
   ================================================================ */
.music-btn {
    position:fixed; bottom:28px; right:28px; z-index:95;
    width:50px; height:50px; border-radius:50%;
    background:rgba(255,255,255,.92); border:2px solid var(--rose);
    box-shadow:var(--shadow-card); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem; padding:0;
    transition:transform .25s, box-shadow .25s;
}
.music-btn:hover { transform:scale(1.12); box-shadow:var(--shadow); }
.music-btn[hidden] { display:none; }
