/* Logo intro: the cat assembles, "zeka" is written left to right, the swash draws,
   then the whole white panel wipes up to reveal the page. Plays once per session. */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #fff;
  animation: intro-wipe .9s cubic-bezier(.76, 0, .24, 1) 2.45s forwards;
}
.intro-on body { overflow: hidden; }
.intro-logo { width: min(560px, 78vw); height: auto; overflow: visible; }

.intro-on .cat-body { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .55s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
.intro-on .cat-head { transform-box: fill-box; transform-origin: 50% 100%; animation: drop .55s cubic-bezier(.2, .9, .25, 1.2) .38s both; }
.intro-on .cat-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink .32s ease-in-out 1.55s both; }
.intro-on .cat-tail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s cubic-bezier(.6, 0, .3, 1) .7s forwards; }
.intro-on .cat-arrow { transform-box: fill-box; transform-origin: 50% 100%; animation: pop .35s cubic-bezier(.2, .9, .3, 1.5) 1.12s both; }
.intro-on .word { clip-path: inset(0 100% 0 0); animation: write .95s cubic-bezier(.55, .05, .3, 1) .85s forwards; }
.intro-on .swash { stroke-dasharray: 1; stroke-dashoffset: -1; animation: swash .55s cubic-bezier(.6, 0, .3, 1) 1.7s forwards; }

/* page content starts slightly lowered and settles as the panel leaves */
.intro-on #app { animation: settle .9s cubic-bezier(.76, 0, .24, 1) 2.45s both; }

@keyframes rise { from { transform: translateY(40px) scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 50% { transform: scaleY(.1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes swash { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-wipe { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes settle { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
