/* Case Study Pagination — next project marquee + hero */
.case-study-pagination {
    background-color: inherit;
}
.case-study-pagination .case-study-pagination__marquee {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background-color: transparent !important;
}
.case-study-pagination .marquee {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: transparent !important;
}
.case-study-pagination .marquee_text {
    display: flex;
}
.case-study-pagination .marquee_text .display {
    white-space: nowrap;
}
.case-study-pagination.is-dark .marquee_text {
    color: #fff;
}
.case-study-pagination.is-dark .display.outlines {
    -webkit-text-stroke-color: #fff;
}
.case-study-pagination.is-light .marquee_text {
    color: #24211A;
}
.case-study-pagination.is-light .display.outlines {
    -webkit-text-stroke-color: #24211A;
}

a.case_study_next {
    position: relative;
    display: block;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: transparent !important;
}
a.case_study_next.case_study_hero {
    height: 100vh;
    height: 100dvh;
    max-height: none;
    --bs-aspect-ratio: auto;
}
a.case_study_next.case_study_hero .totem-img {
    opacity: 1;
}
@media (min-width: 992px) {
    a.case_study_next.case_study_hero .totem-img {
        opacity: 0;
        transform: none;
    }
}

.case_study_next__bg {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.case_study_next__inner {
    position: relative !important;
    z-index: 1;
    height: 100%;
}

.case_study_next__content {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.case_study_next__content .totem-img {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.case_study_next__meter {
    position: absolute !important;
    left: 50%;
    bottom: 4.5rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: min(17.5rem, 72vw);
    pointer-events: none;
    text-align: center;
    opacity: 0;
}
.case_study_next__meter-label {
    margin: 0;
    white-space: nowrap;
}
.case_study_next__meter-bar {
    display: block;
    width: 100%;
    height: 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    box-sizing: border-box;
    position: relative !important;
    overflow: hidden;
}
.case_study_next__meter-fill {
    display: block;
    position: absolute !important;
    inset: 0;
    background-color: currentColor;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
}

@media (min-width: 768px) {
    .case-study-pagination .case-study-pagination__marquee {
        padding-top: 5.5rem !important;
        padding-bottom: 5.5rem !important;
    }
}

@media (min-width: 992px) {
    .case-study-pagination .case-study-pagination__marquee {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
    }
    .case_study_next__meter {
        bottom: 5.5rem;
        width: min(20rem, 40vw);
    }
    .case_study_next__content .totem-img {
        transform: none;
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .case_study_next__meter {
        bottom: 2.75rem;
    }
}
