/*
  Hero flow rail, stack matrix, board storyboard and the release
  control plane UI replica. Everything here is additive: it does not override base.css
  or components.css. Color tokens belong to base.css and are not
  redeclared in this file.
*/

/* ============================================================
   HERO: pipeline rail
   ============================================================ */
.hero-flow-wrap { grid-area: flow; margin-top: 0; }
.hero-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  /* with no gap between columns, a sublabel wider than its cell sticks
     to the neighbor (measured 10px apart at 1440, 0px at 390) */
  column-gap: 10px;
  padding-top: 26px;
}.hf-line {
  position: absolute;
  left: 0; right: 0; top: 33px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 5%, var(--accent-bright) 95%, transparent);
}
.hf-packet {
  position: absolute;
  top: 28px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 16px var(--accent-line);
  /* one lap then still: the animation only exists while the rail has the .run class,
     so removing that class really does reset the package trip */
  opacity: 0;
  animation: none;
}
.hero-flow.run .hf-packet { animation: hf-travel 7s linear 1 both; }
.hf-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* each stage is colored by the tool that does it, not as decoration */
  --node: var(--ink-dim);
}
.hf-node[data-hf="0"] { --node: var(--tool-ink); }      /* commit - GitHub */
.hf-node[data-hf="1"] { --node: var(--pass-brand); }    /* build  - Jenkins */
.hf-node[data-hf="2"] { --node: var(--warn); }          /* scan   - Trivy/Sonar */
.hf-node[data-hf="3"] { --node: var(--danger-brand); }  /* gate   - OpenShift */
.hf-node[data-hf="4"] { --node: var(--info-brand); }    /* SIT    - Docker */
.hf-node[data-hf="5"] { --node: var(--info); }          /* UAT    - Jira */
.hf-node[data-hf="6"] { --node: var(--accent); }        /* PROD   - GitLab */
.hf-node i {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--node);
  transition: all 0.35s var(--ease);
  z-index: 1;
}
.hf-node span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.35s var(--ease);
}
.hf-node.lit i {
  background: var(--node);
  border-color: var(--node);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node) 16%, transparent);
}
.hf-node.lit span { color: var(--ink); }
.hf-node.hf-prod.lit i { transform: scale(1.25); }

/* two stages can stop a release: told apart by shape, not only by color.
   circle = normal stage, diamond = scan, square = gate. */
