/* End section, footer, scroll-nav */

#page-extra-sections {
    display: none
}

#page-extra-sections.is-force-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important
}

#end-section {
    height: calc(var(--vh, 1vh) * 350);
    font-size: clamp(.875rem, 1vw, 2rem);
    color: var(--color-white)
}

html.is-white-bg #end-section {
    color: var(--color-black)
}

#end-section-outer {
    position: absolute;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100)
}

#end-section-inner {
    position: absolute;
    width: 100%;
    height: 100%
}

#end-section-content {
    position: absolute;
    left: 50%;
    top: calc(50% - 3em);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%
}

@media (max-width: 560px) {
    #end-section-content {
        top: 40%
    }
}

#end-section-content-crosses {
    position: absolute;
    width: 60vw;
    height: calc(100% + 10vh);
    left: calc(50% - 30vw)
}

@media (max-width: 560px) {
    #end-section-content-crosses {
        width: calc(100% - 2 * var(--base-padding-x));
        left: var(--base-padding-x)
    }
}

.end-section-content-cross {
    position: absolute;
    width: var(--cross-size);
    height: var(--cross-size)
}

.end-section-content-cross:before,
.end-section-content-cross:after {
    position: absolute;
    content: "";
    width: var(--cross-size);
    height: calc(.125 * var(--cross-size));
    left: 0;
    top: calc(.5 * var(--cross-size));
    background: var(--color-white)
}

html.is-white-bg .end-section-content-cross:before,
html.is-white-bg .end-section-content-cross:after {
    background: var(--color-black)
}

.end-section-content-cross:after {
    transform: rotate(90deg)
}

.end-section-content-cross:nth-child(1) {
    left: 0;
    top: 0
}

.end-section-content-cross:nth-child(2) {
    right: 0;
    top: 0
}

.end-section-content-cross:nth-child(3) {
    left: 0;
    bottom: 0
}

.end-section-content-cross:nth-child(4) {
    left: calc(50% - .5rem);
    bottom: 0
}

.end-section-content-cross:nth-child(5) {
    right: 0;
    bottom: 0
}

#end-section-subtitle {
    overflow: hidden;
    line-height: 1.4;
    font-size: 1em;
    text-transform: uppercase;
    will-change: transform
}

@media (max-width: 560px) {
    #end-section-subtitle {
        font-size: 1.2em;
        margin: auto;
        text-align: center;
        width: 55%
    }
}

#end-section-title {
    --font-size: 10vw;
    position: relative;
    width: fit-content;
    margin: .4em auto auto;
    line-height: 1;
    font-size: var(--font-size);
    will-change: transform
}

@media (min-aspect-ratio: 21/9) {
    #end-section-title {
        --font-size: 6.7vw
    }
}

@media (max-width: 560px) {
    #end-section-title {
        width: 100%;
        --font-size: 19.5vw
    }
}

#end-section-title-link {
    cursor: pointer
}

.end-section-title-link-line {
    position: relative;
    height: var(--font-size)
}

.end-section-title-link-line:last-child {
    bottom: .02em
}

.end-section-title-link-word {
    position: relative;
    overflow: hidden;
    height: .95em
}

.end-section-title-link-word .char {
    display: inline-block;
    position: relative;
    will-change: transform
}

.end-section-title-link-word .char-wrapper {
    position: relative;
    top: -.2em;
    will-change: transform
}

.end-section-title-link-word .char-wrapper .char {
    float: left
}

.end-section-title-link-word .char-wrapper .char:last-child {
    clear: both
}

.char-wrapper {
    position: relative;
    height: var(--font-size)
}

#end-bottom {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    height: 3.375em;
    width: 15em;
    left: 50%;
    bottom: calc(var(--vh, 1vh) * 7);
    transform: translate(-50%);
    text-align: center;
    background: white;
    border-radius: 100px;
    box-shadow: 0 6px 10px #0000000a, 0 2px 4px #0000000a;
    overflow: hidden;
    font-size: 1.1em
}

#end-bottom-text-container {
    position: relative;
    overflow: hidden
}

#end-bottom-text {
    white-space: nowrap;
    line-height: 1.5;
    font-size: .75em;
    color: var(--color-black);
    animation: 3s .2s infinite cubic-bezier(.1, 0, .1, 1) text-animation
}

#end-bottom-text:last-child {
    position: absolute;
    top: -1.5em
}

.end-bottom-arrow-container {
    position: relative;
    overflow: hidden;
    width: 1em;
    height: 1em
}

