/* ==========================================================================
   /case-studies — the index (app/Views/case-studies/index.php).
   Values from "Case Studies.dc.html".
   ========================================================================== */

/* ---------- Hero ---------- */
.csi-blob-2 { right: 140px; bottom: -60px; width: 120px; height: 120px; }
.csi-h1 {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(44px, 6.5vw, 88px); line-height: .95; letter-spacing: -0.03em;
}
.csi-lede { max-width: 620px; }

.csi-next { padding-top: 24px; }

/* ---------- Case study cards ---------- */
.csi-card {
    --csi-bg: var(--c-yellow-tint); --csi-hover: #ffe9a3;
    background: var(--csi-bg); border-radius: var(--r-hero); padding: clamp(24px, 4vw, 56px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px; align-items: center;
}
.csi-card:hover { color: var(--c-ink); background: var(--csi-hover); }
.csi-card--pink  { --csi-bg: var(--c-pink-tint);   --csi-hover: #f9c9d8; }
.csi-card--teal  { --csi-bg: var(--c-teal-tint);   --csi-hover: var(--c-teal-tint-hover); }
.csi-card--lilac { --csi-bg: var(--c-lilac-tint);  --csi-hover: #e2d4f8; }
.csi-card--peach { --csi-bg: var(--c-orange-tint); --csi-hover: #fcd3b3; }

.csi-card__text { display: flex; flex-direction: column; gap: 18px; }
.csi-card__meta { font-weight: 700; font-size: 15px; color: var(--c-pink-text); }
.csi-card__title {
    margin: 0;
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(36px, 4.5vw, 60px); line-height: .98; letter-spacing: -0.025em;
}
.csi-card__summary { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.csi-chips { gap: 8px; }
.csi-card__link { font-weight: 700; font-size: 17px; }

.csi-card__media {
    display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 48px 48px 48px 10px;
    overflow: hidden; background: var(--c-cream); border: 3px solid var(--c-ink);
}
/* Screenshots fill the frame; anchored to the top so the site header shows. */
.csi-card__media .cs-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Products teaser + "Your project here?" ---------- */
.csi-teasers {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(260px, calc(50% - 12px))), 1fr));
}
.csi-teaser {
    border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px);
    display: flex; flex-direction: column; gap: 14px;
}
.csi-teaser--products { background: var(--c-pink-tint); }
.csi-teaser--products:hover { color: var(--c-ink); background: #f9c9d8; }
.csi-teaser--cta { background: var(--c-teal-tint); }
.csi-teaser__label { font-weight: 700; font-size: 15px; color: var(--c-pink-text); }
.csi-teaser__label--ink { color: var(--c-ink); }
.csi-teaser__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.csi-teaser__text { font-size: 17px; line-height: 1.55; }
.csi-teaser__link { font-weight: 700; font-size: 16px; }
