@font-face {
    font-family: "Roboto";
    src: url("/pages-assets/fonts/Roboto-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

body {
    margin: 0;
    background: #070707;
    color: var(--primary-yellow, #FFC425);
}

#webGLApp {
    position: fixed !important;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 2;
}

.subpage {
    max-width: 720px;
    margin: 0 auto;
    padding: 88px 20px 80px;
    text-align: center;
}

.subpage p {
    margin: 14px 0 0;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.video-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
    padding: 108px 0 0;
}

.video-hero .page-title {
    align-self: center;
}

.video-lead {
    align-self: center;
    width: 60%;
    margin: 22px 0 0;
    max-width: none;
    color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: left;
}

.video-reel {
    box-sizing: border-box;
    width: min(1480px, calc(100% - 72px));
    margin: 72px auto 96px;
    display: grid;
    gap: 28px;
}

.video-reel__title {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: #f2f2f2;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(40px, 4.6vw, 64px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 0.9;
    text-align: left;
}

.video-project {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 28px 40px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(242, 242, 242, 0.72);
    border-radius: 18px;
    background: rgba(7, 7, 7, 0.28);
}

.video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.45fr);
}

.video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) .video-stage {
    order: 2;
}

.video-project.will-reveal {
    opacity: 0;
    transform: translateX(clamp(-200px, -14vw, -110px));
    transition: none;
}

.video-project.will-reveal:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) {
    transform: translateX(clamp(110px, 14vw, 200px));
}

.video-project.will-reveal.is-in,
.video-project.will-reveal:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)).is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-copy {
    padding: 9px 9px 9px 0;
}

.video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) .video-copy {
    padding: 9px 0 9px 9px;
}

.video-copy .live-project__link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary-yellow, #FFC425);
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
}

.video-stage {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
}

.video-stage__video,
.video-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player__center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: #1c1c1e;
    cursor: pointer;
    transform: translate(-50%, -58%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-player__center svg {
    width: 37.95px;
    height: 37.95px;
    margin-left: 3px;
}

.video-player__center:hover,
.video-player__center:focus-visible {
    transform: translate(-50%, -58%) scale(1.06);
}

.video-player__center[hidden] {
    display: none;
}

.video-player__bar {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 8px 6px 6px;
    background: transparent;
    color: #f2f2f2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 18px));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-stage.is-ui .video-player__bar,
.video-stage:has(:focus-visible, input:active) .video-player__bar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.video-player__toggle,
.video-player__sound,
.video-player__full {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
}

.video-player__toggle:hover,
.video-player__sound:hover,
.video-player__full:hover,
.video-player__toggle:focus-visible,
.video-player__sound:focus-visible,
.video-player__full:focus-visible {
    background: rgba(255, 196, 37, 0.16);
    color: var(--primary-yellow);
}

.video-player__toggle svg,
.video-player__sound svg {
    width: 23px;
    height: 23px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.video-player__full svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.video-player__icon-pause,
.video-stage.is-playing .video-player__icon-play,
.video-player__icon-muted,
.video-stage.is-muted .video-player__icon-on {
    display: none;
}

.video-stage.is-playing .video-player__icon-pause,
.video-stage.is-muted .video-player__icon-muted {
    display: block;
}

.video-player__seek,
.video-player__volume {
    height: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.28);
    accent-color: var(--primary-yellow);
    cursor: pointer;
}

.video-player__seek {
    flex: 1;
    min-width: 0;
}

.video-player__volume {
    width: 72px;
}

@media (hover: hover) {
    .video-stage:hover .video-player__bar {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

.video-stage:fullscreen {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    background: #070707;
}

.video-stage:fullscreen .video-stage__video {
    object-fit: contain;
}

.video-copy h2 {
    margin: 0 0 14px;
    color: #f2f2f2;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(40px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.video-copy p:last-child {
    margin: 0;
    max-width: 28em;
    color: #f2f2f2;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.video-kicker {
    margin: 0 0 8px;
    color: #fff;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.video-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.video-link:hover,
.video-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.shell:has(.video-hero) .home-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

body.shell main .video-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 108px var(--page-gutter) 72px;
    overflow: hidden;
    background: #070707;
    text-align: center;
    box-sizing: border-box;
}

.video-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    /* Keep the bottom fade inside the hero when the video is cropped. */
    max-height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 73%, rgba(0, 0, 0, 0.78) 85%, rgba(0, 0, 0, 0.34) 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 73%, rgba(0, 0, 0, 0.78) 85%, rgba(0, 0, 0, 0.34) 93%, transparent 100%);
}

.video-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(46em, 100%);
}

body.shell .video-hero .page-title {
    margin: 0;
    max-width: none;
    color: #f2f2f2;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(calc(72px - 3pt), calc(10vw - 3pt), calc(132px - 3pt));
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

body.shell .video-hero .video-lead {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.video-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    margin-top: 32px;
}

.video-hero .home-hero__quiet {
    color: #f2f2f2;
}

@media (max-width: 800px) {
    .video-hero {
        width: min(1080px, calc(100% - 32px));
        padding: 84px 0 0;
    }

    .video-lead {
        font-size: 16px;
    }

    .video-reel {
        width: calc(100% - 24px);
        margin: 48px auto;
        gap: 16px;
    }

    .video-project,
    .video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) .video-stage {
        order: 0;
    }

    .video-copy,
    .video-project:is([data-media-side="right"], :not([data-media-side]):nth-of-type(even)) .video-copy {
        padding: 0 4px 4px;
    }

    .video-copy h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .video-player__center {
        width: 64px;
        height: 64px;
    }

    .video-player__volume {
        width: 48px;
    }

    .video-play {
        width: 46px;
        height: 46px;
    }

    .video-play svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 900px) {
    .video-player__center {
        width: 52px;
        height: 52px;
    }

    .video-player__center svg {
        width: 26px;
        height: 26px;
    }

    .video-player__volume {
        display: none;
    }

    .video-player__bar {
        right: 8px;
        bottom: 4px;
        left: 8px;
        gap: 2px;
        min-height: 0;
        padding: 6px 0 0;
    }

    .video-player__toggle,
    .video-player__sound,
    .video-player__full {
        width: 44px;
        height: 44px;
    }

    .video-player__toggle svg,
    .video-player__sound svg,
    .video-player__full svg {
        width: 22px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-player__bar {
        transition: none;
    }

    .video-stage button img,
    .video-stage button video,
    .video-play,
    .video-project.will-reveal,
    .video-project.will-reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body.shell .video-reel {
    margin-top: 97px;
    margin-bottom: 49px;
}

@media (max-width: 800px) {
    body.shell .video-reel {
        margin-top: 65px;
        margin-bottom: 33px;
    }
}
