/* Landing page only (body.invite). Loaded after site.css and scoped to .invite, so policy pages are
   untouched. The page is laid out like a printed wedding invitation: ivory paper, maroon ink, gold
   rules and corner flourishes, photographs set in arches. Motion is paper, not film: the card's
   leaves open on load, its gold frame draws itself, and sections unfold as they come into view.
   Nothing is tied to scroll position. js/home.js only adds classes; without it, or with reduced
   motion, every section is simply visible. Hidden-until-revealed states apply only under
   html.motion (set by js/home-pre.js). */

.invite {
    --paper: #FBF5E9;
    --paper-deep: #F3E8D2;
    --paper-card: #FFFCF5;
    --ink: #2A1418;
    --ink-soft: #5C4347;
    --maroon: #67001B;
    --maroon-deep: #3F0010;
    --gold: #9A6A14;
    --gold-line: #B8842E;
    --gold-bright: #D9A441;
    --gold-soft: #EBD3A0;
    --ease: cubic-bezier(.22, 1, .36, 1);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
    color: var(--ink);
}
.invite main { overflow-x: clip; }
.invite p { margin: 0; }
.invite h1, .invite h2, .invite h3 { color: var(--maroon); font-weight: 600; }
.invite a { color: var(--maroon); }
.invite .muted { color: var(--ink-soft); }
.invite .orn-defs { position: absolute; }
.invite [id] { scroll-margin-top: 1.5rem; }
.invite .site-header { background: rgba(251, 245, 233, .94); border-bottom-color: var(--gold-soft); }
/* The footer sits on dark maroon: the page's maroon link and heading colours must not reach it. */
.invite .site-footer a { color: #fff; }
.invite .site-footer a:hover { color: #FFE9C7; }
.invite .site-footer h2 { color: var(--gold-soft); }
.invite .site-footer p { margin: 0 0 1em; }

.invite .eyebrow { color: var(--gold); letter-spacing: .24em; font-size: .72rem; margin: 0 0 .9rem; }
.invite .divider { display: block; width: 15rem; max-width: 70%; height: 1.5rem; color: var(--gold-line); margin: 1.4rem auto; }
.invite .caption { margin-top: 1.5rem; text-align: center; color: var(--ink-soft); font-size: .84rem; }
.invite .centered-note { margin-top: 2rem; text-align: center; }

/* Buttons: maroon with a gold foil edge; a single sheen crosses on hover. */
.invite .btn { position: relative; overflow: hidden; border-radius: 4px; letter-spacing: .02em; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.invite .btn-primary { background: linear-gradient(180deg, #7d0a26, var(--maroon)); color: #fff7e6; box-shadow: 0 0 0 1px var(--gold-bright), 0 0 0 4px var(--paper-card), 0 0 0 5px var(--gold-line), 0 14px 30px -12px rgba(63, 0, 16, .6); }
.invite .btn-primary:hover { background: linear-gradient(180deg, #8f1230, #74041f); color: #fff; }
.invite .btn-primary::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 233, 180, .55), transparent); transform: skewX(-18deg); }
.invite .btn-primary:hover::after { left: 130%; transition: left .8s var(--ease); }
.invite .btn-secondary { background: transparent; color: var(--maroon); border-color: var(--gold-line); }
.invite .btn-secondary:hover { background: var(--paper-deep); color: var(--maroon); }

/* Photograph in an arch, with a gold line set just outside it. */
.invite .arch { position: relative; margin: 0; border-radius: 999px 999px 6px 6px; overflow: hidden; aspect-ratio: 4 / 5.6; background: var(--maroon-deep); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold-line), 0 30px 50px -28px rgba(63, 0, 16, .65); }
.invite .arch img { width: 100%; height: 100%; object-fit: cover; }

.invite .phone { border-radius: 1.7rem; padding: .34rem; background: linear-gradient(150deg, #3a3034, #151113 45%, #2a2226); box-shadow: 0 30px 50px -22px rgba(42, 20, 24, .7), 0 0 0 1px rgba(184, 132, 46, .5); }
.invite .phone img { width: 100%; border-radius: 1.4rem; background: #fff8f8; }

/* ---------- Cover: the invitation card ---------- */

.invite .cover { position: relative; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); isolation: isolate; }
.invite .rosette { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(64rem, 150vw); aspect-ratio: 1; margin: calc(min(64rem, 150vw) / -2) 0 0 calc(min(64rem, 150vw) / -2); color: var(--gold-line); opacity: .2; }
@media (prefers-reduced-motion: no-preference) { .invite .rosette { animation: rosette 180s linear infinite; } }
@keyframes rosette { to { transform: rotate(360deg); } }

.invite .cover-grid { display: grid; gap: 2.5rem; align-items: center; justify-items: center; }
.invite .cover .arch { display: none; width: 100%; max-width: 15.5rem; }
@media (min-width: 64rem) {
    .invite .cover-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 38rem) minmax(0, 1fr); }
    .invite .cover .arch { display: block; }
    .invite .arch-left { justify-self: end; transform: translateY(1.5rem); }
    .invite .arch-right { justify-self: start; transform: translateY(-1.5rem); }
}

.invite .card-stage { position: relative; width: 100%; max-width: 38rem; perspective: 1800px; }
.invite .invitation { position: relative; background: var(--paper-card); box-shadow: 0 40px 70px -40px rgba(63, 0, 16, .55), 0 2px 0 rgba(255, 255, 255, .8) inset; padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.25rem); text-align: center; }
.invite .frame { position: absolute; inset: .7rem; border: 1.5px solid var(--gold-line); border-radius: 2px; pointer-events: none; }
.invite .frame::after { content: ''; position: absolute; inset: .35rem; border: 1px solid var(--gold-bright); opacity: .8; }
.invite .corner { position: absolute; width: 3.4rem; height: 3.4rem; color: var(--gold-line); pointer-events: none; }
.invite .corner-tl { left: 1.1rem; top: 1.1rem; }
.invite .corner-tr { right: 1.1rem; top: 1.1rem; transform: scaleX(-1); }
.invite .corner-bl { left: 1.1rem; bottom: 1.1rem; transform: scaleY(-1); }
.invite .corner-br { right: 1.1rem; bottom: 1.1rem; transform: scale(-1); }
@media (max-width: 30rem) { .invite .corner { width: 2.4rem; height: 2.4rem; } }

.invite .crest { width: 7.5rem; margin: 0 auto 1.4rem; filter: drop-shadow(0 14px 18px rgba(63, 0, 16, .25)); }
.invite .cover h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.14; letter-spacing: -.01em; margin: 0; }
.invite .cover .lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 30rem; margin-inline: auto; }
.invite .hero-actions { justify-content: center; margin: 2rem 0 1.5rem; gap: 1.1rem; }
.invite .hero-points { justify-content: center; }
.invite .hero-points li { background: transparent; border: 0; border-radius: 0; padding: 0 .9rem; color: var(--gold); font-size: .8rem; letter-spacing: .04em; }
.invite .hero-points li + li { border-left: 1px solid var(--gold-soft); }
@media (max-width: 36rem) { .invite .hero-points { flex-direction: column; align-items: center; gap: .35rem; } .invite .hero-points li + li { border-left: 0; } }

