/* ---------- Agent Review's Explore screen, as a still ----------
   The homepage's Agent Review card and the lab index's entry, since
   2026-10-29 (Adam: "I don't think this needs to be animated anymore ...
   an icon for each step ... make the three steps much more readable"). From
   2026-10-27 it was a clip of the app's own screen with a replay and a
   pause, and its three ways printed at about 9px; the clip, its controls
   and thumb-loop.js went that day. Two pages load this file, so style.css
   and its site-wide buster are untouched.

   It is the page's own markup rather than a picture, so the words stay
   sharp at every width and the checks read them: the stage bar, the
   question, and the three ways, each an icon, a name, and its catch. The
   charcoal and its inks are the dark band's (COLOR.md); the icons are the
   site's line icons at 1.6, in sage on its own ring.

   It sizes to its own width, not the viewport's: the homepage gives it a
   lab panel and the lab index gives it the 18rem picture column. Narrow,
   the ways are rows with the icon beside the words, and the stage bar
   names only the stage it is on; from 30rem the ways stand three across
   and every stage is named; from 36rem their words take a step up. */
.case-thumb--still {
  aspect-ratio: auto;
  background: var(--color-charcoal);
}
.explore-still {
  container-type: inline-size;
  background: var(--color-charcoal);
  color: var(--ink-on-dark);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
}

.explore-still-stages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  list-style: none;
  border-bottom: 1px solid var(--rule-on-dark);
  /* One step down from --text-sm since 2026-10-29 (Adam: the top looked
     cramped; "make the type size a little bit smaller for the top bar"),
     which leaves room for --space-lg between the stages on one line. */
  font-size: var(--text-xs);
  line-height: var(--leading-ui);
  color: var(--ink-on-dark-muted);
}
.explore-still-stages li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.explore-still-stages li::before {
  content: "";
  flex: none;
  width: var(--space-xs);
  height: var(--space-xs);
  border-radius: 50%;
  background: var(--rule-on-dark-strong);
}
.explore-still-stages [aria-current] {
  color: var(--ink-on-dark);
  font-weight: var(--weight-semibold);
}
.explore-still-stages [aria-current]::before {
  background: var(--color-accent-on-dark);
  box-shadow: 0 0 0 var(--space-2xs) var(--color-accent-ring-on-dark);
}
/* Narrow, a stage it is not on is its dot alone; the name stays for a
   reader who hears the list. */
@container (max-width: 29.99rem) {
  .explore-still-stages li:not([aria-current]) span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.explore-still .explore-still-title {
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
  color: var(--ink-on-dark);
}
/* Doubled class: the lab index's section sets every p in it to its own
   size and ink, and that rule outranks a single class. */
/* The question in sage, since 2026-11-02 (Adam: highlight "Which one
   ships?" in sage). The charcoal's own sage, 7.47:1 (COLOR.md). */
.explore-still-ask { color: var(--color-accent-on-dark); }

.explore-still-ways {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  list-style: none;
}
/* 12px corners inside the panel's 20: the panel's radius less the 8 the
   eye reads between the two, so the curves sit concentric. */
.explore-still-ways li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-sm);
  row-gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
  background: var(--wash-on-dark);
  border: 1px solid var(--rule-on-dark);
  border-radius: calc(var(--radius-xl) - var(--space-xs));
}
.explore-still-icon {
  grid-row: span 2;
  align-self: center;
  box-sizing: border-box;
  width: var(--space-3xl);
  height: var(--space-3xl);
  padding: var(--space-xs);
  border-radius: 50%;
  background: var(--color-accent-ring-on-dark);
  color: var(--color-accent-on-dark);
}
.explore-still-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--ink-on-dark);
}
.explore-still-line {
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--ink-on-dark-secondary);
}

@container (min-width: 30rem) {
  .explore-still .explore-still-title {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    font-size: var(--text-3xl);
  }
  .explore-still-ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 var(--space-xl) var(--space-xl);
  }
  .explore-still-ways li {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-md);
  }
  .explore-still-icon {
    grid-row: auto;
    align-self: start;
    margin-bottom: var(--space-sm);
  }
}
@container (min-width: 36rem) {
  .explore-still-name { font-size: var(--text-lg); }
  .explore-still-line { font-size: var(--text-base); line-height: var(--leading-tight); }
}

