:root {
    --fg0: antiquewhite;
    --fg1: #ddd;
    --fg2: #666;
    --fg3: #aaa;
    --bg0: #111;
}

body {
    padding: 0;
    margin: 0;
}

#render {
    position: fixed;
    top: 0;
    left: 0;
}

.scene {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(50%);
}

.slide {
    z-index: 0;
    width: 100vw;
    height: 100vh;
    /*background: var(--bg0);*/
    user-select: none;
}

#slide1 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    line-height: 0.5;
    font-size: 2000%;
    /*background: linear-gradient(to bottom, black, var(--bg0), var(--bg0));*/
}

#slide3 {
    position: relative;
    font-size: 2vw;
    font-weight: 800;
    font-family: "Libre Baskerville";
    text-shadow: 0 0 10px var(fg2);
    color: var(--fg2);
}

#slide3 > div {
    position: absolute;
    display: flex;
    flex-direction: column;
}

#group1 {
    top: 5vw;
    left: 10vw;
}

#group2 {
    bottom: 5vw;
    right: 10vw;
    align-items: flex-end;
}

#separator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 1pt;
    height: 50%;
    background-color: var(--fg1);
}

.slide3-sans {
    font-family: "Outfit";
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 50px #fff2;
    font-size: 3em;
    color: var(--fg1);
}

#slide4 {
    /*position: relative;*/
    font-size: 200%;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(fg2);
    color: var(--fg1);
    display: flex;
}

#slide4 > div {
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    color: var(--fg2);
}

.showcase-video {
    position: absolute;
    display: flex;
    width: 100vw;
    height: 100vh;
    gap: 2vw;
    justify-content: center;
    align-items: center;
    transition: gap ease-in-out .75s;
}

.showcase-video:has(video.showcase-video-selected) {
    gap: 5vw;
}

.showcase-video video {
    border-radius: 5pt;
    width: 5vw;
    height: calc((9/16) * 50vw);
    object-fit: cover;
    object-position: center center;
    filter: grayscale(90%) contrast(50%) brightness(30%);
    transition:
        filter ease-out .5s,
        width cubic-bezier(0.075, 0.82, 0.165, 1) 1s,
        height cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
}

.showcase-video video:hover:not(.showcase-video-selected) {
    filter: grayscale(20%) contrast(100%) brightness(50%);
    height: calc(((9/16) * 50vw) * 1.05);
}

video.showcase-video-selected {
    filter: grayscale(0%) contrast(100%) brightness(100%);
    width: 50vw;
    object-fit: cover;
}

#showcase-info {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: absolute;
    align-items: center;
    pointer-events: none;
}

#showcase-type {
    font-size: 50%;
    font-family: "Montserrat";
    letter-spacing: 0.5vw;
    margin-bottom: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100vw;
    height: 1lh;
    gap: 1vw;
    overflow: hidden;
    transform: translateY(calc(((9/16) * 25vw) * -1.2));
}

#showcase-type > div:nth-child(1) {
    transform: translateY(1lh);
    text-align: right;
}

#showcase-type-options {
    transform: translateY(1lh);
}

.showcase-type-option {
    position: absolute;
}

#showcase-title {
    overflow: hidden;
    font-size: 10vw;
    font-weight: 800;
    font-family: "Staatliches";
    color: var(--fg1);
    mix-blend-mode: difference;
    position: absolute;
    width: 100vw;
    height: 1lh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-title-option {
    position: absolute;
    width: 100vw;
    top: 0;
    left: 0;
    transform: translateY(1lh);
    text-align: center;
}

#showcase-credit {
    overflow: hidden;
    font-size: 75%;
    font-family: "Outfit";
    color: var(--fg3);
    text-shadow: 0 0 100px var(fg2);
    text-transform: none;
    position: absolute;
    width: 100vw;
    height: 1lh;
    text-align: center;
    transform: translateY(calc(((9/16) * 25vw) * 1.25));
}

.showcase-credit-option {
    position: absolute;
    width: 100vw;
    top: 0;
    left: 0;
    transform: translateY(1lh);
    text-align: center;
}

#slide5 {
    font-size: 2vw;
    font-family: "Libre Baskerville";
    color: var(--fg1);
    font-weight: 800;
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

#slide5 > div {
    text-shadow: 0 0 50px var(--fg2);
}

#text101 {
    font-family: "Outfit";
    -webkit-text-stroke: 2pt var(--fg0);
    color: transparent;
    font-weight: 700;
    font-size: 30vh;
}

#text102 {
    font-family: "Staatliches";
    font-weight: 900;
    font-size: 20vw;
    text-transform: uppercase;
    color: var(--fg1);
    text-shadow: 0 0 50px #fff2;
}

.column-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    z-index: 1;
}

.column-grid > div {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-lr;
    text-orientation: upright;
    text-transform: uppercase;
    font-family: "Major Mono Display";
    font-size: 400%;
    font-weight: 500;
    color: var(--fg1);
}

.column-grid > div > div {
    text-shadow: 0 0 20px #fff8;
}

.video-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    position: absolute;
    z-index: 0;
}

.video-grid > div {
    display: flex;
    width: 100vw;
    height: calc(100vh / 3);
    overflow: hidden;
    filter: grayscale(95%) contrast(50%) brightness(20%);
}

.video-grid > div:nth-child(2) {
    justify-content: center;
}

.video-grid > div:nth-child(3) {
    justify-content: flex-end;
}

.video-grid > div > video {
    width: 50vw;
    min-height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: 50% 10%;
    transform: scale(2);
}

@media screen and (orientation: portrait) {
    #slide3 {
        font-size: 5vw;
    }
}
