/* Introduction desktop : disparition en 1,5 s maximum, ou au premier défilement. */
.video-home-intro {
    --intro-fade-duration: 0.6s;
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 24px;
    background: #090816;
    color: #fff;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--intro-fade-duration) ease-in-out, visibility 0s linear var(--intro-fade-duration);
}
.video-home-intro-content {
    width: min(21vw, 350px);
    text-align: center;
}
.video-home-intro-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.video-home-intro.is-dismissed {
    opacity: 0;
    visibility: hidden;
}
@media (max-width: 768px) {
    .video-home-intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .video-home-intro { display: none; }
}

.video-home{
    position: relative;
    width: 100%;
    height: var(--video-home-height, 100vh);
    background-color: var(--wp--preset--color--violet-sombre);
    margin-bottom: var(--video-home-margin-bottom, 20vh);
}
.video-home-underlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--video-home-underlay-height, 120vh);
    background-color: var(--wp--preset--color--violet-sombre);
    z-index: 1;
    overflow: hidden;
}
/* Ouverture lumineuse circulaire : le voile sombre recule avec le scroll. */
.video-home-underlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle var(--video-home-light-radius, 10vw) at center, transparent 0%, transparent 65%, #000 100%);
    opacity: var(--video-home-radial-opacity, 0);
}

