.seb-logo-animation {
    --seb-logo-size: 180px;
    position: relative;
    display: inline-block;
    width: var(--seb-logo-size);
    aspect-ratio: 1;
    isolation: isolate;
    overflow: hidden;
}

.seb-logo-animation__layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transition: opacity 520ms ease-in-out;
}

.seb-logo-animation:not([data-ready="true"])::after {
    content: '';
    position: absolute;
    inset: 42%;
    border: 2px solid rgba(10, 51, 138, 0.2);
    border-top-color: #0a338a;
    border-radius: 50%;
    animation: seb-logo-spin 800ms linear infinite;
}

.seb-logo-animation.is-running .seb-logo-animation__layer {
    will-change: opacity;
}

@keyframes seb-logo-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .seb-logo-animation__layer {
        transition: none;
    }

    .seb-logo-animation:not([data-ready="true"])::after {
        animation: none;
    }
}