/* Case studies, "the firm" direction (DESIGN.md, color.firm). Loads after /home.css and reads its tokens and shell classes
   (top bar, type, buttons, bands, the case file panel, footer). Evidence sits on ink: the index of the three engagements
   and each case's facts. The stories stay on paper. */

/* ---------- First screen: the index of the three engagements ---------- */
body.firm .c-index .c-index__row { display: block; color: var(--text); text-decoration: none; padding: 20px 0; border-bottom: 1px solid var(--border-hover); }
body.firm .c-index .c-index__row:last-child { border-bottom: 0; padding-bottom: 0; }
/* The headline figure and its line, shared by the index and each case's panel. */
.c-index__fig, .c-glance__fig { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.c-index__what, .c-glance__say { display: block; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.c-nowrap { white-space: nowrap; }
.c-index__fig { transition: color 0.3s ease; }
.c-index__row:hover .c-index__fig { color: var(--teal); }
.c-index__what { margin-top: 8px; }
.c-index__what b { display: block; font-size: 16px; font-weight: 600; color: var(--text); }

/* ---------- One band per engagement, separated by an ink rule ---------- */
section.c-case { padding: 48px 0; }
section.c-case--last { padding-bottom: 96px; }
.c-case__in { border-top: 1px solid var(--bg); padding-top: 48px; }
.c-case__title { max-width: 18em; margin-bottom: 40px; }
.c-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }

/* The facts of the case on ink; it stays in view while the story scrolls past. */
.c-glance { position: sticky; top: 96px; }
.c-glance__fig { margin-top: 20px; }
.c-glance__say { margin: 8px 0 20px; }
.c-glance__list { list-style: none; border-top: 1px solid var(--border-hover); }
.c-glance__list li { padding: 12px 0; border-bottom: 1px solid var(--border-hover); font-size: 14px; line-height: 1.5; }
.c-glance__list li:last-child { border-bottom: 0; padding-bottom: 0; }

.c-quote { margin-top: 40px; padding-left: 24px; border-left: 2px solid var(--teal-deep); }
.c-quote blockquote { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; max-width: 26em; }
.c-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--text-dim); }

/* ---------- Closing band on ink ---------- */
.c-close { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: end; }
.c-close .f-sub { max-width: 36em; }
.c-close__go { text-align: right; }
.c-close__go p { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
    section.c-case { padding: 40px 0; }
    section.c-case--last { padding-bottom: 64px; }
    .c-case__in { padding-top: 40px; }
    .c-case__title { margin-bottom: 32px; }
    .c-split { grid-template-columns: 1fr; gap: 32px; }
    .c-glance { position: static; }
    .c-close { grid-template-columns: 1fr; gap: 32px; }
    .c-close__go { text-align: left; }
}

@media (max-width: 560px) {
    .c-index .f-case__head, .c-glance .f-case__head { flex-direction: column; gap: 0; }
    .c-close__go .f-btn { width: 100%; text-align: center; }
}

/* home.css already stops every transition under body.firm. The design checker reads each stylesheet on its own, so the guard is repeated here. */
@media (prefers-reduced-motion: reduce) {
    .c-index__fig { transition: none; }
}