.end-bottom-arrow-container:last-child .end-bottom-arrow {
    animation: 3s infinite .3s cubic-bezier(.1, 0, .1, 1) arrow-animation
}

.end-bottom-arrow {
    width: 1em;
    height: 1em;
    background: url(/assets/images/icons/arrow-down.svg);
    background-size: cover;
    background-repeat: no-repeat;
    flex-shrink: 0;
    animation: 3s infinite cubic-bezier(.1, 0, .1, 1) arrow-animation
}

.end-bottom-arrow:last-child {
    position: absolute;
    top: -1em
}

@keyframes arrow-animation {
    0% {
        transform: translateZ(0)
    }
    33% {
        transform: translate3d(0, 1em, 0)
    }
    to {
        transform: translate3d(0, 1em, 0)
    }
}

@keyframes text-animation {
    0% {
        transform: translateZ(0)
    }
    33% {
        transform: translate3d(0, 1.5em, 0)
    }
    to {
        transform: translate3d(0, 1.5em, 0)
    }
}

#end-section-title-top-decoration {
    position: absolute;
    height: .07em;
    width: calc(100% - .05em);
    top: .85em;
    background: var(--color-black);
    transform-origin: left;
    left: .05em;
    background: var(--color-white)
}

html.is-white-bg #end-section-title-top-decoration {
    background: var(--color-black)
}

@media (max-width: 560px) {
    #end-section-title-top-decoration {
        left: .35em;
        width: calc(100% - .65em)
    }
}

#end-section-title-bottom-left-decoration {
    position: absolute;
    height: .07em;
    width: .82em;
    left: .25em;
    bottom: .1em;
    transform-origin: left;
    background: var(--color-white)
}

html.is-white-bg #end-section-title-bottom-left-decoration {
    background: var(--color-black)
}

@media (max-width: 560px) {
    #end-section-title-bottom-left-decoration {
        left: .55em
    }
}

#end-section-title-bottom-right-decoration {
    position: absolute;
    height: .07em;
    left: 1.78em;
    width: 2.45em;
    bottom: .1em;
    transform-origin: left;
    background: var(--color-white)
}

html.is-white-bg #end-section-title-bottom-right-decoration {
    background: var(--color-black)
}

@media (max-width: 560px) {
    #end-section-title-bottom-right-decoration {
        left: 2.1em
    }
}

#footer-section {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--vh, 1vh) * 100);
    color: var(--color-black);
    font-size: clamp(.875rem, 1vw, 2rem)
}

@media (max-width: 380px) {
    #footer-section {
        font-size: clamp(.75rem, 1vw, 2rem)
    }
}

#footer-bg {
    position: absolute;
    left: 50%;
    top: -2px;
    width: 100vw;
    height: calc(100% + 2px);
    margin-left: -50vw;
    background-color: var(--color-white)
}

#footer-top {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    margin-top: calc(var(--vh, vh) * 5)
}

#footer-middle {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap)
}

@media (max-width: 1000px) {
    #footer-middle {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 5em
    }
}

#footer-middle-contact {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    grid-column: 1 / -1;
    font-size: 1.25em
}

@media (max-width: 1000px) {
    #footer-middle-contact {
        grid-row: 2
    }
}

#footer-contact-address {
    grid-column: 1 / span 3;
    line-height: 1.4;
    width: fit-content;
    will-change: transform;
    font-size: 1em
}

@media (hover: hover) {
    #footer-contact-address:hover .footer-address-line-wrapper {
        transform: translate3d(var(--delta-x), 0, 0)
    }
}

.footer-address-line-wrapper {
    width: fit-content;
    transition: .6s transform cubic-bezier(.35, 0, 0, 1)
}

#footer-contact-socials {
    grid-column: 5 / span 3;
    will-change: transform
}

#footer-contact-socials a {
    display: block
}

@media (max-width: 1000px) {
    #footer-contact-socials {
        grid-column: 4 / span 3;
        margin-top: 0
    }

    #footer-contact-enquires {
        grid-column: 1 / span 3;
        margin-top: 2em
    }

    #footer-contact-business {
        grid-column: 4 / span 3;
        margin-top: 2em
    }
}

@media (max-width: 812px) {
    #footer-middle-contact {
        grid-template-columns: 1fr;
        row-gap: 2em
    }

    #footer-contact-address,
    #footer-contact-socials,
    #footer-contact-enquires,
    #footer-contact-business {
        grid-column: 1 / -1;
        margin-top: 0
    }

    #footer-bottom {
        grid-template-columns: 1fr;
        row-gap: .75em;
        padding-bottom: 2em
    }

    #footer-bottom-copyright,
    #footer-bottom-legal,
    #footer-bottom-labs,
    #footer-bottom-tagline {
        grid-column: 1 / -1
    }
}

