/* ================================================
   Wedding Orchid ("Orhideja") — Standard Wedding Theme
   A white garden wedding that opens with a filmed envelope.
   Palette: ivory · white · sage · a touch of soft gold
   Fonts:   Great Vibes (names, section titles) + Cormorant Garamond
            (display serif) + Figtree (body)
   Style:   Filmed envelope intro → the same garden with the couple's photo
            inside a flower-wrapped arch; quiet white sections, script titles,
            the flower bed as the closing bookend.
   ================================================ */

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

:root {
    --sage:        #7d8b6a;
    --sage-deep:   #4f5b40;
    --gold:        #b59a62;
    --ink:         #2f352a;
    --text:        #555b4f;
    --muted:       #868b7e;
    --ivory:       #f8f6f0;
    --sky:         #eeece2;
    --sky-top:     #f2f6fb;   /* the hero image's top edge */
    --hero-gap:    64px;      /* white-to-sky band above the hero image */
    --white:       #ffffff;
    --border:      rgba(47, 53, 42, .11);
    --accent-color: #7d8b6a;
    --radius:      14px;
    --btn-radius:  50px;

    --ff-script:  'Great Vibes', 'Snell Roundhand', cursive;
    --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ff-body:    'Figtree', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --card-shadow: 0 1px 2px rgba(47, 53, 42, .04), 0 12px 30px rgba(47, 53, 42, .07);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-color); }

/* ── Containers ─────────────────────────────── */
.wo-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wo-container--sm { max-width: 680px; }

/* Alternating section backgrounds, computed from what actually renders. */
.wo-alt-sections > * { background: var(--white); }
.wo-alt-sections > *:nth-child(even) { background: var(--ivory); }

/* Shared section components only get a class hook from this theme — give them a
   consistent vertical rhythm. Scoped with .wo-alt-sections so it beats a
   same-specificity rule the component pushes after this stylesheet loads. */
.wo-alt-sections .wo-countdown,
.wo-alt-sections .wo-story,
.wo-alt-sections .wo-party,
.wo-alt-sections .wo-gallery,
.wo-alt-sections .wo-program,
.wo-alt-sections .wo-dress-code,
.wo-alt-sections .wo-good-to-know,
.wo-alt-sections .wo-location,
.wo-alt-sections .wo-accommodation,
.wo-alt-sections .wo-gallery-upload,
.wo-alt-sections .wo-wishes,
.wo-alt-sections .wo-album,
.wo-alt-sections .wo-closing,
.wo-alt-sections .wo-rsvp {
    padding: 4.75rem 1rem;
}

/* ── Section helpers ─────────────────────────── */
.wo-eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: .35rem;
}

.wo-section-title {
    position: relative;
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 3.4rem);
    line-height: 1.15;
    color: var(--sage-deep);
    text-align: center;
    padding-bottom: 1.1rem;
    margin-bottom: 1.4rem;
}

/* One hairline with a small gold point under every title. */
.wo-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 84px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.wo-section-title::before {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    z-index: 1;
}

/* ── Floating topbar ─────────────────────────── */
.wo-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

/* The hero carries the names in big script; the brand only appears once the
   topbar has a ground of its own. */
.wo-topbar__brand {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    opacity: 0;
    transition: opacity .3s ease;
}

/* On a phone the topbar stays bare (just the menu button); the ground and the
   names only come in from tablet width up. */
