.portfolio-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    z-index: -100;
}

.portfolio-background__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.portfolio-background__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(29,53,87,var(--portfolio-overlay-opacity)) 0%,
            rgba(29,53,87,var(--portfolio-overlay-opacity)) 35%,
            rgba(29,53,87,var(--portfolio-overlay-opacity)) 70%,
            rgba(29,53,87,var(--portfolio-overlay-opacity)) 100%
        );
    transition: background .15s linear;
}

.portfolio-background__effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.portfolio-background__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: min(45%, 650px);
    margin-left: 1rem;
    color: var(--color-accent-light);
}

.hero__subtitle {
    font-size: clamp(.9rem, 1vw, 1rem);
    font-weight: 600;
    letter-spacing: .18rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(4rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero__description {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    line-height: 1.6;
    max-width: 34rem;
}

.hero__logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.hero__divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-accent-light);
    opacity: .75;
    z-index: 2;
}

.portfolio-background__video::-webkit-media-controls {
    display: none !important;
}

.portfolio-background__video::-webkit-media-controls-panel {
    display: none !important;
}

.portfolio-background__video::-webkit-media-controls-play-button {
    display: none !important;
}

.portfolio-background__video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero__subtitle,
.hero__title,
.hero__description {
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .95);
}

@media (max-width: 768px) {

    .hero {
        min-height: calc(100svh - var(--navbar-height));
    }

    .hero__content {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .hero__logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .hero__subtitle {
        font-size: .8rem;
        letter-spacing: .12rem;
        margin-bottom: .75rem;
    }

    .hero__title {
        font-size: clamp(2.6rem, 12vw, 4rem);
        line-height: .95;
        margin-bottom: 1.5rem;
    }

    .hero__description {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100%;
    }

}

/* =========================
   MOBILE PREVIEW
   ========================= */

body.portfolio--mobile-preview .hero {
    min-height: calc(100svh - var(--navbar-height));
}

body.portfolio--mobile-preview .hero__content {
    width: 100%;
    margin-left: 0;
    padding: 0;
}

body.portfolio--mobile-preview .hero__logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

body.portfolio--mobile-preview .hero__subtitle {
    font-size: .8rem;
    letter-spacing: .12rem;
    margin-bottom: .75rem;
}

body.portfolio--mobile-preview .hero__title {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .95;
    margin-bottom: 1.5rem;
}

body.portfolio--mobile-preview .hero__description {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
}