/* Case-study pages. Shared by every page that renders
   template-parts/sections/case-study.php. */

.ce-case {
    display: block;
    font-family: var(--font-primary);
    color: #444;
}

/* =============================================================
   Hero
   ============================================================= */

.ce-case__hero {
    padding: 70px 0 0;
}

.ce-case__title {
    max-width: 900px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--maine-black);
    margin: 0 0 28px;
}

.ce-case__cta {
    margin-bottom: 10px;
}

/* =============================================================
   Video — 16:9, controls on, never autoplaying
   ============================================================= */

.ce-case__video {
    max-width: 980px;
    margin: 40px auto 0;
}

.ce-case__block + .ce-case__video,
.ce-case__video:not(:first-child) {
    margin-top: 0;
}

.ce-case__video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 8px;
}

.ce-case__video-caption {
    margin: 12px 0 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* A standalone process video between two sections needs its own breathing room. */
.ce-case > .ce-case__video {
    padding: 0 24px 70px;
    max-width: 1218px;
}

/* =============================================================
   Section rhythm
   ============================================================= */

.ce-case__block,
.ce-case__snapshot {
    padding: 70px 0;
}

.ce-case__block--tint {
    background: #fafafa;
}

.ce-case__h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--maine-black);
    margin: 0 0 26px;
}

.ce-case__h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--maine-black);
    margin: 34px 0 16px;
}

.ce-case__prose {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.75;
}

.ce-case__prose p {
    margin: 0 0 18px;
}

.ce-case__prose p:last-child {
    margin-bottom: 0;
}

.ce-case__prose a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =============================================================
   Project snapshot
   ============================================================= */

.ce-snapshot {
    max-width: 900px;
    margin: 0;
    border-top: 1px solid #ececec;
}

.ce-snapshot__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.ce-snapshot dt {
    font-weight: 700;
    color: var(--maine-black);
    font-size: 15px;
}

.ce-snapshot dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .ce-snapshot__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* =============================================================
   Bullet lists
   ============================================================= */

.ce-case__list {
    max-width: 860px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.ce-case__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.ce-case__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.ce-case__list--tight li {
    margin-bottom: 10px;
}

/* =============================================================
   Approach checklist
   ============================================================= */

.ce-checklist {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.ce-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #ececec;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.ce-checklist__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--brand-orange);
}

/* =============================================================
   Quotes
   ============================================================= */

.ce-case__pullquote {
    max-width: 820px;
    margin: 26px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.ce-case__pullquote em {
    color: var(--maine-black);
    font-weight: 600;
}

.ce-case__quote {
    max-width: 820px;
    margin: 0;
    padding: 30px 34px;
    background: #fff8f4;
    border-left: 3px solid var(--brand-orange);
}

.ce-case__quote p {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.75;
    font-style: italic;
    color: #333;
}

.ce-case__quote cite {
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    color: var(--maine-black);
}

/* =============================================================
   Gallery
   ============================================================= */

.ce-case__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .ce-case__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ce-case__gallery {
        grid-template-columns: 1fr;
    }
}

.ce-case__gallery figure {
    margin: 0;
}

.ce-case__gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ce-case__gallery figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

/* =============================================================
   Closing block
   ============================================================= */

.ce-case__closing {
    padding-bottom: 40px;
}
