* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.project-page,
body.not-found-page {
    margin: 0;
    color: #fff;
    background: #111518;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.project-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 32px;
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 14, .85),
        transparent
    );
}

.project-header__brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-header__back {
    font-size: 13px;
    opacity: .8;
}

.project-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 86vh;
    overflow: hidden;
    background: #161b1f;
}

.project-hero__image,
.project-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project-hero__image {
    object-fit: cover;
}

.project-hero__shade {
    background:
        linear-gradient(
            to top,
            rgba(10, 12, 14, .95),
            rgba(10, 12, 14, .08) 70%
        );
}

.project-hero__content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 160px 0 64px;
}

.project-hero__category {
    margin: 0 0 14px;
    color: #1687ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-hero__title {
    max-width: 920px;
    margin: 0;
    font-size: clamp(48px, 9vw, 132px);
    line-height: .92;
    text-transform: uppercase;
}

.project-hero__lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.7;
}

.project-description {
    padding: 90px 24px;
}

.project-description__inner {
    width: min(800px, 100%);
    margin: 0 auto;
    color: #b9c1c7;
    font-size: 18px;
    line-height: 1.85;
}

.project-media {
    padding: 28px 24px 80px;
}

.project-section-title {
    width: min(1400px, 100%);
    margin: 0 auto 28px;
    font-size: 30px;
    text-transform: uppercase;
}

.project-gallery,
.project-videos {
    display: grid;
    width: min(1400px, 100%);
    margin: 0 auto;
    gap: 18px;
}

.project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery__item {
    margin: 0;
    overflow: hidden;
    background: #171c20;
}

.project-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
}

.project-gallery__item figcaption {
    padding: 12px 14px;
    color: #9da7ae;
    font-size: 13px;
}

.project-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-video iframe,
.project-video img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    object-fit: cover;
}

.project-video h3 {
    margin: 12px 0 0;
    font-size: 16px;
}

.project-external {
    display: grid;
    place-items: center;
    padding: 30px 24px 110px;
}

.project-external a {
    padding: 15px 24px;
    background: #1687ff;
    border-radius: 999px;
    font-weight: 700;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    color: #78838b;
    border-top: 1px solid #272e33;
    font-size: 12px;
}

.not-found {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
}

.not-found p {
    margin: 0;
    color: #1687ff;
    font-size: 18px;
}

.not-found h1 {
    margin: 10px 0 24px;
    font-size: clamp(38px, 8vw, 90px);
}

.not-found a {
    padding: 13px 20px;
    background: #1687ff;
    border-radius: 999px;
}

@media (max-width: 800px) {
    .project-header {
        padding: 20px;
    }

    .project-hero__content {
        width: min(100% - 32px, 1180px);
        padding-bottom: 44px;
    }

    .project-gallery,
    .project-videos {
        grid-template-columns: 1fr;
    }

    .project-footer {
        padding: 24px 20px;
    }
}
