/* ==========================================================================
   Selected work — editorial case-study rows
   Numbers lead, the write-up follows. Rows alternate emphasis so the page
   never settles into a uniform card grid.
   ========================================================================== */

.case-list {
  display: grid;
  gap: 0;
}

/* The section head already supplies the space above the first row. */
.case:first-child { padding-top: clamp(0.5rem, 1.5vw, 1.25rem); }

.case {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 62rem) {
  .case {
    grid-template-columns: 6.5rem minmax(0, 6fr) minmax(0, 4fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

/* --- Index numeral -------------------------------------------------------- */

.case__index {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 3.4vw, 5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-strong);
  transition: color var(--duration-slow) var(--ease-out-soft);
}

.case:hover .case__index {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
}

/* --- Main column ---------------------------------------------------------- */

.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}

.case__role {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
}

.case__dates {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-mute);
}

.case__title {
  font-size: var(--text-h3);
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.case__org {
  font-size: var(--text-small);
  color: var(--ink-mute);
  margin-bottom: 1.15rem;
}

.case__body p { color: var(--ink-soft); max-width: 68ch; }
.case__body p + p { margin-top: 0.9em; }

/* --- Tag row -------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 0.32em 0.75em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
}

/* --- Result column -------------------------------------------------------- */

.case__results {
  display: grid;
  gap: 1.35rem;
  align-content: start;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.result__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.result__value em {
  font-style: normal;
  color: var(--accent);
}

.result__label {
  font-size: var(--text-small);
  color: var(--ink-mute);
  line-height: 1.42;
}

/* Stacked layout: let the metrics sit side by side instead of a tall, empty card. */
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .case__results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2rem;
  }

  /* Four items (or two notes) read as an even 2 x 2 instead of 3 + 1. */
  .case__results:has(> :nth-child(4)),
  .case__results--notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A softer variant for rows where the honest answer is "shipped", not a metric. */
.case__results--notes { background: transparent; box-shadow: none; }

.note-item {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.note-item__title {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.note-item__text {
  font-size: var(--text-small);
  color: var(--ink-mute);
  line-height: 1.48;
}