@media (min-width: 601px) {
    .wo-topbar.scrolled {
        background: color-mix(in srgb, var(--ivory) 92%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 var(--border);
    }
    .wo-topbar.scrolled .wo-topbar__brand { opacity: 1; }
}

.wo-topbar__links {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.wo-topbar__links a {
    position: relative;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sage-deep);
    padding-bottom: .2rem;
}

.wo-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.wo-topbar__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.wo-topbar__toggle { display: none; }

@media (max-width: 600px) {
    .wo-topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 2.4rem;
        height: 2.4rem;
        border: 0;
        border-radius: 999px;
        background: color-mix(in srgb, var(--white) 78%, transparent);
        box-shadow: 0 2px 10px rgba(47, 53, 42, .12);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        cursor: pointer;
        margin-left: auto;
    }
    .wo-topbar__toggle span {
        display: block;
        width: 17px;
        height: 1.6px;
        margin: 0 auto;
        background: var(--sage-deep);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .wo-topbar__toggle.is-active span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
    .wo-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .wo-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

    .wo-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        right: 1.1rem;
        left: 1.1rem;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-radius: 14px;
        box-shadow: var(--card-shadow);
        padding: .35rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .wo-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .wo-topbar__links a {
        color: var(--ink);
        padding: .7rem .85rem;
        border-radius: 10px;
    }
    .wo-topbar__links a:hover { background: var(--ivory); }
    .wo-topbar__links a::after { display: none; }
}

/* Demo-only Basic/Standard switch + close + cart — shared look from
   layouts/theme.blade.php, just positioned here. */
.dpb-switch, .dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

/* ================================================
   HERO — the garden with the arch
   The stage is the 1080×1935 frame image; everything inside is placed in %
   of it (container query units for type). On a phone the stage is the full
   width; on wider screens it stands centred at viewport height over a
   blurred copy of the same garden.
   ================================================ */
/* A short band above the image (clear of the topbar) fades white into the
   image's own top-edge sky, so the stage starts without a seam. */
.wo-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--hero-gap);
    background:
        linear-gradient(var(--white), var(--sky-top) var(--hero-gap), transparent calc(var(--hero-gap) + 90px)) top / 100% calc(var(--hero-gap) + 90px) no-repeat,
        var(--sky) url('img/hero-backdrop.jpg') center / cover no-repeat;
}

.wo-hero__stage {
    position: relative;
    width: min(100%, calc((100svh - var(--hero-gap)) * 1080 / 1935));
    aspect-ratio: 1080 / 1935;
    margin: 0 auto;
    container-type: inline-size;
}

/* Wider than the stage: feather its sides into the blurred backdrop. */
@media (min-aspect-ratio: 1080 / 1935) {
    .wo-hero__stage {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    }
}

/* The keyed arch window (x 22.9–77.1 %, y 23.7–71.1 % of the frame) with a
   little bleed under the frame's border so no edge ever shows. */
.wo-hero__photo {
    position: absolute;
    left: 22%;
    top: 22.8%;
    width: 56%;
    height: 49.2%;
    overflow: hidden;
    background: var(--sky);
}

.wo-hero__photo .hero-swiper .swiper-pagination { display: none; }
.wo-hero__photo .swiper-slide { background-position: 50% 45% !important; }

.wo-hero__default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

/* A slow settle on the photo once the page is revealed. */
.wo-hero__photo > * { animation: wo-settle 14s ease-out both; }
@keyframes wo-settle { from { transform: scale(1.08); } }

/* ...and the image's own top edge melts into that band (no hairline seam). */
.wo-hero__stage::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6%;
    z-index: 3;
    background: linear-gradient(var(--sky-top), transparent);
    pointer-events: none;
}

.wo-hero__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Soft fade of the flower bed (and, wide, the backdrop) into the first
   section below. */
.wo-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 7%;
    z-index: 5;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
}

.wo-hero__text {
    position: absolute;
    z-index: 4;
    left: 5%;
    right: 5%;
    top: 4.6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6cqw;
    text-align: center;
    color: var(--sage-deep);
}

.wo-hero__eyebrow {
    font-size: max(.62rem, 2.6cqw);
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--sage);
}

.wo-hero__names {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 12.5cqw;
    line-height: 1.05;
    color: var(--sage-deep);
    white-space: nowrap;
    text-shadow: 0 0 .4em var(--ivory), 0 0 1em var(--ivory);
}
.wo-hero__names--long { font-size: 9.5cqw; }

.wo-hero__amp {
    font-size: .78em;
    color: var(--gold);
    margin: 0 .04em;
}

.wo-hero__date {
    font-family: var(--ff-display);
    font-size: max(1rem, 4.4cqw);
    font-weight: 500;
    letter-spacing: .03em;
    color: var(--ink);
    font-variant-numeric: lining-nums;
}

