/* .industries — the industry cards on a native .reel the drift controller moves (spec §5.4,
   decision 10). No snap (Mitchell, 2026-11-09). */

/* primitive tried: reel; meets it (one row, native scroll the controller drives), laid out as a
   grid so the cards can share rows. 4.5 cards across the reel's content box (100% of a grid column
   is the reel's inner width), never under the min token; the 70em switch to the small token is
   ruled. */
.industries > .reel {
  --reel-item-width: max(var(--industry-card-min), 100% / 4.5);
  --reel-space: 0px;
  display: grid; /* the cards share these rows, so numbers, titles and links line up: .industry-card */
  grid-auto-flow: column;
  grid-auto-columns: var(--reel-item-width);
  grid-template-rows: 1fr repeat(5, auto);
  block-size: var(--industries-slider-h);
  overflow-anchor: none; /* a card moved to the end must not move the scroll position */
  scrollbar-width: none;
  padding-block: var(--border-1); /* room for a glowing card's 1px edge: a scroller clips above and below */
  box-shadow: var(--shadow-box) var(--shadow-color-strong); /* the strip lifts off the page (Mitchell, 2026-11-11); on the reel, since it clips its cards' own */
  anchor-name: --reel;
}

@media (max-width: 70em) {
  .industries > .reel {
    --reel-item-width: var(--industry-card-w-small);
  }
}

/* Past 1920 the cards fade at the sides with the backgrounds (gradients.css; Mitchell 2026-11-12):
   the side fade laid over the strip, anchored to it. Not a mask: a masked strip drew its cards
   differently at every size (up to 12 levels, measured) and a mask clips the strip shadow. */
.industries::after {
  content: "";
  position: absolute;
  position-anchor: --reel;
  inset: anchor(top) anchor(right) anchor(bottom) anchor(left);
  background: linear-gradient(to right, var(--gradient-side-fade));
  pointer-events: none;
}

/* primitive tried: stack; meets it. Its gaps: globals (section header). D3: one fluid pair to the
   cards instead of REF's step at 45em: 44 on a phone (Mitchell, 2026-10-23) to 119 (shown). No `>`:
   no nested part has a header, so a wrapper added later cannot break it (Mitchell 2026-11-12). */
.industries header {
  margin-block-end: var(--space-xl-4xl);
}

/* primitive tried: cluster (centred) of icon-buttons; meets it. REF: 47 / 32 under the strip. */
.industries > .cluster {
  --cluster-horizontal-alignment: center;
  margin-block-start: var(--space-lg-xl);
  font-size: var(--step-2); /* the typed arrows (REF 30 / 25px); the pause icon has its own size */
}