/* ---------- Three ways to archive: the homepage's Agent Review card ----------
   Since 2026-11-14 (Adam liked the share card, og/agent-review.jpg, and
   asked for it on the homepage card at the card's height, beside After
   Send's). The share card as markup: the line centered in the sans, three
   small white screens of one batch, each with its name and one line under
   it, and the call, archive then undo, ringed in the charcoal's sage.
   The screens are drawings (aria-hidden); their words are --text-2xs,
   the floor for product UI. The panel fills the row After Send's picture
   sets, and its content sits in the middle of it, so the row's height is
   still After Send's. Narrow, each way is a row, its screen beside its
   words; from 30rem the three stand across. The lab index wears the
   same markup since 2026-11-16. */
/* THE STAGE BAR IS BACK ON TOP, later on 2026-11-14 (Adam: the top section
   the same height as After Send's, the rest centered in the space below),
   so the two panels' bars sit level side by side; the headline and the
   three ways stand in the middle of what is left. */
.explore-still--three {
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr;
}
/* The stage bar centered over the centered headline at every width, since
   2026-11-17 (Adam: "make the step that's at the top centered
   horizontally"); from 2026-11-16 until then only on a phone. */
.explore-still--three .explore-still-stages { justify-content: center; }
.three-body {
  display: grid;
  align-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
}
.explore-still--three .explore-still-title {
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  text-align: center;
}
.three-ways {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.three-way {
  display: grid;
  justify-items: center;
  row-gap: var(--space-2xs);
  text-align: center;
}
.three-way .explore-still-name { font-size: var(--text-sm); white-space: nowrap; }
.three-way .explore-still-line { font-size: var(--text-2xs); line-height: var(--leading-ui); white-space: nowrap; }
/* Narrow, the three stack, each screen over its name and line, and a screen
   keeps three rows, so the panel stays inside the height it had. */
.three-way .three-screen { width: min(12rem, 100%); margin-bottom: var(--space-xs); }
.three-row:nth-of-type(n+5) { display: none; }
/* The confirm screen keeps a fourth, to hold its dialog under the header. */
.three-screen--dim .three-row:nth-of-type(5) { display: flex; }

/* The screen: a header with its button, four rows, and what the way puts
   over them. */
.three-screen {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  padding-bottom: var(--space-2xs);
  background: var(--color-white);
  color: var(--color-charcoal);
  border-radius: var(--space-xs);
  font-size: var(--text-2xs);
  line-height: var(--leading-tight);
}
.three-screen--dim { background: var(--color-muted-light); }
/* The screens' UI at the mockup's scale (Adam, 2026-11-14: "make the user
   interface element smaller ... too busy with everything so large"): drawn
   at the floor, --text-2xs, then zoomed as a picture would be scaled. It is
   aria-hidden, a drawing of a screen; the names under it carry the words. */
.three-screen { zoom: 0.75; }
.three-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  border-bottom: 1px solid var(--rule-hairline);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.three-btn {
  padding: 0 var(--space-xs);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.three-btn--dark {
  border-color: var(--color-charcoal);
  background: var(--color-charcoal);
  color: var(--ink-on-dark);
}
/* A row: its box, then a bar for the customer's name. */
.three-row {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  height: var(--space-md);
  margin: 0 var(--space-xs);
  border-bottom: 1px solid var(--rule-hairline);
}
.three-row::before {
  content: "";
  flex: none;
  width: var(--space-xs);
  height: var(--space-xs);
  border: 1px solid var(--rule-strong);
  border-radius: var(--space-2xs);
}
.three-row::after {
  content: "";
  flex: 1;
  max-width: 60%;
  height: var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-muted-light);
}
.three-screen--dim .three-row::after { background: var(--rule-strong); }
.three-row.is-picked::before { background: var(--color-charcoal); border-color: var(--color-charcoal); }
.three-row.is-active { justify-content: space-between; }
.three-row.is-active::after { background: var(--color-caution-light); }
.three-row.is-active > span {
  order: 1;
  margin-left: auto;
  font-weight: var(--weight-semibold);
  color: var(--color-caution-text);
}

/* Archive with undo: the toast over the last rows. */
.three-toast {
  position: absolute;
  left: var(--space-2xs);
  right: var(--space-2xs);
  bottom: var(--space-2xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-xs);
  background: var(--color-charcoal);
  color: var(--ink-on-dark);
  border-radius: var(--space-2xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
/* A pill, like every button on these screens (Adam, 2026-11-14: "all the
   button shapes ... the same border radius"). */
.three-undo {
  padding: 0 var(--space-xs);
  background: var(--color-accent-on-dark);
  color: var(--color-charcoal);
  border-radius: var(--radius-pill);
}
/* Confirm first: the dialog over the batch. */
.three-dialog {
  position: absolute;
  left: 50%;
  bottom: var(--space-xs);
  translate: -50% 0;
  display: grid;
  justify-items: start;
  gap: 1px;
  width: 72%;
  box-sizing: border-box;
  padding: var(--space-xs);
  background: var(--color-white);
  border-radius: var(--space-xs);
  /* An edge as well as the shadow (cards.mjs): white on the dimmed
     muted-light reads 1.27:1 by fill alone, and the shadow's ring does not
     survive the composite. --rule-card, COLOR.md, Lines. */
  box-shadow: inset 0 0 0 1px var(--rule-card), var(--shadow-media);
}
.three-dialog-title { font-weight: var(--weight-semibold); }
.three-dialog .three-btn { justify-self: end; margin-top: var(--space-2xs); }

/* From 22rem (the homepage at 1024, where each panel is 400px) to 30rem,
   each screen sits beside its name and line, which still hold one line.
   These screens are the one shape that is not 16:9 (2026-11-17, below):
   the row's height is After Send's, and a 16:9 screen wide enough to hold
   its dialog under its header stands the three about 60px taller than
   that. */
@container (min-width: 22rem) and (max-width: 29.99rem) {
  .three-way {
    grid-template-columns: 10rem minmax(0, 1fr);
    column-gap: var(--space-md);
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .three-way .three-screen { grid-row: span 2; width: 100%; margin-bottom: 0; }
  .three-way .explore-still-name { align-self: end; }
  .three-way .explore-still-line { align-self: start; }
}
@container (min-width: 30rem) {
  .three-body { padding: var(--space-xl) var(--space-lg); gap: var(--space-xl); }
  /* The headline 10px above its centered place, the screens where they were
     (Adam, 2026-11-14: "move the headline up ... about 10 pixels"). */
  .explore-still--three .explore-still-title {
    position: relative;
    top: calc(-1 * (var(--space-xs) + var(--space-2xs) / 2));
  }
  /* Three across, one row each for the screens, the names and the lines,
     so the three of each sit level. A column is about 154px at the card's
     width, and each name and line holds one line in it. */
  .three-ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: var(--space-sm);
    row-gap: 0;
  }
  .three-way {
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-items: start;
  }
  /* THE SCREENS ARE 16:9, since 2026-11-17 (Adam: "make the images here
     16 x 9 since there's room"), as they have been on a phone since the
     day before. Until then a screen was as tall as its five rows, so its
     shape went with its column: 2.13:1 in the lab index's panel, 1.59:1 in
     the homepage's. Now the shape is set and the five rows share the
     height under the header. */
  .three-way .three-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--space-sm);
    grid-template-rows: auto repeat(5, minmax(0, 1fr));
    align-content: stretch;
  }
  .three-row:nth-of-type(n+5) { display: flex; }
  .three-row { height: auto; }
}

/* On a phone (a viewport under 48rem, where the panel is under 30rem on
   the homepage and the lab index alike), each way is a row, since 2026-11-16
   (Adam: the screens 16:9 on the left, the words on the right, centered on
   the screen, and ample space between the three, which ran together). The
   screen is cut to 16:9 and keeps all five rows under the cut; the words
   may wrap in the column that is left. */
@media (max-width: 47.99rem) {
@container (max-width: 29.99rem) {
  /* The headline's second sentence on its own line (Adam, 2026-11-16), where
     it broke after "One" at 430. */
  .explore-still--three .explore-still-ask { display: block; }
  .three-ways { row-gap: var(--space-xl); }
  .three-way {
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: var(--space-md);
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .three-way .three-screen {
    grid-row: span 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
  }
  .three-row:nth-of-type(n+5) { display: flex; }
  .three-way .explore-still-name { align-self: end; white-space: normal; }
  .three-way .explore-still-line { align-self: start; white-space: normal; }
}
}

/* ---------- The handoff: After Send's point, as a still ----------
   The homepage's After Send card and the lab index's entry, since later on
   2026-11-06 (Adam: a simplified graphic that explains it, with words on
   it, as Agent Review's has). The same panel, the same words at the same
   sizes, so the two read as a pair. What differs is what they show: Agent
   Review's three tiles are options, so they stand apart in boxes; these are
   three facts that happen in order, so they sit on a rail with no boxes.
   A status is a shape as well as an ink, as it is in the prototype: a check
   on a filled disc for the fact that is known, a clock on a sage ring for
   the one the headline asks about, and an invoice on a gray ring for the
   one still open. The line is solid
   as far as anyone knows and dashed from there.

   Narrow, the rail runs down the left with the words beside each disc, as
   the ways are rows; from 30rem it runs across, its names and lines on a
   shared grid, so a name that takes two lines leaves its neighbors' lines
   level.

   BESIDE AGENT REVIEW, EVERYTHING SITS LEVEL, since later on 2026-11-06
   (Adam: the headlines, the icons, and the text below should line up across
   the two panels). So the rail keeps the ways' measures though it draws no
   box: the same gaps, the same padding above and below inside each step,
   and the same transparent hairline where a tile has its border. Change
   one and the other moves out of level. The lab index gives the panel a
   16:9 of its own and centers the pair in it (index.css).

   WHITE, SINCE 2026-11-07 (Adam: at a glance the two cards look almost the
   same; a light theme with a white background). The layout above is still
   the pair's, so everything stays level; only the palette left. Agent
   Review keeps the charcoal, and the inks here are the page's own on white:
   charcoal, muted gray, and accent-text, never the on-dark set. The edge is
   an inset ring rather than a border, so the panel measures what its
   neighbor measures, and it is --rule-card because white on tea-light is
   too close to stand as a surface by itself. The lab index keeps the
   --shadow-media every .writing-card wears. */
.case-thumb--still:has(> .explore-still--handoff) { background: var(--color-white); }
.explore-still--handoff {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  color: var(--color-charcoal);
}
.explore-still--handoff .explore-still-title { color: var(--color-charcoal); }
.explore-still--handoff .explore-still-ask {
  /* Its own line, since 2026-11-07 (Adam: move the Next sentence to its
     own line). A block, not a break: the fact and the ask are two lines
     at every width, and each still wraps at the measure. */
  display: block;
  color: var(--color-accent-text);
}
.explore-still--handoff .explore-still-name { color: var(--color-charcoal); }
.explore-still--handoff .explore-still-line { color: var(--color-muted-gray); }
/* On the homepage only: the lab index gives the panel a 16:9 of its own,
   and a height there would stop it growing past that on a phone. */
.case-thumb--still > .explore-still--handoff {
  height: 100%;
  box-shadow: inset 0 0 0 1px var(--rule-card);
}

.explore-still .handoff-record {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-ui);
  color: var(--color-muted-gray);
}
.handoff-paid {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: none;
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
}
.handoff-paid::before {
  content: "";
  flex: none;
  width: var(--space-xs);
  height: var(--space-xs);
  border-radius: 50%;
  background: var(--color-accent-text);
  box-shadow: 0 0 0 var(--space-2xs) var(--color-accent-ring);
}
@container (max-width: 29.99rem) {
  .handoff-supplier {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.handoff-rail {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  list-style: none;
}
.handoff-rail li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-block: 1px solid transparent;
}
.handoff-rail .explore-still-line { margin-top: var(--space-2xs); }
.handoff-step--done .explore-still-icon {
  background: var(--color-accent-text);
  color: var(--color-white);
}
.handoff-step--asked .explore-still-icon {
  background: var(--color-accent-ring);
  box-shadow: inset 0 0 0 1px var(--color-accent-text);
  color: var(--color-accent-text);
}
.handoff-step--open .explore-still-icon {
  background: none;
  box-shadow: inset 0 0 0 1px var(--color-muted-gray);
  color: var(--color-muted-gray);
}
/* The rail, from one disc to the next, stopping short of both. */
.handoff-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% + var(--space-3xl) / 2 + var(--space-2xs));
  height: calc(100% + var(--space-sm) - var(--space-3xl) - 2 * var(--space-2xs));
  left: calc(var(--space-3xl) / 2);
  border-left: 1px solid var(--color-accent-text);
}
.handoff-rail li.handoff-step--asked::after {
  border-left-style: dashed;
  border-left-color: var(--color-muted-gray);
}

