/* Decorative covers for the homepage feed; media controls remain above the artwork. */
.modern-home-shell [data-home-animated-card] :is(.home-blog-card__cover,.video-post-thumbnail) {
    position:relative;
    isolation:isolate;
    overflow:hidden;
}
.modern-home-shell [data-home-animated-card] .home-content-animation {
    --content-start:#085765;
    --content-end:#1b9e9f;
    --content-accent:#ffe09a;
    --content-light:#efffff;
    --content-mid:#83dedb;
    --content-dark:#12414f;
    position:absolute;
    inset:0;
    z-index:0;
    display:grid;
    place-items:center;
    padding:3%;
    overflow:hidden;
    isolation:isolate;
    pointer-events:none;
    background:radial-gradient(ellipse at 78% 18%,#ffffff25,transparent 61%),linear-gradient(125deg,var(--content-start),var(--content-end));
}
.modern-home-shell [data-home-animated-card] .home-content-animation::before {
    content:"";
    position:absolute;
    inset:12% -25% -70% 32%;
    border:1px solid #ffffff24;
    border-radius:50%;
    box-shadow:0 0 0 26px #ffffff08,0 0 0 54px #ffffff06;
    transform:rotate(-18deg);
}
.modern-home-shell [data-home-animated-card] .home-content-animation::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent 65%,#001c2d18);
}
.modern-home-shell [data-home-animated-card] .home-content-animation--field-kitchen {
    --content-start:#175b4a;--content-end:#389b70;--content-accent:#ffdb87;--content-light:#f5ffef;--content-mid:#a7d9b5;--content-dark:#173f39;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--mobile-kitchen {
    --content-start:#87421f;--content-end:#d58b43;--content-accent:#b4f4e4;--content-light:#fff5e5;--content-mid:#ffcc94;--content-dark:#633c29;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--modular-kitchen {
    --content-start:#174775;--content-end:#4a8db8;--content-accent:#ffe197;--content-light:#f1faff;--content-mid:#9ed6ed;--content-dark:#183858;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--regulations {
    --content-start:#802543;--content-end:#c95673;--content-accent:#ffdf99;--content-light:#fff6ee;--content-mid:#f4b6be;--content-dark:#5c263c;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--literature {
    --content-start:#48366c;--content-end:#8870bb;--content-accent:#b7f4fa;--content-light:#faf5ff;--content-mid:#d0bce8;--content-dark:#302647;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--design {
    --content-start:#9a3659;--content-end:#db7290;--content-accent:#ffe59d;--content-light:#fff5f7;--content-mid:#ffc7d4;--content-dark:#642b47;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--code {
    --content-start:#303e81;--content-end:#6c73cb;--content-accent:#a4f1d8;--content-light:#f2f5ff;--content-mid:#aebcf4;--content-dark:#222c59;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--procurement {
    --content-start:#126369;--content-end:#39a599;--content-accent:#ffe0a0;--content-light:#f4fff5;--content-mid:#a0e4cf;--content-dark:#19454e;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--editorial {
    --content-start:#69436c;--content-end:#aa7099;--content-accent:#b2efdf;--content-light:#fff6fd;--content-mid:#e2b8d6;--content-dark:#46324d;
}
.modern-home-shell [data-home-animated-card] .home-content-animation--presentation {
    --content-start:#17617c;--content-end:#43a8be;--content-accent:#ffe5aa;--content-light:#f3ffff;--content-mid:#a1e6ee;--content-dark:#16475e;
}
.modern-home-shell [data-home-animated-card] .home-content-animation__art {
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:100%;
    max-width:420px;
    max-height:280px;
    overflow:visible;
    filter:drop-shadow(0 10px 9px #001e3028);
}
.home-content-animation__art * {transform-box:fill-box}
.home-content-animation .content-scene-steam {animation:ks-content-steam 4.6s ease-in-out infinite}
.home-content-animation .content-scene-steam:nth-child(2n) {animation-delay:-1.4s}
.home-content-animation .content-scene-steam:nth-child(3n) {animation-delay:-2.8s}
.home-content-animation .content-scene-wheel {transform-origin:center;animation:ks-content-wheel 24s linear infinite}
.home-content-animation .content-scene-mobile {transform-origin:center;animation:ks-content-mobile 6.7s ease-in-out infinite}
.home-content-animation .content-scene-signal {animation:ks-content-signal 9s linear infinite}
.home-content-animation .content-scene-module {animation:ks-content-module 7.4s ease-in-out infinite}
.home-content-animation .content-scene-module:nth-child(2n) {animation-direction:reverse;animation-delay:-2.1s}
.home-content-animation .content-scene-module-spark {animation:ks-content-module-spark 4s ease-in-out infinite}
.home-content-animation .content-scene-stamp {transform-origin:center;animation:ks-content-stamp 6s ease-in-out infinite}
.home-content-animation .content-scene-check {stroke-dasharray:80;stroke-dashoffset:0;animation:ks-content-check 6s ease-in-out infinite}
.home-content-animation .content-scene-page {transform-origin:left center;animation:ks-content-page 8.5s ease-in-out infinite}
.home-content-animation .content-scene-snow {animation:ks-content-snow 7.7s ease-in-out infinite}
.home-content-animation .content-scene-swatch {transform-origin:center bottom;animation:ks-content-swatch 7.2s ease-in-out infinite}
.home-content-animation .content-scene-cursor {animation:ks-content-cursor 5.6s ease-in-out infinite}
.home-content-animation .content-scene-code-line {animation:ks-content-code-line 5.4s ease-in-out infinite}
.home-content-animation .content-scene-code-line:nth-child(2n) {animation-delay:-1.6s}
.home-content-animation .content-scene-code-line:nth-child(3n) {animation-delay:-3.2s}
.home-content-animation .content-scene-code-bracket {animation:ks-content-code-bracket 6.5s ease-in-out infinite}
.home-content-animation .content-scene-approval {stroke-dasharray:80;stroke-dashoffset:0;animation:ks-content-approval 7.1s ease-in-out infinite}
.home-content-animation .content-scene-coin {transform-origin:center;animation:ks-content-coin 5.2s ease-in-out infinite}
.home-content-animation .content-scene-editorial {animation:ks-content-editorial 7.5s ease-in-out infinite}
.home-content-animation .content-scene-presentation {transform-origin:center;animation:ks-content-presentation 6.4s ease-in-out infinite}

/* Without JavaScript each scene is complete and still. */
.modern-home-shell [data-home-animated-card] .home-content-animation * {animation-play-state:paused}
.modern-home-shell [data-home-animated-card].is-motion-visible .home-content-animation * {animation-play-state:running}
.modern-home-shell.is-motion-paused [data-home-animated-card] .home-content-animation * {animation-play-state:paused}
.modern-home-shell [data-home-animated-card] .video-post-thumbnail :is(.play-btn-trigger,.video-overlay) {z-index:2}
.modern-home-shell [data-home-animated-card] .video-post-thumbnail :is(.video-post-formats,.video-post-time,.btn-option) {z-index:5}

@keyframes ks-content-steam {0%,100%{opacity:.65;transform:translateY(0)}65%{opacity:.15;transform:translateY(-14px)}}
@keyframes ks-content-wheel {to{transform:rotate(360deg)}}
@keyframes ks-content-mobile {0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-3px) rotate(.7deg)}}
@keyframes ks-content-signal {to{stroke-dashoffset:-48}}
@keyframes ks-content-module {0%,100%{transform:translateX(-3px)}50%{transform:translateX(4px)}}
@keyframes ks-content-module-spark {0%,100%{opacity:.55}55%{opacity:1}}
@keyframes ks-content-stamp {0%,100%{transform:rotate(-5deg)}55%{transform:rotate(4deg)}}
@keyframes ks-content-check {0%,12%,100%{stroke-dashoffset:0;opacity:1}35%{stroke-dashoffset:80;opacity:.4}75%{stroke-dashoffset:0;opacity:1}}
@keyframes ks-content-page {0%,100%{transform:rotate(-1deg)}55%{transform:rotate(3deg)}}
@keyframes ks-content-snow {0%,100%{opacity:.65;transform:translateY(0)}65%{opacity:.25;transform:translateY(10px)}}
@keyframes ks-content-swatch {0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg)}}
@keyframes ks-content-cursor {0%,100%{transform:translate(0,0)}50%{transform:translate(7px,-5px)}}
@keyframes ks-content-code-line {0%,100%{opacity:.65}50%{opacity:1}}
@keyframes ks-content-code-bracket {0%,100%{transform:translateX(-2px)}50%{transform:translateX(3px)}}
@keyframes ks-content-approval {0%,10%,100%{stroke-dashoffset:0;opacity:1}32%{stroke-dashoffset:80;opacity:.5}67%{stroke-dashoffset:0;opacity:1}}
@keyframes ks-content-coin {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes ks-content-editorial {0%,100%{transform:translateY(0)}55%{transform:translateY(-4px)}}
@keyframes ks-content-presentation {0%,100%{transform:scale(1)}55%{transform:scale(1.035)}}

@media(prefers-reduced-motion:reduce) {
    .modern-home-shell [data-home-animated-card] .home-content-animation * {animation:none!important}
    .modern-home-shell [data-home-animated-card] .home-content-animation :is(.content-scene-check,.content-scene-approval) {stroke-dashoffset:0!important;opacity:1!important}
    .modern-home-shell [data-home-animated-card] {transition:none!important}
}
