.cases {
    padding-bottom: 8.1vw;
    width: 100%;
}

.cases .case .media-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    isolation: isolate;
}

.cases .case {
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    top: 4vw;
    transition-property: opacity, top;
    height: 65dvh;
    max-height: 65dvh;
    min-height: 33dvw;
    display: grid;
    -webkit-grid-template-columns: repeat(12, 1fr);
    grid-template-columns: repeat(12, 1fr);
    -webkit-grid-gap: 30px;
    grid-gap: 30px;
}
@media screen and (max-width: 1100px) {
    .cases .case {
        min-height: 48dvw;
    }
}
@media screen and (max-width: 700px) {
    .cases .case {
        min-height: 70dvw;
    }
}
@media screen and (max-width: 500px) {
    .cases .case {
        min-height: 460px;
    }
}
@media screen and (max-width: 1060px) and (orientation: portrait) {
    .cases .case {
        max-height: 50dvw;
    }
}
.cases .case.hide,
.cases .case.hide_in_archive {
    display: none;
}

.cases .case.revealed {
    opacity: 1;
    top: 0;
}

.cases .case .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cases .case .hero-overlay {
    z-index: 1;
    mix-blend-mode: multiply;
}

.cases .case .image picture,
.cases .case .image picture img,
.cases .case .image video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.cases .case .image img,
.cases .case .image video {
    transition: transform 0.8s ease;
    will-change: transform;
}

.cases .case:hover .image img,
.cases .case:hover .image video {
    transform: scale(1.06);
}

.cases .case .info {
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    grid-column: span 5;
}

.cases .case .info .logo {
    width: 233px;
}

@media screen and (max-width: 780px) {
    .cases .case .info .logo {
        width: 210px;
    }
}

.cases .case .info .case-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2.91dvw;
    margin-top: auto;
    margin-bottom: auto;
}

.cases .case .info a {
    margin-bottom: 5dvw;
}

@media screen and (max-width: 1024px) {
    .cases .case .info {
        grid-column: span 7;
    }
}
@media screen and (max-width: 600px) {
    .cases .case .info a {
        margin-bottom: 35px;
    }
    .cases .case .info .case-logo-text {
        gap: 30px;
    }
}

@media screen and (max-width: 580px) {
    .cases .case .info {
        grid-column: span 6;
    }
    .cases .case {
        -webkit-grid-template-columns: repeat(6, 1fr);
        grid-template-columns: repeat(6, 1fr);
        -webkit-grid-gap: 20px;
        grid-gap: 20px;
    }
}

.cases .case h2 {
    font-size: clamp(2rem, calc(1.641rem + 1.559vw), 2.889rem);
    line-height: 1;
    font-weight: 600;
}

.cases .case .link-and-arrow {
    display: flex;
    align-items: center;
    gap: 21px;
}

.cases .case .link-and-arrow a,
.cases .case .link-and-arrow p {
    color: var(--color-white);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.4s ease;
}

.cases .case .link-and-arrow svg path {
    stroke: white;
    transition: stroke 0.4s ease;
}

.cases .case .link-and-arrow svg {
    position: relative;
    left: 0;
    transition: transform 0.4s ease;
}

.cases .case .link-and-arrow:hover svg {
    transform: translateX(1vw);
}

.cases .case .link-and-arrow:hover svg path {
    stroke: var(--color-orange-100) !important;
}

.cases .case .link-and-arrow:hover a,
.cases .case .link-and-arrow:hover p {
    color: var(--color-orange-100) !important;
}

@media (min-width: 1081px) {
    .cases .case:hover .link-and-arrow svg {
        transform: translateX(1vw);
    }

    .cases .case:hover .link-and-arrow svg path {
        stroke: var(--color-orange-100) !important;
    }

    .cases .case:hover .link-and-arrow a,
    .cases .case:hover .link-and-arrow p {
        color: var(--color-orange-100) !important;
    }

    .cases .case:hover .link-and-arrow.dark svg path {
        stroke: var(--color-orange-100) !important;
    }

    .cases .case:hover .link-and-arrow.light svg path {
        stroke: var(--color-orange-100) !important;
    }

    .cases .case .arrow {
        opacity: 0;
    }

    .cases .case:hover .arrow {
        opacity: 1;
        transition-delay: 0.3s;
        left: 1.5vw;
    }

    .cases .case:hover .arrow path {
        transition-delay: 0.3s;
        stroke: var(--color-orange-100);
    }
}

.cases .case .filter,
.cases .case h2,
.cases .case:hover h2 {
    color: var(--color-white);
}

.cases .case .info .dark,
.cases .case .link-and-arrow.dark p,
.cases .case .link-and-arrow.dark a {
    color: var(--color-dark-blue-100);
}

.cases .case .link-and-arrow.dark svg path {
    stroke: var(--color-dark-blue-100) !important;
}

.cases .case .link-and-arrow.dark:hover svg path {
    stroke: var(--color-orange-100) !important;
}

.cases .case .info .light,
.cases .case .link-and-arrow.light p,
.cases .case .link-and-arrow.light a {
    color: var(--color-white);
}

.cases .case .link-and-arrow.light svg path {
    stroke: white !important;
}

.cases .case .link-and-arrow.light:hover svg path {
    stroke: var(--color-orange-100) !important;
}

.cases .case .filter {
    color: var(--color-orange-100);
}

.cases .case .excerpt {
    display: block;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.cases .case .arrow {
    left: 0;
    margin-top: 4vw;
    position: relative;
    display: inline-block;
    transform: -webkit-rotate(-90deg);
    transform: rotate(-90deg);
    transition-duration: 0.4s;
}

.tail {
    background-color: var(--color-dark-blue-5);
    color: var(--color-dark-blue-75);
    padding-top: 9.7vw;
    padding-bottom: 9.7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tail figure {
    width: 37vw;
}

.tail .info {
    width: 37.78vw;
}

.tail .info .cta {
    margin-top: 3vw;
}

@media only screen and (max-width: 767px) {
    .cases .case .excerpt {
        padding: 0;
    }

    .tail {
        display: block;
        padding-top: 0;
        padding-bottom: 120px;
        margin-top: 120px;
    }

    .tail figure {
        margin-top: -30px;
    }

    .tail figure,
    .tail .info {
        width: 100%;
    }

    .tail figure picture {
        margin-top: -60px;
    }

    .cases .case .arrow {
        margin-top: 1.56rem;
        left: 2px;
        position: relative;
    }
}
