/* Small companions, handmade details, and a reversible ribbon of paper. */
.scrollHeading{margin-bottom:103px}
.scrollHeading h2{margin-bottom:6px}
.scrollHeading i{height:22px}
.scrollLayout{max-width:740px}
.scrollCompanions{position:absolute;inset:0 0 auto;height:0;z-index:4;pointer-events:none}
.scrollPet{position:absolute;width:122px;height:139px;object-fit:contain;bottom:-17px;filter:drop-shadow(0 4px 5px #180e2629);transform-origin:50% 95%;animation:petSway 6s ease-in-out infinite;animation-play-state:paused}
.scrollCat{left:1%;transform:rotate(-7deg)}
.scrollDog{right:0;transform:rotate(7deg);animation-delay:-3s}
.scrollInView .scrollPet{animation-play-state:running}
@keyframes petSway{0%,100%{rotate:-3deg;translate:0 0}50%{rotate:3deg;translate:0 -4px}}
.petSpark{position:absolute;font-family:Georgia,serif;color:#efd4b2;text-shadow:0 0 12px #d2aa9655;font-size:21px;bottom:84px;animation:petGlimmer 4s ease-in-out infinite;animation-play-state:paused}
.petSparkOne{left:27%;bottom:74px}.petSparkTwo{right:27%;bottom:86px;font-size:27px;color:#d3b3d6;animation-delay:-2s}
.scrollInView .petSpark{animation-play-state:running}
@keyframes petGlimmer{50%{opacity:.35;transform:scale(.8)}}
.scrollRod{height:23px;border-radius:7px;background:repeating-linear-gradient(90deg,transparent 0,transparent 14px,#79566608 15px,#79566608 16px),linear-gradient(180deg,#a77c91,#f9e8ee 21%,#dfbbc9 52%,#b08094 86%,#896174);box-shadow:0 6px 12px #110b2629,inset 0 1px 0 #fff9}
.scrollRod:before,.scrollRod:after{width:10px;top:-4px;bottom:-4px;background:linear-gradient(#bd8fa3,#f1d4df 26%,#ad7c92 76%,#785465)}
.scrollRodBottom{margin-top:132px;transition:margin-top 2.3s cubic-bezier(.65,0,.35,1);background-position:calc(var(--roll-phase,0)*140px) 0,0 0}
.scrollFold{display:block;height:0;transition:none;overflow:hidden}
.scrollClip{overflow:hidden;min-height:0}
.scrollSheet{background:radial-gradient(ellipse at 8% 8%,#ebc9d421,transparent 38%),linear-gradient(90deg,#e9cbd250,transparent 7%,#fff9f166 50%,transparent 93%,#e9cbd250),#fbf1ed}
.scrollSheet:before,.scrollSheet:after{width:32px;background-image:url('./pets-border.svg');background-size:32px 490px;opacity:.76;top:7px}
.scrollSheet:before{left:7px}.scrollSheet:after{right:7px}
.scrollOpen{height:136px;top:20px;background:radial-gradient(ellipse at 50% 10%,#fff9edc7,transparent 85%),linear-gradient(90deg,#dfbcc8,#fae9e6 9%,#fff0e9 50%,#fae9e6 91%,#dfbcc8);transition:opacity .55s,visibility .55s,transform .75s;transform-origin:top center;box-shadow:inset 0 0 0 1px #dab9c34d}
.scrollOpen:before,.scrollOpen:after{background-image:url('./pets-border.svg');background-size:27px 420px;width:27px;opacity:.8}
.scrollOpen:before{left:18px}.scrollOpen:after{right:18px}
.scrollOpenTitle{font-size:28px;letter-spacing:.35em;padding-left:.35em}
.scrollOpen small{font-size:10px;letter-spacing:.2em;margin-top:3px}
.scrollSeal{right:23%;top:43px;background:#edd2db5c;box-shadow:inset 0 0 0 3px #f8e5e8,0 2px 5px #a36f8120}
.scrollWrap[data-state="opening"] .scrollOpen{transform:perspective(500px) rotateX(-78deg) scaleY(.82);opacity:0}
.scrollWrap[data-state="closing"] .scrollOpen{opacity:0;visibility:hidden;pointer-events:none;transform:perspective(500px) rotateX(-65deg)}
.scrollWrap[data-state="closed"] .scrollOpen{transform:none;opacity:1;visibility:visible}
.scrollWrap[data-state="opening"] .scrollPet{animation:petGreeting .85s ease-in-out both}
@keyframes petGreeting{0%{translate:0 0}40%{translate:0 -15px;rotate:-8deg}75%{translate:0 -3px;rotate:5deg}100%{translate:0 0}}
.scrollWrap[data-state="closing"] .scrollRodBottom{margin-top:132px;transition-duration:1.9s}
.scrollFarewell{display:flex;justify-content:center;align-items:center;gap:12px;margin:34px 0 17px;pointer-events:none}
.scrollFarewell img{width:69px;height:79px;object-fit:contain;filter:drop-shadow(0 2px 2px #aa849515)}
.scrollFarewell img:first-child{transform:rotate(-9deg)}.scrollFarewell img:last-child{transform:rotate(9deg) scaleX(-1)}
.scrollFarewell span{font:12px/2 "Songti SC",SimSun,serif;color:#a07b8e;letter-spacing:.15em;white-space:nowrap}
.scrollClose{display:flex;align-items:center;justify-content:center;gap:11px;min-height:46px;padding:8px 26px;margin:0 auto 4px;border:1px solid #c998ad80;border-radius:40px;background:linear-gradient(160deg,#fff7f4,#f0dce3);color:#865a70;box-shadow:0 3px 0 #e1c7d141,0 5px 14px #b38c991a;font:13px/1.8 "Songti SC",SimSun,serif;letter-spacing:.1em;touch-action:manipulation;transition:transform .2s,box-shadow .2s}
.scrollClose:hover{box-shadow:0 3px 0 #e1c7d155,0 5px 17px #b38c9940}.scrollClose:active{transform:translateY(2px)}
.scrollClose:focus-visible{outline:2px solid #a7728c;outline-offset:5px}
.scrollClose>span:first-child{font:20px/1 Georgia,serif}.closePaw{color:#b18498;font-size:16px}
@media(max-width:600px){
 .scrollHeading{margin-bottom:95px}.scrollHeading i{height:18px}
 .scrollPet{width:81px;height:92px;bottom:-10px}.scrollCat{left:1%}.scrollDog{right:0}
 .petSparkOne{left:33%;bottom:48px;font-size:16px}.petSparkTwo{right:30%;bottom:61px;font-size:20px}
 .scrollRod{height:20px}.scrollRodBottom{margin-top:117px}.scrollWrap[data-state="closing"] .scrollRodBottom{margin-top:117px}
 .scrollOpen{top:18px;height:120px}.scrollOpenTitle{font-size:25px}.scrollOpen small{font-size:9px}.scrollSeal{right:17%;top:39px}
 .scrollOpen:before,.scrollOpen:after{width:22px;background-size:22px 350px}.scrollOpen:before{left:9px}.scrollOpen:after{right:9px}
 .scrollSheet:before,.scrollSheet:after{width:17px;background-size:17px 300px;opacity:.62}.scrollSheet:before{left:1px}.scrollSheet:after{right:1px}
 .scrollFarewell{gap:4px;margin-top:30px}.scrollFarewell img{width:48px;height:55px}.scrollFarewell span{font-size:10px;letter-spacing:.06em}
 .scrollClose{font-size:12px;padding:9px 22px;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.scrollPet,.petSpark,.scrollWrap[data-state="opening"] .scrollPet{animation:none!important}.scrollOpen,.scrollRodBottom,.scrollClose{transition:none!important}}