.wo-hero__text > * { animation: wo-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.wo-hero__text > :nth-child(2) { animation-delay: .15s; }
.wo-hero__text > :nth-child(3) { animation-delay: .3s; }

/* Behind the envelope nothing moves yet: the entrance plays on reveal. */
.wo-has-envelope:not(.wo-opened) .wo-hero__text > *,
.wo-has-envelope:not(.wo-opened) .wo-hero__photo > * { animation-play-state: paused; }

@keyframes wo-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Note / message ─────────────────────────── */
.wo-note {
    background: var(--white);
    padding: 1.5rem 1rem 4.5rem;
    text-align: center;
}
.wo-note__text {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto;
}
.wo-note__sig {
    margin-top: 1rem;
    font-family: var(--ff-script);
    font-size: 1.9rem;
    color: var(--sage-deep);
}

/* ── Countdown ─────────────────────────────── */
.wo-countdown { text-align: center; }
.wo-countdown__timer {
    display: flex;
    justify-content: center;
    gap: .9rem;
}
.wo-countdown__unit {
    flex: 0 1 5.4rem;
    min-width: 0;
    padding: 1rem .6rem .9rem;
    background: var(--white);
}
.wo-countdown__number {
    display: block;
    font-family: var(--ff-display);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--sage-deep);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.wo-countdown__label {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Day plan: centred stack, one icon per stop ── */
.wo-program { text-align: center; }
.wo-plan {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
}
.wo-plan__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 26rem;
}
/* A short hairline joins one stop to the next. */
.wo-plan__item + .wo-plan__item::before {
    content: '';
    display: block;
    width: 1px;
    height: 1.4rem;
    margin: -1.6rem auto 1.2rem;
    background: color-mix(in srgb, var(--gold) 60%, transparent);
}
.wo-plan__icon {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--accent-color);
    margin-bottom: .6rem;
}
.wo-plan__label {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}
.wo-plan__time {
    margin-top: .2rem;
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sage-deep);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.wo-plan__loc { font-size: .9rem; color: var(--muted); }
.wo-plan__loc a { margin-left: .35rem; font-weight: 600; }

/* ── Map ───────────────────────────────────── */
.wo-location { text-align: center; }
.wo-location__address { color: var(--text); margin-bottom: 1.25rem; }
.wo-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}
.wo-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Album / closing ───────────────────────── */
.wo-album { text-align: center; }
.wo-album__sub { color: var(--muted); margin-bottom: 1.5rem; }
.wo-closing { text-align: center; }
.wo-closing__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink);
}

/* ── Buttons ───────────────────────────────── */
.wo-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff !important;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.4rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color) 30%, transparent);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.wo-btn:hover {
    background: color-mix(in srgb, var(--accent-color) 82%, #000);
    transform: translateY(-2px);
    text-decoration: none;
}
.wo-btn--ghost {
    background: transparent;
    color: var(--sage-deep) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
    box-shadow: none;
}
.wo-btn--ghost:hover { background: var(--white); }

/* ── Footer: the flower bed closes the page ── */
.wo-footer {
    position: relative;
    background: var(--ivory);
    text-align: center;
}
.wo-footer__flowers {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.wo-footer__body {
    padding: 1.75rem 1.25rem 3.5rem;
}
.wo-footer__names {
    display: block;
    font-family: var(--ff-script);
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--sage-deep);
}
.wo-footer__amp { color: var(--gold); font-size: .8em; }
.wo-footer__date {
    margin-top: .3rem;
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: var(--ink);
    font-variant-numeric: lining-nums;
}
.wo-footer__signoff {
    margin-top: .75rem;
    font-size: .88rem;
    color: var(--muted);
}
.wo-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.6rem;
}
.wo-footer__cal-icon { width: 1.05rem; height: 1.05rem; }

/* ── Our story: a fan of up to three photos, then the milestones as text ──
   The fan is the marketing carousels' "trio": the middle card straight and in
   front, the side cards tilted ±7° and tucked behind it. */
