.envelope-reveal{--reveal-duration:6s;--confetti-gold:var(--logo-accent);--confetti-plum:var(--rose-deep);--confetti-sage:var(--sage);--confetti-paper:var(--butter);isolation:isolate;aspect-ratio:5/7;perspective:900px;position:relative}.envelope-reveal-season{--confetti-gold:oklch(76% .12 86);--confetti-plum:oklch(43% .06 352);--confetti-sage:oklch(62% .06 126);--confetti-paper:oklch(90% .03 82)}.envelope-reveal-repeat{--reveal-duration:10s}.envelope-reveal-back,.envelope-reveal-pocket,.envelope-reveal-closed,.envelope-reveal-flap{object-fit:contain;width:88%;position:absolute;left:6%}.envelope-reveal .envelope-reveal-back{height:71%;animation:envelope-away var(--reveal-duration) both;bottom:11%}.envelope-reveal-card-track{z-index:2;clip-path:inset(0 0 11%);animation:invitation-clear-pocket var(--reveal-duration) both;position:absolute;inset:0}.envelope-reveal-card{transform-origin:50%;width:100%;animation:invitation-bounce var(--reveal-duration) linear both,invitation-rise var(--reveal-duration) both,invitation-sway var(--reveal-duration) both,invitation-grow var(--reveal-duration) both;position:relative}.envelope-reveal .envelope-reveal-pocket{z-index:3;clip-path:polygon(0 36%,50% 69%,100% 36%,100% 100%,0 100%);height:71%;animation:envelope-away var(--reveal-duration) both;bottom:11%}.envelope-reveal-season .envelope-reveal-pocket{clip-path:none;height:45.5%}.envelope-reveal .envelope-reveal-closed{z-index:4;height:45.5%;animation:envelope-unseal var(--reveal-duration) both;bottom:11%}.envelope-reveal .envelope-reveal-flap{z-index:5;transform-origin:50% 0;backface-visibility:hidden;height:45.5%;animation:envelope-open var(--reveal-duration) both;bottom:11%}.envelope-reveal-season .envelope-reveal-back{animation-name:envelope-lined-away}.envelope-reveal-confetti{z-index:6;pointer-events:none;position:absolute;inset:0}.envelope-reveal-confetti i{background:var(--confetti-gold);opacity:0;width:2.4%;height:1.2%;animation:envelope-confetti var(--reveal-duration) both;--burst-x:-1800%;--burst-y:-3400%;--fall-x:-2400%;--spin:260deg;position:absolute;top:49%;left:50%}.envelope-reveal-confetti i:nth-child(4n+2){background:var(--confetti-plum)}.envelope-reveal-confetti i:nth-child(4n+3){background:var(--confetti-sage);border-radius:50%}.envelope-reveal-confetti i:nth-child(4n){background:var(--confetti-paper)}.envelope-reveal-confetti i:nth-child(6n+2){--burst-x:1100%;--burst-y:-4200%;--fall-x:1700%;--spin:-380deg}.envelope-reveal-confetti i:nth-child(6n+3){--burst-x:-650%;--burst-y:-5100%;--fall-x:-1200%;--spin:490deg}.envelope-reveal-confetti i:nth-child(6n+4){--burst-x:1900%;--burst-y:-2600%;--fall-x:2400%;--spin:-270deg}.envelope-reveal-confetti i:nth-child(6n+5){--burst-x:400%;--burst-y:-4800%;--fall-x:950%;--spin:610deg}.envelope-reveal-confetti i:nth-child(6n){--burst-x:-1200%;--burst-y:-2200%;--fall-x:-1700%;--spin:-540deg}.envelope-reveal-confetti i:nth-child(n+7){width:1.7%;animation-name:envelope-confetti-late;top:51%;left:44%}.envelope-reveal-confetti i:nth-child(n+13){height:.8%;top:47%;left:56%}.envelope-reveal-confetti i:nth-child(n+19){width:1.2%;height:1.6%;top:53%;left:48%}.envelope-reveal-repeat>:not(.envelope-reveal-confetti),.envelope-reveal-repeat .envelope-reveal-card,.envelope-reveal-repeat .envelope-reveal-confetti i{animation-iteration-count:infinite}@keyframes invitation-bounce{0%,25%{opacity:0}29%,to{opacity:1}}@keyframes invitation-rise{0%,29%{animation-timing-function:cubic-bezier(.25,.55,.35,1);translate:0 18%}47%{animation-timing-function:cubic-bezier(.45,0,.4,1);translate:0 -26%}70%{animation-timing-function:cubic-bezier(.3,0,.4,1);translate:0 1.5%}77%{animation-timing-function:cubic-bezier(.4,0,.4,1);translate:0 -.8%}83%,to{translate:0}}@keyframes invitation-sway{0%,39%{animation-timing-function:cubic-bezier(.5,0,.4,1);rotate:-90deg}57%{animation-timing-function:cubic-bezier(.45,0,.55,1);rotate:9deg}64%{animation-timing-function:cubic-bezier(.45,0,.55,1);rotate:-6deg}71%{animation-timing-function:cubic-bezier(.45,0,.55,1);rotate:3deg}77%{animation-timing-function:cubic-bezier(.45,0,.55,1);rotate:-1deg}83%,to{rotate:0deg}}@keyframes invitation-grow{0%,41%{animation-timing-function:cubic-bezier(.45,0,.3,1);scale:.56}71%{animation-timing-function:cubic-bezier(.4,0,.4,1);scale:1.018}77%{animation-timing-function:cubic-bezier(.4,0,.4,1);scale:.994}83%,to{scale:1}}@keyframes invitation-clear-pocket{0%,43.9%{z-index:2;clip-path:inset(0 0 11%)}44%,50%{z-index:4;clip-path:inset(0 0 11%)}60%,to{z-index:4;clip-path:inset(0)}}@keyframes envelope-unseal{0%,17%{opacity:1}18%,to{opacity:0}}@keyframes envelope-open{0%,17%{opacity:1;transform:rotateX(0)}32%{opacity:1;transform:rotateX(-178deg)}38%,to{opacity:0;transform:rotateX(-178deg)}}@keyframes envelope-lined-away{0%,17%{opacity:0}27%,44%{opacity:1;transform:translateY(0)}63%,to{opacity:0;transform:translateY(16%)}}@keyframes envelope-away{0%,44%{opacity:1;transform:translateY(0)}63%,to{opacity:0;transform:translateY(16%)}}@keyframes envelope-confetti{0%,28%{opacity:0;transform:translate(0)rotate(0)}30%{opacity:1}43%{opacity:1;transform:translate(var(--burst-x),var(--burst-y)) rotate(var(--spin))}63%{opacity:0;transform:translate(var(--fall-x),1000%) rotate(calc(var(--spin) * 2))}to{opacity:0}}@keyframes envelope-confetti-late{0%,31%{opacity:0;transform:translate(0)rotate(0)}33%{opacity:1}46%{opacity:1;transform:translate(var(--burst-x),var(--burst-y)) rotate(var(--spin))}66%{opacity:0;transform:translate(var(--fall-x),1200%) rotate(calc(var(--spin) * 2))}to{opacity:0}}@media (prefers-reduced-motion:reduce){.envelope-reveal>*,.envelope-reveal .envelope-reveal-card,.envelope-reveal-confetti i{animation:none}.envelope-reveal-card-track{clip-path:none}.envelope-reveal .envelope-reveal-back,.envelope-reveal .envelope-reveal-pocket,.envelope-reveal .envelope-reveal-flap,.envelope-reveal .envelope-reveal-closed,.envelope-reveal .envelope-reveal-confetti{display:none}}.envelope-reveal-sealed .envelope-reveal-back{animation-name:envelope-lined-away}.envelope-reveal-paused,.envelope-reveal-paused *{animation-play-state:paused!important}.envelope-reveal-paused .envelope-reveal-card-track{visibility:hidden}@media (prefers-reduced-motion:reduce){.envelope-reveal-paused .envelope-reveal-card-track{visibility:visible}}
