/* .industry-card — one card of the strip: photo, shade, then number, rule, title, text, Learn more.
   One grid holds all three layers: the photo and the shade fill every row, the text takes the rows
   under the free one, and later items paint on top (source order), so nothing is positioned. */

/* primitive tried: stack + the position-absolute utility (a fixed start line: the longest text set
   how low every card could go, and a longer translation would overflow), then the content on the
   foot (turned down: "I want things aligned", Mitchell 2026-11-11). Kept: each card takes the
   reel's rows (subgrid), so every row is as tall as its tallest card in any language, and the
   free room (the 1fr row) stays above, over the photo. */
.industry-card {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  outline: var(--border-1) solid transparent; /* the edge waits unseen, so it fades in with the glow (glow.css) */
}

.industry-card > :is(img, .shade) {
  grid-area: 1 / 1 / -1;
}

.industry-card > .stack {
  --stack-space: var(--space-s); /* REF 17 between rule, title, text */
  display: grid;
  grid-area: 2 / 1 / -1;
  grid-template-rows: subgrid;
  padding: 0 var(--space-md-lg) var(--space-md-lg);
}

.industry-card .rule {
  --stack-space-before: var(--space-2xs); /* REF 9 under the number */
  inline-size: var(--space-xl); /* REF 47 / 44: shorter than a section rule */
}

.industry-card .more {
  --stack-space-before: var(--space-xs); /* REF 26: the text sits lower on the shade (Mitchell, 2026-11-11) */
}

/* The card number: the mono face (REF), two steps up (Mitchell, 2026-11-11: "really small", then
   "still way too small" at --step-0; REF 12.75px). */
.industry-card small {
  font-family: var(--font-mono);
  font-size: var(--step-2);
}

/* The shade over the photo, so the text reads (Mitchell, 2026-11-11: "hard to read"): the shared
   navy edge fade, short at the top (REF 30%), the full card from the foot (REF). */
.industry-card .shade {
  background:
    linear-gradient(to bottom, var(--gradient-edge-fade)) top / 100% 30% no-repeat,
    linear-gradient(to top, var(--gradient-edge-fade));
}

/* The glow (Mitchell, 2026-11-11: "no shadow effect yet", then "without moving them vertically"):
   one rule for keyboard focus and the word "lit" the drift controller sets under a fine pointer
   (audit A14). The look is the shared .glow (glow.css, in the HTML); here only: above its
   neighbours so the glow is not covered (a grid item takes z-index unpositioned). */
.industry-card:is(:focus-within, [data-state~="lit"]) {
  z-index: 1;
}