.hf-node.hf-scan i {
  transform: rotate(45deg);
  border-radius: 2px;
}
.hf-node.hf-gate i { border-radius: 0; }
.hf-legend {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.hf-legend .lm-scan { color: var(--warn); }
.hf-legend .lm-gate { color: var(--danger); }
@media (max-width: 620px) {
  .hf-line, .hf-packet { display: none; }
  /* The connecting line is gone here, and without it these seven shapes become
     a pile of boxes instead of one sequence. The numbers restore the meaning:
     these are 1 to 7, not 7 standalone things. The layout itself
     is set in the .hero-flow block further down this file. */
  .hero-flow { counter-reset: hf; }
  .hf-node { counter-increment: hf; }
  .hf-node > span::before {
    content: counter(hf);
    color: var(--ink-faint);
    font-weight: 400;
    margin-right: 5px;
  }
}

/* ============================================================
   STACKS: conveyor and artifact matrix
   ============================================================ */
.conveyor { position: relative; }
.cv-rail {
  position: relative;
  height: 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cv-rail::after {
  content: "artifact conveyor";
  position: absolute;
  right: 0; bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv-packet {
  position: absolute;
  bottom: -4px; left: 0;
  width: 22px; height: 7px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-line);
  animation: cv-run 6s linear infinite;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack-card {
  background: var(--bg-2);
  padding: clamp(18px, 2.2vw, 26px) clamp(14px, 1.8vw, 20px) clamp(20px, 2.4vw, 28px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease);
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.stack-card.hit { background: var(--bg-3); }
.stack-card.hit::before { transform: scaleY(1); }
.sc-idx { font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-faint); }
.stack-card h3 { font-size: 15.5px; margin-top: 10px; letter-spacing: -0.01em; }
.sc-art {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 3px 8px;
}
.stack-card p { margin-top: 12px; font-size: 12.8px; line-height: 1.62; color: var(--ink-dim); }
.sc-tags { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 5px; }
.sc-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
}
@media (max-width: 1080px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-rail { display: none; } }
@media (max-width: 620px) { .stack-grid { grid-template-columns: minmax(0, 1fr); } }

.stack-facts, .rp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(24px, 3.4vw, 38px);
}
.rp-facts { grid-template-columns: repeat(5, 1fr); }
.sf {
  background: var(--bg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf b {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.sf span { font-size: 12.2px; color: var(--ink-dim); line-height: 1.5; }
@media (max-width: 860px) { .stack-facts, .rp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* five facts do not divide evenly in a two-column grid: the sixth cell is not an element, it is a hole
   where the grid line background itself shows through. The last cell stretches
   full width so the count stays even, without inventing a sixth number. */
@media (max-width: 860px) { .rp-facts .sf:last-child { grid-column: 1 / -1; } }

.stack-note {
  margin-top: 22px;
  font-size: 13.4px;
  color: var(--ink-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-2);
}
.stack-note .mono { color: var(--accent); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 6px; }

/* ============================================================
   BOARD: interactive storyboard
   ============================================================ */
.bd {
  margin-top: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.bd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);

  flex-wrap: wrap;
  row-gap: 8px;
}
.bd-bar-l, .bd-bar-r { display: flex; align-items: center; gap: 12px; }
/* The left holds live + counter + buttons + the "counter-example" flag: at 360px
   those four do not fit one row and the flag is cut 19px outside the
   viewport. The right side stays one row: only three small buttons. */
.bd-bar-l { flex-wrap: wrap; row-gap: 6px; }
.bd-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.bd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }

/* "break the gate" control: small button, big result */
.bd-break {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.bd-break:hover { color: var(--danger); border-color: var(--danger); }
.bd-break[aria-pressed="true"] { background: var(--danger-dim); border-color: var(--danger); color: var(--danger); }
.bd-break-flag {
  display: none;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
}
.bd.breaking .bd-break-flag { display: inline; }
.bd.breaking .bd-live i { animation: none; background: var(--danger); }
@keyframes act-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bd.breaking .act-in { animation: act-in 0.45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .bd.breaking .act-in { animation: none; } }

/* without JS this button does nothing, so it is not shown */
html:not([data-js]) .bd-break { display: none; }
.bd-count { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }
.bd-count b { color: var(--ink); }
.bd-btn {
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}
.bd-btn:hover { border-color: var(--accent); color: var(--accent); }
.bd-play { width: 52px; min-width: 52px; }
.bd-play .ic-play { display: none; }
.bd-play.paused .ic-play { display: inline; }
.bd-play.paused .ic-pause { display: none; }

.bd-dots { display: flex; gap: 6px; padding: 6px 16px 0; flex-wrap: wrap; }
.bd-dot {
  flex: 1;
  min-width: 44px;
  min-height: 44px;
  /* the button is 44px tall (WCAG AA compliant touch target); the visible 3px bar is
     drawn by ::after so the look does not change at all */
  position: relative;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.3s var(--ease);
}
.bd-dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease);
}
.bd-dot.done::after { background: var(--accent-line); }
.bd-dot.on::after { background: var(--accent); }

.bd-grid {
  display: grid;
  /* the 5-column board needs more room than the ticket panel: at 1.05/0.95 each
     column is only 97px and the "Dev Planning" badge leaves the card by up to 36px */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
@media (max-width: 900px) { .bd-grid { grid-template-columns: minmax(0, 1fr); } }

.bd-board {
  background: var(--bg-2);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.bd-col { min-width: 0; }
.bd-col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  transition: all 0.3s var(--ease);
}
.bd-col h3 .cc { color: var(--ink-faint); }
.bd-col.active h4 { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.bd-colbody { min-height: 10px; margin-top: 8px; }

.bd-card {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-3);
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.45;
  grid-column: 1;
  transition: box-shadow 0.3s var(--ease);
}
.bd-card.moved { animation: card-pop 0.5s var(--ease); }
.bd-card.ghost { border-left-color: var(--line-strong); }
.bd-card.ghost .bc-title { color: var(--ink-dim); font-weight: 500; }
.bc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; }
.bc-iid { font-size: 9.5px; color: var(--ink-faint); }
.bc-phase {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 1px 5px;
  white-space: nowrap;
}
.bc-title { margin-top: 6px; color: var(--ink); font-weight: 600; font-size: 11px; }
.bc-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.bc-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 4px;
}
.bc-lbl.sev { color: var(--warn); border-color: var(--warn); }
.bc-approve { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.ap-chip {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--ink-faint);
}
.ap-chip.ok { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-dim); }
.bc-bot { margin-top: 8px; display: none; }
.bc-bot.on { display: block; }
.bc-bot span {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
}
.bc-bot code {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  background: var(--bg);
  border: 1px dashed var(--accent-line);
  border-radius: 2px;
  padding: 3px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-ticket { background: var(--bg-2); padding: 16px; display: flex; flex-direction: column; min-height: 320px; }
.bt-head { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bt-ic { color: var(--accent); font-size: 15px; line-height: 1.3; }
.bt-title { font-size: 12.5px; font-weight: 600; }
.bt-sub { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.bt-feed { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; max-height: 340px; padding-right: 4px; }
/* the card may shrink to as small as its column; without this the table inside it
   forces a 384px feed into 644px and creates horizontal scroll in the panel */
.bt-feed > .act { min-width: 0; }
.bt-feed::-webkit-scrollbar { width: 5px; }
.bt-feed::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.act {
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg);
  padding: 9px 11px;
  animation: act-in 0.4s var(--ease);
}
.act.bot { border-left-color: var(--accent); }
.act.human { border-left-color: var(--info); }
.act.gate { border-left-color: var(--warn); }
.act-who {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.act.bot .act-who { color: var(--accent); }
.act.human .act-who { color: var(--info); }
.act.gate .act-who { color: var(--warn); }
.act-title { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.act-body { margin-top: 5px; font-size: 12px; color: var(--ink-dim); line-height: 1.55; }
.act-body code {
  font-family: var(--font-mono);
  font-size: 10.4px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 0 4px;
}
.mini-tbl { margin-top: 7px; width: 100%; table-layout: fixed; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.mini-tbl th, .mini-tbl td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); color: var(--ink-dim); overflow-wrap: anywhere; }
.mini-tbl th { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 8.5px; }
.mini-tbl td.ok { color: var(--accent); }
.mini-tbl td.bad { color: var(--danger); }

.bd-narr {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 13.4px;
  color: var(--ink-dim);
  line-height: 1.65;
  min-height: 74px;
}
.bd-narr b { color: var(--ink); font-weight: 600; }
.bd-narr::before {
  content: "step";
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 7px;
}

/* gate & incident panel */
.board-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(26px, 3.6vw, 40px);
}
@media (max-width: 860px) { .board-panels { grid-template-columns: minmax(0, 1fr); } }
.bpanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(22px, 2.8vw, 30px);
}
.bpanel-wide {
  grid-column: 1 / -1;
}
.flow-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11.5px;
}
.flow-pill {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 2px;
  color: var(--ink);
}
.flow-sep {
  color: var(--accent);
  font-weight: 700;
}
.bpanel h3 { font-size: 16.5px; letter-spacing: -0.01em; }
.bpanel h3 .n { font-family: var(--font-mono); color: var(--accent); font-size: 12px; margin-right: 8px; }
.bp-lead { margin-top: 14px; font-size: 13.4px; color: var(--ink-dim); line-height: 1.62; }
.chain { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chain-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent-strong);
  border-radius: 2px;
  padding: 4px 9px;
}
.chain i { color: var(--ink-faint); font-style: normal; font-size: 11px; }
.blist { margin-top: 18px; display: grid; gap: 10px; }
.blist li { position: relative; padding-left: 20px; font-size: 13.2px; color: var(--ink-dim); line-height: 1.6; }
.blist li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--accent); }
.layers { margin-top: 18px; display: grid; gap: 8px; }
.layer {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  padding: 9px 12px;
}
.layer b { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; flex: none; }
.layer span { font-size: 12.6px; color: var(--ink-dim); }
.cool { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.cool-chip {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  padding: 4px 8px;
  background: var(--bg);
}

/* chatops */
.chatops {
  margin-top: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.co-head { padding: clamp(20px, 2.6vw, 28px); border-bottom: 1px solid var(--line); }
.co-head h3 { font-size: 17px; }
.co-head p { margin-top: 8px; font-size: 13.2px; color: var(--ink-dim); }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px clamp(20px, 2.6vw, 28px); }
.co-chip {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 7px 12px;
  background: var(--bg);
  transition: all 0.2s var(--ease);
}
.co-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.co-out {
  display: flex;
  gap: 12px;
  padding: 18px clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  min-height: 96px;
}
.co-prompt { color: var(--accent); font-size: 12.5px; }
.co-text { font-family: var(--font-mono); font-size: 12.2px; line-height: 1.75; color: var(--ink-dim); white-space: pre-wrap; }
.co-text b { color: var(--ink); font-weight: 600; }
.co-text .ok { color: var(--accent); }
.co-text .no { color: var(--danger); }

/* ============================================================
   PLATFORM: release control plane UI replica
   ============================================================ */
.rp {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.rp-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.rp-dots { display: flex; gap: 6px; }
.rp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.rp-dots i:first-child { background: var(--accent); }
.rp-url {
  flex: 1;
  font-size: 11px;
  color: var(--ink-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-url em { font-style: normal; color: var(--ink-faint); }
.rp-sse {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  transition: all 0.3s var(--ease);
}
.rp-sse i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); transition: background 0.3s var(--ease); }
/* selected text on the tint: accent #C2410C measured 4.32:1 on accent-dim + bg-3,
   so it uses --accent-strong (5.49:1), the token meant for exactly this case */
.rp-sse.on { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-sse.on i { background: var(--accent); animation: pulse 1.6s var(--ease) infinite; }

.rp-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 520px; }
@media (max-width: 760px) { .rp-body { grid-template-columns: minmax(0, 1fr); } .rp-side { flex-direction: row; overflow-x: auto; } .rp-side-foot { display: none; } }

.rp-side {
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rp-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink);
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  white-space: nowrap;
}
.rp-brand .rp-mark { color: var(--accent); font-size: 14px; }
.rp-brand span span { color: var(--accent); }
.rp-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .rp-nav { flex-direction: row; } }
.rp-ni {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-align: left;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.rp-ni i { font-style: normal; color: var(--ink-faint); font-size: 11px; width: 13px; text-align: center; }
.rp-ni.on { color: var(--accent-strong); background: var(--accent-dim); border-color: var(--accent-line); }
.rp-ni.on i { color: var(--accent-strong); }
.rp-ni[hidden] { display: none; }
.rp-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.rp-role { display: grid; gap: 5px; }
.rp-role label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.rp-role select, .rp-proj {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 10px;
  min-height: 44px;
  width: 100%;
}
.rp-user { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-dim); }
.rp-user .av {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  background: var(--accent-dim);
  border-radius: 2px;
  font-size: 9px;
}

.rp-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.rp-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.rp-proj { width: auto; min-width: 130px; }
.rp-crumb { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.rp-clock { margin-left: auto; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.rp-view { padding: 16px; overflow-x: auto; flex: 1; }

/* components inside the replica */
.rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rp-h h4 { font-size: 14.5px; letter-spacing: -0.01em; }
.rp-h .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.rp-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-tab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 11px;
  background: var(--bg);
  transition: all 0.2s var(--ease);
}
.rp-tab:hover { border-color: var(--accent-line); color: var(--accent); }
.rp-tab.on { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent-strong); }

