/* An airy paper invitation, extending the established design. */
.cover .cover-inner{min-height:calc(100svh - 65px);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;padding:30px 24px 38px;max-width:900px}
.cover h1.cover-vow{font:clamp(29px,5vw,40px)/1.2 Allura,Georgia,serif;letter-spacing:0;color:var(--ink);margin:10px auto 18px;max-width:100%;text-wrap:balance}
.cover .living-watercolor{position:relative;width:100%;max-width:700px;margin:0 auto 10px;aspect-ratio:3/2;max-height:370px;isolation:isolate;-webkit-mask-image:radial-gradient(ellipse,#000 40%,transparent 75%);mask-image:radial-gradient(ellipse,#000 40%,transparent 75%)}
.cover .living-watercolor>img{height:100%;width:100%;min-height:0;object-fit:contain;filter:saturate(.76) contrast(.91) brightness(1.07);mask-image:none;-webkit-mask-image:none}
.color-wash{display:none;position:absolute;inset:0;width:100%;height:100%;filter:saturate(.76) contrast(.91) brightness(1.07)}
.intro-ready .living-watercolor>img{filter:grayscale(1) contrast(.4) brightness(1.25);opacity:.45}
.intro-ready .color-wash{display:block}.color-wash path{stroke-dasharray:1;stroke-dashoffset:1}
.intro-running .color-wash path{animation:paint-wash 2.5s ease-in-out 1.1s forwards}.intro-running .color-wash path+path{animation-delay:1.3s}
@keyframes paint-wash{to{stroke-dashoffset:0}}
.intro-ready .cover-vow,.intro-ready #personal-invitation,.intro-ready .cover-sub,.intro-ready .cover-bottom{opacity:0;clip-path:inset(-15% 100% -15% -8%)}
.intro-running .cover-vow,.intro-running #personal-invitation,.intro-running .cover-sub,.intro-running .cover-bottom{animation:letter-reveal .85s ease-out forwards;animation-delay:3.6s}
.intro-running #personal-invitation{animation-delay:3.85s}.intro-running .cover-bottom{animation-delay:4.05s}
@keyframes letter-reveal{to{opacity:1;clip-path:inset(-15% -8% -15% -8%)}}
.butterfly{position:absolute;width:25px;height:25px;z-index:3;opacity:0;filter:drop-shadow(0 2px 2px #45607b66);pointer-events:none}
.butterfly i,.butterfly b{position:absolute;width:13px;height:24px;top:0;background:linear-gradient(130deg,#fff 55%,#dce5e9);border-radius:80% 25% 65% 35%;transform-origin:100% 50%;animation:wing .22s ease-in-out infinite alternate}
.butterfly b{left:12px;transform-origin:0 50%;border-radius:25% 80% 35% 65%;animation-delay:-.11s}
@keyframes wing{to{transform:rotateY(65deg)}}
.intro-running .butterfly-one{animation:flight-one 2.5s ease-in-out 1.1s both}.intro-running .butterfly-two{animation:flight-two 2.5s ease-in-out 1.3s both}
@keyframes flight-one{0%{left:0%;top:28%;opacity:0;transform:rotate(30deg)}15%{opacity:1}40%{left:40%;top:12%;transform:rotate(70deg)}75%{left:73%;top:29%;transform:rotate(100deg)}92%{opacity:1}100%{left:96%;top:40%;opacity:0;transform:rotate(75deg)}}
@keyframes flight-two{0%{left:96%;top:64%;opacity:0;transform:rotate(-40deg)}15%{opacity:1}40%{left:63%;top:80%;transform:rotate(-65deg)}70%{left:30%;top:59%;transform:rotate(-100deg)}92%{opacity:1}100%{left:0%;top:79%;opacity:0;transform:rotate(-55deg)}}
html.envelope-locked{overflow:hidden}.envelope-stage{position:fixed;inset:0;z-index:1100;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fdfaf6;padding:28px;perspective:1400px;transition:opacity .6s ease,visibility .6s;gap:28px}
.envelope-stage.leaving{opacity:0;visibility:hidden;pointer-events:none}.envelope-caption{font:25px/1.3 Allura,Georgia,serif;text-align:center}.envelope-instruction{font-size:12px;letter-spacing:.8px;text-align:center}
.envelope{position:relative;width:min(540px,90vw);aspect-ratio:1.5;background:#e9e2d6;box-shadow:0 15px 45px #344f6a15;border:1px solid #e1dbd1;border-radius:3px;perspective:1300px}
.envelope-letter{position:absolute;inset:10px 12px;background:#fffdf8;border:1px solid #e7e2d9;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:transform 1s cubic-bezier(.25,.5,.25,1);box-shadow:0 1px 10px #344f6a0a}.envelope-letter p{font-size:13px;letter-spacing:2px}.envelope-letter img{width:70%;mix-blend-mode:multiply}
.envelope-pocket{position:absolute;inset:0;background:linear-gradient(35deg,#eee8de,#fbf8f1);clip-path:polygon(0 0,50% 58%,100% 0,100% 100%,0 100%);z-index:3}
.envelope-pocket:after{content:'';position:absolute;inset:0;background:#f8f4eb;clip-path:polygon(0 100%,50% 48%,100% 100%);filter:drop-shadow(0 -1px 1px #bdb3a6)}
.envelope-flap{position:absolute;inset:0;z-index:5;transform-origin:50% 0;transition:transform 1s ease;backface-visibility:hidden;background:linear-gradient(165deg,#fffdf8,#ebe5da);clip-path:polygon(0 0,100% 0,50% 59%)}
.envelope-seal{position:absolute;z-index:6;top:44%;left:calc(50% - 33px);width:66px;height:66px;background:#fcfaf4;border:1px solid #ded8cc;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 9px #344f6a12;transition:opacity .25s}
.envelope-seal img{width:56px;mix-blend-mode:multiply;opacity:.78}.envelope-stage.opening .envelope-flap{transform:rotateX(175deg)}.envelope-stage.opening .envelope-seal{opacity:0}.envelope-stage.opening .envelope-letter{transform:translateY(-18%) rotate(-2deg);transition-delay:.3s}.envelope-stage.opening .envelope{transform:translateY(20px);transition:transform 1.2s}
.envelope-open{position:absolute;inset:0;border:0;background:transparent;z-index:7;width:100%;height:100%;border-radius:3px}.envelope-open:focus-visible{outline:3px solid #7395b2;outline-offset:10px}
#invitation{min-height:0;padding:70px 24px 65px}#invitation .couple-names{font:clamp(65px,12vw,90px)/.95 Allura,Georgia,serif;display:flex;flex-direction:column;align-items:center;gap:2px;margin:0 auto 35px;letter-spacing:0}#invitation .couple-names .name-amp{font-size:30px;color:#839fbb;line-height:1.2}
.countdown-card{position:relative;width:min(100%,430px);margin:0 auto;padding:27px 20px 22px;background:#fffdf8;border:1px solid #e8e5dd;box-shadow:0 7px 22px #344f6a0c;isolation:isolate}.countdown-card:before,.countdown-card:after{content:'❧';position:absolute;font:48px Georgia;color:#91a7aa;opacity:.45;top:-19px;right:5px;transform:rotate(-25deg)}.countdown-card:after{top:auto;right:auto;bottom:-20px;left:5px;transform:rotate(155deg)}.countdown-date{font:21px/1.4 var(--serif);padding-bottom:17px;border-bottom:1px solid var(--line)}.countdown-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:19px;gap:8px}.countdown-grid strong{font:30px/1.2 var(--serif);font-variant-numeric:tabular-nums;display:block}.countdown-grid span{display:block;font-size:10px;letter-spacing:1.3px;margin-top:8px}.countdown-time{font-size:10px;color:var(--muted);margin-top:18px}
.story-text{max-width:650px;margin:22px auto 0}.story-text .story-end{margin-top:14px}.story .engagement-photo{margin:25px auto 0;width:100%;max-width:760px;display:block}.engagement-picture img{width:100%;height:auto;object-fit:contain}.story{padding-top:65px;padding-bottom:65px}.story-heading h2{font-size:clamp(34px,5vw,48px)}
.itinerary{max-width:720px}.itinerary article{position:relative;grid-template-columns:100px 1fr;gap:24px;padding:22px 0 28px;border:0}.itinerary article:before{content:'';position:absolute;left:49px;top:70px;bottom:-25px;border-left:1px solid #a4b6c7}.itinerary article:last-child:before{display:none}.route-art{position:relative;z-index:1;align-self:start;background:var(--paper);padding:5px 0}.route-art img{width:100%;height:80px;object-fit:contain;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse,#000 40%,transparent 76%);-webkit-mask-image:radial-gradient(ellipse,#000 40%,transparent 76%)}.route-art img[src$='.svg']{mask-image:none;-webkit-mask-image:none;padding:7px}.itinerary h3{font-size:24px}.itinerary .eyebrow{font-size:9px;letter-spacing:1.6px}.itinerary article p:not(.eyebrow){font-size:14px;line-height:1.65}.itinerary p+p{margin-top:12px}.itinerary .text-link{margin-top:12px}.sunday-heading{max-width:560px;margin:38px auto 12px;padding-top:30px;border-top:1px solid var(--line)}.sunday-heading h3{margin:12px auto;font:34px/1.2 Allura,Georgia,serif}.sunday-heading>p:last-child{font-size:14px;line-height:1.7;color:var(--muted)}.rsvp .brunch-reply{max-width:410px;margin:22px auto 0!important;font-size:13px!important;text-wrap:balance}
.parents-invitation main>.section{min-height:0}.parents-invitation .childhood{padding-top:50px;padding-bottom:70px}
@media(max-width:650px){.cover .living-watercolor{max-height:310px;width:calc(100% + 24px);flex-shrink:0}.cover .cover-inner{padding:15px 24px 28px;min-height:calc(100svh - 52px)}.cover #personal-invitation{max-width:350px}.cover #personal-names{font-size:25px}.cover .personal-message{font-size:14px;line-height:1.65}.cover .cover-bottom{margin-top:18px}.cover .cover-bottom .date{font-size:21px}.envelope-stage{padding:22px;gap:25px}.envelope{width:100%;max-width:480px}.itinerary article{grid-template-columns:68px 1fr;gap:16px}.route-art img{height:60px}.itinerary article:before{left:33px;top:56px}.itinerary h3{font-size:23px}.day.section{padding:65px 22px}.story.section{padding:60px 22px}.countdown-grid strong{font-size:28px}.countdown-date{font-size:20px}.envelope-caption{font-size:26px}.envelope-seal{width:56px;height:56px;left:calc(50% - 28px)}.envelope-seal img{width:48px}}
@media(prefers-reduced-motion:reduce){.intro-ready .cover-vow,.intro-ready #personal-invitation,.intro-ready .cover-sub,.intro-ready .cover-bottom{opacity:1;clip-path:none}.intro-ready .living-watercolor>img{filter:saturate(.76) contrast(.91) brightness(1.07);opacity:1}.color-wash,.butterfly{display:none!important}.envelope-stage,.envelope-letter,.envelope-flap{transition:none}}

/* Full-window stationery: the folds are the screen, not a miniature object. */
.envelope-stage{padding:0;gap:0;background:transparent;display:block;overflow:hidden}
.envelope-caption{display:none}.envelope-stage .envelope{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;background:transparent;perspective:1800px}
.envelope-letter{display:none}.envelope-flap{background:linear-gradient(157deg,#fffdf9 10%,#f4efe5 65%,#e7dfd2);clip-path:polygon(0 0,100% 0,100% 8%,50% 53%,0 8%);filter:drop-shadow(0 2px 2px #75655326)}
.envelope-pocket{background:linear-gradient(32deg,#f0eade 0%,#fffdf7 50%,#eee7dc);clip-path:polygon(0 0,50% 52%,100% 0,100% 100%,0 100%);transition:transform 1.25s cubic-bezier(.3,.05,.2,1);transform-origin:50% 100%}
.envelope-pocket:after{clip-path:polygon(0 100%,0 93%,50% 51%,100% 93%,100% 100%);background:linear-gradient(170deg,#fdfaf3,#f2ebdf)}
.envelope-stage.opening .envelope{transform:none}.envelope-stage.opening .envelope-pocket{transform:translateY(110%);transition-delay:.25s}.envelope-stage.opening .envelope-flap{transform:rotateX(180deg)}
.envelope-seal{top:calc(51% - 46px);left:calc(50% - 46px);width:92px;height:92px;border:0;border-radius:48% 52% 46% 54% / 53% 45% 55% 47%;background:radial-gradient(ellipse at 35% 25%,#eee2c7,#d5c29d 65%,#bca87d);box-shadow:inset 2px 3px 3px #fff7e4b0,inset -3px -4px 5px #826f4c55,0 5px 8px #55452b24;isolation:isolate}
.envelope-seal:before{content:'';position:absolute;inset:8px;border-radius:50%;border:1px solid #9f8c6555;box-shadow:inset 1px 2px 3px #826f4c33,1px 1px 2px #fff9e0;z-index:-1}
.envelope-seal img{width:67px;opacity:.78;mix-blend-mode:multiply;filter:grayscale(1) sepia(.65) contrast(.75) drop-shadow(1px 1px 1px #fff8e2)}
.envelope-instruction{position:absolute;z-index:8;bottom:12%;left:15%;width:70%;font-size:12px;letter-spacing:1.2px;color:#687b8c;transition:opacity .3s}.envelope-stage.opening .envelope-instruction{opacity:0}.envelope-open{border-radius:0}.envelope-open:focus-visible{outline:0}.envelope-stage:has(.envelope-open:focus-visible) .envelope-seal{outline:2px solid #7395b2;outline-offset:8px}
.butterfly{width:62px;height:82px;filter:drop-shadow(0 2px 1px #344f6a18)}.butterfly i{inset:0;width:100%;height:100%;border-radius:0;background-image:url('assets/butterflies-watercolor.png');background-color:transparent;background-size:200% 100%;background-repeat:no-repeat;background-position:0 0;transform-origin:50% 55%;animation:watercolor-flutter .48s ease-in-out infinite alternate}.butterfly-two i{background-position:100% 0;animation-delay:-.23s}.butterfly b{display:none}
@keyframes watercolor-flutter{from{transform:perspective(200px) rotateY(-18deg) scaleX(.85)}to{transform:perspective(200px) rotateY(28deg) scaleX(1)}}
.cover-vow,#personal-invitation{position:relative}.intro-running .cover-vow:after,.intro-running #personal-invitation:after{content:'';position:absolute;pointer-events:none;top:-15%;bottom:-15%;width:65px;left:-70px;background:radial-gradient(ellipse at 70% 50%,#fff 0 2%,#fff5c9b0 5%,#fffaf280 15%,transparent 65%);filter:drop-shadow(0 0 4px #c4dce9);animation:wand-pass .85s ease-out 3.6s both;z-index:3}.intro-running #personal-invitation:after{animation-delay:3.85s}
@keyframes wand-pass{0%{left:-70px;opacity:0}12%{opacity:1}85%{opacity:1}100%{left:100%;opacity:0}}
@media(prefers-reduced-motion:reduce){.intro-running .cover-vow:after,.intro-running #personal-invitation:after{display:none}.envelope-stage.opening .envelope-pocket{transition:none}}

/* Generic review only. Full viewport, soft paper relief and a larger scene. */
.envelope-paper{position:absolute;inset:0;background:#f6f1e8;transition:opacity .5s .6s}
.envelope-paper:after,.envelope-flap:after{content:"";position:absolute;inset:0;opacity:.13;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%239a8971' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.envelope-stage.opening .envelope-paper{opacity:0}
.envelope-inscription{position:absolute;z-index:6;top:66%;width:100%;text-align:center;pointer-events:none;color:#7d8f9b;text-shadow:0 1px #fff;transition:opacity .3s}
.envelope-inscription p{font:36px/1.2 Allura,Georgia,serif}.envelope-inscription span{font-size:24px}.envelope-inscription small{display:block;font-size:10px;letter-spacing:3px;margin-top:15px}
.envelope-stage.opening .envelope-inscription{opacity:0}
.envelope-seal{width:100px;height:100px;left:calc(50% - 50px);top:calc(51% - 50px);background:radial-gradient(ellipse at 32% 20%,#f7eddb 0%,#dfceb0 44%,#cbbb9b 76%,#eedfc5 94%);box-shadow:inset 3px 4px 4px #fff9ed,inset -3px -5px 5px #9c896c77,0 7px 12px #63523933}
.envelope-seal:before{inset:10px;border:2px solid #c3b294;box-shadow:inset 1px 2px 2px #97836255,1px 2px 2px #fff9e9}
.envelope-seal img{width:69px;filter:grayscale(1) sepia(.4) contrast(.65) drop-shadow(0 1px 0 #fffaf0)}
.cover .cover-inner{min-height:calc(100svh - 78px);padding:20px 22px 30px;justify-content:center}
.cover .living-watercolor{width:min(100vw,800px);max-width:800px;max-height:none;height:clamp(230px,47svh,500px);aspect-ratio:auto;flex-shrink:0;mask-image:radial-gradient(ellipse,#000 48%,transparent 76%);-webkit-mask-image:radial-gradient(ellipse,#000 48%,transparent 76%)}
.cover .cover-vow{margin:12px auto!important}.cover .cover-sub{max-width:290px;font-size:15px;text-wrap:balance}.cover .cover-bottom{margin-top:20px}
.replay-opening{border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;padding:0}
@media(max-width:650px){.cover .cover-inner{min-height:calc(100svh - 52px)}.cover .living-watercolor{height:clamp(220px,42svh,390px)}.cover h1.cover-vow{font-size:33px}.envelope-instruction{bottom:10%}}
@media(max-height:620px){.envelope-inscription{top:68%}.envelope-inscription p{font-size:29px}.envelope-inscription small{margin-top:5px}.envelope-instruction{bottom:5%}.cover .living-watercolor{height:220px}}
@media(prefers-reduced-motion:reduce){.envelope-paper,.envelope-inscription{transition:none}}

/* Approved photographic stationery; each fold retains the same paper texture. */
.envelope-stage{background:#e9e1d4}
.photo-pocket,.photo-flap,.photo-seal{position:absolute;inset:0;background-image:url('assets/envelope-embossed.png');background-size:100% 100%;background-position:center;backface-visibility:hidden}
.photo-pocket{clip-path:polygon(0 28%,50% 56%,100% 28%,100% 100%,0 100%);transition:transform 1.2s cubic-bezier(.3,.1,.2,1)}
.photo-flap{clip-path:polygon(0 0,100% 0,100% 28%,50% 56%,0 28%);transform-origin:center top;transition:transform 1.15s ease;z-index:2}
.photo-seal{clip-path:ellipse(21% 12% at 50% 51%);z-index:3;transition:opacity .3s,transform .5s}
.envelope-stage.opening .photo-pocket{transform:translateY(105%);transition-delay:.2s}
.envelope-stage.opening .photo-flap{transform:rotateX(175deg)}
.envelope-stage.opening .photo-seal{opacity:0;transform:translateY(-15px) scale(1.05)}
.envelope-stage:has(.envelope-open:focus-visible) .envelope-open{outline:2px solid #7395b2;outline-offset:-8px}
.envelope-inscription{top:66%;color:#a9977c;text-shadow:0 1px 1px #fffdf2,0 -1px 1px #8c765a55;z-index:4}
.envelope-inscription p{font:clamp(32px,8vw,60px)/1.12 Allura,Georgia,serif}
.envelope-inscription small{font:italic clamp(25px,6vw,43px)/1.2 Georgia,serif;letter-spacing:1px;margin-top:20px}
.envelope-instruction{bottom:4%;font-size:10px;color:#827864;letter-spacing:1px}
.envelope-stage.leaving{background:transparent}
#invitation{min-height:calc(100svh - var(--navigation-height,52px));display:flex;flex-direction:column;justify-content:center;padding:clamp(36px,7svh,75px) 24px;scroll-margin-top:0}
#invitation .witness-note{margin:25px auto 0;max-width:440px;font-size:14px;line-height:1.6;text-wrap:balance}
.venue-watercolor{display:block;width:100%;aspect-ratio:512/650;background-image:url('assets/itinerary-watercolors.png');background-size:300% auto;background-repeat:no-repeat;background-position-y:51%;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse,#000 52%,transparent 76%);-webkit-mask-image:radial-gradient(ellipse,#000 52%,transparent 76%)}
.venue-drinks{background-position-x:0}.venue-dinner{background-position-x:50%}.venue-brunch{background-position-x:100%}
.itinerary article{grid-template-columns:120px 1fr;gap:22px}.itinerary article:before{left:59px}
@media(max-width:650px){.itinerary article{grid-template-columns:92px 1fr;gap:16px}.itinerary article:before{left:45px}.route-art img{height:88px}.itinerary h3{font-size:22px}}
@media(min-aspect-ratio:1/1){.envelope-stage .envelope{width:min(100%,64svh);left:50%;transform:translateX(-50%)}.envelope-stage.opening .envelope{transform:translateX(-50%)}.envelope-inscription p{font-size:5svh}.envelope-inscription small{font-size:3.5svh}}
@media(prefers-reduced-motion:reduce){.photo-pocket,.photo-flap,.photo-seal{transition:none}}

/* Final mobile rhythm: smaller illustration leaves the complete action visible. */
.cover .cover-inner{padding:12px 22px 22px;gap:0;min-height:calc(100svh - 78px)}
.cover .living-watercolor{height:clamp(170px,30svh,320px);margin-bottom:0}
.cover h1.cover-vow{font-size:clamp(29px,4vw,38px);line-height:1.12;margin:8px auto!important;max-width:570px}
.cover #personal-invitation{margin:8px auto;padding:0;max-width:460px}
.cover .personal-message{font-size:14px;line-height:1.5;margin-top:7px;text-wrap:balance}
.cover .cover-bottom{margin-top:13px}.cover .button{margin:13px 0 0;min-height:46px;padding:11px 23px}
.rsvp.section{min-height:calc(100svh - var(--navigation-height));display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px 25px}
.rsvp .rsvp-copy{max-width:410px;text-wrap:balance;line-height:1.7}
.farewell-page{min-height:calc(100svh - var(--navigation-height));padding-top:50px;display:flex;flex-direction:column;justify-content:center}
.farewell-page .closing{flex:1;display:flex;flex-direction:column;justify-content:center;padding:45px 24px}
.farewell-page footer{flex:none;margin-top:20px}
@media(max-width:650px){.cover .cover-inner{min-height:calc(100svh - 52px);padding:10px 22px 20px}.cover .living-watercolor{height:clamp(150px,28svh,250px)}.cover h1.cover-vow{font-size:30px;max-width:340px}.cover #personal-names{font-size:24px}.cover .cover-bottom .date{font-size:22px}}
@media(max-height:650px) and (max-width:650px){.cover .living-watercolor{height:23svh;min-height:110px}.cover h1.cover-vow{font-size:27px}.cover .cover-inner{padding-top:6px;padding-bottom:12px}.cover .cover-bottom{margin-top:8px}.cover .personal-message{font-size:13px}}

/* Compact spacing after removing the clothing-colour paragraph. */
.dress-preview.section{padding-top:60px;padding-bottom:60px}.dress-preview .dress-intro h2{margin-bottom:18px}.dress-preview .dress-intro>p:last-child{margin-top:0}.dress-preview .rain-note{margin-top:28px;padding-top:24px}.dress-preview .weather-card{margin-top:26px}
@media(max-width:650px){.dress-preview.section{padding-top:44px;padding-bottom:44px}.dress-preview .rain-note{margin-top:24px;padding-top:20px}}