@container (min-width: 30rem) {
  .explore-still .handoff-record { padding: var(--space-md) var(--space-xl); }
  .handoff-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    row-gap: var(--space-2xs);
    padding: 0 var(--space-xl) var(--space-xl);
  }
  .handoff-rail li {
    grid-row: span 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    padding: var(--space-md) var(--space-md) var(--space-md) 0;
  }
  .handoff-rail .explore-still-line { margin-top: 0; }
  .handoff-rail li:not(:last-child)::after {
    top: calc(var(--space-md) + var(--space-3xl) / 2);
    height: 0;
    left: calc(var(--space-3xl) + var(--space-xs));
    right: calc(var(--space-xs) - var(--space-sm));
    border-left: 0;
    border-top: 1px solid var(--color-accent-text);
  }
  .handoff-rail li.handoff-step--asked::after {
    border-top-style: dashed;
    border-top-color: var(--color-muted-gray);
  }
}

/* AFTER SEND IN AGENT REVIEW'S TYPE, on the homepage, since 2026-11-14
   (Adam: match the first card's font and center alignment, keep the light
   theme). The record stays on top, level with the stage bar; the headline
   and the rail stand in the middle of what is left, as .three-body does,
   the headline in the same semibold sans at the same size, centered. From
   30rem each step centers its disc over its name and line, and the rail
   runs from one disc's center to the next. The lab index has the same
   .handoff-body since 2026-11-16. */