.rp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (max-width: 620px) { .rp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-metric { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 12px 13px; }
.rp-metric .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.rp-metric .n { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-top: 7px; line-height: 1; }
.rp-metric .n.acc { color: var(--accent); }
.rp-metric .n.warn { color: var(--warn); }
.rp-metric .d { font-size: 10.5px; color: var(--ink-faint); margin-top: 6px; }

.rp-panel { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); overflow: hidden; margin-bottom: 14px; }
.rp-panel > h5 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.rp-panel > h5 .r { color: var(--accent); }

.rp-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rp-tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rp-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: middle; }
.rp-tbl tr:last-child td { border-bottom: none; }
.rp-tbl td.svc { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rp-tbl td.mono, .rp-tbl .mono { font-family: var(--font-mono); font-size: 10.5px; }

.rp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 2px 6px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.rp-badge.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-badge.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-dim); }
.rp-badge.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.rp-badge.info { color: var(--info); border-color: var(--info); background: var(--info-dim); }
.rp-badge.type { color: var(--ink-faint); border-style: dashed; }

.rp-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 6px 12px;
  color: var(--ink-dim);
  background: var(--bg);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.rp-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rp-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.rp-btn.danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.rp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rp-bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; padding: 12px; }
.rp-bars b {
  flex: 1;
  background: var(--line-strong);
  border-radius: 1px 1px 0 0;
  position: relative;
  min-height: 3px;
  transition: height 0.6s var(--ease), background 0.3s var(--ease);
}
.rp-bars b.hot { background: var(--accent); }
.rp-bars b::after {
  content: attr(data-l);
  position: absolute;
  bottom: -17px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-faint);
  font-weight: 400;
}
.rp-bars-wrap { padding-bottom: 20px; }

.rp-note { font-size: 12px; color: var(--ink-faint); padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.55; }
.rp-empty { padding: 26px 14px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.rp-lock {
  border: 1px dashed var(--warn);
  background: var(--warn-dim);
  color: var(--warn);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* replica kanban */
.rp-kanban { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 8px; }
.rp-kcol { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 8px; }
.rp-kcol h6 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.rp-kcard {
  margin-top: 7px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 2px;
  background: var(--bg-2);
  padding: 7px 8px;
  font-size: 10.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.rp-kcard .id { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-faint); display: block; }
.rp-kcard .qg { margin-top: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }
.rp-kcard .qg .y { color: var(--accent); }
.rp-kcard .qg .n { color: var(--danger); }

/* service picker */
.rp-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 7px; padding: 12px; }
.rp-svc {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-2);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.rp-svc:hover { border-color: var(--accent-line); }
.rp-svc.on { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); }
.rp-svc input { accent-color: var(--accent); width: 13px; height: 13px; flex: none; }
.rp-svc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cat {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 6px;
}
.rp-sel { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; align-items: center; }
.rp-inp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 6px 9px;
  min-width: 0;
  flex: 1;
}
.rp-inp::placeholder { color: var(--ink-faint); }

/* console */
.rp-console {
  background: var(--surface-dark);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10.8px;
  line-height: 1.75;
  color: var(--pass-brand);
  height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.rp-console .c-dim { color: #a9a29a; }
.rp-console .c-ok { color: var(--pass-brand); }
.rp-console .c-warn { color: var(--warn-brand); }
.rp-console::-webkit-scrollbar { width: 5px; }
.rp-console::-webkit-scrollbar-thumb { background: #3a2f27; border-radius: 3px; }
.rp-stages { display: flex; gap: 5px; flex-wrap: wrap; padding: 12px 12px 0; }
.rp-stage {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 8px;
  color: var(--ink-faint);
  transition: all 0.3s var(--ease);
}
.rp-stage.run { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.rp-stage.done { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-building { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); }
.rp-building i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); animation: pulse 1s var(--ease) infinite; }

/* pre-uat */
.rp-pre {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  white-space: pre-wrap;
  max-height: 230px;
  overflow-y: auto;
}
.rp-chg { display: flex; gap: 9px; align-items: baseline; font-size: 11px; padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.rp-chg:last-child { border-bottom: none; }
.rp-chg .s { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; width: 62px; flex: none; }
.rp-chg .s.add { color: var(--accent); }
.rp-chg .s.mod { color: var(--warn); }
.rp-chg .s.del { color: var(--danger); }

/* secrets */
.rp-secrets { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; }
@media (max-width: 760px) { .rp-secrets { grid-template-columns: minmax(0, 1fr); } }
.rp-path {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  padding: 7px 10px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  display: flex; justify-content: space-between; gap: 8px;
  width: 100%;
  text-align: left;
}
.rp-path:hover { border-color: var(--accent-line); color: var(--accent); }
.rp-path.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-strong); }
.rp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 12px; font-family: var(--font-mono); font-size: 10.5px; }
.rp-kv dt { color: var(--ink-faint); }
.rp-kv dd { color: var(--ink); letter-spacing: 0.08em; }

/* testing */
.rp-suite { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); margin-bottom: 8px; overflow: hidden; }
.rp-suite-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 11.5px; color: var(--ink); }
.rp-suite-h .sp { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }
.rp-rec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0 12px 11px;
}
.rp-frame {
  aspect-ratio: 9 / 16;
  max-height: 92px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--bg-3), var(--bg)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 7px);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
  position: relative;
}
.rp-frame::after {
  content: attr(data-t);
  position: absolute;
  bottom: 3px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--ink-faint);
}

/* audit */
.rp-audit { font-family: var(--font-mono); font-size: 10.5px; }

/* toast */
.rp-toasts {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}
.rp-toast {
  border: 1px solid var(--accent-line);
  background: var(--bg-3);
  color: var(--ink);
  border-radius: 2px;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.8);
  animation: toast-in 0.3s var(--ease);
  max-width: 280px;
}
.rp-toast.bad { border-color: var(--danger); color: var(--danger); }
.rp-toast.warn { border-color: var(--warn); color: var(--warn); }

.rp-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* demo links on the project card */
.w-demo {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: all 0.2s var(--ease);
}

/* ============================================================
   5. New KEYFRAMES
   ============================================================ */
