/* Letter, silver foil, a real-time clock and a tiny paper gift. */
.envelope-wrap{animation:envelope-arrive 1.25s cubic-bezier(.18,.7,.22,1) both}
.intro{animation:soft-arrive 1s ease both}
.open-text,.secret-hint{animation:soft-arrive 1s .35s ease both}
.wax-seal:after{content:'';position:absolute;inset:-7px;border:1px solid #9f5c4133;border-radius:50%;animation:seal-invitation 3.5s 1.8s ease-out infinite}
.experience.opening .wax-seal{animation:seal-release .55s both;opacity:0}
.experience.opening .wax-seal:after{animation:none}
.experience.opening .envelope-flap{transition:transform .8s cubic-bezier(.3,0,.2,1);z-index:1}
.experience.opening .inner-note{transform:translateY(-63%) rotate(-3deg);transition:transform 1.15s .42s cubic-bezier(.22,.6,.2,1);z-index:2}
.experience.opening .closed-scene{transition:opacity .65s 1.25s,transform .9s 1.25s;transform:translateY(40px);opacity:0}
.experience.opening .envelope{transform:translateY(18px)}
.experience.opening .intro,.experience.opening .open-text,.experience.opening .secret-hint{animation:none;transition:opacity .4s;opacity:.12}
.opened-scene{perspective:1500px;transform:translateY(70px) scale(.94);transform-origin:top center;transition:opacity .8s ease,transform 1.1s cubic-bezier(.15,.65,.2,1)}
.experience.is-open .invite-sheet{animation:letter-unfold 1.15s cubic-bezier(.15,.65,.2,1) both;transform-origin:center 16%}
.experience.is-open .birthday-mark{animation:milestone-arrive 1.25s .2s cubic-bezier(.18,.75,.2,1) both}
.silver-fifty{background-size:240% 240%;background-position:90% 40%}
.experience.is-open .silver-fifty{animation:silver-light 6s .8s ease-in-out infinite}
.experience.is-open .birthday-mark h2{animation:name-reveal 1.7s .45s cubic-bezier(.2,.65,.2,1) both}
.birthday-spark{position:absolute;width:15px;height:15px;top:25%;left:24%;background:radial-gradient(circle,#fff 0,#d5cfc6 25%,transparent 70%);clip-path:polygon(50% 0,59% 40%,100% 50%,59% 59%,50% 100%,40% 59%,0 50%,40% 40%);opacity:0;pointer-events:none}
.spark-two{top:8%;left:62%;width:11px;height:11px}.spark-three{top:47%;left:68%;width:18px;height:18px}
.experience.is-open .birthday-spark{animation:jewel-sparkle 5s 1s ease-in-out infinite}
.experience.is-open .spark-two{animation-delay:2.5s}.experience.is-open .spark-three{animation-delay:4s}
.experience.is-open .invite-eyebrow{animation:soft-arrive 1s .25s both}
.experience.is-open .anniversary{animation:soft-arrive 1s .85s both}
.experience.is-open .heart-divider svg{animation:gentle-heartbeat 4s 2s infinite}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .9s ease,transform 1s cubic-bezier(.2,.65,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
.countdown-section{margin:30px -8px 33px;padding:0 0 28px;border-bottom:1px solid #d3c4b569}
.countdown-ornament{display:flex;align-items:center;justify-content:center;gap:16px;color:var(--wine);margin:0 auto 15px}
.countdown-ornament>span{width:36px;height:1px;background:#cbb9a380}
.countdown-ornament svg{width:37px;height:37px;fill:none;stroke:currentColor;stroke-width:1}
.clock-track{opacity:.2}.clock-orbit{stroke-dasharray:113.1;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:clock-orbit 60s linear infinite}
.countdown-eyebrow{font-size:8px;letter-spacing:2.6px;margin:0 0 9px}
.countdown-section h3{font-size:27px;font-weight:400;line-height:1.2;margin:0 0 22px;color:var(--wine)}
.countdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 auto;max-width:410px}
.countdown-unit{min-width:0}.clock-tile{position:relative;height:90px;display:grid;place-items:center;border:1px solid #ccbbb199;border-radius:5px;background:linear-gradient(#fffcf8 0%,#f3e9df 49.7%,#ead9cb 50%,#fbf4eb 50.5%,#fcf9f3 100%);box-shadow:0 4px 0 -1px #e1d2c3,0 7px 0 -2px #ece1d5,0 10px 15px #4d312510;perspective:350px;isolation:isolate}
.clock-tile:after{content:'';position:absolute;top:50%;left:-1px;right:-1px;height:1px;background:#bca69755;z-index:2;pointer-events:none}
.clock-tile:before{content:'';position:absolute;top:calc(50% - 3px);left:-2px;right:-2px;height:6px;border-left:3px solid #aa9481;border-right:3px solid #aa9481;pointer-events:none}
.clock-tile>span{font-family:var(--serif);font-variant-numeric:lining-nums tabular-nums;font-size:53px;color:var(--wine);line-height:1;display:block;padding-top:5px;transform-origin:center 50%}
.clock-tile>span.is-ticking{animation:digit-change .4s cubic-bezier(.15,.6,.3,1)}
.clock-label{display:block;margin-top:17px;font:7px Arial,sans-serif;letter-spacing:1.8px;color:var(--muted)}
.countdown-note{font:9px/1.7 Arial,sans-serif;color:#89786b;letter-spacing:.1px;margin:21px 0 0}
.seconds-tile{border-color:#aa747c80}.seconds-tile:after{background:#9b546340}
.gift-section{margin:34px auto 0;position:relative;padding:22px 12px 20px;background:linear-gradient(120deg,#e9d3ca18,#ebd2ce40,#e9d3ca18);border-top:1px solid #dac2b966;border-bottom:1px solid #dac2b966;max-width:320px}
.animated-gift{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;border:0;background:transparent;color:var(--wine);margin:auto;padding:0 16px;font-size:23px}
.gift-envelope{position:relative;display:block;width:76px;height:50px;perspective:450px;margin-top:17px;background:#e2cfc2;border:1px solid #ac7c73;border-radius:2px;box-shadow:0 7px 12px #7e45341a;animation:gift-bob 6s ease-in-out infinite}
.gift-letter{position:absolute;left:8px;right:8px;top:4px;height:40px;background:#fffaf1;border:1px solid #d4b4a3;z-index:1;display:grid;place-items:center;animation:gift-letter-rise 6s ease-in-out infinite}
.gift-letter svg{width:19px;height:19px;color:var(--wine)}
.gift-pocket{position:absolute;inset:0;background:linear-gradient(145deg,#fff5e8,#ead8c9);clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);z-index:3}
.gift-pocket:after{content:'';position:absolute;inset:0;background:#ecdccf;clip-path:polygon(0 100%,50% 43%,100% 100%)}
.gift-flap{position:absolute;inset:-1px -1px 0;clip-path:polygon(0 0,100% 0,50% 57%);background:linear-gradient(150deg,#fdf1e3,#d9beab);transform-origin:top;z-index:4;animation:gift-flap-open 6s ease-in-out infinite}
.gift-seal{position:absolute;top:21px;left:calc(50% - 5px);width:10px;height:10px;border-radius:50%;background:var(--wine);z-index:5;box-shadow:inset 1px 1px #cb7e7e;animation:gift-seal-fade 6s ease-in-out infinite}
.gift-spark{position:absolute;background:#a8676e;width:8px;height:8px;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);opacity:0;animation:gift-sparkle 6s ease-in-out infinite;z-index:5;top:-18px;left:-17px}.gift-spark-b{left:auto;right:-18px;top:-10px;animation-delay:.2s;background:#9b938c}
.gift-title{position:relative}.gift-title:after{content:'';position:absolute;left:15%;right:15%;bottom:-6px;height:1px;background:linear-gradient(90deg,transparent,#b48080,transparent);transform:scaleX(.4);animation:gift-underline 6s ease-in-out infinite}
.gift-subtitle{font:11px Arial,sans-serif;color:var(--muted);margin:14px 0 0}
.animated-gift.is-replaying .gift-envelope,.animated-gift.is-replaying .gift-envelope *{animation:none!important}
.celebration-particles{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:9}
.celebration-particles>span{position:absolute;left:var(--x);top:-24px;width:var(--size);height:calc(var(--size)*1.6);background:var(--color);border-radius:1px;opacity:0;animation:celebration-fall var(--duration) var(--delay) cubic-bezier(.15,.4,.35,.9) both;transform-origin:center}
@keyframes envelope-arrive{from{opacity:0;transform:translateY(45px) rotate(-2deg)}to{opacity:1;transform:none}}
@keyframes soft-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes seal-invitation{0%{transform:scale(.9);opacity:0}30%{opacity:.7}100%{transform:scale(1.3);opacity:0}}
@keyframes seal-release{0%{opacity:1;transform:translate(-50%,-50%) rotate(-8deg)}55%{opacity:.9;transform:translate(-50%,-65%) rotate(7deg) scale(1.15)}100%{opacity:0;transform:translate(-50%,-100%) rotate(15deg) scale(.8)}}
@keyframes letter-unfold{0%{transform:translateY(35px) rotateX(12deg) scale(.96);filter:brightness(.94)}100%{transform:none;filter:brightness(1)}}
@keyframes milestone-arrive{from{opacity:0;transform:translateY(20px) scale(.85)}to{opacity:1;transform:none}}
@keyframes silver-light{0%,100%{background-position:90% 40%}50%{background-position:0% 65%}}
@keyframes name-reveal{from{clip-path:inset(0 100% 0 -8%)}to{clip-path:inset(-20% -15% -30% -8%)}}
@keyframes jewel-sparkle{0%,35%,70%,100%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:.95;transform:scale(1.3) rotate(90deg)}}
@keyframes gentle-heartbeat{0%,40%,58%,100%{transform:scale(1)}48%{transform:scale(1.15)}54%{transform:scale(1.03)}}
@keyframes clock-orbit{from{stroke-dashoffset:0}to{stroke-dashoffset:-113.1}}
@keyframes digit-change{0%{transform:rotateX(-65deg) translateY(-4px);opacity:.3}100%{transform:rotateX(0);opacity:1}}
@keyframes gift-bob{0%,15%,90%,100%{transform:translateY(0)}45%,65%{transform:translateY(-4px)}}
@keyframes gift-flap-open{0%,12%,88%,100%{transform:rotateX(0);z-index:4}30%,72%{transform:rotateX(180deg);z-index:0}}
@keyframes gift-letter-rise{0%,23%,86%,100%{transform:translateY(0)}43%,67%{transform:translateY(-24px)}}
@keyframes gift-seal-fade{0%,10%,92%,100%{opacity:1}24%,80%{opacity:0}}
@keyframes gift-sparkle{0%,35%,75%,100%{opacity:0;transform:scale(.2) rotate(0)}52%{opacity:.8;transform:scale(1.2) rotate(90deg)}}
@keyframes gift-underline{0%,100%{transform:scaleX(.4);opacity:.4}50%{transform:scaleX(1);opacity:1}}
@keyframes celebration-fall{0%{opacity:0;transform:translate3d(0,-30px,0) rotate(0)}10%{opacity:.8}75%{opacity:.65}100%{opacity:0;transform:translate3d(var(--drift),105vh,0) rotate(var(--rotation))}}
@media(max-width:600px){.countdown-section{margin:27px -6px 30px;padding-bottom:24px}.countdown-section h3{font-size:23px;margin-bottom:20px}.countdown-grid{gap:8px}.clock-tile{height:72px}.clock-tile>span{font-size:41px}.clock-label{font-size:6px;letter-spacing:1px;margin-top:14px}.countdown-eyebrow{font-size:7px}.countdown-note{font-size:8px}.gift-section{margin-top:28px;padding-top:20px}.animated-gift{font-size:22px}.birthday-spark{left:19%}.spark-two{left:63%}.spark-three{left:75%}}
@media(max-width:600px){.clock-label{font-size:8px;letter-spacing:.7px}.countdown-note{font-size:9px}}
@media(max-width:360px){.countdown-grid{gap:6px}.clock-tile{height:62px}.clock-tile>span{font-size:35px}.clock-label{font-size:7px;letter-spacing:.4px}.countdown-section h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}.birthday-mark h2{clip-path:none!important}.celebration-particles{display:none}.wax-seal:after{display:none}.opened-scene{transform:none}.experience.is-open .birthday-mark,.experience.is-open .invite-eyebrow,.experience.is-open .anniversary{opacity:1;transform:none}}