/* Gatefold leaves. Shown only while the opening animation runs. */
.invite .leaf { display: none; position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #E9D7B3, #F3E6CB); box-shadow: inset 0 0 0 1px var(--gold-line), inset 0 0 0 .6rem #EEDDBC, inset 0 0 0 calc(.6rem + 1px) var(--gold-line); backface-visibility: hidden; }
.invite .leaf-left { left: 0; transform-origin: left center; }
.invite .leaf-right { right: 0; transform-origin: right center; background: linear-gradient(270deg, #E9D7B3, #F3E6CB); }
.invite .leaf::after { content: ''; position: absolute; top: 50%; width: 3.2rem; height: 3.2rem; margin-top: -1.6rem; border: 1px solid var(--gold-line); background: var(--maroon); transform: rotate(45deg); }
.invite .leaf-left::after { right: -1.6rem; clip-path: polygon(0 0, 100% 0, 0 100%); }
.invite .leaf-right::after { left: -1.6rem; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Sections ---------- */

.invite .section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.invite .section-head { max-width: 44rem; }
.invite .section-head.centered { margin-inline: auto; text-align: center; }
.invite .section-head h2, .invite .family h2, .invite .download-card h2, .invite .rsvp h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); line-height: 1.14; }
.invite .section-head p:not(.eyebrow) { color: var(--ink-soft); }
.invite .about .divider { margin-top: 0; }

/* Three inserts, like cards tucked into the envelope. */
.invite .inserts { display: grid; gap: 1.5rem; perspective: 1600px; }
@media (min-width: 54rem) { .invite .inserts { grid-template-columns: repeat(3, 1fr); } }
.invite .insert { position: relative; background: var(--paper-card); padding: 3rem 1.75rem 2rem; text-align: center; border: 1px solid var(--gold-soft); box-shadow: 0 0 0 .4rem var(--paper-card), 0 0 0 calc(.4rem + 1px) var(--gold-line), 0 30px 40px -34px rgba(63, 0, 16, .6); margin: .5rem; }
.invite .insert h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.invite .insert p { color: var(--ink-soft); }
.invite .roundel { position: absolute; left: 50%; top: -1.5rem; width: 3rem; height: 3rem; margin-left: -1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--maroon); color: var(--gold-soft); font-family: var(--serif); font-size: 1.05rem; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-line); }