@keyframes hf-travel {
  0%   { left: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes cv-run {
  0%   { left: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: calc(100% - 22px); opacity: 0; }
}
@keyframes card-pop {
  0%   { transform: scale(0.94); box-shadow: 0 0 0 0 var(--accent-line); }
  60%  { transform: scale(1.02); box-shadow: 0 0 0 5px var(--accent-dim); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@keyframes act-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* sync the stack card with the conveyor package: 6s loop, 5 columns */
.stack-card { animation: none; }
.conveyor.run .stack-card { animation: stack-hit 6s linear infinite; animation-delay: calc(0.6s + var(--i) * 1.2s); }
@keyframes stack-hit {
  0%, 3%      { background: var(--bg-3); }
  4%          { background: var(--bg-3); }
  14%         { background: var(--bg-2); }
  100%        { background: var(--bg-2); }
}
.conveyor.run .stack-card::before { animation: stack-bar 6s linear infinite; animation-delay: calc(0.6s + var(--i) * 1.2s); }
@keyframes stack-bar {
  0%   { transform: scaleY(0); }
  3%   { transform: scaleY(1); }
  14%  { transform: scaleY(1); }
  18%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}

/* ============================================================
   6. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hf-packet, .cv-packet { animation: none; display: none; }
  .conveyor.run .stack-card, .conveyor.run .stack-card::before { animation: none; }
  .bd-card.moved, .act, .rp-toast { animation: none; }
  .rp-sse.on i, .bd-live i, .rp-building i { animation: none; }
}

/* ============================================================
   7. GLANCE-PASS: sublabel tool, chips, before/after, care notes
   ============================================================ */

/* hero node sublabels */
.hf-sub {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: -4px;
  text-align: center;
  /* nowrap makes a sublabel wider than its column spill onto
     the neighbor; let it wrap inside its own column */
  white-space: normal;
}
@media (max-width: 620px) { .hf-sub { text-align: left; } }

/* --- stack chips in the hero ---
   The .t-daily/.t-regular classes from components.css supply the text color.
   /* Hero strip: one ink color for mark and name. The green/blue tiers are deliberately not
   used here: in the hero what gets read is the LIST, the detail of how often
   each tool is used lives in the Toolbox. .sc still beats .t-* (showcase.css loads
   after components.css) so old chips still carrying tier classes do not leak. */
.sc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  border: 0;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* the mark takes the chip text color: one ink, not the brand color */
.sc-ic { width: 14px; height: 14px; flex: none; fill: currentColor; }
/* --- five artifact types: shape first, label after ---
   No boxes: frames make every item its text plus padding, and five
   frames never fit one row on a phone. What is left is glyph + name,
   one row at 360-412px. The platform caption (JVM/OCI/...) shows only above
   620px; on a phone the glyph already explains it. */
.artifacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.art { display: inline-flex; align-items: center; gap: 6px; }
.art-ic {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-n { font-size: 12px; letter-spacing: 0.02em; color: var(--ink); }
.art-t { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 620px) { .art-t { display: none; } }

/* artifact line */
.artifact-line {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.artifact-line b { color: var(--ink-dim); font-weight: 400; }

/* care notes (annotation style) */
.care-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent-line);
  padding: 2px 0 2px 12px;
  margin-top: 14px;
}
.care-note::selection { background: var(--accent-dim); }
.co-line { margin-top: 26px; }
.co-line .mono { color: var(--ink-dim); }

/* board before/after */
.ba {
  display: grid;
  grid-template-columns: 0.8fr auto 1.5fr;
  gap: 18px;
  align-items: stretch;
  margin: 8px 0 34px;
}
.ba-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
  min-width: 0;
}
/* The "before" side is muted through color, not opacity: opacity below 1
   also drags its text contrast under AA (Lighthouse color-contrast).
   Text inside this block uses --ink-faint, already 6.4:1 (dark) / 5.5:1 (light). */
.ba-before { border-color: var(--line); }
.ba-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.ba-tag em { font-style: normal; color: var(--ink-dim); }
.ba-after .ba-tag em { color: var(--accent); }
.ba-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
/* without min-width:0 one column forces itself wider than the others
   (measured 40px vs 67px across five columns that should be equal) */
.ba-col { min-width: 0; }
/* once .ba-card may grow, box heights in one row stop being even
   (34/43/34/43/43); let the non-placeholder boxes fill their column height */
.ba-col { display: flex; flex-direction: column; }
.ba-col > .ba-card:not(.sm) { flex: 1; }
.ba-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ba-card {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-3);
  /* min-height, not height: with a fixed height, wrapping text
     breaks out of the box lines (measured 4-20px at 1440, up to 36px at 390) */
  min-height: 34px;
  margin-bottom: 6px;
  padding: 5px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-faint);
}
.ba-card.sm { min-height: 22px; }
.ba-before .ba-card { border-style: dashed; }
.ba-card.on { border-left: 2px solid var(--accent); color: var(--ink); }
.ba-card.lit { border-color: var(--line-strong); color: var(--ink-dim); background: var(--bg-2); }
.ba-badge {
  position: absolute;
  top: 5px; right: 5px;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  padding: 1px 4px;
}
.ba-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
  vertical-align: middle;
}
.ba-chips {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-right: 5px;
  /* these five check marks are one "word" that cannot break; in a 57px column
     they push 2px out of the box. Breaking between marks is fine. */
  word-break: break-all;
}
.ba-note { font-size: 12px; color: var(--ink-faint); margin-top: 12px; line-height: 1.5; }
.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
}
.ba-arrow-ic { font-size: 30px; color: var(--accent); line-height: 1; }
.ba-arrow-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.5;
  max-width: 150px;
}
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { flex-direction: row; min-width: 0; }
  .ba-arrow-ic { transform: rotate(90deg); }
  .ba-arrow-txt { max-width: none; }
}

/* gate inside architecture */
.arch-gate { margin-top: 40px; }
.ag-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.arch-gate .gate { min-width: 0; }
.arch-gate .diagram-shell { overflow: visible; }
@media (max-width: 760px) { .arch-gate .gate { min-width: 0; } }

/* ============================================================
   8. STAGE 6: proof cards, subnav, decisions, threat, scan
   ============================================================ */

/* proof cards (About) */
/* one strip with separators, not four boxes */
.pf-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 10px 0 34px;
}
.pf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 18px 16px;
}
.pf-card:first-child { border-left: none; }
.pf-card b {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.pf-card span { font-size: 13px; color: var(--ink-dim); line-height: 1.45; flex: 1; }
.pf-card em { font-style: normal; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-faint); }
.pf-card:hover em { color: var(--accent); }
@media (max-width: 900px) {
  .pf-strip { grid-template-columns: repeat(2, 1fr); }
  .pf-card:nth-child(odd) { border-left: none; }
}
@media (max-width: 620px) {
  .pf-strip { grid-template-columns: 1fr; }
  .pf-card { border-left: none; border-top: 1px solid var(--line); }
  .pf-card:first-child { border-top: none; }
  /* 57px column: the header must not be cut to "IN REV…" (12px mono = 65px,
     10px = 54px is still one line, like the walkthrough board label at 9.5px),
     and the absolutely positioned Intake badge covers the "#471" text */
  .ba-col h3 { font-size: 10px; }
  .ba-card .ba-badge { position: static; display: inline-block; margin-left: 4px; }
}
@media (max-width: 480px) {
  /* the five columns are only 51-75px wide: "IN REVIEW" is 56px at 10px, so it is
     better to wrap than to be cut to "IN REV…" */
  .ba-col h3 { white-space: normal; line-height: 1.25; }
}

/* before-line */
.before-line {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.before-line > span:first-child {
  color: var(--danger);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
  margin-right: 8px;
}

/* work subnav */
.work-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px var(--pad);
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.92);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* one swipeable row: six chips + label never become three
   rows on a phone (measured 93px), and its height no longer shifts the anchor */
@media (max-width: 760px) {
  .work-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    height: var(--subnav-h);
    padding: 0 var(--pad);
    scrollbar-width: none;
    background:
      linear-gradient(to right, var(--bg) 30%, rgba(255, 255, 255, 0)) left center / 30px 100% no-repeat local,
      linear-gradient(to left,  var(--bg) 30%, rgba(255, 255, 255, 0)) right center / 30px 100% no-repeat local,
      rgba(255, 255, 255, 0.92);
    background:
      linear-gradient(to right, var(--bg) 30%, rgba(255, 255, 255, 0)) left center / 30px 100% no-repeat local,
      linear-gradient(to left,  var(--bg) 30%, rgba(255, 255, 255, 0)) right center / 30px 100% no-repeat local,
      color-mix(in srgb, var(--bg) 82%, transparent);
  }
  .work-subnav::-webkit-scrollbar { display: none;
    /* two stacked backdrop-filter layers are cheap on desktop and expensive
       on low-end Android; only the header keeps the blur */
  }
  .work-subnav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .work-subnav > * { flex: 0 0 auto; }
  .wsn { min-height: 44px; display: inline-flex; align-items: center; }
}
.wsn-label { font-size: 12px; letter-spacing: 0.18em; color: var(--ink-faint); margin-right: 6px; }
.wsn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.wsn:hover { color: var(--ink); border-color: var(--line-strong); }
.wsn.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* decisions cards */
.dec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .dec-grid { grid-template-columns: 1fr; } }
.dec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px 20px 14px;
}
.dec-card h3 { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 14px; }
/* the label column is 86px, while "ALTERNATIVE" at 12px mono + 0.14em tracking
   is 97px wide: the label leans 11px into the 14px gap, 3px left before its content */
