:root {
    --case-accent-1: #e63946;
}

.case-page {
    background: var(--bg);
    color: var(--fg);
}

.case-hero .hero__top {
    justify-content: flex-start;
}

.hero__name {
    font-weight: 900;
    font-size: clamp(64px, 13vw, 220px);
    line-height: 0.82;
    letter-spacing: -0.06em;
    margin: clamp(40px, 8vh, 80px) 0;
    color: #000;
}

.case-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    pointer-events: auto;
}

.case-back-link:hover {
    opacity: 0.7;
}

.case-content {
    padding: 0 var(--pad-x) clamp(72px, 10vh, 120px);
    background: #fff;
}

.case-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.55fr) minmax(220px, 0.95fr);
    gap: clamp(22px, 3vw, 40px);
    padding: clamp(38px, 6vh, 64px) 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.case-section:last-child {
    border-bottom: none;
}

.case-section__media {
    display: grid;
    gap: 18px;
    align-self: start;
}

.case-section__media img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;

    /* JS will set this custom property per section */
    max-height: var(--section-body-height, none);
}

.case-section__media--right {
    justify-items: end;
}

.case-placeholder {
    width: 100%;
    max-width: 340px;
    min-height: 220px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--case-accent-1);
}

.case-section__body {
    max-width: 760px;
    display: grid;
    gap: 20px;
}

.case-section__kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
}

.case-section__title {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.case-section__text {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.65;
    color: #111;
    max-width: 62ch;
}

.case-section__text p+p {
    margin-top: 16px;
}

.case-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.case-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--rule);
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.case-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.case-link:hover {
    background: #f3f3f3;
    opacity: 0.85;
}

.case-links {
    padding: 0 var(--pad-x) clamp(48px, 8vh, 80px);
    background: #fff;
}

.case-links__inner {
    padding-top: clamp(28px, 4vh, 40px);
    border-top: 1px solid var(--rule);
    display: grid;
    gap: 18px;
}

.case-links__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
}

@media (max-width: 980px) {

    .case-overview__grid,
    .case-section {
        grid-template-columns: 1fr;
    }

    .case-section__media,
    .case-section__media--right {
        justify-items: start;
    }

}