/* =============================================================================
   Blackrock Drill & Blast · css/sections/intro.css
   Intro A (statement reveal, dark band) + Intro B (pattern line-draw, bone band) + the shared .draw SVG style
   (the line drawings in intro B and process B). Contextual tokens only: --fg --fg-2 --fg-3 --bg --bg-2 --rule --accent.
   Nothing is hidden by CSS: JS (js/sections/intro.js) hides and reveals, so the section is complete without it.
   ============================================================================= */

/* ---------- shared: the statement + the three facts ---------- */
.intro__statement {
  font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: -.012em;
  font-size: calc(var(--t-h3) * 1.3); line-height: 1.12; max-width: 28ch;
  color: var(--fg-2); text-wrap: pretty;
}
.intro__lead { color: var(--fg); }
.intro__statement .line-mask { display: block; overflow: clip; padding-block: .08em; margin-block: -.08em; }
.intro__statement .line { will-change: transform; }

.intro__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro__fact { display: grid; gap: 12px; align-content: start; padding: 24px 24px 6px 0; border-top: 1px solid var(--rule); }
.intro__fact + .intro__fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.intro__fig { display: flex; align-items: baseline; gap: 6px; }
.intro__fact .num { font-size: 40px; color: var(--fg); }
.intro__unit { font: 500 14px/1 var(--mono); letter-spacing: .04em; color: var(--fg-2); }
.intro__label { color: var(--fg-3); }
/* text facts (no figures yet): a display word in place of the number */
.intro__word { font: 700 clamp(24px, 2.1vw, 30px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--fg); }

/* ---------- A · statement reveal ---------- */
.intro--a .intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(48px, 6vw, 88px); }
.intro--a .intro__eyebrow { grid-column: 1 / 4; padding-top: .7em; }
.intro--a .intro__statement { grid-column: 4 / 13; }
.intro--a .intro__facts { grid-column: 4 / 13; }

/* ---------- B · pattern line-draw ---------- */
.intro-b__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px); align-items: start; }
.intro-b__copy { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.intro--b .intro__facts { margin-top: 8px; }
.intro--b .intro__fact .num { font-size: 36px; }
.intro-b__drawing { position: relative; color: var(--fg); }
/* desktop: the statement column is taller than the drawing, so the drawing rides along (native sticky) */
@media (min-width: 901px) { .intro--b .intro-b__drawing { position: sticky; top: calc(var(--nav-h) + 40px); } }

/* ---------- the line drawings (intro B, process B cards) ---------- */
.draw { --sw: 1.25; display: block; width: 100%; height: auto; overflow: visible; color: inherit; }
.draw line, .draw path, .draw circle, .draw rect { fill: none; stroke: currentColor; stroke-width: var(--sw); stroke-linecap: butt; stroke-linejoin: miter; }
.draw .thin { stroke-width: calc(var(--sw) * .8); }
.draw .gridline { stroke-width: calc(var(--sw) * .8); opacity: .32; }
.draw .dash { stroke-dasharray: 4 4; }
.draw .dashdot { stroke-dasharray: 14 4 2 4; }
.draw .dash-guide { stroke-dasharray: 2 4; opacity: .5; }
.draw .ah, .draw .dot { fill: currentColor; stroke: none; }
.draw .charge { fill: currentColor; fill-opacity: .14; stroke: none; }
.draw .tagbox { fill: var(--halo, var(--bg)); stroke-width: calc(var(--sw) * .8); }
.draw .fire { fill: var(--accent); stroke: none; }
.draw .pulse { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; }
.draw text { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; fill: currentColor; font-variant-numeric: tabular-nums;
  paint-order: stroke fill; stroke: var(--halo, var(--bg)); stroke-width: 7px; stroke-linejoin: round; }  /* halo knocks lines out under labels */
.draw .brk { opacity: .5; }
.draw .sm { font-size: 11px; }
.draw .muted { fill: var(--fg-3); }
.draw .title { letter-spacing: .16em; }
.draw .delay { fill: var(--accent); font-size: 14px; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .intro--a .intro__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .intro--a .intro__eyebrow, .intro--a .intro__statement, .intro--a .intro__facts { grid-column: 1 / -1; }
  .intro--a .intro__eyebrow { padding-top: 0; }
  .intro-b__grid { grid-template-columns: minmax(0, 1fr); }
  .intro--b .intro__statement { max-width: 28ch; }
}

/* ---------- phones: facts become rows, the drawing crops to plan + section (js sets the phone viewBox) ---------- */
@media (max-width: 750px) {
  .intro__statement { line-height: 1.15; }
  .intro__facts { grid-template-columns: minmax(0, 1fr); }
  .intro__fact, .intro__fact + .intro__fact { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; }
  .intro__fact:last-child { border-bottom: 1px solid var(--rule); }
  .intro__fact .num, .intro--b .intro__fact .num { font-size: 32px; }
  .intro__word { font-size: 26px; }
  .intro__label { text-align: right; }
  .intro-b__drawing { margin-inline: calc(var(--gutter) * -.5); }
  .draw--bench { --sw: 1.5; }
  .draw--bench text { font-size: 14.5px; }
  .draw--bench .sm { font-size: 12.5px; }
  .draw--bench .delay { font-size: 15.5px; }
}

/* round 13 (2026-11-03): a 4th fact (certified blaster) · the facts sit 2 × 2 on desktop, stacked on phones */
@media (min-width: 751px) {
  .intro--b .intro__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro--b .intro__fact:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 750px) { .intro--b .intro__fact { padding-left: 0; border-left: 0; } }