.dec-card dl { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 6px 14px; }
.dec-card dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.dec-card dd { font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); }
/* build-vs-buy card: four full-width rows became 1,100px paragraphs. Split into two
   columns (decision|alternative, why|cost) so each pair still takes one row.
   The DOM order of dt is unchanged, so the nth-child coloring below still applies. */
.dec-wide { grid-column: 1 / -1; }
.dec-wide dl { grid-template-columns: 98px minmax(0, 1fr) 98px minmax(0, 1fr); }
@media (max-width: 860px) {
  .dec-wide dl { grid-template-columns: 98px minmax(0, 1fr); }
}
.dec-card dt:nth-child(4n+1) { color: var(--accent); }
.dec-card dt:nth-child(4n+3) { color: var(--warn); }
/* runtime closing card: one paragraph, no decision/alternative/why/cost rows */
.rt-body { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* Accordion for the eleven cards on /decisions/. Only applies on narrow screens;
   without JS all cards stay open and the buttons are hidden. */
.dec-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dec-fold {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 4px 8px;
}
.dec-fold:hover { color: var(--accent); border-color: var(--accent); }
html:not([data-js]) .dec-fold { display: none; }
@media (max-width: 760px) {
  .dec-card[data-fold="closed"] > :not(h3) { display: none; }
  .dec-card[data-fold="closed"] { padding-bottom: 20px; }
}
@media (min-width: 761px) {
  .dec-fold { display: none; }
}
/* on narrow touch screens the label becomes a 44px touch target */
@media (max-width: 760px) and (pointer: coarse) {
  .dec-fold { min-height: 44px; display: inline-flex; align-items: center; }
}

/* threat model */
.tm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
/* The third column of this table is the most interesting one ("the gate that closes it")
   and it is off screen at 390px with no affordance. The table cannot be compacted
   without destroying its readability, so it still scrolls but gets a marker. */
@media (max-width: 700px) {
  .tm-wrap {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
}
.tm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tm-tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tm-tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; line-height: 1.5; }
.tm-tbl tr:last-child td { border-bottom: none; }
.tm-tbl td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tm-tbl td:nth-child(2) { color: var(--warn); }
.tm-tbl td:last-child { color: var(--ink-dim); }

/* scan summary card */
.scan-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
}
@media (max-width: 620px) {
  /* label + long title push each other; let them wrap the line, not get cut */
  .sc-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .sc-tag { margin-left: 0; }
}

.sc-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--info);
  border: 1px dashed var(--info);
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
}
.sc-rows { padding: 10px 14px 12px; }
.sc-rows > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.sc-rows > div:last-child { border-bottom: none; }
.sc-rows > div > span { width: 110px; flex-shrink: 0; color: var(--ink-faint); }
.sc-rows > div > b { color: var(--ink); font-weight: 400; }
.sc-rows > div > b.ok { color: var(--accent); }
.sc-rows > div > i { font-style: normal; color: var(--ink-faint); font-size: 10.5px; }
@media (max-width: 620px) { .sc-rows > div { flex-wrap: wrap; gap: 6px; } .sc-rows > div > span { width: auto; } }

/* experience signals */
.exp-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .exp-signals { grid-template-columns: 1fr; } }
.sig {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
}
.sig-ic { color: var(--accent); font-size: 14px; line-height: 1.4; }
.sig p { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }

/* ============================================================
   9. LIFECYCLE + EMAIL PREVIEW + TWO ECOSYSTEMS
   ============================================================ */

.lc { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 34px; }
.lc-head { margin-bottom: 22px; }
.lc-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.lc-sub { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.lc-rail {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.lc-line {
  position: absolute;
  left: 0; right: 0; top: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 4%, var(--line-strong) 96%, transparent);
}
.lc-packet {
  position: absolute;
  top: 27px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-line);
  animation: lc-run 14s linear infinite;
}
@keyframes lc-run { 0% { left: 1%; } 100% { left: 98%; } }
.lc-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0 6px;
  flex: 1 1 90px;
  min-width: 88px;
  font: inherit;
  box-sizing: border-box;
}
.lc-node > i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lc-node > span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-align: center;
  padding-top: 2px;
  transition: color 0.3s var(--ease);
}
.lc-node.lit > i, .lc-node.on > i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-line); }
.lc-node.lit > span, .lc-node.on > span { color: var(--ink); }
.lc-node.on > span { color: var(--accent); }
.lc-gate > i { border-radius: 2px; transform: rotate(45deg); }
.lc-prod > i { width: 13px; height: 13px; }

/* fan-out node: three parallel checks */
.lc-fan { flex: 1 1 120px; }
.lc-fan em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 2px;
  padding: 2px 7px;
  background: var(--bg-2);
  white-space: nowrap;
}
.lc-fan.lit em, .lc-fan.on em { color: var(--ink-dim); border-left-color: var(--accent); }

