/* Shared composition: content scrolls within a stable viewport shell; navigation owns its own row. */
:root{--page-height:100svh;--page-top:clamp(32px,5svh,52px);--page-gap:24px}
#top .opening-arch{display:none}
.envelope-summary{height:100svh;min-height:0;padding:24px 20px;box-sizing:border-box;overflow:auto}
.envelope-summary__inner{width:100%;height:auto;min-height:0;display:flex;flex-direction:column;align-items:center;gap:16px}
.envelope-label{position:static;margin:0;font-size:11px;letter-spacing:.22em}
.opening-stage{display:flex;flex-direction:column;align-items:center;width:100%;height:auto;min-height:0;position:static;gap:20px}
.opening-names{position:static;margin:0;width:100%;height:auto;display:block}
.opening-names__arch{display:none}
.opening-names .opening-names__flat{display:block;font:400 clamp(32px,9vw,58px)/1.15 'Forum',serif;color:#4d4435}
.opening-names__flat>span{color:#9a6a2c;font-size:.8em}
.envelope-summary .envelope{position:relative;inset:auto;flex:none;margin:0;width:min(82vw,350px,max(120px,calc((100svh - 200px)*.666667)));height:auto;aspect-ratio:2/3;transform:none}
.envelope-summary .opening-date{position:static;inset:auto;margin:0;display:block;transform:none;font-size:11px;letter-spacing:.16em;line-height:1.5}
/* Do not show a second, differently scaled couple during the handoff. */
.opening-home-preview,.paper-preview{visibility:hidden!important}
#main>#top,.leaf-ready #main>section{min-height:calc(var(--page-height) - 64px);height:auto;padding:var(--page-top) 24px 24px;box-sizing:border-box;justify-content:flex-start;align-items:center;flex-direction:column}
#top .hero-stage,.leaf-ready #top .hero-stage{--couple-w:min(100%,340px,max(160px,calc((var(--page-height) - 250px)*.666667)));width:100%;display:flex;flex-direction:column;align-items:center}
#top .couple-title,.leaf-ready #top .couple-title{margin:0 auto var(--page-gap);padding:0}
#top .couple-illustration{margin:0 auto;width:var(--couple-w)}
#top .hero__details,.leaf-ready #top .hero__details{margin:var(--page-gap) auto 0;padding:0}
#top .hero__invite{font-size:clamp(16px,4.2vw,22px);line-height:1.45}
.leaf-ready #main{padding:0;margin:0 auto;width:min(100%,780px)}
.leaf-ready #main>section:after{display:none}
.leaf-ready #main>#celebration,.leaf-ready #main>#venue{display:flex}
.leaf-ready #main .label{font:400 11px/1.5 'DM Sans',sans-serif;letter-spacing:.16em;margin:0 0 8px}
.leaf-ready #celebration .section-head,.leaf-ready #venue .split__head{margin:0 auto 24px}
.leaf-ready #main h2{font-size:clamp(28px,7.5vw,40px);line-height:1.15;margin:0 0 16px}
.leaf-ready #venue .split{display:contents}
.leaf-ready #venue .split__body{display:contents}
.leaf-ready #venue .venue__address{order:1;margin:0 auto 10px;max-width:480px}
.leaf-ready #venue .venue__note{order:2;margin:0 auto 16px;max-width:480px}
.leaf-ready #venue .venue__art{order:3;width:100%;margin:0 auto 20px;max-width:520px}
.leaf-ready #venue .venue-illustration{width:100%;max-width:none;margin:0}
.leaf-ready #venue .cta-row{order:4;display:flex;flex-direction:row;gap:12px;justify-content:center;width:100%;margin:0}
.leaf-ready #venue .cta-row .button{width:auto;min-height:44px;padding:10px 12px;font-size:12px;flex:0 1 auto}
.leaf-ready #main>#rsvp{padding:var(--page-top) 24px 24px;display:flex}
.leaf-ready #rsvp .rsvp__inner{width:100%;max-width:500px;margin:0;padding:70px 22px 24px}
.leaf-ready #rsvp .rsvp__intro{margin:0 auto 18px}
.leaf-ready #rsvp .field{margin-bottom:12px}
.leaf-ready #main>#blessings{padding:var(--page-top) 20px 24px;display:flex}
.leaf-ready #blessings .prayer-lockup{position:static;transform:none;width:min(100%,440px);max-width:440px;display:grid;grid-template-columns:1fr 90px 1fr;grid-template-rows:auto auto;align-items:center;gap:6px 4px;margin:0 auto;min-height:0}
.leaf-ready #blessings .prayer-lockup__title{grid-column:1/-1;grid-row:1;margin:0;font-size:14px;position:static}
.leaf-ready #blessings .prayer-lockup__ganesha{grid-column:2;grid-row:2;width:90px;height:90px;max-height:90px;position:static;margin:0;transform:none}
.leaf-ready #blessings .prayer-lockup__left,.leaf-ready #blessings .prayer-lockup__right{position:static;transform:none;margin:0;font-size:10px;line-height:1.6;white-space:normal}
.leaf-ready #blessings .prayer-lockup__left{grid-column:1;grid-row:2}.leaf-ready #blessings .prayer-lockup__right{grid-column:3;grid-row:2}
.leaf-ready #blessings .prayer-lockup p{margin-block:0}
.leaf-ready #blessings .sacred{margin:0 0 16px}
.leaf-ready #blessings .blessings__lead,.leaf-ready #blessings .blessings__elders{margin:0 0 10px}
.leaf-ready #blessings .families{margin-top:12px;padding:10px 8px;gap:4px}
.leaf-ready #blessings .families__one{padding:0}
.leaf-ready #blessings .families__name,.leaf-ready #blessings .families__rel{margin-bottom:2px}
.leaf-ready #blessings .families__parents,.leaf-ready #blessings .families__with{margin-block:2px}
.leaf-ready #blessings .closing-wishes{margin-top:12px}
.leaf-ready #blessings .closing-wishes__lead{margin-bottom:6px}
.leaf-ready .leaf-nav{position:relative;inset:auto;display:grid;grid-template-columns:1fr 44px 1fr;align-items:center;width:min(calc(100% - 48px),440px);height:auto;min-height:64px;margin:0 auto;padding:0 0 env(safe-area-inset-bottom,0px);box-sizing:border-box;background:transparent;z-index:10}
.leaf-ready .leaf-nav:before{display:none}
.leaf-nav button{position:static;border:0!important;text-decoration:none;background:transparent;color:#876a3a;min-height:44px;padding:8px 0;display:flex;align-items:center;gap:4px;grid-row:1;touch-action:manipulation}
.leaf-nav [data-prev]{grid-column:1;justify-self:start}.leaf-nav [data-home]{grid-column:2;justify-self:center;width:44px;justify-content:center}.leaf-nav [data-next]{grid-column:3;justify-self:end;flex-direction:row-reverse}
.leaf-nav button span{font:400 11px/1.4 'DM Sans',sans-serif;letter-spacing:.08em;opacity:1}
.leaf-nav svg{width:20px;height:24px;fill:none;stroke:currentColor;stroke-width:1.2}
.leaf-nav button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-height:600px){:root{--page-top:24px;--page-gap:16px}}
@media print{.leaf-nav,.envelope-summary{display:none!important}}
#open-invitation .envelope-label,#open-invitation .opening-date{padding:0}
#open-invitation .opening-names>.opening-names__flat{font:400 clamp(32px,9vw,58px)/1.15 'Forum',serif;letter-spacing:0;white-space:nowrap;color:#4d4435}
#open-invitation .opening-names>.opening-names__flat>span{font:italic .8em/1 'Forum',serif;color:#9a6a2c}
.leaf-ready #blessings h2.blessings__lead{font:400 11px/1.5 'DM Sans',sans-serif;letter-spacing:.16em;margin:0 0 10px}
.leaf-ready #blessings .prayer-lockup__left p,.leaf-ready #blessings .prayer-lockup__right p{display:block;position:static;font-size:9px;line-height:1.8;white-space:nowrap}
#open-invitation{display:grid;place-items:center}
#open-invitation>.envelope-summary__inner{height:auto;min-height:0;align-self:center}
.leaf-ready #main>#rsvp{padding-top:0}
.leaf-ready #rsvp .rsvp__inner{padding-top:var(--page-top)}
/* Shared hero geometry is applied before and after the envelope handoff. */
#main{width:min(100%,780px);margin:0 auto}
#main>#top .hero-stage{--couple-w:min(100%,340px,max(160px,calc((var(--page-height) - 265px)*.666667)))}
/* Leaf turns own the transition; legacy scroll reveals must not hide their content. */
html.motion-on .leaf-ready #venue .venue__art,html.motion-on body.leaf-ready #venue .venue__art{opacity:1!important;transform:none!important;clip-path:none!important;animation:none!important}
html.motion-on body.leaf-ready #blessings .prayer-lockup p{opacity:1!important;transform:none!important;clip-path:none!important;animation:none!important}

/* One viewport owner. Navigation is a separate grid row, never content-flow or an overlay. */
:root{--page-height:100svh;--nav-height:64px;--page-top:clamp(32px,5svh,52px)}
@supports(height:100dvh){:root{--page-height:100dvh}}
body.leaf-ready{height:var(--page-height);overflow:hidden}
body.leaf-ready .invitation-shell{height:var(--page-height);min-height:0;display:grid;grid-template-rows:minmax(0,1fr) calc(var(--nav-height) + env(safe-area-inset-bottom,0px));overflow:hidden}
body.leaf-ready #main{height:100%;min-height:0!important;max-height:100%;overflow:hidden;position:relative;grid-row:1;align-self:stretch}
body.leaf-ready #main>section{height:100%;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-block:16px;flex-shrink:0}
body.leaf-ready #main>section>*{flex-shrink:0}
body.leaf-ready .leaf-nav{grid-row:2;height:100%;min-height:0;align-self:stretch;padding:0 0 env(safe-area-inset-bottom,0px);margin:0 auto;position:relative;background:var(--ground)}
body.leaf-ready #blessings .wrap{margin-block:0}
body.leaf-ready #venue .venue-illustration{height:auto;max-height:clamp(120px,calc(var(--page-height) - 410px),330px);width:auto;max-width:100%;object-fit:contain;display:block;margin-inline:auto}
body.leaf-ready #venue .venue__art{margin-bottom:16px}
body.leaf-ready #venue .split__head{margin-bottom:16px}
body.leaf-ready #venue .venue__note{margin-bottom:12px}
/* Keep the portrait geometry identical throughout opening and navigation. */
#main>#top .hero-stage{--couple-w:min(100%,340px,max(120px,calc((var(--page-height) - 285px)*.666667)))}
@media print{body.leaf-ready{height:auto;overflow:visible}body.leaf-ready .invitation-shell{height:auto;display:block;overflow:visible}body.leaf-ready #main,body.leaf-ready #main>section{height:auto;max-height:none;overflow:visible}}

/* Preserve the same centered header rhythm across desktop and phone. */
body.leaf-ready #venue .split__head,body.leaf-ready #venue .venue__address,body.leaf-ready #venue .venue__note{text-align:center}
body.leaf-ready #rsvp .rsvp__intro h2{font-size:clamp(28px,7.5vw,40px);line-height:1.15}

/* E6: shared top/bottom rhythm, preserving the stable viewport navigation shell. */
:root{--page-top:clamp(40px,6svh,56px);--page-bottom:24px}
body.leaf-ready #main>section{padding-bottom:var(--page-bottom)}
#main>#top{padding-top:var(--page-top)}
#main>#top .hero-stage{--couple-w:min(100%,374px,max(132px,calc((var(--page-height) - 285px)*.733333)))}
#main>#top .couple-title__text{font-weight:500;-webkit-text-stroke:.2px currentColor}
body.leaf-ready #top .hero__details{margin-top:auto;padding-top:18px}
body.leaf-ready #top .hero__invite{margin:0}
body.leaf-ready #celebration .day__inner{display:flex;flex-direction:column;min-height:100%;width:100%;margin:0 auto}
body.leaf-ready #celebration .day__body{display:flex;flex-direction:column;align-items:center;flex:1}
body.leaf-ready #celebration .cta-row{margin-top:auto;padding-top:20px;margin-bottom:0}
body.leaf-ready #celebration .cta-row .button{border:1px solid #c9c3b8;background:#fffdf8;color:#3c4043;border-radius:6px;box-shadow:0 1px 3px #43351a12;min-height:44px;padding:12px 22px;font:500 14px/1.3 'DM Sans',sans-serif;letter-spacing:0;text-transform:none}
body.leaf-ready #celebration .cta-row .button:after,body.leaf-ready #celebration .cta-row:before{display:none}
.sketch-time{display:flex;justify-content:center;align-items:center;gap:8px}
.time-icon{width:22px;height:22px;fill:none;stroke:#a77b3f;stroke-width:1.3;flex:none}
body.leaf-ready #venue .cta-row{margin-top:auto;padding-top:12px}
body.leaf-ready #venue .venue__art{flex:1 1 auto;min-height:100px;display:flex;align-items:center;justify-content:center;margin-bottom:0}
body.leaf-ready #venue .cta-row .button{background:#fffdf6;color:#644724;border:1px solid #c5ae82;border-radius:5px;gap:8px;box-shadow:0 1px 3px #43351a0c;padding:10px 14px}
body.leaf-ready #venue .cta-row .button:after{display:none}
body.leaf-ready #main>#rsvp{padding-top:24px}
body.leaf-ready #rsvp .rsvp__inner{padding-top:calc(var(--page-top) - 24px)}
body.leaf-ready #rsvp .stepper{width:100%;grid-template-columns:48px minmax(0,1fr) 48px}
body.leaf-ready #rsvp .field__label--people:before,body.leaf-ready #rsvp .field__label--sides:before{content:'';display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:8px;background:currentColor;mask:url('/assets/icons/people-ochre-v7.svg') center/contain no-repeat;-webkit-mask:url('/assets/icons/people-ochre-v7.svg') center/contain no-repeat}
body.leaf-ready #blessings .prayer-lockup{grid-template-columns:1fr 74px 1fr;gap:0 4px}
body.leaf-ready #blessings .prayer-lockup__ganesha{width:74px;height:74px;max-height:74px}
body.leaf-ready #blessings .sacred{margin-bottom:12px}
body.leaf-ready #blessings .blessings__elders strong{font-weight:600}
body.leaf-ready #blessings .families__with{font:400 10px/1.5 'DM Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;margin:8px 0;color:inherit}
body.leaf-ready #blessings .families__with:before,body.leaf-ready #blessings .families__with:after{display:none}
@media(max-height:620px){:root{--page-top:32px;--page-bottom:16px}}

.service-icon{width:24px;height:24px;object-fit:contain;flex:none}

:root{--page-top:clamp(48px,7svh,56px)}
#main>#top .couple-title,.leaf-ready #top .couple-title{margin-bottom:0}
body.leaf-ready #rsvp .side-choice{align-items:center}
body.leaf-ready #rsvp .side-choice span{display:block;min-height:0;line-height:1.35}
body.leaf-ready #rsvp .side-choice input{margin:0;flex:0 0 auto;align-self:center}
@media(max-height:620px){:root{--page-top:32px}}

body.leaf-ready #blessings .blessings__inner{width:100%;max-width:520px}
body.leaf-ready #blessings .families{width:100%;max-width:440px;min-width:0;margin-inline:auto}
body.leaf-ready #blessings .blessings__elders strong{font-synthesis:weight}

/* E7: intrinsic layout corrections, not per-screen offsets. */
body.leaf-ready #celebration .day__inner{padding:0;min-width:0;max-width:100%;min-height:100%}
body.leaf-ready #celebration .day__body{width:100%;min-width:0;max-width:100%;margin:0;padding:0}
body.leaf-ready #celebration .generated-calendar{width:min(100%,270px);margin:0 auto 16px;flex:none}
body.leaf-ready #celebration .generated-calendar img{display:block;margin:auto}
body.leaf-ready #celebration .sketch-time{margin:0 0 8px}
body.leaf-ready #celebration .sketch-date-venue{margin:0;display:flex;align-items:center;justify-content:center;gap:8px}
body.leaf-ready #celebration .sketch-date-venue__icon{display:none}
body.leaf-ready #celebration .sketch-date-venue:before{content:'';width:22px;height:22px;flex:none;background:#a77b3f;mask:url('/assets/icons/pin.svg') center/contain no-repeat;-webkit-mask:url('/assets/icons/pin.svg') center/contain no-repeat}
body.leaf-ready #celebration .cta-row{width:100%;justify-content:center;margin-top:auto;padding-top:16px}
body.leaf-ready #celebration .cta-row .button{width:min(100%,320px)}
body.leaf-ready #main .cta-row .button,body.leaf-ready #rsvp .rsvp-form__actions .button{height:48px;min-height:48px;box-sizing:border-box;padding-block:10px;line-height:1.3;display:flex;align-items:center;justify-content:center}
body.leaf-ready #venue .venue__art{overflow:visible;flex:1 0 auto;min-height:0;padding-block:8px}
body.leaf-ready #venue .venue-illustration{height:auto;max-height:none;max-width:100%}
body.leaf-ready #venue .venue-illustration img{display:block;max-height:clamp(100px,calc(var(--page-height) - 470px),280px);height:auto;width:auto;max-width:100%;object-fit:contain;margin:auto}
body.leaf-ready #venue .venue__note,body.leaf-ready #venue .venue__address,body.leaf-ready #venue .split__head{text-align:center}
body.leaf-ready #rsvp .rsvp__inner{min-height:100%;display:flex;flex-direction:column}
body.leaf-ready #rsvp .rsvp-form{flex:1;display:flex;flex-direction:column;width:100%;margin:0}
body.leaf-ready #rsvp .rsvp-form__fields{flex:1;display:flex;flex-direction:column;width:100%;min-width:0}
body.leaf-ready #rsvp .field{padding:0;margin:0 0 16px;width:100%;min-width:0}
body.leaf-ready #rsvp .field__label{display:block;margin:0 0 8px;padding:0;line-height:1.4}
body.leaf-ready #rsvp .field__input--textarea{min-height:52px}
body.leaf-ready #rsvp .field__label--people:before{mask-image:url('/assets/icons/count-grid.svg');-webkit-mask-image:url('/assets/icons/count-grid.svg')}
body.leaf-ready #rsvp .field__label--sides:before{mask-image:url('/assets/icons/heart-side.svg');-webkit-mask-image:url('/assets/icons/heart-side.svg')}
body.leaf-ready #rsvp .rsvp-form__actions{margin-top:auto;padding-top:12px}
body.leaf-ready #rsvp .side-choice{position:relative;min-height:56px;justify-content:center;text-align:center;padding:8px 6px}
body.leaf-ready #rsvp .side-choice input{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%)}
body.leaf-ready #rsvp .side-choice span{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center}
body.leaf-ready #rsvp .side-choice b{font-weight:500;font-size:14px;line-height:1.2}
body.leaf-ready #rsvp .side-choice small{font-size:10px;line-height:1.3;opacity:.85}
body.leaf-ready #rsvp .side-choice:has(input:checked){background:#d9bd8333;border-color:#ead7b0;box-shadow:inset 0 0 0 1px #ead7b0}
body.leaf-ready #rsvp .side-choice:focus-within{outline:2px solid #ead7b0;outline-offset:3px}
body.leaf-ready #blessings .prayer-lockup{grid-template-columns:1fr 64px 1fr;gap:0 4px}
body.leaf-ready #blessings .prayer-lockup__ganesha{width:64px;height:64px;max-height:64px}
body.leaf-ready #blessings .families{padding-block:18px;margin-top:18px}
body.leaf-ready #blessings .families__with{display:flex;align-items:center;justify-content:center;gap:14px;margin:14px 0}
body.leaf-ready #blessings .families__with:before,body.leaf-ready #blessings .families__with:after{content:'';display:block;position:static;width:40px;height:1px;background:#c8ab76;transform:none}
body.leaf-ready #blessings .closing-wishes{margin-top:24px}
@media(prefers-reduced-motion:no-preference){.leaf-nav [data-next]:not(:disabled) svg{animation:next-nudge 2.8s ease-in-out infinite}@keyframes next-nudge{0%,60%,100%{transform:translateX(0)}72%{transform:translateX(3px)}84%{transform:translateX(0)}}}
/* Grow from the shoes upward, without changing the text baseline. */
#main>#top .couple-illustration img{transform:scale(1.025);transform-origin:center bottom}

/* E8: tactile actions and deliberately compact form composition. */
body.leaf-ready #main .cta-row .button,body.leaf-ready #rsvp .rsvp-form__actions .button{height:52px;min-height:52px;border-radius:7px;box-shadow:0 3px 0 #b3955e55,0 6px 12px #59411a12;background:linear-gradient(160deg,#fffefb,#f6ebd5);border:1px solid #c4ab79;transition:transform .18s,box-shadow .18s}
body.leaf-ready #main .cta-row .button:before,body.leaf-ready #main .cta-row .button:after,body.leaf-ready #rsvp .rsvp-form__actions .button:before,body.leaf-ready #rsvp .rsvp-form__actions .button:after{display:none!important;content:none!important}
body.leaf-ready #main .cta-row .button:active,body.leaf-ready #rsvp .rsvp-form__actions .button:active{transform:translateY(2px);box-shadow:0 1px 0 #b3955e55}
body.leaf-ready #rsvp .rsvp-form__actions .button{background:linear-gradient(150deg,#9d6d2d,#75501e);color:#fff6e3}
#main>#top .couple-illustration img{transform:scale(1.05);transform-origin:center bottom}
body.leaf-ready #main>#rsvp{padding-top:36px}
body.leaf-ready #rsvp .rsvp__inner{min-height:0;flex:none;padding-top:56px;padding-bottom:22px}
body.leaf-ready #rsvp .rsvp-form,body.leaf-ready #rsvp .rsvp-form__fields{flex:0}
body.leaf-ready #rsvp .rsvp__intro{margin-bottom:18px}
body.leaf-ready #rsvp .field{margin-bottom:14px}
body.leaf-ready #rsvp .field__label{margin-bottom:8px}
body.leaf-ready #rsvp .rsvp-form__actions{margin-top:8px;padding-top:0}
body.leaf-ready #rsvp .field--side{margin-bottom:14px}
body.leaf-ready #blessings .prayer-lockup{grid-template-columns:1fr 56px 1fr;row-gap:0}
body.leaf-ready #blessings .prayer-lockup__ganesha{width:56px;height:56px;max-height:56px;margin-top:-4px}
body.leaf-ready #blessings .prayer-lockup__left,body.leaf-ready #blessings .prayer-lockup__right{margin-top:-4px}
body.leaf-ready #blessings .families{width:calc(100% - 24px);max-width:400px;background:radial-gradient(ellipse at 35% 0%,#ffffffee 0%,#fffdf8b0 35%,#fffcf577 80%);box-shadow:0 -10px 24px #fff9e999}
@media(prefers-reduced-motion:no-preference){
 body.leaf-ready #celebration.leaf-current .generated-calendar img{animation:calendar-light 4.4s ease-in-out 1;transform-origin:center bottom}
 body.leaf-ready #top.leaf-current .hero-stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 20% 15%,#fff6d455,transparent 65%);mix-blend-mode:soft-light;animation:sunlight-pass 4.6s ease-out 1}
 @keyframes calendar-light{0%,100%{transform:rotate(0deg);filter:brightness(1)}40%{transform:rotate(-.65deg);filter:brightness(1.035)}70%{transform:rotate(.3deg)}}
 @keyframes sunlight-pass{0%{opacity:0;transform:translateX(-12px)}40%{opacity:.8}100%{opacity:0;transform:translateX(20px)}}
}
body.leaf-ready #main .cta-row .button{outline:none}
body.leaf-ready #main .cta-row .button:focus-visible{outline:2px solid #6a4d20;outline-offset:4px}
body.leaf-ready #rsvp .field{gap:0}
body.leaf-ready #venue .venue-illustration img{max-height:clamp(100px,calc(var(--page-height) - 490px),280px)}
body.leaf-ready #blessings .families__with{margin-block:12px}

/* E9: readable confirmation and restrained highlights, no new backdrop ornament. */
body.leaf-ready #celebration .generated-calendar{position:relative;isolation:isolate}
body.leaf-ready #celebration .generated-calendar:after{content:'';position:absolute;inset:5% -12%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#fff 0%,#ffffffb0 40%,transparent 72%)}
body.leaf-ready #rsvp .rsvp-form__status{font:400 14px/1.45 'DM Sans',sans-serif;letter-spacing:0;text-align:center;margin:12px 0 0;padding:0;color:inherit;max-width:100%;overflow-wrap:anywhere}
body.leaf-ready #rsvp .rsvp-form__status:empty{display:none}
body.leaf-ready #rsvp .rsvp-form__detail{font:400 12px/1.45 'DM Sans',sans-serif;margin:8px 0 0}
body.leaf-ready #blessings .families{width:calc(100% - 40px);max-width:376px;box-shadow:0 5px 14px #74502014,0 -8px 20px #ffffff77}
body.leaf-ready #blessings .families__name{text-shadow:0 1px 0 #fff8dd,0 2px 1px #9d734033,0 3px 4px #75532618}
body.leaf-ready #blessings .blessings__elders{background:radial-gradient(ellipse,#ffffffe6 0%,#ffffff66 45%,transparent 72%)}

/* E10: restrained Ajrakh-inspired corners and filtered-light motion.
   Source direction: Dhriti deck cloth/light pp2–3, restrained edge rhythm pp8–9.
   These are original geometric accents, not copied motifs or changed event facts. */
body.leaf-ready #top:before{content:'';display:block!important;position:absolute;inset:20px 14px auto;width:auto;height:46px;transform:none;opacity:.44;background:url('/assets/ornament/ajrakh-corner-e10.svg') left top/46px 46px no-repeat,url('/assets/ornament/ajrakh-corner-right-e10.svg') right top/46px 46px no-repeat;pointer-events:none}
body.leaf-ready #celebration .generated-calendar:after{inset:-12% -28%;background:radial-gradient(ellipse,#fff 0%,#ffffffd9 30%,#ffffff77 52%,transparent 73%);filter:blur(3px)}
body.leaf-ready #venue .venue__art{position:relative;isolation:isolate;transform:translateY(18px);margin-bottom:-26px}
body.leaf-ready #venue .venue__art:before{content:'';position:absolute;inset:-18% -8%;background:radial-gradient(ellipse,#fffffff0 0%,#ffffff88 42%,transparent 72%);z-index:-1;pointer-events:none}
body.leaf-ready #venue .venue-illustration{width:100%;max-width:100%}
body.leaf-ready #venue .venue-illustration img{width:100%;height:auto;max-height:clamp(130px,calc(var(--page-height) - 440px),320px);object-fit:contain}
body.leaf-ready #venue .cta-row{position:relative;z-index:2}
body.leaf-ready #rsvp .rsvp__intro{position:relative;isolation:isolate}
body.leaf-ready #rsvp .rsvp__intro:before{content:'';position:absolute;inset:-40px -12px -8px;z-index:-1;background:radial-gradient(ellipse at 50% 0%,#fff7da38,transparent 72%);pointer-events:none}
body.leaf-ready #rsvp .rsvp-form__actions .button{position:relative;overflow:hidden;background-image:linear-gradient(110deg,transparent 30%,#fff9e546 45%,transparent 60%),linear-gradient(150deg,#9d6d2d,#75501e);background-size:250% 100%,100% 100%;background-position:140% 0,0 0}
body.leaf-ready #blessings .blessings__elders{position:relative;isolation:isolate;background:none}
body.leaf-ready #blessings .blessings__elders:before{content:'';position:absolute;inset:-30px -12px -24px;z-index:-1;background:radial-gradient(ellipse at 50% 10%,#fffffff7 0%,#ffffffaa 42%,transparent 75%);filter:blur(5px);pointer-events:none}
body.leaf-ready #blessings .families{background:linear-gradient(150deg,#fff,#fffdf9);border:1px solid #d7c3a075;border-radius:10px;box-shadow:0 3px 0 #d7c3a02e,0 8px 18px #74502013;overflow:hidden}
body.leaf-ready #blessings .families:before,body.leaf-ready #blessings .families:after{display:none!important;content:none!important}
body.leaf-ready #blessings .closing-wishes__names{font-weight:600;font-synthesis:weight;text-shadow:0 .15px 0 currentColor}
@media(max-width:359px){body.leaf-ready #top:before{height:28px;background-size:28px 28px;inset-inline:10px}}
@media(prefers-reduced-motion:no-preference){
 body.leaf-ready #rsvp.leaf-current .rsvp-form__actions .button:not(:disabled){animation:reply-shine 3.6s ease-out 1}
 body.leaf-ready #celebration.leaf-current .generated-calendar:after,body.leaf-ready #venue.leaf-current .venue__art:before,body.leaf-ready #blessings.leaf-current .blessings__elders:before{animation:light-breathe 4.6s ease-in-out 1}
 @keyframes reply-shine{0%,20%{background-position:140% 0,0 0}75%,100%{background-position:-60% 0,0 0}}
 @keyframes light-breathe{0%{opacity:.4}45%{opacity:1}100%{opacity:.8}}
}
/* The opaque map buttons sit in front of the architectural lower edge. */
body.leaf-ready #venue .venue__art{transform:translateY(42px)}
body.leaf-ready #blessings .closing-wishes{margin-top:22px}
body.leaf-ready #venue .venue__art{align-items:flex-end;padding-bottom:0;transform:translateY(58px)}
html.motion-on body.leaf-ready #venue .venue__art,body.leaf-ready #venue .venue__art{transform:translateY(26px)!important}
body.leaf-ready #venue .cta-row{isolation:isolate;z-index:4}
body.leaf-ready #venue .cta-row .button{position:relative;z-index:1;background:#fffcf3!important;opacity:1;mix-blend-mode:normal}

/* E11: ornaments belong to the opening screen, never beside the hero name. */
body.leaf-ready #top:before{display:none!important;content:none!important}
body.leaf-ready #top .couple-title__text{font-size:clamp(34px,8.7vw,48px)}
body.leaf-ready #top .couple-title{padding-top:8px}
body.leaf-ready #venue .venue__note{margin-top:14px;margin-bottom:12px}
body.leaf-ready #venue .venue-illustration img{max-height:clamp(180px,calc(var(--page-height) - 360px),400px)}
body.leaf-ready #rsvp .rsvp__intro:before{display:none;content:none}
body.leaf-ready #rsvp .rsvp__inner:before{background:radial-gradient(ellipse 100% 50% at 50% 0%,#fff1ca38,transparent 72%),url('/assets/ornament/leather-v21.svg') 0 0/128px 128px,var(--rsvp-ground)}
body.leaf-ready #main>#blessings{background:radial-gradient(ellipse 100% 60% at 50% 0%,#ffffffdd 0%,#ffffff55 42%,transparent 78%),var(--ground)}
body.leaf-ready #blessings .blessings__elders:before{display:none;content:none}
body.leaf-ready #blessings .families{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible;position:relative;isolation:isolate}
body.leaf-ready #blessings .families:before{content:''!important;display:block!important;position:absolute;inset:0;z-index:-1;background:url('/assets/ornament/family-concave-e11.svg') center/100% 100% no-repeat;border:0;border-image:none;filter:drop-shadow(0 5px 6px #6b4b2020);pointer-events:none}
body.leaf-ready #blessings .closing-wishes__names{font-size:clamp(17px,4.4vw,21px);font-weight:600;line-height:1.4}
body.leaf-ready #main .cta-row .button,body.leaf-ready #rsvp .rsvp-form__actions .button{position:relative;overflow:hidden}
body.leaf-ready #main .cta-row .button:after,body.leaf-ready #rsvp .rsvp-form__actions .button:after{content:''!important;display:block!important;position:absolute;inset:0;border:0;outline:0;background:linear-gradient(110deg,transparent 25%,#fff9e655 50%,transparent 75%);pointer-events:none;transform:translateX(-140%);opacity:0}
@media(prefers-reduced-motion:no-preference){
 body.leaf-ready .leaf-current .cta-row .button:after,body.leaf-ready #rsvp.leaf-current .rsvp-form__actions .button:not(:disabled):after{animation:cta-sweep 4.4s ease-in-out infinite}
 .leaf-nav [data-prev]:not(:disabled) svg{animation:back-nudge 3.5s ease-in-out infinite}
 .leaf-nav [data-home] img{animation:home-breathe 4s ease-in-out infinite}
 @keyframes cta-sweep{0%,35%{transform:translateX(-140%);opacity:0}40%{opacity:1}65%{transform:translateX(140%);opacity:0}100%{transform:translateX(140%);opacity:0}}
 @keyframes back-nudge{0%,60%,100%{transform:translateX(0)}75%{transform:translateX(-2px)}}
 @keyframes home-breathe{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.08);opacity:1}}
}
@media(prefers-reduced-motion:reduce){body.leaf-ready #main .cta-row .button:after,body.leaf-ready #rsvp .rsvp-form__actions .button:after{display:none!important}}
body.leaf-ready #venue .venue-illustration img{width:110%;max-width:none;margin-left:-5%}

/* RSVP phone field replaces the side choice; consistent field rhythm. */
body.leaf-ready #rsvp .field__label--phone:before{content:'';display:inline-block;vertical-align:middle;width:18px;height:18px;margin-right:8px;background:currentColor;mask:url('/assets/icons/phone.svg') center/contain no-repeat;-webkit-mask:url('/assets/icons/phone.svg') center/contain no-repeat}

/* Adults and kids share the previous count row. */
body.leaf-ready #rsvp .rsvp-counts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:100%}
body.leaf-ready #rsvp .rsvp-counts .stepper{grid-template-columns:40px minmax(24px,1fr) 40px}
body.leaf-ready #rsvp .rsvp-counts .stepper__btn{min-width:40px}
