.intro {
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

video {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
}

.inactive {
    filter: blur(1px) brightness(0.9);
    transition: filter 1.5s ease-out;
}

.intro h1 {
    width: min(60rem, 80%);
    position: absolute;
    top: 35%;
    color: var(--neutral-100);
    font-size: var(--fs-title);
    line-height: 1.3;
    text-align: center;
    text-shadow: var(--neutral-cool-dark) 0.02em 0.02em 0.05em;
}

button#play, button#pause, .play, .pause {
    width: 5rem;
    position: absolute;
    right: 5%;
    bottom: 5%;
    background-color: transparent;
    border: none;
}

button#play, button#pause, .play:hover, .pause:hover {
    cursor: pointer;
}

#playButton circle, #pauseButton circle {
    fill: var(--neutral-200);
    stroke: var(--neutral-200);
    stroke-miterlimit: 10;
    stroke-width: 12px;
}

#playButton:hover circle, #pauseButton:hover circle {
    fill: var(--neutral-cool-dark);
    stroke: none;
    transition: fill .05s ease-out;
}

#playButton polygon, #pauseButton rect {
    stroke: var(--secondary);
    fill: var(--secondary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 12px
}

#playButton:hover polygon, #pauseButton:hover rect {
    stroke: var(--neutral-200);
    fill: var(--neutral-200);
    transition: fill .05s ease-out;
}

section {
    margin: max(8rem, 10vw) auto;
}

section#features {
    width: max(56rem, 76%);
    margin: max(8rem, 10vw) auto;
    padding-left: max(1rem, 1%);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.box {
    flex: 1;
    justify-content: flex-start;
    align-items: center;
}

.invisible {
    opacity: 0;
    filter: blur(0.05rem);
    transform: translate(0, 1rem);
    transition: opacity .5s ease-out, filter .5s ease-out, transform .5s ease-out;
}

.visible {
    opacity: 1;
    filter: blur(0);
    transition: opacity .5s ease-out, filter .5s ease-out, transform .5s ease-out;
}

.box:nth-child(1) {
    transition-delay: 0s;
}

.box:nth-child(2) {
    transition-delay: 0.2s;
}

.box:nth-child(3) {
    transition-delay: 0.4s;
}

#features p {
    width: 80%;
    margin: 0 auto;
    color: var(--neutral-600);
    font-size: var(--fs-text);
    text-align: left;
    line-height: 1.5;
}

section h1 {
    text-align: center;
    font-size: var(--fs-title);
    letter-spacing: -0.02em;
    color: var(--neutral-cool-dark);
}

section h2 {
    width: 81%;
    margin: 0.7em auto;
    text-align: left;
    font-size: var(--fs-h1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

.nowrap {
    white-space: nowrap;
}

.overview {
    height: 95vh;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center
}

#milestones {
    position: relative;
}

#milestones ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    box-shadow: inset 0 0 0.5rem var(--neutral-200);
    padding: 2rem;
}

#milestones li {
    flex: 1;
    margin: 0 1rem;
    min-width: 15rem;
    max-width: 15rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}


#milestones li span {
    font-weight: 600;
    font-size: var(--fs-h2);
    color: var(--primary);
    display: block;
    text-align: center;
    margin: 0.5rem;
}

#milestones li p {
    color: var(--secondary);
    text-indent: initial;
    text-align: center;
}

#milestones .arrow.left {
    position: absolute;
    left: 5vw;
    top: 9rem;
}

#milestones .arrow.right {
    position: absolute;
    right: 5vw;
    left: auto;
    top: 9rem;
}

footer {
    margin: 8rem auto;
}

@media screen and (max-width: 1024px) {
    .intro h1 {
        font-size: min(9vw,var(--fs-h1));
    }

    section {
        margin: 10rem auto;
    }

    section#features {
        width: 85%;
        margin: max(8rem, 10vw) auto;
        flex-direction: column;
    }

    section#features .box {
        margin: 2rem auto;
    }

    section h1 {
        font-size: var(--fs-h1);
    }

    section h2 {
        font-size: var(--fs-h2);
    }

    section p {
        width: 100%;
        text-align: center;
        text-indent: 0;
    }

    #milestones ul {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        overflow-x: clip;
        box-shadow: none;
    }

    #milestones li {
        margin: 1rem 0;
        max-width: 65%;
    }

    #milestones li span {
        font-size: var(--fs-h2);
    }

    #milestones li p {
        font-size: var(--fs-text);
    }
}

@supports ( -webkit-touch-callout : none) {
    .overview {
        background-attachment: scroll;
    }
}