.lc-detail {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* schedule rail */
.lc-sched { margin-top: 30px; padding-top: 8px; flex-wrap: wrap; gap: 8px; }
.lc-sched .lc-line, .lc-sched .lc-packet { display: none; }
.lc-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 10px 14px;
  cursor: pointer;
  flex: 1 1 150px;
  /* the chip is now a real <button> so it can be tabbed and entered:
       drop the default button styles, keep the old look */
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  min-width: 0;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lc-chip:hover, .lc-chip.on { border-color: var(--accent-line); border-style: solid; }
.lc-chip.on { background: var(--accent-dim); }
/* selected chip sublabel: --ink-faint on accent-dim + bg-3 measured 4.34:1 (axe,
   and Lighthouse never found it because this state needs a click). Raised to
   --ink-dim = 6.30:1; the selected marker stays border + background, not text color. */
.lc-chip.on span { color: var(--ink-dim); }
.lc-chip b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.lc-chip span { font-size: 12px; color: var(--ink-faint); }
.lc-sep { align-self: center; color: var(--ink-faint); font-size: 13px; }
.lc-mail-chip b { color: var(--accent); }

/* --- the six standard rules (std-band) ---
   Senior signal that used to appear only after a click on the lifecycle rail or a
   board card. This reuses the recessed surface .mailshow uses so the section has
   one visual language; the accent numbers are ornament, text stays --ink-dim (7.05:1 on --bg-3). */
.std-band {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: clamp(18px, 2.4vw, 26px);
}
.std-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.std-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.std-note { font-size: 12px; color: var(--ink-faint); }
.std-list {
  list-style: none;
  counter-reset: std;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.std-list li {
  counter-increment: std;
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.std-list li::before {
  content: counter(std, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
@media (max-width: 760px) {
  .std-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* email preview */
.lc-mailgrid { margin-top: 22px; }
.mail-card {
  max-width: 680px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.mail-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.mail-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.mail-from { font-size: 11px; color: var(--ink-faint); }
.mail-subj { font-size: 12.5px; color: var(--ink); margin-top: 2px; }
.mail-body { padding: 18px 18px 14px; background: var(--bg-2); }
.mail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 4px solid var(--accent-bright);
  padding-top: 10px;
  color: var(--ink);
}
.mail-head > span:first-child { font-size: 12px; letter-spacing: 0.12em; font-weight: 700; }
.mail-wm { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); border-bottom: 2px solid var(--accent-bright); }
.mail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10px;
  color: var(--ink-faint);
  padding: 8px 0 12px;
}
.mail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ms {
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 3px;
  background: var(--bg-2);
  padding: 8px 6px;
  text-align: center;
}
.ms b { display: block; font-size: 17px; color: var(--ink); }
.ms span { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-family: var(--font-mono); }
.ms.ok { border-top-color: var(--pass); } .ms.warn { border-top-color: var(--warn); }
.ms.bad { border-top-color: var(--danger); } .ms.dim { border-top-color: var(--line-strong); } .ms.gray { border-top-color: var(--line-strong); }
.mail-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; color: var(--ink); }
.mail-tbl .th td {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 9px;
  border: 0;
}
.mail-tbl td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.mail-tbl tr:nth-child(even) td { background: var(--bg-3); }
.mail-tbl .ok { color: var(--pass); font-weight: 600; }
.mail-tbl .warn { color: var(--warn); font-weight: 600; }
.mail-tbl .bad { color: var(--danger); font-weight: 600; }
.mail-tbl .dim { color: var(--ink-faint); }
.mail-tbl .lk { color: var(--accent); text-decoration: underline; cursor: default; }
.mail-note { margin-top: 10px; font-size: 9.5px; color: var(--ink-faint); }
.lc-mailcap { margin-top: 14px; }
@media (max-width: 760px) {
  .mail-stats { grid-template-columns: repeat(3, 1fr); }
  .lc-node { flex: 0 0 calc(33% - 12px); margin-bottom: 10px; }
  .lc-line, .lc-packet { display: none; }
}

/* two ecosystems */
.eco {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.eco-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px;
}
.eco-old { background: var(--bg-3); }
.eco-old .eco-tag { color: var(--ink-faint); }
.eco-new { border-color: var(--accent-line); }
.eco-new .eco-tag { color: var(--accent-strong); }
.eco-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eco-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.eco-card li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  padding-left: 16px;
  position: relative;
}
.eco-card li::before { content: "\00B7"; position: absolute; left: 0; color: var(--ink-faint); }
.eco-new li::before { color: var(--accent); }
.eco-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 120px; }
.ea-ic { font-size: 26px; color: var(--accent); }
.ea-txt { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-dim); text-align: center; max-width: 130px; line-height: 1.6; }
@media (max-width: 900px) {
  .eco { grid-template-columns: 1fr; }
  .eco-arrow { flex-direction: row; min-width: 0; }
  .ea-ic { transform: rotate(90deg); }
  .ea-txt { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-packet { display: none; }
}

/* ============================================================
   10. MAILSHOW: header frame + tabs + SAST/Sonar variants
   ============================================================ */
.mailshow {
  max-width: 720px;
  /* the container is 1044px on desktop: without this the panel sits left with 324px left
     over on the right (measured gapLeft 0 / gapRight 324) */
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.mailshow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.ms-title { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: block; }
.ms-sub { font-size: 12px; color: var(--ink-faint); }
.ms-more {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
/* The two reports that are not shown here, named by what they answer. */
.lc-mailmore {
  list-style: none;
  margin: 12px auto 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.lc-mailmore li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
.lc-mailmore a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lc-mailmore span { color: var(--ink-faint); }
.mailshow .mail-card {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.mailshow .mail-top { border-bottom: 1px solid var(--line); }

/* amber disclaimer callout (faithful to the real report) */
.mail-callout {
  border: 1px solid rgba(217, 151, 6, 0.45);
  border-left: 4px solid var(--warn-brand);
  background: #fdf3e3;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 12px 0 14px;
}
.mail-callout b { color: var(--warn); font-size: 12px; }
.mail-callout p { color: var(--ink); font-size: 12px; line-height: 1.6; margin-top: 5px; }
.mail-callout p b { color: var(--warn); font-size: 12px; }

.ms.l { border-top-color: var(--info-brand); }   /* Docker blue */
.ms.ok2 { border-top-color: var(--pass); }
.ms.p { border-top-color: var(--pass); }
.ms.n { border-top-color: var(--line-strong); }

.mail-sect {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 12px 0 6px;
}
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  padding: 2px 8px;
  border-left: 3px solid;
}
/* same: pass #2E7D32 on pass-dim + bg-3 = 4.33:1; --pass-strong = 5.58:1.
   The border stays --pass so the status color keeps its meaning */
.pill.ok { color: var(--pass-strong); border-color: var(--pass); background: var(--pass-dim); }
.pill.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-dim); }
.pill.dim { color: var(--ink-faint); border-color: var(--line-strong); background: var(--bg-3); }
.mail-tbl td.dim { color: var(--ink-faint); }
.mail-tbl td b { color: var(--ink); }
.mail-branches { color: var(--pass); }
.mail-att {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mail-att span {
  font-size: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-3);
  padding: 6px 10px;
}
@media (max-width: 760px) { .ms2 { grid-template-columns: repeat(3, 1fr); } }

/* the anchor jump is not covered by the sticky chrome. Two rules, not one:
   only sections inside Work have a sticky sub-nav, so the rest need
   the header height only. If both used the full value, anchors outside
   Work land 56px too deep. */
#board, #platform, #architecture, #runtime, #decisions, #threat {
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 8px);
}
#about, #work, #toolbox, #experience, #contact {
  scroll-margin-top: calc(var(--header-h) + 8px);
}


/* work grid: 3 cards = 3 columns on wide screens */
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* exp education line */
.exp-edu { font-size: 12px; color: var(--ink-faint); margin: 18px 0 4px; letter-spacing: 0.04em; }
.exp-edu span:first-child { color: var(--ink-dim); }

.sr-only a,
.work-summary-cards a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}


/* ============================================================
   11. GATEWAY FLOW + MOBILE 390px HARDENING
   ============================================================ */
.dgfp { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent-line)); }
.n-gateway rect { animation: gw-pulse 3.2s var(--ease) infinite; }
@keyframes gw-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.4; } }

@media (max-width: 620px) {
  /* One row, all seven. Two rows of 4+3 made the seven stages read as
     a pile of boxes: the order was everywhere except in the eye. With one row
     the connecting line can come back, and that line is the order marker, so
     the numbers no longer have to eat width. Stage names are compacted to 10.5px
     (the B1 floor): the longest, "COMMIT", is 40px in a 50px column, never touching.
     Tool sublabels are dropped; the tools live in Lifecycle and Toolbox. The package
     trip stays hidden: one moving thing in the hero is enough. */
  .hero-flow { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 6px; row-gap: 0; }
  .hf-line { display: block; }
  .hf-node { gap: 8px; align-items: center; }
  .hf-node > span { font-size: 10.5px; letter-spacing: 0.02em; white-space: nowrap; }
  .hf-node > span::before { content: none; }
  .hf-sub { display: none; }
  .lc-node { min-width: 0; }
  .lc-node > span { font-size: 12px; }
}
/* At 380px and below, seven columns do not fit even at 10.5px names: back to
   4 columns numbered 1-7, where the numbers are the only order marker left. */
@media (max-width: 380px) {
  .hero-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
  .hf-line { display: none; }
  .hf-node { align-items: flex-start; }
  .hf-node > span { font-size: 14px; letter-spacing: 0.1em; white-space: normal; }
  .hf-node > span::before { content: counter(hf); }
}

/* walkthrough board: scroll horizontally, do not overlap */
@media (max-width: 760px) {
  .bd-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
  .bd-col { flex: 0 0 130px; }
  .bd-colbody { min-height: 200px; }
  #bd-card { max-width: none; }
  .bd-card { width: 100%; }
}

/* gate: stack vertically on narrow screens */
@media (max-width: 760px) {
  .arch-gate .gate { grid-template-columns: 1fr; }
  .arch-gate .gate-result { min-width: 0; width: 100%; }
  .mailshow-head { flex-direction: column; align-items: flex-start; }
  .lc-chip { flex: 1 1 100%; }
  .lc-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-flow { display: none; }
  .n-gateway rect { animation: none; }
}

