/* Case study section */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(10, 37, 64, 0.72);
}

.news-modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.news-modal-panel {
    position: relative;
    width: 100%;
    max-width: 46rem;
    margin: auto;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--bg-white);
    box-shadow: 0 30px 80px rgba(10, 37, 64, 0.35);
}

.news-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(10, 37, 64, 0.55);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.news-modal-close:hover { background: rgba(10, 37, 64, 0.82); }
.news-modal-close:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.news-modal-hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-modal-body { padding: 1.75rem 2rem 2.25rem; }
.news-modal-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-dark); }
.news-modal-body h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: var(--navy); margin: 0.5rem 0 0.75rem; }
.news-modal-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.25rem; }
.news-modal-body p { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 1rem; }
.news-modal-body h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.news-modal-quote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--teal); background: var(--bg-gray); font-size: 0.95rem; line-height: 1.7; color: var(--navy); }
.news-modal-sources { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid #e1e8eb; font-size: 0.8rem; line-height: 1.7; color: var(--text-light); }
.news-modal-sources a { color: var(--teal-dark); }

@media (max-width: 40rem) {
    .news-modal { padding: 0.75rem; }
    .news-modal-body { padding: 1.25rem 1.25rem 1.75rem; }
}

.case-studies {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    scroll-margin-top: 6rem;
}

.case-studies h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--navy);
}

.case-studies > p {
    max-width: 42rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.case-study-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 0.75rem 0.5rem 1rem;
}

.case-study-shell {
    min-width: 0;
    position: relative;
    padding: 0.5rem 0.5rem 0.7rem;
    border: 1.5px solid #d3dde3;
    border-radius: calc(6px * var(--round));
    background: var(--bg-white);
    box-shadow: 5px 5px 0 #c4ecea;
    transform: rotate(-1.875deg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-study-shell:nth-child(even) {
    transform: rotate(1.5deg) translateY(10px);
}

.case-study-shell:nth-child(3n) {
    transform: rotate(-0.75deg) translateY(-4px);
}

.case-study-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: calc(3px * var(--round));
}

.case-study-content {
    padding: 0.75rem;
}

.case-study-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.case-study-shell h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    color: var(--navy);
    margin: 0.35rem 0 1rem;
}

.case-study-shell dl {
    font-size: 0.875rem;
    line-height: 1.6;
}

.case-study-shell dl > div {
    padding: 0.65rem 0;
    border-top: 1px solid #e1e8eb;
}

.case-study-shell dt {
    font-weight: 600;
    color: var(--navy);
}

.case-study-shell dd {
    color: var(--text-light);
}

.case-study-shell--interactive {
    cursor: pointer;
}

.case-study-shell--interactive:hover,
.case-study-shell--interactive:focus-visible {
    transform: rotate(0) translateY(-8px) scale(1.025);
    z-index: 2;
    box-shadow: 9px 9px 0 var(--teal);
}

.case-study-shell--interactive:focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 0.25rem;
}

.case-study-read-more {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal-dark);
}

.case-study-shell--interactive:hover .case-study-read-more {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

@media (max-width: 40rem) {
    .case-studies {
        padding: 2rem 1.5rem;
    }

    .case-study-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-study-shell {
        transition: none;
    }

    .case-study-shell,
    .case-study-shell:nth-child(even),
    .case-study-shell:nth-child(3n),
    .case-study-shell--interactive:hover,
    .case-study-shell--interactive:focus-visible {
        transform: none;
    }
}
