/* ==========================================================================
   Homepage header
   ========================================================================== */
/*
 * Other pages use the compact global header.
 * Home expands it into the intro state.
 */
header {
    width: 100%;
    height: 100svh;
}
.header-inner {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.header-inner h1 {
    display: block;
    margin: 0;
    text-align: center;
    padding: 0 10px;
    font-size: 46px;
}
.header-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    cursor: default;
    pointer-events: none;
}
.header-logo.is-fixed {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}
.header-logo svg {
    width: 240px;
}
.header-nav {
    opacity: 0;
    visibility: hidden;
}
/*
 * Header itself already provides the homepage's intro spacing,
 * so we don't want the normal inner-page main offset as well.
 */
main {
    margin-top: 0;
}
.header-logo-slot {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 0 0 auto;
    width: 240px;
    aspect-ratio: 484 / 157;
}

@media only screen and (min-width: 600px) {
    .header-inner h1 {
        font-size: 58px;
    }

    .header-logo svg {
        width: 340px;
    }
}

@media only screen and (min-width: 992px) {
    .header-inner h1 {
        font-size: 94px;
    }

    .header-logo svg {
        width: 482px;
    }
}
.showreel {
    padding-top: 110px;
    padding-bottom: 30px;
}
.showreel-hero-container {
    height: calc(100vh - 185px);
    overflow: hidden;
    justify-content: center;
    align-items: center;
}
.showreel-hero-container.desk {
    display: none;
}
.showreel-hero-container.mob {
    display: flex;
}
@media only screen and (min-width: 992px) {
    .showreel-hero-container.desk {
        display: flex;
    }
    .showreel-hero-container.mob {
        display: none;
    }
}

/* Homepage desktop showreel — always cover its container */
@media only screen and (min-width: 992px) {

    .showreel-hero-container.desk {
        position: relative;
        container-type: size;
        overflow: hidden;
    }

    .showreel-hero-container.desk .vimeo-video {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .showreel-hero-container.desk .vimeo-fluid {
        position: absolute;
        top: 50%;
        left: 50%;

        width: max(100cqw, 177.7778cqh);
        height: max(100cqh, 56.25cqw);

        aspect-ratio: 16 / 9;
        transform: translate(-50%, -50%);
        max-width: none;
        border: 0;
    }
}

.services-home-block {
    display: flex;
    flex-flow: column;
    margin-bottom: 20px;
}
.services-home-title {
    display: flex;
    justify-content: center;
}
.services-home-title h2 {
    margin: 0;
}
.services-home-block .article-content .services {
    display: flex;
    flex-flow: row wrap;
    gap: 0 20px;
}
.services-home-block .article-content .services p {
    font-weight: 800;
    margin: 0;
    position: relative;
}
.services-home-block .article-content .services p::after {
    content: '•';
    position: absolute;
    right: -13px;
    top: 0;
}
.services-home-block .article-content .services p:last-of-type:after {
    display: none;
}
.services-home-block .article-content .services,
.services-home-block .article-content .button {
    margin-bottom: 30px;
}
@media only screen and (min-width: 992px) {
    .services-home-block {
        flex-flow: row;
        margin-bottom: 40px;
    }
    .services-home-block .vimeo-video {
        width: 50%;
    }
    .services-home-block .article-content {
        width: 50%;
        padding: 0 40px;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
    }
    .services-home-block .article-content h2 {
        margin-top: 0;
    }
    
}

/* ==========================================================================
   Homepage What We Do videos
   ========================================================================== */
.services-container {
    max-width: 1600px;
}
/* Homepage What We Do videos */
.services-home-block .vimeo-video {
    aspect-ratio: 3 / 2;
}

.services-home-block .vimeo-video .vimeo-fluid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    transform: translate(-50%, -50%);
}

