.logo {
    overflow: visible;
    margin-left: 20px;
}

.logo > a {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    animation:
        hopes-logo-reveal 750ms cubic-bezier(0.22, 1, 0.36, 1) both,
        hopes-logo-float 3.4s ease-in-out 750ms infinite;
}

.logo > a::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(112, 197, 0, 0.2);
    filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    animation: hopes-logo-glow 3.4s ease-in-out 750ms infinite;
}

.logo > a img {
    transform-origin: center;
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 280ms ease;
    will-change: transform;
}

.logo > a:hover img,
.logo > a:focus-visible img {
    transform: scale(1.07);
    filter: drop-shadow(0 0 7px rgba(112, 197, 0, 0.5));
}

.logo > a:active img {
    transform: scale(0.97);
}

.logo > a:focus-visible {
    border-radius: 0.5rem;
    outline: 2px solid var(--primary, #70c500);
    outline-offset: 0.35rem;
}

@keyframes hopes-logo-reveal {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.84) rotate(-3deg);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
        filter: blur(0);
    }
}

@keyframes hopes-logo-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes hopes-logo-glow {
    0%,
    100% {
        opacity: 0.08;
        transform: scale(0.82);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo > a,
    .logo > a::before {
        animation: none;
    }

    .logo > a img {
        transition: none;
    }
}