/* How it works: a booklet. Default (no JS) is a readable list; .is-live is set by js/home.js. */
.invite .how { background: linear-gradient(180deg, transparent, var(--paper-deep) 18%, var(--paper-deep) 82%, transparent); }
.invite .reel-stage { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.invite .reel-panel { display: grid; gap: 1.75rem; align-items: center; background: var(--paper-card); border: 1px solid var(--gold-soft); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 30px 50px -40px rgba(63, 0, 16, .6); }
.invite .reel-art { position: relative; width: min(17rem, 68%); margin-inline: auto; padding: 0 2.5rem 1rem 0; }
.invite .reel-phone { position: absolute; right: 0; bottom: 0; width: 44%; }
.invite .reel-num { display: block; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: .8rem; }
.invite .reel-copy h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.14; }
.invite .reel-copy p { margin-top: .9rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 30rem; }
@media (min-width: 60rem) {
    .invite .reel-panel { grid-template-columns: 22rem minmax(0, 1fr); gap: 3.5rem; }
    .invite .reel-art { width: 18rem; }
}

/* Tabs: six gold roundels on a thread. */
.invite .reel.is-live { display: grid; gap: 2rem; }
.invite .reel.is-live .reel-tabs { position: relative; display: flex; justify-content: space-between; gap: .5rem; max-width: 46rem; width: 100%; margin-inline: auto; }
.invite .reel.is-live .reel-tabs::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; height: 1px; background: var(--gold-line); }
.invite .reel-tab { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.invite .reel-tab-num { position: relative; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper-card); border: 1px solid var(--gold-line); color: var(--maroon); font-family: var(--serif); font-size: 1.15rem; transition: background-color .35s ease, color .35s ease, transform .35s var(--ease); }
.invite .reel-tab:hover .reel-tab-num { background: var(--gold-soft); }
.invite .reel-tab[aria-selected='true'] { color: var(--maroon); }
.invite .reel-tab[aria-selected='true'] .reel-tab-num { background: var(--maroon); color: var(--gold-soft); transform: scale(1.12); box-shadow: 0 0 0 3px var(--paper-deep), 0 0 0 4px var(--gold-line); }
.invite .reel-tab-bar { width: 2.5rem; height: 2px; background: transparent; }
.invite .reel-tab-bar i { display: block; height: 100%; background: var(--maroon); transform: scaleX(0); transform-origin: left; }
.invite .reel.is-playing .reel-tab[aria-selected='true'] .reel-tab-bar i { animation: reel-fill var(--reel-ms, 6000ms) linear forwards; }
.invite .reel.is-playing.is-held .reel-tab-bar i { animation-play-state: paused; }
@keyframes reel-fill { to { transform: scaleX(1); } }
@media (max-width: 47.99rem) { .invite .reel-tab-title { display: none; } }

/* Live: every page of the booklet shares one grid cell. The page being left lies on top and is
   turned like a leaf of a book: its right edge lifts and folds over towards the spine on the left,
   uncovering the next page already in place beneath it.
   --peel is where the fold stands, measured from the left: 100% page flat, 0% page turned. */
