.company-craft {
    --company-craft-play-state: paused;
    aspect-ratio: 1000 / 680;
    background: var(--surface-subtle);
}

.company-craft.is-animating {
    --company-craft-play-state: running;
}

.company-craft.is-ready {
    --company-craft-assemble: company-craft-assemble;
    --company-craft-signal: company-craft-signal;
    --company-craft-finish: company-craft-finish;
}

.company-craft svg {
    display: block;
    width: 100%;
    height: auto;
}

.company-craft-label,
.company-craft-wordmark {
    fill: #102b30;
    font-family: var(--font-sans);
    text-anchor: middle;
}

.company-craft-label {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1px;
}

.company-craft-wordmark {
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.company-craft-module {
    animation: var(--company-craft-assemble, none) 14s cubic-bezier(.45, 0, .2, 1) infinite;
    animation-play-state: var(--company-craft-play-state);
}

.company-craft-module-nw {
    --company-craft-x: -16px;
    --company-craft-y: -16px;
}

.company-craft-module-ne {
    --company-craft-x: 16px;
    --company-craft-y: -16px;
    animation-delay: .2s;
}

.company-craft-module-sw {
    --company-craft-x: -16px;
    --company-craft-y: 16px;
    animation-delay: .4s;
}

.company-craft-module-se {
    --company-craft-x: 16px;
    --company-craft-y: 16px;
    animation-delay: .6s;
}

.company-craft-signal {
    opacity: 0;
    stroke-width: 6;
    stroke-dasharray: .1 99.9;
    animation: var(--company-craft-signal, none) 14s linear infinite;
    animation-play-state: var(--company-craft-play-state);
}

.company-craft-signal-build {
    animation-delay: 4.2s;
}

.company-craft-signal-refine {
    animation-delay: 7s;
}

.company-craft-finish {
    opacity: 0;
    animation: var(--company-craft-finish, none) 14s ease-in-out infinite;
    animation-play-state: var(--company-craft-play-state);
}

@keyframes company-craft-assemble {
    0%, 8%, 100% {
        transform: translate(var(--company-craft-x), var(--company-craft-y));
    }
    28%, 78% {
        transform: translate(0, 0);
    }
}

@keyframes company-craft-signal {
    0% { opacity: 0; stroke-dashoffset: 0; }
    1% { opacity: 1; stroke-dashoffset: 0; }
    18% { opacity: 1; stroke-dashoffset: -100; }
    19%, 100% { opacity: 0; stroke-dashoffset: -100; }
}

@keyframes company-craft-finish {
    0%, 52%, 86%, 100% { opacity: 0; }
    61%, 75% { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
    .company-craft-module {
        animation: none;
        transform: none;
    }

    .company-craft-signal,
    .company-craft-finish {
        animation: none;
        opacity: 0;
    }
}
