header {
    height: 20vh;
    display: flex;
    justify-content: space-between;
    padding: 4vh;
}

nav a {
    box-shadow: inset 0 0 0 0 var(--spring-green);
    padding: 0 1rem;
    transition: color .1s ease-in, box-shadow .6s ease-in-out;
}

nav a:hover {
    color: #fff;
    box-shadow: inset 20vw 0 0 0 var(--spring-green);
}

@media (max-width: 1080px){
    header {
        height: 160px;
    }
}

.outer-marq {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100vw;
    color: var(--spring-green);
}

.inner-marq-txt {
    padding-bottom: 8px;
    white-space: nowrap;
}

.inner-marq-symb {
    padding-left: 0.4em;
    padding-right: 0.4em;
    font-size: 1.6em;
}

.inner-marq {
    display: inline-flex;
    align-items: center;
    will-change: transform;
    font-size: 4.96em;
}

@keyframes scroll-forward {
    from {
        transform: translateX(calc(-100%));
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scroll-backward {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100%));
    }
}

.marq-forward {
    animation: scroll-forward 25s linear infinite;
}

.marq-backward {
    animation: scroll-backward 25s linear infinite;
}

.snap {
    scroll-snap-align: start;
}

.project {
    margin-left: 8vw;
    margin-right: 8vw;
    margin-bottom: 2vh;
    outline: 1px solid #000;
    padding: 2vh 8vh 2vh 4vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.project-title {
    font-weight: 600;
    font-size: 6em;
}

@media (min-width: 769px) {
    .project-title {
        font-size: 4.8em;
    }
}

@media (max-width: 1080px) {
    .project-title {
        font-size: 4em;
    }
}

@media (min-width: 481px) {
}

@media (min-width: 769px) {
}

.project-text {
    font-size: 18px;
    font-weight: 200;
}

.project {
    height: 12vh;
    overflow: hidden;
    transition: height 400ms ease;
    position: relative;
    z-index: 0;
    background: #fff;

    /* base white background */
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: -1;
}

/* individual images */
#konektin::before {
    background-image: url('../assets/konektin/phone_wall.jpg');
}

#new::before {
    background-image: url('../assets/new_otani/hero_index.jpg');
}

#midnight::before {
    background-image: url('../assets/midnight_pizza/hero_index.jpg');
}

#part::before {
    background-image: url('../assets/pt_philosopher/pouch_front.jpg');
}

#lost::before {
    background-image: url('../assets/lost_stream/hero_index.jpg');
}

.project:hover,
.project:focus-within {
    height: 40vh;
}

.project:hover::before,
.project:focus-within::before {
    opacity: 1;

    /* fade from white → image */
}