@property --peel { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.invite .reel.is-live .reel-stage { gap: 0; }
.invite .reel.is-live .reel-panel { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; }
.invite .reel.is-live .reel-panel.is-active { opacity: 1; visibility: visible; z-index: 1; }
.invite .reel.is-live .reel-panel.is-leaving {
    opacity: 1; visibility: visible; z-index: 2; pointer-events: none;
    /* The part already folded over shows its back; it is as wide as what has been lifted, up to a quarter of the page. */
    --back: min(100% - var(--peel), 26%);
    clip-path: polygon(0 0, var(--peel) 0, var(--peel) 100%, 0 100%);
    animation: reel-peel 1.35s cubic-bezier(.6, .04, .3, 1) forwards;
}
/* Back of the turning leaf: its free edge and the shadow it casts on the left, the crease on the right. */
.invite .reel.is-live .reel-panel.is-leaving::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to right,
        transparent calc(var(--peel) - var(--back) - 5%),
        rgba(63, 0, 16, .2) calc(var(--peel) - var(--back)),
        #EFE1C2 calc(var(--peel) - var(--back)),
        #FFFBF2 calc(var(--peel) - var(--back) * .55),
        #F1E4C8 calc(var(--peel) - var(--back) * .2),
        #D3BE92 calc(var(--peel) - .5%),
        #B8842E var(--peel),
        transparent var(--peel));
}
@keyframes reel-peel { from { --peel: 100%; } to { --peel: 0%; } }
/* The uncovered page lies in the shadow of the leaf passing over it. */
.invite .reel.is-live .reel-panel.is-active::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to left, rgba(63, 0, 16, .05), rgba(63, 0, 16, .24)); opacity: 0; }
.invite .reel.is-live.is-turning .reel-panel.is-active::before { animation: reel-shade 1.35s ease-out forwards; }
@keyframes reel-shade { 0% { opacity: 1; } 100% { opacity: 0; } }

