/* =============================================================================
   Blackrock Drill & Blast · css/sections/process.css
   Process A (sticky 3 steps, dark band) + Process B (stacking cards + drawn pattern, bone band).
   Contextual tokens only. Native position: sticky, no pinning. JS (js/sections/process.js) only adds state classes,
   the image crossfade and the drawings; without it every step and card reads complete.
   ============================================================================= */

.process__head h2 { max-width: 15ch; }

/* ---------- A · sticky 3 steps ---------- */
.process-a__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(48px, 7vw, 128px); }
.process-a__steps { display: grid; }
.process-a__step { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-height: 70vh; padding-bottom: 48px; transition: opacity .5s ease; }
.process-a__num { font-size: 96px; color: var(--accent); }
.process-a__title { max-width: 18ch; margin-top: 4px; }
.process-a__text { max-width: 44ch; color: var(--fg-2); font-size: clamp(17px, 1.3vw, 19px); }
.process--a.is-live .process-a__step:not(.is-active) { opacity: .26; }
.process-a__media { display: none; margin: 0; }

.process-a__aside { position: relative; }
.process--a .process-a__sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.process-a__frame { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 56px); }
.process-a__frame img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.6s cubic-bezier(.16, .84, .24, 1); }
.process-a__frame img.is-active { opacity: 1; transform: none; }
.process-a__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15, 17, 19, .45), transparent 22%, transparent 78%, rgba(15, 17, 19, .35)); }
.process-a__tag { position: absolute; z-index: 2; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--bone); pointer-events: none; }
.process-a__tag > span, .process-a__chip { padding: 8px 11px; background: rgba(15, 17, 19, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.process-a__count { color: var(--amber); }
.process-a__progress { position: absolute; top: 0; bottom: 0; left: -28px; width: 1px; background: var(--rule); }
.process-a__bar { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(.3334); transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
.process-a__progress i { position: absolute; left: -3px; width: 7px; height: 1px; background: var(--fg-3); }
.process-a__progress i:nth-of-type(1) { top: 33.33%; }
.process-a__progress i:nth-of-type(2) { top: 66.66%; }
.process-a__chip { position: absolute; z-index: 2; top: 14px; left: 14px; color: var(--bone); font-size: 11px; }
/* photo-placeholder tags (stand-in plates): bottom-left, lined up with the chip / the sticky tag */
.process-a__media .ph-tag { left: 14px; bottom: 14px; }
.process-a__frame .ph-tag { left: 22px; bottom: 22px; }

@media (max-width: 900px) {
  .process-a__stage { grid-template-columns: minmax(0, 1fr); }
  .process-a__aside { display: none; }
  .process-a__step { min-height: 0; gap: 14px; padding-bottom: 64px; }
  .process-a__step:last-child { padding-bottom: 0; }
  .process-a__media { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 14px; }
  .process-a__num { font-size: 64px; }
}

/* ---------- B · stacking cards + drawn pattern ---------- */
.process-b__stack { display: grid; gap: clamp(28px, 7vh, 72px); padding-bottom: 6vh; }
.process-b__card {
  --shade: 0;
  position: sticky; top: calc(var(--nav-h) + 24px + var(--i, 0) * 16px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 72px);
  min-height: min(470px, calc(100svh - var(--nav-h) - 96px)); padding: clamp(24px, 3vw, 44px);
  transform-origin: 50% 0;
}
.process-b__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: color-mix(in srgb, var(--fg) 26%, transparent); }
.process-b__card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ink-1); opacity: calc(var(--shade) * .14); }
.process-b__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.process-b__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: var(--fg-3); }
.process-b__meta span:last-child { padding-top: 10px; text-align: right; }
.process-b__num { font-size: clamp(64px, 6.6vw, 96px); color: var(--accent); }
.process-b__title { max-width: 16ch; }
.process-b__text { margin-top: 18px; max-width: 46ch; color: var(--fg-2); }
.process-b__link { margin-top: 26px; }
.process-b__art { position: relative; display: grid; place-items: center; padding: clamp(18px, 2.4vw, 36px); color: var(--fg); background: var(--bg); --halo: var(--bg); }
.process-b__art.brackets::after { --b: color-mix(in srgb, var(--fg) 45%, transparent); --l: 14px; }
.process-b__art .draw { max-width: 520px; }

@media (max-width: 750px) {
  .process-b__stack { gap: 16px; padding-bottom: 0; }
  .process-b__card { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; }
  .process-b__copy { display: contents; }
  .process-b__art { order: 1; }
  .process-b__body { order: 2; }
  .process-b__num { font-size: 56px; }
  .process-b__meta span:last-child { padding-top: 6px; max-width: 18ch; }
}

/* ---------- the line drawings (kept in sync with css/sections/intro.css) ---------- */
.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; }
.draw--card .wave { stroke-width: calc(var(--sw) * 1.1); stroke-linejoin: round; }
@media (max-width: 750px) { .draw--card { --sw: 1.4; } .draw--card text { font-size: 15px; } }
