/* Homepage Featured Projects — isolated reference-parity component. */
.route-home #projects.be-projects {
    position: relative;
    z-index: 1;
    height: calc(320vh + 505.6px);
    min-height: calc(320vh + 505.6px);
    overflow: visible;
    color: #333;
    background: #fcfcfc;
}

.be-projects__inner {
    width: 100%;
    height: 100%;
    padding: 96px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.be-projects__header {
    min-width: 0;
    height: 73.6px;
    flex: 0 0 73.6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.be-projects__eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f55733;
    font-size: 18px;
    font-weight: 300;
    line-height: 21.6px;
}

.be-projects__header h2 {
    margin: 0;
    color: #333;
    font-size: 42px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.be-projects__stack {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.be-projects__sticky {
    position: sticky;
    top: 100px;
    z-index: 1;
    width: 100%;
    height: 80vh;
    flex: 0 0 80vh;
    transform-origin: 50% 50%;
    will-change: transform;
}

.be-projects__card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    color: #fff;
}

.be-projects__media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: 40px;
    background: #202020;
}

.be-projects__media img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.be-projects__info {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 169px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.be-projects__category {
    width: fit-content;
    min-height: 37px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    color: #fff;
    background: #f55733;
    font-size: 18px;
    font-weight: 300;
    line-height: 27px;
}

.be-projects__title {
    width: 400px;
    max-width: 100%;
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.be-projects__card:focus-visible {
    outline: 3px solid #f55733;
    outline-offset: 5px;
    border-radius: 40px;
}

@media (max-width: 800px) {
    .route-home #projects.be-projects {
        height: calc(240vh + 381.2px);
        min-height: calc(240vh + 381.2px);
    }

    .be-projects__inner {
        padding: 60px 20px;
        gap: 30px;
    }

    .be-projects__header {
        height: 51.2px;
        flex-basis: 51.2px;
    }

    .be-projects__eyebrow {
        font-size: 16px;
        line-height: 19.2px;
    }

    .be-projects__header h2 {
        font-size: 22px;
        line-height: 22px;
    }

    .be-projects__sticky {
        top: 150px;
        height: 60vh;
        flex-basis: 60vh;
    }

    .be-projects__info {
        height: 126px;
        padding: 30px;
    }

    .be-projects__category {
        min-height: 34px;
        font-size: 16px;
        line-height: 24px;
    }

    .be-projects__title {
        width: 100%;
        font-size: 22px;
        line-height: 22px;
    }
}

@media (max-width: 599px) {
    .route-home #projects.be-projects {
        height: calc(240vh + 403.2px);
        min-height: calc(240vh + 403.2px);
    }

    .be-projects__header {
        height: 73.2px;
        flex-basis: 73.2px;
    }

    .be-projects__header h2 {
        max-width: 335px;
    }

    .be-projects__sticky {
        height: 60vh;
        flex-basis: 60vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .be-projects__sticky {
        transform: none !important;
    }

}