.footer-socials-wrapper {
    position: relative;
    overflow: hidden
}

.footer-socials-line-wrapper {
    position: relative;
    display: block;
    transition: .3s transform
}

.footer-socials-line-wrapper:not(:first-child) {
    margin-top: .3em
}

.footer-socials-line-wrapper:hover .footer-socials-text,
.footer-socials-line-wrapper:hover .footer-socials-line-svg {
    transform: translate3d(2em, 0, 0)
}

.footer-socials-line-svg {
    position: absolute !important;
    top: 0;
    left: -2em;
    width: 1.25em;
    height: 1.25em;
    transition: .4s transform cubic-bezier(.35, 0, 0, 1);
    transform: rotate(90deg)
}

.footer-socials-text {
    margin: 0;
    transition: .4s transform cubic-bezier(.35, 0, 0, 1)
}

#footer-contact-enquires {
    margin-top: 2.5em;
    grid-column: 9 / span 4;
    will-change: transform
}


#footer-contact-business {
    margin-top: 2.5em;
    grid-column: 9 / span 4;
    will-change: transform
}

.footer-business-link-wrapper,
.footer-enquires-link-wrapper {
    height: 2em;
    margin-top: .3em
}

#footer-business-link {
    position: relative;
    display: block;
    width: fit-content;
    height: fit-content;
    overflow: hidden;
    will-change: transform;
    padding-bottom: .2em
}

@media (hover: hover) {
    #footer-business-link:hover:before {
        transform: scaleZ(1)
    }
}

#footer-business-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: .1em;
    background: var(--color-black);
    transition: .3s transform cubic-bezier(.35, 0, 0, 1);
    transform-origin: left;
    transform: scale3d(0, 1, 1)
}

#footer-enquires-link {
    position: relative;
    display: block;
    width: fit-content;
    height: fit-content;
    overflow: hidden;
    will-change: transform;
    padding-bottom: .2em
}

@media (hover: hover) {
    #footer-enquires-link:hover:before {
        transform: scaleZ(1)
    }
}

#footer-enquires-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: .1em;
    background: var(--color-black);
    transition: .3s transform cubic-bezier(.35, 0, 0, 1);
    transform-origin: left;
    transform: scale3d(0, 1, 1)
}

#footer-middle-newsletter {
    grid-column: 7 / span 6;
    will-change: transform
}

@media (max-width: 1000px) {
    #footer-middle-newsletter {
        grid-column: 1 / span 6
    }
}

#footer-newsletter-header {
    font-size: 3.375em
}

.footer-newsletter-line {
    display: block
}

#footer-newsletter-input {
    margin-top: 2em;
    position: relative;
    height: 4.375em;
    max-width: 33.75em
}

#footer-newsletter-input.--active #footer-newsletter-input-field::placeholder {
    opacity: .3
}

#footer-newsletter-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-off-white);
    border-radius: 1.125em;
    transform-origin: left
}

#footer-newsletter-input-arrow {
    position: absolute;
    display: inline-block;
    top: calc(50% - .75em);
    right: 1.25em;
    width: 1.5em;
    height: 1.5em;
    padding: 0;
    border: none;
    cursor: pointer
}

#footer-newsletter-input-arrow svg {
    width: 100%;
    height: auto
}

#footer-newsletter-input-field {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    padding: .625em 1.25em;
    font-size: 1.25em;
    background: transparent
}

#footer-newsletter-input-field::placeholder {
    opacity: 0;
    font-size: 1em;
    transition: opacity .5s .3s
}

#footer-bottom {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: center;
    font-size: 1em;
    margin-top: calc(var(--vh, vh) * 7)
}

@media (max-width: 1000px) {
    #footer-bottom {
        row-gap: 2em;
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }
}

#footer-bottom-copyright {
    position: relative;
    overflow: hidden;
    grid-column: 1 / span 6;
    will-change: transform
}

@media (max-width: 1000px) {
    #footer-bottom-copyright {
        grid-row: 3
    }
}

#footer-bottom-legal {
    position: relative;
    overflow: hidden;
    grid-column: 7 / span 2;
    padding-bottom: .1em;
    width: fit-content;
    will-change: transform;
    font-size: .9em;
    opacity: .6;
    transition: opacity .3s ease
}

