/* The v2 industry pages (SITE-31): /industries/, /industries/<slug>/, /industries/books/<genre>/. System tokens and
   classes only (SITE-20); the kit's components (SITE-29) are styled by carousel.css. Text stays inset from the rails
   (.wrap's --inset); cards and media may sit flush (.flush). */

/* Section heads without the pixel numeral (founder, 2026-10-31 ~01:43: "I do not like the 01 02 03"): the title
   and lead take the first column of SITE-20's .sec-head grid. */
.ind-head { grid-template-columns: minmax(0, 1fr); }
.ind-head > * { grid-column: 1; }

/* ── Hero ── */
.ind-hero { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.ind-hero > .sky { z-index: -1; }
.ind-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.ind-hero__in--index { grid-template-columns: minmax(0, 1fr); }
.ind-hero__in--index .ind-hero__copy { max-width: 860px; }
.ind-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-58); }
/* One line whatever face is showing: the pixel face swapping in mustn't wrap the trail and push the hero down (SITE-25:
   load CLS 0.2 on slow 4G, children's books). The current page's name gives way first. */
.ind-crumbs { flex-wrap: nowrap; max-width: 100%; min-width: 0; white-space: nowrap; }
.ind-crumbs > [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ind-hero__copy { min-width: 0; }
/* 44px touch targets (M4) without changing the line: the padding is taken back by the margin. */
.ind-crumbs a { display: inline-block; padding: 16.5px 4px; margin: -16.5px -4px; color: var(--ink-64); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.ind-crumbs a:hover { color: var(--ink); }
.ind-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; color: var(--ink-80); }
.ind-hero__h { margin-top: 18px; text-wrap: balance; }
.ind-hero__sub { margin-top: 20px; max-width: 30em; }
.ind-hero__soon { margin-top: 16px; max-width: 40em; color: var(--ink-64); }
.ind-hero__soon b { color: var(--lilac-ink); font-weight: 500; }
.ind-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ind-hero__cta .btn { min-height: 48px; }

/* The tidbit: the phone swiping this industry's carousels, its people gathered round it as chips. */
.ind-hero__visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.ind-hero__visual .ck-phone { --ck-phone-w: var(--pw); z-index: 1; }
.ind-hero__mark .pix-avatar { width: 160px; height: 160px; }
.ind-hero__mark .pix-avatar svg { width: 96px; height: 96px; }
.ind-gather { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 2; }
.ind-gather > li { position: absolute; white-space: nowrap; }
.ind-gather__p { background: rgb(255 255 255 / .94); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* The composition: the phone sits to the right of the visual column; the industry's people cascade down its left
   side, overlapping only its bezel (never the slide's text, which is inset 9% from the screen's edge); two niche words
   float above and below. Nothing reaches the rails. --pw is the phone's width, --pr its distance from the right. */
.ind-hero__visual { --pw: 270px; --pr: 6%; justify-items: end; padding-right: var(--pr); }
/* Chips may run ~72px into the column gap (the hero copy stops short of it); a longer name ellipses. */
.ind-gather__p { right: calc(var(--pr) + var(--pw) - 14px); max-width: calc(100% - var(--pr) - var(--pw) + 86px); }
.ind-gather__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ind-gather__p--0 { top: 16%; }
.ind-gather__p--1 { top: 34%; margin-right: 26px; }
.ind-gather__p--2 { top: 52%; }
.ind-gather__p--3 { top: 70%; margin-right: 26px; }
.ind-gather__t { display: none; }
/* The two niche words sit clear of the phone (SITE-26 review 2: they were hidden behind it), above and below the people. */
.ind-gather__t--0, .ind-gather__t--1 { display: inline-flex; right: calc(var(--pr) + var(--pw) + 12px); max-width: calc(100% - var(--pr) - var(--pw) + 60px); }
.ind-gather__t--0 { top: 4%; }
.ind-gather__t--1 { top: 86%; }

/* ── 01 People ── */
/* A 12-column grid, so every count fills its rows: 3 → 4+4+4, 4 → 2 × (6+6), 5 → 4+4+4 then 6+6, 6 → 2 × (4+4+4). */
.ind-people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.ind-person { grid-column: span 4; }
.ind-people--4 .ind-person { grid-column: span 6; }
.ind-people--5 .ind-person:nth-child(n + 4) { grid-column: span 6; }
.ind-people--4 .ind-person:nth-child(n + 3), .ind-people--5 .ind-person:nth-child(n + 4), .ind-people--6 .ind-person:nth-child(n + 4) { border-top: 1px solid var(--hairline); }
.ind-person { display: grid; align-content: start; gap: 12px; padding: 24px var(--inset) 28px; box-shadow: -1px 0 0 var(--hairline); }
.ind-person .pix-avatar { width: 40px; height: 40px; }
.ind-person .pix-avatar svg { width: 24px; height: 24px; }
.ind-person__name { margin-top: 6px; font: 500 19px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.ind-person__line { font-size: 15px; line-height: 1.5; color: var(--ink-64); }

/* ── 02 Steps (SITE-20 .steps) ── */
.ind-steps { margin-top: 48px; }
.ind-step__label { color: var(--ink-58); margin-bottom: 8px; }

/* SITE-28's report stage, held to a width where its prompt card, report and photo read as one object. */
.ind-report { margin-top: 56px; }
.ind-report .rp-stage { max-width: 860px; margin-inline: auto; }

/* ── 03 Stages ── */
.ind-tabs { margin-top: 40px; }
.ind-tabs .tabs__list { max-width: 720px; }
.ind-phase__line { max-width: 40em; margin-top: 4px; }
.ind-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ind-format { display: grid; align-content: start; gap: 14px; padding: 18px 20px 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--paper); }
.ind-format__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ind-format__meta .chip { background: #fff; }
.ind-format__meta .pixel-ui { color: var(--ink-58); }
/* The hook, set as TikTok sets it: white boxes per line (the kit's .ck-tt), on the card's paper. */
.ind-format__hook { margin: 4px 0; font: 600 17px/1.5 "TikTok Sans", var(--font-body); letter-spacing: -.01em; color: #000; text-wrap: pretty; }
.ind-format__hook span { padding: .14em .42em; border-radius: .32em; background: #fff; box-shadow: 0 0 0 1px var(--hairline); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ind-format__why { color: var(--ink-64); }
.ind-format__tpl { color: var(--orange-ink); }

/* ── 04 Examples ── */
.ind-example { margin-right: 6px; color: var(--ink-58); }
.ind-examples { margin-top: 40px; }
.ind-disclaimer { max-width: 62em; margin-top: 24px; color: var(--ink-58); }
.ind-pending { padding: 40px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); color: var(--ink-58); }

/* ── Books: genres ── */
.ind-genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.ind-genres > li { box-shadow: -1px 0 0 var(--hairline), 0 1px 0 var(--hairline); }
.ind-genre { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; min-height: 88px; padding: 20px var(--inset); transition: background-color 200ms var(--ease-out); }
.ind-genre:hover, .ind-genre:focus-visible { background: var(--paper); }
.ind-genre .pix-avatar { grid-row: span 2; }
.ind-genre__name { font: 500 18px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.ind-genre__line { grid-column: 2; color: var(--ink-64); }
.ind-genre > svg { grid-row: 1 / span 2; grid-column: 3; width: 14px; height: 14px; color: var(--ink-32); transition: transform var(--dur) var(--ease-out), color 200ms; }
.ind-genre:hover > svg, .ind-genre:focus-visible > svg { transform: translateX(3px); color: var(--orange); }

/* ── Close: the waitlist card on coming-soon pages (the others use SITE-27's shared CTA section) ── */
.ind-cta { padding-top: 0; }
.ind-cta--wl .wrap { display: grid; justify-items: center; gap: 16px; }
.ind-cta--wl .wl { width: 100%; }
.ind-cta__alt { color: var(--ink-64); text-align: center; }
.ind-cta__alt a { display: inline-block; padding: 13px 4px; margin: -13px -4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Index: industry cards in a hairline grid ── */
/* 18 apps in threes (six full rows); the 7 coming next in fours. */
.ind-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.ind-cards--soon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ind-cards > li { box-shadow: -1px 0 0 var(--hairline), 0 1px 0 var(--hairline); }
.ind-card { display: grid; align-content: start; gap: 10px; height: 100%; padding: 22px var(--inset) 26px; transition: background-color 200ms var(--ease-out); }
.ind-card:hover, .ind-card:focus-visible { background: var(--paper); }
.ind-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.ind-card__name { margin-top: 8px; font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.ind-card__line { color: var(--ink-64); }
.ind-card__people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ind-card__people .chip { max-width: 100%; }

/* ── Tablet and phone: designed, not shrunk (founder rule 2026-10-31) ── */
@media (max-width: 1023px) {
  .ind-cards, .ind-cards--soon, .ind-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* .ind-person twice: outranks the per-count spans above (0,3,0), which would otherwise make implicit columns. */
  .ind-people .ind-person.ind-person { grid-column: auto; border-top: 0; }
  .ind-people .ind-person.ind-person:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .ind-hero__in { grid-template-columns: minmax(0, 1fr); }
  .ind-hero__visual { min-height: 560px; max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  .ind-cards, .ind-cards--soon, .ind-genres { grid-template-columns: minmax(0, 1fr); }
  .ind-people { grid-template-columns: minmax(0, 1fr); }
  .ind-people .ind-person.ind-person:nth-child(n + 2) { border-top: 1px solid var(--hairline); }
  .ind-hero { padding-top: 28px; }
  .ind-hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .ind-hero__visual { min-height: 0; padding: 64px 0 72px; }
  /* At phone widths there's no room beside the phone: it centres, and two chips sit above and below it. */
  .ind-hero__visual { --pw: 220px; --pr: 0px; justify-items: center; }
  .ind-gather__t, .ind-gather__t--0, .ind-gather__t--1, .ind-gather__p--2, .ind-gather__p--3 { display: none; }
  .ind-gather__p--0 { right: auto; left: 0; top: 12px; margin: 0; }
  .ind-gather__p--1 { right: 0; top: auto; bottom: 12px; margin: 0; }
  .ind-gather__p { max-width: 86%; }
  .ind-format__hook { font-size: 16px; }
}
/* Four steps two-across at a phone width make 13-line columns: stack them below 560px. */
@media (max-width: 560px) {
  .ind-steps { grid-template-columns: minmax(0, 1fr); }
  .ind-steps .step.step { border-left: 0; }
  .ind-steps .step + .step { border-top: 1px solid var(--hairline); }
}
@media (prefers-reduced-motion: reduce) { .ind-genre > svg { transition: none; } }
