/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent AOS flash on page load */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Hide hero and case study elements before scripts process them */
body:not(.animations-ready) .hero-homepage .hero-text h1 p,
body:not(.animations-ready) .hero-interior h1 p,
body:not(.animations-ready) .hero-interior h1,
body:not(.animations-ready) .hero-interior .breadcrumbs,
body:not(.animations-ready) .hero-interior .hero-subheading,
body:not(.animations-ready) .case-study-header .client,
body:not(.animations-ready) .case-study-header h1,
body:not(.animations-ready) .case-study-header .services-used,
body:not(.animations-ready) .person .person-name,
body:not(.animations-ready) .person .role-title,
body:not(.animations-ready) .person .intro-heading,
body:not(.animations-ready) .person .person-bio,
body:not(.animations-ready) .person .person-links,
body:not(.animations-ready) .insight .article-category,
body:not(.animations-ready) .insight .article-title,
body:not(.animations-ready) .insight .article-subtitle {
    opacity: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--color-white);
    background-color: var(--color-black);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

h1, .h1 {
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;

    @media screen and (max-width: 1200px) {
        font-size: var(--font-size-2xl);
        letter-spacing: 5px;
    }
    @media screen and (max-width: 991px) {
        font-size: var(--font-size-xl);
        letter-spacing: 4px;
    }
    @media screen and (max-width: 768px) {
        font-size: var(--font-size-xl);
        letter-spacing: 4px;
    }
    @media screen and (max-width: 576px) {
        font-size: 3.5rem;
        letter-spacing: 3.5px;
        text-align: center;
    }
    p {
        margin-bottom: 0;
    }
    i {
        font-family: var(--font-secondary);
        font-size: 8rem;
        line-height: .85;
        color: var(--color-primary);
        text-transform: none;
        letter-spacing: 1.28px;

        @media screen and (max-width: 1200px) {
            font-size: var(--font-size-4xl);
            letter-spacing: 1px;
        }
        @media screen and (max-width: 991px) {
            font-size: var(--font-size-3xl);
        }
        @media screen and (max-width: 768px) {
            font-size: var(--font-size-2xl);
            letter-spacing: .5px;
        }
    }
    &.h2 {
        font-weight: 800;

        i {
            font-size: var(--font-size-2xl);
            font-weight: 700;
            letter-spacing: 0;

            @media screen and (max-width: 991px) {
                font-size: var(--font-size-xl);
            }
            @media screen and (max-width: 576px) {
                font-size: var(--font-size-lg);
            }
        }
    }
}
h2, .h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);

    @media screen and (max-width: 991px) {
        font-size: var(--font-size-xl);
    }
    @media screen and (max-width: 576px) {
        font-size: var(--font-size-lg);
    }
}
h3, .h3 {
    font-family: var(--font-secondary);
    font-size: var(--font-size-xl);
    font-weight: normal;
    font-style: italic;

    @media screen and (max-width: 991px) {
        font-size: var(--font-size-lg);
    }
    @media screen and (max-width: 576px) {
        font-size: var(--font-size-md);
    }
}
h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
}
h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
}
h6, .h6 {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);

    &:hover, &:focus-visible {
        color: var(--color-accent);
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    position: relative;
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.row {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
}

.site-main {
    min-height: 60vh;
    margin-top: 140px;
    position: relative;
    z-index: 1;
}

/* Component base */
.component {
    padding: var(--spacing-5xl) 0 0;

    @media screen and (max-width: 576px) {
        padding: var(--spacing-4xl) 0 0;
    }
    &:last-of-type {
        padding-bottom: var(--spacing-5xl);

        @media screen and (max-width: 576px) {
            padding-bottom: var(--spacing-4xl);
        }
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-gray-100);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link:focus {
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    height: auto;
    left: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    text-decoration: none;
    top: var(--spacing-md);
    width: auto;
    z-index: 100000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s ease-in-out;
}
.btn-outline-white {
    border: 1px solid var(--color-white);
    letter-spacing: 1.4px;
    color: var(--color-white);

    &:hover, &:focus-visible {
        background-color: var(--color-white);
        color: var(--color-black);
    }
}
.btn-outline-gray {
    padding: 5px 12px;
    font-weight: 700;
    border: 1.5px solid var(--color-gray-100);
    color: var(--color-gray-100);

    &:hover, &:focus-visible {
        border-color: var(--color-white);
        color: var(--color-white);

        .link-arrow {
            svg {
                transform: rotate(45deg);

                path {
                    stroke: var(--color-primary);
                }
            }
        }
    }
    .link-arrow {
        display: inline-block;
        width: 10px;
        height: 10px;
        position: relative;
        top: -1px;
        margin-left: 3px;

        svg {
            width: 100%;
            height: 100%;
            transition: .3s ease-in-out;

            path {
                stroke-width: 4px;
                transition: .3s ease-in-out;
            }
        }
    }
}

/* Forms */
.gform-theme--foundation .gform_fields {
    row-gap: 16px !important;
}
.gform-theme--framework .gfield:where(.gfield--type-multiselect,.gfield--input-type-multiselect) .chosen-container-multi:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-search input[type=text]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-single:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gform-theme-field-control:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework select:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework select[multiple]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper .button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper .gform-theme-button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper :where(:not(.mce-splitbtn))>button:not([id*=mceu_]):not(.mce-open):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper button.button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input[type=submit].button.gform_button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    border: 1px solid var(--color-white) !important;
    outline: none !important;
    border-radius: 10px !important;
    background-color: transparent !important;
    color: var(--color-white) !important;
    padding: 13px 15px !important;
    font-weight: 500 !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    height: auto !important;
    transition: .3s ease-in-out !important;

    &:focus {
        border: 1px solid var(--color-primary) !important;
        outline: none !important;
    }
}
.gform-theme--foundation .gfield select {
    padding: 16px 44px 16px 15px !important;
    background-image: url('../svg/angle-down-white.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 14px 8px !important;
}
.gfield--type-html {
    font-size: 1.6rem !important;
    font-weight: 500 !important;
}
.gform-theme--framework textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    resize: none !important;
    height: 180px !important;
}
.gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform-theme.gform_wrapper input[type=submit].button.gform_button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    display: inline-block !important;
    padding: 8px 16px !important;
    font-family: var(--font-primary) !important;
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: 1px solid var(--color-white) !important;
    color: var(--color-white) !important;
    transition: .3s ease-in-out !important;

    &:hover, &:focus {
        background-color: var(--color-white) !important;
        color: var(--color-black) !important;
        border: 1px solid var(--color-white) !important;
    }
}
.gform-theme--foundation .gform_footer, .gform-theme--foundation .gform_page_footer {
    margin-top: 16px !important;
}
.gform-theme--framework .gfield_validation_message:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    --gf-local-color: #ed4e4e !important;
}
.gform-theme--framework .gform_validation_errors {
    background-color: transparent !important;
    border: 2px solid #ed4e4e !important;
    border-radius: 10px !important;
    outline: none !important;
    margin-bottom: 16px !important;

    h2 {
        align-items: center !important;
        flex-direction: row !important;
    }
}
.gform-theme--framework .gform_validation_errors .gform_submission_error {
    font-weight: 500 !important;
    color: #ed4e4e !important;
}
.gform-theme--framework .gform_validation_errors .gform-icon {
    border-color: #ed4e4e !important;
    color: #ed4e4e !important;
}
.gfield_error .gfield_validation_message {
    font-weight: 500 !important;
}
.gform_confirmation_message {
    background-color: var(--color-primary) !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
}
#gform_confirmation_message_4 a{
    color: var(--color-white) !important;
    text-decoration: underline !important;
}
/* Videos */
.si-video, .work-video, .service, .showcase {
    .plyr {
        --plyr-color-main: var(--color-primary);
        cursor: pointer;

        &:hover, &:focus-visible {
            .plyr__control.plyr__control--overlaid[data-plyr="play"] {
                transform: translate(-50%, -50%) scale(1.15);
            }
        }
    }
    .plyr--stopped {
        .plyr__controls {
            opacity: 0;
            visibility: hidden;
        }
    }
    .plyr__control--overlaid {
        padding: 30px;
        opacity: .8;

        @media screen and (max-width: 991px) {
            padding: 25px;
        }
        @media screen and (max-width: 576px) {
            padding: 20px;
        }
        svg {
            width: 30px;
            height: 30px;

            @media screen and (max-width: 991px) {
                width: 25px;
                height: 25px;
            }
            @media screen and (max-width: 576px) {
                width: 20px;
                height: 20px;
            }
        }
    }
    .plyr__volume input[type=range] {
        max-width: 0px;
        min-width: auto;
        margin-left: 0;
        margin-right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s ease;
    }
    .plyr__volume {
        display: flex;
        flex-direction: row-reverse;

        &:hover {
            input[type=range] {
                max-width: 90px;
                margin-left: 5px;
                margin-right: 10px;
                opacity: 1;
                visibility: visible;
            }
        }
    }
}

