/* Axionex animated logo. The artwork is the original logo; motion is added as light layers on top of the "A". */
.ax-logo{--h:64px;direction:ltr;display:inline-flex;align-items:flex-start;height:var(--h);text-decoration:none;line-height:0}
.ax-mark{position:relative;flex:none;height:var(--h);aspect-ratio:927/640;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.ax-mark img{display:block;width:100%;height:100%;animation:axIn 1s cubic-bezier(.2,.8,.2,1) both}
.ax-word{display:block;flex:none;height:calc(var(--h)*.5);width:auto;margin-left:calc(var(--h)*-.172);margin-top:calc(var(--h)*.281);animation:axWord 1s .25s cubic-bezier(.2,.8,.2,1) both}

/* light sweep, clipped to the exact shape of the A */
.ax-sheen{position:absolute;inset:0;pointer-events:none;
  -webkit-mask:url(/assets/axionex-mark.webp) center/100% 100% no-repeat;mask:url(/assets/axionex-mark.webp) center/100% 100% no-repeat;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.85) 50%,transparent 62%) no-repeat;background-size:260% 100%;background-position:170% 0;
  mix-blend-mode:screen;opacity:.75;animation:axSheen 6s 1.1s ease-in-out infinite}

/* the star flare at the end of the swoosh twinkles */
.ax-flare{position:absolute;left:84.1%;top:30.3%;width:calc(var(--h)*.62);aspect-ratio:1;pointer-events:none;transform:translate(-50%,-50%);mix-blend-mode:screen;
  background:
    radial-gradient(circle,rgba(255,255,255,.95) 0 3%,rgba(125,211,255,.65) 9%,rgba(0,102,255,0) 34%),
    linear-gradient(90deg,transparent 8%,rgba(190,232,255,.85) 50%,transparent 92%) center/100% 3% no-repeat,
    linear-gradient(0deg,transparent 18%,rgba(190,232,255,.75) 50%,transparent 82%) center/3% 100% no-repeat;
  animation:axTwinkle 3s ease-in-out infinite}

.ax-logo:hover .ax-mark{transform:translateY(-2px)}
.ax-logo:hover .ax-sheen{animation-duration:1.6s;animation-delay:0s}

@keyframes axIn{from{opacity:0;transform:translateY(8px) scale(.9);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes axWord{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
@keyframes axSheen{0%{background-position:170% 0}40%,100%{background-position:-70% 0}}
@keyframes axTwinkle{0%,100%{opacity:.35;transform:translate(-50%,-50%) scale(.55) rotate(0)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(12deg)}60%{opacity:.8;transform:translate(-50%,-50%) scale(.9) rotate(8deg)}}

@media (max-width:640px){.ax-logo{--h:44px}}
@media (max-width:380px){.ax-logo{--h:38px}}
@media (prefers-reduced-motion:reduce){.ax-mark img,.ax-word,.ax-sheen,.ax-flare{animation:none}.ax-sheen{opacity:0}.ax-flare{opacity:.6}}