/* CSP-safe utility classes (replace style="..." in JS & HTML) */
.profile-links { display: grid; gap: 6px; }
.rp-note--plain { border-top: none; }
.rp-sel--pad { padding-top: 12px; }
.rp-w190 { flex: 0 0 190px; }
.rp-or { font-size: 10px; color: var(--ink-faint); }
.rp-pad { padding: 12px; }
.rp-meta-r { margin-left: auto; color: var(--ink-faint); }
.rp-note--ok { border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--accent); border-radius: 2px; margin-bottom: 14px; }
.rp-warn-inline { font-size: 10px; color: var(--warn); align-self: center; }
.rp-mb14 { margin-bottom: 14px; }
.rp-mt10 { margin-top: 10px; }
.rp-locked { color: var(--ink-faint); }
.rp-dimline { font-size: 10.5px; color: var(--ink-dim); }
.rp-mla { margin-left: auto; }
.qg-ok { color: var(--pass); }
.qg-warn { color: var(--warn); }
.sev-crit { color: var(--danger); }
.sev-warn { color: var(--warn); }
.sev-faint { color: var(--ink-faint); }


/* ============================================================
   12. TOOLBOX TIER FILTER
   ============================================================ */
.tier-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.tf-label { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint); margin-right: 4px; }
.tf-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tf-btn:hover { color: var(--ink); border-color: var(--accent-line); }
.tf-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ============================================================
   12. SITE CHROME USES SANS (Batch D #9)
   Mono is kept for code, commands, versions and technical values
   (hero rail, tool chips, numbers, artifacts, periods, project IDs) plus
   the whole replica body (.rp-*), the board storyboard (.bd-*, .ba-*,
   .bt-*), diagrams (.lc-*, .eco-*, .ag-*) and email mockups (.mail-*,
   .ms-*). This block sits at the end of the file so it wins over the
   .mono utility class from base.css without changing that class.
   ============================================================ */
.kicker,
.brand, .nav a, .tool-btn,
.btn,
.hero-role,
.wsn-label, .wsn,
.tf-label, .tf-btn,
.cm-row .cm-k, .copy-btn,
.footer-in,
.w-demo,
.pf-card em,
.dec-card dt,
.skill-group h3,
.tier,
.exp-edu { font-family: var(--font-sans); }

/* --- swipeable content hint (audit B3, P0) ---
   Measured at 390px: the gateway diagram hides 49% of its content and the threat
   model table 46%, with no sign that anything is left off screen. This hint is real
   text (not only a shadow), stuck left so it stays readable while
   the container scrolls, and it only appears at touch widths. */
.scroll-hint { display: none; }
@media (max-width: 620px) {
  .scroll-hint {
    display: block;
    position: sticky;
    left: 0;
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
  }
  .scroll-hint::before { content: "↔ "; color: var(--accent); }
  /* The replica hint sits outside the swipe box. Its content is rendered by JS, so it cannot
     be placed inside. It does not scroll along; it stands
     still fixed over that area */
  .rp-hint { position: static; padding: 0 16px; margin: 0 0 2px; }
  .rp-hint[hidden] { display: none; }
  .bd-hint { position: static; padding: 0; margin: 0 0 10px; }
}
/* edge shadow: the second visual signal that the right edge is not the content limit */
@media (max-width: 620px) {
  .diagram-shell, .tm-wrap, .rp-view {
    background:
      linear-gradient(to right, var(--bg-2) 30%, rgba(255, 255, 255, 0)) left center / 36px 100% no-repeat local,
      linear-gradient(to left,  var(--bg-2) 30%, rgba(255, 255, 255, 0)) right center / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%,    rgba(28, 25, 23, 0.16), transparent) left center  / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(28, 25, 23, 0.16), transparent) right center / 12px 100% no-repeat scroll,
      var(--bg-2);
  }
}
/* pause button for the lifecycle rail (WCAG 2.2.2: content that moves automatically
   for more than 5 seconds must be pausable; this rotation is 3.8 seconds per node) */
.lc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.lc-pause { min-height: 44px; }

/* F1, second part: at <=430px the rail must fit in full. Tool sublabels
   (git push / maven · gradle / trivy · sonar ...) are deliberately hidden at that
   width: the same six tools are already written in the "Stack I work in daily"
   strip right above, so no information is lost, only duplication is
   dropped. Measured result: node height 114px -> 46px, and 7 of 7 stages whole above
   the 390x844 fold (previously 0). */
@media (max-width: 430px) {
  .hero-flow { padding-top: 16px; column-gap: 6px; }
  .hf-node { gap: 6px; }
  .hf-sub { display: none; }
}

/* ---------- B1: text size floor on narrow screens ----------
   The small text in the dashboard replica is deliberate: it copies the real UI. But at
   390px some labels drop to 8.5px and that is not "real UI", that is
   unreadable. Only labels that carry meaning are raised here; decorative
   markers (::after on window frames, the bar axis, watermark, avatar initials)
   stay as designed. */
@media (max-width: 620px) {
  .bc-iid, .bc-phase, .bc-lbl, .ap-chip, .bc-bot span, .bc-bot code,
  .act-who, .mini-tbl, .mini-tbl th, .bd-col h3,
  .rp-sse, .rp-role label, .rp-h .sub, .rp-metric .k, .rp-panel > h5,
  .rp-tbl th, .rp-badge, .rp-kcol h6, .rp-kcard .id, .rp-kcard .qg,
  .rp-cat, .rp-stage, .rp-building, .rp-chg .s, .rp-suite-h .sp,
  .rp-or, .rp-warn-inline,
  .mail-meta, .ms span, .mail-tbl .th td, .mail-note, .mail-sect, .pill,
  .mail-att span, .sc-tags span, .ba-card, .ba-badge {
    font-size: 10.5px;
  }
  /* .ba-col h3 is deliberately left out: its column is 57px and "In Review" is already 59px
     at 10.5px, cut to "IN REV…" (the rule above holds 10px) */
}

/* ---------- B2: hover effects only for devices that have hover ----------
   On touch, :hover sticks until the next tap: the card stays lifted
   and the table row stays highlighted. Blocked here are the big position/color effects;
   link and button color changes are allowed, because on touch that is feedback,
   not decoration. */
@media (hover: hover) {
.co-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.rp-ni:hover { color: var(--ink); background: var(--bg-3); }
.rp-tbl tr:hover td { background: var(--bg-3); }
.rp-btn.primary:hover:not(:disabled) { filter: brightness(1.08); color: var(--accent-ink); }
.w-demo:hover { border-color: var(--accent); gap: 12px; }
.tm-tbl tr:hover td { background: var(--bg-3); }
}

/* ---------- B5: touch targets ----------
   All are already above the WCAG 2.2 minimum (24px), but below the 44px that is
   comfortable for a thumb. This block is in the last file that styles components, not in base.css,
   because .bd-btn and .wsn get defined here later and would win over the general
   rules (measured: 30px vs 44px before the move). Small chips inside text (.ref) must
   not grow: they are part of a sentence, so the touch area is what expands.
   Note: .depth-btn, .dec-fold, .wsn and .lc-pause are already 44px in their own blocks;
   what follows below is the rest. */
@media (pointer: coarse) {
  .tool-btn, .copy-btn, .tf-btn, .lc-chip, .co-chip, .rp-btn, .dec-fold, .wsn, .bd-break, .dx-cta, .rp-ni {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .rp-role select, .rp-proj {
    min-height: 44px;
  }
  .bd-dot {
    min-width: 44px;
    min-height: 44px;
  }
  .bd-btn { width: 44px; height: 44px; }
  .menu-btn { min-width: 44px; }
  .bd-play { width: 52px; }
  .footer-nav a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ref { position: relative; }
    /* 18px text + 13px top-bottom = 44px touch area, the look does not change */
  .ref::after { content: ""; position: absolute; inset: -13px -6px; }
}
/* a 44px .wsn chip only fits if its row grows too; on a phone it is already
   56px, the rest (wide tablets) get this value */
@media (pointer: coarse) and (min-width: 761px) {
  :root { --subnav-h: 64px; }
}

/* --- scan result summary written by the pipeline ---
   Recessed surface + amber left line (the scan color elsewhere on this site),
   so it looks like machine output, not like a human message. */
.rp-ai {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 12px 14px;
  animation: rp-ai-in 0.5s var(--ease) both;
}
.rp-ai-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.rp-ai-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); }
.rp-ai-b { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); }
.rp-ai p { font-size: 13px; line-height: 1.6; color: var(--ink-dim); }
.rp-ai-n { margin-top: 8px; font-size: 11.5px; color: var(--ink-faint); }
@keyframes rp-ai-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rp-ai { animation: none; } }