.wo-story { text-align: center; }
.wo-story__intro {
    max-width: 34rem;
    margin: 0 auto 2rem;
    color: var(--text);
}
.wo-story__trio {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.5rem;
    margin-bottom: 2.25rem;
}
.wo-story__card {
    position: relative;
    width: clamp(6.6rem, 31vw, 12rem);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    background: var(--sky);
    box-shadow: 0 14px 34px rgba(47, 53, 42, .2);
}
.wo-story__trio--3 .wo-story__card:nth-child(1) { z-index: 1; margin-right: -1.4rem; transform: translateY(.6rem) rotate(-7deg); }
.wo-story__trio--3 .wo-story__card:nth-child(2) { z-index: 3; }
.wo-story__trio--3 .wo-story__card:nth-child(3) { z-index: 2; margin-left: -1.4rem; transform: translateY(.6rem) rotate(7deg); }
.wo-story__trio--2 .wo-story__card:nth-child(1) { z-index: 1; margin-right: -1.2rem; transform: rotate(-5deg); }
.wo-story__trio--2 .wo-story__card:nth-child(2) { z-index: 2; transform: translateY(.4rem) rotate(4deg); }

.wo-story__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}
.wo-story__item { max-width: 32rem; }
/* A short gold hairline joins one milestone to the next. */
.wo-story__item + .wo-story__item::before {
    content: '';
    display: block;
    width: 1px;
    height: 1.4rem;
    margin: -1.4rem auto 1rem;
    background: color-mix(in srgb, var(--gold) 60%, transparent);
}
.wo-story__period {
    display: block;
    font-family: var(--ff-script);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--gold);
}
.wo-story__title {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin: .2rem 0 .45rem;
}
.wo-story__desc { color: var(--text); font-size: .95rem; }

/* ── Wedding party: place cards without the card ── */
.wo-party { text-align: center; }
.wo-party__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 3rem;
}
.wo-party__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 10rem;
}
.wo-party__role {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent-color);
}
.wo-party__name {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    line-height: 1.25;
    color: var(--sage-deep);
}

/* ── Well wishes: guestbook postcards ── */
.wo-wishes { text-align: center; }
.wo-wishes__row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.wo-card {
    position: relative;
    flex: 0 1 19.5rem;
    min-height: 13rem;
    padding: 1.6rem 1.5rem 1.3rem;
    text-align: left;
    background: var(--white);
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(47, 53, 42, .04), 0 10px 24px rgba(47, 53, 42, .07);
    display: flex;
    flex-direction: column;
}
.wo-card:nth-child(odd) { transform: rotate(-.6deg); }
.wo-card:nth-child(even) { transform: rotate(.5deg); }
/* the stamp: a perforated ivory square with the line orchid */
.wo-card__stamp {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 2.6rem;
    height: 3rem;
    display: grid;
    place-items: center;
    color: var(--accent-color);
    background: var(--ivory);
    outline: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent);
    outline-offset: -4px;
}
.wo-card__stamp svg { width: 1.7rem; height: 1.7rem; }
.wo-card__text {
    flex: 1;
    margin: 2.6rem 0 1rem;
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
}
.wo-card__sign {
    align-self: flex-end;
    font-family: var(--ff-script);
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--sage-deep);
}

/* On a phone the postcards become a swipeable row (scroll-snap, no JS). */
@media (max-width: 640px) {
    .wo-wishes__row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -1.25rem;
        padding: .75rem 1.25rem 1.25rem;
        scrollbar-width: none;
    }
    .wo-wishes__row::-webkit-scrollbar { display: none; }
    .wo-wishes__row--single { justify-content: center; }
    .wo-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }
}

.wo-gallery .gg-item { border-radius: 10px; }

/* ── RSVP ──────────────────────────────────── */
.wo-rsvp { text-align: center; }
.wo-rsvp .wo-form {
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
}
.wo-rsvp .form__group label {
    font-weight: 600;
    color: var(--ink);
}
.wo-rsvp .form__group input,
.wo-rsvp .form__group select,
.wo-rsvp .form__group textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--ivory);
}
.wo-rsvp .form__group input:focus,
.wo-rsvp .form__group select:focus,
.wo-rsvp .form__group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 18%, transparent);
    background: var(--white);
}
.wo-rsvp .wo-summary-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--ivory);
}
.wo-rsvp .wo-badge {
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent-color) 14%, var(--white));
    color: var(--sage-deep);
    font-weight: 600;
}

