/* ============================================================
   work.css: case-study pages (work/<company>/<case>.html)
   Layout only; type and colour come from styles.css roles.
   ============================================================ */

/* Hero: tags, title, subtitle, TL;DR */
.hero-body {
  margin: var(--space-12) 0 var(--space-8);
}

/* Fact strip under the hero */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--space-12);
  border-block: 1px solid var(--hair);
}

.meta-strip__item {
  padding: var(--space-4) var(--space-6);
}

.meta-strip__item .label-sm {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink-faint);
}

.meta-strip__item strong {
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Experiment: copy on the left, evidence on the right */
.experiment-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-12), 8vw, var(--space-24));
  margin-top: var(--space-block);
}

.experiment {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: var(--space-split);
  padding-top: var(--space-8);
  border-top: 1px solid var(--hair);
}

.experiment:first-child {
  border-top: none;
}

.experiment p {
  color: var(--ink-muted);
}

/* "Hypothesis" / "A/B test results" headings in experiments and feature rows */
.experiment .label--strong,
.case-row .label--strong {
  margin: var(--space-6) 0 var(--space-3);
}

/* Before/after frames */
.frame--before {
  border-top: 2px solid var(--ink-faint);
}

.frame--after {
  border-top: 2px solid var(--mint);
}

.frame--plain {
  border: none;
}

/* Numbered decision rules */
.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-4);
  max-width: 80ch;
  padding: var(--space-4) 0;
  color: var(--ink-muted);
}

/* Side note in mono */
.note {
  max-width: 64ch;
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid var(--hair);
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--ink-faint);
}

/* Media column of a .split, centred */
.split__media {
  justify-self: center;
}

@media (max-width: 940px) {
  .experiment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .meta-strip {
    grid-template-columns: 1fr;
  }
}