/* The vow: one line on maroon. */
.invite .vow { position: relative; isolation: isolate; overflow: hidden; background: var(--maroon-deep); color: var(--gold-soft); padding-block: clamp(4rem, 10vw, 7.5rem); text-align: center; }
.invite .vow > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.invite .vow::after { content: ''; position: absolute; inset: .9rem; border: 1px solid rgba(217, 164, 65, .55); pointer-events: none; }
.invite .vow .divider { color: var(--gold-bright); }
.invite .vow-line { font-family: var(--serif); font-size: clamp(1.9rem, 5.4vw, 4rem); line-height: 1.15; color: #FFF3DC; text-wrap: balance; }

/* Trust: a ruled ledger, no boxes. */
.invite .ledger { display: grid; border-top: 1px solid var(--gold-line); }
@media (min-width: 46rem) { .invite .ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .invite .ledger { grid-template-columns: repeat(3, 1fr); } }
.invite .ledger-item { position: relative; padding: 2rem 1.75rem 2rem 2.75rem; border-bottom: 1px solid var(--gold-soft); }
.invite .ledger-item::before { content: ''; position: absolute; left: 1rem; top: 2.5rem; width: .6rem; height: .6rem; background: var(--gold-line); transform: rotate(45deg); }
@media (min-width: 46rem) { .invite .ledger-item { border-right: 1px solid var(--gold-soft); } }
@media (min-width: 46rem) and (max-width: 63.99rem) { .invite .ledger-item:nth-child(2n) { border-right: 0; } }
@media (min-width: 64rem) { .invite .ledger-item:nth-child(3n) { border-right: 0; } }
.invite .ledger-item h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.invite .ledger-item p { color: var(--ink-soft); }

/* Family */
.invite .family { position: relative; background: linear-gradient(160deg, #7a0a24 0%, var(--maroon) 50%, var(--maroon-deep) 100%); }
.invite .family::after { content: ''; position: absolute; inset: .9rem; border: 1px solid rgba(217, 164, 65, .5); pointer-events: none; }
.invite .family h2 { color: #fff7e6; }
.invite .family .eyebrow { color: var(--gold-soft); }
.invite .family .lead { margin-top: 1rem; color: #F3D9D6; }
.invite .family-grid { perspective: 1600px; }
.invite .family-panel { background: var(--paper-card); border: 1px solid var(--gold-line); border-radius: 0; box-shadow: 0 0 0 .35rem var(--paper-card), 0 0 0 calc(.35rem + 1px) var(--gold-bright); color: var(--ink); }
.invite .family-panel h3 { color: var(--maroon); font-family: var(--serif); font-size: 1.2rem; }
.invite .family .family-panel .ticks li::before { background: var(--gold-line); }
.invite .family .family-panel .ticks.no li::before { background: transparent; border-color: var(--maroon); }

/* Plans: three arched cards. */
.invite .status-note { max-width: 46rem; margin-inline: auto; background: var(--paper-card); border: 1px solid var(--gold-line); border-radius: 0; color: var(--ink); text-align: center; justify-content: center; margin-bottom: 3rem; }
.invite .plans { display: grid; gap: 2rem; align-items: end; perspective: 1600px; }
@media (min-width: 58rem) { .invite .plans { grid-template-columns: repeat(3, 1fr); } }
.invite .plan { background: var(--paper-card); border: 1px solid var(--gold-line); border-radius: 12rem 12rem 4px 4px; padding: 4.5rem 2rem 2.25rem; box-shadow: 0 0 0 .4rem var(--paper), 0 0 0 calc(.4rem + 1px) var(--gold-soft), 0 30px 40px -34px rgba(63, 0, 16, .6); }
.invite .plan .plan-tag { color: var(--gold); text-align: center; margin-bottom: .5rem; }
.invite .plan h3 { font-size: 2.1rem; text-align: center; margin-bottom: .6rem; }
.invite .plan > p:not(.plan-tag) { color: var(--ink-soft); text-align: center; }
.invite .plan .ticks { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gold-soft); }
.invite .plan-feature { background: linear-gradient(180deg, #7a0a24, var(--maroon-deep)); color: #F3D9D6; border-color: var(--gold-bright); }
.invite .plan-feature h3 { color: #fff7e6; }
.invite .plan-feature .plan-tag { color: var(--gold-soft); }
.invite .plan-feature > p:not(.plan-tag) { color: #F3D9D6; }
.invite .plan-feature .ticks { color: #fff7e6; border-top-color: rgba(217, 164, 65, .5); }
.invite .plan-feature .ticks li::before { background: var(--gold-bright); }
@media (min-width: 58rem) { .invite .plan-feature { padding-bottom: 3.5rem; } }

/* Download */
.invite .download { background: linear-gradient(180deg, transparent, var(--paper-deep)); }
.invite .download-card { background: var(--paper-card); border: 1px solid var(--gold-line); border-radius: 0; box-shadow: 0 0 0 .4rem var(--paper-card), 0 0 0 calc(.4rem + 1px) var(--gold-soft), 0 40px 60px -44px rgba(63, 0, 16, .6); gap: 2.5rem; padding: clamp(1.75rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .invite .download-card { grid-template-columns: 15rem 1fr; gap: 3.5rem; } }
.invite .download-art { position: relative; width: min(15rem, 62%); margin-inline: auto; }
.invite .download-card .arch img { width: 100%; border-radius: 0; box-shadow: none; }
.invite .download-card .download-icon { position: absolute; right: -1.25rem; bottom: -1.25rem; width: 5.5rem; border-radius: 1.25rem; box-shadow: 0 0 0 3px var(--paper-card), 0 0 0 4px var(--gold-line), 0 18px 28px -12px rgba(63, 0, 16, .6); }
.invite .download-card p { margin-top: 1rem; }
.invite .soon { background: transparent; border-color: var(--gold-line); border-radius: 4px; }
.invite .soon small { color: var(--gold); }

/* Contact: an RSVP card. */
.invite .rsvp { position: relative; max-width: 58rem; margin-inline: auto; background: var(--paper-card); border: 1px solid var(--gold-line); padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); text-align: center; box-shadow: 0 40px 60px -44px rgba(63, 0, 16, .6); }
.invite .rsvp-lead { margin-top: 1rem; color: var(--ink-soft); }
.invite .rsvp-grid { display: grid; font-style: normal; border-block: 1px solid var(--gold-soft); }
@media (min-width: 40rem) { .invite .rsvp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .invite .rsvp-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.invite .rsvp-item { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1rem; color: var(--ink); text-decoration: none; transition: background-color .3s ease; }
.invite a.rsvp-item:hover { background: var(--paper-deep); }
@media (min-width: 60rem) { .invite .rsvp-item + .rsvp-item { border-left: 1px solid var(--gold-soft); } }
@media (max-width: 59.99rem) { .invite .rsvp-item + .rsvp-item { border-top: 1px solid var(--gold-soft); } }
.invite .rsvp-label { color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.invite .rsvp-value { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--maroon); overflow-wrap: anywhere; }
.invite .rsvp-sub { color: var(--ink-soft); font-size: .92rem; }
.invite .rsvp-note { margin-top: 1.75rem; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Motion (only when js/home-pre.js allowed it) ---------- */

/* Opening: leaves swing apart, the frame draws, the contents settle. Pure CSS, runs once. */
html.motion .invite .leaf { display: block; animation: leaf-open 1.5s var(--ease) .35s forwards; }
html.motion .invite .leaf-left { --turn: -112deg; }
html.motion .invite .leaf-right { --turn: 112deg; }
@keyframes leaf-open { 0% { transform: rotateY(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: rotateY(var(--turn)); opacity: 0; visibility: hidden; } }
/* The gold frame is drawn clockwise from the top-left corner. */
html.motion .invite .frame { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); animation: frame-draw 2.4s ease-in-out 1s forwards; }
@keyframes frame-draw {
    0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); }
    25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); }
    50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
    75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
    100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
}
html.motion .invite .cover .corner { opacity: 0; animation: settle-fade .9s ease 2.4s forwards; }
html.motion .invite .invitation-body > * { opacity: 0; animation: settle .9s var(--ease) forwards; }
html.motion .invite .invitation-body > :nth-child(1) { animation-delay: 1.1s; }
html.motion .invite .invitation-body > :nth-child(2) { animation-delay: 1.3s; }
html.motion .invite .invitation-body > :nth-child(3) { animation-delay: 1.45s; }
html.motion .invite .invitation-body > :nth-child(4) { animation-delay: 1.6s; }
html.motion .invite .invitation-body > :nth-child(5) { animation-delay: 1.75s; }
html.motion .invite .invitation-body > :nth-child(6) { animation-delay: 1.9s; }
html.motion .invite .invitation-body > :nth-child(7) { animation-delay: 2.05s; }
@keyframes settle { from { opacity: 0; transform: translate3d(0, 1rem, 0); } to { opacity: 1; transform: none; } }
@keyframes settle-fade { to { opacity: 1; } }
html.motion .invite .cover .arch { opacity: 0; animation: arch-rise 1.3s var(--ease) 1.5s forwards; }
html.motion .invite .cover .arch-right { animation-delay: 1.7s; }
@keyframes arch-rise { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Sections: fade up, or unfold from the top edge like a folded card. Added once, by observer. */
html.motion .invite [data-reveal] { opacity: 0; transform: translate3d(0, 1.5rem, 0); transition: opacity .9s ease, transform 1s var(--ease); }
html.motion .invite [data-reveal='unfold'] { transform: rotateX(-68deg); transform-origin: top center; transition: opacity .7s ease, transform 1.1s var(--ease); }
html.motion .invite [data-reveal].is-in { opacity: 1; transform: none; }
html.motion .invite .inserts > :nth-child(2), html.motion .invite .plans > :nth-child(2), html.motion .invite .ledger > :nth-child(3n + 2) { transition-delay: .12s; }
html.motion .invite .inserts > :nth-child(3), html.motion .invite .plans > :nth-child(3), html.motion .invite .ledger > :nth-child(3n) { transition-delay: .24s; }
html.motion .invite .family-grid > :nth-child(3) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
    .invite .btn, .invite .reel-tab-num, .invite .rsvp-item { transition: none; }
    .invite .reel.is-live .reel-panel.is-leaving { animation: none; visibility: hidden; }
    .invite .reel.is-live.is-turning .reel-panel.is-active::before { animation: none; }
}

@media print {
    .invite .rosette, .invite .leaf, .invite .vow > img, .invite .arch { display: none; }
    .invite { background: #fff; }
}