.case-thumb--still > .explore-still--handoff {
  display: grid;
  grid-template-rows: auto 1fr;
  box-sizing: border-box;
}
.handoff-body {
  display: grid;
  align-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
}
.handoff-body .handoff-rail { padding: 0; }
.explore-still--handoff .handoff-body .explore-still-title {
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  text-align: center;
}
@container (min-width: 30rem) {
  .handoff-body { padding: var(--space-xl) var(--space-lg); gap: var(--space-xl); }
  .handoff-body .handoff-rail li {
    justify-items: center;
    padding-inline: 0;
    text-align: center;
  }
  .handoff-body .handoff-rail li:not(:last-child)::after {
    left: calc(50% + var(--space-3xl) / 2 + var(--space-xs));
    right: calc(var(--space-3xl) / 2 + var(--space-xs) - 50% - var(--space-sm));
  }
}

/* ---------- The lab row, two across ----------
   Since 2026-10-28 (Adam: add the new case study, de-emphasize the agents
   one, two columns). The row under the three accounts holds two pieces,
   The Shortlist and Agent Review, as a pair of tea-light panels
   at one size, so neither reads as the lead. style.css still draws the lab
   card as one panel the section's width with its picture beside the words
   from 1024 ("THE PICTURE BESIDE THE WORDS"); the rules below override that
   here, the one page that has the card, so the shared stylesheet and its
   site-wide cache-buster stay as they were.

   Each panel stacks at every width: the picture first, then the name, the
   question, the project and the link. The panels stretch to the taller of
   the two and the link sits at the foot of each, so the two links line up.
   Under 1024 the row is one column, as the three-grid is between 768 and
   1024: two panels at half a tablet's width would leave each picture too
   small to read. */
