/* ==========================================================================
   Aevy animated logo
   Mark: gradient tile + "A" that draws itself + a node that pops and pulses.
   Wordmark: letters rise in one by one. Hover replays a light sweep.
   Gradient defs live once in index.html (#aevyG) so every logo can reuse them.
   ========================================================================== */
.brand, .auth-brand { position: relative; }
.logo-mark { overflow: visible; flex: none; border-radius: 8px; transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.brand:hover .logo-mark, .auth-brand:hover .logo-mark { transform: rotate(-6deg) scale(1.08); }

.logo-mark .lm-tile { fill: url(#aevyG); }
.logo-mark .lm-shine { fill: url(#aevyShine); opacity: .9; }
.logo-mark .lm-a, .logo-mark .lm-bar {
  fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.logo-mark .lm-dot { fill: #fff; transform-box: fill-box; transform-origin: center; }
.logo-mark .lm-ring { fill: none; stroke: #fff; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.logo-mark .lm-sweep { fill: #fff; opacity: 0; }

/* intro: tile fades in, A draws, crossbar draws, node pops, ring pulses */
.logo-mark.lm-play .lm-tile { animation: lm-tile .55s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
.logo-mark.lm-play .lm-a { animation: lm-draw .7s .25s cubic-bezier(.65, 0, .25, 1) both; }
.logo-mark.lm-play .lm-bar { animation: lm-draw .35s .85s cubic-bezier(.65, 0, .25, 1) both; }
.logo-mark.lm-play .lm-dot { animation: lm-pop .5s 1s cubic-bezier(.2, 1.6, .4, 1) both; }
.logo-mark.lm-play .lm-ring { animation: lm-ring 2.8s 1.3s ease-out infinite; }

@keyframes lm-tile { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes lm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lm-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes lm-ring { 0% { opacity: .75; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }

/* hover: light sweeps across the tile */
.brand:hover .lm-sweep, .auth-brand:hover .lm-sweep { animation: lm-sweep .9s ease; }
@keyframes lm-sweep { 0% { opacity: 0; transform: translateX(-40px) skewX(-20deg); } 40% { opacity: .35; } 100% { opacity: 0; transform: translateX(40px) skewX(-20deg); } }

/* wordmark */
.logo-word { display: inline-flex; }
.logo-word i { font-style: normal; display: inline-block; }
.lm-play-word i { animation: lw-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.lm-play-word i:nth-child(1) { animation-delay: .35s; }
.lm-play-word i:nth-child(2) { animation-delay: .43s; }
.lm-play-word i:nth-child(3) { animation-delay: .51s; }
.lm-play-word i:nth-child(4) { animation-delay: .59s; }
@keyframes lw-in { from { opacity: 0; transform: translateY(70%); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.brand:hover .logo-word i { animation: lw-hop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.brand:hover .logo-word i:nth-child(2) { animation-delay: .05s; }
.brand:hover .logo-word i:nth-child(3) { animation-delay: .1s; }
.brand:hover .logo-word i:nth-child(4) { animation-delay: .15s; }
@keyframes lw-hop { 0% { transform: none; } 40% { transform: translateY(-3px); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-mark *, .logo-word i { animation: none !important; transition: none !important; }
  .logo-mark .lm-ring { opacity: 0; }
}