@media (hover: hover) {
    #footer-bottom-legal:hover {
        opacity: 1
    }
}

@media (max-width: 1000px) {
    #footer-bottom-legal {
        grid-column: 1 / span 6
    }
}

#footer-bottom-labs {
    position: relative;
    overflow: hidden;
    grid-column: 9 / span 2;
    padding-bottom: .1em;
    width: fit-content;
    will-change: transform
}

@media (max-width: 1000px) {
    #footer-bottom-labs {
        grid-column: 1 / span 6
    }
}

@media (hover: hover) {
    #footer-bottom-labs:hover:before {
        transform: scaleZ(1)
    }
}

#footer-bottom-labs:before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: .125em;
    background: var(--color-black);
    transition: .6s transform cubic-bezier(.35, 0, 0, 1);
    transform-origin: left;
    transform: scale3d(0, 1, 1)
}

#footer-bottom-tagline {
    position: relative;
    overflow: hidden;
    grid-column: 10 / span 2;
    will-change: transform
}

@media (max-width: 1000px) {
    #footer-bottom-tagline {
        grid-column: 1 / span 6
    }
}

#footer-bottom-up {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.75em;
    height: 3.75em;
    background: var(--color-black);
    border-radius: 100%;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: -.5em;
    overflow: hidden
}

@media (hover: hover) {
    #footer-bottom-up:hover svg {
        transform: translate3d(0, -3em, 0)
    }
    #footer-bottom-up:hover svg:last-child {
        transform: translateZ(0)
    }
}

#footer-bottom-up svg {
    width: 1.5em;
    height: 1.5em;
    transition: .4s transform cubic-bezier(.35, 0, 0, 1)
}

#footer-bottom-up svg:last-child {
    position: absolute !important;
    transform: translate3d(0, 3em, 0)
}

@media (max-width: 1000px) {
    #footer-bottom-up {
        position: absolute;
        bottom: 0
    }
}

#footer-newsletter-form {
    height: 100%
}

#footer-newsletter-feedback-message {
    margin: .5em 1em 0
}

#footer-newsletter-feedback-message .error {
    color: red
}

#scroll-nav-section {
    display: block;
    position: relative;
    background-color: #121416;
    color: #fff;
    font-size: clamp(.875rem, 1vw, 2rem)
}

@media (max-width: 380px) {
    #scroll-nav-section {
        font-size: clamp(.75rem, 1vw, 2rem)
    }
}

#scroll-nav-content {
    text-transform: uppercase
}

#scroll-nav-subtitle {
    padding-top: 1em
}

#scroll-nav-main {
    position: relative
}

#scroll-nav-text {
    white-space: nowrap;
    font-size: 3.5em;
    padding: 1em 0;
    line-height: 1em
}

#scroll-nav-next {
    position: absolute;
    display: flex;
    right: 0;
    top: 50%;
    margin-top: -.5em;
    min-width: 200px;
    width: 20%;
    line-height: 1em
}

@media (max-width: 812px) {
    #scroll-nav-next {
        position: relative;
        width: 100%;
        margin-top: 1em
    }
}

#scroll-nav-next-text {
    white-space: nowrap
}

#scroll-nav-next-bar {
    margin: calc(.5em - 1px) .75em 0 .75em;
    flex-grow: 1;
    height: 4px;
    background-color: #34393f
}

#scroll-nav-next-bar-inner {
    width: 100%;
    height: 100%;
    background-color: var(--color-green);
    transform-origin: 0 0;
    transform: scaleX(.5)
}

#scroll-nav-next-arrow {
    width: 1.2em;
    height: 1.2em
}

#scroll-nav-next-arrow svg {
    width: 100%;
    height: 100%
}

#scroll-nav-cross-line {
    position: relative;
    width: calc(100% - 1em);
    margin-left: .5em;
    height: 1em
}

@media (max-width: 812px) {
    #scroll-nav-cross-line {
        display: none
    }
}

.scroll-nav-cross {
    position: absolute;
    width: 1em;
    height: 1em
}

.scroll-nav-cross:before,
.scroll-nav-cross:after {
    position: absolute;
    content: "";
    width: 2px;
    height: 1em;
    left: 0;
    background: #fff
}

.scroll-nav-cross:after {
    transform: rotate(90deg)
}

.scroll-nav-cross:nth-child(2) {
    left: 25%
}

.scroll-nav-cross:nth-child(3) {
    left: 50%
}

.scroll-nav-cross:nth-child(4) {
    left: 75%
}

.scroll-nav-cross:nth-child(5) {
    left: 100%
}