/* The picture sits --space-xl over the name, and nothing else: the panel's
   row gap from style.css (--space-2xl, for the picture beside the words)
   stacked on top of it put 56px under every picture (Adam, 2026-10-28). */
.case-card--lab { grid-template-rows: auto 1fr; row-gap: 0; }
.case-card--lab > .case-thumb { margin-bottom: var(--space-xl); }
/* The tags ride down with the link, so the two panels' tags line up as
   their links do, whichever description runs longer. At least --space-xl
   under the question, the step between the picture and the app: at
   --space-md the serif's last line sat on the tags once the description
   stopped standing between them. */
.case-grid--lab .case-card--lab .tag-row { margin-top: auto; padding-top: var(--space-md); }
.case-grid--lab .case-card--lab .tag-row + .product-actions { margin-top: 0; padding-top: var(--space-2xs); }
.case-card--lab .product-actions { margin-top: auto; padding-top: var(--space-lg); }
/* THE APP HEADS THE WORDS, since 2026-10-29 (Adam: "maybe the icon with the
   description should go on top"). style.css puts the icon and its
   description between the question and the tags ("THE ICON BESIDE THE
   DESCRIPTION"), where they read as a third paragraph wedged between the
   card's two serif lines and its tags and link. In this row they come first
   under the picture: the app, then its headline and question, then the tags
   and the link.
   The markup keeps the h3 first, so a screen reader meets the card's heading
   before the description; `order` lifts the row, as it lifts the picture,
   and nothing in it takes focus, so the tab order is unchanged.
   Under 640 the description runs four or five lines beside the icon, and a
   centred icon floated halfway down them, so there the icon tops the
   description's first line, as an app listing sets it; from 640 the
   description is two or three lines and the icon centres on them.
   The icon is half the lockup's here, --space-2xl (32) where --app-icon is
   64, since 2026-10-29 (Adam: "shrink these to about half"): at 64 the tile
   stood taller than the line or two beside it and outweighed the headline
   under it. 32 is the tile's own viewBox, so the drawing prints at one to
   one. */
