body:not([data-stage="guest"]) header{position:absolute;top:42px;right:24px;border:0;padding:0;z-index:5}
body:not([data-stage="guest"]) header .monogram,body:not([data-stage="guest"]) .header-date,body:not([data-stage="guest"]) footer{display:none}
body:not([data-stage="guest"]) main{min-height:calc(100svh - 35px);display:grid;place-items:center}
.invitation-stage{position:relative;width:min(1254px,100vw,calc(100svh - 35px));aspect-ratio:1;color:#8e671f;transition:width .9s ease;container-type:inline-size}
.card-art{position:absolute;left:50%;top:50%;width:100%;aspect-ratio:1;transform:translate(-50%,-50%);background:url('botanical-paper-login-v2.png') center/contain no-repeat;pointer-events:none;transition:width 1.1s cubic-bezier(.2,.75,.2,1),opacity 1.1s ease}
.card-details{position:absolute;inset:0;text-align:center;transition:opacity .5s ease}
.save-date{position:absolute;top:27%;width:100%;font:500 5.5cqw 'Cormorant Garamond',Georgia,serif;letter-spacing:.18em}
.card-date{position:absolute;top:41%;width:100%;font:500 4.7cqw 'Cormorant Garamond',Georgia,serif;letter-spacing:.18em}
.card-date:before,.card-date:after{content:'';display:block;width:32%;height:1px;background:#a1854f;margin:2.5cqw auto}
.moving-names{position:absolute;left:50%;top:54%;transform:translate(-50%,0);margin:0;white-space:nowrap;font:italic 500 8cqw/1.2 'Cormorant Garamond',Georgia,serif;letter-spacing:-.035em;transition:top .95s cubic-bezier(.2,.75,.2,1),left .95s cubic-bezier(.2,.75,.2,1),transform .95s cubic-bezier(.2,.75,.2,1),font-size .95s cubic-bezier(.2,.75,.2,1)}
.moving-names span{font-size:.7em;padding:0 .08em}
.moving-names a{color:inherit;text-decoration:none;border-radius:4px}
input,textarea,select,.primary,.secondary,.choices button{border-radius:10px}
.card-logistics{position:absolute;top:69%;width:100%;font:500 2.5cqw/1.8 'Cormorant Garamond',Georgia,serif;text-transform:uppercase;letter-spacing:.17em}
.closer{position:absolute;right:5%;bottom:5%;font-size:clamp(11px,1.5cqw,17px);text-decoration:none;border:1px solid #a1854f;border-radius:10px;background:#fffdf5d9;padding:14px 20px;transition:opacity .3s,background .2s}
.closer:hover{background:#eee9db}
.closer span{margin-left:12px}
.invitation-stage.opened{width:min(1254px,100vw);height:calc(100svh - 35px);min-height:440px;aspect-ratio:auto}
.opened .card-art{width:min(660px,100%);opacity:.45}.opened .card-details,.opened .closer{opacity:0;visibility:hidden;pointer-events:none}
.opened .moving-names{left:32px;top:24px;transform:translate(0,0);font-size:30px}
.login-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 48px));color:var(--green);animation:login-reveal .8s .3s both}
.login-panel label{font-weight:400;font-size:13px;margin-top:0}.login-panel .error:empty{display:none}.login-panel .primary{margin-top:14px}
@keyframes login-reveal{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@media(max-width:600px){body:not([data-stage="guest"]) header{top:58px;right:18px}.opened .moving-names{left:20px;top:30px;font-size:25px}.invitation-stage.opened{height:calc(100svh - 50px)}.invitation-stage{width:100vw}.closer{right:6%;bottom:4%}.languages{gap:8px}.languages button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.invitation-stage,.moving-names,.card-art,.card-details,.closer{transition:none}.login-panel{animation:none}}

.welcome{padding:110px 60px 85px;min-height:480px;display:flex;flex-direction:column;justify-content:center}.welcome .greeting{font:400 46px/1.2 "Cormorant Garamond",Georgia,serif;margin:0 auto 18px}.welcome p.welcome-line{font-size:17px;max-width:640px;margin:0 auto;padding:8px 16px;border-radius:10px}.facts{background:none;gap:12px;width:100%;margin:35px auto}.facts div{background:#fffdf5c9;border:1px solid #d7dacb;border-radius:10px;padding:18px 14px;display:flex;flex-direction:column;justify-content:center;gap:5px}.facts div:last-child{border:1px solid #d7dacb}.guest-nav{background:none;gap:16px;flex-wrap:wrap;margin-bottom:0}.guest-nav a{font-size:14px;padding:16px 26px;border:1px solid var(--green);border-radius:10px;min-width:190px}.guest-nav .primary{color:#fffdf5}.guest-nav .secondary{background:#fffdf5cc}.rsvp{border-radius:14px;margin-top:30px}.rsvp>.section-title{margin:8px 0}.faq .section-title{font-size:40px}.success{border-radius:10px}@media(max-width:720px){.welcome{padding:75px 20px 50px;min-height:440px}.welcome .greeting{font-size:36px}.welcome p.welcome-line{font-size:15px;max-width:100%}.facts{gap:7px}.facts div{padding:14px 6px}.facts strong{font-size:18px}.facts span{font-size:8px;letter-spacing:.08em}.guest-nav{gap:10px}.guest-nav a{font-size:13px;padding:14px 16px;min-width:0}.faq .section-title{font-size:34px}}


/* Preserve the invitation artwork: square canvas, proportional image scaling. */
.welcome{width:min(1040px,100%);aspect-ratio:1;min-height:0;padding:clamp(24px,6vw,60px);background-size:100% 100%,contain;background-position:center;background-repeat:no-repeat}
@media(max-width:720px){.welcome{aspect-ratio:1;min-height:0;padding:32px 18px}.welcome .greeting{font-size:clamp(28px,7vw,36px)}.welcome p.welcome-line{padding:6px 10px}.facts{margin:24px auto}.guest-nav a{padding:13px 14px}}


/* Requested invitation type alignment; opened-login name styling stays unchanged. */
.invitation-stage:not(.opened) .moving-names,.save-date,.card-date{font:500 4.7cqw/1.2 "Cormorant Garamond",Georgia,serif;letter-spacing:.18em;text-align:center}
.save-date{top:32.86%;height:5.64cqw}
.card-date{top:41%;height:10.64cqw;padding:2.5cqw 0}
.card-date:before,.card-date:after{position:absolute;left:34%;width:32%;margin:0;height:1px}
.card-date:before{top:0}.card-date:after{bottom:0}
.invitation-stage:not(.opened) .moving-names{top:54.14%}
.invitation-stage:not(.opened) .moving-names span{font-size:1em;padding:0}
.card-logistics{font-variant-numeric:lining-nums}


/* Shared, separate transparent bouquets. Their original scale is preserved:
   778 x 627 cropped from the approved 1254 x 1254 canvas. */
.card-art{background:none}
.welcome{background-image:none;isolation:isolate}
.card-art::before,.card-art::after,.welcome::before,.welcome::after{
  content:"";position:absolute;width:62.0414673%;aspect-ratio:778 / 627;
  background:center/contain no-repeat;pointer-events:none;
}
.card-art::before,.welcome::before{
  left:0;bottom:0;background-image:url("ornament-lower-left.png");
}
.card-art::after,.welcome::after{
  right:0;top:0;background-image:url("ornament-upper-right.png");
}
.welcome::before,.welcome::after{z-index:-1;opacity:.4666667}

/* Opening invitation follows the viewport; each bouquet keeps its own ratio. */
body[data-stage="prelude"]{height:100svh;overflow:hidden}
body[data-stage="prelude"] main{height:100%;min-height:0}
.invitation-stage:not(.opened){width:100%;height:100svh;aspect-ratio:auto}
.invitation-stage:not(.opened) .card-art{left:0;top:76px;transform:none;width:100%;height:calc(100% - 76px);aspect-ratio:auto}
.invitation-stage:not(.opened) .card-art::before,
.invitation-stage:not(.opened) .card-art::after{width:min(62.0414673vw,62.0414673svh)}
.invitation-stage:not(.opened) .save-date,
.invitation-stage:not(.opened) .card-date,
.invitation-stage:not(.opened) .moving-names{font-size:4.7vmin}
.invitation-stage:not(.opened) .save-date{height:5.64vmin}
.invitation-stage:not(.opened) .card-date{height:10.64vmin;padding:2.5vmin 0}
.invitation-stage:not(.opened) .card-logistics{top:calc(54.14% + 11vmin - 5px);font-size:2.5vmin}

/* Login uses the same corner anchoring as the opening invitation. */
body:not([data-stage="guest"]){height:100svh;overflow:hidden}
body:not([data-stage="guest"]) main{height:100svh;min-height:0}
.invitation-stage.opened{width:100%;height:100svh;min-height:0}
.opened .card-art{left:0;top:76px;transform:none;width:100%;height:calc(100% - 76px);aspect-ratio:auto}
.opened .card-art::before,.opened .card-art::after{width:min(62.0414673vw,62.0414673svh)}

/* Lower the opening text group on portrait phones, keeping its internal gaps. */
@media(max-width:600px) and (orientation:portrait){
 .invitation-stage:not(.opened) .card-details,
 .invitation-stage:not(.opened) .moving-names{translate:0 min(4svh,34px)}
}