/* Audio players */
.work-audio {
    .plyr {
        --plyr-color-main: var(--color-primary);
        --plyr-audio-control-color: var(--color-white);
    }
    .plyr--audio {
        .plyr__controls {
            background-color: transparent;
            padding: 0;
        }
    }
    .plyr__control[data-plyr="play"] {
        border-radius: 50%;
        border: 1px solid var(--color-white);
        padding: 8px;
        transition: .2s ease-in-out;

        &:hover {
            border-color: var(--color-primary);
        }
        .icon--pressed, .icon--not-pressed {
            width: 12px;
            height: 12px;
        }
        .icon--not-pressed {
            position: relative;
            left: 1px;
        }
    }
    .plyr__progress__container {
        margin-left: 8px;
    }
    .plyr__volume input[type=range] {
        max-width: 0px;
        min-width: auto;
        margin-left: 0;
        margin-right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s ease;
    }
    .plyr__volume {
        display: flex;
        flex-direction: row-reverse;

        &:hover {
            input[type=range] {
                max-width: 90px;
                margin-left: 5px;
                margin-right: 10px;
                opacity: 1;
                visibility: visible;
            }
        }
    }
}

/* Default page template */
.page-template-default {
    .page-content {
        iframe[src*="youtube.com"],
        iframe[src*="youtu.be"],
        iframe[src*="vimeo.com"] {
            width: 100%;
            aspect-ratio: 16 / 9;
            height: auto;
            display: block;
        }
        h2, h3, h4, h5, h6 {
            margin-bottom: var(--spacing-sm);

            @media screen and (max-width: 991px) {
                margin-bottom: var(--spacing-xs);
            }
            b, strong {
                font-weight: 700;
            }
            span {
                color: var(--color-white) !important;
            }
        }
        h2 {
            font-size: var(--font-size-xl);

            @media screen and (max-width: 991px) {
                font-size: var(--font-size-lg);
            }
        }
        h3 {
            @media screen and (max-width: 576px) {
                font-size: var(--font-size-lg);
            }
        }
        h4 {
            @media screen and (max-width: 991px) {
                font-size: var(--font-size-md);
            }
        }
        ol, ul {
            padding-left: 4rem;
            margin-bottom: var(--spacing-md);
        }
        a {
            color: var(--color-white);
            text-decoration: underline;

            &:hover, &:focus-visible {
                color: var(--color-accent);
                text-decoration: none;
            }
        }
    }
}
.error-404 {
    .hero-subheading {
        @media screen and (max-width: 576px) {
            text-align: center;
        }
        .subheading {
            margin-left: 50px !important;
            margin-bottom: var(--spacing-md) !important;

            @media screen and (max-width: 991px) {
                margin-left: 30px !important;
            }
            @media screen and (max-width: 576px) {
                margin-left: 0px !important;
                margin-bottom: var(--spacing-sm) !important;
            }
        }
        .btn {
            margin-left: 50px !important;

            @media screen and (max-width: 991px) {
                margin-left: 30px !important;
            }
            @media screen and (max-width: 576px) {
                margin-left: 0px !important;
            }
        }
    }
    .error-404-video {
        border-radius: 30px;
        overflow: hidden;

        @media screen and (max-width: 576px) {
            border-radius: 20px;
        }
    }
}
.password-protected {
    background-color: #0c0f0c;
    background-image: url('../images/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    .site-main {
        margin-bottom: 140px;
        min-height: auto;
    }
    .password-form-wrapper {
        background-color: rgba(var(--color-black-rgb), .6);
        border: 1px solid var(--color-white);
        border-radius: 30px;
        padding: 60px;
        max-width: 540px;
        text-align: center;

        @media screen and (max-width: 576px) {
            padding: 40px;
        }
        .password-icon {
            display: inline-block;
            margin-bottom: 30px;
        }
        .password-title {
            font-size: 3.6rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3.6px;

            @media screen and (max-width: 576px) {
                font-size: 3rem;
            }
        }
        .password-description {
            font-family: var(--font-secondary);
            font-size: 1.8rem;
            font-weight: 700;
            font-style: italic;
            letter-spacing: .45px;
        }
        .password-error {
            font-family: var(--font-secondary);
            font-size: 1.8rem;
            font-weight: 700;
            font-style: italic;
            letter-spacing: .45px;
            color: #d43535;
            margin-top: -1.5rem;
            margin-bottom: 2.4rem;
        }
        .password-input-wrapper {
            input {
                width: 100%;
                padding: 13px;
                border: 1px solid var(--color-white);
                border-radius: 10px;
                background-color: transparent;
                font-weight: 500;
                line-height: 1;
                color: var(--color-white);
                text-align: center;
                margin-bottom: 2.4rem;
                transition: .2s ease-in-out;

                &:focus {
                    border-color: var(--color-primary);
                    outline: none;
                }
            }
        }
        .submit-btn {
            position: relative;
            display: inline-block;
            background-color: transparent;
            border: none;
            padding: 0;
            font-weight: 500;
            text-transform: uppercase;
            color: #B4B4B4;
            text-decoration: none;
            transition: .2s ease-in-out;

            &:hover, &:focus-visible {
                color: var(--color-white);

                &:before {
                    opacity: 1;
                    visibility: visible;
                    bottom: 0px;
                }
                &:after {
                    top: calc(50% - 3px);
                    right: -25px;
                }
            }
            &:before {
                content: '';
                display: block;
                width: 100%;
                height: 2px;
                position: absolute;
                bottom: -5px;
                left: 0;
                background-color: var(--color-white);
                opacity: 0;
                visibility: hidden;
                transition: .3s ease-in-out;
            }
            &:after {
                content: '';
                display: block;
                width: 12px;
                height: 12px;
                position: absolute;
                top: 50%;
                right: -22px;
                transform: translateY(-50%);
                background-image: url('../svg/arrow-up-right-white.svg');
                background-repeat: no-repeat;
                background-size: cover;
                transition: .3s ease-in-out;
            }
        }
    }
}