/* ── Guest gallery ─────────────────────────── */
.wo-gallery-upload { text-align: center; }
.wo-gallery-upload .gu-desc {
    text-align: center;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}
.wo-gallery-upload .gu-view-all { margin-left: auto; margin-right: auto; width: fit-content; }

/* ================================================
   ENVELOPE INTRO — a filmed clip with a live layer
   The frame is the clip's 9:16 box at full screen height (container query
   units on the overlay): on a phone that crops its sides a little, on wider
   screens it stands as a centred column over a blurred copy of the poster.
   Every % position inside it (names, the initials on the seal) stays locked
   to the picture. Hidden entirely with JS off (see .wo-has-envelope).
   ================================================ */
body.wo-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.wo-envelope {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    overflow: hidden;
    background: #eceee4;
    cursor: pointer;
    container-type: size;
    transition: opacity .9s ease, visibility .9s ease;
}
.wo-has-envelope .wo-envelope { display: block; }
.wo-envelope.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.wo-envelope:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -6px; }

.wo-envelope::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: url('poster.jpg') center / cover no-repeat;
    filter: blur(26px) saturate(.9);
    opacity: .9;
}

.wo-envelope__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100cqh * 9 / 16);
    height: 100cqh;
    transform: translate(-50%, -50%);
    container-type: inline-size;
}

/* Wider than the clip: feather its sides into the blurred poster. */
@media (min-aspect-ratio: 9 / 16) {
    .wo-envelope__frame {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    }
}

.wo-envelope__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wo-envelope__live {
    position: absolute;
    inset: 0;
    transition: opacity .28s ease;
}
.wo-envelope.is-playing .wo-envelope__live { opacity: 0; }

.wo-envelope__names,
.wo-envelope__date {
    position: absolute;
    left: 4%;
    right: 4%;
    text-align: center;
    color: var(--sage-deep);
    text-shadow: 0 0 .5em #fbfaf6, 0 0 1.2em #fbfaf6;
}
.wo-envelope__names {
    top: 9.5%;
    font-family: var(--ff-script);
    font-size: 10.5cqw;
    line-height: 1.1;
}
.wo-envelope__date {
    top: 16.4%;
    font-size: 3.1cqw;
    font-weight: 600;
    letter-spacing: .28em;
    font-variant-numeric: lining-nums;
}

/* The blank wax seal sits at 50 % / 55.5 % of the clip's frame, its flat
   centre about 9.5 % of the frame wide: the initials are pressed into it. */
.wo-envelope__mono {
    position: absolute;
    left: 50%;
    top: 55.5%;
    width: 9.5cqw;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    font-family: var(--ff-display);
    font-size: 3.2cqw;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #a59673;
    text-shadow: -.04em -.04em .03em rgba(80, 64, 30, .35), .05em .05em .04em rgba(255, 255, 255, .9);
}

.wo-envelope__hint {
    position: absolute;
    left: 50%;
    top: 72%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: .9em 2.4em;
    border-radius: 99px;
    background: rgba(251, 250, 246, .8);
    color: var(--sage-deep);
    font-size: max(.62rem, 2.9cqw);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    animation: wo-breathe 2.4s ease-in-out infinite;
}
@keyframes wo-breathe { 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
    .wo-envelope__hint,
    .wo-hero__text > *,
    .wo-hero__photo > * { animation: none; }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
    .wo-alt-sections .wo-countdown,
    .wo-alt-sections .wo-story,
    .wo-alt-sections .wo-party,
    .wo-alt-sections .wo-gallery,
    .wo-alt-sections .wo-program,
    .wo-alt-sections .wo-dress-code,
    .wo-alt-sections .wo-good-to-know,
    .wo-alt-sections .wo-location,
    .wo-alt-sections .wo-accommodation,
    .wo-alt-sections .wo-gallery-upload,
    .wo-alt-sections .wo-wishes,
    .wo-alt-sections .wo-album,
    .wo-alt-sections .wo-closing,
    .wo-alt-sections .wo-rsvp {
        padding: 3.5rem 1rem;
    }
    .wo-countdown__timer { gap: .55rem; }
    .wo-countdown__number { font-size: 1.85rem; }
    .wo-countdown__label { font-size: .58rem; letter-spacing: .12em; }
}