/* --- C: transition between replica views ---
   One 260ms move when the content changes. Fully off in reduced-motion. */
@keyframes rp-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rp-view.swapped { animation: rp-swap 0.26s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .rp-view.swapped { animation: none; } }

/* --- D: the touched path lights up, the rest recedes ---
   Parallax is deliberately not used here: the connector lines are elements
   separate from their boxes, so shifting one column would unplug its cables and
   make the diagram lie about the architecture. */
.diagram-shell .dg-node { cursor: default; }
.diagram-shell .dg-node rect { transition: fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.diagram-shell .dg-link { transition: opacity 0.22s var(--ease), stroke 0.22s var(--ease), stroke-width 0.22s var(--ease); }
.diagram-shell.focusing .dg-link { opacity: 0.22; }
.diagram-shell.focusing .dg-link.hot {
  opacity: 1;
  stroke: var(--accent-bright);
  stroke-width: 2;
}
.diagram-shell .dg-node[data-dg]:hover rect,
.diagram-shell .dg-node[data-dg]:focus rect { stroke: var(--accent); fill: var(--accent-dim); }
@media (hover: none) {
  .diagram-shell.focusing .dg-link { opacity: 0.35; }
}

/* ---------- B8: content-visibility tested then rejected, with numbers ----------
   Candidates: #runtime, #decisions, #threat, #toolbox, #experience, #contact.
   Measured at 390px with 6x CPU throttle, scrolling the whole page:
     no CV   : 1229ms, 0 long frames, height 25,743px
     with CV: 1128ms, 0 long frames, height 23,200px
   Saves 101ms on scripted scroll, removes not one long frame
   (this page never blocks), and makes the page height wrong by 2,543px,
   which means the scroll indicator, read-progress and anchor distances
   lie too while a section has not been laid out. There is no gain a user
   can see; what a user can see is the cost. Do not
   reinstall it without better numbers than these. */
/* ---------- lifecycle rail on phones: vertical stepper ----------
   Above 620px this rail is one row with a line and a package crossing it.
   On a phone the 13 nodes wrap into three rows and the line loses
   its meaning: the order is no longer readable, and the order is the only
   thing this component shows. So below 620px it becomes a column:
   one node per row, the line on the left, the active node detail stays below.
   The horizontal package is hidden, not moved: a sideways animation for
   a flow that is now vertical would only confuse. */
@media (max-width: 620px) {
  .lc-rail { flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .lc-line {
    display: block;
    left: 5px; right: auto; top: 10px; bottom: 10px;
    width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--line-strong) 4%, var(--line-strong) 96%, transparent);
  }
  .lc-packet { display: none; }
  .lc-node {
    flex: none; min-width: 0; flex-direction: row; align-items: baseline;
    gap: 10px; text-align: left; padding: 10px 0;
  }
  .lc-node > i { order: -1; margin-right: 2px; }
  .lc-node > span { font-size: 13.5px; letter-spacing: 0; text-transform: none; }
  .lc-fan { flex-wrap: wrap; }
  .lc-fan em { margin-left: 21px; }
  .lc-sep { display: none; }
  .lc-detail { margin-top: 10px; }
}
/* ---------- before/after board on phones: FIVE columns become five rows ----------
   Measured 51px per column at 360px: "approval" and "pipeline + audit" do not fit
   even at 10.5px, and shrinking more means going back to text that is not
   readable. So the board rotates: column name on the left, content on the right.
   No horizontal scroll, no type shrunk.
   ONLY the ".five" board. The "out of the box" panel has three empty columns and
   lined placeholders: there the three side-by-side columns carry the story
   ("just columns"), and a row version makes it look broken. */
@media (max-width: 620px) {
  .ba-cols.five { display: flex; flex-direction: column; gap: 6px; }
  .ba-cols.five .ba-col { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; min-height: 0; }
  .ba-cols.five .ba-col h3 {
    border-bottom: none; margin: 4px 0 0; padding: 0;
    white-space: normal; font-size: 10.5px; line-height: 1.3;
  }
  .ba-cols.five .ba-col > .ba-card:not(.sm) { flex: none; }
  .ba-cols.five .ba-card { padding: 8px 9px; }
  .ba-cols.five .ba-card .ba-badge { margin-left: 0; }
}

/* Pointers out of the landing page. */

/* The gate, quoted, at the end of Work. Same dark surface and same error colour
   as the consoles on /pipelines/, so the excerpt reads as the same thing. */
.wv {
  grid-column: 1 / -1;
  align-self: start;
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-dark);
  overflow: hidden;
}
.wv-cap {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.62);
}
.wv-cap a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.wv-log {
  margin: 0;
  padding: 13px 16px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--on-dark);
}
.wv-log .lv { color: #ff9d94; }

/* Where the rules above are enforced: two destinations, each named by what a
   reader finds there rather than by a label. */
.lc-out {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.lc-out > span { color: var(--ink-faint); letter-spacing: 0.06em; }
.lc-out a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

/* The toolbox claim, and the page where it can be checked. */
.tb-receipt {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.tb-receipt a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* The decision record now lives on /decisions/. This band is a pointer, not a
   copy of the page: it is recessed and bordered so it reads differently from the
   cards above it, and it names three decisions by what they cost. */
.dx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px 40px;
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 24px;
}
.dx h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; }
.dx-sub { margin: 0 0 18px; font-size: 12px; color: var(--ink-faint); }
.dx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
}
.dx-cta:hover { background: var(--accent-strong); }
.dx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.dx-list li {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.dx-list b { font-size: 13px; font-weight: 600; color: var(--ink); }
.dx-list span { color: var(--ink-dim); }
@media (max-width: 860px) {
  .dx { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .dx h2 { font-size: 22px; }
}

/* Spotlight band: dual highlight for /diagrams/ and /pipelines/ */
#spotlight {
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 8px);
}
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.spotlight-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spotlight-card-head {
  margin-bottom: 18px;
}
.spotlight-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spotlight-card-eyebrow .badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(45, 49, 66, 0.06);
  color: var(--ink);
}
.spotlight-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.spotlight-card p.desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 16px;
}
.mini-topology {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
}
.topo-node {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.topo-node.hl {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.topo-arrow {
  color: var(--ink-faint);
  font-size: 11px;
  flex-shrink: 0;
}
.mini-terminal {
  background: #1e222d;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #d1d5db;
}
.mini-terminal .t-tag-gl { color: #60a5fa; font-weight: 600; }
.mini-terminal .t-tag-jk { color: #f59e0b; font-weight: 600; }
.mini-terminal .t-ok { color: #34d399; }
.mini-terminal .t-dim { color: #9ca3af; }
.spotlight-actions {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.sl-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.sl-cta:hover {
  background: var(--accent-strong);
}
@media (max-width: 860px) {
  .spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .spotlight-card {
    padding: 20px 18px;
  }
}

/* 5 packaging types & reference CTA in Case Study III */
.art-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
}
.art-label {
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.art-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--ink-dim);
}
.art-chip b {
  color: var(--ink);
}
.repo-cta-row {
  margin-top: 24px;
  margin-bottom: 16px;
}


