/* The envelope opens in layers, then the stationery settles into view. */
.envelope[hidden]{display:none}
.envelope-inner{perspective:1300px}
.top-flap{backface-visibility:hidden;transform-style:preserve-3d}
.opening .top-flap{transform:rotateX(160deg);transition:transform 1.5s .15s cubic-bezier(.42,0,.2,1)}
.opening .bottom-flap{transform:translateY(105%);transition-delay:.45s}
.opening .wing-left,.opening .wing-right{transition-delay:.55s}
.hero-copy,.hero-bottom{opacity:0;transform:translateY(18px);transition:opacity 1.3s,transform 1.3s cubic-bezier(.2,.7,.3,1)}
.invitation-ready .hero-copy,.invitation-ready .hero-bottom{opacity:1;transform:none}
.hero-bottom{transition-delay:.35s}
.wax{animation:seal-breathe 4s ease-in-out infinite}
.opening .wax{animation:none}
@keyframes seal-breathe{0%,100%{box-shadow:0 7px 12px #090005aa,inset 0 0 2px 3px #f1c999,inset -5px -7px 8px #83502e77}50%{box-shadow:0 7px 20px #090005aa,0 0 24px #edb96d30,inset 0 0 2px 3px #f1c999,inset -5px -7px 8px #83502e77}}
@media(prefers-reduced-motion:reduce){.hero-copy,.hero-bottom{opacity:1;transform:none}}
