/* Only the initial homepage logo. Geometry, type and RGB treatment are from
   techno-trump/linnikov-agency at c6560806b4 (framework.scss / home/index.scss).
   Scope the additions so the existing bundles and every other RGB label stay intact. */
#animated-logo-layer .linnik-intro-logo .hero__animated-logo {
    font-size: 20px;
}

#animated-logo-layer .linnik-intro-logo .hero__mob-logo {
    font-size: inherit;
}

#animated-logo-layer .linnik-intro-logo figcaption {
    font-size: 0;
}

#animated-logo-layer .linnik-intro-logo .logo__ampersand {
    text-align: center;
    font-size: 37px;
    font-weight: 500;
    position: absolute !important;
    display: inline-block;
    line-height: 70%;
    left: -2px !important;
    top: 0;
    width: 100%;
    height: 100%;
}

#animated-logo-layer .linnik-intro-logo .logo__ampersand > :first-child {
    color: white;
}

#animated-logo-layer .linnik-intro-logo .logo_mob .logo__ampersand {
    position: relative !important;
    line-height: 76%;
    left: 0 !important;
    /* The WP bundle sets width, but predates the source's --logo-width update. */
    font-size: calc(var(--linnik-intro-logo-width, 27px) * 1.7);
}

#animated-logo-layer .linnik-intro-logo .text-rgb-shake__set {
    width: 100%;
    height: 100%;
}

#animated-logo-layer .linnik-intro-logo .text-rgb-shake_active > :first-child {
    opacity: 0;
}

/* Existing common.min.css already supplies the exact 0.9s red/blue keyframes,
   exclusion blend and red/green/blue glyph layers used by the source. */
@media (max-width: 1240px) {
    #animated-logo-layer .linnik-intro-logo {
        top: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #animated-logo-layer .linnik-intro-logo .text-rgb-shake__set {
        display: none;
    }

    #animated-logo-layer .linnik-intro-logo .text-rgb-shake_active > :first-child {
        opacity: 1;
    }
}