.video-home-underlay::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: var(--video-home-mask-height, 20vh);
    z-index: 3;
    pointer-events: none;
    background-color: white;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 0C514.565 71.2569 795.121 73.1242 1280 0V60H0V0Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 0C514.565 71.2569 795.121 73.1242 1280 0V60H0V0Z' fill='white'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-position: center;
}
.video-home-underlay-svg{
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}
.video-home-underlay-svg.svg-1{
    height: var(--video-home-svg-height, 100vh);
    width: 50%;
    background: url(../../../assets/svg/s.svg) no-repeat center center;
    background-size: contain;
    top: var(--video-home-svg-top, 15vh);
    left: 0;
    transform: translate(0, 0);
}
.video-home-underlay-svg.svg-2{
    height: var(--video-home-svg-height, 100vh);
    width: 50%;
    background: url(../../../assets/svg/o.svg) no-repeat center center;
    background-size: contain;
    top: var(--video-home-svg-top, 15vh);
    right: 0;
    transform: translate(0, 0);
}
.video-home-underlay-svg.svg-3{
    height: var(--video-home-svg-top, 15vh);
    width: 50%;
    background: url(../../../assets/svg/tilde.svg) no-repeat center center;
    background-size: contain;
    top: 0;
    right: 0;
    transform: translate(0, 0);
}
.video-home-bkg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}
/* .video-home-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
} */
.video-footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--gutters);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
}
.video-creativ, .video-home-link{
    color: var(--wp--preset--color--vert);
    font-family: "IBM Plex Mono";
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
}
.video-home-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1;
}
.video-home-link .menu-split-visual {
    display: inline-flex;
    white-space: nowrap;
}
.video-home-link .menu-split-char {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}
.video-home-link .menu-split-char-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.video-home-link .menu-split-char-layer {
    display: block;
    line-height: 1;
}
.video-scroll-down{
    width: 34px;
    height: 34px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    overflow: visible;
}
.video-scroll-down-svg, .video-scroll-down-circle{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.video-scroll-down-svg{
    display: block;
    width: 34px;
    height: 34px;
    overflow: visible;
    background-image: url(../../../assets/svg/scroll-down-bis.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.video-scroll-down-circle{
    width: 50px;
    height: 50px;
    background-color: var(--wp--preset--color--vert);
    border-radius: 50%;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.85);
    animation: scroll-down-pulse 2.4s ease-in-out infinite;
}
.video-scroll-down-circle:nth-child(2){
    width: 70px;
    height: 70px;
    animation-delay: 0.28s;
}
.video-scroll-down-circle:nth-child(3){
    width: 90px;
    height: 90px;
    animation-delay: 0.56s;
}
.video-home-nav{
    display: flex;
    position: absolute;
    right: var(--gutters);
    bottom: 2rem;
    gap: 0.5rem;
    flex-direction: column;
}
.video-creativ{
    cursor: pointer;
}
.video-home-underlay-slides-wrapper{
    display: flex;
    position: absolute;
    top: var(--video-home-slide-top, 50vh);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}
.video-home-underlay-slide{
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.video-home-underlay-slide-track{
    display: inline-flex;
    width: max-content;
    will-change: transform;
    animation: underlay-marquee 26s linear infinite;
}
.video-home-underlay-slide:nth-child(2) .video-home-underlay-slide-track{
    animation-direction: reverse;
}
.video-home-underlay-slide-track span{
    display: inline-flex;
    width: max-content;
    padding-right: 4rem;
}
.video-home-underlay-slide:first-child span{
    color: var(--wp--preset--color--violet);
    text-align: center;
    font-family: 'Brier';
    font-size: 90px;
    font-weight: 700;
    line-height: 95px;
    text-transform: uppercase;
    display: flex;
    width: max-content;
}
.video-home-underlay-slide:nth-child(2) span{
    color: #FFF;
    text-align: center;
    font-family: "Mona Sans";
    font-size: 85px;
    font-weight: 600;
    line-height: 86px;
    letter-spacing: -6.8px;
    text-transform: uppercase;
    display: flex;
    width: max-content;
}
.video-home-underlay-title{
    position: absolute;
    top: calc(50% - 350px);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFF;
    z-index: 4;
    min-width: 250px;
}
.video-home-underlay-title h1, .video-home-underlay-title h2{
    color: #FFF;
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: "Mona Sans";
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}
.video-home-underlay-title h2{
    font-weight: 400;
}
@media (max-width: 1024px) {
    .video-home-underlay-svg.svg-1,
    .video-home-underlay-svg.svg-2{
        max-width: 50%;
        background-size: cover;
    }
    .video-home-underlay::after{
        height: var(--video-home-mask-height, 10vh);
    }
    .video-footer{
        padding: 4rem var(--gutters);
    }
    .video-home-underlay{
        height: 100vh;
    }
    .video-home-underlay-svg.svg-1, .video-home-underlay-svg.svg-2{
        height: 100vh;
    }
    .video-home-underlay-svg.svg-1{
        background-position: right center;
    }
    .video-home-underlay-svg.svg-2{
        background-position: left center;
    }
    .video-home-underlay-svg.svg-3{
        background-position: left center;
        background-size: cover;
    }
}
/* Mobile content stays in normal document flow, independent of viewport height. */
.video-home-mobile-content,
.video-home-showreel {
    display: none;
}
@media (max-width: 768px) {
    .video-home {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        height: auto;
        min-height: 0;
        margin-bottom: 0;
        padding: 120px var(--gutters) 48px;
        isolation: isolate;
    }
    .video-home-underlay,
    .video-home .video-footer {
        display: contents;
    }
    .video-home-underlay::after,
    .video-home-overlay,
    .video-home-underlay-title h2,
    .video-home-nav,
    .video-creativ {
        display: none;
    }
    .video-home-underlay-svg {
        display: block;
        z-index: -1;
        pointer-events: none;
    }
    .video-home-underlay-svg.svg-1,
    .video-home-underlay-svg.svg-2 {
        top: 15vh;
        top: 15svh;
        height: 85vh;
        height: 85svh;
    }
    .video-home-underlay-svg.svg-3 {
        top: 0;
        height: 15vh;
        height: 15svh;
    }
    .video-home-underlay-title {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        order: 1;
    }
    .video-home-underlay-title h1 {
        display: block;
        max-width: 110px;
        margin: 0px auto 48px;
        color: #D2FF02;
        text-align: left;
        margin-left: 0;
        text-transform: uppercase;
        line-height: 1.5;
    }
    .video-home-mobile-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        color: #FFF;
        padding-bottom: 24px;
    }
    .video-home-mobile-text {
        font-family: "Mona Sans";
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
        text-align: left;
        padding-top: 24px;
    }
    .video-home-mobile-text > :first-child { margin-top: 0; margin-bottom: 1.5rem; }
    .video-home-mobile-text > :last-child { margin-bottom: 0; }
    .video-home-mobile-text p { color: #FFF; }
    .video-home .socreativ-btn { color: #FFF; }
    .video-home .video-scroll-down {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-shrink: 0;
        margin: 32px 0 24px;
        order: 2;
    }
    .video-home-underlay-slides-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        gap: 12px;
        order: 3;
    }
    .video-home-underlay-slide {
        white-space: normal;
    }
    .video-home-underlay-slide:first-child {
        display: none;
    }
    .video-home-underlay-slide-track {
        display: block;
        width: 100%;
        animation: none;
        will-change: auto;
    }
    .video-home .video-home-underlay-slide span {
        display: block;
        width: auto;
        padding-right: 0;
        color: #FFF;
        font-family: "Mona Sans";
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: normal;
    }
    .video-home-underlay-slide span[aria-hidden="true"] {
        display: none;
    }
    .video-home-bkg {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 510 / 300;
        transform: none;
        order: 4;
    }
    .video-home-bkg:fullscreen { height: 100%; object-fit: contain; }
    .video-home-showreel {
        display: inline-block;
        max-width: 100%;
        text-align: center;
        cursor: pointer;
        order: 5;
    }
}

@keyframes underlay-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-down-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.82);
        opacity: 0.1;
    }
    45% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}
