*{box-sizing:border-box} :root{color-scheme:light;--ink:#36332f;--gold:#a08b65} body{margin:0;background:#f3f0e9;color:var(--ink);font-family:Arial,sans-serif;min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #8a714e;outline-offset:6px}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 8% 60%,#d8d0bf66,transparent 45%),radial-gradient(ellipse at 90% 20%,#fffdf8,transparent 50%)}.grain{position:fixed;inset:0;opacity:.13;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.35' filter='url(%23n)'/%3E%3C/svg%3E")}header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:25px 4.8%;border-bottom:1px solid #94857126}.brand{color:inherit;text-decoration:none;font:26px Georgia,serif;letter-spacing:5px}.brand span{font-style:italic;color:var(--gold);font-size:20px}.header-note{font-size:10px;letter-spacing:3px;color:#827b70}#sound{display:flex;align-items:center;gap:10px;border:0;background:none;font-size:10px;letter-spacing:1.5px;color:#6e685e}.bars{height:15px;display:flex;align-items:center;gap:3px}.bars i{width:1px;height:6px;background:#8d7c5e}.bars i:nth-child(2){height:14px}.bars i:nth-child(3){height:10px}[aria-pressed=true] .bars i{animation:wave .7s ease infinite alternate}[aria-pressed=true] .bars i:nth-child(2){animation-delay:.3s}[aria-pressed=true] .bars i:nth-child(3){animation-delay:.5s}main{position:relative;text-align:center;max-width:1200px;margin:auto}.intro{padding:39px 20px 0}.eyebrow{font-size:9px;letter-spacing:3px;color:#8a7c65}h1{font:clamp(32px,3.6vw,48px)/1.13 Georgia,serif;font-weight:normal;margin:17px 0 13px}h1 em{color:#918066;font-weight:normal}.subtitle{font:14px Georgia,serif;color:#8b8377}.stage{--w:min(440px,78vw);width:var(--w);height:290px;margin:70px auto 0;position:relative;perspective:1400px}.float{position:relative;animation:float 5s ease-in-out infinite;z-index:2}.envelope{width:var(--w);height:calc(var(--w) * .63);position:relative;transform:rotate(-4deg);transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}.back{position:absolute;inset:0;background:#d6ccba;box-shadow:0 20px 50px #54453622;border-radius:3px}.lining{position:absolute;inset:9px;background:repeating-linear-gradient(45deg,#5f615b 0 1px,#666961 1px 5px);clip-path:polygon(0 0,100% 0,50% 83%)}.pocket{position:absolute;inset:0;z-index:4;background:linear-gradient(28deg,#e1d8c9,#f0e9dd);clip-path:polygon(0 0,50% 48%,100% 0,100% 100%,0 100%);filter:drop-shadow(0 -1px 1px #a79b8766)}.pocket:after{content:'';position:absolute;inset:0;background:linear-gradient(146deg,transparent 49.7%,#bdb09d66 50%,transparent 50.4%),linear-gradient(214deg,transparent 49.7%,#bdb09d66 50%,transparent 50.4%)}.flap{position:absolute;inset:0;z-index:6;background:linear-gradient(160deg,#eee7da,#d8cdbb);clip-path:polygon(0 0,100% 0,50% 60%);transform-origin:top;transition:transform 1.2s cubic-bezier(.4,0,.2,1),filter 1s;backface-visibility:visible;filter:drop-shadow(0 3px 2px #73634f33)}.seal{position:absolute;left:calc(50% - 31px);top:45%;width:62px;height:62px;background:radial-gradient(circle at 30% 25%,#c0a680,#8e714e);color:#f6e9cc;border:3px double #d5bb93;border-radius:46% 51% 45% 50%;box-shadow:1px 4px 6px #67503950,inset 1px 1px 5px #f5dcb788;z-index:7;transition:transform .55s,opacity .4s}.seal>span{font:23px Georgia,serif;letter-spacing:-3px;text-shadow:1px 1px #695038}.amp{font-style:italic;font-size:20px}.envelope-caption{position:absolute;z-index:5;bottom:23px;width:100%;font-size:8px;letter-spacing:2px;color:#756b5c;transition:opacity .6s}.envelope-caption span{display:block;font:italic 16px Georgia,serif;letter-spacing:0;margin-top:7px}.card{position:absolute;z-index:2;width:46%;left:27%;bottom:16%;padding:5px;border:0;background:#faf6ed;box-shadow:0 6px 20px #30291e35;transform:translateY(0);transition:transform 1.8s cubic-bezier(.2,.65,.23,1),width 1.8s,left 1.8s,bottom 1.8s;}.card img{display:block;width:100%}.shadow{position:absolute;width:85%;height:22px;border-radius:50%;background:#514a3826;filter:blur(13px);bottom:0;left:8%;animation:shadow 5s ease-in-out infinite}.action{position:relative;z-index:8;margin:4px 0 30px}.open-button{background:none;border:0;border-bottom:1px solid #a18d6d;padding:12px 0;font-size:10px;letter-spacing:2px;color:#675d4c}.open-button span{margin-left:22px;font-size:17px}#hint{font:italic 13px Georgia,serif;color:#8c8478;margin:13px 0}#replay{border:0;background:none;color:#786b58;font-size:11px;text-decoration:underline;text-underline-offset:5px}footer{display:flex;justify-content:center;gap:23px;align-items:center;padding:20px 15px 28px;font-size:9px;letter-spacing:2px;color:#8c8272}.tiny-star{font-size:18px}.opened .flap{transform:rotateX(180deg);z-index:1;filter:brightness(.88)}.opened .seal{opacity:0;transform:translateY(15px) scale(.8);pointer-events:none}.opened .envelope{transform:translateY(60px) rotate(0)}.opened .card{animation:emerge 2.5s .6s cubic-bezier(.3,.7,.2,1) both}.opened .envelope-caption{opacity:.5}.opened .float{animation:none}.opened{height:360px;margin-top:100px}.opened .shadow{bottom:-55px}.opened+.action{margin-top:30px}@keyframes emerge{0%{transform:translateY(0);z-index:2}45%{transform:translateY(-300px) rotate(-3deg);z-index:2}46%{z-index:8}100%{transform:translateY(-95px) rotate(3deg) scale(1.62);z-index:8}}@keyframes float{50%{transform:translateY(-13px) rotate(1deg)}}@keyframes shadow{50%{transform:scale(.88);opacity:.65}}@keyframes wave{to{height:3px}}dialog{border:0;padding:0;background:#171715;max-width:min(90vw,520px);max-height:92svh;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#171715cf;backdrop-filter:blur(10px)}dialog img{display:block;width:100%}dialog>button{position:fixed;right:22px;top:20px;border:1px solid #fff8;border-radius:50%;width:40px;height:40px;background:#2229;color:white;font-size:20px}dialog a{display:block;background:#f3f0e9;padding:20px;text-align:center;color:#66583f;font-size:11px;letter-spacing:2px}@media(max-width:600px){header{padding:20px 6%}.header-note{display:none}.intro{padding-top:30px}.eyebrow{font-size:8px;letter-spacing:1.8px}.stage{margin-top:85px;height:240px}.opened{margin-top:110px;height:315px}.opened .envelope{transform:translateY(40px)}footer{gap:12px;font-size:8px;letter-spacing:1px}.action{margin-top:0}h1{font-size:36px}@keyframes emerge{0%{transform:translateY(0);z-index:2}45%{transform:translateY(-240px) rotate(-3deg);z-index:2}46%{z-index:8}100%{transform:translateY(-85px) rotate(3deg) scale(1.65);z-index:8}}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.opened .card{transform:translateY(-95px) rotate(3deg) scale(1.62);z-index:8}}
.card{opacity:0}.opened .card{opacity:1;transition:opacity .4s .6s} .seal>span{letter-spacing:-1px;font-size:20px}.seal .amp{font-size:15px}
.intro{transition:opacity .8s,transform .8s}.revealed .intro{opacity:0;transform:translateY(-15px);pointer-events:none}
/* Refined type and a viewport-fitted, cinematic reveal. */
body{font-family:'Jost',Arial,sans-serif;overflow-x:hidden}header{z-index:50;height:78px}.brand{font-family:'Cormorant Garamond',Georgia,serif;font-size:31px}.header-note{font-size:11px}#sound{min-height:44px;font-size:11px}.intro{padding-top:30px}.eyebrow{font-size:11px;letter-spacing:2.7px}h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(42px,5.3vw,70px);line-height:1.03;letter-spacing:-1.8px;margin:20px 0 12px}h1 em{display:inline-block;font-family:'Great Vibes',cursive;font-size:1.02em;letter-spacing:0;font-style:normal;margin-top:12px;color:#8c7250}.subtitle{font-family:'Cormorant Garamond',serif;font-size:20px;margin:16px 0}.envelope-caption{font-size:10px}.envelope-caption span{font-family:'Great Vibes',cursive;font-size:24px;margin-top:6px}.stage{--w:min(440px,78vw);height:calc(var(--w) * .68);margin:55px auto 0;transition:opacity 1s,filter 1s}.envelope{perspective:1100px;transition:transform 1.8s cubic-bezier(.2,.7,.2,1)}.back{box-shadow:0 24px 50px #45351f30,inset 0 0 0 1px #bdb19d}.pocket{background:linear-gradient(28deg,#d9cdb9,#f3ecdf 70%)}.flap{transition:transform 1.25s .28s cubic-bezier(.45,.05,.25,1),filter 1.25s .28s;transform-origin:50% 0;transform-style:preserve-3d}.opened .flap{transform:rotateX(178deg);filter:brightness(.86);z-index:3}.opened .envelope{transform:rotate(0deg) translateY(12px)}.opened .seal{transform:translate(6px,28px) rotate(20deg) scale(.85);opacity:0}.opened{height:calc(var(--w) * .68);margin-top:55px}.opened .card{animation:none!important;opacity:0!important}.opened .shadow{bottom:0}.opened .float{animation:none}.opened .envelope-caption{opacity:.4}.action,.opened+.action{margin:20px 0 15px;z-index:45;transition:color .8s}.open-button{font-size:12px;letter-spacing:2.2px;min-height:48px}#hint{font-family:'Cormorant Garamond',serif;font-size:17px}#replay{font-size:14px;min-height:44px}.focus-shade{position:fixed;inset:0;background:#151714;opacity:0;pointer-events:none;z-index:25;transition:opacity 1.6s .5s}.revealed .focus-shade{opacity:.82}.revealed .stage{z-index:30}.revealed header{color:#eee7d8;transition:color 1s}.revealed #sound{color:#e8dfca}.revealed .bars i{background:#e8dfca}.revealed .header-note{color:#c7bfaf}.revealed .intro{opacity:0;transform:translateY(-15px)}.card-focus .stage{opacity:.18;filter:blur(3px)}.revealed .action{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:0;width:100%;margin:0;color:#f4eddd}.revealed .open-button{color:#eee5d0;border-color:#a69675;font-size:11px;padding:6px;min-height:36px}.revealed #hint{color:#c8bfab;margin:5px 0;font-size:15px}.revealed #replay{color:#c8bfab;min-height:32px;font-size:12px}.revealed footer{opacity:0}#focus-card{position:fixed;z-index:40;border:0;padding:5px;background:#faf5ea;box-shadow:0 18px 80px #0009,0 0 0 1px #cfbea050;cursor:zoom-in;border-radius:1px}#focus-card img{display:block;width:100%;height:100%;object-fit:contain}#focus-card[hidden]{display:none}footer{font-size:10px;padding:15px 10px 24px}dialog{z-index:100;max-width:min(94vw,560px);max-height:94svh}dialog img{max-height:82svh;object-fit:contain;width:100%}dialog a{padding:15px;font-family:'Jost',sans-serif;font-size:12px}dialog>button{z-index:101;top:max(12px,env(safe-area-inset-top));right:12px}.seal{transition:transform .7s,opacity .6s}.seal>span{font-family:'Cormorant Garamond',serif;font-size:26px;letter-spacing:-2px}.seal .amp{font-family:'Great Vibes';font-size:18px}.action button:hover{color:#b08b53}.revealed .action button:hover{color:white}
@media(max-width:600px){header{height:68px;padding:12px 6%}.intro{padding:28px 15px 0}.eyebrow{font-size:9px;letter-spacing:1.6px}h1{font-size:clamp(40px,10vw,58px);letter-spacing:-1px;margin-top:18px}h1 em{margin-top:14px}.subtitle{font-size:18px;margin-top:16px}.stage,.opened{--w:min(440px,82vw);margin-top:57px;height:calc(var(--w)*.68)}.envelope-caption{font-size:8px;bottom:18px;letter-spacing:1.5px}.envelope-caption span{font-size:21px}.seal{width:54px;height:54px;left:calc(50% - 27px);top:43%}.action,.opened+.action{margin-top:20px}#hint{font-size:16px}.open-button{font-size:11px;letter-spacing:1.7px}footer{font-size:9px;flex-wrap:wrap;gap:12px}.revealed .action{margin:0}.revealed .envelope{transform:rotate(0deg) translateY(12px)}}
@media(max-height:740px){.intro{padding-top:16px}h1{font-size:clamp(36px,8vw,52px);margin:14px 0 10px}.subtitle{margin:12px 0}.stage,.opened{margin-top:45px;--w:min(370px,78vw)}.action,.opened+.action{margin-top:12px}footer{padding-top:8px} .revealed .action{margin:0}}
@media(max-height:530px) and (orientation:landscape){.intro{padding-top:10px}h1{font-size:36px}.eyebrow,.subtitle{display:none}.stage,.opened{--w:240px;margin-top:36px}.envelope-caption{bottom:12px;font-size:7px}.envelope-caption span{font-size:17px}.seal{width:44px;height:44px;left:calc(50% - 22px)}footer{display:none}.action{margin-top:8px}#hint{margin:5px 0}.revealed header{height:58px}}
@media(prefers-reduced-motion:reduce){.float,.shadow{animation:none}.flap,.seal,.intro,.focus-shade{transition-duration:.01ms;transition-delay:0s}.opened .card{opacity:0!important}}
@media(max-width:380px){.seal{width:48px;height:48px;left:calc(50% - 24px);top:35%}.seal>span{font-size:22px}.envelope-caption{bottom:12px}.envelope-caption span{font-size:20px}}
