html:has(.home) {
    height: 100%;
    overflow: hidden;
}
.home {
    height: 100%;
    overflow: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
.home .site-header__main-menu .depth-0.menu-item-has-children::after {
    opacity: 0;
}
.home .site-header {
    color: #000;
}

.home .site-header__main-menu .depth-0 > .sub-menu {
    background: #FFF;
}

.home .site-header__main-menu .depth-0.menu-item-has-children > a .icon,
.home .site-header__main-menu .depth-0.menu-item-has-children > .lvl .icon {
    color: #000;
}
.home .site-header__main-menu .depth-0 > a .hover-state,
.home .site-header__main-menu .depth-0 > .lvl .hover-state {
    display: none;
}
.home .site-header__main-menu .depth-0 > a:focus-visible,
.home .site-header__main-menu .depth-0:hover > a,
.home .site-header__main-menu .depth-0 > .lvl:focus-visible,
.home .site-header__main-menu .depth-0:hover > .lvl {
    color: #000;
}
.home .site-header__logo img,
.home .site-header__menu-toggle img {
    filter: brightness(0);
}
.home .site-header.has-scrolled {
    /* disable scroll top and display header */
    transform: translateY(-100%);
    background: transparent;
}
.home:has(.home-animation-step-2.is-visible),
.home:has(.home-animation-step-3.is-visible),
.home:has(.home-animation-step-last.is-visible) {
    scroll-snap-type: y proximity;
}
.home:has(.site-header:not(.is-scrolling-down)) {
    scroll-snap-type: y mandatory;
}
.home > .block-section {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.home > .home-animation-step-4 {
    scroll-snap-align: start;
}
.home > .home-animation-step-3-anchor {
    scroll-snap-stop: normal;
    scroll-snap-align: start;
    height: 100vh;
    margin-bottom: -100vh;
}
.home .site-header,
.home .site-content,
.home-animation,
.home .site-footer-newsletter {
    scroll-snap-align: none;
    scroll-snap-stop: initial;
}
.home .site-footer {
    background: #000;
    position: relative;
    z-index: 2;
    border-bottom-left-radius: 40px 45px;
    border-bottom-right-radius: 40px 45px;
    scroll-snap-stop: normal;
    scroll-snap-align: end;
}


.home .site-content {
    position: absolute;
    z-index: -3;
}
.home-animation {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;

    transition: transform 0.3s ease-out, opacity 0s 0s;
    background: linear-gradient(126.08deg, #F0F3FF 22.88%, #BCCCFF 71.83%) no-repeat;

    height: 300vh;
    --custom-theme-ending-ratio: 1;
}
body.wp-admin .editor-styles-wrapper {
    background: linear-gradient(126.08deg, #F0F3FF 22.88%, #BCCCFF 71.83%) no-repeat;
}

.home-animation:has(~.home-animation-step-4.is-visible),
.home-animation:has(~.home-animation-step-last.is-visible) {
    opacity: 0;
}
.home-animation:has(~.home-animation-step-3.is-visible) .home-animation__inner {
    justify-content: center;
}
.home-animation__inner {
    position: relative;
    max-width: 1440px;
    height: 100vh;
    width: 100%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 73px;
    padding-bottom: 39px;
    opacity: calc(var(--custom-theme-ending-ratio) * 3);
    font-size: clamp(14px, 1.1vw, 16px);
}
.home-animation__inner::before,
.home-animation__inner::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    height: 100%;
    width: 50px;
}
.home-animation__arrow {
    width: 26.5625em;
    height: auto;
    opacity: 0;
    transform: translateY(-2.5em);
    transition: opacity, transform 0.1s ease-out;
}
.home-animation:has(~.home-animation-step-2.is-visible) .home-animation__arrow {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.3s;
}
.home-animation__icons {
    position: absolute;
    inset: 0;
    transition: 0.4s ease-out 0.5s;
    transform: translateY(1.875em);
}
.home-animation:has(~.home-animation-step-2.is-visible) .home-animation__icons {
    transform: translateY(0);
}
.home-animation__inner .icon-1,
.home-animation__inner .icon-2,
.home-animation__inner .icon-3 {
    position: absolute;
    height: auto;
    opacity: 0;
    transition: 0.5s ease-out;
}

.home-animation:has(~.home-animation-step-2.is-visible) .home-animation__inner .icon-1 {
    opacity: 1;
    transition-delay: 0.8s;
}
.home-animation:has(~.home-animation-step-2.is-visible) .home-animation__inner .icon-2 {
    opacity: 1;
    transition-delay: 0.4s;
}
.home-animation:has(~.home-animation-step-2.is-visible) .home-animation__inner .icon-3 {
    opacity: 1;
    transition-delay: 0.6s;
}
.home-animation__inner .icon-1 {
    right: 20.6875em;
    bottom: 14.125em;
    width: 6.6875em;
    animation: homeAnimationIcon1 5s ease-in-out infinite 1s;
    transform-origin: right bottom;
}
.home-animation__inner .icon-2 {
    right: 13.625em;
    bottom: 0;
    width: 7.9375em;
    animation: homeAnimationIcon2 5s ease-in-out infinite;
    transform-origin: left bottom;
}
.home-animation__inner .icon-3 {
    right: 1.9em;
    bottom: 5.375em;
    width: 8.8125em;
    animation: homeAnimationIcon3 3s ease-in-out infinite 0.3s;
}
@keyframes homeAnimationIcon1 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.05) rotate(5deg);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes homeAnimationIcon2 {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.05) rotate(-5deg);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes homeAnimationIcon3 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.home-animation-step-1 {
    position: relative;
    z-index: 11;
    margin-top: calc(-1 * var(--custom-theme-site-header-height));
    padding-top: calc(var(--custom-theme-site-header-height) * 2);
    height: 100vh;
    transition: 0.5s ease-out;
}
.home-animation-step-1:has(~.home-animation-step-2.is-visible) {
    opacity: 0;
}
.home-animation-step-1::before,
.home-animation-step-1::after {
    display: none;
}
.home-animation-step-1 .block-section__inner {
    height: 100%;
}
.home-animation-step-1 .block-section__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.home-animation-step-1 .block-section__content::before {
    content: '';
    display: block;
}

.home-animation-step-1 h1[data-type="core/heading"],
.home-animation-step-1 .block-h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0;
    color: #000;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background: initial;
}
.home-animation-step-1 h1[data-type="core/heading"] strong,
.home-animation-step-1 .block-h1 strong {
    font-size: 4.85rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: -0.2em;
    display: inline-block;
}
.home-animation-step-1 h1[data-type="core/heading"] > strong,
.home-animation-step-1 .block-h1 > strong {
    display: block;
}
.home-animation-step-1 .block-h1 img {
    transition: 0.5s ease-out;
}

.home-animation-step-1 h1[data-type="core/heading"] .icon-1,
.home-animation-step-1 .block-h1 .icon-1 {
    width: 1.55em!important;
    height: auto;
    vertical-align: bottom;

}
.home-animation-step-1 h1[data-type="core/heading"] .icon-2,
.home-animation-step-1 .block-h1 .icon-2 {
    width: 1.54em!important;
    height: auto;
    vertical-align: top;
    margin-top: -0.15em;
    transition-delay: 0.1s;
    margin-right: 0.1em;
}
.home-animation-step-1 h1[data-type="core/heading"] .icon-3,
.home-animation-step-1 .block-h1 .icon-3 {
    width: 1.60em!important;
    height: auto;
    vertical-align: top;
    margin-top: -0.09em;
    margin-left: 0.05em;
    transition-delay: 0.2s;
}


.home-animation-step-1 .block-logos__logo {
    filter: brightness(0);
}
.home-animation-step-2 {
    position: relative;
    z-index: 11;
    height: 100vh;
    --custom-theme-ending-ratio: 1;
    padding-top: 80px;
}
.home-animation-step-2::before {
    display: none;
}
.home-animation-step-2 .block-section__content {
    --custom-theme-flex-span: 12;
}
body:not(.wp-admin) .home-animation-step-2 .block-section__inner {
    opacity: 0;
    transition: 0.5s ease-out;
}
body:not(.wp-admin) .home-animation-step-2.is-visible .block-section__inner {
    opacity: var(--custom-theme-ending-ratio);
}

body:not(.wp-admin) .home-animation-step-2 {
    position: relative;
}

.home-animation-step-2 [data-type="core/heading"].is-style-heading-screaming,
.home .home-animation-step-2 .is-style-heading-screaming {
    transform: translateY(50px);
    transition: 0.5s ease-in-out;
    font-size: clamp(3.4375rem, 11.8vw, 10.625rem);
    letter-spacing: -0.02em;
    color: #000;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background: initial;
    margin-bottom: -0.1em;
}
.home .home-animation-step-2.is-visible .is-style-heading-screaming {
    transform: none;
}
.home-animation-step-2 p[data-type="core/paragraph"],
.home .home-animation-step-2 .is-style-extra-large {
    font-size: 2.625rem;
    line-height: 1.2;
    font-weight: 300;
    color: #000;
}
.home .home-animation-step-2 .is-style-extra-large strong {
    font-weight: 700;
}

.home .home-animation-step-2 .wp-block-button__link {
    --custom-theme-button-bg-color: var(--wp--preset--color--blue-dark);
}

.home-animation-step-3-anchor .block-section__inner,
.home-animation-step-3-anchor::before,
.home-animation-step-3-anchor::after {
    display: none;
}

.home-animation-step-3 {
    position: sticky;
    top: 0;
    z-index: 11;
    height: 250vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
.home-animation-step-3::before {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(126.08deg, #F0F3FF 22.88%, #BCCCFF 71.83%) center bottom / 100% 300vh no-repeat;
    opacity: 0;
    transition: 0.5s ease-out;
}
.home-animation-step-3.is-visible::before {
    opacity: 1;
}
.home-animation-step-3 {
    scroll-snap-align: initial!important;
    scroll-snap-stop: initial!important;
}

.home-animation-step-3 .block-section__inner {
    height: calc(100vh - var(--viewport-height-diff));
}
.home-animation-step-3 .block-section__content,
.home-animation-step-3 .block-latest-clients,
.home-animation-step-3 .block-latest-clients__inner {
    height: 100%;
}
.home-animation-step-3 .block-latest-clients__inner {
    flex-direction: column;
}

.home .block-latest-clients {
    background: none;
    padding-bottom: 0;
    margin-top: 0;
}
.home .block-latest-clients__content {
    --custom-theme-flex-span: 12;
    justify-content: flex-end;
    gap: 24px;
    flex: 0 0 auto;
}

.home .block-latest-clients__list,
.home .block-latest-clients__cta-wrapper {
    visibility: hidden;
}
.home-animation-step-3.is-visible.is-anim-completed .block-latest-clients__list,
.home-animation-step-3.is-visible.is-anim-completed .block-latest-clients__cta-wrapper {
    visibility: visible;
}

.home .block-latest-clients__list {
    max-width: calc(50% + 246px);
    width: 100%;
    height: auto;
    align-items: flex-start;
    color: #FFF;
}
.home .block-latest-clients__item {
    min-width: 520px;
}
.home .latest-client__link {
    width: 710px;
    mix-blend-mode: exclusion;
    position: relative;
    z-index: 1;
}

.home .latest-client__name {
    font-size: 4rem;
    font-weight: 300;
}
.home .latest-client__figures-wrapper {
    height: auto!important;
    border-bottom: 0!important;
    position: absolute;
    left: calc(50% + 246px);
    bottom: 0;
    width: auto;
    overflow: visible;
    color: #000;
}
.home .latest-client__figures {
    animation: none!important;
    padding: 0 0 0 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 51px;
}
.home .latest-client__figure-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.home .latest-client__figure-item::before {
    display: none!important;
}
.home .block-latest-clients:not(:has(.latest-client:hover)) .latest-client:not(:first-child) .latest-client__figures,
.home .block-latest-clients:has(.latest-client:hover) .latest-client:not(:hover) .latest-client__figures {
    opacity: 0;
}
.home .latest-client__image {
    z-index: 0!important;
    width: 492px;
    height: 713px;
    border-radius: 800px 800px 0 0;
    right: auto;
    left: 50%;
    top: 0;
    margin-left: -246px;
    pointer-events: none;
    max-height: 100%;
    object-fit: cover;
}

.home-animation-step-3:not(.is-anim-completed) .block-latest-clients__list .latest-client__image {
    opacity: 0;
}
.home .latest-client__figure-item__figure {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 5.75rem;
    line-height: 1;
}


.home .latest-client__figure-item__text {
    font-size: 1.75rem;
}

.home .block-latest-clients__cta-wrapper {
    flex: 0 0 auto;
}


.home-latest-client-img-anim {
    z-index: 11;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.2s, opacity 0.1s;
}
.home-latest-client-img-anim:first-child {
    opacity: 1;
}
.home-animation-step-3.is-anim-completed .home-latest-client-img-anim {
    visibility: hidden;
}
.home-animation-step-3:has(~.home-animation-step-4.is-visible) {
    opacity: 0;
    pointer-events: none;
}

.home-animation-step-4 {
    position: relative;
    z-index: 11;
}

.home-animation-step-last {
    position: relative;
    z-index: 11;
    background: #000;
}
.home-animation-step-last .block-section__content:has(.block-cta-with-image) {
    --custom-theme-flex-span: 12;
}
.home-animation-step-last .block-cta-with-image {
    transform: scale(0.83);
    transform-origin: center 100%;
    transition: 0.5s ease-in-out;
}
.home-animation-step-last.is-visible .block-cta-with-image {
    transform: none;
}
.home-animation-step-last::before,
.home-animation-step-last::after {
    display: none;
}
.home-animation-step-last.is-visible ~ .site-footer-newsletter {
    opacity: 1;
    pointer-events: initial;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home .site-footer {
    padding-top: 35px;
}

.home .site-footer-newsletter {
    opacity: 0;
    pointer-events: none;
}

.home-animation-step-3--step {
    display: none;
}

.editor-styles-wrapper .home-animation-step-1,
.editor-styles-wrapper .home-animation-step-2,
.editor-styles-wrapper .home-animation-step-3 {
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .home-animation__inner {
        display: none;
    }

}

@media screen and (max-width: 1439px) {
    .home-animation-step-1 .block-h1 strong {
        font-size: 4.75rem;
    }
}

@media screen and (max-width: 1279px) {
    .home-animation:has(~.home-animation-step-3.is-visible) .home-animation__inner {
        display: none;
    }
    .home:has(.home-animation-step-2.is-visible),
    .home:has(.home-animation-step-3.is-visible),
    .home:has(.home-animation-step-last.is-visible) {
        scroll-snap-type: y mandatory;
    }

    .home-animation-step-1,
    .home-animation-step-2,
    .home-animation-step-3 {
        height: calc(100vh - var(--viewport-height-diff));
    }

    .home-animation-step-1 .block-h1 strong {
        font-size: 3.75rem;
    }
    .home-animation-step-2 {
        padding-top: 40px;
    }
    .home .home-animation-step-2 .is-style-extra-large {
        font-size: 2.5rem;
    }
    .home-animation-step-3-anchor {
        height: auto;
    }
    .home-animation-step-3 {
        margin-top: 0;
    }
    .home-animation-step-3::before {
        display: none;
    }

    .home-latest-client-img-anim {
        visibility: hidden!important;
    }
    .home-animation-step-3 .block-latest-clients__list,
    .home-animation-step-3 .block-latest-clients__cta-wrapper,
    .home-animation-step-3.is-visible .block-latest-clients__list,
    .home-animation-step-3.is-visible .block-latest-clients__cta-wrapper {
        transition: none;
        visibility: visible;
    }

    .home .block-latest-clients {
        height: calc(100vh - var(--viewport-height-diff));
        min-height: calc(100vh - var(--viewport-height-diff));
        width: auto!important;/* Fix bug on Safari/iOS */
    }
    .home .block-latest-clients__item {
        min-width: 0;
        max-width: calc(100% - 64px - 35vw);
    }
    .home .latest-client__link {
        mix-blend-mode: initial;
        color: #000;
        width: auto;
        justify-content: flex-start;
        z-index: 3;
    }

    .home .latest-client__figures-wrapper {
        /*border-bottom-width: 1px!important;
        border-bottom-style: solid!important;*/
        height: 0!important;
        left: 0;
        position: relative;
        z-index: 3;
        overflow: hidden;
        margin-left: calc(-1 * var(--wp--style--root--padding-left));
    }
    .home .latest-client__figures-wrapper::before {
        content: '';
        position: absolute;
        border-bottom: 1px solid;
        border-bottom-color: inherit;
        bottom: 0;
        left: var(--wp--style--root--padding-left);
        right: 0;
    }
    .home .latest-client__figures {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: var(--wp--style--root--padding-left);
        flex-direction: row;
        opacity: 1!important;
    }
    .home .latest-client__figures.is-overflow {
        animation: none!important;
    }
    .home .latest-client__link.is-active ~ .latest-client__figures-wrapper .latest-client__figures.is-overflow {
        animation: latestClientFigures 10s linear alternate-reverse infinite!important;
    }

    .home .latest-client__figure-item {
        flex-direction: row;
        align-items: center;
        gap: 0.3em;
    }
    .home .latest-client__figure-item::before {
        display: block!important;
    }
    .home .latest-client__figure-item__figure {
        font-family: "Rethink Sans", "sans-serif";
        font-weight: 600;
        font-size: 1.75rem;
    }
    .home .block-latest-clients__list {
        max-width: 100%;
    }
    .home .latest-client__image {
        bottom: 0;
        top: auto;
        left: auto;
        right: 0;
        margin: 0;
        width: 35vw;
        height: auto;
    }
    .home-animation-step-3--step {
        display: block;
        height: 50vh;
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }

}
@media screen and (max-width: 991px) {
    #home-animation {
        transform: scale(1.3);
        transform-origin: center 100%;
    }
    .home-animation-step-1 .block-h1 {
        font-size: 6.09vw;
        max-width: 64vw;
    }
    .home-animation-step-1 .block-h1 strong {
        font-size: 8.45vw;
        margin-top: 0;
    }
    .home-animation-step-1 .block-h1 .icon-1 {
        width: 1.2em!important;
    }
    .home-animation-step-1 .block-h1 .icon-2 {
        display: none;
    }
    .home-animation-step-1 .block-h1 .icon-3 {
        width: 1.25em!important;
        margin-left: 0.15em;
        margin-top: 0;
    }
    .home .home-animation-step-2 .is-style-extra-large {
        font-size: 2rem;
    }

    .home-animation-step-3 .block-section__inner {
        width: 100%; /* fix bug on iOS Safari */
    }
    .home .block-latest-clients__content {
        min-height: 100%;
        padding-top: 64px;
        padding-bottom: 24px;
        justify-content: space-between;
    }
    .home .block-latest-clients__inner {
        position: static;
        height: 100%;
    }
    .home .block-latest-clients__list {
        margin-bottom: 0;
        padding-right: 0;
    }
    .home .block-latest-clients__item {
        max-width: calc(100% - 32px - 27vw);
        width: 100%;
    }

    .home .latest-client__image {
        width: 27vw;
        bottom: calc(18px + 24px);
    }
    .home .latest-client__name {
        font-size: 3rem;
    }

    .home-animation-step-4 {
        height: calc(100vh - var(--viewport-height-diff) - 130px);
    }
    .home-animation-step-4::before {
        margin-bottom: 40px;
    }
    .home-animation-step-4::after {
        margin-top: 30px;
    }



}
@media screen and (max-width: 767px) {
    .home-animation__inner {
        font-size: 9px;
        align-items: center;
        margin-top: calc((-100vh + 312px) / 4 + 39px);
        padding-right: 0;
    }
    .home-animation__icons {
        left: 50%;
        width: 26.5625em;
        margin-left: -9.28em;
        bottom: 19px;
    }
    .home-animation-step-1 {
        padding-top: calc(var(--custom-theme-site-header-height) + 60px);
    }
    .home-animation-step-1 .block-h1 {
        font-size: 9vw;
        max-width: none;
        hyphens: inherit;
    }
    .home-animation-step-1 .block-h1 strong {
        font-size: 12vw;
    }
    .home-animation-step-1 .block-h1 br {
        display: initial;
    }

    .home .home-animation-step-2 .is-style-heading-screaming {
        font-size: 13vw;
        font-weight: 600;
    }
    .home .home-animation-step-2 .is-style-extra-large {
        font-size: 1.5rem;
        margin-top: 0.33em;
    }
    .home-animation-step-3::before {
        display: none;
    }
    .home-animation-step-3--step {
        height: 25vh;
    }

    .home .block-latest-clients__item {
        max-width: none;
    }
    .home .latest-client__link {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .home .latest-client__image {
        width: 150px;
    }
    .home .latest-client__name {
        font-size: 8vw;
        font-weight: 400;
    }
    .home .latest-client__link .icon {
        font-size: 8vw;
        flex: 0 0 1em;
    }

    .home .latest-client__figures-wrapper {
        margin-right: calc(-1 * var(--wp--style--root--padding-right));
    }
    .home .latest-client__figures-wrapper::before {
        right: var(--wp--style--root--padding-right);
    }

    .home .latest-client__figure-item__figure,
    .home .latest-client__figure-item__text {
        font-size: 1.25rem;
    }

    .home-animation-step-4 {
        height: calc(100vh - var(--viewport-height-diff) );
    }
}