.case-grid--lab .case-app { --app-icon: var(--space-2xl); order: -1; align-items: flex-start; margin: 0 0 var(--space-lg); }
/* TRIAL, 2026-10-29 (Adam: "the icon and text ... above the image"): the
   app row is the panel's own child now, lifted over the picture, so the
   panel reads app, picture, headline. A third row keeps the 1fr on the
   words, where the link rides down. */
.case-grid--lab .case-card--lab { grid-template-rows: auto auto 1fr; }
.case-grid--lab .case-card--lab > .case-app { order: -2; }
@media (min-width: 640px) {
  .case-grid--lab .case-app { align-items: center; }
}
@media (min-width: 1024px) {
  .case-grid--lab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card--lab {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: var(--space-2xl);
  }
  .case-card--lab .case-thumb { order: -1; }
  .case-card--lab > .case-thumb { margin-bottom: var(--space-xl); }
  /* ONE HEIGHT FOR BOTH PICTURES, since 2026-10-29 (Adam: "the card on the
     right is the same height as the card on the left"). Agent Review's still
     is markup and stands as tall as its words; The Shortlist's is a 16:9
     picture. Each panel takes its three rows (app, picture, words) from the
     row's own grid, so the two pictures share one row and the taller sets
     it; the Shortlist's picture fills that row, cropped at the sides, which
     are the painted room around its two phones. The row's gap goes to 0
     because the panels' rows inherit it, and the spacing inside each panel
     is already the margins above. */
  .case-grid--lab { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .case-grid--lab .case-card--lab { grid-row: span 3; grid-template-rows: subgrid; }
  .case-grid--lab .case-thumb--ringed { aspect-ratio: auto; }
}

/* A light picture on the light panel. Aisle's card is drawn on tea-light,
   the panel's own ground, so without an edge its tile would not be a tile.
   --shadow-media is the ring every drawing and still wears; it stays under
   reduced motion, where style.css takes the tilt's shadows off every thumb,
   because it is the picture's edge rather than a hover effect. */
.case-thumb--ringed { box-shadow: var(--shadow-media); }
@media (prefers-reduced-motion: reduce) {
  .case-card--lab .case-thumb--ringed { box-shadow: var(--shadow-media) !important; }
}

/* The lab row FOLLOWS the three accounts again since later on 2026-10-28
   (Adam: the shipped work first), so style.css's --space-block above it is
   the right space and nothing here overrides it. For the morning it led,
   the space went under the row instead. */

/* The three accounts line up across, since 2026-10-28 (Adam: make it line
   up clearly). Each card is its picture, title, description, tags and link,
   five rows on one shared grid from 1024, so a description that runs a line
   longer moves all three cards' tags and links together rather than one.
   The row has no gap of its own: the cards keep their margins, and the
   grid's --space-2xl stays between the columns. */
@media (min-width: 1024px) {
  #case-studies .case-grid--three { row-gap: 0; }
  #case-studies .case-grid--three > .case-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-content: start;
  }
  #case-studies .case-grid--three > .case-card > .case-go { align-self: start; }
}

