/* Original layered Banner_WEBSITE.psb, on its authored 2560 × 1440 canvas.
   State, routing, storage, guide and input handling remain in the existing modules. */
#home.cozy-hero{padding-left:0;padding-right:0;padding-bottom:6px;min-height:0}
#home.cozy-hero .cozy-backdrop{background:#fffaf0}
#home.cozy-hero .parcel-stage{width:min(100%,1200px);aspect-ratio:16/9;margin:14px auto 0;overflow:hidden;perspective:none;border-radius:18px;isolation:isolate}
#home.cozy-hero .parcel-stage:before{display:none}
.psb-scene{position:absolute;inset:0;width:100%;height:100%;isolation:isolate}
.psb-background,.psb-background img{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
#home.cozy-hero .parcel-rig{inset:0;perspective:none;transform-origin:50% 89%}
#home.cozy-hero .psb-layer{position:absolute;display:block;max-width:none;bottom:auto;pointer-events:none;user-select:none;clip-path:none}
#home.cozy-hero .parcel-body{z-index:1;animation:none}
#home.cozy-hero .parcel-front{z-index:4}
#home.cozy-hero .parcel-closed-body{z-index:5}
#home.cozy-hero .parcel-lid{z-index:6;transform-origin:50% 90%}
#home.cozy-hero .parcel-cat[data-cat]{left:var(--psb-x);top:var(--psb-y);width:var(--psb-w);height:var(--psb-h);bottom:auto;z-index:5;transform-origin:50% 95%}
#home.cozy-hero .parcel-cat[data-cat="grumpurr"]{z-index:3}
#home .parcel-cat-art{width:100%;height:100%}
#home .parcel-cat-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#home .psb-open-lid,#home .psb-action-vfx,#home .psb-open-vfx{opacity:0}
#home .psb-open-lid{z-index:2}
#home .psb-closed-vfx,#home .psb-open-vfx,#home .psb-action-vfx{z-index:7;transition:opacity 320ms}
#home:not([data-state="closed"]) .psb-closed-vfx{opacity:0}
#home[data-state="opening"] .psb-action-vfx{animation:psb-burst 820ms ease-out both}
#home[data-state="opening"] .psb-open-lid{animation:psb-lid 820ms ease-out both}
#home[data-state="idle"] .psb-open-vfx,#home[data-state="invite"] .psb-open-vfx{opacity:1}
#home.cozy-hero .parcel-open{left:30%;right:29%;top:50%;bottom:8%;border-radius:18%}
#home.cozy-hero .parcel-open:before{inset:0}
#home.cozy-hero .parcel-tap-hint{left:31%;right:30%;top:80%;z-index:9}
#home.cozy-hero .cozy-tap-label{font-size:clamp(17px,2.4vw,29px)}
#home.cozy-hero .cozy-tap-gesture{width:34px;height:38px}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .parcel-stage{width:min(100%,1200px,calc((100svh - var(--parcel-header,86px) - 34px)*1.777778));margin:0 auto}
#home.cozy-hero .parcel-actions{padding-top:4px}
#home.cozy-hero .parcel-replay{bottom:14px}
#home[data-paused] .psb-open-lid,#home[data-paused] .psb-action-vfx{animation-play-state:paused!important}
@keyframes psb-burst{0%{opacity:0;transform:scale(.65)}20%,65%{opacity:1}100%{opacity:0;transform:scale(1.05)}}
@keyframes psb-lid{0%{opacity:0;transform:translate(90px,280px) rotate(20deg) scale(.7)}15%,65%{opacity:1}100%{opacity:0;transform:translate(-80px,-60px) rotate(-12deg)}}
@media(max-width:760px){
 #home.cozy-hero{padding:22px 0 4px}
 #home.cozy-hero .parcel-heading{padding:0 14px}
 #home.cozy-hero .parcel-stage{width:100%;aspect-ratio:4/5;margin:12px auto 0;border-radius:0}
 .psb-scene{inset:0 auto 0 50%;width:222.222222%;height:100%;translate:-50% 0}
 #home.cozy-hero .cozy-tap-label{font-size:20px;gap:6px}
 #home.cozy-hero .cozy-tap-gesture{width:29px;height:33px}
 :is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .parcel-stage{width:min(100%,calc((100svh - var(--parcel-header,86px) - 30px)*.8));margin:0 auto}
 #home.cozy-hero .parcel-cat-name{font-size:10px;padding:3px 7px}
}
@media(prefers-reduced-motion:reduce){#home .psb-open-lid,#home .psb-action-vfx{animation:none!important}#home .psb-closed-vfx,#home .psb-open-vfx,#home .psb-action-vfx{transition:none!important}}

/* Complete source faces are the phone baseline: pupils never depend on hidden SVG. */
#home .parcel-cat-art>img.psb-static-face{display:none}
#home .parcel-cat-art>img.psb-blink{z-index:3;opacity:0;pointer-events:none;animation:psb-natural-blink 7.4s linear -1.7s infinite}
#home .parcel-cat[data-cat="daisy"] .parcel-cat-art>img.psb-blink{animation-duration:6.7s;animation-delay:-4.1s}
#home .parcel-cat[data-cat="grumpurr"] .parcel-cat-art>img.psb-blink{animation-duration:9.3s;animation-delay:-6.2s}
#home .parcel-cat[data-cat="dobby"] .parcel-cat-art>img.psb-blink{animation-name:psb-double-blink;animation-duration:8.6s;animation-delay:-2.4s}
#home .parcel-cat:has(.psb-greeting)[data-reacting] .psb-blink,#home[data-state="invite"] .parcel-cat:has(.psb-greeting) .psb-blink{visibility:hidden}
@keyframes psb-natural-blink{0%,52%,56%,100%{opacity:0}53.2%,54.2%{opacity:1}}
@keyframes psb-double-blink{0%,48%,51.4%,54.5%,100%{opacity:0}49.2%,50%{opacity:1}52.5%,53.2%{opacity:1}}
@media(max-width:760px){
 #home .parcel-cat-art>img.psb-face{display:none}
 #home .parcel-cat-art>img.psb-static-face{display:block}
 }
/* The locked introduction covers the actual browser viewport, including Safari's
   expanding/collapsing controls. Foreground art keeps the box inside phone edges. */
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero{position:fixed;inset:0;z-index:1000;width:100vw;height:100svh;height:100dvh;min-height:0;padding:0;overflow:hidden;display:block}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .cozy-backdrop{inset:0;background:#fff0cd url('psb-banner-372/background-1920.webp') center bottom/cover no-repeat;transform:none!important}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .cozy-backdrop:after{display:none}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .parcel-stage{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;border-radius:0;overflow:hidden}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .psb-scene{inset:auto auto 4svh 50%;bottom:4dvh;width:min(100vw,1600px);height:auto;aspect-ratio:16/9;translate:-50% 0}
:is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .psb-background{visibility:hidden}
@media(max-width:760px){
 :is(.cozy-intro-pending,.cozy-intro-preview) #home.cozy-hero .psb-scene{width:min(215vw,177.7778svh);width:min(215vw,177.7778dvh)}
}
/* Separate authored ornaments: opacity and compositor transforms only. */
#home .psb-ornament{position:absolute;z-index:7;max-width:none;pointer-events:none;user-select:none;transform-origin:center;animation:psb-ornament-drift var(--ornament-time) ease-in-out var(--ornament-delay) infinite;transition:opacity 320ms}
#home .psb-ornament:nth-of-type(3n){animation-name:psb-ornament-shimmer}
#home[data-state="closed"] .psb-ornament-open,#home:not([data-state="closed"]) .psb-ornament-closed{opacity:0;visibility:hidden;animation-play-state:paused}
#home[data-state="opening"] .psb-ornament-open{opacity:0;visibility:hidden}
#home[data-state="idle"] .psb-ornament-open,#home[data-state="invite"] .psb-ornament-open{opacity:1;visibility:visible}
@keyframes psb-ornament-drift{0%,100%{transform:translate3d(0,3px,0) rotate(calc(var(--ornament-turn)*-1)) scale(.96)}50%{transform:translate3d(0,-9px,0) rotate(var(--ornament-turn)) scale(1.035)}}
@keyframes psb-ornament-shimmer{0%,100%{transform:scale(.91) rotate(calc(var(--ornament-turn)*-1))}50%{transform:scale(1.04) rotate(var(--ornament-turn))}}
#home[data-paused] .psb-blink,#home[data-paused] .psb-ornament,.happi-scrolling #home .psb-blink,.happi-scrolling #home .psb-ornament{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#home .psb-blink{animation:none!important;opacity:0!important}#home .psb-ornament{animation:none!important;transition:none!important;transform:none!important;filter:none!important}}

/* Material highlight follows the source box silhouette, including the bow.
   The old hit-target gradient must never paint outside that silhouette. */
#home.cozy-hero .parcel-open:before{display:none!important;content:none!important;animation:none!important}
#home .psb-box-shine{position:absolute;z-index:7;display:block;overflow:hidden;pointer-events:none;opacity:0;transition:opacity 140ms linear;-webkit-mask-image:url('psb-polish-376/closed-box-alpha.png');mask-image:url('psb-polish-376/closed-box-alpha.png');-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-mode:alpha}
#home[data-state="closed"] .psb-box-shine{opacity:1}
.psb-box-shine>i{position:absolute;inset:-25% -100%;display:block;background:linear-gradient(112deg,transparent 38%,#fff6d700 43%,#fff7dc35 47%,#fffbea9c 50%,#fff6d72e 53%,#fff6d700 58%,transparent 63%);opacity:0;transform:translate3d(-45%,0,0);animation:psb-box-satin 9.2s cubic-bezier(.4,0,.2,1) -2.3s infinite}
@keyframes psb-box-satin{0%,57%{opacity:0;transform:translate3d(-45%,0,0)}61%{opacity:.22}72%{opacity:.48}84%{opacity:0;transform:translate3d(45%,0,0)}100%{opacity:0;transform:translate3d(45%,0,0)}}
@supports not ((mask-image:url('x')) or (-webkit-mask-image:url('x'))){#home .psb-box-shine{display:none}}
/* A brief curious nudge, then a generous rest rather than constant shaking. */
#home.cozy-hero[data-state="closed"] .parcel-rig{animation:psb-curious-parcel 9.2s cubic-bezier(.45,0,.25,1) infinite}
@keyframes psb-curious-parcel{0%,49%,72%,100%{transform:none}54%{transform:translate3d(0,-1px,0) rotate(-.45deg)}59%{transform:translate3d(0,-2px,0) rotate(.55deg)}64%{transform:translate3d(0,-.5px,0) rotate(-.2deg)}}
/* Each butterfly has a slow curved drift and a separate, softer wing beat. */
#home .psb-ornament>img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;user-select:none}
#home .psb-ornament.psb-ornament-butterfly{animation:psb-butterfly-orbit var(--drift-time,8.4s) cubic-bezier(.45,0,.55,1) var(--ornament-delay) infinite;transform-origin:center 65%}
#home .psb-ornament.psb-ornament-butterfly>img{animation:psb-soft-wings var(--flutter-time,1.2s) ease-in-out var(--ornament-delay) infinite;transform-origin:50% 60%}
#home .psb-ornament.psb-ornament-star{animation:psb-star-breathe var(--ornament-time,5s) ease-in-out var(--ornament-delay) infinite}
#home .psb-ornament.psb-ornament-flower{animation:psb-flower-sway var(--drift-time,9s) ease-in-out var(--ornament-delay) infinite}
#home .psb-ornament.psb-ornament-mote{animation:psb-mote-rise 6.9s ease-in-out var(--ornament-delay) infinite}
@keyframes psb-butterfly-orbit{0%,100%{transform:translate3d(-3px,2px,0) rotate(-3deg)}28%{transform:translate3d(8px,-9px,0) rotate(4deg)}59%{transform:translate3d(3px,-15px,0) rotate(1deg)}82%{transform:translate3d(-7px,-5px,0) rotate(-4deg)}}
@keyframes psb-soft-wings{0%,100%{transform:scaleX(1) rotate(-1deg)}48%{transform:scaleX(.76) rotate(2deg)}}
@keyframes psb-star-breathe{0%,100%{opacity:.68;transform:scale(.94)}42%{opacity:1;transform:scale(1.045)}72%{opacity:.86;transform:scale(1)}}
@keyframes psb-flower-sway{0%,100%{opacity:.86;transform:translate3d(0,1px,0) rotate(-2deg)}48%{opacity:1;transform:translate3d(2px,-5px,0) rotate(2deg)}}
@keyframes psb-mote-rise{0%,100%{opacity:.72;transform:translate3d(0,2px,0) scale(.97)}54%{opacity:1;transform:translate3d(-2px,-6px,0) scale(1.015)}}
/* Keep the supplied opening pose on the same responsive canvas. */
@keyframes psb-lid{0%{opacity:0;transform:translate(50%,62%) rotate(18deg) scale(1.14,.8)}13%{opacity:.9}58%{opacity:1;transform:translate(0,0) rotate(-3deg) scale(1)}100%{opacity:0;transform:translate(-8%,-10%) rotate(-10deg) scale(.96)}}
#home[data-paused] .psb-box-shine>i,#home[data-paused] .psb-ornament>img,
.happi-scrolling #home .psb-box-shine>i,.happi-scrolling #home .psb-ornament>img,
#home[data-state="closed"] .psb-ornament-open>img{animation-play-state:paused!important}
@media(max-width:760px){.psb-box-shine>i{background:linear-gradient(112deg,transparent 40%,#fff6d700 44%,#fff7dc2e 48%,#fffbea80 50%,#fff6d726 52%,#fff6d700 56%,transparent 61%)}}
@media(prefers-reduced-motion:reduce){#home.cozy-hero[data-state="closed"] .parcel-rig,#home .psb-box-shine>i,#home .psb-ornament,#home .psb-ornament>img{animation:none!important}#home .psb-box-shine{display:none}#home .psb-ornament{transform:none!important;opacity:1}}
#home[data-state="closed"] .psb-ornament-open,#home:not([data-state="closed"]) .psb-ornament-closed{animation-play-state:paused!important}

/* The authored Action pose is a beat of its own: light from inside the box,
   then the friends rise after it settles. No flash covers the front panel. */
#home .psb-action-vfx{z-index:3;transform-origin:50% 88%;transition:none}
#home[data-state="opening"] .psb-action-vfx{animation:psb-authored-reveal 1600ms linear both}
#home[data-state="opening"] .psb-open-lid{animation:psb-authored-lid 1600ms cubic-bezier(.22,.8,.3,1) both}
#home.cozy-hero[data-state="opening"] .parcel-body{animation:none;opacity:1;transform:none}
#home.cozy-hero[data-state="opening"] .parcel-cat[data-cat]{transition:none;animation:psb-friend-arrival 1600ms cubic-bezier(.2,.75,.25,1) both}
#home.cozy-hero[data-state="opening"] .parcel-front{opacity:1;transform:none}
@keyframes psb-authored-reveal{0%{opacity:0;transform:scale(.9)}16%{opacity:1;transform:scale(1)}60%{opacity:1;transform:scale(1)}92%,100%{opacity:0;transform:scale(1)}}
@keyframes psb-authored-lid{0%{opacity:0;transform:translate(42%,55%) rotate(12deg) scale(.9)}22%,65%{opacity:1;transform:none}100%{opacity:0;transform:translate(-5%,-7%) rotate(-5deg)}}
@keyframes psb-friend-arrival{0%,61%{opacity:0;transform:translateY(20%) scale(.97)}74%{opacity:0}100%{opacity:1;transform:none}}
/* A solid eyelid travels down each eye and back up. The original eyes stay
   opaque underneath: no crossfade, ghost pupils or whole-face flashing. */
#home .parcel-cat-art>.psb-eyelids{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}
#home .psb-lid-shutter{transform-box:fill-box;transform-origin:50% 0;transform:scaleY(0);animation:psb-lid-close 7.1s linear -1.3s infinite}
#home [data-cat="daisy"] .psb-lid-shutter{animation-duration:6.3s;animation-delay:-3.8s}
#home [data-cat="dobby"] .psb-lid-shutter{animation-duration:8.2s;animation-delay:-5.3s}
#home [data-cat="grumpurr"] .psb-lid-shutter{animation-duration:9.4s;animation-delay:-6.7s}
@keyframes psb-lid-close{0%,47%,51.2%,100%{transform:scaleY(0)}48.5%,49%{transform:scaleY(1)}}
#home[data-state="closed"] .psb-eyelids,#home[data-state="opening"] .psb-eyelids,
#home [data-reacting] .psb-eyelids,#home[data-state="invite"] .parcel-cat:has(.psb-greeting) .psb-eyelids{visibility:hidden}
#home[data-paused] .psb-lid-shutter,.happi-scrolling #home .psb-lid-shutter{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
 #home .psb-eyelids{display:none}
 #home.cozy-hero[data-state="opening"] .parcel-cat[data-cat],#home[data-state="opening"] .psb-action-vfx,#home[data-state="opening"] .psb-open-lid{animation:none!important}
}
/* Something small is pushing from inside. Only the sealed parcel moves;
   the window, floating flowers and tap target remain steady. */
#home .psb-sealed-parcel{position:absolute;inset:0;z-index:5;pointer-events:none;transform-origin:50.6% 90.3%}
#home.cozy-hero[data-state="closed"] .parcel-rig{animation:none}
#home[data-state="closed"] .psb-sealed-parcel{animation:psb-inside-rustle 8.8s cubic-bezier(.42,0,.3,1) infinite}
@keyframes psb-inside-rustle{
 0%,18%,38%,68%,88%,100%{transform:none}
 21%{transform:translateY(-1px) rotate(-.65deg)}
 24%{transform:translateY(-3px) rotate(.9deg)}
 27%{transform:translateY(-1px) rotate(-.7deg)}
 30%{transform:translateY(-2px) rotate(.35deg)}
 34%{transform:translateY(1px) scale(1.004,.996)}
 72%{transform:translateY(1px) scale(1.006,.993)}
 75%{transform:translateY(-4px) rotate(-.8deg)}
 78%{transform:translateY(-1px) rotate(1deg)}
 81%{transform:translateY(-2px) rotate(-.4deg)}
 84%{transform:translateY(1px) scale(1.003,.997)}
}
/* Pause the parcel when offscreen; expression visibility has one owner in banner-polish.css. */
#home[data-paused] .psb-sealed-parcel,.happi-scrolling #home .psb-sealed-parcel{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#home .psb-sealed-parcel{animation:none!important}}
/* Keep one breathing clock through opening, idle and greeting. Switching
   expressions must not replace a transform animation or reset its phase. */
#home.cozy-hero:is([data-state="opening"],[data-state="idle"],[data-state="invite"]) .parcel-cat .parcel-cat-art{animation:psb-continuous-breathe var(--psb-breath-time,7.8s) cubic-bezier(.45,0,.55,1) infinite;transform-origin:50% 94%}
#home [data-cat="daisy"]{--psb-breath-time:8.3s}
#home [data-cat="dobby"]{--psb-breath-time:7.2s}
#home [data-cat="grumpurr"]{--psb-breath-time:9.1s}
@keyframes psb-continuous-breathe{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}50%{transform:translate3d(0,-2px,0) rotate(.22deg)}}
@media(prefers-reduced-motion:reduce){#home.cozy-hero .parcel-cat .parcel-cat-art{animation:none!important;transform:none}}

/* Supplied transparent Tap to open artwork. */
#home.cozy-hero .parcel-tap-hint .cozy-tap-art{display:block;width:clamp(240px,28vw,380px);max-width:72vw;height:auto;margin:0 auto;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 0 7px #fff1be99)}
@media(max-width:760px){#home.cozy-hero .parcel-tap-hint .cozy-tap-art{width:62vw;max-width:300px}}

/* A short two-beat invitation, followed by a quiet pause. */
#home.cozy-hero[data-state="closed"] .cozy-tap-art{transform-origin:50% 65%;animation:tap-art-invite 3.8s cubic-bezier(.22,.61,.36,1) infinite;will-change:transform}
@keyframes tap-art-invite{
 0%,48%,100%{transform:translate3d(0,0,0) scale(1);filter:drop-shadow(0 0 6px #fff1be88)}
 12%{transform:translate3d(0,-7px,0) scale(1.045);filter:drop-shadow(0 0 13px #ffe18cdd)}
 21%{transform:translate3d(0,1px,0) scale(.99)}
 30%{transform:translate3d(0,-4px,0) scale(1.025);filter:drop-shadow(0 0 10px #ffe6a8cc)}
 40%{transform:translate3d(0,0,0) scale(1)}
}
#home.cozy-hero[data-paused] .cozy-tap-art{animation-play-state:paused!important}
#home.cozy-hero:not([data-state="closed"]) .cozy-tap-art{animation:none;will-change:auto}
@media(hover:hover) and (pointer:fine){#home.cozy-hero[data-state="closed"]:has(.parcel-open:hover) .cozy-tap-art{animation-duration:2.6s}}
@media(prefers-reduced-motion:reduce){#home.cozy-hero[data-state="closed"] .cozy-tap-art{animation:none;will-change:auto}}
