/* industries b: "Cards". Three cards, each with an abstract picture of how money moves for that business; every card
   is open, in a grid (three columns, or two with the third centred under them) or a list. */
.industries-b { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.industries-b__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.industries-b__lead { max-width: 42ch; margin: 0 0 8px; }
[data-ind-title] > div { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------- static: a grid, everything shown ---------- */
.industries-b__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.industries-b__card {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
}
.industries-b__art {
  position: relative; overflow: hidden; flex: none; aspect-ratio: 16 / 10; /* the whole picture, whatever the card width */
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.industries-b__art svg { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; overflow: visible; }
.industries-b__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 22px 24px 24px; }
/* The number sits over the picture, so every card's text starts at the same height. */
.industries-b__top { position: absolute; z-index: 2; top: 16px; left: 20px; right: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.industries-b__num { font: 500 12px/1 var(--font); letter-spacing: .06em; color: var(--text-2); }
.industries-b__title { font: 700 var(--t-h2)/1.25 var(--font); letter-spacing: -.01em; }
.industries-b__more { display: grid; min-width: 0; }
.industries-b__inner { min-height: 0; }
.industries-b__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; font: 500 12.5px/1.3 var(--font); color: var(--text); }
.industries-b__flow span { padding: 6px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.industries-b__flow i { font-style: normal; color: var(--text-2); }
.industries-b__list { display: grid; gap: 8px; margin-top: 16px; }
.industries-b__list li { position: relative; padding-left: 22px; font: 400 var(--t-medium)/1.45 var(--font); color: var(--text-2); }
.industries-b__list li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }

/* ---------- the pictures ---------- */
.industries-b__tracks path {
  fill: none; stroke: color-mix(in srgb, var(--text) 22%, transparent); stroke-width: 1.5; stroke-dasharray: 3 6; }
.industries-b__tracks .industries-b__out { stroke: color-mix(in srgb, var(--ok) 70%, transparent); stroke-dasharray: none; stroke-width: 2; }
.industries-b__tracks .industries-b__back { stroke: color-mix(in srgb, var(--ok) 55%, transparent); }
.industries-b__srcs circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.industries-b__core { fill: var(--logo); }
.industries-b__mark { color: #fff; }
.industries-b__dest { fill: var(--surface); stroke: var(--ok); stroke-width: 1.5; }
.industries-b__dest-ic { fill: none; stroke: var(--ok-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.industries-b__gate { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.industries-b__gate-ic { fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.industries-b__beam { fill: var(--accent-2); }
/* 03: other online businesses, many kinds of business around one core */
.industries-b__spokes path { fill: none; stroke: color-mix(in srgb, var(--text) 20%, transparent); stroke-width: 1.5; stroke-dasharray: 3 6; }
.industries-b__tile > rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.3; }
.industries-b__tile-ic { fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.industries-b__tile--more > rect { fill: none; stroke-dasharray: 3 4; }
.industries-b__tile--more .industries-b__tile-ic { stroke: var(--text-2); stroke-width: 2; }
.industries-b__coin { fill: var(--accent-2); }
.industries-b__coin--out { fill: var(--ok); }
.industries-b__coin--stop { fill: var(--warn); }
.industries-b__packet { fill: var(--accent-2); }
.industries-b__packet--stop { fill: var(--warn); }

.industries-b__side { display: grid; gap: 22px; }

/* ---------- initial states (motion only) ---------- */
.motion .industries-b [data-ind-fade], .motion .industries-b [data-ind-title] { visibility: hidden; }
/* Focusable content starts transparent rather than invisible, so the keyboard can still reach it before it is revealed. */
.motion .industries-b__card { opacity: 0; }
.motion .industries-b--static [data-ind-fade], .motion .industries-b--static [data-ind-title] { visibility: visible; }
.motion .industries-b--static .industries-b__card { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 899.98px) {
  .industries-b__head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .industries-b__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries-b__card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .industries-b__row { grid-template-columns: 1fr; }
  .industries-b__card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .industries-b__body { padding: 20px 20px 22px; }
}