/* THE WORK CARDS TAKE THE LAB CARDS' SPACING, since 2026-11-21 (Adam:
   "I want them both to be equal in both instances ... I like the way that
   they look on the green background"). The eyebrow to the headline and the
   headline to the description already matched at every width; the two gaps
   under them did not. The description sat 12px over the tags (8 on a phone)
   where the lab card's sits --space-xl, and the tags 24 over the link where
   the lab card's sit 32: the tag row's own --space-sm, then --space-lg.
   The same two tokens here. The card is block flow, so the tag row's margin
   collapses into the description's and --space-xl is the whole gap at every
   width. The four built products under these have no tags and keep theirs. */
.case-grid--four .case-card .tag-row { margin: var(--space-md) 0 0; }
.case-grid--four .case-card .tag-row + .case-go { margin-top: var(--space-md); }
/* NOTHING INSIDE A CARD IS LOOSER THAN 16, since later on 2026-11-21 (Adam:
   "too much vertical space in between these different elements ... it kind
   of makes it feel like they're all separate"). The two card kinds stay
   equal, which is what the block above is for; both come in together. The
   gaps grew down the card, 8, 24, then 32, and the 32 over the link was
   also the gap to the next card on a phone, so the link belonged to
   neither. Now: the kicker sits --space-xs over the title it labels (it
   was --space-md, as far from the title as from the picture), the tags
   --space-md under the words, and the link --space-md under the tags. The
   lab card's tag row keeps its own --space-sm bottom margin, so its link
   takes --space-2xs of padding to make the same 16. A built product has no
   tags: its link is an inline-flex, whose margin does not collapse into
   the description's, so it takes what is left of 16 at each width. The
   picture comes a step closer only where a kicker follows it. Between
   cards, style.css, ".case-grid--four". */
.case-grid--four .case-card .case-kicker,
.case-card--lab .case-kicker { margin-bottom: var(--space-xs); }
.case-grid--four .case-thumb:has(+ .case-kicker) { margin-bottom: var(--space-xs); }
.case-grid--four .case-card .case-desc + .case-go { margin-top: var(--space-xs); }
@media (min-width: 768px) {
  .case-grid--four .case-thumb:has(+ .case-kicker) { margin-bottom: var(--space-sm); }
  .case-grid--four .case-card .case-desc + .case-go { margin-top: var(--space-2xs); }
}

/* The scenario's label in sage, since 2026-10-29 (Adam: "put the word
   scenario in a sage color so it popped a little bit"). Sage on light
   clears 4.6:1 on every light ground (COLOR.md), and the serif here is
   20px and up. */
.case-lab-label { color: var(--color-accent-text); }

/* ---------- The drawn card ----------
   Since 2026-11-18 Agent Review's card is one drawing where the three ways
   to archive were (index.html, "THE CONDUCTOR"). The panel keeps its place
   and its corners and gives up its charcoal; the drawing is 3:2 and covers
   whatever height the row sets, so it stands level with After Send's. */
.case-thumb--still:has(> .explore-still--drawn),
.explore-still--drawn { background: none; }
.explore-still--drawn { height: 100%; overflow: hidden; }
.explore-still--drawn img {
  display: block;
  width: 100%; height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
